/* Self-hosted so the page never waits on a third-party font host. All three families are OFL-1.1
   (licences next to the files in /assets/fonts). */
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/inter-cyrillic-wght-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:200 900;font-display:swap;src:url(/assets/fonts/source-serif-4-cyrillic-wght-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/ibm-plex-mono-cyrillic-400-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/ibm-plex-mono-cyrillic-500-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/inter-latin-ext-wght-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:200 900;font-display:swap;src:url(/assets/fonts/source-serif-4-latin-ext-wght-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/ibm-plex-mono-latin-ext-500-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/inter-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:200 900;font-display:swap;src:url(/assets/fonts/source-serif-4-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* STORYGRAPH marketing site. Palette matches the app: graphite, brass, parchment. */
:root {
  --ink: #0b0c10;
  --graphite: #12141a;
  --panel: #161920;
  --panel-2: #1b1f27;
  --line: rgba(237, 232, 222, 0.1);
  --line-2: rgba(237, 232, 222, 0.2);
  --brass: #b08d57;
  --brass-hi: #dcbe8b;
  --brass-lo: #8a6d41;
  --parchment: #ede8de;
  --mute: rgba(237, 232, 222, 0.68);
  --faint: rgba(237, 232, 222, 0.44);
  --signal: #8fb7cf;
  --ok: #7da384;
  --warn: #d08a4a;
  --bad: #c0606f;
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1200px;
  --gut: clamp(18px, 4vw, 44px);
  --r: 16px;
  --nav-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font: 400 16px/1.65 var(--ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.012em; margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--brass); color: #14110b; }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brass); color: #14110b; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: calc(820px + var(--gut) * 2); }
.mono { font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 999px; font: 600 15px/1 var(--ui);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  color: #17130b;
  background: linear-gradient(180deg, var(--brass-hi), var(--brass));
  box-shadow: 0 8px 30px -8px rgba(176, 141, 87, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px -8px rgba(176, 141, 87, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-ghost { color: var(--parchment); border-color: var(--line-2); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--brass); background: rgba(176, 141, 87, 0.08); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(11, 12, 16, 0.82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.nav-in { height: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { border-radius: 10px; width: 56px; height: 56px; }
.brand-name { font: 600 20px/1 var(--display); letter-spacing: 0.22em; }
.menu { display: flex; align-items: center; gap: 6px; }
.menu > a:not(.btn) { padding: 10px 14px; font-size: 14px; color: var(--mute); text-decoration: none; border-radius: 8px; transition: color 0.2s; }
.menu > a:not(.btn):hover { color: var(--parchment); }
.menu .btn { margin-left: 6px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--parchment); border-radius: 2px; transition: transform 0.25s ease, top 0.25s ease; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 8px; font: 500 12px/1 var(--mono); letter-spacing: 0.1em; color: var(--mute); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--parchment); border-color: var(--brass); }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7); }
.lang a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; text-decoration: none; color: var(--mute); }
.lang a:hover { background: rgba(176, 141, 87, 0.12); color: var(--parchment); }
.lang a[aria-current] { color: var(--brass-hi); }

.suggest { position: fixed; z-index: 60; left: 0; right: 0; margin-inline: auto; width: max-content; bottom: 18px; display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 18px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.8); max-width: calc(100vw - 24px); }
.suggest[hidden] { display: none; }
.suggest a { color: var(--brass-hi); font-weight: 600; text-decoration: none; }
.suggest button { background: none; border: 0; color: var(--faint); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; isolation: isolate; overflow: hidden; background: var(--ink); }
/* the stage: a film reel that turns (faster while you scroll), the film it winds in, and the product in front */
.stage { position: absolute; inset: 0; z-index: -3; pointer-events: none; --reel: clamp(360px, 38vw, 640px); --reel-top: calc(var(--nav-h) + 1vh); --reel-right: -2vw; }
.reel { position: absolute; z-index: 1; width: var(--reel); height: var(--reel); right: var(--reel-right); top: var(--reel-top); filter: drop-shadow(0 40px 70px rgba(0, 0, 0, 0.7)); opacity: 0; animation: reel-in 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s forwards; }
.reel-spin { transform-box: fill-box; transform-origin: center; will-change: transform; }
/* the film running down from the reel: sprocket holes on both edges, frame lines between */
.feed { position: absolute; z-index: 0; width: 54px; top: calc(var(--reel-top) + var(--reel) * 0.5); bottom: 0; right: calc(var(--reel-right) + var(--reel) * 0.15 - 27px); background: #0d0b08; border-inline: 1px solid rgba(176, 141, 87, 0.35); box-shadow: 0 0 40px rgba(0, 0, 0, 0.6); -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.feed i { position: absolute; inset: 0; background:
    repeating-linear-gradient(180deg, rgba(237, 232, 222, 0.22) 0 7px, transparent 7px 16px) 5px 0 / 6px 16px repeat-y,
    repeating-linear-gradient(180deg, rgba(237, 232, 222, 0.22) 0 7px, transparent 7px 16px) calc(100% - 5px) 0 / 6px 16px repeat-y,
    repeating-linear-gradient(180deg, rgba(176, 141, 87, 0.16) 0 30px, #0d0b08 30px 33px) 15px 0 / 24px 33px repeat-y;
  background-position-y: var(--feed, 0px), var(--feed, 0px), var(--feed, 0px); }
.devices { position: absolute; z-index: 2; width: min(41vw, 700px); height: auto; right: 4vw; bottom: 8vh; filter: drop-shadow(0 50px 60px rgba(0, 0, 0, 0.75)) saturate(0.95); opacity: 0; transform: translateY(26px) scale(0.98); animation: devices-in 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.55s forwards; }
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(11, 12, 16, 0.97) 0%, rgba(11, 12, 16, 0.9) 30%, rgba(11, 12, 16, 0.45) 62%, rgba(11, 12, 16, 0.12) 100%),
    linear-gradient(180deg, rgba(11, 12, 16, 0.75) 0%, rgba(11, 12, 16, 0) 22%, rgba(11, 12, 16, 0) 70%, var(--ink) 100%),
    radial-gradient(120% 90% at 78% 40%, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}
.grain {
  position: absolute; inset: -60%; z-index: -1; pointer-events: none; opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%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 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(7) infinite;
}
.hero-in { padding-top: calc(var(--nav-h) + 8vh); padding-bottom: 12vh; }
.hero h1 { font-size: clamp(2.35rem, 4.8vw, 4.3rem); line-height: 1.05; max-width: 19ch; margin: 18px 0 24px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--brass-hi) 0%, var(--brass) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--mute); max-width: 56ch; }
.hero .lead { max-width: 46ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.fine { margin-top: 20px; color: var(--faint); font-size: 11px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--brass-hi); margin: 0; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: #d4503f; box-shadow: 0 0 0 0 rgba(212, 80, 63, 0.6); animation: rec 2s ease-out infinite; }
.hero-meta { position: absolute; z-index: 3; right: var(--gut); bottom: calc(5vh + 18px); display: flex; gap: 18px; color: var(--faint); font-size: 11px; }
.hero-meta #tc { color: var(--parchment); min-width: 11ch; }
.scroll-cue { position: absolute; z-index: 3; left: var(--gut); bottom: calc(5vh + 18px); display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 11px; }
.scroll-cue i { width: 46px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--brass-hi); transform: translateX(-100%); animation: cue 2.4s ease-in-out infinite; }
/* letterbox: black bars that slide in like the opening of a feature film */
.bar { position: absolute; left: 0; right: 0; z-index: 4; background: #000; height: 15vh; animation: bars 2.2s cubic-bezier(0.22, 0.7, 0.2, 1) 0.25s forwards; pointer-events: none; }
.bar-top { top: 0; }
.bar-bottom { bottom: 0; }

/* ---------- formats strip ---------- */
.formats { border-block: 1px solid var(--line); background: var(--graphite); }
.formats-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; flex-wrap: wrap; }
.formats-label { color: var(--faint); margin: 0; }
.formats ul { display: flex; gap: 10px; flex-wrap: wrap; }
.formats li { padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; color: var(--mute); background: rgba(255, 255, 255, 0.015); }

/* ---------- sections ---------- */
.sec { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.sec-alt { background: linear-gradient(180deg, var(--graphite), var(--ink)); border-block: 1px solid var(--line); }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.head h2, .split h2, .showcase h2, .cta h2 { font-size: clamp(1.9rem, 3.9vw, 3.1rem); margin: 14px 0 20px; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
/* film strips between sections: storyboard frames that run toward the reel as you scroll */
.filmstrip { position: relative; height: 112px; overflow: hidden; background: #0a0908; border-block: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.filmstrip-track { position: absolute; top: 0; height: 112px; left: 0; width: calc(100vw + 1400px); will-change: transform; background:
    repeating-linear-gradient(90deg, rgba(237, 232, 222, 0.16) 0 10px, transparent 10px 24px) 0 5px / 24px 9px repeat-x,
    repeating-linear-gradient(90deg, rgba(237, 232, 222, 0.16) 0 10px, transparent 10px 24px) 0 98px / 24px 9px repeat-x,
    repeating-linear-gradient(90deg, transparent 0 117.6px, #0a0908 117.6px 121.6px) 0 18px / 121.6px 76px repeat-x,
    url("../img/frames.webp") 0 18px / auto 76px repeat-x; }
.filmstrip::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10, 9, 8, 0.25), transparent 30%, transparent 70%, rgba(10, 9, 8, 0.25)); box-shadow: inset 0 0 0 1px rgba(176, 141, 87, 0.12); }

/* every section is a frame of the film: a number in the corner, a pull-down and a flash of the gate when it comes in */
.frame { position: relative; }
.frame-tag { position: absolute; top: 22px; right: var(--gut); z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--faint); font-size: 10.5px; background: rgba(11, 12, 16, 0.5); }
.frame-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 8px var(--brass); }
/* the screen the projector lights: a warm glow that flickers on and settles to a faint light */
.frame::after { content: ""; position: absolute; inset: 2% 1.5%; border-radius: 28px; pointer-events: none; opacity: 0; background: radial-gradient(62% 58% at 50% 42%, rgba(255, 236, 196, 0.14), rgba(240, 214, 160, 0.05) 55%, transparent 80%); }
.js .frame:not(.rolled) > :not(.frame-tag) { opacity: 0; }
/* a filmstrip-projector frame change: the new frame is pulled up through the gate, the dark line
   between frames (with its perforations) sweeps across, the frame overshoots a hair and settles */
