/* ==========================================================================
   "final_final_v3" — video editor / motion designer template · style.css
   by Very Online Studio

    1. Fonts
    2. Tokens + themes (darkroom · tape · neon)
    3. Base, utilities
    4. Buttons, slugs, section heads
    5. Export intro (.render)
    6. Nav, scroll progress, cursor
    7. Hero + showreel player
    8. Toolkit ticker
    9. About
   10. The grade (signature scene)
   11. Work grid + lightbox
   12. Reframe (aspect ratios)
   13. The hook (retention graph)
   14. The curve (graph editor)
   15. Services (export presets)
   16. Process
   17. Rates
   18. Client notes
   19. FAQ
   20. Contact, brief, footer
   21. DEMO ONLY theme switcher
   22. Motion start states + reduced motion
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
/* Anybody: variable weight 100–900 and width 50–150%. Headings run condensed; emphasis runs wide. */
@font-face {
  font-family: 'Anybody';
  src: url('../fonts/anybody-latin-standard-normal.woff2') format('woff2-variations'),
       url('../fonts/anybody-latin-standard-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Martian Mono';
  src: url('../fonts/martian-mono-latin-wght-normal.woff2') format('woff2-variations'),
       url('../fonts/martian-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* 2. Tokens + themes ------------------------------------------------------ */
:root {
  --f-sans: 'Anybody', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Martian Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --sticker-ink: #121212;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 18px;
  --radius-sm: 10px;
  --nav-h: 68px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-snap: cubic-bezier(.75, 0, .15, 1.25);

  /* things that sit on top of video stay light in every theme */
  --on-media: #F7F4EE;
  --monitor: #070708;
}

:root, [data-theme="darkroom"] {
  /* Darkroom (default): near-black, warm paper ink, acid lime */
  --bg: #0B0B0C;
  --bg-2: #111113;
  --surface: #17171A;
  --surface-2: #1F1F23;
  --line: rgba(242, 239, 233, .13);
  --line-2: rgba(242, 239, 233, .26);
  --ink: #F2EFE9;
  --muted: #A7A39C;
  --accent: #D4FF3F;        /* fills, strokes */
  --accent-ink: #D4FF3F;    /* accent used as text on --bg / --surface */
  --on-accent: #0B0B0C;     /* text on accent fills */
  --hot: #FF5A4E;           /* decorative second accent (rec dot, markers) */
  --cta-bg: #D4FF3F;        /* contact section */
  --cta-ink: #0B0B0C;
  --cta-muted: #2E3313;
  --grain-o: .07;
  --glow: rgba(212, 255, 63, .35);
  /* sticker / chapter pops (always paired with --sticker-ink) */
  --c1: #D4FF3F; --c2: #FF6AD5; --c3: #6FA8FF; --c4: #FFA24D;
}

[data-theme="tape"] {
  /* Tape: warm VHS cream, brown-black ink, tape red + teal */
  --bg: #EEE6D3;
  --bg-2: #E6DCC5;
  --surface: #F7F1E3;
  --surface-2: #EADFC8;
  --line: rgba(33, 27, 21, .14);
  --line-2: rgba(33, 27, 21, .3);
  --ink: #211B15;
  --muted: #5C5247;
  --accent: #C23820;
  --accent-ink: #B2321B;
  --on-accent: #FFF8EC;
  --hot: #1E6E77;
  --cta-bg: #211B15;
  --cta-ink: #F4ECDA;
  --cta-muted: #C9BBA3;
  --grain-o: .1;
  --glow: rgba(194, 56, 32, .3);
  --c1: #F2C14E; --c2: #F2998C; --c3: #8CC5CC; --c4: #E9A15A;
}

[data-theme="neon"] {
  /* Neon: saturated cobalt, white ink, laser lime + hot pink */
  --bg: #1A21CF;
  --bg-2: #1C24DA;
  --surface: #252DE3;
  --surface-2: #2F38EA;
  --line: rgba(255, 255, 255, .2);
  --line-2: rgba(255, 255, 255, .38);
  --ink: #FFFFFF;
  --muted: #D5D8FF;
  --accent: #E3FF3B;
  --accent-ink: #E3FF3B;
  --on-accent: #10137A;
  --hot: #FF6AD5;
  --cta-bg: #E3FF3B;
  --cta-ink: #10137A;
  --cta-muted: #3A3F8F;
  --grain-o: .06;
  --glow: rgba(227, 255, 59, .4);
  --c1: #E3FF3B; --c2: #FF8BE0; --c3: #7DF9FF; --c4: #FFB35C;
}

/* 3. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); color-scheme: dark; }
[data-theme="tape"] { color-scheme: light; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: clamp(16px, .25vw + 15px, 18px);
  line-height: 1.55;
  font-stretch: 94%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background-color .5s, color .5s;
}
img, video, canvas, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
em { font-style: normal; font-weight: 820; font-stretch: 106%; letter-spacing: -.03em; }
/* Emphasis in headlines = a selected clip: accent colour + crop marks around the word (no italics). */
.hero__title em, .chap__title em, .sec__title em, .contact__title em, .intro__statement em {
  color: var(--accent-ink); font-size: 1em; padding: 0 .09em; margin: 0 .02em;
  background:
    linear-gradient(currentColor, currentColor) left top / .28em .045em, linear-gradient(currentColor, currentColor) left top / .045em .28em,
    linear-gradient(currentColor, currentColor) right top / .28em .045em, linear-gradient(currentColor, currentColor) right top / .045em .28em,
    linear-gradient(currentColor, currentColor) left bottom / .28em .045em, linear-gradient(currentColor, currentColor) left bottom / .045em .28em,
    linear-gradient(currentColor, currentColor) right bottom / .28em .045em, linear-gradient(currentColor, currentColor) right bottom / .045em .28em;
  background-repeat: no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero__title em { color: var(--accent); }
code, kbd { font-family: var(--f-mono); font-size: .82em; }
kbd {
  display: inline-grid; place-items: center; min-width: 1.9em; height: 1.9em; padding: 0 .35em;
  border: 1px solid currentColor; border-bottom-width: 2px; border-radius: 6px; line-height: 1;
}
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[data-theme="tape"] :focus-visible { outline-color: var(--accent-ink); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: clamp(88px, 12vw, 168px); position: relative; }

/* film grain over everything (very light) */
body::after {
  content: ''; position: fixed; inset: -100px; z-index: 250; pointer-events: none;
  background: url('../img/grain.png'); opacity: var(--grain-o); mix-blend-mode: overlay;
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-37px, 21px); } 40% { transform: translate(24px, -46px); }
  60% { transform: translate(-12px, 63px); } 80% { transform: translate(51px, 9px); } 100% { transform: translate(0, 0); }
}

/* 4. Buttons, slugs, section heads --------------------------------------- */
.btn {
  --b-bg: transparent; --b-ink: var(--ink); --b-line: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 1.4em; border-radius: 999px; border: 1px solid var(--b-line);
  background: var(--b-bg); color: var(--b-ink); font-weight: 650; font-size: 1rem; letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap; position: relative; isolation: isolate; overflow: hidden;
  transition: background-color .3s, color .3s, border-color .3s, box-shadow .4s;
}
.btn svg { width: 1.15em; height: 1.15em; transition: transform .4s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn--accent { --b-bg: var(--accent); --b-ink: var(--on-accent); --b-line: var(--accent); }
.btn--accent:hover { box-shadow: 0 14px 40px -12px var(--glow), 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.btn--ghost:hover { --b-line: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.btn--sm { min-height: 42px; padding: 0 1.1em; font-size: .92rem; }
.btn:focus-visible { outline-offset: 4px; }

.slug {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: .4em .7em;
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px;
}
.slug::before { content: ''; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); flex: none; }
[data-theme="tape"] .slug::before { background: var(--accent); }
.slug__tc { color: var(--accent-ink); opacity: .9; }

.sec__head { display: grid; gap: 0; margin-bottom: clamp(36px, 5vw, 64px); }
.sec__title {
  font-size: clamp(38px, 6.4vw, 96px); line-height: .94; letter-spacing: -.045em; font-weight: 750;
  font-stretch: 84%; max-width: 15ch; text-wrap: balance;
}
.sec__title em { color: var(--accent-ink); }
.sec__lede { margin-top: 22px; max-width: 46ch; color: var(--muted); font-size: clamp(16px, 1.2vw, 19px); }
.split-line { padding-bottom: .06em; margin-bottom: -.06em; }

/* 5. Export intro --------------------------------------------------------- */
.render { display: none; }
.js.is-exporting { overflow: hidden; }
.js.is-exporting .render {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 400; cursor: progress;
}
.render__shutter { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(6, 1fr); }
.render__shutter i { background: var(--bg); margin-block: -1px; }
.render__panel {
  position: relative; z-index: 1; width: min(640px, calc(100vw - 32px)); padding: 26px 26px 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .6);
}
.render__top {
  display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.render__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); animation: blink 1s steps(2) infinite; }
.render__fmt { margin-left: auto; }
.render__name {
  margin: 18px 0 20px; font-family: var(--f-mono); font-weight: 500; letter-spacing: -.03em;
  font-size: clamp(22px, 5.4vw, 44px); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: clip;
}
.render__bar { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.render__bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); border-radius: inherit; }
.render__meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-family: var(--f-mono); font-size: 11px; color: var(--muted);
}
.render__pct { color: var(--accent-ink); font-weight: 700; min-width: 4ch; }
.render__eta { margin-left: auto; }
@keyframes blink { 50% { opacity: .15; } }

/* 6. Nav, progress, cursor ------------------------------------------------ */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 210; pointer-events: none; }
.progress__bar { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

.nav { position: fixed; inset: 0 0 auto; z-index: 200; transition: transform .5s var(--ease-out); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__inner {
  display: flex; align-items: center; gap: 18px; height: var(--nav-h);
  max-width: none; padding-inline: var(--gutter);
}
.nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--line);
}
.nav.is-solid::before { opacity: 1; }
.nav__logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-media); font-weight: 750; font-size: 19px; letter-spacing: -.03em; transition: color .3s; }
.nav.is-solid .nav__logo, .menu-open .nav__logo { color: var(--ink); }
.nav__mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.nav__mark svg { width: 14px; height: 14px; transform: translateX(1px); }
.nav__name span { color: var(--accent); }
.nav__tc {
  display: none; align-items: center; gap: 10px; margin-inline: auto; font-family: var(--f-mono); font-size: 12px;
  color: var(--on-media); font-variant-numeric: tabular-nums; transition: color .3s;
}
.nav.is-solid .nav__tc { color: var(--ink); }
.nav__tc-total { opacity: .5; }
.nav__rec { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); animation: blink 1.2s steps(2) infinite; }
.nav__menu { display: none; }
.nav__menu ul { display: flex; gap: 4px; }
.nav__menu a {
  display: block; padding: 8px 13px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 550;
  color: var(--on-media); transition: background-color .25s, color .3s;
}
.nav.is-solid .nav__menu a { color: var(--ink); }
.nav__menu a:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.nav__menu-cta { display: none; }
.nav__cta { display: none; }
.nav__toggle {
  margin-left: auto; display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 8px 0 16px;
  border-radius: 999px; border: 1px solid color-mix(in srgb, var(--on-media) 35%, transparent);
  background: color-mix(in srgb, #000 30%, transparent); color: var(--on-media); font-size: 14px; font-weight: 600;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.nav.is-solid .nav__toggle, .menu-open .nav__toggle { color: var(--ink); border-color: var(--line-2); background: var(--surface); }
.nav__toggle-lines { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); }
.nav__toggle-lines i { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--on-accent); border-radius: 2px; transition: transform .35s var(--ease-out); }
.nav__toggle-lines i:first-child { top: 11px; } .nav__toggle-lines i:last-child { top: 16px; }
.nav.is-open .nav__toggle-lines i:first-child { transform: translateY(2.5px) rotate(45deg); }
.nav.is-open .nav__toggle-lines i:last-child { transform: translateY(-2.5px) rotate(-45deg); }

