:root {
  color-scheme: dark;
  --ink: #f3f0e9;
  --muted: rgba(243, 240, 233, 0.62);
  --quiet: rgba(243, 240, 233, 0.38);
  --line: rgba(255, 255, 255, 0.22);
  --accent: #f2a950;
  --bg: #090909;
  --serif: "Bodoni Moda", Didot, serif;
  --sans: "Manrope", sans-serif;
  --mono: "DM Mono", monospace;
  --display-family: "Bodoni Moda", Didot, serif;
  --display-weight: 400;
  --display-stretch: normal;
  --display-transform: none;
  --display-hero-spacing: -0.067em;
  --display-title-spacing: -0.065em;
  --display-tile-spacing: -0.045em;
  --film-0: #c55f46;
  --film-1: #d3a652;
  --film-2: #4f8176;
  --film-3: #52758d;
  --film-4: #8f647d;
  --film-opacity: 0.5;
  --film-grain: 0.16;
  --film-source-filter: saturate(0.9) contrast(1.04) brightness(1.03);
}

body[data-display-font="flex"] {
  --display-family: "Roboto Flex", sans-serif;
  --display-weight: 1000;
  --display-stretch: 25%;
  --display-transform: uppercase;
  --display-hero-spacing: -0.055em;
  --display-title-spacing: -0.052em;
  --display-tile-spacing: -0.035em;
}

body[data-display-font="barlow"] {
  --display-family: "Barlow Condensed", sans-serif;
  --display-weight: 900;
  --display-stretch: normal;
  --display-transform: uppercase;
  --display-hero-spacing: -0.052em;
  --display-title-spacing: -0.048em;
  --display-tile-spacing: -0.025em;
}

body[data-display-font="anton"] {
  --display-family: "Anton", sans-serif;
  --display-weight: 400;
  --display-stretch: normal;
  --display-transform: uppercase;
  --display-hero-spacing: -0.044em;
  --display-title-spacing: -0.04em;
  --display-tile-spacing: -0.022em;
}

body[data-display-font="oswald"] {
  --display-family: "Oswald", sans-serif;
  --display-weight: 700;
  --display-stretch: normal;
  --display-transform: uppercase;
  --display-hero-spacing: -0.046em;
  --display-title-spacing: -0.042em;
  --display-tile-spacing: -0.025em;
}

body[data-display-font="teko"] {
  --display-family: "Teko", sans-serif;
  --display-weight: 700;
  --display-stretch: normal;
  --display-transform: uppercase;
  --display-hero-spacing: -0.04em;
  --display-title-spacing: -0.035em;
  --display-tile-spacing: -0.018em;
}

body[data-film="editorial"] {
  --film-0: #c55f46;
  --film-1: #d3a652;
  --film-2: #4f8176;
  --film-3: #52758d;
  --film-4: #8f647d;
  --film-opacity: 0.5;
  --film-grain: 0.16;
  --film-source-filter: saturate(0.9) contrast(1.04) brightness(1.03);
}

body[data-film="garden"] {
  --film-0: #244d4a;
  --film-1: #5f7448;
  --film-2: #cb9146;
  --film-3: #78475f;
  --film-4: #b66f5b;
  --film-opacity: 0.52;
  --film-grain: 0.18;
  --film-source-filter: saturate(0.82) contrast(1.08) brightness(0.99);
}

body[data-film="coastal"] {
  --film-0: #2f7076;
  --film-1: #66aaa3;
  --film-2: #d0b270;
  --film-3: #b65f4c;
  --film-4: #4f627d;
  --film-opacity: 0.47;
  --film-grain: 0.13;
  --film-source-filter: saturate(0.86) contrast(1.02) brightness(1.08);
}

body[data-film="orchid"] {
  --film-0: #754c72;
  --film-1: #ad687d;
  --film-2: #d49a73;
  --film-3: #5b7190;
  --film-4: #8aa392;
  --film-opacity: 0.49;
  --film-grain: 0.15;
  --film-source-filter: saturate(0.86) contrast(1.03) brightness(1.04);
}

body[data-film="glass"] {
  --film-0: #8fcfc7;
  --film-1: #aa99d3;
  --film-2: #e4bd84;
  --film-3: #d899ae;
  --film-4: #91b8d5;
  --film-opacity: 0.35;
  --film-grain: 0.1;
  --film-source-filter: saturate(0.88) contrast(1.02) brightness(1.08);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
}

body {
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a { -webkit-tap-highlight-color: transparent; }

button { color: inherit; font: inherit; }

a { color: inherit; }

::selection { background: var(--accent); color: #111; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 12px;
  background: #fff;
  color: #000;
  font-family: var(--mono);
  font-size: 12px;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.reel,
.start-screen,
.project-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
}

.reel { isolation: isolate; background: #090909; }

.grid-glow {
  position: fixed;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  opacity: 0.62;
  pointer-events: none;
  mix-blend-mode: screen;
}

.ambient {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #080808;
}

.ambient-orb {
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.14;
  will-change: transform, background;
  transition: background 1.2s ease;
}

.ambient-orb-a { top: -35vw; right: -15vw; background: var(--accent); animation: driftA 14s ease-in-out infinite alternate; }
.ambient-orb-b { bottom: -45vw; left: -15vw; background: #5d7ca8; animation: driftB 18s ease-in-out infinite alternate; }

@keyframes driftA { to { transform: translate(-8vw, 11vw) scale(1.15); } }
@keyframes driftB { to { transform: translate(12vw, -8vw) scale(0.9); } }

.grain {
  position: absolute;
  inset: -100%;
  width: 300%;
  height: 300%;
  opacity: 0.055;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  animation: grain 0.22s steps(2) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(2%, -3%); }
  50% { transform: translate(-4%, 2%); }
  75% { transform: translate(3%, 4%); }
  100% { transform: translate(-2%, -3%); }
}

/* Opening frame */
.start-screen {
  z-index: 20;
  padding: 9px;
  overflow: hidden;
  background: #030403;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.75s ease, visibility 0.75s;
}

.start-screen.is-active { opacity: 1; visibility: visible; }

.start-screen.is-leaving {
  opacity: 0;
  transform: scale(1.012);
  filter: blur(6px);
  transition: opacity 0.62s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.62s ease, visibility 0.62s;
}

.atlas-shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.78;
  pointer-events: none;
}

.atlas-grid {
  position: absolute;
  inset: 9px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.16);
}

.atlas-intro,
.atlas-tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 0;
  background: rgba(5,6,5,0.86);
  color: var(--ink);
}

.atlas-intro {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(19px, 2.1vw, 34px);
  background: rgba(5,6,5,0.72);
}

.atlas-intro::after {
  content: "";
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  right: -16%;
  bottom: -62%;
  border: 1px solid rgba(124,247,199,0.22);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(124,247,199,0.08), inset 0 0 70px rgba(124,247,199,0.04);
  pointer-events: none;
}