/* order of a frame change: the dark line between frames passes, the projector lights up the
   "screen" (the section's background), and only then the content appears on it, piece by piece */
.js .frame > :not(.frame-tag) { transition: opacity 0.4s ease 0.2s; }
.js .frame:not(.rolled) .reveal.in { opacity: 0; transform: translateY(22px); }
.js .frame.rolled .reveal.in { transition-delay: calc(700ms + var(--seq, 0ms)); }
.js .frame.rolled::before { content: ""; position: absolute; z-index: 3; left: 0; right: 0; height: 28px; pointer-events: none; animation: frame-line 0.8s cubic-bezier(0.55, 0, 0.25, 1) both;
  background: repeating-linear-gradient(90deg, rgba(237, 232, 222, 0.16) 0 11px, transparent 11px 26px) 0 50% / 26px 9px repeat-x, linear-gradient(180deg, rgba(5, 5, 5, 0) 0, #050505 30%, #050505 70%, rgba(5, 5, 5, 0) 100%); }
/* the projector's beam: from the little reel in the corner to the section coming in */
.beam { position: fixed; inset: 0; z-index: 35; pointer-events: none; opacity: 0; mix-blend-mode: screen; }
.beam.go { animation: beam 1.3s ease-out; }
.js .frame.rolled::after { animation: screen-on 2.4s ease-out both; }
.js .frame.rolled .frame-tag { animation: tag-in 0.5s ease-out both; }

/* progress through the film: frame number, a bar and the time left */
.hud { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 7px 16px 7px 7px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(11, 12, 16, 0.8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--mute); font-size: 10.5px; box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.8); opacity: 0; transform: translateY(14px); transition: opacity 0.4s ease, transform 0.4s ease; pointer-events: none; }
.hud.on { opacity: 1; transform: none; }
.hud-reel { width: 30px; height: 30px; flex: none; }
.hud b { color: var(--brass-hi); font-weight: 500; }
.hud-of { color: var(--faint); }
.hud-bar { position: relative; width: 96px; height: 2px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.hud-bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--brass-lo), var(--brass-hi)); transform: scaleX(0); transform-origin: left; }
#hud-tc { color: var(--parchment); min-width: 8.5ch; }
.hud.end #hud-n, .hud.end .hud-of, .hud.end .hud-bar { display: none; }
.hud.end #hud-label { color: var(--brass-hi); letter-spacing: 0.2em; }

