/* BRAINDANCE — site styles
   Section 1: tokens & base · Section 2: header · Section 3: hero
   Motion and color tokens follow the Phase 2 brand book. */

/* ── 1. Tokens & base ─────────────────────────────────── */
:root {
  --obsidian: #090909;
  --bg-raised: #111111;
  --surface: #161616;
  --surface-hover: #1d1d1d;
  --border: #262626;
  --border-strong: #3a3a3a;
  --text: #f5f5f2;
  --text-2: #a3a3a0;
  --muted: #777777;
  --lime: #c5ff38;
  --lime-hover: #d6ff73;
  --lime-press: #a9e01f;

  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-micro: 160ms;
  --dur-ui: 280ms;
  --dur-reveal: 700ms;

  --radius: 4px;
  --radius-btn: 6px 999px 999px 6px;
  --header-h: 80px;
  --gutter: clamp(20px, 4vw, 64px);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--obsidian);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
main > section[id] { scroll-margin-top: var(--header-h); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
::selection { background: var(--lime); color: var(--obsidian); }

.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--lime); color: var(--obsidian); padding: 10px 16px; font-weight: 700; border-radius: var(--radius); transition: top var(--dur-ui) var(--ease-out); }
.skip:focus { top: 12px; }

/* Buttons — D-shaped primary (flat stem left, round bowl right) */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  height: 56px; padding: 0 10px 0 26px; border-radius: var(--radius-btn);
  font-family: var(--font-display); font-weight: 700; font-stretch: 108%; font-size: 16px; letter-spacing: .005em;
  text-decoration: none; white-space: nowrap; cursor: pointer; border: 0;
  transition: background-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out), transform 300ms var(--ease-out);
}
.btn-primary { background: var(--lime); color: var(--obsidian); }
.btn-primary:hover { background: var(--lime-hover); }
.btn-primary:active { background: var(--lime-press); transform: scale(.97); }
.btn-icon { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--obsidian); color: var(--lime); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.btn-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 420ms var(--ease-out); }
.btn-icon svg + svg { position: absolute; transform: translateX(-26px); }
.btn:hover .btn-icon svg:first-child { transform: translateX(26px); }
.btn:hover .btn-icon svg + svg { transform: translateX(0); }
.btn-ghost { padding: 0 26px; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--border-strong); overflow: hidden; isolation: isolate; }
.btn-ghost::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--text); clip-path: inset(0 100% 0 0); transition: clip-path 420ms var(--ease-out); }
.btn-ghost:hover { color: var(--obsidian); box-shadow: inset 0 0 0 1.5px var(--text); }
.btn-ghost:hover::before { clip-path: inset(0 0 0 0); }
.btn-ghost:active { transform: scale(.97); }
.btn-sm { height: 46px; font-size: 14.5px; padding-left: 20px; padding-right: 6px; gap: 10px; }
.btn-sm .btn-icon { width: 34px; height: 34px; }