.atlas-intro-top,
.atlas-intro-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.atlas-intro-top a { color: rgba(255,255,255,0.72); text-decoration: none; }
.atlas-intro-top a:first-child { color: #fff; }
.atlas-intro-top a:last-child { transition: color 0.25s ease; }
.atlas-intro-top a:last-child:hover { color: #7cf7c7; }

.atlas-intro-actions { display: flex; align-items: center; gap: clamp(12px,1.4vw,22px); }
.type-lab-trigger,
.film-lab-trigger {
  padding: 0;
  border: 0;
  background: transparent;
  color: #7cf7c7;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.type-lab-trigger::after,
.film-lab-trigger::after { content: " ↘"; }
.type-lab-trigger:hover,
.film-lab-trigger:hover { color: #fff; }

.atlas-intro-copy {
  position: relative;
  z-index: 2;
  padding: 12px 0;
}

.atlas-intro-copy p {
  margin: 0 0 clamp(10px,1.4vh,17px);
  color: #7cf7c7;
  font: 400 clamp(0.48rem,0.53vw,0.58rem)/1.5 var(--mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.atlas-intro h1 {
  max-width: 9ch;
  margin: 0;
  font-family: var(--display-family);
  font-size: clamp(2.55rem, 4.05vw, 4.7rem);
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
  letter-spacing: var(--display-hero-spacing);
  line-height: 0.82;
  text-transform: var(--display-transform);
  text-wrap: balance;
}

.atlas-intro h1 em { color: rgba(255,255,255,0.55); font-weight: 400; }
body[data-display-font] .atlas-intro h1 { max-width: 7ch; font-size: clamp(3.3rem,5.4vw,6.15rem); line-height: 0.74; }
body[data-display-font] .atlas-intro h1 em { font-style: normal; font-weight: inherit; }

.start-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.start-button svg {
  width: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.start-button:hover svg,
.start-button:focus-visible svg { transform: translateX(5px); }

.atlas-intro-footer > span { color: rgba(255,255,255,0.3); }

.atlas-tile {
  --mx: 50%;
  --my: 50%;
  display: block;
  padding: 0;
  cursor: pointer;
  text-align: left;
  isolation: isolate;
}

.atlas-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(190px circle at var(--mx) var(--my), color-mix(in srgb, var(--tile-accent) 34%, transparent), transparent 72%);
  mix-blend-mode: screen;
  transition: opacity 0.25s ease;
}

.atlas-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 28%, rgba(0,0,0,0.82) 100%);
}

.atlas-tile:hover::before,
.atlas-tile:focus-visible::before { opacity: 1; }

.atlas-thumb,
.atlas-demo,
.atlas-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.atlas-thumb { overflow: hidden; background: #0c0d0c; filter: var(--film-source-filter); transition: filter 0.45s ease; }
.atlas-video { object-fit: cover; filter: saturate(0.78) contrast(1.08) brightness(0.75); transition: transform 0.7s cubic-bezier(0.22,1,0.36,1), filter 0.5s ease; }
.atlas-video-dex { object-fit: contain; background: #0a0906; transform: scale(1.18); }
.atlas-tile:hover .atlas-video { transform: scale(1.055); filter: saturate(1) contrast(1.06) brightness(0.88); }
.atlas-tile:hover .atlas-video-dex { transform: scale(1.24); }

.atlas-film {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(var(--film-angle), rgba(2,4,3,0.2), transparent 42%, rgba(255,255,255,0.045)),
    linear-gradient(125deg, color-mix(in srgb, var(--film-tint) 9%, transparent), transparent 46%, color-mix(in srgb, var(--film-tint-alt) 8%, transparent)),
    radial-gradient(circle at 50% 112%, rgba(0,0,0,0.6), transparent 58%);
}

.atlas-film::before {
  content: "";
  position: absolute;
  inset: -34%;
  opacity: var(--film-opacity);
  background:
    radial-gradient(circle at var(--film-x) var(--film-y), color-mix(in srgb, var(--tile-accent) 48%, var(--film-tint)) 0, color-mix(in srgb, var(--film-tint) 32%, transparent) 24%, transparent 51%),
    radial-gradient(circle at calc(100% - var(--film-x)) calc(100% - var(--film-y)), color-mix(in srgb, var(--film-tint-alt) 52%, transparent) 0, transparent 43%),
    conic-gradient(from var(--film-angle) at 52% 46%, transparent 0 14%, color-mix(in srgb, var(--film-tint) 48%, transparent) 25%, transparent 39% 57%, color-mix(in srgb, var(--film-tint-alt) 50%, transparent) 69%, transparent 84%);
  filter: blur(17px) saturate(1.25);
  mix-blend-mode: color;
  transform: translate3d(-1.5%, -1%, 0) rotate(-2deg) scale(1.02);
  animation: atlasFilmDrift 10.5s ease-in-out var(--film-delay) infinite alternate;
  transition: opacity 0.35s ease, filter 0.35s ease;
}

.atlas-film::after {
  content: "";
  position: absolute;
  inset: -18%;
  opacity: var(--film-grain);
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='.86'/%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.055) 0 1px, transparent 1px 4px);
  background-size: 150px 150px, 100% 4px;
  mix-blend-mode: soft-light;
  animation: atlasFilmGrain 0.38s steps(2) var(--film-delay) infinite;
}

.atlas-tile:hover .atlas-film::before,
.atlas-tile:focus-visible .atlas-film::before {
  opacity: min(0.67, calc(var(--film-opacity) + 0.12));
  filter: blur(13px) saturate(1.4);
}

@keyframes atlasFilmDrift {
  to { transform: translate3d(2.5%, 1.5%, 0) rotate(3deg) scale(1.08); }
}

@keyframes atlasFilmGrain {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(2%, -3%, 0); }
  50% { transform: translate3d(-3%, 1%, 0); }
  75% { transform: translate3d(1%, 3%, 0); }
  100% { transform: translate3d(-2%, -1%, 0); }
}

body[data-film="glass"] .atlas-film {
  inset: 5px;
  border: 1px solid rgba(231, 247, 248, 0.26);
  border-radius: 5px;
  background:
    linear-gradient(112deg, rgba(196, 231, 234, 0.085), rgba(7, 18, 24, 0.025) 48%, rgba(236, 215, 198, 0.07)),
    rgba(9, 22, 29, 0.055);
  box-shadow:
    inset 1px 1px 0 rgba(245, 252, 251, 0.25),
    inset -1px -1px 0 rgba(3, 13, 18, 0.3),
    0 14px 38px rgba(1, 8, 12, 0.17);
  -webkit-backdrop-filter: blur(2.5px) saturate(1.06);
  backdrop-filter: blur(2.5px) saturate(1.06);
}

body[data-film="glass"] .atlas-film::before {
  inset: -38%;
  opacity: 0.45;
  background:
    radial-gradient(circle at var(--film-x) var(--film-y), color-mix(in srgb, var(--film-tint) 38%, transparent), transparent 35%),
    linear-gradient(112deg, transparent 32%, rgba(151, 219, 226, 0.18) 44%, rgba(240, 197, 156, 0.14) 49%, rgba(187, 161, 229, 0.13) 53%, transparent 61%);
  filter: blur(6px) saturate(1.08);
  mix-blend-mode: screen;
  transform: translate3d(-5%, -2%, 0) rotate(3deg);
  animation: glassGlint 9s ease-in-out var(--film-delay) infinite alternate;
}

body[data-film="glass"] .atlas-film::after {
  inset: 0;
  opacity: 0.09;
  border-left: 1px solid rgba(224, 248, 252, 0.44);
  background-size: 170px 170px, 100% 4px;
  mix-blend-mode: soft-light;
}

body[data-film="glass"] .atlas-tile:hover .atlas-film::before,
body[data-film="glass"] .atlas-tile:focus-visible .atlas-film::before { opacity: 0.58; filter: blur(4px) saturate(1.14); }

@keyframes glassGlint {
  to { transform: translate3d(8%, 3%, 0) rotate(3deg); }
}

.atlas-tile-meta {
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 12px;
  z-index: 5;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: end;
  gap: 7px;
}

.atlas-tile-number,
.atlas-tile-kind,
.atlas-tile-open { font-family: var(--mono); text-transform: uppercase; }
.atlas-tile-number { color: rgba(255,255,255,0.42); font-size: 0.47rem; letter-spacing: 0.08em; }
.atlas-tile-name { display: block; overflow: hidden; margin-bottom: 3px; color: #fff; font-family: var(--display-family); font-size: clamp(1.1rem,1.55vw,1.72rem); font-weight: var(--display-weight); font-stretch: var(--display-stretch); line-height: 0.95; letter-spacing: var(--display-tile-spacing); text-transform: var(--display-transform); text-overflow: ellipsis; white-space: nowrap; }
body[data-display-font] .atlas-tile-name { font-size: clamp(1.35rem,1.9vw,2.08rem); line-height: 0.82; }
.atlas-tile-kind { display: block; overflow: hidden; color: rgba(255,255,255,0.45); font-size: 0.42rem; letter-spacing: 0.1em; text-overflow: ellipsis; white-space: nowrap; }
.atlas-tile-open { color: rgba(255,255,255,0.5); font-size: 0.43rem; letter-spacing: 0.1em; transition: color 0.25s ease, transform 0.25s ease; }
.atlas-tile:hover .atlas-tile-open { color: #fff; transform: translateX(2px); }

.atlas-demo { overflow: hidden; background: radial-gradient(circle at 62% 34%, color-mix(in srgb, var(--tile-accent) 32%, transparent), transparent 45%), #080908; }
.atlas-demo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent, rgba(255,255,255,0.025)); }
.demo-polly .mini-phone { position: absolute; left: 54%; top: 43%; width: 34%; aspect-ratio: .52; border: 2px solid rgba(255,255,255,.36); border-radius: 19px; background: #f4eee3; transform: translate(-50%,-50%) rotate(-5deg); box-shadow: 0 20px 35px rgba(0,0,0,.45); }
.demo-polly .mini-phone::before { content: ""; position: absolute; inset: 19% 13% 33%; background: linear-gradient(#e9b9a8 0 42%,#446a59 43%); box-shadow: 0 0 0 4px #fff; }
.demo-polly .mini-phone::after { content: "polly"; position: absolute; left: 0; right: 0; top: 8%; color: #31272a; text-align: center; font: italic 400 12px var(--serif); }
.demo-ocean { background: linear-gradient(145deg,#041316,#062d35); }
.demo-ocean i { position: absolute; left: 8%; right: -8%; height: 1px; border-top: 1px solid rgba(111,208,220,.35); transform: rotate(-7deg); animation: atlasWave 4s ease-in-out infinite alternate; }
.demo-ocean i:nth-child(1) { top: 28%; }.demo-ocean i:nth-child(2) { top: 39%; animation-delay: -.7s; }.demo-ocean i:nth-child(3) { top: 50%; animation-delay: -1.4s; }.demo-ocean i:nth-child(4) { top: 61%; animation-delay: -2.1s; }
@keyframes atlasWave { to { transform: rotate(4deg) translateY(8px); } }
.demo-drop .mini-drop { position: absolute; inset: 18% 13% 28%; display: grid; place-items: center; border: 1px dashed rgba(190,166,255,.55); border-radius: 8px; color: rgba(235,228,255,.7); font: 400 7px var(--mono); letter-spacing: .12em; }
.demo-drop .mini-drop::after { content: ""; position: absolute; width: 24px; height: 31px; border-radius: 3px; background: #eee8ff; box-shadow: 0 9px 20px rgba(0,0,0,.35); animation: miniDrop 3s ease-in-out infinite; }
@keyframes miniDrop { 0%,15% { transform: translateY(-54px) rotate(6deg); opacity: 0; } 40%,80% { transform: translateY(3px) rotate(-2deg); opacity: 1; } 100% { transform: translateY(38px) scale(.7); opacity: 0; } }
.demo-signal .mini-signal { position: absolute; inset: 16% 11% 29%; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.demo-signal i { border: 1px solid rgba(229,131,81,.3); background: rgba(229,131,81,.07); }
.demo-signal i:nth-child(2),.demo-signal i:nth-child(3) { opacity: .62; }
.demo-cuss .mini-cuss { position: absolute; inset: 20% 8% 30%; display: grid; align-content: center; gap: 6px; }
.demo-cuss i { height: 19px; border: 1px solid rgba(199,238,122,.27); border-radius: 99px; background: rgba(199,238,122,.05); }
.demo-cuss i:nth-child(2) { width: 78%; margin-left: auto; }.demo-cuss i:nth-child(3) { width: 66%; }
.demo-taste { background-color: #090a07; background-image: radial-gradient(rgba(245,223,117,.5) 1px, transparent 1px); background-size: 17px 17px; }
.demo-taste::before { content: "FRAG"; position: absolute; left: 50%; top: 42%; color: rgba(245,239,211,.8); font: 400 clamp(2.1rem,3.8vw,4rem)/1 var(--serif); transform: translate(-50%,-50%); }
.demo-gamepad .mini-cards { position: absolute; left: 50%; top: 43%; width: 42%; height: 55%; transform: translate(-50%,-50%); }
.demo-gamepad i { position: absolute; inset: 0; border-radius: 9px; background: #e8edf7; box-shadow: 0 15px 30px rgba(0,0,0,.4); }
.demo-gamepad i:nth-child(1) { transform: rotate(-11deg); opacity: .3; }.demo-gamepad i:nth-child(2) { transform: rotate(9deg); opacity: .5; }.demo-gamepad i:nth-child(3) { transform: rotate(-1deg); }
.demo-ar .mini-room { position: absolute; inset: 16% 9% 29%; background: linear-gradient(165deg,#c8bea7 0 58%,#675b4c 59%); clip-path: polygon(2% 5%,98% 0,92% 98%,0 90%); }
.demo-ar .mini-room::after { content: ""; position: absolute; left: 54%; top: 48%; width: 28%; height: 32%; border-radius: 48% 48% 15% 15%; background: #dba733; box-shadow: 0 10px 0 -4px #8b6825; }
.demo-data .mini-bars { position: absolute; inset: 18% 11% 30%; display: flex; align-items: end; gap: 4px; }
.demo-data i { flex: 1; height: var(--bar); background: linear-gradient(#71dfb7,rgba(113,223,183,.08)); animation: miniBar 3s ease-in-out infinite alternate; }
@keyframes miniBar { to { height: 18%; } }
.demo-recorder .mini-screen { position: absolute; inset: 17% 10% 29%; border: 1px solid rgba(255,255,255,.16); background: #202124; }
.demo-recorder .mini-screen::before { content: ""; position: absolute; inset: 16% 20%; border: 1px solid #ef6666; }
.demo-recorder .mini-screen::after { content: "REC"; position: absolute; right: 8%; bottom: 8%; color: #ef6666; font: 500 7px var(--mono); }

.start-button:focus-visible,
.atlas-tile:focus-visible,
.arrow-button:focus-visible,
.wordmark:focus-visible,
.nav-link:focus-visible,
.type-lab-trigger:focus-visible,
.film-lab-trigger:focus-visible,
.index-close:focus-visible,
.sound-button:focus-visible { outline: 1px solid #fff; outline-offset: 5px; }

.type-option:focus-visible,
.film-option:focus-visible,
.type-lab-close:focus-visible,
.type-lab-footer button:focus-visible { outline: 2px solid #111; outline-offset: -4px; }

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(0.61rem, 0.68vw, 0.72rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}

/* Project shell */
.project-screen {
  z-index: 10;
  overflow: hidden;
  background: #0a0a0a;
}

.project-screen[hidden] { display: none; }

.project-screen.is-entering { animation: screenIn 0.85s ease both; }

@keyframes screenIn { from { opacity: 0; transform: scale(0.985); } }

.visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0a0a0a;
}

.visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.06);
  z-index: 30;
}

.visual-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  filter: saturate(0.94) contrast(1.06);
  opacity: 0;
  transition: opacity 0.65s ease;
}

.visual-video.is-ready { opacity: 1; }

.video-poster {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 65% 30%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 42%),
    linear-gradient(135deg, #141414, #050505);
}

.project-shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4,4,4,0.87) 0%, rgba(4,4,4,0.64) 33%, rgba(4,4,4,0.05) 66%, rgba(4,4,4,0.15) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.24), transparent 34%, rgba(0,0,0,0.47));
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(27px, env(safe-area-inset-top)) clamp(26px, 4vw, 64px) 0;
}

.site-header nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); }

.wordmark,
.nav-link {
  border: 0;
  padding: 0;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wordmark { color: #fff; }
.nav-link { position: relative; color: rgba(255,255,255,0.6); }

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.project-copy {
  position: absolute;
  z-index: 10;
  left: clamp(26px, 6.5vw, 110px);
  bottom: clamp(82px, 11vh, 132px);
  width: min(600px, calc(100vw - 210px));
  transition: opacity 0.24s ease, transform 0.24s ease, filter 0.24s ease;
}

.project-screen.is-changing .project-copy {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(3px);
}

.project-copy.is-fresh { animation: copyIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) both; }

@keyframes copyIn {
  from { opacity: 0; transform: translateY(25px); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.project-number,
.project-kind,
.project-stack,
.project-proof {
  font-family: var(--mono);
  text-transform: uppercase;
}

.project-number {
  margin-bottom: clamp(32px, 6vh, 68px);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.48);
}

.project-kind {
  margin: 0 0 12px;
  font-size: 0.61rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.project-copy h2 {
  margin: 0;
  max-width: 10ch;
  font-family: var(--display-family);
  font-size: clamp(4.1rem, 8.6vw, 8.4rem);
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
  line-height: 0.84;
  letter-spacing: var(--display-title-spacing);
  text-transform: var(--display-transform);
  text-wrap: balance;
}

body[data-display-font] .project-copy h2 { max-width: 8ch; font-size: clamp(5rem,10.8vw,10.8rem); line-height: 0.72; }

.project-line {
  max-width: 42ch;
  margin: clamp(22px, 3vh, 32px) 0 0;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.82);
  text-wrap: balance;
}

.project-proof {
  margin: 11px 0 0;
  font-size: clamp(0.58rem, 0.7vw, 0.68rem);
  line-height: 1.6;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
}

.project-footer {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  margin-top: clamp(26px, 4vh, 44px);
}

.project-stack {
  max-width: 44ch;
  margin: 0;
  font-size: 0.57rem;
  line-height: 1.65;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 9px 11px 9px 13px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
  background: rgba(0,0,0,0.12);
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.project-link[hidden] { display: none; }

.project-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  transition: transform 0.3s ease;
}

.project-link:hover { border-color: rgba(255,255,255,0.72); background: rgba(255,255,255,0.08); }
.project-link:hover svg { transform: translate(2px, -2px); }

.reel-controls {
  position: absolute;
  right: clamp(25px, 4vw, 64px);
  bottom: clamp(28px, 5vh, 56px);
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  width: min(420px, 40vw);
  border-top: 1px solid rgba(255,255,255,0.24);
}

.arrow-button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  height: 51px;
  padding: 9px 10px 8px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  text-align: left;
}

#next-button { justify-content: flex-end; padding: 9px 0 8px 10px; text-align: right; }

.arrow-button svg {
  flex: 0 0 40px;
  width: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 0.8;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s;
}

.control-copy { display: grid; min-width: 0; gap: 3px; }
.control-copy small,
.control-copy b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); text-transform: uppercase; }
.control-copy small { color: rgba(255,255,255,0.38); font-size: 0.46rem; font-weight: 400; letter-spacing: 0.16em; }
.control-copy b { color: rgba(255,255,255,0.82); font-size: 0.55rem; font-weight: 400; letter-spacing: 0.1em; }

.arrow-button:hover { color: #fff; }
#prev-button:hover svg { transform: translateX(-7px); }
#next-button:hover svg { transform: translateX(7px); }

.project-rail {
  position: absolute;
  top: 50%;
  right: clamp(27px, 4vw, 64px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-50%);
}

.rail-dot {
  width: 18px;
  height: 1px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.rail-dot::before {
  content: "";
  display: block;
  width: 7px;
  height: 1px;
  margin-left: auto;
  background: rgba(255,255,255,0.3);
  transition: width 0.25s ease, background 0.25s ease;
}

.rail-dot:hover::before { width: 12px; }
.rail-dot.is-active::before { width: 18px; background: #fff; }

.sound-button {
  position: absolute;
  left: clamp(26px, 4vw, 64px);
  bottom: clamp(28px, 5vh, 56px);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  color: rgba(255,255,255,0.48);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sound-button[hidden] { display: none; }
.sound-bars { display: flex; align-items: center; gap: 2px; height: 10px; }
.sound-bars i { width: 1px; height: 4px; background: currentColor; }
.sound-bars i:nth-child(2) { height: 9px; }
.sound-bars i:nth-child(3) { height: 6px; }
.sound-button.is-on .sound-bars i { animation: soundBar 0.7s ease-in-out infinite alternate; }
.sound-button.is-on .sound-bars i:nth-child(2) { animation-delay: -0.3s; }
.sound-button.is-on .sound-bars i:nth-child(3) { animation-delay: -0.5s; }
@keyframes soundBar { to { height: 2px; } }

/* Project-specific authored visuals */
.scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 45%, var(--scene-glow, rgba(255,255,255,0.1)), transparent 38%);
}

.scene-phone {
  --scene-glow: rgba(229, 180, 92, 0.28);
  background: linear-gradient(135deg, #17130d 0%, #0b0a08 42%, #060606 100%);
}

.scene-dex-video {
  --scene-glow: rgba(234, 184, 66, 0.25);
  background: radial-gradient(circle at 70% 45%, #282318 0, #0d0c09 39%, #050505 76%);
}

.dex-video-halo {
  position: absolute;
  left: 70%;
  top: 49%;
  width: min(46vw, 650px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(234,184,66,0.14);
  filter: blur(90px);
  transform: translate(-50%, -50%);
}

.dex-product-video {
  position: absolute;
  left: 70%;
  top: 50%;
  width: min(39vw, 540px);
  height: min(90vh, 900px);
  object-fit: contain;
  opacity: 0;
  filter: drop-shadow(0 45px 80px rgba(0,0,0,0.72));
  transform: translate(-50%, -50%) scale(0.985);
  transition: opacity 0.55s ease, transform 1s cubic-bezier(0.22,1,0.36,1);
}

.dex-product-video.is-ready { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.phone-shadow { position: absolute; width: 34vw; height: 7vw; border-radius: 50%; background: #000; filter: blur(34px); transform: translate(22vw, 29vh); opacity: 0.7; }

.phone-shell {
  position: absolute;
  top: 50%;
  left: 70%;
  width: clamp(220px, 21vw, 365px);
  aspect-ratio: 0.49;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: clamp(40px, 4vw, 65px);
  background: linear-gradient(145deg, #3a3937, #111, #4a4844);
  box-shadow: -40px 60px 90px rgba(0,0,0,0.65), inset 0 0 0 2px #090909;
  transform: translate(-50%, -50%) rotate(5deg);
  animation: phoneFloat 7s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%,100% { transform: translate(-50%, -50%) rotate(5deg) translateY(0); }
  50% { transform: translate(-50%, -50%) rotate(3.5deg) translateY(-14px); }
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: clamp(33px, 3.5vw, 57px);
  background: #f2eee4;
  color: #161616;
}

.phone-island {
  position: absolute;
  top: 13px;
  left: 50%;
  z-index: 10;
  width: 31%;
  height: 24px;
  border-radius: 99px;
  background: #050505;
  transform: translateX(-50%);
}

.dex-screen { padding: 62px 18px 18px; background: #eee8d8; }
.dex-brand { display: flex; justify-content: space-between; align-items: center; font: 700 17px/1 var(--sans); }
.dex-brand b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #eab842; font: 500 12px var(--mono); }
.dex-status { margin: 20px 0 10px; font: 500 9px var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: #5d5b54; }
.dex-card { margin: 8px 0; padding: 14px; border: 1px solid #cac3b3; border-radius: 15px; background: rgba(255,255,255,0.53); }
.dex-card-top { display: flex; justify-content: space-between; font: 500 9px var(--mono); color: #777166; }
.dex-card h4 { margin: 16px 0 7px; font-size: 15px; line-height: 1.05; }
.dex-card p { margin: 0; font: 400 9px/1.45 var(--mono); color: #716b60; }
.dex-pulse { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #4b9b63; box-shadow: 0 0 0 4px rgba(75,155,99,0.15); }
.dex-prompt { position: absolute; left: 18px; right: 18px; bottom: 20px; padding: 14px; border-radius: 13px; background: #181816; color: #eee8d8; font: 400 9px var(--mono); }

.polly-scene { --scene-glow: rgba(255, 119, 160, 0.27); background: linear-gradient(145deg, #251a1f, #110e10 48%, #080808); }
.polly-scene .phone-shell { transform: translate(-50%, -50%) rotate(-4deg); }
.polly-scene .phone-screen { background: #f9f4e9; }
.polly-screen { padding: 58px 14px 15px; }
.polly-title { text-align: center; font: italic 600 26px/1 var(--serif); }
.polly-photo { position: relative; width: 88%; margin: 20px auto 0; padding: 9px 9px 42px; background: white; box-shadow: 0 16px 24px rgba(50,30,35,0.16); transform: rotate(-2deg); }
.polly-photo-art { position: relative; overflow: hidden; aspect-ratio: 1; background: linear-gradient(180deg, #e8b9a7, #f3d7b1 42%, #4f6c5c 43%, #263e35); }
.polly-photo-art::before { content: ""; position: absolute; left: 50%; bottom: 12%; width: 38%; height: 55%; border-radius: 50% 50% 22% 22%; background: #1d2625; transform: translateX(-50%); }
.polly-photo-art::after { content: ""; position: absolute; left: 50%; top: 22%; width: 30%; aspect-ratio: 1; border-radius: 50%; background: #c98b77; transform: translateX(-50%); box-shadow: 0 -10px 0 1px #392c2d; }
.polly-caption { position: absolute; bottom: 15px; left: 0; right: 0; text-align: center; font: 400 10px var(--mono); color: #71675f; }
.polly-shutter { position: absolute; bottom: 22px; left: 50%; width: 46px; height: 46px; border: 1px solid #cf9ba7; border-radius: 50%; transform: translateX(-50%); box-shadow: inset 0 0 0 4px #f9f4e9, inset 0 0 0 6px #cf9ba7; }

.scene-taste { --scene-glow: rgba(245,223,117,0.18); background: #070806; }
.taste-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.taste-study { position: absolute; left: 72%; top: 50%; width: min(31vw, 440px); transform: translate(-50%,-50%); }
.taste-study::before { content: ""; position: absolute; inset: -48% -24%; border: 1px solid rgba(245,223,117,0.1); border-radius: 50%; box-shadow: 0 0 90px rgba(245,223,117,0.08); }
.taste-study span { display: block; margin-bottom: 18px; color: rgba(245,223,117,0.58); font: 400 9px var(--mono); letter-spacing: 0.18em; }
.taste-study strong { position: relative; font: 400 clamp(4rem,7vw,7.4rem)/0.76 var(--serif); letter-spacing: -0.075em; color: #f3edd7; }

.scene-ocean { --scene-glow: rgba(69, 179, 206, 0.34); background: linear-gradient(150deg, #051113, #071e24 52%, #020707); }
.ocean-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.93; }
.ocean-window { position: absolute; left: 62%; top: 50%; width: min(49vw, 720px); height: min(63vh, 610px); transform: translate(-42%, -50%); border: 1px solid rgba(160,231,239,0.3); border-radius: 7px; background: rgba(5,23,27,0.24); box-shadow: 0 40px 100px rgba(0,0,0,0.4), inset 0 1px rgba(255,255,255,0.1); backdrop-filter: blur(8px); }
.ocean-window-top { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 16px; border-bottom: 1px solid rgba(160,231,239,0.15); font: 400 9px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(195,238,242,0.6); }
.ocean-query { position: absolute; left: 8%; right: 8%; top: 24%; padding: 18px; border: 1px solid rgba(255,255,255,0.12); border-radius: 4px; color: rgba(229,246,247,0.82); font: 400 clamp(13px,1.2vw,17px)/1.5 var(--sans); }
.ocean-answer { position: absolute; left: 8%; right: 8%; top: 48%; display: grid; gap: 9px; }
.ocean-answer i { display: block; height: 6px; border-radius: 9px; background: rgba(145,218,225,0.2); }
.ocean-answer i:nth-child(2) { width: 88%; }
.ocean-answer i:nth-child(3) { width: 72%; }
.ocean-sources { position: absolute; left: 8%; bottom: 8%; font: 400 9px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #6cc5cf; }

.scene-drop { --scene-glow: rgba(136, 96, 255, 0.35); background: radial-gradient(circle at 73% 50%, #221b3e, #0c0a10 47%, #050505); }
.drop-window { position: absolute; top: 50%; left: 69%; width: min(46vw, 660px); aspect-ratio: 1.46; overflow: hidden; border: 1px solid rgba(255,255,255,0.17); border-radius: 14px; background: rgba(15,12,20,0.8); box-shadow: 0 50px 110px rgba(0,0,0,0.56); transform: translate(-50%, -50%) perspective(900px) rotateY(-7deg); }
.drop-chrome { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.drop-chrome i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.24); }
.drop-zone { position: absolute; inset: 18% 10% 15%; display: grid; place-items: center; border: 1px dashed rgba(188,164,255,0.48); border-radius: 10px; background: rgba(117,77,222,0.07); text-align: center; }
.drop-icon { position: relative; width: 70px; height: 52px; margin: 0 auto 20px; border: 1px solid rgba(222,211,255,0.72); border-radius: 3px; }
.drop-icon::before { content: ""; position: absolute; top: -8px; left: 10px; width: 25px; height: 8px; border: 1px solid rgba(222,211,255,0.72); border-bottom: 0; border-radius: 3px 3px 0 0; }
.drop-zone strong { display: block; font: 500 clamp(16px,1.7vw,22px) var(--sans); }
.drop-zone span { display: block; margin-top: 8px; font: 400 9px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.drop-file { position: absolute; top: 27%; left: 70%; width: 48px; height: 62px; border-radius: 4px; background: #f1ebff; box-shadow: 0 14px 28px rgba(0,0,0,0.3); animation: fileDrop 3.2s ease-in-out infinite; }
.drop-file::before { content: "HTML"; position: absolute; left: 0; right: 0; top: 25px; text-align: center; color: #6a4eb2; font: 500 7px var(--mono); }
@keyframes fileDrop { 0%,15% { transform: translateY(-90px) rotate(7deg); opacity: 0; } 35%,75% { transform: translateY(0) rotate(-2deg); opacity: 1; } 90%,100% { transform: translateY(55px) scale(0.75); opacity: 0; } }

.scene-signal { --scene-glow: rgba(240, 128, 68, 0.28); background: linear-gradient(135deg, #160e0b, #080706 48%, #040404); }
.signal-board { position: absolute; left: 66%; top: 50%; width: min(51vw, 760px); height: min(66vh, 640px); padding: 28px; transform: translate(-40%, -50%); border: 1px solid rgba(255,184,140,0.2); background: rgba(16,10,8,0.7); box-shadow: 0 35px 90px rgba(0,0,0,0.48); }
.signal-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; }
.signal-head b { font: 500 clamp(22px,2.3vw,35px) var(--serif); }
.signal-head span { font: 400 9px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #e58351; }
.signal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.signal-card { min-height: 132px; padding: 16px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.025); }
.signal-card small { color: rgba(255,255,255,0.4); font: 400 8px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.signal-card p { margin: 26px 0 0; font-size: clamp(11px, 0.9vw, 14px); line-height: 1.4; color: rgba(255,255,255,0.75); }
.signal-score { position: absolute; right: 13px; top: 13px; width: 22px; height: 22px; border: 1px solid #e58351; border-radius: 50%; color: #e58351; text-align: center; font: 400 7px/20px var(--mono); }
.signal-scan { position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, #e58351, transparent); box-shadow: 0 0 14px #e58351; opacity: 0.7; animation: scan 5s linear infinite; }
@keyframes scan { from { top: 0; } to { top: 100%; } }

.scene-cuss { --scene-glow: rgba(196, 247, 106, 0.2); background: linear-gradient(145deg, #12160c, #080906 53%, #040404); }
.cuss-cloud { position: absolute; left: 69%; top: 49%; width: min(47vw, 690px); transform: translate(-50%, -50%); }
.review-chip { position: relative; margin: 12px; padding: 19px 22px; border: 1px solid rgba(205,248,128,0.17); border-radius: 99px; background: rgba(205,248,128,0.04); color: rgba(240,249,222,0.74); font: 400 clamp(11px,0.9vw,14px)/1.4 var(--sans); animation: chipFloat 5s ease-in-out infinite; }
.review-chip:nth-child(2) { width: 84%; margin-left: auto; animation-delay: -1.2s; }
.review-chip:nth-child(3) { width: 72%; animation-delay: -2.4s; }
.review-chip:nth-child(4) { width: 91%; margin-left: auto; animation-delay: -3.6s; }
.review-chip b { margin-right: 11px; color: #c7ee7a; font: 500 9px var(--mono); }
@keyframes chipFloat { 50% { transform: translateY(-7px); } }

.scene-gamepad { --scene-glow: rgba(100, 151, 255, 0.28); background: radial-gradient(circle at 72% 46%, #16233d, #090c12 45%, #050505 72%); }
.gamepad-stack { position: absolute; left: 70%; top: 51%; width: min(37vw, 510px); height: min(68vh, 620px); transform: translate(-50%, -50%); }
.mail-card { position: absolute; inset: 5% 2%; padding: 34px; border-radius: 24px; background: #f2f4f8; color: #12151c; box-shadow: 0 35px 80px rgba(0,0,0,0.45); transform-origin: bottom center; }
.mail-card:nth-child(1) { transform: translate(-38px, -12px) rotate(-8deg); opacity: 0.28; }
.mail-card:nth-child(2) { transform: translate(34px, -5px) rotate(7deg); opacity: 0.5; }
.mail-card:nth-child(3) { animation: cardSwipe 5s ease-in-out infinite; }
.mail-from { display: flex; align-items: center; gap: 12px; font: 600 13px var(--sans); }
.mail-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(145deg,#658fff,#25407a); }
.mail-card h4 { margin: 42px 0 16px; font: 500 clamp(23px,2.4vw,36px)/1.04 var(--serif); }
.mail-card p { color: #686d78; font-size: 12px; line-height: 1.6; }
.mail-actions { position: absolute; left: 30px; right: 30px; bottom: 28px; display: flex; justify-content: space-between; }
.mail-actions i { width: 50px; height: 50px; border: 1px solid #d1d5df; border-radius: 50%; }
.mail-actions i:nth-child(2) { background: #161b26; }
@keyframes cardSwipe { 0%,65% { transform: translateX(0) rotate(0); opacity: 1; } 83%,100% { transform: translateX(130%) rotate(16deg); opacity: 0; } }

.scene-ar { --scene-glow: rgba(255, 211, 105, 0.32); background: linear-gradient(150deg, #19170e, #0c0b08 48%, #050505); perspective: 1000px; }
.ar-room { position: absolute; left: 69%; top: 53%; width: min(54vw, 780px); aspect-ratio: 1.45; transform: translate(-50%, -50%); border: 1px solid rgba(255,255,255,0.16); background: linear-gradient(165deg, #cfc5ad 0 57%, #756957 58% 100%); clip-path: polygon(2% 3%, 98% 0, 93% 96%, 0 90%); }
.ar-room::before { content: ""; position: absolute; left: 19%; top: 12%; width: 24%; height: 43%; background: linear-gradient(145deg, #9fc4ca, #dce6db); border: 9px solid #eee7d7; box-shadow: 180px 10px 0 -45px #5c5549; }
.ar-chair { position: absolute; left: 54%; top: 50%; width: 30%; height: 32%; border-radius: 48% 48% 15% 15%; background: #dca936; box-shadow: 0 26px 0 -11px #9d7429, 0 35px 20px rgba(0,0,0,0.3); transform: rotate(-5deg); }
.ar-chair::before, .ar-chair::after { content: ""; position: absolute; bottom: -35%; width: 6px; height: 50%; background: #312a21; }
.ar-chair::before { left: 16%; transform: rotate(6deg); }
.ar-chair::after { right: 16%; transform: rotate(-6deg); }
.ar-reticle { position: absolute; left: 56%; top: 71%; width: 45%; height: 15%; border: 1px solid rgba(255,245,193,0.7); border-radius: 50%; transform: translate(-50%,-50%); animation: reticle 2.4s ease-in-out infinite; }
@keyframes reticle { 50% { transform: translate(-50%,-50%) scale(1.06); opacity: 0.45; } }

.scene-data { --scene-glow: rgba(88, 214, 170, 0.24); background: linear-gradient(135deg, #071410, #07100e 45%, #030505); }
.data-wall { position: absolute; left: 67%; top: 50%; width: min(52vw, 760px); height: min(68vh, 650px); transform: translate(-40%,-50%); display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.data-panel { position: relative; overflow: hidden; border: 1px solid rgba(111,224,183,0.16); background: rgba(10,29,23,0.62); padding: 20px; }
.data-panel:first-child { grid-row: span 2; }
.data-label { font: 400 8px var(--mono); letter-spacing: 0.13em; color: rgba(151,235,203,0.55); text-transform: uppercase; }
.data-value { margin-top: 16px; font: 400 clamp(34px,4vw,60px)/1 var(--serif); color: #bff7df; }
.data-bars { position: absolute; left: 20px; right: 20px; bottom: 24px; display: flex; align-items: end; gap: 5px; height: 54%; }
.data-bars i { flex: 1; min-width: 3px; background: linear-gradient(#64d7ae, rgba(69,175,138,0.1)); animation: dataBar 3.8s ease-in-out infinite alternate; }
.data-bars i:nth-child(2n) { animation-delay: -1s; }
.data-bars i:nth-child(3n) { animation-delay: -2s; }
@keyframes dataBar { from { height: 12%; } to { height: var(--h, 80%); } }
.data-list { margin-top: 24px; display: grid; gap: 12px; }
.data-list i { display: block; height: 6px; background: rgba(125,224,188,0.15); }
.data-list i:nth-child(2) { width: 83%; }
.data-list i:nth-child(3) { width: 65%; }
.data-radar { position: absolute; right: -10%; bottom: -15%; width: 75%; aspect-ratio: 1; border: 1px solid rgba(111,224,183,0.18); border-radius: 50%; box-shadow: inset 0 0 0 35px rgba(111,224,183,0.02), inset 0 0 0 70px rgba(111,224,183,0.02); }
.data-radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 40deg, transparent 0 82%, rgba(99,231,182,0.22)); animation: radar 3s linear infinite; }
@keyframes radar { to { transform: rotate(360deg); } }

.scene-recorder { --scene-glow: rgba(239, 72, 72, 0.24); background: linear-gradient(135deg, #160b0b, #0b0808 48%, #050505); }
.recorder-desktop { position: absolute; left: 66%; top: 48%; width: min(53vw,800px); aspect-ratio: 1.56; transform: translate(-40%,-50%); border: 1px solid rgba(255,255,255,0.16); background: linear-gradient(145deg,#202124,#111); box-shadow: 0 40px 100px rgba(0,0,0,0.55); }
.recorder-window { position: absolute; inset: 8%; border: 1px solid rgba(255,255,255,0.08); background: linear-gradient(135deg,#383b42,#16171a); }
.capture-area { position: absolute; left: 13%; top: 15%; width: 65%; height: 56%; border: 1px solid #ff4e4e; box-shadow: 0 0 0 2000px rgba(0,0,0,0.38); }
.capture-area i { position: absolute; width: 5px; height: 5px; border: 1px solid #ff7b7b; background: #16171a; }
.capture-area i:nth-child(1) { left: -3px; top: -3px; }
.capture-area i:nth-child(2) { right: -3px; top: -3px; }
.capture-area i:nth-child(3) { left: -3px; bottom: -3px; }
.capture-area i:nth-child(4) { right: -3px; bottom: -3px; }
.recorder-pip { position: absolute; right: 8%; bottom: 8%; width: 24%; aspect-ratio: 1; overflow: hidden; border: 3px solid rgba(255,255,255,0.85); border-radius: 50%; background: radial-gradient(circle at 50% 36%, #b77c66 0 18%, transparent 19%), radial-gradient(circle at 50% 68%, #252e3a 0 29%, transparent 30%), #707d8c; }
.rec-pill { position: absolute; left: 50%; bottom: -24px; display: flex; gap: 10px; align-items: center; padding: 11px 16px; border-radius: 99px; background: #f1eee7; color: #171717; font: 500 8px var(--mono); transform: translateX(-50%); box-shadow: 0 14px 32px rgba(0,0,0,0.35); }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef3e3e; animation: recBlink 1.2s steps(1) infinite; }
@keyframes recBlink { 50% { opacity: 0.22; } }

/* Type lab */
.type-lab {
  position: fixed;
  inset: auto 9px 9px;
  width: calc(100vw - 18px);
  max-width: none;
  max-height: calc(100dvh - 18px);
  margin: 0;
  padding: clamp(22px,3vw,42px);
  border: 1px solid rgba(20,20,20,0.22);
  overflow: auto;
  background: #e8e6df;
  color: #111;
  box-shadow: 0 -28px 90px rgba(0,0,0,0.36);
}

.type-lab[open] {
  display: grid;
  gap: clamp(22px,3vh,38px);
  animation: typeLabIn 0.52s cubic-bezier(0.22,1,0.36,1);
}

.type-lab::backdrop { background: rgba(3,4,3,0.67); backdrop-filter: blur(9px); }

@keyframes typeLabIn {
  from { opacity: 0; transform: translateY(34px) scale(0.99); }
}

.type-lab-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.type-lab-header .eyebrow { color: #6e6b63; }
.type-lab-header h2 { margin: 10px 0 0; font: 400 clamp(2.5rem,4.4vw,5.4rem)/0.9 var(--serif); letter-spacing: -0.065em; }

.type-lab-close { position: relative; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(17,17,17,0.26); border-radius: 50%; background: transparent; cursor: pointer; }
.type-lab-close span { position: absolute; left: 10px; top: 19px; width: 19px; height: 1px; background: #111; transform: rotate(45deg); }
.type-lab-close span:last-child { transform: rotate(-45deg); }

.type-lab-options { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); border: 1px solid rgba(17,17,17,0.26); background: rgba(17,17,17,0.24); gap: 1px; }

.type-option {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  min-height: clamp(220px,30vh,340px);
  padding: 15px;
  border: 0;
  overflow: hidden;
  background: #d9d7d0;
  color: #111;
  cursor: pointer;
  text-align: left;
  transition: background 0.25s ease, color 0.25s ease;
}

.type-option::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at 72% 24%, rgba(124,247,199,0.26), transparent 48%);
  transition: opacity 0.25s ease;
}

.type-option:hover::after,
.type-option[aria-pressed="true"]::after { opacity: 1; }
.type-option[aria-pressed="true"] { background: #111; color: #f4f1e9; }

.type-option-number,
.type-option small { position: relative; z-index: 1; font-family: var(--mono); text-transform: uppercase; }
.type-option-number { font-size: 0.52rem; letter-spacing: 0.13em; opacity: 0.52; }
.type-option small { font-size: 0.48rem; letter-spacing: 0.1em; line-height: 1.4; opacity: 0.58; }
.type-option strong { position: relative; z-index: 1; align-self: center; display: block; font-size: clamp(3.2rem,5.8vw,7rem); font-style: normal; line-height: 0.67; letter-spacing: -0.055em; text-transform: uppercase; white-space: nowrap; }
.type-option-flex strong { font-family: "Roboto Flex", sans-serif; font-weight: 1000; font-stretch: 25%; }
.type-option-barlow strong { font-family: "Barlow Condensed", sans-serif; font-weight: 900; }
.type-option-anton strong { font-family: "Anton", sans-serif; font-weight: 400; letter-spacing: -0.045em; }
.type-option-oswald strong { font-family: "Oswald", sans-serif; font-weight: 700; letter-spacing: -0.045em; }
.type-option-teko strong { font-family: "Teko", sans-serif; font-weight: 700; letter-spacing: -0.035em; }

.film-lab-options { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); border: 1px solid rgba(17,17,17,0.26); background: rgba(17,17,17,0.24); gap: 1px; }

.film-option {
  --sample-0: #c55f46;
  --sample-1: #d3a652;
  --sample-2: #4f8176;
  --sample-3: #52758d;
  --sample-4: #8f647d;
  --sample-filter: saturate(0.88) contrast(1.05) brightness(0.9);
  --sample-opacity: 0.5;
  --sample-grain: 0.15;
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(125px,1fr) auto auto;
  min-width: 0;
  min-height: clamp(245px,33vh,370px);
  gap: 9px;
  padding: 12px;
  border: 0;
  overflow: hidden;
  background: #d9d7d0;
  color: #111;
  cursor: pointer;
  text-align: left;
  transition: background 0.25s ease, color 0.25s ease;
}

.film-option[aria-pressed="true"] { background: #111; color: #f4f1e9; }
.film-option-number,
.film-option small { font-family: var(--mono); text-transform: uppercase; }
.film-option-number { font-size: 0.52rem; letter-spacing: 0.13em; opacity: 0.52; }
.film-option strong { font: 500 clamp(0.83rem,1.1vw,1.1rem)/1 var(--sans); letter-spacing: -0.035em; }
.film-option strong::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--sample-0) 0 20%, var(--sample-1) 20% 40%, var(--sample-2) 40% 60%, var(--sample-3) 60% 80%, var(--sample-4) 80%);
}
.film-option small { overflow: hidden; font-size: 0.45rem; line-height: 1.4; letter-spacing: 0.08em; opacity: 0.56; text-overflow: ellipsis; white-space: nowrap; }

.film-option-preview { position: relative; display: block; min-height: 0; overflow: hidden; background: #111; }
.film-option-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--sample-filter); transform: scale(1.02); }
.film-option-preview::after {
  content: "";
  position: absolute;
  inset: -14%;
  z-index: 2;
  opacity: var(--sample-opacity);
  background:
    radial-gradient(circle at 22% 28%, color-mix(in srgb, var(--sample-0) 72%, transparent), transparent 38%),
    radial-gradient(circle at 82% 76%, color-mix(in srgb, var(--sample-3) 72%, transparent), transparent 43%),
    conic-gradient(from 120deg at 52% 46%, transparent 0 14%, color-mix(in srgb, var(--sample-1) 64%, transparent) 26%, transparent 42% 58%, color-mix(in srgb, var(--sample-4) 68%, transparent) 73%, transparent 88%);
  filter: blur(8px) saturate(1.16);
  mix-blend-mode: color;
}
.film-option-preview::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 3;
  opacity: var(--sample-grain,0.2);
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.9'/%3E%3C/svg%3E");
  background-size: 150px 150px;
  mix-blend-mode: overlay;
}

.film-option-editorial { --sample-0: #c55f46; --sample-1: #d3a652; --sample-2: #4f8176; --sample-3: #52758d; --sample-4: #8f647d; --sample-opacity: .5; }
.film-option-garden { --sample-0: #244d4a; --sample-1: #5f7448; --sample-2: #cb9146; --sample-3: #78475f; --sample-4: #b66f5b; --sample-opacity: .52; --sample-filter: saturate(.8) contrast(1.08) brightness(.86); }
.film-option-coastal { --sample-0: #2f7076; --sample-1: #66aaa3; --sample-2: #d0b270; --sample-3: #b65f4c; --sample-4: #4f627d; --sample-opacity: .46; --sample-filter: saturate(.84) contrast(1.02) brightness(.96); --sample-grain: .12; }
.film-option-orchid { --sample-0: #754c72; --sample-1: #ad687d; --sample-2: #d49a73; --sample-3: #5b7190; --sample-4: #8aa392; --sample-opacity: .49; --sample-filter: saturate(.84) contrast(1.03) brightness(.92); }
.film-option-glass { --sample-0: #8fcfc7; --sample-1: #aa99d3; --sample-2: #e4bd84; --sample-3: #d899ae; --sample-4: #91b8d5; --sample-filter: saturate(.86) contrast(1.02) brightness(.96); --sample-grain: .08; }

.film-option-glass .film-option-preview::after {
  inset: 8px;
  opacity: 1;
  border: 1px solid rgba(232, 249, 250, 0.38);
  border-radius: 2px;
  background:
    linear-gradient(112deg, rgba(151, 219, 226, 0.12), rgba(10, 22, 28, 0.03) 45%, rgba(240, 197, 156, 0.1) 51%, rgba(187, 161, 229, 0.08));
  box-shadow:
    inset 1px 1px 0 rgba(247, 253, 252, 0.34),
    inset -1px -1px 0 rgba(4, 14, 19, 0.34),
    0 13px 28px rgba(2, 10, 14, 0.22);
  -webkit-backdrop-filter: blur(3px) saturate(1.06);
  backdrop-filter: blur(3px) saturate(1.06);
  filter: none;
  mix-blend-mode: normal;
}

.type-lab-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding-top: 4px; border-top: 1px solid rgba(17,17,17,0.24); }
.type-lab-footer p { max-width: 58ch; margin: 16px 0 0; color: #5f5c55; font: 400 0.62rem/1.65 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.type-lab-footer div { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.type-lab-footer span { font: 400 0.56rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.type-lab-footer button { padding: 9px 12px; border: 1px solid rgba(17,17,17,0.38); background: transparent; cursor: pointer; font: 400 0.52rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }

/* Work index */
.work-index {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: clamp(30px, 5vw, 74px) clamp(26px, 6vw, 92px);
  border: 0;
  overflow: auto;
  background: #ece9e1;
  color: #151515;
}

.work-index::backdrop { background: rgba(0,0,0,0.5); backdrop-filter: blur(8px); }
.work-index[open] { animation: indexIn 0.55s cubic-bezier(0.22,1,0.36,1); }
@keyframes indexIn { from { opacity: 0; transform: translateY(100%); } }

.index-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: clamp(40px,7vh,80px); }
.index-top .eyebrow { color: #746f66; }
.index-top h2 { margin: 16px 0 0; font-family: var(--display-family); font-size: clamp(3.2rem,7vw,7rem); font-weight: var(--display-weight); font-stretch: var(--display-stretch); line-height: 0.9; letter-spacing: var(--display-title-spacing); text-transform: var(--display-transform); }
.index-close { position: relative; width: 38px; height: 38px; border: 0; background: transparent; cursor: pointer; }
.index-close span { position: absolute; left: 5px; top: 18px; width: 28px; height: 1px; background: #151515; transform: rotate(45deg); }
.index-close span:last-child { transform: rotate(-45deg); }
.index-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #c7c3ba; }
.index-item button { position: relative; display: grid; grid-template-columns: 70px 1fr minmax(150px,0.3fr) 40px; align-items: center; width: 100%; padding: 20px 0; border: 0; border-bottom: 1px solid #c7c3ba; background: transparent; color: #171717; text-align: left; cursor: pointer; }
.index-item button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #181818; transform: scaleY(0); transform-origin: bottom; transition: transform 0.3s cubic-bezier(0.22,1,0.36,1); }
.index-item button:hover { color: #f1eee7; }
.index-item button:hover::before { transform: scaleY(1); }
.index-item button:focus-visible { outline: 1px solid #171717; outline-offset: -4px; }
.index-num { font: 400 0.62rem var(--mono); color: #817b71; }
.index-name { font-family: var(--display-family); font-size: clamp(1.65rem,3.6vw,3.9rem); font-weight: var(--display-weight); font-stretch: var(--display-stretch); line-height: 1; letter-spacing: var(--display-tile-spacing); text-transform: var(--display-transform); }
.index-kind { font: 400 0.57rem/1.6 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: #817b71; }
.index-arrow { font: 300 22px var(--mono); text-align: right; }
.index-footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 36px 0 10px; }
.index-footer p { margin: 0; font: italic 400 clamp(1.25rem,2vw,1.8rem) var(--serif); }
.index-footer div { display: flex; gap: 22px; }
.index-footer a { font: 500 0.58rem var(--mono); letter-spacing: 0.12em; text-decoration: none; text-transform: uppercase; border-bottom: 1px solid #99938a; }

noscript { position: fixed; inset: auto 20px 20px; z-index: 300; padding: 12px; background: #fff; color: #000; }

@media (max-width: 800px) {
  .grid-glow { opacity: 0.42; }
  body[data-film] .atlas-film::before { animation: none; }
  body[data-film="glass"] .atlas-film { inset: 3px; -webkit-backdrop-filter: blur(2px) saturate(1.04); backdrop-filter: blur(2px) saturate(1.04); }
  .atlas-film::before { opacity: 0.42; filter: blur(12px) saturate(1.3); }
  .atlas-film::after { opacity: 0.12; }
  .start-screen { padding: 6px; overflow: hidden; }
  .atlas-shader { position: fixed; opacity: 0.68; }
  .atlas-grid {
    inset: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 300px;
    grid-auto-rows: clamp(178px, 51vw, 220px);
    align-content: start;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .atlas-grid::-webkit-scrollbar { display: none; }
  .atlas-intro { grid-column: 1 / -1; min-height: 0; padding: max(20px, env(safe-area-inset-top)) 20px 20px; }
  .atlas-intro-copy { padding: 28px 0 18px; }
  .atlas-intro-copy p { max-width: 30ch; font-size: 0.48rem; }
  .atlas-intro h1 { max-width: 8.5ch; font-size: clamp(3.45rem, 15.5vw, 5.2rem); }
  .atlas-intro-actions { gap: 10px; }
  .film-lab-trigger,
  .type-lab-trigger { font-size: 0.46rem; }
  .atlas-intro-footer > span { display: none; }
  .atlas-tile-meta { left: 10px; right: 10px; bottom: 10px; grid-template-columns: 19px 1fr; }
  .atlas-tile-name { font-size: clamp(1.08rem,5.2vw,1.42rem); }
  .atlas-tile-kind { font-size: 0.37rem; }
  .atlas-tile-open { display: none; }
  .demo-taste::before { font-size: clamp(2.25rem,11vw,3.3rem); }
  .site-header { padding: max(23px, env(safe-area-inset-top)) 20px 0; }
  .site-header nav { gap: 17px; }
  .wordmark, .nav-link { font-size: 0.57rem; letter-spacing: 0.12em; }
  .project-shade { background: linear-gradient(180deg, rgba(4,4,4,0.1), rgba(4,4,4,0.05) 30%, rgba(4,4,4,0.88) 70%, rgba(4,4,4,0.97)); }
  .project-copy { left: 20px; right: 20px; bottom: max(116px, calc(env(safe-area-inset-bottom) + 104px)); width: auto; }
  .project-number { margin-bottom: 20px; }
  .project-copy h2 { max-width: 9ch; font-size: clamp(3.45rem, 16vw, 6.3rem); }
  .project-line { max-width: 34ch; margin-top: 17px; font-size: 0.92rem; line-height: 1.45; }
  .project-proof { max-width: 43ch; font-size: 0.53rem; }
  .project-footer { align-items: center; justify-content: space-between; gap: 14px; margin-top: 19px; }
  .project-stack { max-width: 29ch; font-size: 0.48rem; }
  .project-link { padding: 8px 10px; font-size: 0.49rem; }
  .project-link svg { display: block; width: 14px; height: 14px; }
  .reel-controls { left: 20px; right: 20px; bottom: max(16px, env(safe-area-inset-bottom)); grid-template-columns: repeat(2, minmax(0, 1fr)); width: auto; }
  .arrow-button { gap: 7px; height: 50px; padding-right: 7px; }
  #next-button { padding-left: 7px; }
  .arrow-button svg { flex-basis: 27px; width: 27px; }
  .control-copy small { font-size: 0.41rem; }
  .control-copy b { font-size: 0.48rem; }
  .project-rail { display: none; }
  .sound-button { left: 20px; bottom: max(31px, env(safe-area-inset-bottom)); }
  .phone-shell { left: 60%; top: 42%; width: clamp(210px, 60vw, 310px); }
  .dex-video-halo { left: 50%; top: 39%; width: 86vw; }
  .dex-product-video { left: 50%; top: 38%; width: 78vw; height: 58vh; }
  .ocean-window { left: 50%; top: 42%; width: 88vw; height: 53vh; transform: translate(-50%,-50%); }
  .drop-window { left: 50%; top: 40%; width: 88vw; transform: translate(-50%,-50%); }
  .signal-board { left: 50%; top: 41%; width: 88vw; height: 54vh; padding: 18px; transform: translate(-50%,-50%); }
  .signal-grid { gap: 7px; }
  .signal-card { min-height: 100px; padding: 11px; }
  .signal-card p { margin-top: 19px; }
  .cuss-cloud { left: 50%; top: 39%; width: 94vw; }
  .gamepad-stack { left: 50%; top: 41%; width: 69vw; height: 50vh; }
  .mail-card { padding: 22px; border-radius: 18px; }
  .mail-card h4 { margin-top: 28px; }
  .ar-room { left: 50%; top: 41%; width: 96vw; transform: translate(-50%,-50%); }
  .data-wall { left: 50%; top: 40%; width: 90vw; height: 52vh; transform: translate(-50%,-50%); }
  .recorder-desktop { left: 50%; top: 40%; width: 91vw; transform: translate(-50%,-50%); }
  .taste-study { left: 52%; top: 24%; width: 72vw; opacity: 0.74; }
  .taste-study strong { font-size: clamp(3.4rem,15vw,5.2rem); }
  .type-lab { inset: 6px; width: calc(100vw - 12px); height: calc(100dvh - 12px); max-height: none; padding: 19px; }
  .type-lab[open] { grid-template-rows: auto minmax(0,1fr) auto; gap: 18px; }
  .type-lab-header h2 { margin-top: 8px; font-size: clamp(2.65rem,13vw,4rem); }
  .type-lab-header .eyebrow { max-width: 28ch; font-size: 0.48rem; }
  .type-lab-close { flex-basis: 36px; width: 36px; height: 36px; }
  .type-lab-close span { left: 9px; top: 17px; width: 17px; }
  .type-lab-options { grid-template-columns: repeat(2,minmax(0,1fr)); min-height: 0; overflow-y: auto; }
  .type-option { min-height: 154px; padding: 11px; }
  .type-option:last-child { grid-column: 1 / -1; min-height: 138px; }
  .type-option strong { font-size: clamp(2.7rem,16vw,4.1rem); }
  .type-option small { font-size: 0.4rem; }
  .type-lab-footer { align-items: flex-start; flex-direction: column; gap: 13px; }
  .type-lab-footer p { display: none; }
  .type-lab-footer div { width: 100%; justify-content: space-between; gap: 10px; white-space: normal; }
  .type-lab-footer span { max-width: 18ch; font-size: 0.47rem; line-height: 1.45; }
  .type-lab-footer button { flex: 0 0 auto; font-size: 0.45rem; }
  .film-lab-options { grid-template-columns: repeat(2,minmax(0,1fr)); min-height: 0; overflow-y: auto; }
  .film-option { grid-template-rows: auto 112px auto auto; min-height: 204px; padding: 9px; gap: 6px; }
  .film-option:last-child { grid-column: 1 / -1; }
  .film-option strong { font-size: 0.77rem; }
  .film-option small { font-size: 0.38rem; }
  .index-item button { grid-template-columns: 38px 1fr 24px; padding: 17px 0; }
  .index-kind { display: none; }
  .index-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-height: 720px) and (min-width: 801px) {
  .project-copy { bottom: 62px; }
  .project-number { margin-bottom: 22px; }
  .project-copy h2 { font-size: clamp(3.6rem, 7.4vw, 6.8rem); }
  .project-line { margin-top: 17px; }
  .project-footer { margin-top: 18px; }
}

@media (max-height: 720px) and (max-width: 800px) {
  .recorder-desktop { top: 28%; width: 84vw; }
  .rec-pill { bottom: -18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .grain { display: none; }
}