/* perforations down both edges of the page, travelling with it */
.perf { position: fixed; top: 0; bottom: 0; width: 14px; z-index: 30; pointer-events: none; opacity: 0.55; background: repeating-linear-gradient(180deg, rgba(237, 232, 222, 0.12) 0 9px, transparent 9px 22px) 50% var(--perf, 0px) / 6px 22px repeat-y; display: none; }
.perf-l { left: 6px; }
.perf-r { right: 6px; }
@media (min-width: 1160px) { .perf { display: block; } }

.card { background: linear-gradient(180deg, var(--panel), var(--graphite)); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; transition: border-color 0.3s ease, transform 0.3s ease; }
.card:hover { border-color: rgba(176, 141, 87, 0.45); }
.card h3 { font-size: 1.4rem; margin: 10px 0 10px; }
.card p { color: var(--mute); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(40px, 6vw, 72px); }
.num { color: var(--brass); }

/* problem: six tools collapse into one */
.toolstack ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.toolstack li { padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: 12px; color: rgba(237, 232, 222, 0.82); font: 600 15px/1.35 var(--ui); letter-spacing: 0.005em; background: rgba(255, 255, 255, 0.012); position: relative; }
.toolstack li span { position: relative; }
/* a thin line through bold text: crossed out, yet still easy to read */
.toolstack li span::after { content: ""; position: absolute; left: -3px; right: -3px; top: 55%; height: 1px; background: rgba(220, 190, 139, 0.85); transform: scaleX(0); transform-origin: left; transition: transform 0.6s ease calc(var(--i) * 110ms + 400ms); }
.toolstack.in li span::after { transform: scaleX(1); }
.js .frame:not(.rolled) .toolstack.in li span::after { transform: scaleX(0); }
.js .frame.rolled .toolstack li span::after { transition-delay: calc(var(--i) * 110ms + 1500ms); }
.merge { margin-top: 14px; display: flex; align-items: center; gap: 14px; }
.merge i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--brass)); }
.merge span { padding: 14px 24px; border-radius: 12px; border: 1px solid var(--brass); background: rgba(176, 141, 87, 0.1); color: var(--brass-hi); font: 600 15px/1 var(--display); letter-spacing: 0.22em; box-shadow: 0 0 40px -10px rgba(176, 141, 87, 0.5); }