/* ── 2. Header ────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out), transform 500ms var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(9, 9, 9, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--border); }
.header-row { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: block; flex-shrink: 0; }
.brand img { height: 48px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.nav a { font-weight: 600; font-size: 15px; letter-spacing: .01em; color: var(--text-2); text-decoration: none; position: relative; padding-block: 6px; transition: color var(--dur-micro) var(--ease-out); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-ui) var(--ease-out); }
.nav a:hover, .nav a[aria-current="true"] { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
.nav-cta-mobile { display: none; }
.menu-btn { display: none; }

@media (max-width: 1023px) {
  .header-cta { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto; height: 44px; padding: 0 16px 0 14px;
    background: transparent; color: var(--text); border: 1.5px solid var(--border-strong); border-radius: 999px;
    font: 600 14px var(--font-body); cursor: pointer; position: relative; z-index: 2;
  }
  .menu-lines { width: 16px; height: 10px; position: relative; }
  .menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--dur-ui) var(--ease-out), top var(--dur-ui) var(--ease-out); }
  .menu-lines::before { top: 0; } .menu-lines::after { top: 8px; }
  .menu-btn[aria-expanded="true"] .menu-lines::before { top: 4px; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-lines::after { top: 4px; transform: rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; z-index: 1; margin: 0; background: var(--obsidian);
    padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px) max(var(--gutter), env(safe-area-inset-right, 0px)) 40px max(var(--gutter), env(safe-area-inset-left, 0px));
    display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
    opacity: 0; visibility: hidden; transition: opacity var(--dur-ui) var(--ease-out), visibility 0s linear var(--dur-ui);
  }
  .nav.is-open { opacity: 1; visibility: visible; transition: opacity var(--dur-ui) var(--ease-out); }
  /* a backdrop-filter on the header would turn it into the containing block of the fixed menu and clip it to 80px */
  .site-header.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--obsidian); border-bottom-color: var(--border); }
  .nav { height: 100vh; height: 100dvh; overflow-y: auto; }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav ul a { font-family: var(--font-display); font-weight: 800; font-stretch: 110%; font-size: clamp(34px, 9vw, 56px); letter-spacing: -.03em; color: var(--text); line-height: 1.15; display: inline-block; }
  .nav ul a::after { display: none; }
  .nav .nav-cta-mobile { color: var(--obsidian); padding-block: 0; }
  .nav .nav-cta-mobile::after { display: none; }
  .nav-cta-mobile { display: inline-flex; align-self: flex-start; }
  .brand { position: relative; z-index: 2; }
}

/* ── 3. Hero ──────────────────────────────────────────── */
.hero { position: relative; }
.hero-pin {
  position: relative; overflow: hidden;
  min-height: max(760px, 100svh); max-height: 1080px;
  display: flex; flex-direction: column;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}

/* background layers */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.bg-grid {
  position: absolute; inset: 0;
  --col: calc((min(100vw, 1440px) - 2 * var(--gutter)) / 12);
  background-image: linear-gradient(to right, rgba(245, 245, 242, .045) 1px, transparent 1px);
  background-size: var(--col) 100%;
  background-position: calc(50% - min(100vw, 1440px) / 2 + var(--gutter)) 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 70%, transparent);
}
.bg-mark { position: absolute; right: -14vw; top: 50%; width: min(78vw, 1180px); height: auto; transform: translateY(-46%); opacity: .035; }
.bg-glow { position: absolute; right: 2%; top: 18%; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, rgba(197, 255, 56, .065), transparent 72%); }
.bg-grain {
  position: absolute; inset: 0; opacity: .05; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.cross { position: absolute; left: var(--x); top: var(--y); width: 14px; height: 14px; transform: translate(-50%, -50%); }
.cross::before, .cross::after { content: ""; position: absolute; background: var(--lime); }
.cross::before { left: 6px; top: 0; width: 2px; height: 14px; }
.cross::after { top: 6px; left: 0; height: 2px; width: 14px; }

/* layout */
.hero-grid {
  position: relative; flex: 1;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  align-items: center; padding-block: clamp(24px, 4vh, 56px);
}
.hero-copy { grid-column: 1 / span 6; position: relative; z-index: 2; }
.hero-showcase { grid-column: 7 / -1; margin: 0; margin-right: calc(-1 * var(--gutter) - 24px); position: relative; z-index: 1; }

.eyebrow { margin: 0 0 28px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--lime); }

.hero-title {
  margin: 0;
  font-family: var(--font-display); font-weight: 800; font-stretch: 104%;
  font-size: clamp(50px, 5.6vw, 104px); line-height: .94; letter-spacing: -.038em;
  text-wrap: balance;
}
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .w > span { display: inline-block; }
.w-accent > span { color: var(--lime); }

