/* Direction — marketing page. Tokens follow Gate (design/spec/gate.css); the page is a screening room. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 400 800; font-stretch: 100% 125%; font-display: swap;
}

:root {
  color-scheme: dark;
  --steel-0: oklch(0 0 0);
  --steel-1: oklch(0.13 0.003 265);
  --steel-2: oklch(0.165 0.004 265);
  --steel-3: oklch(0.20 0.005 265);
  --steel-4: oklch(0.245 0.006 265);
  --steel-5: oklch(0.295 0.007 265);
  --steel-6: oklch(0.43 0.008 265);
  --steel-7: oklch(0.58 0.008 265);
  --steel-8: oklch(0.76 0.006 265);
  --steel-9: oklch(0.96 0.003 265);
  --amber: oklch(0.82 0.13 72);
  --amber-ink: oklch(0.26 0.06 60);
  --amber-wash: oklch(0.82 0.13 72 / 0.14);
  --ion: oklch(0.78 0.11 250);
  --ion-wash: oklch(0.78 0.11 250 / 0.13);
  --green: oklch(0.79 0.13 155);
  --green-wash: oklch(0.79 0.13 155 / 0.13);
  --prism-1: oklch(0.82 0.12 200);
  --prism-2: oklch(0.70 0.16 268);
  --prism-3: oklch(0.72 0.20 330);
  --prism-4: oklch(0.84 0.13 62);
  --prism: linear-gradient(100deg, var(--prism-1), var(--prism-2) 34%, var(--prism-3) 66%, var(--prism-4));

  --canvas: var(--steel-0);
  --sunken: var(--steel-1);
  --ground: var(--steel-2);
  --panel: var(--steel-3);
  --raised: var(--steel-4);
  --hover: var(--steel-5);
  --line: oklch(1 0 0 / 0.08);
  --line-2: oklch(1 0 0 / 0.15);
  --text-1: var(--steel-9);
  --text-2: var(--steel-8);
  --text-3: var(--steel-7);
  --text-4: var(--steel-6);

  --f-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --f-tc: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;
  --f-brand: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --e-out: cubic-bezier(.2, .8, .2, 1);
  --e-inout: cubic-bezier(.6, 0, .2, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --nav-h: 60px;
  --edge: max(var(--gutter), (100% - var(--max)) / 2);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .045 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
html { background: var(--canvas); }
body {
  margin: 0; background: transparent; color: var(--text-1);
  font: 400 17px/1.55 var(--f-ui); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4, p, figure, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--text-1); outline-offset: 3px; border-radius: 4px; }
/* Grain: the app's own tile (Gate: 3.5% on the window, 18% on steel), behind content so pictures stay clean. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url("../img/grain.png"); opacity: .05; }
:is(.grain, .btn, .ui-btn, .nav.scrolled, .win, .tb, .s-brief, .c-side, .t-sheet, .f-row, .note.on, .av, .facts > div, .path, .lc-vis, .mk-win, .tile, .tv, .oss)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: url("../img/grain.png"); opacity: var(--grain-o, .04);
}
:is(.grain, .btn, .ui-btn, .win, .c-side, .t-sheet, .f-row, .note, .av, .facts > div, .path, .lc-vis, .mk-win, .tile, .tv, .oss) { position: relative; isolation: isolate; }
.nav.scrolled, .tb { isolation: isolate; }
.btn.steel, .ui-btn.steel { --grain-o: .18; }
.btn.ghost::before { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.mono { font-family: var(--f-tc); font-variant-numeric: tabular-nums; }
.label { font: 500 11.5px/1 var(--f-tc); letter-spacing: .09em; text-transform: uppercase; color: var(--text-4); display: inline-flex; gap: 14px; align-items: center; }
.label b { font-weight: 500; color: var(--text-3); }
.label::before { content: ""; width: 22px; height: 1px; background: var(--steel-5); }
.display {
  font-family: var(--f-brand); font-weight: 700; font-stretch: 125%; letter-spacing: -.025em; line-height: .98;
  text-wrap: balance;
}
.h2 { font-size: clamp(34px, 5.2vw, 76px); }
.lede { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; color: var(--text-2); max-width: 36em; text-wrap: pretty; }
.sec-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 80px); }

/* Marks: the director's pin, the editor's gem */
.pin { width: 10px; height: 10px; flex: none; position: relative; display: inline-block; }
.pin::before { content: ""; position: absolute; inset: 0; background: var(--amber); border-radius: 50% 50% 50% 0; transform: rotate(-45deg) scale(.82); }
.gem { width: 8px; height: 8px; margin: 1px; flex: none; display: inline-block; transform: rotate(45deg); border-radius: 1.5px; background: var(--prism); }
.gem.grey { background: var(--steel-6); }
.gem.ion { background: var(--ion); }