@media (max-width: 899.98px) {
  .nav__menu {
    display: block; position: fixed; inset: 0; z-index: -1; padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
    background: var(--bg); visibility: hidden; opacity: 0; clip-path: inset(0 0 100% 0);
    transition: clip-path .6s var(--ease-out), opacity .3s, visibility 0s .6s; overflow-y: auto;
  }
  .nav.is-open .nav__menu { visibility: visible; opacity: 1; clip-path: inset(0 0 0 0); transition: clip-path .6s var(--ease-out), opacity .2s; }
  .nav__menu ul { flex-direction: column; gap: 2px; }
  .nav__menu a, .nav.is-solid .nav__menu a { color: var(--ink); font-size: clamp(32px, 9vw, 52px); font-weight: 750; letter-spacing: -.04em; font-stretch: 84%; padding: 6px 0; border-radius: 0; }
  .nav__menu a:hover { background: none; color: var(--accent-ink); }
  .nav__menu-cta { display: block; margin-top: 18px; }
  .nav__menu-cta a, .nav.is-solid .nav__menu-cta a { display: inline-flex; font-size: 18px; letter-spacing: 0; font-stretch: 100%; padding: 14px 22px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
}
@media (min-width: 900px) {
  .nav__tc { display: inline-flex; }
  .nav__menu { display: block; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
}
@media (min-width: 900px) and (max-width: 1180px) { .nav__tc { display: none; } .nav__menu { margin-left: auto; } }

.cursor { display: none; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor summary, .has-cursor [data-cursor] { cursor: none; }
.has-cursor input[type="text"], .has-cursor textarea, .has-cursor select { cursor: auto; }
.has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 260; pointer-events: none; transition: opacity .3s; }
.cursor__ph { position: absolute; left: 0; top: 0; transition: opacity .2s; }
.cursor__head { position: absolute; left: -7px; top: -1px; width: 14px; height: 11px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); transition: transform .25s var(--ease-out); }
.cursor__line { position: absolute; left: -1px; top: 6px; width: 2px; height: 24px; background: var(--accent); box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.cursor__razor { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; color: var(--accent); opacity: 0; transform: rotate(-90deg) scale(.5); transition: opacity .2s, transform .3s var(--ease-snap); filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.cursor.is-razor .cursor__ph { opacity: 0; }
.cursor.is-razor .cursor__razor { opacity: 1; transform: rotate(-90deg) scale(1); }
.cursor__label { position: absolute; left: 14px; top: 16px; padding: 7px 11px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 600 10.5px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; opacity: 0; transform: scale(.5); transform-origin: 0 0; transition: opacity .2s, transform .35s var(--ease-snap); }
.cursor.is-label .cursor__label { opacity: 1; transform: none; }
.cursor.is-link .cursor__head { transform: scale(1.5) translateY(2px); }
.cursor.is-hidden { opacity: 0; }

/* 7. Hero + showreel ------------------------------------------------------ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: var(--on-media); background: var(--monitor); overflow: hidden; }
.reel { position: absolute; inset: 0; outline: none; }
.motion-ok .hero { background: var(--bg); }
.reel__screen { position: absolute; inset: 0; overflow: hidden; background: var(--monitor); transform-origin: 50% 40%; }
.reel__poster, .reel__gl { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__gl { opacity: 0; transition: opacity .6s; }
.reel.is-gl .reel__gl { opacity: 1; }
.reel__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s; }
.reel__fallback.is-active { opacity: 1; }
.reel__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(5, 5, 6, .92) 0%, rgba(5, 5, 6, .55) 32%, rgba(5, 5, 6, 0) 62%),
    linear-gradient(to bottom, rgba(5, 5, 6, .55), rgba(5, 5, 6, 0) 22%),
    radial-gradient(120% 90% at 20% 100%, rgba(5, 5, 6, .5), transparent 60%);
}
.reel__now {
  position: absolute; top: calc(var(--nav-h) + 14px); left: var(--gutter); display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-media);
}
.reel__now-n { color: #0B0B0C; background: var(--accent); padding: 3px 6px; border-radius: 4px; font-weight: 700; }
.reel__now-c { opacity: .65; }
.reel__mode {
  position: absolute; top: calc(var(--nav-h) + 12px); right: var(--gutter); font-family: var(--f-mono); font-size: 12px; font-weight: 700;
  padding: 5px 10px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: var(--on-media); opacity: 0; transition: opacity .3s;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.reel__mode.is-on { opacity: 1; }
.reel__clips { display: none; }
.reel__transport {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
}
.reel__play {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--accent); color: #0B0B0C; transition: transform .3s var(--ease-out);
}
.reel__play:hover { transform: scale(1.08); }
.reel__play svg { width: 18px; height: 18px; }
.reel__icon-pause { display: none; }
.reel.is-playing .reel__icon-pause { display: block; }
.reel.is-playing .reel__icon-play { display: none; }
.reel__tc { flex: none; font-family: var(--f-mono); font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--on-media); }
.reel__tc-total { opacity: .5; }
.reel__track { position: relative; flex: 1; height: 44px; display: flex; align-items: center; min-width: 60px; }
.reel__scrub {
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; position: relative; z-index: 2;
  --p: 0%;
}
.reel__scrub::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(to right, var(--accent) var(--p), rgba(247, 244, 238, .25) var(--p));
}
.reel__scrub::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(247, 244, 238, .25); }
.reel__scrub::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
.reel__scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 3px; height: 22px; margin-top: -9px; border-radius: 2px; background: var(--on-media); box-shadow: 0 0 0 3px rgba(0,0,0,.35); }
.reel__scrub::-moz-range-thumb { width: 3px; height: 22px; border: 0; border-radius: 2px; background: var(--on-media); }
.reel__scrub:focus-visible { outline: none; }
.reel__scrub:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--accent); }
.reel__track:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.reel__ticks { position: absolute; left: 0; right: 0; top: 50%; height: 12px; margin-top: -6px; pointer-events: none; z-index: 1; }
.reel__ticks i { position: absolute; top: 0; width: 2px; height: 12px; margin-left: -1px; background: rgba(247, 244, 238, .55); border-radius: 1px; }
.reel__keys { display: none; gap: 4px; color: var(--on-media); opacity: .7; }
.reel__keys kbd { font-size: 10px; }

.hero__copy {
  position: relative; z-index: 2; width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: calc(var(--nav-h) + 60px) var(--gutter) 84px; pointer-events: none;
}
.hero__copy a, .hero__copy button { pointer-events: auto; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 18px; }
.hero__live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(212, 255, 63, .2); animation: blink 1.4s steps(2) infinite; }
.hero__title {
  font-size: clamp(40px, min(7.6vw, 10.5vh), 124px); line-height: .92; letter-spacing: -.05em; font-weight: 780; font-stretch: 82%;
  max-width: 11.5ch; text-wrap: balance;
}
.hero__title em { color: var(--accent); }
.hero__title .char { display: inline-block; will-change: transform; }
.hero__lede { margin-top: 22px; max-width: 44ch; font-size: clamp(16px, 1.25vw, 19px); color: rgba(247, 244, 238, .82); }
.hero__lede code { color: var(--accent); background: rgba(0, 0, 0, .35); padding: .12em .4em; border-radius: 5px; white-space: nowrap; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn--ghost { --b-ink: var(--on-media); --b-line: rgba(247, 244, 238, .4); }
.hero .btn--accent { --b-bg: var(--accent); --b-ink: #0B0B0C; }
.hero__hint { display: none; }

@media (max-width: 899.98px) {
  .reel__transport { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .hero__copy { padding-bottom: 128px; }
}
@media (max-width: 599.98px) {
  .hero__copy { padding-bottom: 122px; }
  .hero__title { font-size: clamp(46px, 13.4vw, 64px); }
  .hero__lede { font-size: 15.5px; margin-top: 16px; }
  .hero__cta { margin-top: 20px; }
  .hero__cta .btn { min-height: 48px; padding: 0 1.15em; font-size: .95rem; }
  .reel__tc-total { display: none; }
}
@media (max-width: 380px) {
  .hero__cta .btn--ghost { display: none; }
}
@media (min-width: 900px) {
  .reel__keys { display: inline-flex; }
  .reel__clips {
    display: grid; position: absolute; right: var(--gutter); bottom: 128px; z-index: 3; gap: 2px; width: 270px;
  }
  .reel__chap {
    position: relative; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; width: 100%;
    padding: 9px 12px; border: 0; border-radius: 8px; background: rgba(8, 8, 9, .38); color: rgba(247, 244, 238, .7);
    font-size: 13px; text-align: left; overflow: hidden; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transition: background-color .3s, color .3s;
  }
  .reel__chap::before { content: ''; position: absolute; inset: 0; background: rgba(247, 244, 238, .1); transform-origin: left; transform: scaleX(var(--cp, 0)); }
  .reel__chap > span { position: relative; }
  .reel__chap:hover { color: var(--on-media); background: rgba(8, 8, 9, .6); }
  .reel__chap.is-on { color: var(--on-media); }
  .reel__chap-n { font-family: var(--f-mono); font-size: 10.5px; opacity: .7; }
  .reel__chap.is-on .reel__chap-n { color: var(--accent); opacity: 1; }
  .reel__chap-t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .reel__chap-c { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; opacity: .65; }
  .hero__copy { padding-bottom: 104px; }
  .hero__copy > * { max-width: calc(100% - 300px); }
  .hero__hint {
    display: block; position: absolute; right: var(--gutter); bottom: 74px; z-index: 3; width: 270px; text-align: right;
    font-family: var(--f-mono); font-size: 10.5px; color: rgba(247, 244, 238, .6);
  }
  .hero__hint kbd { font-size: 9.5px; min-width: 1.8em; height: 1.8em; }
  .reel__transport { padding-bottom: 18px; padding-left: calc(var(--gutter) + 170px); }
}

/* 8. Marquee bands ------------------------------------------------------- */
.bands { position: relative; overflow: hidden; padding: 30px 0 38px; background: var(--bg); }
.band { width: 116%; margin-left: -8%; background: var(--accent); color: var(--on-accent); transform: rotate(-2.4deg); box-shadow: 0 18px 40px -20px rgba(0,0,0,.6); }
.band--b { margin-top: -10px; background: var(--c2); color: var(--sticker-ink); transform: rotate(1.8deg); }
.band__row { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.band--b .band__row { animation-direction: reverse; animation-duration: 40s; }
.bands.is-paused .band__row { animation-play-state: paused; }
.band span { display: flex; align-items: center; gap: 12px; padding: 13px 0 13px 26px; white-space: nowrap; font-weight: 800; font-size: clamp(19px, 2.5vw, 34px); letter-spacing: -.03em; font-stretch: 78%; text-transform: uppercase; }
.band--a span::after { content: '✦'; margin-left: 14px; }
.band--b span { font-stretch: 90%; text-transform: none; padding-right: 22px; }
.band svg { width: .95em; height: .95em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* 9. Intro + receipts ----------------------------------------------------- */
.intro__statement {
  font-size: clamp(28px, 4.3vw, 64px); line-height: 1.06; letter-spacing: -.035em; font-weight: 650; font-stretch: 90%;
  max-width: 21ch; text-wrap: pretty;
}
.intro__statement em { color: var(--accent-ink); }
.intro__statement mark {
  background: linear-gradient(transparent 12%, var(--accent) 12%, var(--accent) 92%, transparent 92%) no-repeat 0 0 / var(--mk, 100%) 100%;
  color: var(--on-accent); padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.intro__statement .word { display: inline-block; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: clamp(48px, 7vw, 96px); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg); padding: clamp(20px, 3vw, 36px); display: grid; gap: 6px; }
.stat__n { font-size: clamp(40px, 6vw, 84px); font-weight: 750; line-height: 1; letter-spacing: -.05em; font-stretch: 80%; font-variant-numeric: tabular-nums; }
.stat__n small { font-size: .5em; color: var(--accent-ink); margin-left: .05em; letter-spacing: -.02em; }
.stat__l { color: var(--muted); font-size: 15px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.clients { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 44px; }
.clients__label { font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.clients__list { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px; }
.mark { color: var(--muted); font-size: 20px; line-height: 1; transition: color .3s; }
.mark:hover { color: var(--ink); }
.mark--a { font-weight: 300; font-stretch: 145%; font-size: 20px; letter-spacing: -.02em; }
.mark--b { font-weight: 800; letter-spacing: .14em; font-size: 15px; font-stretch: 100%; }
.mark--c { font-family: var(--f-mono); font-size: 14px; letter-spacing: -.02em; }
.mark--d { font-weight: 700; font-stretch: 75%; font-size: 23px; letter-spacing: -.04em; }
.mark--e { font-weight: 500; letter-spacing: .32em; font-size: 12px; }
.mark--f { font-weight: 850; font-stretch: 55%; font-size: 26px; letter-spacing: .02em; }

/* 10. The grade ----------------------------------------------------------- */
.grade { position: relative; background: var(--bg-2); border-block: 1px solid var(--line); }
.grade__pin { padding-block: clamp(84px, 10vw, 130px) 56px; display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 32px); }
.grade__title { font-size: clamp(32px, 5vw, 72px); line-height: .95; letter-spacing: -.045em; font-weight: 750; font-stretch: 84%; max-width: 18ch; }
.grade__title em { color: var(--accent-ink); }
.grade__head .slug { margin-bottom: 14px; }
.grade__stage { display: grid; gap: 18px; }
.grade__monitor { display: grid; gap: 10px; min-width: 0; }
.grade__screen {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--monitor);
  box-shadow: 0 0 0 1px var(--line), 0 40px 90px -50px rgba(0, 0, 0, .7); touch-action: pan-y;
  --wipe: 50%;
}
.grade__img, .grade__gl, .grade__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.grade__img--final { clip-path: inset(0 0 0 var(--wipe)); }
.grade__video { opacity: 0; pointer-events: none; }
.grade__gl { opacity: 0; transition: opacity .6s; }
.grade.is-gl .grade__gl { opacity: 1; }
.grade__tag {
  position: absolute; top: 10px; z-index: 2; font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em;
  padding: 4px 7px; border-radius: 5px; background: rgba(0, 0, 0, .55); color: var(--on-media);
}
.grade__tag--l { left: 10px; } .grade__tag--r { right: 10px; background: var(--accent); color: #0B0B0C; }
.grade__screen.is-nowipe .grade__line, .grade__screen.is-nowipe .grade__tag { opacity: 0; }
.grade__tag, .grade__line { transition: opacity .3s; }
.grade__line { position: absolute; top: 0; bottom: 0; left: var(--wipe); width: 2px; margin-left: -1px; background: var(--on-media); z-index: 2; pointer-events: none; box-shadow: 0 0 12px rgba(0,0,0,.4); }
.grade__line i { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px; border-radius: 50%; background: var(--on-media); box-shadow: 0 4px 18px rgba(0,0,0,.35); }
.grade__line i::before, .grade__line i::after { content: ''; position: absolute; top: 12px; border: 5px solid transparent; }
.grade__line i::before { left: 4px; border-right-color: #0B0B0C; }
.grade__line i::after { right: 4px; border-left-color: #0B0B0C; }
.grade__wipe { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.grade__screen:has(.grade__wipe:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.grade.is-scrubbing .grade__wipe { pointer-events: none; }

.nodes { display: flex; align-items: center; gap: 0; font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; }
.node {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 7px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); transition: background-color .35s, color .35s, border-color .35s;
}
.node b { font-weight: 700; opacity: .6; }
.node + .node { margin-left: 22px; }
.node + .node::before { content: ''; position: absolute; right: 100%; top: 50%; width: 23px; height: 1px; background: var(--line-2); transition: background-color .35s; }
.node.is-on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.node.is-on::before { background: var(--accent); }
.node.is-on b { opacity: 1; }

.grade__side { display: grid; gap: 16px; align-content: start; min-width: 0; }
.steps { position: relative; display: grid; }
.step { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); transition: opacity .4s; }
.step__n { font-family: var(--f-mono); font-size: 11px; color: var(--accent-ink); padding-top: 4px; }
.step h3 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.step p { color: var(--muted); font-size: 14.5px; line-height: 1.45; margin-top: 2px; }
.scopes { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.scope { position: relative; margin: 0; border-radius: 10px; background: #050506; border: 1px solid var(--line); overflow: hidden; padding: 0 0 22px; }
.scope canvas { width: 100%; height: auto; aspect-ratio: 2 / 1; }
.scope--vec canvas, .scope--vec .scope__grat { aspect-ratio: 1; }
.scope--vec .scope__grat { position: absolute; top: 0; left: 0; width: 100%; height: auto; }
.scope__grat circle, .scope__grat path { fill: none; stroke: rgba(247, 244, 238, .16); stroke-width: .6; }
.scope__grat .scope__skin { stroke: rgba(255, 170, 120, .5); stroke-dasharray: 2 2; }
.scope--wave::before {
  content: ''; position: absolute; inset: 0 0 22px; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(247, 244, 238, .1) 0 1px, transparent 1px 25%);
}
.scope figcaption { position: absolute; left: 8px; bottom: 5px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(247, 244, 238, .55); }

.grade__play { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.looks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.looks legend { float: left; margin-right: 6px; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.look { position: relative; }
.look input, .chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.look span {
  display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600;
  transition: background-color .25s, color .25s, border-color .25s;
}
.look input:hover + span { border-color: var(--ink); }
.look input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.look input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.wheels { display: flex; align-items: center; gap: 14px; }
.wheel { position: relative; display: grid; justify-items: center; gap: 6px; }
.wheel::before {
  content: ''; width: 74px; height: 74px; border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--surface) 62%, transparent 64%),
    conic-gradient(from 90deg, #ff4d4d, #ffd34d, #6dff4d, #4dffe1, #4d6dff, #e14dff, #ff4d4d);
  box-shadow: 0 0 0 1px var(--line-2), inset 0 0 0 1px rgba(0,0,0,.4);
}
.wheel__puck {
  position: absolute; top: 37px; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; padding: 0; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--bg); cursor: grab; touch-action: none;
  transform: translate(calc(var(--px, 0) * 22px), calc(var(--py, 0) * 22px));
}
.wheel__puck::after { content: ''; position: absolute; inset: -14px; border-radius: 50%; }
.wheel__puck:active { cursor: grabbing; }
.wheel__l { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.wheels__reset { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: none; font-size: 13px; font-weight: 600; color: var(--muted); }
.wheels__reset:hover { color: var(--ink); border-color: var(--ink); }
.wheels__reset svg { width: 15px; height: 15px; }

@media (min-width: 900px) {
  .grade__stage { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 28px; align-items: start; }
  .pin-ok .grade__pin { min-height: 100vh; padding-block: calc(var(--nav-h) + 22px) 26px; justify-content: center; }
  .pin-ok .grade__screen { width: min(100%, calc((100vh - 360px) * 16 / 9)); }
  .pin-ok .grade__monitor { justify-items: start; }
  .pin-ok .step:not(.is-on) { opacity: .32; }
  .pin-ok .step:not(.is-on) p { display: none; }
}
@media (max-width: 899.98px) {
  .grade__side { gap: 12px; }
  .pin-ok .grade__pin { min-height: 100svh; padding-block: calc(var(--nav-h) + 6px) 14px; gap: 12px; justify-content: flex-start; }
  .pin-ok .grade__title { font-size: clamp(26px, 7.4vw, 44px); }
  .pin-ok .grade__head .slug { margin-bottom: 8px; }
  .pin-ok .steps { display: grid; }
  .pin-ok .step { grid-area: 1 / 1; border-top: 0; padding: 0; opacity: 0; visibility: hidden; }
  .pin-ok .step.is-on { opacity: 1; visibility: visible; }
  .pin-ok .scopes { grid-template-columns: 2fr 1fr; }
  .pin-ok .scope canvas { max-height: 92px; }
  .pin-ok .scope--vec canvas, .pin-ok .scope--vec .scope__grat { max-height: 92px; width: auto; margin-inline: auto; }
  .pin-ok .scope--vec .scope__grat { left: 50%; transform: translateX(-50%); }
  .pin-ok .looks { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); width: calc(100% + var(--gutter) * 2); }
  .pin-ok .looks::-webkit-scrollbar { display: none; }
  .pin-ok .look span { white-space: nowrap; padding: 7px 12px; font-size: 13px; }
  .pin-ok .looks legend { display: none; }
  .pin-ok .grade__play { gap: 12px; }
  .wheel::before { width: 58px; height: 58px; }
  .wheel__puck { top: 29px; transform: translate(calc(var(--px, 0) * 17px), calc(var(--py, 0) * 17px)); }
}
@media (max-width: 899.98px) and (max-height: 760px) {
  .pin-ok .wheels { display: none; }
  .pin-ok .grade__title { font-size: clamp(24px, 6.6vw, 36px); }
}

/* 11. Work grid + lightbox ------------------------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: none; font-weight: 600; font-size: 15px;
  transition: background-color .25s, color .25s, border-color .25s;
}
.filter sup { font-family: var(--f-mono); font-size: 10px; margin-left: 2px; color: var(--muted); vertical-align: super; line-height: 0; }
.filter:hover { border-color: var(--ink); }
.filter.is-on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.filter.is-on sup { color: inherit; }
.grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.card { display: block; min-width: 0; }
.card.is-hidden { display: none; }
.card__btn { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; border-radius: var(--radius); color: inherit; }
.card__media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--surface); isolation: isolate; }
.card--tall .card__media { aspect-ratio: 4 / 5; }
.card__media img, .card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), opacity .4s; }
.card__media video { opacity: 0; }
.card.is-playing .card__media video { opacity: 1; }
@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 34vw, 340px); grid-auto-flow: dense; gap: 16px; }
  .card--tall { grid-row: span 2; }
  .card--wide { grid-column: span 2; }
  .card__btn { position: relative; height: 100%; overflow: hidden; }
  .card__media, .card--tall .card__media { position: absolute; inset: 0; aspect-ratio: auto; }
  .card__media::after { background: linear-gradient(to top, rgba(5,5,6,.82), rgba(5,5,6,.2) 42%, transparent 62%); }
  .card__meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 20px 18px; color: var(--on-media); }
  .card .card__cat { color: var(--on-media); opacity: .8; }
  .card .card__stat { color: rgba(247, 244, 238, .78); }
  .card .card__tc { top: 12px; bottom: auto; }
}
@media (min-width: 1000px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(240px, 21vw, 330px); gap: 18px; }
}
.card__btn:hover .card__media img, .card__btn:hover .card__media video { transform: scale(1.04); }
.card__media::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); pointer-events: none;
}
.card__tc {
  position: absolute; right: 10px; bottom: 10px; font-family: var(--f-mono); font-size: 10.5px; padding: 4px 7px; border-radius: 5px;
  background: rgba(0, 0, 0, .6); color: var(--on-media); z-index: 1;
}
.card__media::before {
  content: ''; position: absolute; left: 12px; top: 12px; z-index: 1; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l10.5-6.5z' fill='%230B0B0C'/%3E%3C/svg%3E") center / 16px no-repeat;
  transform: scale(.6); opacity: 0; transition: transform .45s var(--ease-snap), opacity .3s;
}
.card__btn:hover .card__media::before, .card__btn:focus-visible .card__media::before { transform: scale(1); opacity: 1; }
@media (hover: none) { .card__media::before { transform: scale(.85); opacity: 1; } }
.card__meta { display: grid; gap: 3px; padding: 14px 4px 0; }
.card__cat { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); }
.card__title { font-size: clamp(20px, 1.8vw, 24px); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.card__stat { color: var(--muted); font-size: 14.5px; }
.card__btn:focus-visible { outline-offset: 6px; }

.lightbox {
  width: min(1180px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line);
  border-radius: 22px; background: var(--bg-2); color: var(--ink); overflow: auto;
}
.lightbox::backdrop { background: rgba(4, 4, 6, .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox[open] { animation: lb-in .5s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.lightbox__inner { position: relative; display: grid; }
.lightbox__media { background: #000; display: grid; place-items: center; }
.lightbox__video { width: 100%; max-height: 70dvh; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }
.lightbox.is-tall .lightbox__video { aspect-ratio: 4 / 5; max-height: 62dvh; object-fit: cover; }
.lightbox__text { padding: 24px; display: grid; gap: 14px; align-content: start; }
.lightbox__count { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.lightbox__body h3 { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -.035em; line-height: 1.05; font-weight: 750; font-stretch: 88%; }
.lightbox__body p { color: var(--muted); margin-top: 10px; }
.lightbox__body ul { margin-top: 16px; display: grid; gap: 6px; font-size: 15px; }
.lightbox__body li { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); }
.lightbox__body b { font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 3px; }
.lightbox__nav { display: flex; gap: 8px; }
.lightbox__btn, .lightbox__close {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center;
}
.lightbox__btn:hover, .lightbox__close:hover { border-color: var(--ink); }
.lightbox__btn svg, .lightbox__close svg { width: 20px; height: 20px; }
.lightbox__close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(0,0,0,.6); color: var(--on-media); border-color: rgba(255,255,255,.3); }
@media (min-width: 900px) {
  .lightbox__inner { grid-template-columns: 1.7fr 1fr; }
  .lightbox__media { min-height: 100%; }
  .lightbox__video { max-height: 80dvh; }
  .lightbox.is-tall .lightbox__video { max-height: 80dvh; aspect-ratio: 9 / 16; }
  .lightbox__text { padding: 34px 30px 28px; }
  .lightbox__nav { margin-top: auto; }
}

/* 12. Reframe ------------------------------------------------------------- */
.ratio { background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.ratio__wrap { display: grid; gap: 40px; align-items: center; }
.ratio__opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 30px; max-width: 460px; }
.ratio__opt {
  display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); text-align: left;
  transition: background-color .25s, color .25s, border-color .25s;
}
.ratio__opt b { font-family: var(--f-mono); font-size: 17px; font-weight: 600; letter-spacing: -.04em; }
.ratio__opt span { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.ratio__opt:hover { border-color: var(--ink); }
.ratio__opt.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ratio__opt.is-on span { color: inherit; opacity: .78; }
.ratio__stage { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
.ratio__stage::before {
  content: ''; position: absolute; inset: 0; border-radius: 22px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 10% 10%; background-position: -1px -1px; opacity: .55;
  -webkit-mask: radial-gradient(closest-side, #000 60%, transparent); mask: radial-gradient(closest-side, #000 60%, transparent);
}
.frame {
  position: relative; width: 100%; height: 56.25%; border-radius: 14px; overflow: hidden; background: var(--monitor);
  box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px -40px rgba(0, 0, 0, .7);
}
.frame__video { position: absolute; top: 0; left: 0; height: 100%; width: auto; max-width: none; aspect-ratio: 16 / 9; object-fit: cover; }
.frame__track {
  position: absolute; top: 30%; height: 62%; width: 18%; border: 1.5px dashed var(--accent); border-radius: 6px; left: 0;
  pointer-events: none; opacity: .9;
}
.frame__track b { position: absolute; top: -20px; left: -1px; font-family: var(--f-mono); font-size: 9px; letter-spacing: .06em; background: var(--accent); color: #0B0B0C; padding: 2px 5px; border-radius: 3px; }
.ui { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; color: #fff; }
.frame[data-ratio="16:9"] .ui--yt, .frame[data-ratio="9:16"] .ui--short, .frame[data-ratio="1:1"] .ui--feed, .frame[data-ratio="4:5"] .ui--feed { opacity: 1; }
.ui__bar { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.3); }
.ui__bar i { position: absolute; inset: 0 auto 0 0; width: 38%; background: var(--hot); border-radius: inherit; }
.ui__rail { position: absolute; right: 8px; bottom: 18%; display: grid; gap: 14px; }
.ui__rail svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.ui__cap { position: absolute; left: 10px; bottom: 7%; display: grid; gap: 5px; width: 55%; }
.ui__cap i { height: 7px; border-radius: 4px; background: rgba(255,255,255,.75); }
.ui__cap i:last-child { width: 65%; background: rgba(255,255,255,.5); }
.ui__safe { position: absolute; inset: 12% 16% 22% 8%; border: 1px dashed rgba(255,255,255,.22); border-radius: 6px; }
.ui__head { position: absolute; left: 10px; top: 10px; display: flex; align-items: center; gap: 8px; }
.ui__head i { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--hot)); }
.ui__head b { width: 70px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.8); }
.ui__foot { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 12px; }
.ui__foot svg { width: 20px; height: 20px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.frame__label { position: absolute; bottom: -2px; left: 0; right: 0; text-align: center; font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); }
@media (min-width: 900px) {
  .ratio__wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; }
  .ratio__opts { grid-template-columns: repeat(4, 1fr); max-width: none; }
}

/* 13. Retention graph (used in chapter 3) ------------------------------------------------------------ */
.graph { margin: 0; padding: clamp(14px, 2vw, 24px); border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.graph__svg { width: 100%; height: auto; overflow: visible; }
.graph__grid path { stroke: var(--line); stroke-width: 1; fill: none; }
.graph__y text, .graph__x text { font-family: var(--f-mono); font-size: 10px; fill: var(--muted); }
.graph__y text { text-anchor: end; }
.graph__x text { text-anchor: middle; }
.graph__area { fill: var(--accent); opacity: .12; }
.graph__them { fill: none; stroke: var(--muted); stroke-width: 2.5; stroke-dasharray: 6 6; opacity: .8; }
.graph__me { fill: none; stroke: var(--accent); stroke-width: 4.5; stroke-linecap: round; }
[data-theme="tape"] .graph__me { stroke: var(--accent-ink); }
.gmark line { stroke: var(--hot); stroke-width: 1.2; stroke-dasharray: 3 4; }
.gmark text { font-family: var(--f-mono); font-size: 10.5px; fill: var(--ink); }
.graph__dot { fill: var(--bg); stroke: var(--accent); stroke-width: 3.5; }
[data-theme="tape"] .graph__dot { stroke: var(--accent-ink); }
.graph__legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-size: 14px; }
.lg { display: inline-flex; align-items: center; gap: 8px; }
.lg::before { content: ''; width: 22px; height: 4px; border-radius: 2px; background: var(--accent); }
[data-theme="tape"] .lg--me::before { background: var(--accent-ink); }
.lg--them::before { background: repeating-linear-gradient(90deg, var(--muted) 0 5px, transparent 5px 9px); }
.graph__note { width: 100%; font-size: 12.5px; color: var(--muted); }

/* 14. The curve ----------------------------------------------------------- */
.curve__wrap { display: grid; gap: 44px; align-items: center; }
.eases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 30px; max-width: 520px; }
.ease {
  display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: none; text-align: left;
  transition: background-color .25s, color .25s, border-color .25s;
}
.ease b { font-size: 16px; letter-spacing: -.02em; }
.ease span { font-size: 13px; color: var(--muted); }
.ease:hover { border-color: var(--ink); }
.ease.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ease.is-on span { color: inherit; opacity: .7; }
.editor { position: relative; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); padding: 0 0 18px; overflow: hidden; max-width: 560px; width: 100%; margin-inline: auto; }
.editor__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
}
.editor__bar code { text-transform: none; color: var(--accent-ink); font-size: 11px; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.editor__box { position: relative; width: 100%; max-width: 400px; margin: 0 auto; aspect-ratio: 1; }
.editor__graph { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.editor__ax { font-family: var(--f-mono); font-size: 9px; fill: var(--muted); letter-spacing: .04em; }
.editor__grid path { stroke: var(--line); fill: none; }
.editor__arm { stroke: var(--muted); stroke-width: 1.5; }
.editor__path { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
[data-theme="tape"] .editor__path { stroke: var(--accent-ink); }
.editor__key { fill: var(--ink); }
.editor__head { fill: var(--hot); }
.handle {
  position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; padding: 0; border-radius: 50%;
  border: 3px solid var(--accent); background: var(--surface); cursor: grab; touch-action: none; z-index: 2;
}
[data-theme="tape"] .handle { border-color: var(--accent-ink); }
.handle::after { content: ''; position: absolute; inset: -12px; border-radius: 50%; }
.handle:active { cursor: grabbing; }
.onion { padding: 6px 18px 0; }
.onion__lane { position: relative; height: 56px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.onion__ghosts { position: absolute; inset: 0; }
.onion__ghosts i { position: absolute; top: 12px; width: 30px; height: 30px; margin-left: -15px; border-radius: 8px; border: 1.5px solid var(--accent); opacity: .35; }
[data-theme="tape"] .onion__ghosts i { border-color: var(--accent-ink); }
.onion__obj {
  position: absolute; top: 9px; left: 0; height: 36px; padding: 0 12px; display: grid; place-items: center; border-radius: 9px;
  background: var(--accent); color: var(--on-accent); font-weight: 750; font-size: 15px; letter-spacing: -.02em; transform: translateX(var(--ox, 12px));
}
@media (min-width: 900px) {
  .curve__wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
}

/* 15. Services ------------------------------------------------------------ */
.presets { display: grid; gap: 14px; }
.preset {
  position: relative; display: grid; gap: 12px; align-content: start; padding: 26px 24px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, transform .5s var(--ease-out);
}
.preset:hover { border-color: var(--line-2); transform: translateY(-4px); }
.preset__bar { position: absolute; inset: 0 0 auto; height: 3px; background: var(--surface-2); }
.preset__bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--fill, 0)); transition: transform 1.2s var(--ease-out); }
.preset:hover .preset__bar i { --fill: 1; }
.preset__title { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 720; letter-spacing: -.03em; line-height: 1.15; }
.preset__title svg { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--bg); color: var(--accent-ink); flex: none; }
.preset > p { color: var(--muted); font-size: 15.5px; }
.preset__spec { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.preset__spec span { font-family: var(--f-mono); font-size: 10.5px; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--ink); }
@media (min-width: 640px) { .presets { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .presets { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

/* 16. Process (horizontal pin on desktop) -------------------------------- */
.process { background: var(--bg-2); border-block: 1px solid var(--line); overflow: clip; }
.process__pin { padding-block: clamp(88px, 12vw, 150px); }
.flow { display: grid; gap: 22px; margin-top: 44px; padding-inline: var(--gutter); max-width: var(--wrap); margin-inline: auto; }
.flow__step { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 30px 24px 26px; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); }
.flow__file { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--f-mono); font-weight: 600; font-size: clamp(17px, 2vw, 26px); letter-spacing: -.05em; overflow-wrap: anywhere; color: var(--ink); }
.flow__file svg { flex: none; width: 1.5em; height: 1.5em; color: var(--accent-ink); }
.flow__step h3 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.035em; line-height: 1.05; font-weight: 750; font-stretch: 86%; }
.flow__step > p:not(.flow__file) { color: var(--muted); max-width: 44ch; }
.flow__tag { position: absolute; top: -14px; right: 18px; padding: 4px 12px 6px; border-radius: 9px; background: var(--sc); color: var(--sticker-ink); font: 700 12px/1.3 var(--f-mono); text-transform: uppercase; transform: rotate(4deg); }
.flow__step--last { border-color: var(--accent); }
@media (min-width: 700px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .pin-ok .process__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--nav-h) + 10px) 40px; }
  .pin-ok .flow { display: flex; width: max-content; max-width: none; gap: 28px; margin-inline: 0; padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); padding-right: 12vw; }
  .pin-ok .flow__step { width: min(500px, 40vw); min-height: min(52vh, 460px); justify-content: flex-end; }
}

/* 17. Rates --------------------------------------------------------------- */
.plans { display: grid; gap: 14px; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 30px 26px 26px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line);
}
.plan__name { font-family: var(--f-mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.plan__price { font-size: clamp(52px, 5.4vw, 76px); line-height: .9; font-weight: 780; letter-spacing: -.055em; font-stretch: 80%; }
.plan__cur { font-size: .45em; vertical-align: .9em; margin-right: .06em; letter-spacing: 0; }
.plan__price small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 8px; font-stretch: 100%; }
.plan__desc { color: var(--muted); }
.plan__list { display: grid; gap: 9px; padding-top: 16px; border-top: 1px solid var(--line); margin-bottom: 8px; }
.plan__list li { display: flex; gap: 10px; font-size: 15.5px; }
.plan__list li::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: .55em; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.plan .btn { margin-top: auto; }
.plan--featured { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.plan--featured .plan__name, .plan--featured .plan__desc, .plan--featured .plan__price small { color: inherit; opacity: .75; }
.plan--featured .plan__list { border-color: color-mix(in srgb, var(--on-accent) 25%, transparent); }
.plan--featured .plan__list li::before { background: var(--on-accent); }
.plan--featured .btn--accent { --b-bg: var(--on-accent); --b-ink: var(--accent); --b-line: var(--on-accent); }
[data-theme="tape"] .plan--featured .btn--accent { --b-ink: var(--on-accent); --b-bg: var(--ink); --b-line: var(--ink); }
.plan__badge {
  position: absolute; top: 18px; right: 18px; font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em;
  padding: 5px 9px; border-radius: 999px; background: var(--on-accent); color: var(--accent);
}
[data-theme="tape"] .plan__badge { background: var(--ink); color: var(--bg); }
.rates__note { margin-top: 22px; color: var(--muted); font-size: 15px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; } .plan--featured { transform: translateY(-14px); } }

/* 18. Client notes -------------------------------------------------------- */
.notes { background: var(--bg-2); border-block: 1px solid var(--line); }
.notes__wrap { display: grid; gap: 40px; }
.notes__bar { position: relative; height: 34px; margin-top: 34px; max-width: 520px; }
.notes__bar::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 3px; background: var(--line-2); }
.notes__fill { position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; width: 100%; border-radius: 3px; background: var(--accent); transform-origin: left; transform: scaleX(var(--np, 1)); }
.notes__bar b { position: absolute; left: var(--at); top: 4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--hot); box-shadow: 0 0 0 3px var(--bg-2); }
.comments { display: grid; gap: 14px; }
.comment { display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 22px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.comment__av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--a); color: #0B0B0C; font-weight: 800; font-size: 15px; letter-spacing: -.02em; }
.comment__who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 14px; color: var(--muted); }
.comment__who b { color: var(--ink); font-size: 15.5px; }
.comment__tc { font-family: var(--f-mono); font-size: 11px; color: var(--accent-ink); }
.comment blockquote { margin-top: 8px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.32; letter-spacing: -.02em; font-weight: 550; }
.comment blockquote em { color: var(--accent-ink); }
@media (min-width: 900px) {
  .notes__wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
  .notes__head { position: sticky; top: calc(var(--nav-h) + 40px); }
  .comments { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .comment:nth-child(even) { transform: translateY(40px); }
}

/* 19. FAQ ----------------------------------------------------------------- */
.faq__wrap { display: grid; gap: 34px; }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none;
  font-size: clamp(18px, 1.7vw, 23px); font-weight: 650; letter-spacing: -.025em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); transition: background-color .3s, transform .5s var(--ease-out); }