.hero-lead { margin: 28px 0 0; max-width: 44ch; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; font-weight: 500; color: var(--text-2); }
.hero-ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* bottom bar */
.hero-bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 24px; padding-block: 0 26px; }
.hero-bar::before { content: ""; position: absolute; top: 0; left: max(var(--gutter), env(safe-area-inset-left, 0px)); right: max(var(--gutter), env(safe-area-inset-right, 0px)); height: 1px; background: var(--border); }
.pillars { display: flex; gap: 6px; margin-right: auto; }
.pillar {
  position: relative; background: none; border: 0; cursor: pointer; color: var(--muted);
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  padding: 18px 14px 6px 0; margin-right: 14px; display: inline-flex; gap: 8px; align-items: baseline;
  transition: color var(--dur-ui) var(--ease-out);
}
.pillar .n { color: inherit; opacity: .7; }
.pillar:hover { color: var(--text); }
.pillar[aria-pressed="true"] { color: var(--lime); }
.pbar { position: absolute; left: 0; right: 14px; top: -1px; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; }
.pillar[aria-pressed="true"] .pbar { animation: pbar var(--step-ms, 3800ms) linear forwards; }
.is-paused .pillar[aria-pressed="true"] .pbar, .no-cycle .pillar[aria-pressed="true"] .pbar { animation: none; transform: scaleX(1); }
@keyframes pbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.bar-meta { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 12px; text-decoration: none; }
.scroll-cue:hover { color: var(--text); }
.scroll-cue span { display: inline-block; animation: cue 2.4s var(--ease-in-out) infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ── Showcase: installation in three planes ── */
.install {
  position: relative; width: 100%; aspect-ratio: 1.16 / 1;
  perspective: 1800px; perspective-origin: 30% 40%;
  --px: 0; --py: 0;
}
.plane {
  position: absolute; margin: 0;
  transform-style: preserve-3d;
  transform: var(--base) translate3d(calc(var(--px) * var(--depth) * 1px), calc(var(--py) * var(--depth) * .7px), 0);
  transition: filter 700ms var(--ease-out), opacity 700ms var(--ease-out);
  filter: brightness(.62) saturate(.85);
  will-change: transform;
}
.plane.is-active { filter: none; }
.plane-body { position: relative; border-radius: 6px; overflow: hidden; border: 1px solid var(--border-strong); background: var(--bg-raised); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4); transition: transform 700ms var(--ease-out), box-shadow 700ms var(--ease-out), border-color 700ms var(--ease-out); }
.plane.is-active .plane-body { transform: translateY(-8px); border-color: rgba(197, 255, 56, .55); box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(197, 255, 56, .25); }

.plane-tag { margin: 12px 0 0; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); line-height: 1.5; max-width: 52ch; transition: color 700ms var(--ease-out); }
.plane-tag b { font-weight: 500; color: var(--text-2); margin-right: 6px; transition: color 700ms var(--ease-out); }
.plane.is-active .plane-tag { color: var(--text-2); }
.plane.is-active .plane-tag b { color: var(--lime); }