/* @mentions: the "@" becomes an icon of the kind, the name is in the director's color */
.m { color: var(--amber); white-space: nowrap; font-weight: 500; }
.m::before { content: ""; display: inline-block; width: .8em; height: .8em; margin-right: .24em; vertical-align: -.06em; background: currentColor; -webkit-mask: var(--mi) center / contain no-repeat; mask: var(--mi) center / contain no-repeat; }
.m.at::before { display: none; }
.m.clip { --mi: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><rect x='1' y='3' width='14' height='10' rx='2' fill='none' stroke='black' stroke-width='1.6'/><path d='M6.5 5.8v4.4L10.2 8z'/></svg>"); }
.m.sound { --mi: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M2 7v2M5 4v8M8 2v12M11 5v6M14 7v2' stroke='black' stroke-width='1.7' stroke-linecap='round'/></svg>"); }
.m.music { --mi: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6 12.5V3.6l7.5-1.6v8.6' fill='none' stroke='black' stroke-width='1.6'/><circle cx='4.2' cy='12.6' r='2.2'/><circle cx='11.7' cy='10.6' r='2.2'/></svg>"); }
.m.transition { --mi: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><rect x='1' y='2.5' width='8.5' height='7' rx='1.5' fill='none' stroke='black' stroke-width='1.5'/><rect x='6.5' y='6.5' width='8.5' height='7' rx='1.5'/></svg>"); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 11px;
  font: 600 15px/1 var(--f-ui); color: var(--text-1); white-space: nowrap;
  background: var(--raised); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 oklch(1 0 0 / .06);
  transition: background .2s var(--e-out), transform .2s var(--e-out);
}
.btn:hover { background: var(--hover); }
.btn:active { transform: translateY(.5px); }
.btn.steel {
  color: oklch(0.17 0.006 265);
  background: linear-gradient(180deg, oklch(0.98 0.002 265), oklch(0.80 0.006 265) 92%);
  box-shadow: inset 0 1px 0 oklch(1 0 0), inset 0 -1px 0 oklch(0 0 0 / .22), 0 1px 2px oklch(0 0 0 / .6), 0 0 0 .5px oklch(0 0 0 / .5);
}
.btn.steel:hover { background: linear-gradient(180deg, oklch(1 0 0), oklch(0.86 0.006 265) 92%); }
.btn.ghost { background: transparent; box-shadow: none; color: var(--text-2); padding: 0 12px; }
.btn.ghost:hover { color: var(--text-1); background: oklch(1 0 0 / .05); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13.5px; border-radius: 9px; }
.btn svg { width: 14px; height: 14px; }

/* ================= Nav ================= */
.nav {
  position: fixed; inset: 0 0 auto; height: var(--nav-h); z-index: 50;
  display: flex; align-items: center; gap: 28px; padding-inline: var(--gutter);
  transition: background .35s var(--e-out), box-shadow .35s var(--e-out), backdrop-filter .35s;
}
.nav.scrolled { background: oklch(0 0 0 / .62); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 17px/1 var(--f-brand); font-stretch: 125%; letter-spacing: -.01em; }
.brand img { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 4px; margin-inline: auto; }
.nav-links a { font-size: 13.5px; color: var(--text-3); padding: 8px 12px; border-radius: 8px; transition: color .2s; }
.nav-links a:hover { color: var(--text-1); }
.nav .gh { margin-left: auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--text-3); transition: color .2s, background .2s; }
.nav .gh:hover { color: var(--text-1); background: oklch(1 0 0 / .06); }
.nav .gh svg { width: 18px; height: 18px; }
.nav .btn { margin-left: -16px; }
@media (max-width: 900px) { .nav-links { display: none; } }

/* ================= Picture: stand-in scenes ================= */
.pic { position: absolute; inset: 0; overflow: hidden; background: #05060b; }
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.crop i { position: absolute; width: 18px; height: 18px; border: 0 solid var(--steel-6); }
.crop i:nth-child(1) { left: -10px; top: -10px; border-width: 1px 0 0 1px; }
.crop i:nth-child(2) { right: -10px; top: -10px; border-width: 1px 1px 0 0; }
.crop i:nth-child(3) { left: -10px; bottom: -10px; border-width: 0 0 1px 1px; }
.crop i:nth-child(4) { right: -10px; bottom: -10px; border-width: 0 1px 1px 0; }
.hud { position: absolute; z-index: 3; font: 500 11.5px/1 var(--f-tc); letter-spacing: .04em; color: var(--text-2); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.hud .rec { width: 6px; height: 6px; border-radius: 50%; background: oklch(0.70 0.17 25); animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ================= Hero: the picture fills the window ================= */
.hero { position: relative; height: 100svh; min-height: 640px; max-height: 1100px; }
.hero-frame { position: absolute; inset: 0; }
.hero-frame .layer { position: absolute; inset: -2%; will-change: transform; transform-origin: 62% 68%; }
.hero-frame .layer img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; }
.hero-frame .l-sky { animation: push 32s var(--e-inout) infinite alternate; --to: 1.025; }
.hero-frame .l-far { animation: push 32s var(--e-inout) infinite alternate; --to: 1.05; }
.hero-frame .l-near { animation: push 32s var(--e-inout) infinite alternate; --to: 1.095; }
@keyframes push { from { transform: scale(1); } to { transform: scale(var(--to)); } }
.haze { position: absolute; inset: 0; pointer-events: none; }
.haze::before, .haze::after { content: ""; position: absolute; left: -30%; width: 160%; will-change: transform; }
.haze::before { top: 52%; height: 18%; background: radial-gradient(50% 50% at 50% 50%, oklch(0.78 0.08 30 / .16), transparent 70%); animation: drift 38s linear infinite alternate; }
.haze::after { top: 62%; height: 14%; background: radial-gradient(50% 50% at 50% 50%, oklch(0.6 0.08 320 / .14), transparent 70%); animation: drift 26s linear infinite alternate-reverse; }
@keyframes drift { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
.hero-frame .shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, oklch(0 0 0 / .55), transparent 16%),
  linear-gradient(90deg, oklch(0 0 0 / .55), transparent 58%),
  linear-gradient(0deg, oklch(0 0 0) 0%, oklch(0 0 0 / .6) 16%, transparent 46%); }
.hero-frame .hud.tl { left: var(--edge); top: calc(var(--nav-h) + 12px); }
.hero-frame .hud.tr { right: var(--edge); top: calc(var(--nav-h) + 12px); color: var(--text-3); }
.hero-copy { position: absolute; z-index: 4; left: var(--edge); bottom: clamp(96px, 13vh, 150px); max-width: min(940px, 66%); display: grid; gap: 22px; }
.hero h1 { font-size: clamp(40px, 5.3vw, 92px); }
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 .dim { color: var(--steel-8); }
.hero-sub { font-size: clamp(16px, 1.35vw, 19px); color: var(--text-2); max-width: 30em; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero-meta { position: absolute; z-index: 4; left: var(--edge); right: var(--edge); bottom: 30px; display: flex; justify-content: space-between; gap: 16px; font: 500 11.5px/1.4 var(--f-tc); letter-spacing: .06em; text-transform: uppercase; color: var(--text-4); }
.hero-meta a { color: var(--text-3); transition: color .2s; }
.hero-meta a:hover { color: var(--text-1); }

/* Title card arrives like a fade up from black */
.hero .rise { opacity: 0; transform: translateY(14px); animation: rise 1.1s var(--e-out) forwards; }
.hero .rise:nth-child(2) { animation-delay: .18s; }
.hero .rise:nth-child(3) { animation-delay: .32s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-frame .pic { animation: fadeup 1.6s var(--e-out) both; }
@keyframes fadeup { from { opacity: 0; filter: brightness(.3); } to { opacity: 1; filter: none; } }

@media (max-width: 760px) {
  .hero { height: auto; min-height: 0; max-height: none; padding-bottom: 36px; }
  .hero-frame { position: relative; inset: auto; display: grid; }
  .hero-frame .pic { position: relative; inset: auto; height: 66svh; min-height: 420px; }
  .hero-frame .shade { background: linear-gradient(180deg, oklch(0 0 0 / .5), transparent 18%), linear-gradient(0deg, oklch(0 0 0) 2%, oklch(0 0 0 / .6) 30%, transparent 60%); }
  .hero-frame .hud.tr { display: none; }
  .hero-copy { position: relative; left: auto; bottom: auto; max-width: none; margin: -118px var(--gutter) 0; gap: 18px; }
  .hero h1 { font-size: clamp(36px, 10.6vw, 56px); font-stretch: 112%; }
  .hero h1 span { white-space: normal; }
  .hero-meta { position: relative; left: auto; right: auto; bottom: auto; margin: 28px var(--gutter) 0; flex-direction: column; gap: 8px; }
}

/* ================= Premise ================= */
.premise { padding-block: clamp(120px, 20vh, 220px) clamp(100px, 16vh, 180px); }
.premise p.big {
  font-family: var(--f-brand); font-weight: 600; font-stretch: 112%; letter-spacing: -.02em;
  font-size: clamp(28px, 3.7vw, 54px); line-height: 1.16; max-width: 22em; text-wrap: pretty;
}
.premise q { quotes: none; }
.premise .w { color: var(--steel-5); transition: color .5s var(--e-out); }
.premise .w.on { color: var(--text-1); }
.premise .w.q.on { color: var(--amber); }
/* ================= Production ================= */
.production { padding-block: clamp(80px, 12vh, 140px); border-top: 1px solid var(--line); }
.prod-grid { display: grid; grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.steps { display: grid; }
.step { min-height: 78vh; display: grid; align-content: center; gap: 16px; padding-block: 40px; opacity: .3; transition: opacity .5s var(--e-out); }
.step.on { opacity: 1; }
.step:first-child { min-height: 64vh; }
.step:last-child { min-height: 70vh; }
.step .idx { font: 500 12px/1 var(--f-tc); letter-spacing: .09em; color: var(--text-4); text-transform: uppercase; display: flex; gap: 12px; align-items: center; }
.step .idx b { color: var(--amber); font-weight: 500; }
.step h3 { font-family: var(--f-brand); font-weight: 700; font-stretch: 118%; letter-spacing: -.02em; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.05; text-wrap: balance; }
.step p { color: var(--text-2); max-width: 26em; text-wrap: pretty; }
.step .slot { display: none; }

.stage { position: sticky; top: calc(50vh - var(--stage-h, 520px) / 2 + var(--nav-h) / 2); }
.win {
  position: relative; border-radius: 14px; overflow: hidden; background: var(--ground);
  box-shadow: 0 0 0 1px oklch(1 0 0 / .1), 0 40px 120px -30px oklch(0 0 0 / .9), 0 0 0 .5px oklch(0 0 0);
}
.win::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 1px 0 oklch(1 0 0 / .07); }
.tb { position: relative; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); background: var(--ground) var(--grain); }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--hover); }
.crumb { font: 600 12.5px/1 var(--f-ui); color: var(--text-1); display: flex; gap: 6px; margin-left: 6px; white-space: nowrap; }
.crumb span { color: var(--text-4); font-weight: 400; }
.crumb em { font-style: normal; font-weight: 500; color: var(--text-2); }
.rooms { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line); }
.rooms span { font: 500 11.5px/1 var(--f-ui); color: var(--text-4); height: 22px; padding: 0 10px; border-radius: 7px; display: inline-flex; align-items: center; gap: 6px; transition: color .3s, background .3s, box-shadow .3s; }
.rooms span.on { color: var(--text-1); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px oklch(0 0 0 / .5); }
.agent {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 11px 0 10px; border-radius: 13px;
  font: 500 11.5px/1 var(--f-ui); color: var(--text-2); background: var(--panel); border: 1px solid var(--line); white-space: nowrap;
}
.agent.working { color: var(--text-1); border-color: transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--prism) border-box; background-size: 100% 100%, 300% 100%; animation: shimmer 2.4s linear infinite; }
.agent.ion { color: var(--ion); border-color: oklch(0.78 0.11 250 / .45); }
.agent .meter { width: 34px; height: 3px; border-radius: 2px; background: var(--hover); overflow: hidden; display: none; }
.agent.working .meter { display: block; }
.agent .meter i { display: block; height: 100%; width: 65%; background: var(--prism); }
@keyframes shimmer { to { background-position: 0 0, -300% 0; } }