.qa summary i::before, .qa summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease-out); }
.qa summary i::after { transform: rotate(90deg); }
.qa[open]:not(.is-closing) summary i { background: var(--accent); color: var(--on-accent); border-color: var(--accent); transform: rotate(180deg); }
.qa[open]:not(.is-closing) summary i::after { transform: rotate(0); }
.qa summary:hover { color: var(--accent-ink); }
.qa__body { overflow: hidden; }
.qa__body p { padding-bottom: 24px; color: var(--muted); max-width: 60ch; }
@media (min-width: 900px) { .faq__wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; } }

/* 20. Contact, brief, footer ---------------------------------------------- */
.contact { background: var(--cta-bg); color: var(--cta-ink); padding-top: clamp(88px, 12vw, 160px); overflow: hidden; position: relative; }
.contact ::selection { background: var(--cta-ink); color: var(--cta-bg); }
.contact .slug { color: var(--cta-ink); opacity: .75; }
.contact .slug::before { background: var(--cta-ink); }
.contact .slug__tc { color: inherit; }
.contact__wrap { display: grid; gap: 44px; }
.contact__title { font-size: clamp(48px, 9vw, 150px); line-height: .88; letter-spacing: -.055em; font-weight: 800; font-stretch: 80%; }
.contact__title em { color: inherit; }
.contact__title .char { display: inline-block; }
.contact__lede { margin-top: 22px; max-width: 40ch; font-size: clamp(17px, 1.3vw, 20px); opacity: .85; }
.contact__avail { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 8px 14px; border-radius: 999px; border: 1px solid currentColor; font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.contact__live { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blink 1.3s steps(2) infinite; }
.contact__links { display: grid; gap: 4px; margin-top: 34px; }
.contact__links a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; font-size: clamp(18px, 1.6vw, 22px); font-weight: 650; text-decoration: none; letter-spacing: -.02em; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 2px; transition: background-size .4s var(--ease-out); }
.contact__links a:hover { background-size: 100% 2px; }
.contact__links svg { width: 20px; height: 20px; }
.contact a:focus-visible, .contact button:focus-visible, .contact input:focus-visible + span, .contact select:focus-visible, .contact textarea:focus-visible { outline-color: var(--cta-ink); }
.brief .btn:focus-visible, .brief input:focus-visible + span, .brief select:focus-visible, .brief textarea:focus-visible, .brief input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.brief {
  position: relative; display: grid; gap: 22px; align-content: start; padding: 22px 22px 26px; border-radius: 24px;
  background: var(--bg); color: var(--ink); box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .55);
}
.brief__top { display: flex; align-items: center; gap: 6px; margin: -4px 0 -6px; }
.brief__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.brief__dot:first-child { background: var(--hot); }
.brief__file { margin-left: auto; font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); }
.brief__title { font-size: 26px; letter-spacing: -.035em; font-weight: 750; }
.brief__group { display: grid; gap: 10px; }
.brief__group legend, .brief__label { font-size: 14.5px; font-weight: 650; margin-bottom: 10px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
.brief__label { margin-bottom: 0; }
.brief__out { font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; color: var(--accent-ink); }
.brief__opt { color: var(--muted); font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14.5px; font-weight: 600; transition: background-color .25s, color .25s, border-color .25s; }
.chip input:hover + span { border-color: var(--ink); }
.chip input:checked + span { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.brief__range { width: 100%; accent-color: var(--accent); height: 32px; }
[data-theme="tape"] .brief__range { accent-color: var(--accent-ink); }
.brief__select, .brief__note {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 16px;
}
.brief__select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.brief__note { resize: vertical; min-height: 64px; }
.brief__note::placeholder { color: var(--muted); opacity: .85; }
.brief__send { width: 100%; }
.brief__small { font-size: 13px; color: var(--muted); text-align: center; margin-top: -8px; }
@media (min-width: 900px) {
  .contact__wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: start; }
  .brief { padding: 26px 30px 30px; margin-top: 40px; }
}

.footer { margin-top: clamp(80px, 10vw, 140px); }
.footer__file {
  font-family: var(--f-mono); font-weight: 600; font-size: clamp(26px, 7.6vw, 150px); line-height: 1; letter-spacing: -.07em;
  white-space: nowrap; text-align: center; padding-inline: 8px; overflow: hidden;
}
.footer__name { display: inline-block; transition: opacity .3s; }
.footer__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 22px; padding-bottom: calc(80px + env(safe-area-inset-bottom));
  margin-top: 26px; border-top: 1px solid color-mix(in srgb, var(--cta-ink) 25%, transparent); font-size: 14px;
}
.footer__row a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.footer__top { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 650; }
.footer__top svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .footer__row { padding-left: calc(var(--gutter) + 160px); } }

