/* First Principles Studios: site styles
   fonts → tokens → base → type → components → home → inner pages → responsive */

@font-face { font-family: "Satoshi"; src: url("../fonts/Satoshi-Variable.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* registered so the whole page can morph between dark and light "zones" */
@property --bg { syntax: "<color>"; inherits: true; initial-value: #100f0e; }
@property --bg-2 { syntax: "<color>"; inherits: true; initial-value: #171615; }
@property --bg-3 { syntax: "<color>"; inherits: true; initial-value: #201e1c; }
@property --fg { syntax: "<color>"; inherits: true; initial-value: #f2efe9; }
@property --fg-2 { syntax: "<color>"; inherits: true; initial-value: #c4bfb6; }
@property --fg-3 { syntax: "<color>"; inherits: true; initial-value: #8c867d; }
@property --line { syntax: "<color>"; inherits: true; initial-value: rgba(242, 239, 233, 0.1); }
@property --line-2 { syntax: "<color>"; inherits: true; initial-value: rgba(242, 239, 233, 0.2); }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #ffb547; }
@property --b { syntax: "<length>"; inherits: true; initial-value: 10px; }

:root {
  color-scheme: dark;
  --bg: #100f0e; --bg-2: #171615; --bg-3: #201e1c;
  --fg: #f2efe9; --fg-2: #c4bfb6; --fg-3: #8c867d;
  --line: rgba(242, 239, 233, 0.1); --line-2: rgba(242, 239, 233, 0.2);
  --accent: #ffb547;          /* amber as text / lines (darkens in light zones) */
  --signal: #ffb547;          /* amber as a fill */
  --on-signal: #1c1305;
  --rec: #ff4b3a;
  --dot: #8a8a8a;
  --paper: #efe9dd;
  --ink: #24201b;

  --f-sans: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 2.6vw, 44px);
  --nav-h: 72px;
  --r: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);

  --t-hero: clamp(2.6rem, 5.3vw, 5.8rem);
  --t-h2: clamp(2.2rem, 4.5vw, 4.6rem);
  --t-h3: clamp(1.25rem, 1.7vw, 1.65rem);
  --t-lede: clamp(1.1rem, 1.35vw, 1.32rem);
  --t-body: 1.0625rem;

  transition: --bg .8s var(--ease), --bg-2 .8s var(--ease), --bg-3 .8s var(--ease), --fg .8s var(--ease), --fg-2 .8s var(--ease), --fg-3 .8s var(--ease), --line .8s var(--ease), --line-2 .8s var(--ease), --accent .8s var(--ease);
}
:root[data-zone="light"] {
  color-scheme: light;
  --bg: #f4f2ee; --bg-2: #e9e6e0; --bg-3: #ddd9d1;
  --fg: #141210; --fg-2: #46413a; --fg-3: #79726a;
  --line: rgba(20, 18, 16, 0.1); --line-2: rgba(20, 18, 16, 0.22);
  --accent: #a85f00;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--f-sans); font-size: var(--t-body); line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--signal); color: var(--on-signal); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 400; padding: 12px 16px; border-radius: 10px; background: var(--signal); color: var(--on-signal); font-weight: 600; }
.skip:focus { top: 12px; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: text !important; }

/* ---------- type ---------- */
.display { font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.display em, .h2 em, h1 em, h2 em, blockquote em { font-style: normal; color: var(--fg-3); }
.h2 { font-size: var(--t-h2); }
.h3 { font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.lede { font-size: var(--t-lede); line-height: 1.5; color: var(--fg-2); max-width: 46ch; letter-spacing: -0.01em; }
.prose p { color: var(--fg-2); max-width: 62ch; }
.prose p + p { margin-top: 1em; }
.prose strong { color: var(--fg); font-weight: 600; }
.mono { font-family: var(--f-sans); font-size: .8125rem; font-weight: 500; letter-spacing: 0; line-height: 1.45; }
.hud { font-family: var(--f-mono); font-size: .6875rem; font-weight: 450; letter-spacing: .04em; text-transform: uppercase; line-height: 1.5; font-variant-numeric: tabular-nums; }
.signal { color: var(--accent); }
.muted { color: var(--fg-3); }

.slate { display: inline-flex; align-items: center; gap: 10px; color: var(--fg-3); font-size: .875rem; font-weight: 500; }
.slate b { display: inline-grid; place-items: center; min-width: 28px; height: 22px; padding: 0 7px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-weight: 600; font-size: .75rem; font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.wrap { padding-inline: var(--gutter); max-width: 1680px; margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.section { padding-block: clamp(96px, 12vw, 190px); position: relative; }

/* ---------- frame corners (the logo's bracket) ---------- */
.brackets {
  --bc: currentColor; --bt: 1.5px;
  background:
    linear-gradient(var(--bc) 0 0) 0 0 / var(--b) var(--bt), linear-gradient(var(--bc) 0 0) 0 0 / var(--bt) var(--b),
    linear-gradient(var(--bc) 0 0) 100% 0 / var(--b) var(--bt), linear-gradient(var(--bc) 0 0) 100% 0 / var(--bt) var(--b),
    linear-gradient(var(--bc) 0 0) 0 100% / var(--b) var(--bt), linear-gradient(var(--bc) 0 0) 0 100% / var(--bt) var(--b),
    linear-gradient(var(--bc) 0 0) 100% 100% / var(--b) var(--bt), linear-gradient(var(--bc) 0 0) 100% 100% / var(--bt) var(--b);
  background-repeat: no-repeat;
}

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 999px; white-space: nowrap; isolation: isolate; overflow: hidden;
  font-size: .9375rem; font-weight: 600; letter-spacing: -0.01em;
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), transform .6s var(--ease);
}
.btn svg { width: 15px; height: 15px; flex: none; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--signal { background: var(--signal); color: var(--on-signal); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 8px 24px -10px rgba(255, 181, 71, .6); }
.btn--signal:hover { background: #ffc46a; }
.btn--ghost { color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); background: color-mix(in srgb, var(--fg) 4%, transparent); }
.btn--ghost:hover { background: color-mix(in srgb, var(--fg) 10%, transparent); }
.btn--sm { height: 40px; padding: 0 16px; font-size: .875rem; }
.btn[aria-pressed="true"] { background: var(--fg); color: var(--bg); box-shadow: none; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.link { display: inline-flex; align-items: center; gap: .5em; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .3s, color .3s; }
.link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- logo mark ---------- */
.mark { height: 26px; width: auto; }
.nav .mark { height: 36px; }
.mark path { fill: currentColor; }
.mark circle { fill: var(--dot); transition: fill .4s; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 90; height: var(--nav-h);
  display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); padding-inline: var(--gutter);
  background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 1px 0 var(--line);
  transition: transform .7s var(--ease), background-color .5s, box-shadow .5s, color .5s;
}
.nav.is-hidden { transform: translateY(-105%); }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand:hover .mark circle { fill: var(--signal); }
.brand__word { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.02em; line-height: 1; }
.nav .brand__word { font-size: 1.2rem; }
.brand__word small { font-size: .6875rem; font-weight: 500; letter-spacing: .02em; color: var(--fg-3); }
.nav__links { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 5%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.nav__links a { padding: 7px 13px; border-radius: 999px; font-size: .875rem; font-weight: 500; color: var(--fg-2); transition: color .25s, background-color .25s; }
.nav__links a:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 7%, transparent); }
.nav__links a[aria-current="page"] { color: var(--fg); background: color-mix(in srgb, var(--fg) 11%, transparent); }
.nav__menu { display: none; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: .875rem; font-weight: 600; }
.nav__menu i { position: relative; width: 16px; height: 8px; }
.nav__menu i::before, .nav__menu i::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.nav__menu i::before { top: 0; }
.nav__menu i::after { bottom: 0; }
.nav__menu[aria-expanded="true"] i::before { transform: translateY(3.25px) rotate(45deg); }
.nav__menu[aria-expanded="true"] i::after { transform: translateY(-3.25px) rotate(-45deg); }
.rec { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--rec); animation: rec 1.6s steps(1) infinite; }
@keyframes rec { 50% { opacity: .2; } }

/* ---------- menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 85; background: var(--bg); visibility: hidden;
  display: grid; grid-template-rows: 1fr auto; padding: calc(var(--nav-h) + 3vh) var(--gutter) 24px;
  clip-path: inset(0 0 100% 0); transition: clip-path .85s var(--ease-io), visibility 0s .85s;
}
.menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .85s var(--ease-io), visibility 0s; }
.menu__list { align-self: center; }
.menu__list li { border-top: 1px solid var(--line); overflow: hidden; }
.menu__list li:last-child { border-bottom: 1px solid var(--line); }
.menu__list a {
  display: grid; grid-template-columns: minmax(64px, 8vw) 1fr auto; align-items: center; padding: clamp(10px, 1.5vh, 18px) 0;
  font-weight: 500; font-size: clamp(1.8rem, 4.4vw, 4rem); line-height: 1.04; letter-spacing: -0.045em;
  transform: translateY(100%); transition: transform .9s var(--ease), color .3s;
}
.menu.is-open .menu__list a { transform: none; transition-delay: calc(.25s + var(--i, 0) * 45ms), 0s; }
.menu__list a:hover, .menu__list a[aria-current="page"] { color: var(--accent); }
.menu__list .mono { color: var(--fg-3); letter-spacing: 0; }
.menu__list a > span:last-child { font-size: .875rem; font-weight: 500; letter-spacing: 0; color: var(--fg-3); max-width: 26ch; text-align: right; }
.menu__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 20px; color: var(--fg-3); }
.menu__foot a:hover { color: var(--accent); }

/* ---------- cursor ---------- */
.cursor { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.cursor i { position: absolute; left: 0; top: 0; width: 10px; height: 10px; border: 0 solid var(--fg); will-change: transform; transition: border-color .3s, opacity .3s; }
.cursor i:nth-child(1) { border-top-width: 1.5px; border-left-width: 1.5px; }
.cursor i:nth-child(2) { border-top-width: 1.5px; border-right-width: 1.5px; }
.cursor i:nth-child(3) { border-bottom-width: 1.5px; border-left-width: 1.5px; }
.cursor i:nth-child(4) { border-bottom-width: 1.5px; border-right-width: 1.5px; }
.cursor__dot { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: #fff; mix-blend-mode: difference; will-change: transform; transition: width .3s var(--ease), height .3s var(--ease), left .3s var(--ease), top .3s var(--ease); }
.cursor__label { position: absolute; left: 0; top: 0; padding: 4px 8px; border-radius: 6px; background: var(--signal); color: var(--on-signal); font-size: .6875rem; font-weight: 700; white-space: nowrap; opacity: 0; transition: opacity .25s; will-change: transform; }
.cursor.is-locked i { border-color: var(--accent); }
.cursor.has-label .cursor__label { opacity: 1; }
.cursor.is-locked .cursor__dot { width: 4px; height: 4px; left: -2px; top: -2px; }
.cursor.is-hidden i, .cursor.is-hidden .cursor__dot { opacity: 0; }
.cursor.is-down i { border-color: var(--accent); }

/* ---------- grain, shutter, preloader ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 200; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(5) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); } 60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }

.shutter { position: fixed; inset: 0; z-index: 250; pointer-events: none; }
.shutter__a, .shutter__b { position: absolute; left: 0; right: 0; height: 50.5%; background: #151413; }
.shutter__a { top: 0; transform: translateY(-101%); }
.shutter__b { bottom: 0; transform: translateY(101%); }
.shutter__a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--signal); opacity: .8; }
.shutter.is-entering .shutter__a { animation: shut-a .95s var(--ease-io) .08s both; }
.shutter.is-entering .shutter__b { animation: shut-b .95s var(--ease-io) .08s both; }
@keyframes shut-a { from { transform: none; } to { transform: translateY(-101%); } }
@keyframes shut-b { from { transform: none; } to { transform: translateY(101%); } }
.shutter.is-closed { pointer-events: all; }
.shutter.is-closed .shutter__a, .shutter.is-closed .shutter__b { transform: none; transition: transform .6s var(--ease-io); }
.shutter__slate { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 12px; align-items: center; color: #c4bfb6; opacity: 0; white-space: nowrap; }
.shutter.is-closed .shutter__slate { opacity: 1; transition: opacity .25s .3s; }

.preloader { position: fixed; inset: 0; z-index: 260; display: grid; place-items: center; background: #0d0c0b; color: #f2efe9; animation: pre-failsafe .01s 7s forwards; }
.preloader__in { display: grid; justify-items: center; gap: 30px; }
.preloader svg { height: clamp(84px, 13vh, 140px); width: auto; overflow: visible; }
.preloader path, .preloader rect { fill: currentColor; }
.preloader .pl-v, .preloader .pl-h { transform-box: fill-box; }
.preloader .pl-v { transform-origin: 0 100%; transform: scaleY(0); animation: pl-grow .7s var(--ease) .15s forwards; }
.preloader .pl-h { transform-origin: 0 0; transform: scaleX(0); animation: pl-grow .6s var(--ease) .6s forwards; }
.preloader .pl-d { fill: var(--dot); transform-origin: 586px 509px; transform: scale(0); animation: pl-grow .6s var(--ease) 1s forwards; }
@keyframes pl-grow { to { transform: none; } }
.preloader__log { min-height: 6em; width: min(380px, 84vw); color: #8c867d; display: grid; gap: 3px; text-align: center; }
.preloader__log span { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.preloader__log span.is-on { opacity: 1; transform: none; }
.preloader__log span.is-on:last-child { color: var(--signal); }
.preloader__count { position: absolute; right: var(--gutter); bottom: 18px; font-family: var(--f-mono); font-size: clamp(3rem, 9vw, 8rem); font-weight: 200; letter-spacing: -0.06em; line-height: 1; color: #57524b; font-variant-numeric: tabular-nums; }
.preloader__tc { position: absolute; left: var(--gutter); bottom: 26px; color: #8c867d; }
.preloader.is-done { clip-path: inset(50% 0 50% 0); transition: clip-path .9s var(--ease-io); }
@keyframes pre-failsafe { to { visibility: hidden; opacity: 0; } }

/* ---------- reveals ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .02em .12em 0; margin: -.04em -.02em -.12em 0; }
.js [data-split] .wi { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 34ms + var(--d, 0s)); }
.js [data-split].is-in .wi { transform: none; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--line); padding-block: 22px; user-select: none; }
.marquee__track { display: inline-flex; will-change: transform; }
.marquee__track span { display: inline-flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); padding-right: clamp(18px, 2.4vw, 40px); font-weight: 500; font-size: clamp(1.4rem, 3vw, 3rem); letter-spacing: -0.04em; line-height: 1; }
.marquee__track span::after { content: ""; width: .28em; height: .28em; border-radius: 50%; background: var(--dot); }
.marquee__track span:nth-child(3n)::after { background: var(--signal); }

/* ---------- media frame ---------- */
.frame { position: relative; overflow: hidden; border-radius: var(--r); background: var(--bg-2); isolation: isolate; }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; }
.frame__tag { position: absolute; left: 14px; top: 12px; z-index: 2; color: #f2efe9; display: flex; gap: 8px; align-items: center; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.frame::after { content: ""; position: absolute; inset: 12px; pointer-events: none; --b: 14px; --bc: rgba(242, 239, 233, .7); --bt: 1.5px;
  background:
    linear-gradient(var(--bc) 0 0) 0 0 / var(--b) var(--bt), linear-gradient(var(--bc) 0 0) 0 0 / var(--bt) var(--b),
    linear-gradient(var(--bc) 0 0) 100% 0 / var(--b) var(--bt), linear-gradient(var(--bc) 0 0) 100% 0 / var(--bt) var(--b),
    linear-gradient(var(--bc) 0 0) 0 100% / var(--b) var(--bt), linear-gradient(var(--bc) 0 0) 0 100% / var(--bt) var(--b),
    linear-gradient(var(--bc) 0 0) 100% 100% / var(--b) var(--bt), linear-gradient(var(--bc) 0 0) 100% 100% / var(--bt) var(--b);
  background-repeat: no-repeat; opacity: 0; transition: opacity .4s, inset .6s var(--ease);
}
.frame:hover::after { opacity: 1; inset: 16px; }
.js .frame[data-reveal] img { transform: scale(1.1); transition: transform 1.8s var(--ease); }
.js .frame[data-reveal].is-in img { transform: none; }
.chip { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg-2); font-size: .8125rem; font-weight: 500; }

/* ---------- interactive badge + ghost cursor ---------- */
.playhint { display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 10px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: .875rem; font-weight: 500; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .35); }
.playhint b { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--signal); color: var(--on-signal); font-weight: 700; font-size: .75rem; letter-spacing: .02em; }
.playhint b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: ping 1.6s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(28, 19, 5, .55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(28, 19, 5, 0); } }
.ghost { position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; opacity: 0; transition: opacity .4s; }
.ghost.is-on { opacity: 1; }
.ghost svg { width: 26px; height: 26px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); transition: transform .2s; }
.ghost span { position: absolute; left: 22px; top: 24px; padding: 4px 9px; border-radius: 6px; background: var(--fg); color: var(--bg); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.ghost.is-down svg { transform: scale(.86); }

/* ======================================================================
   HOME: hero sandbox
   ====================================================================== */
.hero { position: relative; height: 560vh; background: #0b0c0f; }
.hero__stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; --fx: 0px; --fy: 0px; --fw: 100vw; --fh: 100vh; color: #f2efe9; }
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__fallback { display: none; }
.no-webgl .hero__fallback { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.hero__scrim { position: absolute; inset: 0; pointer-events: none; z-index: 2; background: linear-gradient(to top, rgba(8, 8, 10, .82) 0%, rgba(8, 8, 10, .3) 34%, transparent 58%), linear-gradient(to right, rgba(8, 8, 10, .55) 0%, transparent 46%); opacity: var(--scrim, 1); }
.hero__bars { position: absolute; inset: 0; pointer-events: none; opacity: var(--bars, 1); z-index: 3; }
.hero__bars::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 150px; background: linear-gradient(to top, rgba(7, 7, 9, .8), transparent); }
.hero__frame { position: absolute; z-index: 3; left: calc(var(--fx) + 18px); top: calc(var(--fy) + 14px); width: calc(var(--fw) - 36px); height: calc(var(--fh) - 28px); pointer-events: none; --b: 30px; --bc: rgba(242, 239, 233, .75); --bt: 1.5px; opacity: var(--bars, 1); }
.hero__frame::before, .hero__frame::after { content: ""; position: absolute; left: 50%; top: 50%; background: rgba(242, 239, 233, .6); }
.hero__frame::before { width: 16px; height: 1px; transform: translate(-50%, -50%); }
.hero__frame::after { width: 1px; height: 16px; transform: translate(-50%, -50%); }
.hero__hud { position: absolute; z-index: 4; left: var(--gutter); right: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 18px; color: rgba(242, 239, 233, .82); pointer-events: none; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.hero__hud--top { top: calc(var(--nav-h) + 4px); }
.hero__hud--top span { display: inline-flex; align-items: center; gap: 8px; }
.hero__hud--top [data-hero-mode] { color: var(--signal); }
.hero__hud--bottom { bottom: 16px; pointer-events: auto; flex-wrap: wrap; }
.lens-chips { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(242, 239, 233, .07); box-shadow: inset 0 0 0 1px rgba(242, 239, 233, .14); }
.lens-chips > span { margin: 0 8px 0 10px; color: rgba(242, 239, 233, .55); }
.lens-chips button { min-width: 42px; height: 30px; padding: 0 10px; border-radius: 999px; color: rgba(242, 239, 233, .7); font-family: var(--f-mono); font-size: .75rem; transition: color .25s, background-color .25s; }
.lens-chips button:hover { color: #fff; background: rgba(242, 239, 233, .1); }
.lens-chips button[aria-pressed="true"] { color: var(--on-signal); background: var(--signal); }
.lens-hint { display: inline-flex; align-items: center; gap: 8px; margin: 0 6px 0 10px; color: var(--signal); font-family: var(--f-sans); font-size: .8125rem; font-weight: 600; text-transform: none; letter-spacing: 0; }
.lens-hint::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); animation: ping-amber 1.6s var(--ease) infinite; }
@keyframes ping-amber { 0% { box-shadow: 0 0 0 0 rgba(255, 181, 71, .6); } 80%, 100% { box-shadow: 0 0 0 8px rgba(255, 181, 71, 0); } }
.hero__readout { display: flex; gap: clamp(14px, 2vw, 28px); }
.hero__readout div { display: flex; gap: 8px; }
.hero__readout dt { color: rgba(242, 239, 233, .5); }
.hero__readout dd { color: #f2efe9; min-width: 6ch; }
.hero__skip { display: inline-flex; align-items: center; gap: 10px; color: rgba(242, 239, 233, .7); transition: color .3s; }
.hero__skip:hover { color: #fff; }
.hero__skip i { width: 1px; height: 22px; background: linear-gradient(var(--signal), transparent); animation: drip 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.hero__copy { position: absolute; z-index: 5; left: var(--gutter); right: var(--gutter); bottom: calc(max(var(--fy), 92px) + 28px); pointer-events: none; }
.hero__panel { position: absolute; left: 0; bottom: 0; width: min(1080px, 100%); opacity: 0; visibility: hidden; transform: translateY(24px); filter: blur(6px); transition: opacity .6s var(--ease), transform .9s var(--ease), filter .6s, visibility 0s .6s; }
.hero__panel.is-active { opacity: 1; visibility: visible; transform: none; filter: none; pointer-events: auto; transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s, visibility 0s; }
.hero__panel .eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 6px 12px 6px 10px; border-radius: 999px; background: rgba(242, 239, 233, .08); box-shadow: inset 0 0 0 1px rgba(242, 239, 233, .14); color: rgba(242, 239, 233, .85); font-size: .8125rem; font-weight: 500; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero__panel .eyebrow b { color: var(--signal); font-weight: 600; }
.hero__title { font-size: var(--t-hero); max-width: 12em; letter-spacing: -0.05em; }
.hero__title em, .hero__panel h2 em { color: rgba(242, 239, 233, .5); }
.hero__sub { margin-top: 22px; max-width: 52ch; font-size: var(--t-lede); line-height: 1.5; color: rgba(242, 239, 233, .78); letter-spacing: -0.01em; }
.hero__panel .btns { margin-top: 30px; }
.hero__panel .btn--ghost { color: #f2efe9; box-shadow: inset 0 0 0 1px rgba(242, 239, 233, .3); background: rgba(242, 239, 233, .06); }
.hero__panel h2 { font-size: clamp(2.4rem, 5vw, 5.4rem); max-width: 13em; }
.hero__panel--final h2 { font-size: clamp(2.8rem, 6.6vw, 7rem); }
.hero__steps { position: absolute; z-index: 4; right: var(--gutter); top: 50%; transform: translateY(-50%); display: grid; gap: 14px; justify-items: end; color: rgba(242, 239, 233, .45); }
.hero__steps li { display: flex; align-items: center; gap: 10px; transition: color .4s; }
.hero__steps li::after { content: ""; width: 22px; height: 1px; background: currentColor; transition: width .5s var(--ease), background-color .4s; }
.hero__steps li.is-on { color: #f2efe9; }
.hero__steps li.is-on::after { width: 40px; background: var(--signal); }
.hero__labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.tag3d { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 7px; padding: 5px 9px 5px 7px; border-radius: 6px; background: rgba(10, 10, 12, .78); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .35); color: #f2efe9; white-space: nowrap; font-family: var(--f-mono); font-size: .625rem; letter-spacing: .04em; text-transform: uppercase; opacity: 0; will-change: transform, opacity; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tag3d b { color: var(--signal); font-weight: 600; }
.hero__build { position: absolute; z-index: 4; left: var(--gutter); top: calc(var(--nav-h) + 30px); display: flex; align-items: center; gap: 10px; color: rgba(242, 239, 233, .6); transition: opacity .8s; }
.hero__build b { color: #f2efe9; font-weight: 500; }
.hero__build i { position: relative; width: 120px; height: 2px; border-radius: 2px; background: rgba(242, 239, 233, .15); overflow: hidden; }
.hero__build i::after { content: ""; position: absolute; inset: 0; background: var(--signal); transform-origin: left; transform: scaleX(var(--build, 0)); }
.hero__final { position: absolute; inset: 0; z-index: 1; clip-path: inset(0 calc((1 - var(--wipe, 0)) * 100%) 0 0); pointer-events: none; background: #000; }
.hero__final video { width: 100%; height: 100%; object-fit: cover; }
.hero__final::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 6, 8, .78), transparent 55%), linear-gradient(to right, rgba(6, 6, 8, .55), transparent 50%); }
.hero__wipe { position: absolute; z-index: 2; top: 0; bottom: 0; left: calc(var(--wipe, 0) * 100%); width: 2px; margin-left: -1px; background: var(--signal); box-shadow: 0 0 24px 4px rgba(255, 181, 71, .55); opacity: var(--wipe-line, 0); pointer-events: none; }
.hero__wipe::after { content: "Final pixel"; position: absolute; top: calc(var(--fy) + 22px); right: 10px; padding: 4px 8px; border-radius: 6px; background: var(--signal); color: var(--on-signal); font-size: .6875rem; font-weight: 700; white-space: nowrap; }
.hero__stick.is-flash .hero__gl { animation: glitch .26s steps(3) 1; }
@keyframes glitch { 0% { filter: contrast(1.8) brightness(1.5); transform: translateX(-5px); } 50% { filter: invert(1) contrast(1.4); transform: translateX(4px) skewX(-3deg); } 100% { filter: none; transform: none; } }

/* ---------- logos ---------- */
.logos { border-bottom: 1px solid var(--line); }
.logos__row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(24px, 4vw, 70px); padding-block: clamp(28px, 3.4vw, 46px); }
.logos__row > p { color: var(--fg-3); font-size: .9375rem; max-width: 22ch; line-height: 1.4; }
.logos__list { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.logos__list li { display: flex; align-items: center; gap: 12px; color: var(--fg-2); opacity: .8; transition: opacity .3s; }
.logos__list li:hover { opacity: 1; }
.logos__list svg { height: 32px; width: auto; fill: currentColor; }
.logos__list img { height: 34px; width: auto; }
.logos__list span { display: grid; line-height: 1.15; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--fg); }
.logos__list span small { font-weight: 500; font-size: .75rem; letter-spacing: 0; color: var(--fg-3); }

/* ---------- explainer ---------- */
.explain__head { grid-column: 1 / span 6; }
.explain__head .h2 { margin-top: 22px; }
.explain__body { grid-column: 8 / span 5; align-self: end; }
.explain__body .btns { margin-top: 30px; }
.explain__notes { grid-column: 1 / -1; margin-top: clamp(48px, 6vw, 90px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; border-radius: var(--r); overflow: hidden; background: var(--line); box-shadow: inset 0 0 0 1px var(--line); }
.explain__notes li { background: var(--bg); padding: 22px 20px 24px; display: grid; gap: 8px; align-content: start; }
.explain__notes b { font-weight: 600; letter-spacing: -0.01em; }
.explain__notes span { color: var(--fg-3); font-size: .9375rem; line-height: 1.45; }
.explain__notes i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-style: normal; font-weight: 700; font-size: .8125rem; }
.compare { grid-column: 1 / -1; margin-top: clamp(56px, 7vw, 100px); width: 100%; border-collapse: collapse; }
.compare caption { text-align: left; padding-bottom: 16px; color: var(--fg-3); font-size: .875rem; font-weight: 500; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 16px 18px 0; border-top: 1px solid var(--line); font-weight: 400; }
.compare thead th { color: var(--fg-3); font-size: .875rem; font-weight: 500; border-top: 0; padding-bottom: 12px; }
.compare thead th:last-child { color: var(--accent); }
.compare tbody th { width: 22%; font-weight: 600; letter-spacing: -0.01em; }
.compare td:nth-child(2) { width: 30%; color: var(--fg-3); }
.compare td:nth-child(3) { color: var(--fg); position: relative; padding-left: 28px; }
.compare td:nth-child(3)::before { content: ""; position: absolute; left: 0; top: 24px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.js .compare tbody tr { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .compare.is-in tbody tr { opacity: 1; transform: none; }

/* ---------- pipeline ---------- */
.pipe__head { align-items: end; }
.pipe__head > div:first-child { grid-column: 1 / span 6; }
.pipe__head .h2 { margin-top: 22px; }
.pipe__head .prose { grid-column: 8 / span 5; }
.pipe__hint { margin-top: 18px; }
.pipe__flow { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 86px); }
.pipe__flow::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--line-2); }
.pipe__pulse { position: absolute; top: 20px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 14px var(--signal); animation: pulse-run 5.5s linear infinite; }
@keyframes pulse-run { from { left: 0; } to { left: calc(100% - 7px); } }
.pipe__node { position: relative; display: grid; gap: 10px; justify-items: start; text-align: left; padding: 0 14px 18px 0; color: var(--fg-3); transition: color .4s; }
.pipe__node .pipe__dot { position: relative; width: 47px; height: 47px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .4s, background-color .4s; }
.pipe__node .pipe__dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--fg-3); transition: background-color .3s, transform .5s var(--ease); }
.pipe__node .num { font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pipe__node b { display: block; font-weight: 600; font-size: clamp(.95rem, 1.08vw, 1.1rem); line-height: 1.25; color: var(--fg-2); letter-spacing: -0.015em; transition: color .3s; }
.pipe__node:hover b { color: var(--fg); }
.pipe__node:hover .pipe__dot { box-shadow: inset 0 0 0 1px var(--fg-3); }
.pipe__node[aria-selected="true"] { color: var(--accent); }
.pipe__node[aria-selected="true"] b { color: var(--fg); }
.pipe__node[aria-selected="true"] .pipe__dot { background: color-mix(in srgb, var(--signal) 18%, var(--bg-2)); box-shadow: inset 0 0 0 1.5px var(--signal); }
.pipe__node[aria-selected="true"] .pipe__dot::after { background: var(--signal); transform: scale(1.3); }
.pipe__node .ai-tag { padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: .6875rem; font-weight: 600; }
.pipe__panel { margin-top: clamp(28px, 3.5vw, 48px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); padding: clamp(24px, 3vw, 40px); border-radius: calc(var(--r) + 4px); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.pipe__panel[hidden] { display: none; }
.pipe__panel h3 { grid-column: 1 / span 4; font-size: clamp(1.8rem, 3vw, 3.2rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.pipe__panel h3 small { display: block; margin-bottom: 16px; color: var(--accent); font-size: .8125rem; font-weight: 600; letter-spacing: 0; }
.pipe__cols { grid-column: 5 / span 5; display: grid; gap: 22px; align-content: start; }
.pipe__cols h4 { color: var(--fg-3); margin-bottom: 6px; }
.pipe__cols p, .pipe__cols li { color: var(--fg-2); }
.pipe__cols ul li { padding: 6px 0; border-top: 1px solid var(--line); }
.pipe__panel .frame { grid-column: 10 / span 3; aspect-ratio: 4 / 5; align-self: start; }
.js .pipe__panel:not([hidden]) > * { animation: rise .8s var(--ease) both; }
.js .pipe__panel:not([hidden]) > *:nth-child(2) { animation-delay: .06s; }
.js .pipe__panel:not([hidden]) > *:nth-child(3) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- lens lab (light zone) ---------- */
.lab.section { padding-bottom: clamp(40px, 4vw, 64px); }
.lab__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.lab__head > div:first-child { grid-column: 1 / span 7; }
.lab__head .h2 { margin-top: 22px; }
.lab__head .prose { grid-column: 9 / span 4; }
.lab__head .playhint { margin-top: 26px; }
.lab__app { margin-top: clamp(36px, 4.5vw, 64px); display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(300px, 1fr); gap: 14px; align-items: start; }
.lab__main { display: grid; gap: 12px; align-content: start; position: sticky; top: calc(var(--nav-h) + 16px); }
.lab__view { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); background: #d6d2ca; overflow: hidden; box-shadow: 0 30px 80px -40px rgba(20, 18, 16, .45), inset 0 0 0 1px var(--line); }
.lab__view canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lab__mask::before, .lab__mask::after { content: ""; position: absolute; left: 0; right: 0; height: var(--bar, 0px); background: rgba(12, 11, 10, .9); transition: height .6s var(--ease); z-index: 1; }
.lab__mask::before { top: 0; }
.lab__mask::after { bottom: 0; }
.lab__view[data-style="storyboard"] .lab__mask::before, .lab__view[data-style="storyboard"] .lab__mask::after { background: #ddd5c6; }
.lab__paper { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .5 0 0 0 0 .42 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"); }
.lab__view[data-style="storyboard"] .lab__paper { opacity: .5; }
.lab__hud { position: absolute; inset: 0; z-index: 2; pointer-events: none; padding: 14px 16px; display: grid; grid-template-rows: auto 1fr auto; color: #f2efe9; }
.lab__view[data-style="storyboard"] .lab__hud { color: var(--ink); }
.lab__hud > div { display: flex; justify-content: space-between; gap: 12px; }
.lab__shot { font-family: var(--f-sans); text-transform: none; letter-spacing: -0.03em; font-weight: 600; font-size: clamp(1rem, 1.8vw, 1.75rem); line-height: 1; }
.lab__shot small { display: block; margin-bottom: 6px; font-family: var(--f-mono); font-size: .625rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 450; color: var(--signal); }
.lab__view[data-style="storyboard"] .lab__shot small { color: #9a5a00; }
.lab__styles { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; }
.lab__view.is-glitch canvas { animation: glitch .32s steps(3) 1; }
.lab__side { display: grid; gap: 14px; align-content: start; }
.lab__plan { position: relative; aspect-ratio: 12 / 7.4; border-radius: var(--r); overflow: hidden; background: var(--bg-2); touch-action: none; box-shadow: inset 0 0 0 1px var(--line); }
.lab__plan canvas { width: 100%; height: 100%; }
.lab__plan .mono { position: absolute; left: 12px; top: 10px; color: var(--fg-3); pointer-events: none; }
.lab__controls { display: grid; gap: 2px; padding: 14px 16px 8px; border-radius: var(--r); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.ctl { display: grid; gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ctl--pair { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 14px; }
.ctl--pair > div { display: grid; gap: 6px; align-content: start; color: var(--fg-2); }
.ctl--pair .seg { justify-self: start; }
.ctl:last-child { border-bottom: 0; }
.ctl > span { display: flex; justify-content: space-between; align-items: baseline; color: var(--fg-2); }
.ctl output { color: var(--fg); font-family: var(--f-mono); font-size: .75rem; font-variant-numeric: tabular-nums; }
.lab__data { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; border-radius: var(--r); overflow: hidden; background: var(--line); box-shadow: inset 0 0 0 1px var(--line); }
.lab__data div { background: var(--bg-2); padding: 12px 14px 12px; }
.lab__data dt { color: var(--fg-3); font-size: .75rem; font-weight: 500; }
.lab__data dd { margin-top: 4px; font-family: var(--f-mono); font-weight: 500; font-size: 1.05rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.lab__presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lab__presets > span { color: var(--fg-3); margin-right: 6px; }

/* range */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: var(--line-2); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-2); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--signal); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--line-2), 0 2px 8px rgba(0, 0, 0, .25); transition: transform .2s; }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--signal); border: 3px solid var(--bg); }
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px color-mix(in srgb, var(--signal) 40%, transparent); }

/* segmented */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 7%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { white-space: nowrap; padding: 6px 12px; border-radius: 999px; font-size: .8125rem; font-weight: 600; color: var(--fg-3); transition: color .25s, background-color .25s; }
.seg button:hover { color: var(--fg); }
.seg button[aria-checked="true"], .seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.lab__styles.seg { background: rgba(12, 11, 10, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lab__styles.seg button { color: rgba(242, 239, 233, .7); }
.lab__styles.seg button[aria-checked="true"] { background: var(--signal); color: var(--on-signal); }

/* ---------- versus: pinned, flips to "with previz" as you scroll (light zone) ---------- */
.versus { position: relative; padding-top: clamp(32px, 4vw, 64px); }
.versus__stick { position: sticky; top: var(--stick-top, calc(var(--nav-h) + 16px)); }
.versus__spacer { height: 70vh; }
.versus__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
.versus__head { grid-column: 1 / span 5; }
.versus__head .h2 { margin-top: 22px; }
.versus__head .lede { margin-top: 20px; }
.versus__switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 34px; padding: 4px; border-radius: 999px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.versus__switch button { position: relative; z-index: 1; padding: 12px 22px; border-radius: 999px; font-size: .9375rem; font-weight: 600; color: var(--fg-3); transition: color .4s; }
.versus__switch button[aria-checked="true"] { color: #fff; }
.versus__knob { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: #8a8178; transition: transform .6s var(--ease), background-color .4s; }
.versus[data-state="on"] .versus__knob { transform: translateX(100%); background: var(--signal); }
.versus[data-state="on"] .versus__switch button[aria-checked="true"] { color: var(--on-signal); }
.versus__meter { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 18px; color: var(--fg-3); font-size: .8125rem; font-weight: 500; }
.versus__meter i { position: relative; width: 160px; height: 3px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.versus__meter i::after { content: ""; position: absolute; inset: 0; background: var(--signal); transform-origin: left; transform: scaleX(var(--vp, 0)); }
.versus__list { grid-column: 7 / span 6; }
.versus__list li { display: grid; grid-template-columns: 118px 26px 1fr; gap: 16px; align-items: start; padding: 20px 0; border-top: 1px solid var(--line); }
.versus__list li:last-child { border-bottom: 1px solid var(--line); }
.versus__list li > .mono { color: var(--fg-3); padding-top: 4px; transition: color .4s; }
.versus__ico { position: relative; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; background: rgba(176, 72, 52, .12); transition: background-color .5s var(--ease); }
.versus__ico::before, .versus__ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.8px; border-radius: 2px; background: #b04834; transform: translate(-50%, -50%) rotate(45deg); transition: transform .5s var(--ease), background-color .4s, width .5s var(--ease); }
.versus__ico::after { transform: translate(-50%, -50%) rotate(-45deg); }
.versus[data-state="on"] .versus__ico { background: var(--signal); }
.versus[data-state="on"] .versus__ico::before { width: 6px; background: var(--on-signal); transform: translate(-95%, 10%) rotate(45deg); }
.versus[data-state="on"] .versus__ico::after { width: 11px; background: var(--on-signal); transform: translate(-30%, -40%) rotate(-50deg); }
.versus__say { display: grid; }
.versus__say p { grid-area: 1 / 1; font-size: clamp(1.05rem, 1.35vw, 1.32rem); line-height: 1.42; letter-spacing: -0.015em; transition: opacity .55s var(--ease), transform .7s var(--ease), filter .55s, visibility 0s; }
.versus__say .v-off { color: var(--fg-2); }
.versus__say .v-on { color: var(--fg); font-weight: 500; }
.versus[data-state="off"] .v-on, .versus[data-state="on"] .v-off { opacity: 0; transform: translateY(10px); filter: blur(6px); visibility: hidden; transition: opacity .4s, transform .5s, filter .4s, visibility 0s .4s; }
.versus[data-state="on"] .versus__list li > .mono { color: var(--accent); }
.js .versus__list li { transition-delay: calc(var(--i, 0) * 60ms); }

/* ---------- calculator: previz costs a tenth of the shoot it plans (light zone) ---------- */
.calcx.section { padding-block: clamp(56px, 6vw, 96px) clamp(80px, 9vw, 140px); }
.calcx__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px 40px; margin-bottom: clamp(24px, 3vw, 40px); }
.calcx__head .h2 { margin-top: 20px; }
.calcx__card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-radius: 24px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line), 0 40px 90px -60px rgba(20, 18, 16, .45); overflow: hidden; }
.calcx__inputs { display: grid; gap: 6px; align-content: start; padding: clamp(22px, 2.6vw, 36px); border-right: 1px solid var(--line); }
.calc__cur { margin-bottom: 10px; justify-self: start; }
.calcx__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 10px; padding: 16px 0 0; border-top: 1px solid var(--line-2); font-weight: 600; }
.calcx__total b { font-family: var(--f-mono); font-weight: 500; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.calcx__rule { color: var(--fg-3); }
.calcx__result { display: grid; align-content: start; padding: clamp(22px, 2.6vw, 36px) clamp(22px, 3vw, 44px); background: color-mix(in srgb, var(--bg) 55%, var(--bg-2)); }
.calcx__result > .mono { color: var(--fg-2); font-size: .9375rem; }
.calcx__save { display: block; margin-top: 6px; font-weight: 600; font-size: clamp(3rem, 6.2vw, 6.4rem); letter-spacing: -0.055em; line-height: .95; color: var(--fg); font-variant-numeric: tabular-nums; }
.calcx__bars { margin-top: clamp(20px, 2.4vw, 30px); display: grid; gap: 16px; }
.calcx__bar { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: baseline; }
.calcx__bar > span { font-weight: 600; }
.calcx__bar b { font-family: var(--f-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.calcx__bar i { grid-column: 1 / -1; position: relative; height: 12px; border-radius: 12px; background: var(--line); overflow: hidden; }
.calcx__bar i::after { content: ""; position: absolute; inset: 0; border-radius: 12px; background: #8a8178; transform-origin: left; transform: scaleX(var(--w, 1)); transition: transform .7s var(--ease); }
.calcx__bar--on i::after { background: var(--signal); }
.calcx__foot { margin-top: clamp(22px, 2.6vw, 32px); padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; }
.calcx__foot small { color: var(--fg-3); font-size: .8125rem; }

/* ---------- roles ---------- */
.roles__head { grid-column: 1 / span 6; }
.roles__head .h2 { margin-top: 22px; }
.roles__tabs { grid-column: 1 / span 4; margin-top: clamp(40px, 5vw, 70px); display: grid; align-content: start; }
.roles__tabs button { display: flex; justify-content: space-between; align-items: center; text-align: left; padding: 18px 0; border-top: 1px solid var(--line); font-weight: 500; font-size: clamp(1.15rem, 1.6vw, 1.6rem); letter-spacing: -0.035em; color: var(--fg-3); transition: color .3s, padding .5s var(--ease); }
.roles__tabs button::after { content: ""; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); opacity: 0; transition: opacity .3s; }
.roles__tabs button:hover { color: var(--fg); }
.roles__tabs button[aria-selected="true"] { color: var(--fg); padding-left: 14px; }
.roles__tabs button[aria-selected="true"]::after { opacity: 1; color: var(--accent); }
.roles__panels { grid-column: 6 / span 7; margin-top: clamp(40px, 5vw, 70px); }
.roles__panel[hidden] { display: none; }
.roles__panel blockquote { font-weight: 500; font-size: clamp(1.7rem, 3.1vw, 3.2rem); line-height: 1.06; letter-spacing: -0.045em; }
.roles__panel ul { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.roles__panel li { padding-top: 16px; border-top: 1px solid var(--line-2); color: var(--fg-2); }
.roles__panel li b { display: block; color: var(--fg); margin-bottom: 6px; font-weight: 600; }
.js .roles__panel:not([hidden]) blockquote, .js .roles__panel:not([hidden]) li { animation: rise .8s var(--ease) both; }
.js .roles__panel:not([hidden]) li:nth-child(2) { animation-delay: .07s; }
.js .roles__panel:not([hidden]) li:nth-child(3) { animation-delay: .14s; }

/* ---------- VP reel ---------- */
.vp { position: relative; height: 260vh; }
.vp__stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; color: #f2efe9; }
.vp__media { position: absolute; inset: 0; transform: scale(calc(.36 + var(--p, 0) * .64)); clip-path: inset(0 round calc((1 - var(--p, 0)) * 28px)); will-change: transform; background: #000; }
.vp__media video, .vp__media img { width: 100%; height: 100%; object-fit: cover; }
.vp__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 8, 10, .9), rgba(8, 8, 10, .2) 55%, rgba(8, 8, 10, .45)); opacity: calc(.25 + var(--p, 0) * .75); }
.vp__hud { position: absolute; inset: 22px; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; opacity: calc(var(--p, 0) * 2 - .6); }
.vp__copy { position: relative; z-index: 3; align-self: end; width: 100%; padding-bottom: clamp(36px, 6vh, 70px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.vp__title { grid-column: 1 / span 7; font-size: clamp(2.6rem, 6vw, 7rem); }
.vp__title em { color: rgba(242, 239, 233, .5); }
.vp__text { grid-column: 9 / span 4; }
.vp__text p { color: rgba(242, 239, 233, .8); }
.vp__text .btns { margin-top: 22px; }
.vp__text .btn--ghost { color: #f2efe9; box-shadow: inset 0 0 0 1px rgba(242, 239, 233, .3); }
.vp__copy > * { opacity: clamp(0, calc(var(--p, 0) * 3 - 1.4), 1); transform: translateY(calc((1 - clamp(0, calc(var(--p, 0) * 3 - 1.4), 1)) * 30px)); }

.reel { width: min(1400px, 94vw); max-width: none; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: #000; color: #f2efe9; }
.reel::backdrop { background: rgba(6, 6, 8, .92); }
.reel video { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.reel__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: #111; }
.reel__bar .btn--ghost { color: #f2efe9; box-shadow: inset 0 0 0 1px rgba(242, 239, 233, .3); }

/* ---------- services list ---------- */
.svc__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; margin-bottom: clamp(40px, 5vw, 76px); }
.svc__head > div:first-child { grid-column: 1 / span 7; }
.svc__head .h2 { margin-top: 22px; }
.svc__head p { grid-column: 9 / span 4; color: var(--fg-2); }
.svc__list li { border-top: 1px solid var(--line); }
.svc__list li:last-child { border-bottom: 1px solid var(--line); }
.svc__list a { position: relative; display: grid; grid-template-columns: 80px minmax(0, 1.25fr) minmax(0, 1fr) 30px; align-items: center; gap: 20px; padding: clamp(18px, 2.1vw, 28px) 0; transition: color .3s; }
.svc__list a::before { content: ""; position: absolute; inset: 0 -14px; border-radius: 14px; background: var(--bg-2); transform: scaleY(.6); opacity: 0; transition: transform .5s var(--ease), opacity .3s; z-index: -1; }
.svc__list a:hover::before { transform: none; opacity: 1; }
.svc__list .mono { color: var(--fg-3); transition: color .3s; font-variant-numeric: tabular-nums; }
.svc__list b { font-weight: 500; font-size: clamp(1.4rem, 2.8vw, 2.8rem); letter-spacing: -0.045em; line-height: 1.02; transition: transform .6s var(--ease); }
.svc__list a > span:nth-child(3) { color: var(--fg-3); transition: color .3s; }
.svc__list svg { width: 22px; height: 22px; color: var(--fg-3); transition: transform .5s var(--ease), color .3s; }
.svc__list a:hover .mono, .svc__list a:hover svg { color: var(--accent); }
.svc__list a:hover b { transform: translateX(12px); }
.svc__list a:hover > span:nth-child(3) { color: var(--fg-2); }
.svc__list a:hover svg { transform: rotate(-45deg); }
.peek { position: fixed; left: 0; top: 0; z-index: 70; width: clamp(220px, 21vw, 340px); aspect-ratio: 4 / 3; pointer-events: none; opacity: 0; transform: translate3d(-999px, -999px, 0); transition: opacity .3s; overflow: hidden; border-radius: 14px; }
.peek.is-on { opacity: 1; }
.peek img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- AI teaser + brush reveal ---------- */
.ai__media { grid-column: 1 / span 6; aspect-ratio: 5 / 4; }
.ai__copy { grid-column: 8 / span 5; align-self: center; }
.ai__copy .h2 { margin-top: 22px; }
.ai__copy .prose { margin-top: 24px; }
.ai__copy .btns { margin-top: 30px; }
.flowmini { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.flowmini li { padding: 16px 14px 0 0; color: var(--fg-2); font-size: .9375rem; line-height: 1.45; }
.flowmini li .mono { display: block; color: var(--accent); margin-bottom: 6px; }
.brush { position: relative; overflow: hidden; background: #0c0a08; border-radius: var(--r); }
.brush > img, .brush > canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brush__top { -webkit-mask-image: radial-gradient(circle var(--r-brush, 190px) at var(--mx, 50%) var(--my, 50%), #000 42%, transparent 72%); mask-image: radial-gradient(circle var(--r-brush, 190px) at var(--mx, 50%) var(--my, 50%), #000 42%, transparent 72%); }
.brush__hud { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; display: flex; justify-content: space-between; color: #f2efe9; pointer-events: none; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.brush__hud b { color: var(--signal); font-weight: 500; }
.led-dots { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, transparent 38%, #0a0908 62%) 0 0 / 7px 7px; mix-blend-mode: multiply; }

/* ---------- ICVFX teaser ---------- */
.icv { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; color: #f2efe9; }
.icv__media { position: absolute; inset: 0; border-radius: 0; }
.icv__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 9, 8, .92) 0%, rgba(10, 9, 8, .55) 45%, transparent 75%), linear-gradient(to top, var(--bg) 0%, transparent 30%); pointer-events: none; z-index: 1; }
.icv__copy { position: relative; z-index: 2; padding-block: clamp(110px, 14vw, 200px) clamp(70px, 9vw, 130px); width: 100%; }
.icv__copy > * { max-width: 620px; }
.icv__copy .slate { color: rgba(242, 239, 233, .65); }
.icv__copy .h2 { margin-top: 22px; }
.icv__copy .h2 em { color: rgba(242, 239, 233, .5); }
.icv__copy p:not(.slate) { margin-top: 22px; color: rgba(242, 239, 233, .8); }
.icv__copy .btns { margin-top: 30px; }
.icv__copy ul { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.icv__copy .chip { color: rgba(242, 239, 233, .8); box-shadow: inset 0 0 0 1px rgba(242, 239, 233, .25); }
.icv__copy .btn--ghost { color: #f2efe9; box-shadow: inset 0 0 0 1px rgba(242, 239, 233, .3); }

/* ---------- poster rail ---------- */
.rail { position: relative; height: 330vh; }
.rail__stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; padding-top: calc(var(--nav-h) + 4vh); }
.rail__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; width: 100%; }
.rail__head > div { grid-column: 1 / span 7; }
.rail__head .h2 { margin-top: 20px; }
.rail__head p { grid-column: 9 / span 4; color: var(--fg-2); }
.rail__track { align-self: center; display: flex; gap: clamp(14px, 1.6vw, 24px); padding-inline: var(--gutter); will-change: transform; transform: translate3d(calc(var(--x, 0) * -1px), 0, 0); }
.poster { flex: none; width: clamp(200px, 19vw, 310px); display: grid; gap: 10px; transform: perspective(900px) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); }
.poster .frame { aspect-ratio: 3 / 4; }
.poster .frame img { filter: grayscale(.3) contrast(1.05); transition: filter .5s, transform .8s var(--ease); }
.poster:hover .frame img { filter: none; transform: scale(1.04); }
.poster b { display: block; font-weight: 600; font-size: 1.02rem; letter-spacing: -0.015em; line-height: 1.2; }
.poster .mono { color: var(--fg-3); }
.poster--next .frame { display: grid; place-items: center; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); text-align: center; }
.poster--next .frame span { font-weight: 500; font-size: 1.6rem; letter-spacing: -0.04em; line-height: 1.05; }
.poster--next .frame em { font-style: normal; color: var(--fg-3); }
.rail__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 26px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.rail__bar i { position: absolute; inset: 0; background: var(--signal); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- partners ---------- */
.partners__head { grid-column: 1 / span 6; }
.partners__head .h2 { margin-top: 22px; }
.partners__head p:last-child { margin-top: 20px; color: var(--fg-2); max-width: 50ch; }
.partners__list { grid-column: 1 / -1; margin-top: clamp(44px, 5.5vw, 84px); }
.partner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: clamp(26px, 3.2vw, 44px) 0; border-top: 1px solid var(--line); align-items: start; }
.partner:last-child { border-bottom: 1px solid var(--line); }
.partner__logo { grid-column: 1 / span 3; aspect-ratio: 16 / 10; border-radius: var(--r); background: var(--bg-2); display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.partner__logo img { width: 72%; height: auto; max-height: 70%; object-fit: contain; }
.partner h3 { grid-column: 5 / span 3; font-weight: 500; font-size: clamp(1.6rem, 2.4vw, 2.4rem); letter-spacing: -0.045em; line-height: 1; }
.partner h3 small { display: block; margin-top: 12px; color: var(--accent); font-size: .8125rem; font-weight: 600; letter-spacing: 0; }
.partner p { grid-column: 8 / span 5; color: var(--fg-2); }

/* ---------- CTA + footer ---------- */
.cta { padding-block: clamp(110px, 13vw, 210px) clamp(70px, 8vw, 120px); }
.cta__title { margin-top: 26px; font-size: clamp(3rem, 9vw, 10.5rem); letter-spacing: -0.055em; }
.cta__row { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.cta__row p { grid-column: 1 / span 5; color: var(--fg-2); font-size: var(--t-lede); line-height: 1.5; }
.cta__row .btns { grid-column: 8 / span 5; justify-content: flex-end; }
.footer { border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 84px); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px; }
.footer__col { grid-column: span 3; display: grid; gap: 8px; align-content: start; }
.footer__col:first-child { grid-column: span 4; }
.footer__col--narrow { grid-column: span 2; }
.footer__col h4 { color: var(--fg-3); margin-bottom: 6px; }
.footer__col a, .footer__col address { font-style: normal; color: var(--fg-2); transition: color .3s; width: fit-content; }
.footer__col a:hover { color: var(--accent); }
.footer__col p { color: var(--fg-2); max-width: 34ch; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 20px 24px; border-top: 1px solid var(--line); color: var(--fg-3); }
.footer__base a { color: var(--fg-2); transition: color .3s; }
.footer__base a:hover { color: var(--accent); }
.wordmark { display: flex; justify-content: space-between; margin-top: clamp(40px, 5vw, 70px); padding-inline: var(--gutter); font-weight: 700; font-size: clamp(3rem, 13.4vw, 15.5rem); line-height: .8; letter-spacing: -0.06em; color: var(--fg); user-select: none; white-space: nowrap; overflow: hidden; padding-bottom: .04em; }
.wordmark span { display: inline-block; transition: color .3s; }
.wordmark span.sp { width: .22em; }

/* ======================================================================
   INNER PAGES
   ====================================================================== */
.phero { position: relative; min-height: 92svh; display: grid; align-items: end; padding-top: calc(var(--nav-h) + 8vh); overflow: hidden; isolation: isolate; color: #f2efe9; }
.phero__bg { position: absolute; inset: 0; z-index: -1; }
.phero__bg video, .phero__bg img, .phero__bg canvas { width: 100%; height: 100%; object-fit: cover; }
.phero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 2%, rgba(16, 15, 14, .72) 40%, rgba(16, 15, 14, .45) 100%); }
.phero__in { width: 100%; padding-bottom: clamp(40px, 6vw, 90px); }
.phero .slate { color: rgba(242, 239, 233, .7); }
.phero__title { margin-top: 24px; font-size: clamp(2.8rem, 7.2vw, 8.2rem); max-width: 14ch; letter-spacing: -0.05em; }
.phero__title em { color: rgba(242, 239, 233, .5); }
.phero__row { margin-top: clamp(26px, 3.2vw, 46px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.phero__row .lede { grid-column: 1 / span 6; max-width: 54ch; color: rgba(242, 239, 233, .8); }
.phero__row .btns { grid-column: 9 / span 4; justify-content: flex-end; }
.phero .btn--ghost { color: #f2efe9; box-shadow: inset 0 0 0 1px rgba(242, 239, 233, .3); background: rgba(242, 239, 233, .06); }
.phero__foot { display: flex; justify-content: space-between; gap: 18px; padding-block: 16px; border-top: 1px solid rgba(242, 239, 233, .14); color: rgba(242, 239, 233, .55); width: 100%; }
.phero--short { min-height: 72svh; }

.svcx__nav { grid-column: 1 / span 3; position: sticky; top: calc(var(--nav-h) + 30px); align-self: start; }
.svcx__nav ol { border-top: 1px solid var(--line); }
.svcx__nav a { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--fg-3); font-size: .95rem; font-weight: 500; transition: color .3s, padding .5s var(--ease); }
.svcx__nav a span { font-size: .75rem; padding-top: 3px; font-variant-numeric: tabular-nums; }
.svcx__nav a:hover { color: var(--fg); }
.svcx__nav a.is-active { color: var(--fg); padding-left: 10px; }
.svcx__nav a.is-active span { color: var(--accent); }
.svcx__body { grid-column: 5 / span 8; display: grid; gap: clamp(90px, 10vw, 150px); }
.svcx__item { scroll-margin-top: calc(var(--nav-h) + 30px); }
.svcx__item .frame { aspect-ratio: 16 / 9; margin-bottom: 30px; }
.svcx__item .num { color: var(--accent); }
.svcx__item h2 { margin-top: 12px; font-size: clamp(2rem, 4vw, 4.2rem); }
.svcx__item .prose { margin-top: 22px; }
.svcx__item ul.list { margin-top: 20px; }
.svcx__item ul.list li { padding: 10px 0 10px 22px; border-top: 1px solid var(--line); color: var(--fg-2); position: relative; }
.svcx__item ul.list li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

.statement { padding-block: clamp(90px, 11vw, 170px); }
.statement .grid > :first-child { grid-column: 1 / span 5; }
.statement .grid > :last-child { grid-column: 7 / span 6; }
.statement h2 { font-size: clamp(2rem, 3.8vw, 4rem); }

.faq__side { grid-column: 1 / span 4; position: sticky; top: calc(var(--nav-h) + 30px); align-self: start; display: grid; gap: 24px; }
.faq__search { display: flex; align-items: center; gap: 12px; padding: 4px 6px 4px 16px; border-radius: 999px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.faq__search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 1rem; padding: 10px 0; }
.faq__search input::placeholder { color: var(--fg-3); }
.faq__search:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent); }
.faq__cats a { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.faq__cats a:hover { color: var(--accent); }
.faq__groups { grid-column: 6 / span 7; display: grid; gap: clamp(60px, 7vw, 100px); }
.faq__group { scroll-margin-top: calc(var(--nav-h) + 30px); }
.faq__group > h2 { color: var(--accent); margin-bottom: 16px; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-weight: 500; font-size: clamp(1.1rem, 1.5vw, 1.45rem); letter-spacing: -0.025em; line-height: 1.25; transition: color .3s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent); }
.qa summary i { position: relative; flex: none; width: 14px; height: 14px; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i::after { transform: rotate(0deg); }
.qa__a { padding: 0 0 26px; max-width: 64ch; color: var(--fg-2); }
.qa__a p + p, .qa__a p + ul, .qa__a ul + p { margin-top: .9em; }
.qa__a ul li { padding-left: 18px; position: relative; }
.qa__a ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.qa__a strong { color: var(--fg); font-weight: 600; }
.faq__empty { display: none; padding: 24px 0; color: var(--fg-2); }
.faq__empty.is-on { display: block; }
@supports (interpolate-size: allow-keywords) {
  .qa { interpolate-size: allow-keywords; }
  .qa::details-content { block-size: 0; overflow: hidden; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
  .qa[open]::details-content { block-size: auto; }
}

.wall__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 44vw), 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.wall__item { display: grid; gap: 10px; align-content: start; perspective: 900px; }
.wall__item .frame { aspect-ratio: 3 / 4; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .45s var(--ease); }
.wall__item .frame img { filter: grayscale(.2); transition: filter .4s; }
.wall__item:hover .frame img { filter: none; }
.wall__item b { font-weight: 600; font-size: 1.02rem; letter-spacing: -0.015em; }
.wall__item .mono { color: var(--fg-3); }
.wall__next .frame { display: grid; place-items: center; text-align: center; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); padding: 20px; }
.wall__next .frame span { font-weight: 500; font-size: clamp(1.5rem, 2vw, 2rem); letter-spacing: -0.04em; line-height: 1.05; }
.wall__next .frame em { font-style: normal; color: var(--fg-3); }
.mosaic { position: absolute; inset: -12% -6%; display: grid; gap: 14px; align-content: center; transform: rotate(-7deg); }
.mosaic__row { display: flex; gap: 14px; width: max-content; animation: drift var(--dur, 70s) linear infinite; }
.mosaic__row:nth-child(even) { animation-direction: reverse; }
.mosaic__row img { width: clamp(130px, 12vw, 210px); aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; filter: grayscale(.5) brightness(.6); }
@keyframes drift { to { transform: translateX(-50%); } }

.ethos .grid > :first-child { grid-column: 1 / span 5; }
.ethos .grid > :last-child { grid-column: 7 / span 6; }
.ethos h2 { font-size: clamp(2rem, 3.8vw, 4rem); }
.disc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.disc li { padding: 26px 20px 26px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.disc li .mono { color: var(--accent); }
.disc li b { font-weight: 500; font-size: clamp(1.4rem, 2.2vw, 2.2rem); letter-spacing: -0.045em; line-height: 1; }
.disc li p { color: var(--fg-3); font-size: .95rem; }
.crew { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 44vw), 1fr)); gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(40px, 5vw, 70px); }
.crew__card { display: grid; gap: 10px; }
.crew__card .frame { aspect-ratio: 4 / 5; display: grid; place-items: center; }
.crew__card svg { width: 44%; height: auto; color: var(--fg-3); opacity: .7; }
.crew__card b { font-weight: 600; }
.crew__card .mono { color: var(--fg-3); }

.callsheet { grid-column: 1 / span 5; align-self: start; position: sticky; top: calc(var(--nav-h) + 30px); padding: 26px 26px 22px; border-radius: calc(var(--r) + 4px); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .5); }
.callsheet header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.callsheet header b { font-weight: 700; font-size: 1.6rem; letter-spacing: -0.04em; line-height: 1; }
.callsheet dl { display: grid; }
.callsheet dl div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(36, 32, 27, .16); }
.callsheet dt { color: #6e665b; }
.callsheet dd { font-weight: 500; }
.callsheet dd a { border-bottom: 1px solid currentColor; }
.callsheet dd a:hover { color: #9a5a00; }
.callsheet footer { margin-top: 14px; display: flex; justify-content: space-between; color: #6e665b; }
.callsheet--dark { background: var(--bg-2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.callsheet--dark header { border-color: var(--fg); }
.callsheet--dark dl div { border-color: var(--line); }
.callsheet--dark dt { color: var(--fg-3); }
.form { grid-column: 7 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; align-content: start; }
.form h2 { grid-column: 1 / -1; font-size: clamp(1.9rem, 3vw, 3rem); margin-bottom: 14px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--fg-2); }
.field input, .field textarea, .field select { width: 100%; padding: 13px 14px; border-radius: 12px; border: 0; outline: none; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 1rem; transition: box-shadow .25s; }
.field input:focus, .field textarea:focus, .field select:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }
.field select { -webkit-appearance: none; appearance: none; }
.field select option { background: var(--bg); }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--fg); transition: background-color 9999s; }
.field[data-error] input, .field[data-error] textarea { box-shadow: inset 0 0 0 1.5px var(--rec); }
.field[data-error]::after { content: attr(data-error); font-size: .8125rem; font-weight: 500; color: var(--rec); }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; }
.form__note { color: var(--fg-3); max-width: 46ch; }
.form__status { grid-column: 1 / -1; color: var(--accent); min-height: 1.5em; margin-top: 6px; }

.hybrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: clamp(36px, 4.5vw, 64px); }
.hybrid li { padding: clamp(24px, 2.6vw, 38px) clamp(20px, 2.2vw, 32px) clamp(28px, 3vw, 42px); border-radius: calc(var(--r) + 4px); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 12px; align-content: start; }
.hybrid li .mono { color: var(--accent); }
.hybrid li b { font-weight: 500; font-size: clamp(1.4rem, 2.1vw, 2.1rem); letter-spacing: -0.04em; line-height: 1.04; }
.hybrid li p { color: var(--fg-2); }
.hybrid li .owner { margin-top: 6px; color: var(--fg-3); }
.reelslot { position: relative; aspect-ratio: 16 / 9; margin-top: clamp(36px, 4.5vw, 64px); }
.reelslot__msg { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 20px; background: rgba(10, 9, 8, .5); color: #f2efe9; }
.reelslot__msg b { font-weight: 500; font-size: clamp(1.6rem, 3.2vw, 3.2rem); letter-spacing: -0.045em; line-height: 1; }

.modules { border-top: 1px solid var(--line); margin-top: clamp(36px, 4.5vw, 64px); }
.modules li { display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.modules li .mono { color: var(--accent); font-variant-numeric: tabular-nums; }
.modules li b { font-weight: 500; font-size: clamp(1.2rem, 1.8vw, 1.8rem); letter-spacing: -0.035em; line-height: 1.1; }
.modules li p { color: var(--fg-2); }
.forwho { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); margin-top: clamp(36px, 4.5vw, 64px); }
.forwho li { padding-top: 18px; border-top: 1px solid var(--line-2); display: grid; gap: 6px; }
.forwho li b { font-weight: 600; font-size: 1.1rem; letter-spacing: -0.015em; }
.forwho li p { color: var(--fg-3); }

/* ---------- responsive ---------- */
@media (max-height: 700px) and (min-width: 981px) { .versus__stick { position: relative; top: 0; } .versus__spacer { display: none; } }
@media (max-width: 1180px) {
  .nav__links { display: none; }
  .nav__menu { display: inline-flex; }
  .nav__cta { display: none; }
  .lab__app { grid-template-columns: 1fr; }
  .lab__side { grid-template-columns: 1fr 1fr; }
  .lab__data { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .explain__notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .grid > *, .lab__head > *, .svc__head > *, .rail__head > *, .vp__copy > *, .cta__row > *, .phero__row > *, .partner > *, .pipe__panel > * { grid-column: 1 / -1 !important; }
  .explain__body, .pipe__head .prose, .lab__head .prose, .svc__head p, .rail__head p, .vp__text, .cta__row .btns, .phero__row .btns { margin-top: 24px; }
  .cta__row .btns, .phero__row .btns { justify-content: flex-start; }
  .logos__row { grid-template-columns: 1fr; }
  .logos__list { justify-content: flex-start; }
  .pipe__flow { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; padding-bottom: 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .pipe__flow::-webkit-scrollbar { display: none; }
  .pipe__node { flex: 0 0 150px; scroll-snap-align: start; }
  .pipe__panel .frame { aspect-ratio: 16 / 9; }
  .versus__head, .versus__list { grid-column: 1 / -1; }
  .versus__stick { position: relative; top: 0; }
  .versus__spacer { display: none; }
  .versus__list { margin-top: 36px; }
  .calcx__card { grid-template-columns: 1fr; }
  .calcx__inputs { border-right: 0; border-bottom: 1px solid var(--line); }
  .lab__main { position: static; }
  .roles__tabs { display: flex; overflow-x: auto; gap: 18px; scrollbar-width: none; }
  .roles__tabs button { flex: none; border-top: 0; border-bottom: 2px solid var(--line); padding: 12px 0; }
  .roles__tabs button[aria-selected="true"] { padding-left: 0; border-color: var(--accent); }
  .roles__tabs button::after { display: none; }
  .roles__panels { margin-top: 28px; }
  .roles__panel ul { grid-template-columns: 1fr; }
  .partner__logo { max-width: 260px; margin-bottom: 20px; }
  .partner p { margin-top: 14px; }
  .footer__col, .footer__col:first-child { grid-column: span 6; }
  .svcx__nav { display: none; }
  .faq__side { position: relative; top: 0; margin-bottom: 40px; }
  .callsheet { position: relative; top: 0; margin-bottom: 50px; }
  .form { grid-column: 1 / -1; }
  .disc { grid-template-columns: 1fr 1fr; }
  .hybrid { grid-template-columns: 1fr; }
  .forwho { grid-template-columns: 1fr 1fr; }
  .modules li { grid-template-columns: 52px 1fr; }
  .modules li p { grid-column: 2; }
  .hero__steps { display: none; }
  .ai__copy { margin-top: 40px; }
}
@media (max-width: 760px) {
  :root { --nav-h: 62px; }
  .hero { height: 480vh; }
  .hero__hud--top > span:nth-child(2) { display: none; }
  .hero__readout div:nth-child(n+3) { display: none; }
  .hero__skip, .lens-hint { display: none; }
  .hero__hud--bottom { justify-content: flex-start; row-gap: 8px; }
  .lens-chips button { min-width: 34px; padding: 0 6px; }
  .hero__scrim { background: linear-gradient(to top, rgba(8, 8, 10, .94) 0%, rgba(8, 8, 10, .78) 42%, rgba(8, 8, 10, .2) 70%, transparent 82%); }
  .hero__build { display: none; }
  .explain__notes { grid-template-columns: 1fr; }
  .lab__side { grid-template-columns: 1fr; }
  .lab__data { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab__hud > div:first-child > span:last-child, .lab__hud > div:last-child > span:last-child { display: none; }
  .lab__styles { left: auto; right: 10px; bottom: 10px; transform: none; }
  .lab__styles button { padding: 5px 8px; font-size: .6875rem; }
  .lab__shot { font-size: 1rem; }
  .versus__list li { grid-template-columns: 26px 1fr; gap: 6px 12px; }
  .versus__list li > .mono { grid-column: 1 / -1; }
  .versus__switch button { padding: 11px 14px; font-size: .875rem; }
  .svc__list a { grid-template-columns: 40px 1fr 22px; }
  .svc__list a > span:nth-child(3) { display: none; }
  .flowmini { grid-template-columns: 1fr; }
  .flowmini li { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .rail { height: auto; }
  .rail__stick { position: relative; height: auto; padding-block: 90px 60px; }
  .rail__track { transform: none !important; overflow-x: auto; scroll-snap-type: x mandatory; padding-block: 36px 10px; scrollbar-width: none; }
  .rail__track::-webkit-scrollbar { display: none; }
  .poster { scroll-snap-align: start; width: 64vw; transform: none !important; }
  .rail__bar { display: none; }
  .vp { height: 200vh; }
  .footer__col, .footer__col:first-child { grid-column: 1 / -1; }
  .compare thead { display: none; }
  .compare tr { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); padding: 14px 0; }
  .compare th, .compare td { border: 0; padding: 4px 10px 4px 0; width: auto !important; }
  .compare tbody th { grid-column: 1 / -1; margin-bottom: 6px; }
  .compare td:nth-child(2)::before { content: "Storyboard"; display: block; font-size: .75rem; font-weight: 500; color: var(--fg-3); margin-bottom: 4px; }
  .compare td:nth-child(3) { padding-left: 0; }
  .compare td:nth-child(3)::before { position: static; display: block; width: auto; height: auto; border: 0; transform: none; content: "FPS previz"; font-size: .75rem; font-weight: 600; color: var(--accent); margin-bottom: 4px; }
  .disc { grid-template-columns: 1fr; }
  .forwho { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .callsheet dl div { grid-template-columns: 92px 1fr; }
  .menu__list a { grid-template-columns: 48px 1fr; }
  .menu__list a > span:last-child { display: none; }
  .playhint { flex-wrap: wrap; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .grain { display: none; }
  .js [data-reveal], .js [data-split] .wi, .js .compare tbody tr { opacity: 1; transform: none; }
}
.lens-tried .lens-hint { display: none; }
.hero__stick .lens-chips, .hero__stick .lens-hint, .hero__readout { transition: opacity .5s var(--ease); }
.hero__stick.is-final .lens-chips, .hero__stick.is-final .lens-hint, .hero__stick.is-final .hero__readout { opacity: 0; pointer-events: none; }