/* The window body holds the five rooms at a fixed design size, scaled to fit. */
.win-body { position: relative; aspect-ratio: 760 / 470; background: var(--canvas); overflow: hidden; }
.screens { position: absolute; left: 0; top: 0; width: 760px; height: 470px; transform-origin: 0 0; transform: scale(var(--k, 1)); }
.scr { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s var(--e-out), visibility 0s .45s; font-size: 13px; color: var(--text-1); }
.scr.on { opacity: 1; visibility: visible; transition: opacity .45s var(--e-out); }
.slot .scr { position: absolute; opacity: 1; visibility: visible; }

/* Mobile: each step carries its own window */
@media (max-width: 999px) {
  .prod-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { display: none; }
  .step { min-height: 0; opacity: 1; padding-block: 28px 44px; }
  .step:first-child, .step:last-child { min-height: 0; }
  .step .slot { display: block; margin-top: 14px; }
  .step .slot .win-body { border-radius: 12px; box-shadow: 0 0 0 1px oklch(1 0 0 / .1); }
}

/* --- Shared bits inside the rooms --- */
.chip { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 6px; font: 500 11px/1 var(--f-tc); color: var(--text-2); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.chip.d { color: var(--amber); background: var(--amber-wash); box-shadow: none; }
.chip.a { color: var(--ion); background: var(--ion-wash); box-shadow: none; }
.chip.ok { color: var(--green); background: var(--green-wash); box-shadow: none; }
.ui-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 8px; font: 500 12.5px/1 var(--f-ui); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 oklch(1 0 0 / .06); white-space: nowrap; }
.ui-btn.steel { color: oklch(0.17 0.006 265); font-weight: 600; background: linear-gradient(180deg, oklch(0.98 0.002 265), oklch(0.80 0.006 265) 92%); box-shadow: inset 0 1px 0 #fff, 0 1px 2px oklch(0 0 0 / .6); }
.muted { color: var(--text-3); }
.faint { color: var(--text-4); }
.k { font: 500 10.5px/1 var(--f-tc); letter-spacing: .07em; text-transform: uppercase; color: var(--text-4); }
.thumb { position: relative; overflow: hidden; background: #05060b; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1)); transform-origin: var(--o, 62.5% 66%); }

/* Room 1: Brief */
.s-brief { display: grid; grid-template-columns: 1fr 250px; gap: 26px; padding: 30px 30px 30px 34px; background: var(--ground); }
.brief { display: grid; gap: 18px; align-content: start; }
.brief h4 { font: 700 26px/1 var(--f-brand); font-stretch: 120%; letter-spacing: -.01em; margin-top: 8px; }
.brief .f { display: grid; gap: 7px; }
.brief .f p { font-size: 13.5px; line-height: 1.5; color: var(--text-1); background: var(--sunken); border-radius: 9px; padding: 10px 12px; box-shadow: inset 0 0 0 1px var(--line); }
.seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); width: max-content; }
.seg span { font: 500 11.5px/1 var(--f-ui); color: var(--text-3); height: 24px; padding: 0 10px; border-radius: 6px; display: inline-flex; align-items: center; transition: color .3s, background .3s; }
.seg span.on { color: var(--text-1); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }
.who { display: flex; gap: 8px; }
.who span { flex: 1; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 9px; font-size: 12.5px; color: var(--text-2); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.who span::before { content: ""; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--steel-6); }
.who span.on { color: var(--text-1); box-shadow: inset 0 0 0 1px var(--line-2); }
.who span.on::before { box-shadow: inset 0 0 0 4px var(--text-1); }
.shape { display: grid; place-items: center; align-content: center; gap: 14px; background: var(--canvas); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.shape .frame { position: relative; width: 208px; height: 117px; transition: width .7s var(--e-inout), height .7s var(--e-inout); outline: 1px solid var(--steel-6); outline-offset: 5px; }
.shape .frame img { object-position: 62% 64%; }
.shape .tc { font: 500 11px/1 var(--f-tc); color: var(--text-3); letter-spacing: .06em; }

/* Room 2: Dailies */
.s-dailies { padding: 20px 22px; display: grid; grid-template-rows: auto 1fr; gap: 16px; background: var(--canvas); }
.d-head { display: flex; align-items: center; gap: 10px; }
.d-head b { font: 700 16px/1 var(--f-brand); font-stretch: 115%; }
.d-head .sp { flex: 1; }
.d-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 14px; align-content: start; }
.take { position: relative; display: grid; gap: 7px; }
.take .thumb { aspect-ratio: 16 / 9; border-radius: 3px; box-shadow: 0 0 0 1px var(--line); }
.take .tk { position: absolute; left: 6px; top: 6px; z-index: 1; font: 500 10px/1 var(--f-tc); color: var(--text-1); text-shadow: 0 1px 3px #000; }
.take .du { position: absolute; right: 6px; bottom: 6px; z-index: 1; font: 500 10px/1 var(--f-tc); color: var(--text-2); text-shadow: 0 1px 3px #000; }
.take figcaption { font-size: 11px; line-height: 1.35; color: var(--text-3); display: flex; gap: 6px; }
.take figcaption .gem { width: 6px; height: 6px; margin-top: 4px; }
.take .ring { position: absolute; left: -9px; top: -8px; width: calc(100% + 18px); aspect-ratio: 16 / 9.4; overflow: visible; pointer-events: none; z-index: 2; }
.take .ring path { fill: none; stroke: var(--amber); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.take.c .thumb img { filter: none; }
.take:not(.c) .thumb { opacity: .62; }
[data-step="2"] .take.c .ring path, .slot .take.c .ring path, .s-dailies.drawn .take.c .ring path { animation: draw .9s var(--e-out) forwards; }
.take.c:nth-child(3) .ring path { animation-delay: .5s !important; }
.take.c:nth-child(6) .ring path { animation-delay: 1s !important; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Room 3: Cut */
.s-cut { display: grid; grid-template-columns: 1fr 236px; grid-template-rows: 1fr auto; background: var(--canvas); }
.c-view { position: relative; padding: 18px; display: grid; place-items: center; }
.c-pic { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.c-pic .pic { border-radius: 2px; }
.region { position: absolute; border: 1.5px solid var(--amber); border-radius: 2px; box-shadow: 0 0 0 9999px oklch(0 0 0 / .35); opacity: 0; transition: opacity .5s var(--e-out) .3s; }
.region > span { position: absolute; top: -1px; left: -1px; transform: translateY(-100%); background: var(--amber); color: var(--amber-ink); font: 600 9.5px/1 var(--f-tc); padding: 4px 6px; border-radius: 2px 2px 0 0; white-space: nowrap; }
.region i { position: absolute; width: 6px; height: 6px; background: var(--amber); border-radius: 1px; }
.region i:nth-of-type(1) { left: -3.5px; top: -3.5px; } .region i:nth-of-type(2) { right: -3.5px; top: -3.5px; }
.region i:nth-of-type(3) { left: -3.5px; bottom: -3.5px; } .region i:nth-of-type(4) { right: -3.5px; bottom: -3.5px; }
.c-pic .region { left: 59.6%; top: 60.6%; width: 7.4%; height: 12%; }
.on .region, .slot .region { opacity: 1; }
.c-pic .hud { left: 10px; bottom: 10px; padding: 5px 7px; border-radius: 5px; background: oklch(0.2 0.005 265 / .6); backdrop-filter: blur(8px); }
.c-side { grid-row: 1 / 3; grid-column: 2; border-left: 1px solid var(--line); background: var(--ground); padding: 18px 16px; display: grid; align-content: start; gap: 14px; }
.c-side h5 { font: 700 15px/1 var(--f-brand); font-stretch: 115%; margin: 0; }
.c-note { display: grid; gap: 10px; padding: 12px; border-radius: 10px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); }
.c-note .at { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-3); }
.c-note .at .chip { font-size: 10.5px; }
.c-note p { font-size: 13.5px; line-height: 1.45; min-height: 40px; }
.c-note p .caret { display: inline-block; width: 1.5px; height: 15px; background: var(--amber); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.c-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.c-tags span { font-size: 10.5px; color: var(--text-3); padding: 4px 7px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.c-tags span.on { color: var(--amber); box-shadow: inset 0 0 0 1px oklch(0.82 0.13 72 / .5); }
.c-prev { display: grid; gap: 8px; padding-top: 4px; border-top: 1px solid var(--line); }
.c-prev div { display: flex; gap: 9px; font-size: 12px; color: var(--text-2); line-height: 1.4; padding-top: 8px; }
.c-prev b { color: var(--amber); font: 600 12px/1.4 var(--f-tc); }
.strip { position: relative; display: flex; gap: 2px; padding: 4px 18px 18px; }
.strip .sc { position: relative; height: 26px; border-radius: 3px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); min-width: 0; transition: flex-grow .9s var(--e-inout); }
.strip .sc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.strip .sc span { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); z-index: 1; font: 500 10px/1 var(--f-tc); color: var(--text-1); text-shadow: 0 1px 3px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 10px); }
.strip .sc.cur { box-shadow: inset 0 0 0 1px var(--line-2); }
.strip .sc.cur img { opacity: .85; }
.strip .head { position: absolute; top: 0; bottom: 14px; width: 2px; background: var(--text-1); border-radius: 1px; box-shadow: 0 0 0 1px oklch(0 0 0 / .5); }
.strip .mkr { position: absolute; bottom: 4px; width: 8px; height: 8px; margin-left: -4px; }

/* Room 4: Turnover */
.s-turn { display: grid; place-items: center; background: var(--canvas); padding: 22px; }
.s-turn::before { content: ""; position: absolute; inset: 0; background: url("../img/ridge.svg") center / cover; opacity: .16; filter: blur(2px); }
.t-sheet { position: relative; width: 560px; border-radius: 14px; background: var(--ground); box-shadow: 0 0 0 1px var(--line-2), 0 30px 80px -20px #000; overflow: hidden; }
.t-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 14px; border-bottom: 1px solid var(--line); }
.t-head b { font: 700 15px/1 var(--f-brand); font-stretch: 115%; }
.t-head .muted { margin-left: auto; font-size: 12px; }
.t-row { display: grid; grid-template-columns: 22px 1fr; gap: 6px 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(6px); transition: opacity .5s var(--e-out), transform .5s var(--e-out); }
.on .t-row, .slot .t-row { opacity: 1; transform: none; }
.on .t-row:nth-child(3) { transition-delay: .25s; } .on .t-row:nth-child(4) { transition-delay: .5s; } .on .t-row:nth-child(5) { transition-delay: .75s; }
.t-row .n { font: 600 13px/1.4 var(--f-tc); color: var(--amber); }
.t-row .dn { font-size: 13px; line-height: 1.4; }
.t-row .rb { grid-column: 2; display: flex; gap: 9px; font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
.t-row .rb .gem { margin-top: 4px; width: 7px; height: 7px; }
.t-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 12px 14px; background: var(--panel); }
.t-foot .muted { margin-right: auto; font-size: 11.5px; }

/* Room 5: Finish */
.s-finish { display: grid; grid-template-rows: auto auto 1fr; gap: 16px; padding: 22px; background: var(--canvas); }
.f-top { display: flex; align-items: center; gap: 10px; }
.f-top b { font: 700 16px/1 var(--f-brand); font-stretch: 115%; }
.f-top .sp { flex: 1; }
.s-finish .strip { padding: 0; }
.s-finish .strip .sc img { opacity: .3; filter: grayscale(.6); }
.s-finish .strip .sc::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, oklch(1 0 0 / .08) 0 1px, transparent 1px 6px); }
.s-finish .strip .sc span::before { content: "🔒︎"; font-size: 8px; margin-right: 4px; filter: grayscale(1); }
.f-list { display: grid; gap: 10px; align-content: start; }
.f-row { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 16px; padding: 12px 14px; border-radius: 11px; background: var(--ground); box-shadow: inset 0 0 0 1px var(--line); }
.f-row .thumb { height: 52px; border-radius: 3px; }
.f-row .what { display: grid; gap: 5px; }
.f-row .what b { font-size: 13.5px; font-weight: 600; }
.f-row .what span { font: 500 11px/1 var(--f-tc); color: var(--text-4); }
.f-row .bar { height: 3px; border-radius: 2px; background: var(--hover); overflow: hidden; width: 100%; margin-top: 3px; }
.f-row .bar i { display: block; height: 100%; width: 0; background: var(--text-1); transition: width 1.8s var(--e-inout); }
.on .f-row .bar i, .slot .f-row .bar i { width: 100%; }
.on .f-row:nth-child(2) .bar i { transition-delay: .5s; } .on .f-row:nth-child(3) .bar i { transition-delay: 1s; }
.f-row .state { font: 500 11px/1 var(--f-tc); }
.f-row .state .chip { opacity: 0; transition: opacity .3s var(--e-out); }
.on .f-row .state .chip, .slot .f-row .state .chip { opacity: 1; transition-delay: 1.8s; }
.on .f-row:nth-child(2) .state .chip { transition-delay: 2.3s; } .on .f-row:nth-child(3) .state .chip { transition-delay: 2.8s; }