/* 21. DEMO ONLY theme switcher -------------------------------------------- */
.demo-switch { position: fixed; left: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 240; }
.demo-switch fieldset {
  display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px;
  background: rgba(14, 14, 16, .82); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
}
.demo-switch__label { float: left; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: #E9E6E0; margin-right: 4px; }
.demo-switch__opt { position: relative; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; box-shadow: 0 0 0 2px rgba(255,255,255,.25); transition: box-shadow .2s, transform .2s; }
.demo-switch__opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.demo-switch__opt:has(input:checked) { box-shadow: 0 0 0 2px #fff; transform: scale(1.08); }
.demo-switch__opt:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 3px; }
.demo-switch__opt--darkroom { background: linear-gradient(135deg, #0B0B0C 50%, #D4FF3F 50%); }
.demo-switch__opt--tape { background: linear-gradient(135deg, #EEE6D3 50%, #C23820 50%); }
.demo-switch__opt--neon { background: linear-gradient(135deg, #1A21CF 50%, #E3FF3B 50%); }

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: vt-reveal .7s var(--ease-out); }
@keyframes vt-reveal { from { clip-path: circle(0 at var(--vt-x, 30px) var(--vt-y, 95%)); } to { clip-path: circle(var(--vt-r, 150vmax) at var(--vt-x, 30px) var(--vt-y, 95%)); } }

/* 22. Motion start states + reduced motion -------------------------------- */
.motion-ok [data-hero-fade], .motion-ok .hero__eyebrow { opacity: 0; }
.motion-ok .hero__title { visibility: hidden; }
.motion-ok [data-split] { opacity: 0; }
.motion-ok [data-reveal] { opacity: 0; }
.motion-ok [data-scramble] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  body::after { animation: none; }
  .band__row, .badge__ring, .intro__arrow, .vnote__wave i, .wave i { animation: none !important; }
}

/* small phones: keep the node graph on one line */
@media (max-width: 420px) {
  .nodes { font-size: 9.5px; letter-spacing: .02em; }
  .node { padding: 5px 6px; gap: 4px; }
  .node + .node { margin-left: 10px; }
  .node + .node::before { width: 11px; }
}
[data-theme="tape"] .plan--featured .plan__name, [data-theme="tape"] .plan--featured .plan__desc, [data-theme="tape"] .plan--featured .plan__price small { opacity: 1; }
@media (max-width: 480px) { .render__fmt { display: none; } .render__eta { margin-left: 0; } }

/* ==========================================================================
   23. Story: stickers, HUD, hero extras, intro, chapters
   ========================================================================== */
.sticker {
  display: inline-block; padding: .28em .62em .36em; border-radius: 11px; background: var(--sc, var(--c1)); color: var(--sticker-ink);
  font: 700 clamp(14px, 1.15vw, 16px)/1.2 var(--f-mono); letter-spacing: -.01em; text-transform: uppercase; transform: rotate(var(--r, -4deg));
  clip-path: polygon(0 0, 100% 0, 98.5% 25%, 100% 50%, 98.5% 75%, 100% 100%, 0 100%, 1.5% 75%, 0 50%, 1.5% 25%);
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(0, 0, 0, .06); max-width: 100%;
}
.hand { font-family: var(--f-mono); font-weight: 500; font-size: .78em; line-height: 1.4; color: var(--accent-ink); letter-spacing: -.01em; }
.stamp {
  display: inline-block; padding: .1em .35em; border: 4px solid var(--hot); border-radius: 10px; color: var(--hot);
  font: 800 clamp(30px, 4.4vw, 64px)/1 var(--f-sans); font-stretch: 78%; letter-spacing: -.03em; transform: rotate(-9deg);
}
[data-theme="neon"] .stamp { border-color: var(--c2); color: var(--c2); }

/* floating file badge */
.hud {
  position: fixed; left: 50%; bottom: 16px; z-index: 190; display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px;
  border-radius: 999px; background: rgba(11, 11, 13, .88); color: #F2EFE9; border: 1px solid rgba(255, 255, 255, .14);
  font: 500 11.5px/1 var(--f-mono); white-space: nowrap; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 14px 40px -14px rgba(0, 0, 0, .6); transform: translate(-50%, 160%); opacity: 0; transition: transform .6s var(--ease-out), opacity .4s; pointer-events: none;
}
.hud.is-on { transform: translate(-50%, 0); opacity: 1; }
.hud__n { padding: 6px 9px; border-radius: 999px; background: #D4FF3F; color: #0B0B0C; font-weight: 700; }
.hud__t { font-family: var(--f-sans); font-size: 13.5px; font-weight: 650; }
.hud__file { display: inline-flex; align-items: center; gap: 6px; color: #D4FF3F; }
.hud__file svg { width: 15px; height: 15px; }
.hud__rt { opacity: .7; font-variant-numeric: tabular-nums; }
.hud__bar { width: 54px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.hud__bar i { display: block; height: 100%; background: #D4FF3F; transform-origin: left; transform: scaleX(0); }
@media (max-width: 899.98px) {
  .hud { bottom: auto; top: 10px; transform: translate(-50%, -170%); padding-right: 12px; }
  .hud__t, .hud__bar { display: none; }
}

/* hero extras */
.hero__sticker { display: none; }
.badge { position: absolute; z-index: 4; right: var(--gutter); top: calc(var(--nav-h) + 40px); width: 96px; height: 96px; display: grid; place-items: center; color: var(--on-media); text-decoration: none; }
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.badge__ring text { font: 700 10.5px var(--f-mono); letter-spacing: .08em; fill: currentColor; }
.badge__core { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #0B0B0C; display: grid; place-items: center; transition: transform .4s var(--ease-snap); }
.badge__core svg { width: 20px; height: 20px; }
.badge:hover .badge__core { transform: scale(1.15) rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 900px) {
  .badge { width: 132px; height: 132px; top: calc(var(--nav-h) + 30px); }
  .badge__ring text { font-size: 10px; }
  .badge__core { width: 58px; height: 58px; }
  .hero__sticker { display: inline-block; position: absolute; z-index: 4; right: calc(var(--gutter) + 10px); bottom: 398px; }
}
@media (max-width: 599.98px) { .badge { top: calc(var(--nav-h) + 34px); width: 84px; height: 84px; } .badge__ring text { font-size: 11.5px; } .badge__core { width: 38px; height: 38px; } }

/* intro */
.intro { overflow: clip; }
.intro .sticker--wave { margin-bottom: 26px; font-size: clamp(15px, 1.4vw, 19px); }
.intro__statement { font-size: clamp(30px, 4.6vw, 70px); max-width: 20ch; }
.intro__go { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: clamp(40px, 6vw, 80px); max-width: 900px; }
.intro__how { font-size: clamp(18px, 1.6vw, 22px); max-width: 32ch; color: var(--muted); }
.intro__how .hand { display: block; margin-top: 10px; font-size: 1.35em; }
.intro__arrow { flex: none; color: var(--accent-ink); animation: nudge 1.6s var(--ease-out) infinite; }
.intro__arrow svg { width: 46px; height: 92px; }
@keyframes nudge { 50% { transform: translateY(12px); } }

/* receipts */
.receipts .stats { margin-top: 0; }
.receipts .stat { position: relative; }
.receipts .stat::before { content: ''; display: block; width: 40px; height: 7px; border-radius: 4px; background: var(--sc); margin-bottom: 14px; }
.receipts .stat__n small { color: inherit; }

/* chapters: shared */
.chap { position: relative; overflow: clip; border-block: 1px solid var(--line); }
.chap--dump, .chap--sound { background: var(--bg); }
.chap--hook, .chap--post { background: var(--bg-2); }
.chap__pin { position: relative; display: flex; flex-direction: column; padding-block: clamp(80px, 10vw, 120px) 48px; }
.chap__head { position: relative; z-index: 4; }
.chap__num { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; font: 600 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.chap__num b { display: inline-grid; place-items: center; min-width: 36px; height: 28px; padding: 0 7px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 700; letter-spacing: 0; }
.chap__num .chap__num-2 { display: none; }
.pin-ok .chap--dump.is-cut .chap__num > :nth-child(-n+2) { display: none; }
.pin-ok .chap--dump.is-cut .chap__num b.chap__num-2 { display: inline-grid; }
.pin-ok .chap--dump.is-cut .chap__num span.chap__num-2 { display: inline; }
.chap__title { font-size: clamp(34px, 6vw, 92px); line-height: .92; letter-spacing: -.045em; font-weight: 780; font-stretch: 82%; max-width: 15ch; text-wrap: balance; }
.chap__title em { color: var(--accent-ink); }
.chap__title--swap > span { display: block; }
.chap__title--swap > span + span { margin-top: .2em; }
.grade__head { position: relative; }
.grade__sticker { position: absolute; right: var(--gutter); top: 10px; }
@media (max-width: 899.98px) { .grade__sticker { display: none; } }

.pin-ok .chap__pin { min-height: 100vh; min-height: 100svh; padding-block: calc(var(--nav-h) + 14px) 24px; }
.pin-ok .chap__title--swap { display: grid; }
.pin-ok .chap__title--swap > span { grid-area: 1 / 1; margin: 0; }
.pin-ok .chap__title--swap > span + span { opacity: 0; }
@media (max-width: 899.98px) {
  .pin-ok .chap__pin { padding-top: 64px; }
  .pin-ok .chap__title { font-size: clamp(30px, 8.6vw, 46px); }
  .chap__num { font-size: 11px; margin-bottom: 8px; }
}

/* phone mock */
.phone { position: relative; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: var(--monitor); box-shadow: 0 0 0 6px #19191c, 0 0 0 7px rgba(255,255,255,.14), 0 40px 80px -30px rgba(0,0,0,.75); isolation: isolate; }
.phone__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 01/02 the dump → the cut ---------- */
.dump { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; margin-top: 28px; padding-inline: var(--gutter); max-width: var(--wrap); margin-inline: auto; width: 100%; }
.dump__tiles { position: absolute; inset: 0; pointer-events: none; }
.tile { position: absolute; left: 0; top: 0; width: var(--tw, 118px); height: var(--th, 66px); border-radius: 7px; background: #1d1d20 center / cover no-repeat; box-shadow: 0 12px 26px -12px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.14); overflow: hidden; will-change: transform; }
.tile::after { content: attr(data-n); position: absolute; left: 5px; bottom: 4px; font: 600 8px/1 var(--f-mono); color: #fff; text-shadow: 0 1px 3px #000; }
.tile--a { background-image: url('../img/surf-640.webp'); } .tile--b { background-image: url('../img/latte-640.webp'); }
.tile--c { background-image: url('../img/dance-red-640.webp'); } .tile--d { background-image: url('../img/wedding-640.webp'); }
.tile--e { background-image: url('../img/skate-640.webp'); } .tile--f { background-image: url('../img/dance-purple-640.webp'); }
.tile--g { background-image: url('../img/fireworks-640.webp'); } .tile--h { background-image: url('../img/grade-log-640.webp'); }
.tile.is-keep { box-shadow: 0 12px 26px -12px rgba(0,0,0,.7), 0 0 0 2px var(--accent); }
.dump__meter { display: grid; gap: 4px; padding: 16px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.dump__meter-l, .dump__meter-s { font: 500 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.dump__meter b { font: 600 clamp(34px, 5.6vw, 84px)/1 var(--f-mono); letter-spacing: -.06em; font-variant-numeric: tabular-nums; color: var(--ink); }
.vnote { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px 12px; max-width: 360px; padding: 12px 16px 14px 12px; border-radius: 22px 22px 22px 6px; background: var(--c3); color: var(--sticker-ink); box-shadow: 0 20px 40px -20px rgba(0,0,0,.7); }
.vnote__btn { width: 38px; height: 38px; border-radius: 50%; background: var(--sticker-ink); color: var(--c3); display: grid; place-items: center; }
.vnote__btn svg { width: 15px; height: 15px; transform: translateX(1px); }
.vnote__wave { display: flex; align-items: center; gap: 3px; height: 30px; }
.vnote__wave i { flex: 1; height: 100%; border-radius: 2px; background: var(--sticker-ink); transform: scaleY(.3); animation: vbar 1.1s ease-in-out infinite alternate; }
.vnote__wave i:nth-child(3n) { animation-delay: -.3s; } .vnote__wave i:nth-child(3n+1) { animation-delay: -.7s; } .vnote__wave i:nth-child(4n) { animation-duration: .8s; }
.is-offscreen .vnote__wave i, .is-offscreen .wave i { animation-play-state: paused; }
@keyframes vbar { to { transform: scaleY(.95); } }
.vnote__t { font: 600 11px/1 var(--f-mono); }
.vnote figcaption { grid-column: 1 / -1; font: 600 clamp(15px, 1.3vw, 18px)/1.25 var(--f-sans); }
.dump__razor { display: none; }
.dump__stamp { display: none; }
.pin-ok .dump { display: block; flex: 1; min-height: 0; margin-top: 10px; padding: 0; max-width: none; }
.pin-ok .dump__meter { position: absolute; right: var(--gutter); top: 0; z-index: 3; }
.pin-ok .vnote { position: absolute; left: var(--gutter); bottom: 4%; z-index: 3; }
.pin-ok .dump__razor { display: block; position: absolute; top: 4%; bottom: 4%; left: 0; width: 2px; z-index: 4; background: var(--hot); opacity: 0; box-shadow: 0 0 18px var(--hot); }
.pin-ok .dump__razor i { position: absolute; top: -8px; left: -8px; width: 18px; height: 14px; background: var(--hot); clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }
.pin-ok .dump__sticker { position: absolute; z-index: 5; right: 8%; bottom: 10%; opacity: 0; }
.pin-ok .dump__stamp { display: inline-block; position: absolute; z-index: 5; right: var(--gutter); top: 30%; opacity: 0; }
.pin-ok .dump__meter-s { display: none; }
@media (max-width: 899.98px) {
  .pin-ok .dump__meter { right: auto; left: var(--gutter); top: auto; bottom: 2%; padding: 10px 14px; }
  .pin-ok .vnote { left: var(--gutter); right: var(--gutter); top: 0; bottom: auto; max-width: none; padding: 8px 12px 10px 8px; gap: 6px 10px; }
  .pin-ok .vnote figcaption { font-size: 15px; }
  .pin-ok .vnote__btn { width: 30px; height: 30px; }
  .pin-ok .vnote__wave { height: 22px; }
  .pin-ok .dump__sticker { right: var(--gutter); bottom: 22%; }
  .pin-ok .dump__stamp { top: auto; bottom: 3%; font-size: 30px; }
}

/* ---------- 03 the hook ---------- */
.hookx { position: relative; display: grid; gap: 28px; margin-top: 28px; align-items: center; }
.phone--hook { width: min(240px, 60vw); justify-self: center; }
.phone__count { position: absolute; inset: 0; display: grid; place-items: center; font: 800 clamp(56px, 7vw, 104px)/1 var(--f-sans); font-stretch: 78%; letter-spacing: -.05em; color: #fff; text-shadow: 0 6px 30px rgba(0,0,0,.6); }
.phone__count span { display: inline-block; }
.phone__cap { position: absolute; left: 10px; right: 10px; bottom: 14px; padding: 6px 8px; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; font: 700 13px/1.2 var(--f-sans); text-align: center; }
.graph__lose { font: 600 12px var(--f-mono); fill: var(--muted); }
.slams { display: none; }
.hookx__stats { display: grid; gap: 8px; }
.hookx__stats li { display: flex; align-items: baseline; gap: 12px; color: var(--muted); padding-top: 8px; border-top: 1px solid var(--line); }
.hookx__stats b { font-size: clamp(28px, 3vw, 42px); color: var(--ink); font-weight: 780; letter-spacing: -.04em; font-stretch: 80%; min-width: 3.3ch; font-variant-numeric: tabular-nums; }
.hookx__sticker { justify-self: start; }
@media (min-width: 900px) {
  .hookx { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "phone graph" "phone stats"; column-gap: 56px; }
  .phone--hook { grid-area: phone; width: auto; height: min(58vh, 520px); align-self: center; }
  .hookx__graph { grid-area: graph; }
  .hookx__stats { grid-area: stats; grid-template-columns: repeat(3, 1fr); }
  .hookx__sticker { position: absolute; right: 0; top: -18px; z-index: 5; }
}
.pin-ok .slams { display: grid; position: absolute; inset: 0; z-index: 6; place-items: center; pointer-events: none; }
.pin-ok .slams li { grid-area: 1 / 1; padding: .02em .22em .08em; border-radius: 18px; background: var(--sc); color: var(--sticker-ink); font: 800 clamp(64px, 13vw, 210px)/1 var(--f-sans); font-stretch: 75%; letter-spacing: -.05em; text-transform: uppercase; opacity: 0; box-shadow: 0 30px 80px -30px rgba(0,0,0,.7); }
@media (max-width: 899.98px) {
  .pin-ok .hookx { flex: 1; align-content: start; gap: 14px; margin-top: 14px; padding-inline: var(--gutter); }
  .pin-ok .phone--hook { position: absolute; right: var(--gutter); top: -96px; width: 92px; border-radius: 16px; z-index: 5; box-shadow: 0 0 0 4px #19191c, 0 20px 40px -16px rgba(0,0,0,.7); }
  .pin-ok .phone__count { font-size: 40px; }
  .pin-ok .phone__cap { display: none; }
  .pin-ok .graph { padding: 10px; }
  .pin-ok .graph__legend { font-size: 12.5px; margin-top: 8px; }
  .pin-ok .graph__note { display: none; }
  .pin-ok .hookx__stats li { font-size: 14px; padding-top: 6px; }
  .pin-ok .hookx__stats b { font-size: 26px; }

}

/* ---------- 05 sound & captions ---------- */
.sound { position: relative; display: grid; gap: 28px; margin-top: 28px; align-items: center; }
.phone--sound { width: min(250px, 62vw); justify-self: center; }
.caps { position: absolute; left: 8px; right: 8px; bottom: 22%; display: grid; place-items: center; text-align: center; }
.caps__page { grid-area: 1 / 1; display: block; }
.cap { display: inline-block; padding: 0 .12em; font: 800 clamp(22px, 2.4vw, 30px)/1.1 var(--f-sans); font-stretch: 80%; text-transform: uppercase; letter-spacing: -.02em; color: #fff; -webkit-text-stroke: 1px #000; paint-order: stroke fill; text-shadow: 0 3px 0 #000, 0 6px 18px rgba(0,0,0,.6); }
.cap.is-hot { background: var(--c1); color: #121212; -webkit-text-stroke: 0; text-shadow: none; border-radius: 6px; transform: rotate(-3deg); }
.caps__page + .caps__page { opacity: 0; }
.sound__mix { display: grid; gap: 22px; }
.wave { display: flex; align-items: center; gap: 3px; height: clamp(110px, 18vh, 200px); padding: 0 4px; }
.wave i { flex: 1; min-width: 2px; height: 100%; border-radius: 3px; background: linear-gradient(var(--c2), var(--accent)); transform: scaleY(var(--h, .3)); }
.sound__lufs { font: 500 13px/1.3 var(--f-mono); color: var(--muted); }
.sound__lufs b { color: var(--ink); font-size: 18px; }
.sfx { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) {
  .sound { grid-template-columns: auto minmax(0, 1fr); column-gap: 64px; }
  .phone--sound { width: auto; height: min(62vh, 560px); }
}
.pin-ok .caps__page { opacity: 0; }
.pin-ok .sfx li { position: absolute; z-index: 6; opacity: 0; }
.pin-ok .sfx li:nth-child(1) { left: 4%; top: 6%; } .pin-ok .sfx li:nth-child(2) { left: 30%; top: 70%; }
.pin-ok .sfx li:nth-child(3) { right: 6%; top: 4%; } .pin-ok .sfx li:nth-child(4) { right: 12%; top: 60%; }
.pin-ok .sfx li:nth-child(5) { left: 44%; top: 2%; }
@media (max-width: 899.98px) {
  .pin-ok .sound { flex: 1; align-content: start; gap: 12px; margin-top: 12px; }
  .pin-ok .phone--sound { width: auto; height: min(42vh, 360px); border-radius: 18px; }
  .pin-ok .wave { height: 74px; }
  .pin-ok .sound__lufs { font-size: 11.5px; }
  .pin-ok .sfx li { font-size: 14px; }
  .pin-ok .sfx li:nth-child(1) { left: 0; top: 4%; } .pin-ok .sfx li:nth-child(2) { left: 2%; top: 46%; }
  .pin-ok .sfx li:nth-child(3) { right: 0; top: 12%; } .pin-ok .sfx li:nth-child(4) { right: 0; top: 38%; }
  .pin-ok .sfx li:nth-child(5) { left: 30%; top: 64%; }
}

/* ---------- 06 every platform (pinned ratio) ---------- */
.ratio.chap { background: var(--bg-2); }
.ratio__stage { position: relative; }
.ratio__sticker { position: absolute; z-index: 5; left: -4%; bottom: 6%; }
.pin-ok .ratio { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.pin-ok .ratio .ratio__wrap { padding-block: calc(var(--nav-h) + 10px) 30px; }
@media (max-width: 899.98px) {
  .ratio .ratio__wrap { gap: 18px; padding-block: 90px 50px; }
  .pin-ok .ratio .ratio__wrap { padding-block: 64px 14px; }
  .pin-ok .ratio .sec__lede { display: none; }
  .ratio__opts { margin-top: 16px; }
  .ratio__stage { max-width: min(100%, 46vh); }
  .ratio__sticker { left: auto; right: 0; bottom: -2%; }
}

/* ---------- 07 export & post ---------- */
.postx { position: relative; display: grid; gap: 26px; margin-top: 28px; align-items: center; justify-items: center; }
.exportbar { width: min(460px, 100%); padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.exportbar__top { display: flex; align-items: center; gap: 8px; font: 500 12px/1.3 var(--f-mono); color: var(--muted); }
.exportbar__top b { color: var(--ink); font-weight: 600; }
.exportbar__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); animation: blink 1s steps(2) infinite; }
.exportbar__bar { height: 8px; margin: 14px 0 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.exportbar__bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(1); }
.exportbar__pct { display: flex; justify-content: space-between; font: 500 11px/1 var(--f-mono); color: var(--muted); }
.exportbar__pct span:first-child { color: var(--accent-ink); font-weight: 700; }
.phone--post { width: min(260px, 64vw); }
.post__ui { position: absolute; inset: 0; color: #fff; font: 600 12px/1.3 var(--f-sans); }
.post__who { position: absolute; left: 12px; bottom: 54px; display: flex; align-items: center; gap: 7px; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.post__who i { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 0 0 2px #fff; }
.post__cap { position: absolute; left: 12px; right: 56px; bottom: 16px; font-weight: 500; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.post__rail { position: absolute; right: 8px; bottom: 60px; display: grid; gap: 14px; justify-items: center; }
.post__rail > span { display: grid; justify-items: center; gap: 2px; }
.post__rail svg { width: 26px; height: 26px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.post__rail span:first-child svg { color: #FF3D6E; }
.post__rail b { font: 700 11px/1 var(--f-sans); text-shadow: 0 1px 3px rgba(0,0,0,.7); font-variant-numeric: tabular-nums; }
.post__hearts { position: absolute; right: 14px; bottom: 120px; width: 30px; height: 30px; }
.post__hearts svg { position: absolute; left: 0; top: 0; width: 24px; height: 24px; color: #FF3D6E; opacity: 0; }
.pops { display: grid; gap: 10px; justify-items: start; width: min(460px, 100%); }
.pop { padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--sc); color: var(--sticker-ink); font: 500 15px/1.25 var(--f-sans); transform: rotate(var(--r, 0)); box-shadow: 0 14px 30px -16px rgba(0,0,0,.6); }
.pop b { display: block; font: 600 11px/1.2 var(--f-mono); margin-bottom: 2px; }
.views { text-align: center; font-size: clamp(18px, 1.6vw, 22px); color: var(--muted); }
.views > b { display: block; font: 800 clamp(56px, 8vw, 132px)/.9 var(--f-sans); font-stretch: 75%; letter-spacing: -.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.views .hand { display: block; margin-top: 6px; }
@media (min-width: 900px) {
  .postx { grid-template-columns: 1fr auto 1fr; grid-template-areas: "views phone pops"; column-gap: 40px; justify-items: stretch; }
  .phone--post { grid-area: phone; width: auto; height: min(62vh, 560px); }
  .pops { grid-area: pops; }
  .views { grid-area: views; text-align: left; }
  .exportbar { grid-area: phone; justify-self: center; z-index: 4; }
}
.pin-ok .postx { flex: 1; }
.pin-ok .pop { opacity: 0; }
@media (max-width: 899.98px) {
  .pin-ok .postx { display: block; margin-top: 12px; }
  .pin-ok .exportbar { position: absolute; left: var(--gutter); right: var(--gutter); width: auto; top: 22%; z-index: 4; }
  .pin-ok .phone--post { position: absolute; left: 50%; top: 0; width: auto; height: min(46vh, 400px); margin-left: calc(min(46vh, 400px) * -9 / 32); border-radius: 18px; }
  .pin-ok .pops { position: absolute; inset: 0; display: block; pointer-events: none; }
  .pin-ok .pop { position: absolute; max-width: 54%; font-size: 13.5px; padding: 8px 11px; }
  .pin-ok .pop:nth-child(1) { left: 0; top: 4%; } .pin-ok .pop:nth-child(2) { right: 0; top: 18%; }
  .pin-ok .pop:nth-child(3) { left: 0; top: 34%; } .pin-ok .pop:nth-child(4) { right: 0; top: 46%; }
  .pin-ok .views { position: absolute; left: 0; right: 0; bottom: 0; }
  .pin-ok .views > b { font-size: clamp(54px, 17vw, 84px); }
}

/* services as sticker cards */
.preset:nth-child(4n+1) { --sc: var(--c1); } .preset:nth-child(4n+2) { --sc: var(--c2); } .preset:nth-child(4n+3) { --sc: var(--c3); } .preset:nth-child(4n+4) { --sc: var(--c4); }
.preset__title svg { background: var(--sc); color: var(--sticker-ink); }
.preset__bar i { background: var(--sc); }
.preset:hover { transform: translateY(-6px) rotate(-1deg); }
.preset:nth-child(even):hover { transform: translateY(-6px) rotate(1deg); }

/* pinned chapters: size by viewport height so every scene fits a laptop screen */
@media (min-width: 900px) {
  .pin-ok .chap__title { font-size: clamp(34px, min(5.4vw, 8.6vh), 92px); }
  .pin-ok .phone--hook { height: min(50vh, 460px); }
  .pin-ok .hookx__graph { width: min(100%, calc((100vh - 400px) * 1.62)); }
  .pin-ok .hookx .graph__note { display: none; }
  .pin-ok .hookx { margin-top: 18px; row-gap: 14px; }
  .pin-ok .phone--sound, .pin-ok .phone--post { height: min(56vh, 520px); }
}
@media (max-width: 899.98px) {
  .pin-ok .phone--hook { top: auto; bottom: 0; }
  .pin-ok .hookx__stats { padding-right: 104px; }
}

/* File badge lives in the nav bar while you're in the story, so it never covers content.
   The demo theme switcher steps aside during the story for the same reason. */
.hud { left: calc(var(--gutter) + 150px); top: calc((var(--nav-h) - 34px) / 2); bottom: auto; z-index: 205; height: 34px; transform: translateY(-160%); }
.hud.is-on { transform: none; }
.story-on .nav__tc { opacity: 0; }
.nav__tc { transition: opacity .3s, color .3s; }
.demo-switch { transition: opacity .35s, transform .45s var(--ease-out); }
.story-on .demo-switch { opacity: 0; pointer-events: none; transform: translateY(24px); }
.story-on .demo-switch input { visibility: hidden; }
@media (max-width: 1279.98px) { .hud__t, .hud__bar { display: none; } }
@media (max-width: 899.98px) {
  :root { --nav-h: 60px; }
  .hud { left: 58px; top: 13px; transform: translateY(-170%); padding-right: 12px; }
  .hud.is-on { transform: none; }
  .story-on .nav__name { opacity: 0; }
  .story-on .nav__toggle-label { display: none; }
  .story-on .nav__toggle { padding: 0 7px; }
}
@media (max-width: 374.98px) { .hud__rt { display: none; } }

/* ==========================================================================
   24. Pinned scenes always fit the screen (incl. Safari toolbars, in-app browsers)
   Each pinned chapter is exactly one small-viewport tall; its stage takes what's left.
   ========================================================================== */
.pin-ok .chap__pin { height: 100vh; height: 100svh; min-height: 0; }
.pin-ok .dump, .pin-ok .hookx, .pin-ok .sound, .pin-ok .postx { min-height: 0; }
@media (max-width: 899.98px) {
  .pin-ok .chap__pin { padding-top: calc(var(--nav-h) + 10px); padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .pin-ok .chap__title { font-size: clamp(26px, min(8.4vw, 5.4svh), 46px); }
  .pin-ok .chap__num { margin-bottom: 6px; }
  /* 03 hook */
  .pin-ok .hookx { display: flex; flex-direction: column; gap: 10px; }
  .pin-ok .hookx__stats { padding-right: 0; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .pin-ok .hookx__stats li { display: grid; gap: 0; font-size: 14px; line-height: 1.25; border-top: 0; padding-top: 0; }
  .pin-ok .hookx__sticker { align-self: flex-start; }
  /* 05 sound */
  .pin-ok .sound { display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .pin-ok .phone--sound { flex: 1 1 0; min-height: 0; height: auto; width: auto; max-width: 100%; aspect-ratio: 9 / 16; }
  .pin-ok .sound__mix { width: 100%; gap: 8px; }
  .pin-ok .wave { height: 56px; }
  .pin-ok .sfx li:nth-child(1) { left: 2px; top: 2%; } .pin-ok .sfx li:nth-child(2) { left: 2px; top: 40%; }
  .pin-ok .sfx li:nth-child(3) { right: 2px; top: 8%; } .pin-ok .sfx li:nth-child(4) { right: 4px; top: 30%; }
  .pin-ok .sfx li:nth-child(5) { left: 2px; top: 58%; }
  .pin-ok .sfx li { --r: -3deg !important; }
  /* 06 ratio */
  .pin-ok .ratio { height: 100vh; height: 100svh; }
  .pin-ok .ratio .ratio__wrap { height: 100%; padding-block: calc(var(--nav-h) + 10px) 14px; align-content: start; }
  .pin-ok .ratio__stage { max-width: min(100%, calc(100svh - var(--nav-h) - 250px)); }
  .pin-ok .ratio__sticker { left: 0; right: auto; top: 0; bottom: auto; }
  .pin-ok .frame__label { display: none; }
  /* 07 post */
  .pin-ok .postx { display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .pin-ok .phone--post { position: relative; left: auto; top: auto; margin: 0; flex: 1 1 0; min-height: 0; height: auto; width: auto; max-width: 100%; aspect-ratio: 9 / 16; }
  .pin-ok .views { position: static; }
  .pin-ok .views > b { font-size: clamp(40px, min(14vw, 8svh), 84px); }
  .pin-ok .views .hand { margin-top: 2px; }
  .pin-ok .pop { max-width: 48%; }
  .pin-ok .pop:nth-child(1) { left: 0; top: 2%; } .pin-ok .pop:nth-child(2) { right: 0; top: 16%; }
  .pin-ok .pop:nth-child(3) { left: 0; top: 30%; } .pin-ok .pop:nth-child(4) { right: 0; top: 44%; }
}
@media (max-width: 899.98px) and (max-height: 760px) {
  .pin-ok .phone--hook, .pin-ok .grade .step p, .pin-ok .scope figcaption, .pin-ok .graph__legend { display: none; }
  .pin-ok .grade .scope { padding-bottom: 0; }
  .pin-ok .grade .scope canvas, .pin-ok .scope--vec .scope__grat { max-height: 62px; }
  .pin-ok .grade__pin { gap: 10px; }
  .pin-ok .grade__stage { gap: 10px; }
  .pin-ok .grade__screen { width: min(100%, calc((100svh - 400px) * 16 / 9)); justify-self: center; }
  .pin-ok .grade__monitor { justify-items: center; }
  .pin-ok .vnote figcaption { font-size: 14px; }
  .pin-ok .views .hand { display: none; }
}
@media (max-width: 899.98px) {
  .pin-ok .ratio__stage { max-width: min(100%, calc(100svh - 350px)); }
  .pin-ok .sfx li:nth-child(1), .pin-ok .sfx li:nth-child(2), .pin-ok .sfx li:nth-child(5) { left: 8px; }
  .pin-ok .sfx li:nth-child(3), .pin-ok .sfx li:nth-child(4) { right: 8px; }
  .pin-ok .pop:nth-child(odd) { left: calc(var(--gutter) - 4px); }
  .pin-ok .pop:nth-child(even) { right: calc(var(--gutter) - 4px); }
  .pin-ok .pop { max-width: 46%; }
}
.hero__title .word, .chap__title .word, .contact__title .word { white-space: nowrap; }
.hero__title { max-width: 13ch; }
@media (min-width: 900px) {
  .pin-ok .chap__title { font-size: clamp(32px, min(5.2vw, 7.6vh), 92px); }
  .pin-ok .grade__screen { width: min(100%, calc((100svh - 480px) * 16 / 9)); }
  .pin-ok .grade__title { font-size: clamp(30px, min(4.6vw, 6.6vh), 72px); }
  .pin-ok .hookx__graph { width: min(100%, calc((100svh - 470px) * 1.62)); }
  .pin-ok .phone--hook { height: min(46svh, 440px); }
}
@media (min-width: 900px) {
  .pin-ok .grade__pin { padding-block: calc(var(--nav-h) + 14px) 18px; gap: 16px; }
  .pin-ok .grade__screen { width: min(100%, calc((100svh - 500px) * 16 / 9)); }
}
@media (min-width: 900px) and (max-height: 960px) {
  .wheel::before { width: 58px; height: 58px; }
  .wheel__puck { top: 29px; transform: translate(calc(var(--px, 0) * 17px), calc(var(--py, 0) * 17px)); }
}
@media (min-width: 900px) and (max-height: 860px) {
  .pin-ok .grade .steps .step:not(.is-on) { display: none; }
  .pin-ok .grade .step { border-top: 0; }
  .pin-ok .grade .scope canvas { max-height: 104px; }
  .pin-ok .scope--vec canvas, .pin-ok .scope--vec .scope__grat { max-height: 104px; width: auto; margin-inline: auto; }
  .pin-ok .scope--vec .scope__grat { left: 50%; transform: translateX(-50%); }
}
@media (min-width: 900px) {
  .pin-ok .process__pin { padding-bottom: 78px; }
  .pin-ok .flow__step { min-height: min(46svh, 440px); }
}

/* phones: comfortable tap targets and readable micro-labels */
@media (pointer: coarse) {
  .look span, .filter, .chip span, .wheels__reset { min-height: 44px; display: inline-flex; align-items: center; }
  .nav__toggle { height: 44px; }
}
@media (max-width: 599.98px) {
  .slug, .chap__num, .card__cat, .clients__label, .plan__name, .comment__tc { font-size: 12px; }
  .brief__small, .graph__note, .rates__note { font-size: 14px; }
  .stat__l { font-size: 14.5px; }
}