/* pipeline */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; padding-top: 30px; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 1px; background: var(--line-2); }
.steps::after { content: ""; position: absolute; left: 0; top: 18px; height: 1px; width: 100%; background: linear-gradient(90deg, var(--brass-lo), var(--brass-hi)); transform: scaleX(0); transform-origin: left; transition: transform 1.8s cubic-bezier(0.5, 0, 0.2, 1) 0.3s; box-shadow: 0 0 14px rgba(220, 190, 139, 0.6); }
.steps.in::after { transform: scaleX(1); }
.js .frame:not(.rolled) .steps.in::after { transform: scaleX(0); }
.js .frame.rolled .steps::after { transition-delay: 1.4s; }
.step { position: relative; }
.node { position: absolute; top: -30px; left: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); border: 1px solid var(--brass); color: var(--brass-hi); display: grid; place-items: center; font-size: 12px; }
.step h3 { font-size: 1.35rem; margin: 22px 0 10px; }
.step p { color: var(--mute); font-size: 0.97rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags li { padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--faint); font-size: 10.5px; }

/* roles */
.roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.role { padding: 34px; }
.label { color: var(--brass-hi); margin: 0; display: flex; align-items: center; gap: 10px; }
.role ul { margin-top: 18px; display: grid; gap: 12px; }
.role li { position: relative; padding-left: 22px; color: var(--mute); font-size: 0.97rem; }
.role li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 1px; background: var(--brass); }
/* viewfinder corners */
.vf { position: relative; }
.vf::before, .vf::after { content: ""; position: absolute; width: 16px; height: 16px; border: 1px solid var(--brass); opacity: 0.7; pointer-events: none; transition: opacity 0.3s; }
.vf::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--r); }
.vf::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--r); }
.vf:hover::before, .vf:hover::after { opacity: 1; }