/* plane 1: stage */
.plane-stage { left: 6%; top: 4%; width: 92%; --base: rotateY(-9deg) rotateX(3deg); z-index: 1; }
.plane-stage { display: flex; flex-direction: column-reverse; }
.plane-stage .plane-tag { margin: 0 0 12px; max-width: 64ch; }
.chrome { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #141414; border-bottom: 1px solid var(--border); }
.chrome i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.url { margin-left: 10px; flex: 1; max-width: 260px; height: 18px; border-radius: 4px; background: #0d0d0d; border: 1px solid var(--border); font-family: var(--font-mono); font-size: 10px; color: var(--text-2); display: flex; align-items: center; padding: 0 8px; overflow: hidden; position: relative; }
.url span { position: absolute; left: 8px; transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.url-film { opacity: 0; transform: translateY(8px); }
.show-film .url-web { opacity: 0; transform: translateY(-8px); }
.show-film .url-film { opacity: 1; transform: none; }
.screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0b0b0b; }
.scene { position: absolute; inset: 0; visibility: hidden; }
.scene.is-shown { visibility: visible; }

.web-col { position: absolute; left: 0; top: 0; width: calc(100% * 800 / 790); animation: webscroll 26s var(--ease-in-out) infinite alternate; }
.web-col img { width: 100%; height: auto; }
.web-col img:first-child { margin-top: 0; }
.web-mobile { display: none; }
@keyframes webscroll { 0%, 8% { transform: translateY(0); } 92%, 100% { transform: translateY(calc(-100% + var(--screen-h, 300px))); } }

.scene-film { background: #050505; overflow: hidden; }
.film-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-film .film-grain { opacity: .08; }
.film-light { position: absolute; border-radius: 50%; filter: blur(30px); }
.film-light.l1 { width: 70%; height: 120%; left: 30%; top: -30%; background: radial-gradient(closest-side, rgba(245, 240, 225, .30), transparent 70%); animation: drift1 14s var(--ease-in-out) infinite alternate; }
.film-light.l2 { width: 50%; height: 80%; left: -10%; top: 30%; background: radial-gradient(closest-side, rgba(150, 140, 120, .22), transparent 70%); animation: drift2 18s var(--ease-in-out) infinite alternate; }
.film-haze { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(245, 245, 242, .06) 45%, transparent 60%); animation: haze 9s var(--ease-in-out) infinite alternate; }
.film-grain { position: absolute; inset: -20%; opacity: .16; mix-blend-mode: screen; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); animation: grain 1.2s steps(6) infinite; }
.film-bar { position: absolute; left: 0; right: 0; height: 11%; background: #000; z-index: 2; }
.film-bar.top { top: 0; } .film-bar.bottom { bottom: 0; }
.film-rec, .film-tc, .film-note { position: absolute; z-index: 3; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(245, 245, 242, .78); }
.film-rec { left: 4%; top: 15%; display: flex; align-items: center; gap: 6px; }
.film-rec i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: rec 1s steps(2) infinite; }
.film-tc { right: 4%; top: 15%; font-variant-numeric: tabular-nums; }
.film-note { left: 50%; bottom: 15%; transform: translateX(-50%); white-space: nowrap; color: rgba(245, 245, 242, .55); border: 1px dashed rgba(245, 245, 242, .3); padding: 4px 10px; border-radius: 999px; }
@keyframes drift1 { to { transform: translate(-18%, 12%) scale(1.15); } }
@keyframes drift2 { to { transform: translate(30%, -14%) scale(.9); } }
@keyframes haze { to { transform: translateX(30%); } }
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(-1%, 1%); } }
@keyframes rec { 50% { opacity: 0; } }

/* slice wipe between scenes */
.wipe { position: absolute; inset: 0; z-index: 4; display: grid; grid-template-columns: repeat(12, 1fr); pointer-events: none; }
.wipe i { background: var(--obsidian); transform: scaleY(0); transform-origin: top; border-top: 2px solid var(--lime); transition: transform 380ms var(--ease-in-out); transition-delay: calc(var(--i) * 28ms); }
.wipe.cover i { transform: scaleY(1); }
.wipe.reveal i { transform-origin: bottom; border-top: 0; border-bottom: 2px solid var(--lime); transform: scaleY(0); }

.stage-link {
  position: absolute; left: 14px; bottom: 14px; z-index: 5;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-decoration: none;
  background: var(--lime); color: var(--obsidian); font-weight: 500; padding: 7px 12px; border-radius: var(--radius-btn);
  opacity: 0; transform: translateY(6px); transition: opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out);
}
.plane-stage:hover .stage-link, .stage-link:focus-visible { opacity: 1; transform: none; }
.show-film .stage-link { display: none; }
.plane-tag .tag-film { display: none; }
.show-film .plane-tag .tag-web { display: none; }
.show-film .plane-tag .tag-film { display: inline; }