/* ================= Notes, answered ================= */
.notes { padding-block: clamp(100px, 16vh, 180px); background: linear-gradient(180deg, transparent, oklch(1 0 0 / .022) 30%, oklch(1 0 0 / .022) 70%, transparent); border-top: 1px solid var(--line); }
.n-grid { display: grid; grid-template-columns: minmax(0, 7.6fr) minmax(0, 4.4fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.n-stage { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 12px; }
.n-pic { position: relative; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line), 0 50px 120px -40px #000; }
.n-layer { position: absolute; inset: 0; opacity: 0; transition: opacity .01s; }
.n-layer.on { opacity: 1; }
.n-layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.n-layer .zoom { position: absolute; inset: 0; transform-origin: 0 0; transition: transform 1.6s var(--e-inout); }
.n-pic .hud.tr .chip { opacity: 0; transform: translateY(-4px); transition: opacity .4s var(--e-out), transform .4s var(--e-out); }
.n-pic .hud.tr .chip.show { opacity: 1; transform: none; }
.n-audio .duckable { transform-box: fill-box; transform-origin: center; transition: transform 1.1s var(--e-inout); }
.n-audio.duck .duckable { transform: scaleY(.42); }
.lane .gain { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--e-inout); }
.n-audio.duck .gain { stroke-dashoffset: 0; }
.n-pic .region { left: 59.6%; top: 60.6%; width: 7.4%; height: 12%; opacity: 0; transition: opacity .4s var(--e-out); }
.n-pic .region.show { opacity: 1; }
.n-pic .hud.tl { left: 14px; top: 12px; }
.n-pic .hud.tr { right: 14px; top: 12px; }
.n-pic .hud.br { right: 14px; bottom: 12px; }
.n-pic .hud .chip { font-size: 11px; height: 22px; background: oklch(0.2 0.005 265 / .7); backdrop-filter: blur(8px); }
.n-pic .hud .chip.a { background: oklch(0.25 0.04 250 / .7); }
.n-ab { position: absolute; left: 14px; bottom: 12px; z-index: 3; display: flex; gap: 6px; opacity: 0; transition: opacity .3s; }
.n-ab.show { opacity: 1; }
.n-ab span { font: 500 11.5px/1 var(--f-ui); padding: 7px 10px; border-radius: 7px; color: var(--text-2); background: oklch(0.2 0.005 265 / .6); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px var(--line); transition: color .3s, box-shadow .3s; }
.n-ab span.on { color: var(--text-1); box-shadow: inset 0 0 0 1px var(--text-2); }
.n-audio { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 34px 14px 12px; background: linear-gradient(0deg, oklch(0 0 0 / .85), transparent); display: grid; gap: 6px; opacity: 0; transition: opacity .4s; }
.n-audio.show { opacity: 1; }
.lane { position: relative; height: 26px; display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 10px; }
.lane > span { font: 500 10px/1 var(--f-tc); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.lane svg { width: 100%; height: 26px; overflow: visible; }
.lane .wave { fill: oklch(0.76 0.006 265 / .5); }
.lane.music .wave { fill: oklch(0.70 0.16 268 / .55); transform-origin: 50% 50%; }
.lane .gain { fill: none; stroke: var(--ion); stroke-width: 1.5; }
.lane .gain-dot { fill: var(--ion); }
.n-strip { display: flex; gap: 2px; padding: 0; }
.n-strip .sc { flex-basis: 0; }

.n-list { display: grid; gap: 2px; counter-reset: n; }
.note { display: block; width: 100%; text-align: left; padding: 18px 18px 18px 20px; border-radius: 12px; position: relative; transition: background .3s; }
.note:hover { background: oklch(1 0 0 / .025); }
.note.on { background: var(--ground); box-shadow: inset 0 0 0 1px var(--line); }
.note .said { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.4; color: var(--text-3); transition: color .3s; }
.note.on .said, .note:hover .said { color: var(--text-1); }
.note .said b { font: 600 15px/1.6 var(--f-tc); color: var(--amber); }
.note .ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--e-out); }
.note.on .ans { grid-template-rows: 1fr; }
.note .ans > span { overflow: hidden; min-height: 0; }
.note .ans .a { display: flex; gap: 10px; margin: 12px 0 0 32px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.note .ans .a .gem { margin-top: 7px; }
.note .ans .a b { color: var(--text-1); font-weight: 600; }
.note .bar { position: absolute; left: 20px; right: 20px; bottom: 0; height: 1px; background: var(--prism); transform-origin: 0 50%; transform: scaleX(0); opacity: 0; }
.note.on.timing .bar { opacity: .7; animation: timer var(--dur, 7s) linear forwards; }
@keyframes timer { to { transform: scaleX(1); } }
.n-foot { margin-top: 18px; display: flex; align-items: center; gap: 10px; padding-left: 20px; font-size: 14px; color: var(--text-3); }
.n-foot .ui-btn { height: 32px; font-size: 13px; }

@media (max-width: 999px) {
  .n-grid { grid-template-columns: minmax(0, 1fr); }
  .n-stage { position: relative; top: 0; }
  .n-list { margin-top: 12px; }
  .note { padding: 16px 14px; }
}

/* ================= Before the shoot ================= */
.prep { padding-block: clamp(100px, 16vh, 180px); border-top: 1px solid var(--line); }
.prep-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.av { border-radius: 14px; overflow: hidden; background: var(--ground); box-shadow: 0 0 0 1px var(--line); }
.av-head { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.av-head span { padding: 14px 18px; font: 500 11px/1 var(--f-tc); letter-spacing: .09em; color: var(--text-4); }
.av-head span + span { border-left: 1px solid var(--line); }
.av-row { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.av-row:last-child { border-bottom: 0; }
.av-row > div { padding: 16px 18px 18px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.av-row > div + div { border-left: 1px solid var(--line); }
.av-row .slug { display: block; font: 500 11px/1.3 var(--f-tc); letter-spacing: .05em; color: var(--text-1); margin-bottom: 6px; text-transform: uppercase; }
.av-row .who { display: block; font: 500 11px/1.3 var(--f-tc); letter-spacing: .05em; color: var(--text-3); margin-bottom: 6px; }
.av-row .shot { display: inline-flex; margin-top: 10px; }
.boards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.board { position: relative; border-radius: 6px; overflow: hidden; background: oklch(0.13 0.003 265); box-shadow: 0 0 0 1px var(--line); }
.board svg { width: 100%; height: auto; }
.board figcaption { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; font: 500 10.5px/1.3 var(--f-tc); letter-spacing: .07em; text-transform: uppercase; color: var(--text-4); border-top: 1px solid var(--line); }
.board figcaption b { font-weight: 500; color: var(--text-2); }
.board .ink { fill: none; stroke: oklch(0.52 0.008 265); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.board .ink.faint { stroke: oklch(0.36 0.008 265); stroke-width: 1.1; }
.board .fill { fill: oklch(0.085 0.003 265); }
.board .lit { fill: none; stroke: oklch(0.97 0.003 265); stroke-width: 1.8; stroke-linecap: round; }
.board .glow { fill: url(#screen); }
.board .lbl { font: 500 9px var(--f-tc); letter-spacing: .08em; fill: oklch(0.58 0.008 265); text-transform: uppercase; }
@media (max-width: 999px) { .prep-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .av-row, .av-head { grid-template-columns: 1fr; } .av-head span + span { display: none; } .av-row > div + div { border-left: 0; padding-top: 0; } .av-row > div + div::before { content: "SOUND"; display: block; font: 500 10px/1 var(--f-tc); letter-spacing: .09em; color: var(--text-4); margin-bottom: 8px; } }

/* ================= On your Mac ================= */
.local { padding-block: clamp(100px, 16vh, 180px); border-top: 1px solid var(--line); }
.local-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.path { margin-top: 32px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--ground); box-shadow: inset 0 0 0 1px var(--line); font: 500 13px/1.3 var(--f-tc); color: var(--text-2); overflow-x: auto; white-space: nowrap; }
.path svg { width: 22px; height: 18px; flex: none; }
.path b { color: var(--text-1); font-weight: 500; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.facts div { background: var(--canvas); padding: 26px 26px 30px; display: grid; gap: 10px; align-content: start; }
.facts .k { font-size: 11px; }
.facts h3 { font: 700 20px/1.15 var(--f-brand); font-stretch: 112%; letter-spacing: -.01em; }
.facts p { font-size: 15px; color: var(--text-2); line-height: 1.55; }
@media (max-width: 999px) { .local-grid { grid-template-columns: minmax(0, 1fr); } }
.local-grid > * { min-width: 0; }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } }

/* ================= End credits ================= */
.end { position: relative; padding-block: clamp(110px, 18vh, 200px) 60px; border-top: 1px solid var(--line); overflow: hidden; }
.end-hero { display: grid; justify-items: center; text-align: center; gap: 28px; }
.mark { position: relative; width: clamp(200px, 26vw, 340px); aspect-ratio: 1; }
.mark img, .mark canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mark canvas { opacity: 0; transition: opacity .8s var(--e-out); }
.mark.lit canvas { opacity: 1; }
.mark.lit img { opacity: 0; transition: opacity .8s var(--e-out); }
.end h2 { font-size: clamp(40px, 6.4vw, 96px); }
.end .lede { margin-inline: auto; text-align: center; }
.end .hero-cta { justify-content: center; }
.req { font: 500 11.5px/1.5 var(--f-tc); letter-spacing: .07em; text-transform: uppercase; color: var(--text-4); }
.faq { max-width: 820px; margin: clamp(80px, 12vh, 140px) auto 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; font-size: 18px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--e-out); flex: none; }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details p { padding: 0 4px 24px; color: var(--text-2); max-width: 40em; }
.foot { margin-top: clamp(80px, 12vh, 140px); display: grid; justify-items: center; gap: 14px; text-align: center; }
.foot .roll { font: 500 11px/2 var(--f-tc); letter-spacing: .14em; text-transform: uppercase; color: var(--text-4); }
.foot .roll b { color: var(--text-2); font-weight: 500; }


/* ================= Learn ================= */
.learn, .make, .features { padding-block: clamp(100px, 16vh, 180px); border-top: 1px solid var(--line); }
.learn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
.lcard { display: grid; gap: 26px; align-content: start; }
.lc-vis { border-radius: 18px; background: var(--ground); box-shadow: 0 0 0 1px var(--line), 0 40px 100px -40px #000; padding: 20px; display: grid; gap: 16px; align-content: start; min-height: 470px; }
.lc-text h3 { font: 700 clamp(22px, 2vw, 28px)/1.1 var(--f-brand); font-stretch: 118%; letter-spacing: -.015em; }
.lc-text p { color: var(--text-2); margin-top: 12px; max-width: 34em; text-wrap: pretty; }
.field { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 12px; border-radius: 10px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); font: 500 12.5px/1 var(--f-tc); color: var(--text-2); }
.field svg { width: 15px; height: 15px; color: var(--text-4); flex: none; }
.field .url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.study-head { display: flex; gap: 12px; align-items: center; }
.study-head .thumb { width: 96px; aspect-ratio: 16 / 9; border-radius: 4px; flex: none; box-shadow: 0 0 0 1px var(--line); }
.study-head b { display: block; font-size: 15px; font-weight: 600; }
.study-head span { font-size: 12.5px; color: var(--text-4); }
.measure { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.measure div { background: var(--sunken); padding: 12px 12px 14px; display: grid; gap: 7px; transition: opacity .5s var(--e-out); }
.measure dt { font: 500 9.5px/1.2 var(--f-tc); letter-spacing: .07em; text-transform: uppercase; color: var(--text-4); }
.measure dd { font: 600 19px/1 var(--f-brand); font-stretch: 110%; font-variant-numeric: tabular-nums; }
.saved { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--text-2); transition: opacity .5s var(--e-out); }
.saved b { color: var(--text-1); }
.rules { display: grid; gap: 9px; }
.rules li { display: grid; grid-template-columns: 70px 1fr; gap: 10px; font-size: 13px; color: var(--text-2); line-height: 1.45; transition: opacity .5s var(--e-out), transform .5s var(--e-out); }
.rules .k { padding-top: 3px; }
.js #study:not(.go) .measure div, .js #study:not(.go) .saved, .js #study:not(.go) .rules li { opacity: 0; }
.js #study:not(.go) .rules li { transform: translateY(6px); }
#study.go .measure div:nth-child(2) { transition-delay: .12s; } #study.go .measure div:nth-child(3) { transition-delay: .24s; }
#study.go .measure div:nth-child(4) { transition-delay: .36s; } #study.go .measure div:nth-child(5) { transition-delay: .48s; } #study.go .measure div:nth-child(6) { transition-delay: .6s; }
#study.go .saved { transition-delay: 1.1s; }
#study.go .rules li:nth-child(1) { transition-delay: 1.3s; } #study.go .rules li:nth-child(2) { transition-delay: 1.45s; } #study.go .rules li:nth-child(3) { transition-delay: 1.6s; }

.tut { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tf { display: grid; gap: 6px; align-content: start; }
.tf > span { font: 500 9.5px/1.3 var(--f-tc); color: var(--text-4); letter-spacing: .04em; }
.tf-view { position: relative; aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; background: oklch(0.1 0.004 265); box-shadow: 0 0 0 1px var(--line); }
.tf-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tf-view.panel { padding: 10px; display: grid; gap: 7px; align-content: start; }
.tf-view.panel i { display: block; height: 5px; border-radius: 3px; background: var(--steel-5); }
.tf-view.panel i:first-child { width: 34%; background: var(--steel-6); }
.tf-view.grid::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(oklch(1 0 0 / .3) 1px, transparent 1px), linear-gradient(90deg, oklch(1 0 0 / .3) 1px, transparent 1px); background-size: 25% 25%; }
.tf-tl { display: grid; gap: 3px; padding: 5px; border-radius: 3px; background: oklch(0.1 0.004 265); box-shadow: 0 0 0 1px var(--line); }
.tf-tl i { display: block; height: 4px; border-radius: 2px; background: var(--steel-5); }
.tf-tl i.fx { background: oklch(0.78 0.11 250 / .75); }
.tut-cap { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.learned { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
.flash { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line); }
.flash img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flash .fb, .flash.b .fa { opacity: 0; }
.flash.b .fb { opacity: 1; }
.flash .cells { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(5, 1fr); }
.flash .cells i { background: #fff; opacity: 0; }
.flash.go .cells i { animation: cell .5s var(--e-out) var(--d) both; }
@keyframes cell { 0% { opacity: 0; } 30% { opacity: .95; } 100% { opacity: 0; } }
.learned-meta { display: grid; gap: 8px; font-size: 13px; align-content: center; }
.learned-meta .m { font-size: 17px; }
.vars { display: flex; flex-wrap: wrap; gap: 5px; }

/* ================= Make ================= */
.make-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.make-text .sec-head, .make-text { display: grid; gap: 22px; }
.ticks { display: grid; gap: 14px; margin-top: 10px; }
.ticks li { display: flex; gap: 14px; color: var(--text-2); font-size: 16px; line-height: 1.5; }
.ticks li::before { content: ""; width: 7px; height: 7px; margin-top: 9px; flex: none; transform: rotate(45deg); border-radius: 1.5px; background: var(--prism); }
.mk-win { border-radius: 18px; background: var(--ground); box-shadow: 0 0 0 1px var(--line), 0 40px 120px -30px #000; padding: 22px; display: grid; gap: 18px; }
.mk-row { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.mk-row .n { font: 600 14px/1.5 var(--f-tc); color: var(--amber); }
.mk-row.rb { color: var(--text-2); }
.mk-row.rb .gem { margin: 7px 0 0 4px; }
.cost { color: var(--text-1); font: 500 12.5px/1 var(--f-tc); white-space: nowrap; padding: 3px 6px; border-radius: 5px; background: var(--raised); }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ways figure { display: grid; gap: 8px; }
.ways .thumb { aspect-ratio: 16 / 9; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.ways figcaption { font: 500 10.5px/1.3 var(--f-tc); color: var(--text-4); letter-spacing: .03em; }
.ways .pick .thumb { box-shadow: 0 0 0 1.5px var(--text-1); }
.ways .pick figcaption { color: var(--text-2); }
.ways .play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px; border-radius: 50%; background: oklch(0.2 0.005 265 / .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ways .play::after { content: ""; position: absolute; left: 11px; top: 8px; border-style: solid; border-width: 6px 0 6px 9px; border-color: transparent transparent transparent #fff; }
.mk-strip { padding: 0; }
.mk-strip .sc.made { box-shadow: inset 0 0 0 1px oklch(0.70 0.16 268 / .7); }
.mk-strip .sc.made::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--prism); z-index: 2; }
.limits { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); }
.limits b { color: var(--text-1); font-weight: 600; }
.limits .spent { margin-left: auto; font-family: var(--f-tc); color: var(--text-2); }

/* ================= Features: a bento ================= */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile { border-radius: 18px; background: var(--ground); box-shadow: 0 0 0 1px var(--line); padding: 14px 14px 22px; display: grid; grid-template-rows: auto auto 1fr; gap: 8px; overflow: hidden; }
.tile.w2 { grid-column: span 2; }
.tile h3 { font: 700 18px/1.2 var(--f-brand); font-stretch: 112%; letter-spacing: -.01em; margin: 12px 6px 0; }
.tile p { font-size: 14.5px; line-height: 1.5; color: var(--text-3); margin: 0 6px; text-wrap: pretty; }
.tv { height: 176px; border-radius: 11px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.tv .thumb { border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.tv-search { padding: 16px; display: grid; gap: 14px; align-content: start; }
.tv-search .q { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 9px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.tv-search .q svg { width: 15px; height: 15px; color: var(--text-4); }
.tv-search .typed::after { content: ""; display: inline-block; width: 1.5px; height: 15px; margin-left: 1px; vertical-align: -2px; background: var(--text-2); animation: blink 1s steps(1) infinite; }
.tv-search .res { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tv-search figure { display: grid; gap: 6px; }
.tv-search .thumb { aspect-ratio: 16 / 9; }
.tv-search figcaption { font: 500 10px/1 var(--f-tc); color: var(--text-4); }
.tv-shapes { display: grid; place-items: center; }
.tv-shapes .sf { position: relative; width: 160px; height: 90px; overflow: hidden; outline: 1px solid var(--steel-6); outline-offset: 5px; animation: shapes 9s var(--e-inout) infinite; }
.tv-shapes .sf img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 64%; }
@keyframes shapes { 0%, 18% { width: 160px; height: 90px; } 25%, 43% { width: 74px; height: 132px; } 50%, 68% { width: 112px; height: 112px; } 75%, 93% { width: 100px; height: 125px; } 100% { width: 160px; height: 90px; } }
.tv-words { padding: 18px; display: grid; gap: 10px; align-content: center; font-size: 15px; line-height: 1.55; }
.tv-words s { color: var(--text-4); text-decoration-color: var(--amber); text-decoration-thickness: 1.5px; }
.tv-look { position: relative; }
.tv-look > img, .tv-look .graded img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tv-look > img { filter: saturate(.25) brightness(1.15) contrast(.75); }
.tv-look .graded { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); animation: grade 7s var(--e-inout) infinite alternate; }
.tv-look .graded img { filter: saturate(1.25) contrast(1.12); }
.tv-look .split { position: absolute; top: 0; bottom: 0; left: 50%; width: 1.5px; background: #fff; box-shadow: 0 0 8px oklch(1 0 0 / .6); animation: split 7s var(--e-inout) infinite alternate; }
@keyframes grade { from { clip-path: inset(0 78% 0 0); } to { clip-path: inset(0 22% 0 0); } }
@keyframes split { from { left: 22%; } to { left: 78%; } }
.tv-sync { padding: 22px 16px; display: grid; gap: 12px; align-content: center; }
.tv-sync .wv { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 10px; }
.tv-sync .wv > span { font: 500 9.5px/1 var(--f-tc); letter-spacing: .07em; text-transform: uppercase; color: var(--text-4); }
.tv-sync svg { width: 100%; height: 24px; overflow: visible; }
.tv-sync .w1 { fill: oklch(0.76 0.006 265 / .55); }
.tv-sync .w2 { fill: oklch(0.70 0.16 268 / .6); animation: sync 5s var(--e-inout) infinite; }
@keyframes sync { 0%, 15% { transform: translateX(26px); } 45%, 100% { transform: none; } }
.tv-sync .chip { justify-self: end; animation: syncok 5s linear infinite; }
@keyframes syncok { 0%, 44% { opacity: 0; } 50%, 96% { opacity: 1; } 100% { opacity: 0; } }
.tv-ab { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px; align-content: center; }
.tv-ab .ab { display: grid; gap: 8px; justify-items: center; }
.tv-ab .thumb { width: 100%; aspect-ratio: 16 / 10; }
.tv-ab .ab span { font: 600 11px/1 var(--f-tc); color: var(--text-3); }
.tv-ab .ab:nth-child(1) .thumb { animation: pickA 6s steps(1) infinite; }
.tv-ab .ab:nth-child(2) .thumb { animation: pickB 6s steps(1) infinite; }
@keyframes pickA { 0% { box-shadow: 0 0 0 1.5px var(--text-1); } 50% { box-shadow: 0 0 0 1px var(--line); } }
@keyframes pickB { 0% { box-shadow: 0 0 0 1px var(--line); } 50% { box-shadow: 0 0 0 1.5px var(--text-1); } }
.tv-gfx { position: relative; }
.tv-gfx > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.tv-gfx .l3 { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); display: grid; gap: 4px; padding-left: 12px; border-left: 2px solid var(--amber); }
.tv-gfx .l3 b { font: 700 18px/1 var(--f-brand); font-stretch: 115%; }
.tv-gfx .l3 span { font: 500 10.5px/1 var(--f-tc); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.tv-gfx .cap { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 5px 9px; border-radius: 4px; background: oklch(0 0 0 / .7); font-size: 13px; white-space: nowrap; }
.tv-ask, .tv-outside { padding: 18px; display: grid; gap: 14px; align-content: center; }
.tv-ask .bubble { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px oklch(0.78 0.11 250 / .35); font-size: 14px; line-height: 1.45; }
.tv-ask .bubble .gem { margin-top: 5px; }
.tv-ask .opts, .tv-outside .opts { display: flex; gap: 6px; justify-content: flex-end; }
.tv-ask .chip, .tv-outside .chip { height: 26px; padding: 0 10px; font-size: 11.5px; }
.tv-outside .who { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.tv-outside .who > i { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--f-ui); font-style: normal; color: var(--text-1); background: var(--hover); }
.tv-outside .who b { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.tv-outside .who p { font-size: 14px; margin: 3px 0 0; color: var(--text-1); }
.tv-outside .chip.ui.on { color: oklch(0.17 0.006 265); background: linear-gradient(180deg, oklch(0.98 0.002 265), oklch(0.80 0.006 265) 92%); box-shadow: none; font-weight: 600; }
.tv-slow { position: relative; display: grid; place-items: center; color: var(--text-3); }
.tv-slow svg { position: absolute; left: 16px; right: 16px; top: 50%; width: calc(100% - 32px); transform: translateY(-50%); color: oklch(0.70 0.16 268 / .8); }
.tv-slow .mono { position: relative; font-size: 34px; font-weight: 600; color: var(--text-1); letter-spacing: -.02em; background: var(--sunken); padding: 0 10px; }

.oss { display: flex; align-items: center; gap: 14px; margin-top: 8px; padding: 14px 18px; border-radius: 14px; background: var(--ground); box-shadow: 0 0 0 1px var(--line); font-size: 14.5px; color: var(--text-2); text-align: left; transition: box-shadow .2s; }
.oss:hover { box-shadow: 0 0 0 1px var(--line-2); }
.oss svg { width: 22px; height: 22px; flex: none; color: var(--text-1); }
.oss b { color: var(--text-1); font-weight: 600; }
.oss .arrow { color: var(--text-3); margin-left: 6px; }

/* Light leak: the warm wash of light reaching the film, crossing the cut */
.n-leak { position: absolute; inset: -10%; z-index: 2; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(38% 60% at 30% 50%, oklch(0.86 0.15 62 / .95), transparent 70%), radial-gradient(30% 50% at 58% 38%, oklch(0.74 0.19 30 / .85), transparent 70%), radial-gradient(46% 70% at 82% 62%, oklch(0.92 0.09 85 / .8), transparent 70%); }
.n-leak.go { animation: leak 1.2s var(--e-inout) forwards; }
@keyframes leak { 0% { opacity: 0; transform: translateX(-28%); } 46% { opacity: 1; } 100% { opacity: 0; transform: translateX(28%); } }
.lane-name { display: inline-flex; align-items: center; gap: 5px; color: var(--amber) !important; text-transform: none !important; letter-spacing: 0 !important; font: 500 11px/1 var(--f-ui) !important; }

@media (max-width: 999px) {
  .learn-grid, .make-grid { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.w2 { grid-column: span 2; }
}
@media (max-width: 640px) {
  /* On a phone the features slide sideways instead of making a long column. */
  .bento { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scroll-padding-inline: var(--gutter); }
  .bento::-webkit-scrollbar { display: none; }
  .tile, .tile.w2 { grid-column: auto; scroll-snap-align: start; }
  .tv { height: 150px; }
  .lc-vis { min-height: 0; padding: 14px; }
  .measure { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learned { grid-template-columns: minmax(0, 1fr); }
  .tut-cap .faint { display: none; }
  .limits .spent { margin-left: 0; }
  .ways { gap: 8px; }
  .oss { font-size: 13.5px; }
}

/* ================= Reveal ================= */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--e-out), transform .9s var(--e-out); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .hero-frame .layer { animation: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* Text inside a tile's picture keeps its own color and size */
.tile .tv p { margin: 0; color: var(--text-1); font-size: inherit; }
.tile .tv-words p.faint { color: var(--text-3); }
.tv-search .thumb { aspect-ratio: auto; height: 76px; }
.lcard, .lc-vis, .mk-win, .tile { grid-template-columns: minmax(0, 1fr); }
.lcard > *, .lc-vis > *, .mk-win > *, .tile > * { min-width: 0; }