/* peek panels */
.peek { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.panel { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8); }
.panel .label { font-size: 11px; color: var(--faint); }
.panel .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px var(--signal); }
.panel .foot { color: var(--faint); font-size: 13px; line-height: 1.5; margin-top: auto; padding-top: 4px; }
.diag { display: grid; gap: 10px; }
.diag li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, 0.18); }
.diag b { display: block; font-weight: 600; font-size: 14px; }
.diag small { color: var(--faint); font-size: 12.5px; }
.pill { flex: none; padding: 5px 8px; border-radius: 5px; font-size: 10px; border: 1px solid; margin-top: 1px; }
.sev-high .pill { color: var(--bad); border-color: rgba(192, 96, 111, 0.5); background: rgba(192, 96, 111, 0.1); }
.sev-med .pill { color: var(--warn); border-color: rgba(208, 138, 74, 0.5); background: rgba(208, 138, 74, 0.1); }
.sev-low .pill { color: var(--ok); border-color: rgba(125, 163, 132, 0.5); background: rgba(125, 163, 132, 0.1); }
.beats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.beats li { padding: 8px 8px 9px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, 0.18); min-width: 0; }
.beats .mono { display: block; font-size: 10px; color: var(--faint); }
.beats em { display: block; font-style: normal; font-size: 11.5px; line-height: 1.25; color: var(--mute); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.beats .done { border-color: rgba(176, 141, 87, 0.5); background: rgba(176, 141, 87, 0.1); }
.beats .done .mono { color: var(--brass-hi); }
.beats .now { border-color: var(--signal); box-shadow: 0 0 0 1px rgba(143, 183, 207, 0.35), 0 0 18px -4px var(--signal); animation: pulse 2.4s ease-in-out infinite; }
.beats .now .mono { color: var(--signal); }
.shotlist { display: grid; gap: 8px; }
.shotlist li { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 12px; align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, 0.18); font-size: 14px; }
.shotlist .n { color: var(--brass); font-size: 11px; }
.shotlist b { font-weight: 600; }
.shotlist .vo { color: var(--signal); font-size: 10.5px; }
.shotlist .reel { color: var(--parchment); font-size: 11px; }
.timeline { display: flex; gap: 3px; height: 30px; }
.timeline i { border-radius: 5px; background: linear-gradient(180deg, rgba(176, 141, 87, 0.5), rgba(176, 141, 87, 0.22)); border: 1px solid rgba(176, 141, 87, 0.6); display: grid; place-items: center; color: var(--brass-hi); font-size: 10px; font-style: normal; }
.total { color: var(--brass-hi); text-align: right; font-size: 11px; }
.note { margin-top: 22px; text-align: center; color: var(--faint); font-size: 11px; }

/* facts */
.facts { border-block: 1px solid var(--line); background: var(--graphite); padding: clamp(40px, 6vw, 72px) 0; }
.facts ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.facts li { padding-left: 20px; border-left: 1px solid var(--brass); }
.facts b { display: block; font: 600 clamp(2.6rem, 5.5vw, 4.4rem)/1 var(--display); color: var(--brass-hi); letter-spacing: -0.02em; }
.facts span { color: var(--mute); font-size: 11px; display: block; margin-top: 10px; }

/* showcase */
.showcase { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: clamp(32px, 5vw, 64px); border: 1px solid var(--line-2); border-radius: 22px; background: radial-gradient(90% 140% at 0% 0%, rgba(176, 141, 87, 0.16), transparent 60%), linear-gradient(180deg, var(--panel), var(--graphite)); }
.showcase .lead { max-width: 52ch; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.plan { padding: 36px; }
.plan-free { border-color: rgba(176, 141, 87, 0.5); background: radial-gradient(100% 100% at 0% 0%, rgba(176, 141, 87, 0.13), transparent 60%), linear-gradient(180deg, var(--panel), var(--graphite)); }
.checks { margin-top: 20px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; color: var(--parchment); font-size: 0.96rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 14px; height: 8px; border-left: 2px solid var(--brass-hi); border-bottom: 2px solid var(--brass-hi); transform: rotate(-45deg) scale(0.9); }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 48px 24px 0; font: 600 1.12rem/1.4 var(--display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: rotate(45deg); transition: transform 0.3s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--brass-hi); }
.faq p { padding: 0 48px 26px 0; color: var(--mute); }