/* plane 2: reel */
.plane-reel { left: -4%; top: 47%; width: 24%; --base: rotateY(-4deg) translateZ(60px); z-index: 2; }
.plane-reel .plane-body { aspect-ratio: 9 / 16; background: var(--obsidian); display: flex; flex-direction: column; padding: 9% 9% 10%; }
.reel-progress { display: flex; gap: 3px; }
.reel-progress i { flex: 1; height: 2px; background: rgba(245, 245, 242, .25); border-radius: 2px; overflow: hidden; position: relative; }
.reel-progress i:first-child { background: var(--text); }
.reel-progress i:nth-child(2)::after { content: ""; position: absolute; inset: 0; background: var(--text); transform-origin: left; animation: reelbar 6s linear infinite; }
@keyframes reelbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.reel-head { margin-top: 10%; display: flex; align-items: center; gap: 6px; font-family: var(--font-body); font-weight: 700; font-size: clamp(8px, .68vw, 11px); color: var(--text); }
.reel-head img { width: 18px; height: auto; }
.reel-words { margin-top: auto; display: flex; flex-direction: column; font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: clamp(14px, 1.55vw, 24px); line-height: .98; letter-spacing: -.03em; }
.reel-words span { opacity: .18; transition: opacity 400ms var(--ease-out); animation: word 6s var(--ease-out) infinite; animation-delay: calc(var(--k) * 260ms); }
.reel-words span:nth-child(1) { --k: 0; } .reel-words span:nth-child(2) { --k: 1; } .reel-words span:nth-child(3) { --k: 2; } .reel-words span:nth-child(4) { --k: 3; } .reel-words span:nth-child(5) { --k: 4; }
.reel-words .hl { color: var(--lime); }
@keyframes word { 0% { opacity: .18; transform: translateY(6px); } 8%, 78% { opacity: 1; transform: none; } 90%, 100% { opacity: .18; transform: none; } }
.reel-foot { margin-top: 12%; display: flex; justify-content: space-between; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: clamp(7px, .55vw, 9px); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.reel-cta { background: var(--lime); color: var(--obsidian); padding: 3px 6px; border-radius: var(--radius-btn); font-weight: 500; }

/* plane 3: brand chip */
.plane-brand { right: 8%; bottom: 2%; width: 26%; --base: rotateY(-6deg) translateZ(90px); z-index: 3; }
.plane-brand .plane-body { aspect-ratio: 4 / 5; background: var(--text); color: var(--obsidian); border-color: #d8d8d3; padding: 10%; display: flex; flex-direction: column; gap: 9%; }
.plane-brand.is-active .plane-body { border-color: var(--lime); box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .95), 0 0 0 2px var(--lime); }
.brand-logo { width: 74%; height: auto; margin-inline: auto; }
.brand-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: auto; }
.brand-swatches i { aspect-ratio: 1; background: var(--c); border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(9, 9, 9, .12); }
.brand-type { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; border-top: 1px solid rgba(9, 9, 9, .15); padding-top: 7%; }
.brand-type .aa { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: clamp(18px, 1.9vw, 30px); letter-spacing: -.03em; line-height: 1; }
.brand-type .glyphs { font-family: var(--font-mono); font-size: clamp(7px, .58vw, 9.5px); color: #55554f; letter-spacing: .04em; }

/* ── Entrance (only when JS runs; content is visible without it) ── */
.js .hero:not(.is-in) .bg-grid, .js .hero:not(.is-in) .bg-mark, .js .hero:not(.is-in) .bg-glow, .js .hero:not(.is-in) .cross { opacity: 0; }
.bg-grid, .bg-mark, .bg-glow, .cross { transition: opacity 900ms var(--ease-out); }
.js .hero:not(.is-in) .hero-title .w > span { transform: translateY(108%); }
.hero-title .w > span { transition: transform 900ms var(--ease-out); transition-delay: calc(300ms + var(--i) * 70ms); }
.js .hero:not(.is-in) .reveal { opacity: 0; transform: translateY(16px); }
.reveal { transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(820ms + var(--d) * 70ms); }
.js .hero:not(.is-in) .plane-stage .plane-body { clip-path: inset(0 50% 0 50%); opacity: 0; }
.plane-stage .plane-body { clip-path: inset(0 0 0 0); transition: clip-path 1100ms var(--ease-out) 500ms, opacity 400ms var(--ease-out) 500ms, transform 700ms var(--ease-out), box-shadow 700ms var(--ease-out), border-color 700ms var(--ease-out); }
.js .hero:not(.is-in) .plane-reel { opacity: 0; }
.js .hero:not(.is-in) .plane-reel .plane-body { transform: translateY(40px); }
.plane-reel .plane-body { transition: transform 900ms var(--ease-out) 800ms, box-shadow 700ms var(--ease-out), border-color 700ms var(--ease-out); }
.js .hero:not(.is-in) .plane-brand { opacity: 0; }
.js .hero:not(.is-in) .plane-brand .plane-body { transform: scale(.92); }
.plane-brand .plane-body { transition: transform 700ms var(--ease-out) 950ms, box-shadow 700ms var(--ease-out), border-color 700ms var(--ease-out); }
.plane-reel, .plane-brand { transition: opacity 700ms var(--ease-out) 800ms, filter 700ms var(--ease-out); }
.js .hero:not(.is-in) .plane-tag, .js .hero:not(.is-in) .hero-bar { opacity: 0; }
.plane-tag { transition: opacity 600ms var(--ease-out) 1300ms, color 700ms var(--ease-out); }
.hero-bar { transition: opacity 600ms var(--ease-out) 1300ms; }
/* after the entrance, interactive transitions run without the entrance delays */
.hero.is-settled .plane-body, .hero.is-settled .plane-reel, .hero.is-settled .plane-brand, .hero.is-settled .plane-tag { transition-delay: 0ms; }
.hero.is-settled .hero-bar { transition: none; }

/* ── Scroll exit (desktop): the stage takes over, the rest steps back ── */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .hero { height: 150vh; }
  .hero-pin { position: sticky; top: 0; height: 100svh; min-height: 0; max-height: none; }
  .hero { --p: 0; }
  .hero-copy { transform: translateY(calc(var(--p) * -60px)); opacity: calc(1 - var(--p) * 1.1); }
  .hero-bar { opacity: calc(1 - var(--p) * 2); }
  .hero.is-settled .plane-reel { opacity: calc(1 - var(--p) * 1.6); }
  .hero.is-settled .plane-brand { opacity: calc(1 - var(--p) * 1.6); }
  .plane-reel { --exit: translate3d(calc(var(--p) * 120px), calc(var(--p) * -60px), 0); }
  .plane-brand { --exit: translate3d(calc(var(--p) * -140px), calc(var(--p) * -80px), 0); }
  .plane-reel, .plane-brand { transform: var(--base) var(--exit) translate3d(calc(var(--px) * var(--depth) * 1px), calc(var(--py) * var(--depth) * .7px), 0); }
  .hero.is-exiting .plane-stage {
    transform: rotateY(calc(-9deg * (1 - var(--p)))) rotateX(calc(3deg * (1 - var(--p))))
               translate3d(calc(var(--p) * var(--exit-x, -40vw)), calc(var(--p) * var(--exit-y, 0px)), 0) scale(calc(1 + var(--p) * var(--exit-s, .8)));
    filter: none;
  }
  .hero.is-exiting .hero-showcase { z-index: 3; }
  .hero.is-exiting .plane-stage .plane-tag { opacity: calc(1 - var(--p) * 3); }
  .bg-mark { transform: translateY(calc(-46% - var(--p) * 8vh)) scale(calc(1 + var(--p) * .15)); }
}

