:root {
  --ink: #050506;
  --ink-2: #10100e;
  --paper: #f3efe7;
  --paper-soft: rgba(243, 239, 231, .72);
  --paper-muted: rgba(243, 239, 231, .48);
  --line: rgba(243, 239, 231, .18);
  --gold: #d5b56e;
  --gold-soft: rgba(213, 181, 110, .2);
  --shadow: rgba(0, 0, 0, .38);
  --sans: Inter, "Helvetica Neue", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --serif: "Noto Serif SC", "Songti SC", STSong, serif;
  --mono: "IBM Plex Mono", "JetBrains Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--paper);
  background:
    radial-gradient(circle at 82% 12%, rgba(213, 181, 110, .11), transparent 30vw),
    linear-gradient(180deg, #050506 0%, #0b0a09 42%, #050506 100%);
  font-family: var(--sans);
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(243, 239, 231, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 239, 231, .028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(20px, 4vw, 72px);
  color: var(--paper);
  mix-blend-mode: difference;
}

.brand {
  display: grid;
  gap: 3px;
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.brand span:first-child {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  font-size: 13px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(520px, .98fr) minmax(420px, 1.02fr);
  align-items: center;
  gap: clamp(28px, 3vw, 58px);
  padding: 116px clamp(20px, 5vw, 92px) 40px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 76% 64%, rgba(213, 181, 110, .2), transparent 22vw),
    radial-gradient(circle at 88% 18%, rgba(243, 239, 231, .08), transparent 24vw);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26vh;
  background: linear-gradient(to top, var(--ink), transparent);
  pointer-events: none;
}

.painting-collage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.tile {
  position: absolute;
  display: block;
  object-fit: cover;
  opacity: .25;
  filter: saturate(.78) contrast(1.05);
  border: 1px solid rgba(243, 239, 231, .22);
  transform-origin: center;
}

.tile-a {
  right: 42vw;
  top: 8vh;
  width: clamp(150px, 16vw, 260px);
  aspect-ratio: 3 / 4;
  transform: rotate(-16deg);
}

.tile-b {
  right: -1vw;
  top: 8vh;
  width: clamp(360px, 46vw, 760px);
  aspect-ratio: 16 / 10;
  transform: rotate(7deg);
  opacity: .2;
}

.tile-c {
  right: 29vw;
  bottom: 3vh;
  width: clamp(260px, 32vw, 520px);
  aspect-ratio: 5 / 4;
  transform: rotate(12deg);
  opacity: .2;
}

.tile-d {
  right: -8vw;
  bottom: 15vh;
  width: clamp(260px, 34vw, 560px);
  aspect-ratio: 16 / 10;
  transform: rotate(-10deg);
  opacity: .18;
}

.hero-copy {
  position: relative;
  z-index: 3;
  min-width: 0;
  max-width: 610px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 9.5em;
  font-size: clamp(54px, 5.4vw, 98px);
  line-height: .94;
}

h1 span {
  display: block;
  white-space: nowrap;
}

h2 {
  font-size: clamp(38px, 5vw, 88px);
  line-height: 1.03;
}

p {
  margin: 0;
  color: var(--paper-soft);
  font-size: clamp(17px, 1.25vw, 22px);
  line-height: 1.8;
}

.hero-lead {
  max-width: 27em;
  margin-top: 28px;
}

.hero-lead-line {
  white-space: normal;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button,
.download-button {
  min-height: 48px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.button:hover,
.download-button:hover {
  transform: translateY(-2px);
}

.primary {
  border-color: var(--paper);
  color: var(--ink);
  background: var(--paper);
}

.ghost {
  color: var(--paper);
  background: rgba(243, 239, 231, .04);
  backdrop-filter: blur(16px);
}

.hero-visual {
  position: relative;
  z-index: 2;
  margin: 0;
  align-self: end;
  transform: translateX(2vw);
}

.hero-visual img {
  width: min(74vw, 1180px);
  margin-left: auto;
  transform: scale(1.3);
  transform-origin: right bottom;
  filter: drop-shadow(0 38px 50px var(--shadow));
}

.art-story,
.download {
  padding: clamp(86px, 13vw, 190px) clamp(20px, 5vw, 92px);
}

.art-story {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(340px, .92fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(36px, 7vw, 118px);
  padding-left: clamp(28px, 4vw, 64px);
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(243, 239, 231, .96), rgba(243, 239, 231, .78)),
    url("./assets/wave.webp") center / cover;
}

.art-story::before {
  content: "";
  position: absolute;
  inset: clamp(20px, 3vw, 44px);
  z-index: 0;
  border: 1px solid rgba(5, 5, 6, .16);
  background: transparent;
  pointer-events: none;
}

.art-story::after {
  content: none;
}

.story-ornament {
  position: absolute;
  left: -8vw;
  top: 8vh;
  z-index: 0;
  width: min(58vw, 720px);
  color: rgba(5, 5, 6, .13);
  pointer-events: none;
}

.story-ornament svg {
  width: 100%;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.story-image {
  position: relative;
  z-index: 1;
  align-self: stretch;
  min-height: min(78svh, 760px);
  overflow: hidden;
  display: grid;
  align-items: center;
  justify-items: center;
  background: transparent;
}

.story-image::before {
  content: none;
}

.tv-scene {
  isolation: isolate;
  transform: none;
}

.tv-scene::before {
  content: none;
}

.tv-scene::after {
  content: none;
  position: absolute;
  inset: -1px;
  z-index: 1;
  border: 1px solid rgba(5, 5, 6, .2);
  box-shadow:
    0 34px 64px rgba(5, 5, 6, .24),
    0 1px 0 rgba(255, 255, 255, .28) inset;
  pointer-events: none;
}

.story-copy {
  position: relative;
  z-index: 1;
  max-width: 690px;
}

.tv-room {
  position: relative;
  width: min(106%, 900px);
  aspect-ratio: 1.35 / 1;
  overflow: hidden;
}

.tv-room::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background:
    linear-gradient(90deg, rgba(128, 98, 66, .18), rgba(213, 187, 146, .1)),
    repeating-linear-gradient(90deg, rgba(5, 5, 6, .06) 0 1px, transparent 1px 92px);
  border-top: 1px solid rgba(5, 5, 6, .12);
}

.tv-room::after {
  content: "";
  position: absolute;
  left: 13%;
  right: 12%;
  bottom: 23%;
  height: 12%;
  background: rgba(5, 5, 6, .18);
  filter: blur(34px);
  transform: perspective(740px) rotateX(66deg);
}

.story-device {
  position: absolute;
  left: 50%;
  top: 39%;
  z-index: 3;
  width: min(88%, 780px);
  height: auto;
  margin: 0;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 26px 42px rgba(5, 5, 6, .28));
}

.media-console {
  position: absolute;
  left: 11%;
  right: 11%;
  bottom: 12%;
  z-index: 1;
  height: 12%;
  background:
    linear-gradient(180deg, rgba(111, 80, 52, .58), rgba(76, 52, 34, .68)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 34px);
  box-shadow: 0 22px 34px rgba(5, 5, 6, .18);
}

.wall-frame {
  position: absolute;
  left: 6%;
  top: 8%;
  z-index: 1;
  width: min(18%, 150px);
  fill: none;
  stroke: rgba(5, 5, 6, .22);
  stroke-width: 4;
}

.wall-frame path,
.wall-frame circle {
  stroke-width: 3;
}

.plant {
  position: absolute;
  z-index: 4;
  fill: none;
  stroke: rgba(45, 68, 52, .78);
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.plant-left {
  left: 1%;
  bottom: 2%;
  width: min(24%, 180px);
}

.plant-right {
  right: 2%;
  bottom: 5%;
  width: min(18%, 142px);
}

.plant .stem {
  stroke-width: 3.2;
}

.plant .leaf-line {
  stroke-width: 3.4;
}

.plant .pot {
  fill: none;
  stroke: rgba(5, 5, 6, .34);
  stroke-width: 3;
}

.room-line {
  position: absolute;
  z-index: 2;
  fill: none;
  stroke: rgba(5, 5, 6, .26);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.floor-lamp {
  left: 4%;
  bottom: 23%;
  width: min(15%, 128px);
}

.side-table {
  right: 3%;
  bottom: 20%;
  width: min(18%, 168px);
}

.story-copy .eyebrow {
  color: rgba(5, 5, 6, .64);
}

.story-copy h2 {
  max-width: 8.6em;
  color: var(--ink);
}

.story-copy p:not(.eyebrow) {
  max-width: 32em;
  margin-top: 28px;
  color: rgba(5, 5, 6, .7);
}

.story-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.story-points span {
  border: 1px solid rgba(5, 5, 6, .18);
  padding: 11px 14px;
  color: rgba(5, 5, 6, .78);
  background: rgba(243, 239, 231, .38);
  backdrop-filter: none;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.download {
  position: relative;
  min-height: 88svh;
  display: grid;
  grid-template-columns: minmax(0, 760px) auto;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  color: var(--paper);
  border-top: 1px solid var(--line);
  overflow: hidden;
  background: transparent;
}

.download::before {
  content: "";
  position: absolute;
  right: -10vw;
  bottom: -14vh;
  width: 68vw;
  height: 68vw;
  border: 1px solid rgba(213, 181, 110, .18);
  transform: rotate(14deg);
  pointer-events: none;
}

.download::after {
  content: none;
}

.download-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.download-tile {
  position: absolute;
  object-fit: cover;
  opacity: .24;
  border: 1px solid rgba(243, 239, 231, .18);
  filter: saturate(.74);
}

.download-a {
  right: 14vw;
  top: 6vh;
  width: clamp(320px, 39vw, 640px);
  aspect-ratio: 5 / 4;
  transform: rotate(-9deg);
}

.download-b {
  right: -1vw;
  bottom: 2vh;
  width: clamp(190px, 22vw, 360px);
  aspect-ratio: 3 / 4;
  transform: rotate(12deg);
  opacity: .2;
}

.download-lines {
  position: absolute;
  right: clamp(20px, 5vw, 92px);
  top: 14vh;
  width: min(58vw, 820px);
  fill: none;
  stroke: rgba(213, 181, 110, .34);
  stroke-width: 2;
}

.download h2 {
  max-width: 10.5em;
  color: var(--paper);
}

.download p:not(.eyebrow) {
  max-width: 34em;
  margin-top: 24px;
  color: var(--paper-soft);
}

.download-copy,
.download-button {
  position: relative;
  z-index: 1;
}

.download-button {
  min-width: min(100%, 310px);
  min-height: 76px;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.download .eyebrow {
  color: var(--gold);
}

.more-sites {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr);
  align-items: end;
  gap: clamp(28px, 6vw, 96px);
  padding: 74px clamp(20px, 5vw, 92px);
  color: var(--paper);
  background:
    linear-gradient(180deg, rgba(5, 5, 6, .98), rgba(12, 12, 11, 1)),
    radial-gradient(circle at 76% 20%, rgba(213, 181, 110, .14), transparent 34vw);
  border-top: 1px solid var(--line);
}

.more-sites-copy h2 {
  font-size: clamp(34px, 4.6vw, 72px);
}

.site-links {
  display: grid;
  gap: 12px;
}

.site-link {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 16px 18px;
  border: 1px solid rgba(243, 239, 231, .16);
  background: rgba(243, 239, 231, .035);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.site-link:hover {
  transform: translateY(-2px);
  border-color: rgba(213, 181, 110, .46);
  background: rgba(243, 239, 231, .065);
}

.site-link img {
  width: 32px;
  height: 32px;
}

.site-link span {
  display: grid;
  gap: 4px;
}

.site-link strong {
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-link small {
  color: var(--paper-muted);
  font-size: 13px;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(20px, 5vw, 92px);
  border-top: 1px solid var(--line);
  color: var(--paper-muted);
  font-size: 13px;
}

.site-footer span:first-child {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 900;
}

.site-footer-brand {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.site-disclaimer {
  max-width: 620px;
  color: var(--paper-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.7;
  text-align: right;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 760ms ease, transform 760ms cubic-bezier(.2, 0, .2, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
    padding: 20px;
    mix-blend-mode: normal;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 112px 20px 48px;
  }

  .tile-a {
    right: -2vw;
    top: 14vh;
    width: 154px;
  }

  .tile-b {
    right: -44vw;
    top: 26vh;
    width: 390px;
  }

  .tile-c {
    left: -36vw;
    bottom: 10vh;
    width: 290px;
  }

  .tile-d {
    display: block;
    right: -28vw;
    bottom: 22vh;
    width: 240px;
  }

  .hero-copy {
    width: 100%;
    max-width: 350px;
  }

  .hero-copy p,
  .hero-copy h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(36px, 10.5vw, 56px);
  }

  h2 {
    font-size: clamp(34px, 10.5vw, 58px);
  }

  .hero-visual {
    transform: none;
  }

  .hero-visual img {
    width: 122%;
    max-width: none;
    margin-left: -8%;
    transform: none;
  }

  .hero-lead {
    font-size: clamp(15px, 1.25vw, 22px);
  }

  .hero-copy .hero-lead {
    max-width: 100%;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
    margin-bottom: clamp(24px, 7vw, 48px);
  }

  .button {
    min-width: 0;
    padding: 0 16px;
  }

  .art-story,
  .download {
    padding: 76px 20px;
  }

  .art-story,
  .download {
    grid-template-columns: 1fr;
  }

  .art-story {
    min-height: auto;
    gap: 52px;
    padding: 76px 20px 0;
    background:
      linear-gradient(180deg, rgba(243, 239, 231, .97), rgba(243, 239, 231, .82)),
      url("./assets/wave.webp") center / cover;
  }

  .art-story::before {
    inset: 14px;
    background: transparent;
  }

  .art-story::after {
    content: none;
  }

  .story-ornament {
    left: -42vw;
    right: auto;
    top: 12vh;
    bottom: auto;
    width: 126vw;
  }

  .story-image {
    position: relative;
    inset: auto;
    order: 2;
    width: 100%;
    min-height: 0;
    height: clamp(300px, 68vw, 490px);
    margin: 0;
    overflow: visible;
  }

  .story-image::before {
    content: none;
  }

  .story-image img {
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
  }

  .tv-room {
    width: min(100%, 620px);
    justify-self: center;
    margin-inline: auto;
    transform: none;
    overflow: visible;
  }

  .story-device {
    top: 39%;
    width: 88%;
    margin: 0;
  }

  .media-console {
    left: 11%;
    right: 11%;
    bottom: 9%;
    height: 14%;
  }

  .wall-frame {
    left: 6%;
    top: 8%;
    width: 17%;
  }

  .plant-left {
    left: 1%;
    bottom: -1%;
    width: 22%;
  }

  .plant-right {
    right: 2%;
    bottom: 2%;
    width: 17%;
  }

  .floor-lamp {
    left: 4%;
    bottom: 21%;
    width: 15%;
  }

  .side-table {
    right: 3%;
    bottom: 18%;
    width: 18%;
  }

  .story-copy {
    order: 1;
    align-self: end;
    max-width: 100%;
  }

  .story-copy h2 {
    max-width: 100%;
  }

  .story-points {
    gap: 8px;
  }

  .story-points span {
    padding: 10px 11px;
    font-size: 11px;
  }

  .download {
    align-items: start;
    min-height: auto;
    background: transparent;
  }

  .download::before {
    right: -10vw;
    bottom: -14vh;
    width: 68vw;
    height: 68vw;
  }

  .download-a {
    right: -36vw;
    top: 8vh;
    width: 340px;
  }

  .download-b {
    right: 3vw;
    bottom: 4vh;
    width: 170px;
  }

  .download-lines {
    right: -36vw;
    top: 18vh;
    width: 520px;
    opacity: .8;
  }

  .download-button {
    width: 100%;
    min-height: 62px;
  }

  .more-sites {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 58px 20px;
  }

  .site-link {
    min-height: 68px;
    padding: 14px;
  }

  .site-footer {
    display: grid;
  }

  .site-footer-brand {
    display: grid;
    gap: 6px;
  }

  .site-disclaimer {
    text-align: left;
  }
}

/* Narrow phones: keep the complete TV scene visually centered within the content width. */
@media (max-width: 599px) {
  .tv-room {
    width: 95%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