/* cta */
.cta { background: radial-gradient(70% 90% at 80% 20%, rgba(176, 141, 87, 0.13), transparent 60%), var(--ink); border-top: 1px solid var(--line); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.alt { margin-top: 28px; color: var(--faint); font-size: 11px; line-height: 1.8; }
.alt a { color: var(--brass-hi); text-decoration: none; }
.form { padding: 32px; border: 1px solid var(--line-2); border-radius: 20px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); display: grid; gap: 16px; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9); }
.form label { display: grid; gap: 7px; }
.form label span { font: 500 11px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.form input, .form select, .form textarea { width: 100%; padding: 13px 14px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line-2); border-radius: 10px; color: var(--parchment); font: 400 15px/1.4 var(--ui); transition: border-color 0.2s, box-shadow 0.2s; }
.form textarea { resize: vertical; min-height: 84px; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--brass) 50%), linear-gradient(135deg, var(--brass) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.2); }
.form [aria-invalid="true"] { border-color: var(--bad); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn { width: 100%; padding: 16px; }
.form .btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.status { min-height: 1.4em; font-size: 14px; color: var(--mute); }
.status.ok { color: var(--ok); }
.status.err { color: var(--bad); }

/* footer */
.foot-site { border-top: 1px solid var(--line); background: var(--graphite); padding: 56px 0 40px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px 48px; align-items: start; }
.foot-brand p { margin-top: 14px; color: var(--faint); font-size: 14px; max-width: 34ch; }
.foot-links { display: grid; gap: 10px; }
.foot-links a, .foot-langs a { color: var(--mute); text-decoration: none; font-size: 14px; }
.foot-links a:hover, .foot-langs a:hover { color: var(--brass-hi); }
.foot-langs { display: grid; gap: 10px; }
.foot-langs a[aria-current] { color: var(--brass-hi); }
.copy { grid-column: 1 / -1; color: var(--faint); font-size: 11px; padding-top: 26px; border-top: 1px solid var(--line); margin: 0; }

/* ---------- legal pages ---------- */
.legal { padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 88px)); padding-bottom: clamp(56px, 9vw, 120px); }
.legal h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 14px 0 10px; }
.legal-meta { color: var(--faint); font-size: 11px; margin: 0 0 22px; }
.legal-switch { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.legal-switch a { padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--mute); text-decoration: none; }
.legal-switch a:hover { border-color: var(--brass); color: var(--parchment); }
.legal-switch a[aria-current] { border-color: var(--brass); color: var(--brass-hi); background: rgba(176, 141, 87, 0.1); }
.legal section { padding-top: 6px; }
.legal h2 { font-size: 1.35rem; margin: 34px 0 12px; }
.legal p { color: var(--mute); margin: 0 0 14px; max-width: 70ch; }
.legal ul { margin: 0 0 14px; display: grid; gap: 10px; max-width: 70ch; }
.legal li { position: relative; padding-left: 22px; color: var(--mute); }
.legal li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 10px; height: 1px; background: var(--brass); }
.legal-back { margin-top: 48px !important; }
.legal-back a { color: var(--brass-hi); text-decoration: none; }


/* ---------- blog ---------- */
.blog-head { padding-top: calc(var(--nav-h) + clamp(36px, 6vw, 80px)); padding-bottom: 8px; }
.blog-head h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin: 14px 0 14px; max-width: 22ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--faint); font-size: 11px; margin-bottom: 18px; }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--brass-hi); }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.cat-chips a { padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--mute); text-decoration: none; }
.cat-chips a:hover { border-color: var(--brass); color: var(--parchment); }
.cat-chips a[aria-current] { border-color: var(--brass); color: var(--brass-hi); background: rgba(176, 141, 87, 0.1); }
.cat-chips .rss { margin-left: auto; border-style: dashed; font-size: 11px; }
.sec-tight { padding: clamp(28px, 5vw, 56px) 0 clamp(56px, 9vw, 110px); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; background: linear-gradient(180deg, var(--panel), var(--graphite)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color 0.3s ease, transform 0.3s ease; }
.post-card:hover { border-color: rgba(176, 141, 87, 0.5); transform: translateY(-3px); }
.post-card-img { display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: #0b0c10; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { font-size: 1.28rem; line-height: 1.2; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--brass-hi); }
.post-cat { margin: 0; font-size: 11px; }
.post-cat a { color: var(--brass-hi); text-decoration: none; }
.post-desc { color: var(--mute); font-size: 0.95rem; line-height: 1.55; }
.post-meta { margin: auto 0 0; color: var(--faint); font-size: 11px; padding-top: 6px; }
.all-posts { margin-top: 30px; }

.post { padding-top: calc(var(--nav-h) + clamp(28px, 5vw, 64px)); padding-bottom: clamp(40px, 7vw, 90px); }
.post h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.08; margin: 6px 0 16px; }
.post .lead { max-width: 60ch; }
.post .post-meta { margin: 18px 0 26px; padding: 0; }
.post-cover { width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line); margin-bottom: 30px; aspect-ratio: 1200 / 630; object-fit: cover; }
.toc { margin: 0 0 34px; padding: 18px 22px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(255, 255, 255, 0.015); }
.toc p { margin: 0 0 10px; color: var(--faint); font-size: 11px; }
.toc ol { list-style: none; display: grid; gap: 8px; counter-reset: toc; }
.toc li { counter-increment: toc; display: flex; gap: 12px; }
.toc li::before { content: counter(toc, decimal-leading-zero); font: 500 11px/1.9 var(--mono); color: var(--brass); }
.toc a { color: var(--mute); text-decoration: none; }
.toc a:hover { color: var(--brass-hi); }