.next-up { border-top: 1px solid var(--border); padding-block: 120px; }
.next-up p { margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ── Laptop ── */
@media (max-width: 1279px) {
  .hero-copy { grid-column: 1 / span 6; }
  .hero-title { font-size: clamp(48px, 5.4vw, 72px); }
}

/* ── Tablet ── */
@media (max-width: 1023px) {
  .hero-pin { min-height: 0; max-height: none; }
  .hero-grid { grid-template-columns: 1fr; row-gap: 48px; padding-block: 40px 40px; }
  .hero-copy, .hero-showcase { grid-column: 1 / -1; }
  .hero-showcase { margin-right: 0; max-width: 760px; width: 100%; justify-self: center; }
  .hero-title { font-size: clamp(46px, 8.6vw, 84px); }
  .hero-lead { max-width: 52ch; }
  .install { aspect-ratio: 1.3 / 1; perspective: 2400px; }
  .plane-stage { left: 8%; width: 86%; --base: rotateY(-4deg) rotateX(2deg); }
  .plane-reel { left: 0; top: 44%; width: 22%; }
  .plane-brand { width: 24%; right: 2%; }
  .bar-loc, .cross { display: none; }
  .bg-mark { right: -30vw; top: 70%; width: 120vw; }
}

/* ── Mobile: rethought, not shrunk ── */
@media (max-width: 639px) {
  :root { --header-h: 68px; }
  .brand img { height: 42px; }
  .hero-grid { row-gap: 36px; padding-block: 28px 32px; }
  .eyebrow { margin-bottom: 20px; font-size: 11px; }
  .hero-title { font-size: clamp(40px, 11.6vw, 56px); line-height: .96; }
  .lead-more { display: none; }
  .hero-lead { margin-top: 20px; font-size: 17px; }
  .hero-ctas { flex-direction: column; margin-top: 28px; }
  .hero-ctas .btn { width: 100%; justify-content: space-between; }
  .hero-ctas .btn-ghost { justify-content: center; }

  /* one full-bleed vertical stage; reel and brand become tiles on its corners */
  .hero-showcase { margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px))); width: auto; max-width: none; }
  .install { aspect-ratio: auto; perspective: none; display: grid; }
  .plane { position: relative; left: auto; top: auto; right: auto; bottom: auto; width: auto; transform: none; filter: none; }
  .plane-stage { grid-area: 1 / 1; }
  .plane-stage .plane-body { border-radius: 0; border-inline: 0; }
  .plane-stage .plane-tag { padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)); }
  .screen { aspect-ratio: 4 / 5; }
  .web-desktop { display: none; }
  .web-mobile { display: block; width: 100%; }
  .plane-reel, .plane-brand { grid-area: 1 / 1; align-self: end; width: 24%; margin-bottom: 14px; z-index: 6; }
  .plane-reel { justify-self: start; margin-left: 12px; }
  .plane-brand { justify-self: end; margin-right: 12px; width: 23%; }
  .plane-reel .plane-tag, .plane-brand .plane-tag { display: none; }
  .plane-stage .plane-tag { margin-left: 0; }
  .plane.is-active .plane-body { transform: translateY(-6px); }
  .reel-cta, .reel-head span, .brand-type .glyphs { display: none; }
  .reel-words { font-size: 12px; }
  .stage-link { opacity: 1; transform: translateX(-50%); left: 50%; bottom: 14px; }

  .hero-bar { flex-wrap: wrap; gap: 8px; padding-bottom: 20px; }
  .pillars { width: 100%; overflow-x: auto; scrollbar-width: none; margin-right: 0; }
  .pillars::-webkit-scrollbar { display: none; }
  .pillar { flex-shrink: 0; }
  .scroll-cue { display: none; }
  .bg-mark, .cross { display: none; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 150ms !important; transition-delay: 0ms !important; }
  .js .hero:not(.is-in) .hero-title .w > span, .js .hero:not(.is-in) .reveal { transform: none; }
  .js .hero:not(.is-in) .plane-stage .plane-body { clip-path: none; }
  .web-col { animation: none; }
  .wipe { display: none; }
}

/* ── Language switcher (SR / EN) ── */
.lang { display: flex; align-items: center; gap: 2px; flex-shrink: 0; position: relative; z-index: 2; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; }
.lang a { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 34px; padding: 0 6px; color: var(--text-2); text-decoration: none; border-radius: 6px; transition: color var(--dur-micro) var(--ease-out); }
.lang a:hover { color: var(--text); }
.lang a[aria-current="page"] { color: var(--text); }
.lang a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--lime); }
.lang a:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
@media (max-width: 1023px) {
  .lang { margin-left: auto; }
  .lang + .header-cta + .menu-btn, .lang ~ .menu-btn { margin-left: 0; }
}
/* narrow desktops: make room for the language switcher in the header row */
@media (min-width: 1024px) and (max-width: 1279px) {
  .header-row { gap: 18px; }
  .nav ul { gap: 18px; }
  .nav a { font-size: 14px; }
}