.prose { font-size: 1.08rem; line-height: 1.8; color: rgba(237, 232, 222, 0.88); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2.1em; padding-top: 0.2em; scroll-margin-top: calc(var(--nav-h) + 16px); }
.prose h3 { font-size: 1.28rem; margin-top: 1.7em; scroll-margin-top: calc(var(--nav-h) + 16px); }
.prose p, .prose li { max-width: 68ch; }
.prose a { color: var(--brass-hi); text-underline-offset: 3px; }
.prose a:hover { color: var(--parchment); }
.prose ul, .prose ol { padding-left: 1.4em; display: grid; gap: 0.5em; }
.prose ul { list-style: none; }
.prose ul li { position: relative; }
.prose ul li::before { content: ""; position: absolute; left: -1.2em; top: 0.8em; width: 0.6em; height: 1px; background: var(--brass); }
.prose ol { list-style: decimal; }
.prose ol li::marker { color: var(--brass); font-family: var(--mono); }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--brass); color: var(--parchment); font-family: var(--display); font-size: 1.2rem; line-height: 1.5; }
.prose code { font-family: var(--mono); font-size: 0.88em; background: rgba(255, 255, 255, 0.06); padding: 2px 6px; border-radius: 5px; }
.prose pre { background: #0d0f14; border: 1px solid var(--line-2); border-radius: 12px; padding: 18px 20px; overflow-x: auto; line-height: 1.6; max-width: 100%; }
.prose pre code { background: none; padding: 0; font-size: 0.92rem; }
.prose hr { border: 0; border-top: 1px solid var(--line-2); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.96rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 600 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass-hi); border-bottom-color: var(--line-2); white-space: nowrap; }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--graphite); }
.prose figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--faint); line-height: 1.5; }
.post-cta { margin-top: 3em; padding: clamp(24px, 4vw, 40px); background: radial-gradient(90% 140% at 0% 0%, rgba(176, 141, 87, 0.18), transparent 60%), linear-gradient(180deg, var(--panel), var(--graphite)); border-color: rgba(176, 141, 87, 0.4); }
.post-cta h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 10px; }
.post-cta p { color: var(--mute); margin: 0 0 20px; max-width: 56ch; }
.related-h { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 22px; }

@media (max-width: 1040px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .cat-chips .rss { margin-left: 0; }
  .prose { font-size: 1.03rem; }
}

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease var(--d, 0ms), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes reel-in { from { opacity: 0; transform: translateX(40px) rotate(-30deg); } to { opacity: 0.95; transform: none; } }
@keyframes devices-in { to { opacity: 1; transform: none; } }
@keyframes screen-on { 0% { opacity: 0; transform: scale(0.94); } 9% { opacity: 0.8; } 14% { opacity: 0.25; } 24% { opacity: 1; transform: none; } 50% { opacity: 1; } 100% { opacity: 0.35; transform: none; } }
@keyframes frame-line { 0% { top: var(--from, 0px); opacity: 1; } 85% { opacity: 1; } 100% { top: -28px; opacity: 0; } }
@keyframes beam { 0% { opacity: 0; } 12% { opacity: 1; } 20% { opacity: 0.45; } 30% { opacity: 0.95; } 60% { opacity: 0.6; } 100% { opacity: 0; } }
@keyframes tag-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes bars { to { height: 5vh; } }
@keyframes grain { 0% { transform: translate(0, 0); } 15% { transform: translate(-3%, 4%); } 30% { transform: translate(5%, -3%); } 45% { transform: translate(-4%, -5%); } 60% { transform: translate(3%, 6%); } 75% { transform: translate(-6%, 2%); } 100% { transform: translate(2%, -4%); } }
@keyframes rec { 0% { box-shadow: 0 0 0 0 rgba(212, 80, 63, 0.6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(212, 80, 63, 0); } }
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 1px rgba(143, 183, 207, 0.6), 0 0 26px -2px var(--signal); } }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .roles, .plans { grid-template-columns: 1fr; }
  .peek { grid-template-columns: 1fr 1fr; }
  .peek .panel:last-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 54px; }
  .steps::before, .steps::after { display: none; }
  .step { padding-top: 0; }
  .node { position: static; margin-bottom: 4px; }
  .step h3 { margin-top: 14px; }
}
@media (max-width: 880px) {
  .burger { display: block; }
  .menu { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 18px var(--gut) 26px; background: #0b0c10; border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; max-height: calc(100svh - var(--nav-h)); overflow-y: auto; }
  .menu.open { opacity: 1; transform: none; pointer-events: auto; }
  .menu > a:not(.btn) { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu .btn { margin: 8px 0 0; padding: 15px; }
  .lang { order: 5; margin-top: 10px; }
  .lang ul { position: static; margin-top: 8px; box-shadow: none; }
  .nav { background: rgba(11, 12, 16, 0.7); backdrop-filter: blur(12px); }
  .split, .cta-grid { grid-template-columns: 1fr; }
  .cards3 { grid-template-columns: 1fr; }
  .facts ul { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .showcase { flex-direction: column; align-items: flex-start; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .hero-meta { display: none; }
  /* phones: the reel and the product first, as a picture of their own, then the text */
  .hero { flex-direction: column; align-items: stretch; justify-content: center; }
  .hero-in { padding-top: 10px; }
  .stage { position: relative; inset: auto; z-index: 0; order: -1; width: 100%; height: min(86vw, 520px); margin: calc(var(--nav-h) + 4vh) 0 0; --reel: min(62vw, 360px); --reel-right: 6vw; --reel-top: 0px; }
  .devices { width: min(84vw, 520px); right: 8vw; bottom: 0; }
  .hero-shade { background: linear-gradient(180deg, rgba(11, 12, 16, 0.7) 0%, rgba(11, 12, 16, 0.78) 42%, rgba(11, 12, 16, 0.96) 100%); }
  .filmstrip { height: 84px; }
  .filmstrip-track { transform-origin: 0 0; scale: 0.75; width: calc(133vw + 1870px); }
  .frame-tag { top: 14px; }
}
@media (max-width: 640px) {
  .peek { grid-template-columns: 1fr; }
  .peek .panel:last-child { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .toolstack ul { grid-template-columns: 1fr 1fr; }
  .bar { height: 9vh; }
  @keyframes bars { to { height: 3.5vh; } }
  .scroll-cue { display: none; }
  .cta-row .btn { flex: 1 1 100%; }
  .brand-name { font-size: 16px; letter-spacing: 0.18em; }
  .brand img { width: 48px; height: 48px; }
  :root { --nav-h: 72px; }
  .faq summary { font-size: 1.04rem; }
  .formats-in { flex-direction: column; align-items: flex-start; }
  .hud { right: auto; left: 12px; bottom: 12px; gap: 8px; padding-right: 12px; }
  .hud-bar, #hud-tc { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .steps::after { transform: scaleX(1); }
  .toolstack li span::after { transform: scaleX(1); }
  .bar { height: 5vh; }
  .reel, .devices { opacity: 0.95; transform: none; }
  .devices { opacity: 1; }
  .js .frame:not(.rolled) > :not(.frame-tag) { opacity: 1; }
  .js .frame:not(.rolled) .reveal.in { opacity: 1; transform: none; }
  .beam { display: none; }
}
/* no-JS: the menu is just a wrapped row, the content is never hidden */
html:not(.js) .burger { display: none; }
html:not(.js) .menu { position: static; opacity: 1; pointer-events: auto; transform: none; flex-wrap: wrap; background: none; padding: 0; flex-direction: row; }
