/* 7VENX inner pages (case studies, privacy, 404). The home page has its own stylesheet, home.css.
   Brand tokens come from tokens.css (Ink theme); this file only lays them out.
   Spacing uses the brand scale (--space-1 to --space-10) only.
   Fonts: Latin subsets of the kit's Inter TTFs as WOFF (about 41 KB each; the TTFs stay as the source). */

@font-face { font-family: "Inter"; src: url("../fonts/Inter-Light.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --nav: 84px; /* the floating nav: 12px above a 64px pill, 8px below */
  --side: var(--space-5);
  --gap: var(--space-4);
  --sec: var(--space-8);
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* Lemon Milk has no web licence yet, so display type is Inter Light for every visitor, even on a machine that
     has Lemon Milk installed. Once the licence is bought, self-host its WOFF2 and delete this line. */
  --font-display: "Inter", system-ui, sans-serif;
  /* Brand 3.0 colour v4: the extra steps the inner pages use (tokens.css holds the theme colours) */
  --ink-950: #0F0D0C; --ink-875: #1C1613; --ink-850: #211A17; --ink-800: #2B221E; --ink-700: #352C27;
  --paper-100: #EBE4D9; --paper-200: #E2DACD; --stone-300: #ACA094; --stone-600: #62574D;
  --maroon: #621B0F; --flame-amber: #FFA429; --amber-deep: #8A5A00;
  --gold-line: rgb(199 162 102 / .16); --gold-rule: rgb(199 162 102 / .34);
  --flame-glow-btn: 0 10px 30px rgba(255,90,31,.45), 0 0 60px rgba(255,164,41,.30), 0 0 18px rgba(255,212,57,.25);
  --flame-panel-heat: radial-gradient(60% 70% at 85% 115%, rgba(255,212,57,.55), rgba(255,212,57,0) 60%), radial-gradient(90% 90% at 80% 120%, rgba(255,164,41,.55), rgba(255,164,41,0) 65%), radial-gradient(80% 80% at 0% -10%, rgba(255,47,16,.35), rgba(255,47,16,0) 60%);
}
@media (min-width: 640px) { :root { --side: var(--space-8); --gap: var(--space-6); --sec: var(--space-9); } }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--font-sans);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: var(--nav);
}
html.menu-open { overflow: hidden; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
p, li, dd { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.nw { white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--side), var(--content-max)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

/* ---------- type: display is caps, Inter Light, tracked (the brand's fallback for Lemon Milk) ---------- */
.display-l, .display-s, .eyebrow, .label, .slate__client, .slate__title {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
}
.display-l { font-size: clamp(36px, 9vw, 72px); line-height: 1.05; letter-spacing: .08em; }
.display-s { font-size: clamp(20px, .38vw + 18.5px, 24px); line-height: 1.2; letter-spacing: .12em; }
.eyebrow, .label, .slate__client { font-size: 13px; line-height: 16px; letter-spacing: .28em; font-weight: 400; color: var(--text-muted); }

.lead { font-size: 18px; line-height: 28px; color: var(--text-muted); max-width: var(--text-max); }

/* ---------- buttons and links (Brand 3.0: 44px, fully round, Inter 500) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 var(--space-5);
  border: var(--border-width) solid transparent; border-radius: var(--radius-round);
  font: 500 14px/1 var(--font-sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease), transform 150ms var(--ease);
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }

.link {
  color: var(--text); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  text-decoration-color: var(--border-strong); transition: text-decoration-color 150ms var(--ease);
}
.link:focus-visible { text-decoration-color: var(--text); }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
  .btn--secondary:hover { background: var(--surface-raised); border-color: var(--text-muted); transform: translateY(-1px); }
  .link:hover { text-decoration-color: var(--text); }
}
.btn:active { transform: translateY(1px) scale(.985); transition-duration: 90ms; }

/* nav and footer words: bare at rest, a 1px line draws under them on hover */
.nav__link, .footer__nav a, .footer__contact a { position: relative; display: block; padding: var(--space-3) 0; font-size: 14px; line-height: 20px; text-decoration: none; color: var(--text-muted); transition: color 150ms var(--ease); }
.nav__link::after, .footer__nav a::after, .footer__contact a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 150ms var(--ease);
}
.nav__link:focus-visible, .footer__nav a:focus-visible, .footer__contact a:focus-visible { color: var(--text); }
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover, .footer__nav a:hover, .footer__contact a:hover { color: var(--text); }
  .nav__link:hover::after, .footer__nav a:hover::after, .footer__contact a:hover::after { transform: scaleX(1); transform-origin: left; }
}

/* ---------- header ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 10; height: var(--nav); background: var(--bg); border-bottom: var(--border-width) solid var(--border); }
.nav__bar { position: relative; height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: var(--space-6); }
.nav__logo { justify-self: start; display: flex; align-items: center; min-height: 44px; }
.nav__logo img { width: 170px; height: auto; }
.nav__links { display: flex; gap: var(--space-6); }
.nav__cta { justify-self: end; }
.nav__toggle, .nav__sheet-cta { display: none; }

.skip-link {
  position: absolute; left: 0; top: var(--space-3); z-index: 20;
  padding: var(--space-3) var(--space-4); background: var(--text); color: var(--bg);
  font-weight: 500; font-size: 14px; text-decoration: none; border-radius: var(--radius-round);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

@media (max-width: 1023px) {
  .nav__bar { grid-template-columns: 1fr auto auto; column-gap: var(--space-3); }
  .nav__toggle {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-4);
    background: transparent; color: var(--text); border: var(--border-width) solid var(--border-strong); border-radius: var(--radius-round);
    font: 600 14px/1 var(--font-sans); cursor: pointer; transition: background-color 150ms var(--ease);
  }
  .nav__links {
    position: fixed; inset: var(--nav) 0 0; z-index: 9; overflow-y: auto;
    flex-direction: column; gap: 0; padding: var(--space-6) var(--side) var(--space-7);
    background: var(--bg);
    visibility: hidden; opacity: 0; transition: opacity 200ms var(--ease), visibility 0s linear 200ms;
  }
  .nav.is-open .nav__links { visibility: visible; opacity: 1; transition: opacity 200ms var(--ease); }
  .nav__links .nav__link {
    display: flex; align-items: center; min-height: 64px;
    border-bottom: var(--border-width) solid var(--border);
    font-family: var(--font-display); font-weight: 300; text-transform: uppercase; letter-spacing: .10em;
    font-size: 28px; line-height: 1.1; color: var(--text);
  }
  .nav__links .nav__link::after { display: none; }
}
@media (max-width: 639px) {
  .nav__bar { grid-template-columns: 1fr auto; }
  .nav__cta { display: none; }
  .nav__sheet-cta { display: inline-flex; margin-top: var(--space-6); }
}
@media (hover: hover) and (pointer: fine) and (max-width: 1023px) {
  .nav__toggle:hover { background: var(--surface-raised); }
}

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); margin-top: var(--space-6); }
.cta .link { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- frames and slates ---------- */
.shot { position: relative; overflow: hidden; background: var(--surface); border: var(--border-width) solid var(--border); container-type: inline-size; }
.shot--v { aspect-ratio: 9 / 16; }
.shot--h { aspect-ratio: 16 / 9; }
.shot video { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.slate { position: absolute; inset: 0; background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-2); padding: clamp(12px, 6cqi, 24px); }
.slate__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); }
.slate__client { color: var(--text); }
.slate__cat { display: block; margin-top: var(--space-1); color: var(--text-muted); }
.slate__chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--space-1) var(--space-2); }
.slate__fmt { width: 16px; height: 16px; color: var(--text-muted); }
.chip { flex: none; padding: var(--space-1) var(--space-2); border: var(--border-width) solid var(--border-strong); border-radius: var(--radius-round); font: 400 13px/1 var(--font-sans); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text-muted); }
.slate__title { font-size: clamp(14px, 7cqi, 28px); line-height: 1.15; letter-spacing: .12em; color: var(--text); }
.shot--h .slate__title { font-size: clamp(13px, 4.6cqi, 28px); }
.slate__credit { padding-top: var(--space-2); border-top: var(--border-width) solid var(--border); font-size: 13px; line-height: 16px; color: var(--text-muted); }
/* small slates drop the category line (the client stays) so the title and the credit keep their room */
@container (max-width: 300px) { .shot--h .slate__cat, .shot--h .slate__fmt { display: none; } .shot--h .slate { padding: var(--space-2) var(--space-3); } }
/* on a short laptop screen the smallest landscape slates keep client, format and title; the credit stays on the project's other frames */
@container (max-width: 200px) { .shot--h .slate__credit { display: none; } .slate__cat { display: none; } .slate__top { flex-direction: column-reverse; } .slate__chips { justify-content: flex-start; } }
.icon { width: 32px; height: 32px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; color: var(--text); }
.icon * { vector-effect: non-scaling-stroke; }

/* ---------- footer ---------- */
.closing__links { padding-top: var(--space-6); border-top: var(--border-width) solid var(--border); }
.closing__links .grid { row-gap: var(--space-6); align-items: start; }
.footer__brand { grid-column: span 4; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.footer__mark { display: block; padding: var(--space-3) 0; }
.footer__mark img { width: 56px; height: auto; }
.footer__nav { grid-column: span 5; }
.footer__nav ul { display: flex; flex-wrap: wrap; column-gap: var(--space-5); }
.footer__contact { grid-column: span 3; display: flex; flex-direction: column; align-items: flex-start; }
.footer__legal { margin-top: var(--space-6); font-size: 13px; line-height: 16px; color: var(--text-muted); }
.site-footer { padding: var(--space-8) 0 var(--space-7); }

/* ---------- privacy and 404 ---------- */
.page { padding: calc(var(--nav) + var(--space-7)) 0 var(--space-8); }
.page .display-l { max-width: 16em; }
.prose { max-width: var(--text-max); }
.prose > .lead { font-size: 20px; line-height: 30px; color: var(--text); }
.page .prose > .lead { margin-top: var(--space-7); }
.prose h2 { margin-top: var(--space-8); font-weight: 600; font-size: 24px; line-height: 32px; letter-spacing: -.01em; }
.prose h2.display-s { margin-top: var(--space-7); font-weight: 300; letter-spacing: .12em; }
.prose h3 { margin-top: var(--space-6); font-weight: 600; font-size: 18px; line-height: 26px; }
.prose h2 + p { margin-top: var(--space-4); }
.prose h2 + h3 { margin-top: var(--space-5); }
.prose p { color: var(--text-muted); }
.prose .lead + h2 { margin-top: var(--space-8); }
.page--404 { min-height: 72svh; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ==========================================================================
   Case studies (work/*.html). Sections alternate Ink, Paper and Signal grounds like slides,
   the same way the home page does. Each ground resets the tokens, so every part below just
   uses var(--text), var(--border) and friends. Screens (.scr) are Paper cards on any ground.
   ========================================================================== */
.g-ink, .shot, .next {
  --bg: var(--brand-ink); --surface: var(--ink-850); --surface-raised: var(--ink-800); --border: var(--ink-700); --border-strong: var(--brand-graphite);
  --text: var(--brand-paper); --text-muted: var(--stone-300); --accent: var(--brand-signal); --accent-hover: #FF7A47; --accent-text: var(--brand-signal);
  --on-accent: var(--brand-ink); --focus: var(--brand-signal);
  color: var(--text);
}
.g-paper, .scr {
  --bg: var(--brand-paper); --surface: #FFFFFF; --surface-raised: var(--paper-100); --border: var(--paper-200); --border-strong: var(--brand-graphite);
  --text: var(--brand-ink); --text-muted: var(--stone-600); --accent: var(--brand-signal); --accent-hover: #FF7A47; --accent-text: #B83A0E;
  --on-accent: var(--brand-ink); --focus: var(--brand-ink);
  color: var(--text);
}
/* text on Signal is always Ink; the primary button turns Ink so it still reads as the main action */
.g-orange {
  --bg: var(--brand-signal); --surface: var(--brand-signal); --surface-raised: rgba(28, 22, 19, .1); --border: rgba(28, 22, 19, .28); --border-strong: var(--brand-ink);
  --text: var(--brand-ink); --text-muted: var(--brand-ink); --accent: var(--brand-ink); --accent-hover: var(--ink-800); --accent-text: var(--brand-ink);
  --on-accent: var(--brand-paper); --focus: var(--brand-ink);
  color: var(--text);
}
.g-ink, .g-paper, .g-orange { background: var(--bg); }

.cs { position: relative; padding-block: var(--space-9); }
.cs-mark { position: absolute; right: max(var(--side), (100% - var(--content-max)) / 2); bottom: var(--space-5); width: 32px; height: auto; }
.h-sec { font-family: var(--font-display); font-weight: 300; text-transform: uppercase; font-size: clamp(28px, 6vw, 48px); line-height: 1.12; letter-spacing: .10em; text-wrap: balance; }
.cs-head { display: grid; gap: var(--space-4); max-width: 760px; margin-bottom: var(--space-7); }
.cs-head p, .piece__text > p, .close__text > p { font-size: 18px; line-height: 28px; color: var(--text-muted); max-width: 40em; }
.small { font-size: 14px; line-height: 20px; color: var(--text-muted); }
.g-orange .small, .g-orange .cs-head p, .g-orange .piece__text > p { color: var(--text); }

/* small shared marks */
.flag { flex: none; padding: var(--space-1) var(--space-2); border: 1px solid currentColor; border-radius: var(--radius-round); font: 600 12px/16px var(--font-sans); white-space: nowrap; }
.tag { display: inline-flex; align-items: center; padding: 0 6px; border: 1px solid currentColor; border-radius: var(--radius-round); font: 600 11px/16px var(--font-sans); white-space: nowrap; }
.demo-k { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--text-muted); }
.ln { display: block; height: 6px; background: currentColor; opacity: .2; }
.ln.s { width: 64%; }
.ln.xs { width: 40%; }
.ln.hook, .ln.mark { background: var(--brand-signal); opacity: 1; }
.ln.hl { background: var(--brand-signal); opacity: .45; }
.ln.short { background: var(--brand-ink); opacity: .85; }
.who { flex: none; justify-self: start; padding: 0 6px; border: 1px solid var(--accent-text); border-radius: var(--radius-round); font: 600 11px/18px var(--font-sans); white-space: nowrap; color: var(--accent-text); }
.who--client { border-color: var(--border-strong); color: var(--text-muted); }
.who--both { border-style: dashed; border-color: var(--text); color: var(--text); }
.rec { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/16px var(--font-sans); color: var(--brand-paper); }
.rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-signal); }
.phone { width: 100%; height: auto; border: 4px solid var(--brand-ink); border-radius: var(--radius-md); background: var(--brand-ink); }

/* ---------- opening ---------- */
.case-open { padding-top: calc(var(--nav) + var(--space-8)); }
.open { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--space-7); align-items: start; }
.open h1 { grid-column: 1 / -1; max-width: 15em; }
.open__text { grid-column: 1 / span 5; display: grid; gap: var(--space-5); }
.open__media { grid-column: 6 / -1; }
.open__reels { grid-column: 6 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.open__note { grid-column: 6 / -1; margin-top: calc(var(--space-6) * -1); }
/* beside the opening words the reels and their note stack in one column */
.open--reels .open__text { grid-row: 2 / span 2; }
.open--reels .open__reels { grid-row: 2; }
.open--reels .open__note { grid-row: 3; }
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tags li { padding: 6px var(--space-3); border: 1px solid var(--border-strong); border-radius: var(--radius-round); font-size: 13px; line-height: 16px; }
.credit { padding-top: var(--space-4); border-top: 1px solid var(--border); font-size: 14px; line-height: 20px; color: var(--text-muted); }

/* ---------- the pieces bar (Indiamaan): sticks under the header ---------- */
.pieces { position: sticky; top: var(--nav); z-index: 5; background: var(--brand-ink); border-bottom: 1px solid var(--ink-700); }
.pieces ol { display: flex; gap: var(--space-6); overflow-x: auto; scrollbar-width: none; }
.pieces ol::-webkit-scrollbar { display: none; }
.pieces a { position: relative; display: flex; align-items: center; gap: var(--space-2); min-height: 56px; font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; text-decoration: none; color: var(--text-muted); transition: color 150ms var(--ease); }
.pieces a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brand-signal); transform: scaleX(0); transform-origin: left; transition: transform 200ms var(--ease); }
.pieces a[aria-current="true"] { color: var(--text); }
.pieces a[aria-current="true"]::after { transform: scaleX(1); }
.pieces__n { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid currentColor; border-radius: var(--radius-sm); font-size: 12px; font-variant-numeric: tabular-nums; }
[data-piece] { scroll-margin-top: 56px; }
@media (hover: hover) and (pointer: fine) { .pieces a:hover { color: var(--text); } }

/* ---------- a piece: words left, its frames right, then four facts ---------- */
.piece { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--space-8); align-items: start; }
.piece__text { grid-column: 1 / span 5; display: grid; gap: var(--space-5); align-content: start; }
/* a 16:9 frame beside a 9:16 one; the 1 : .3164 widths make both the same height */
.piece__media { grid-column: 6 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .3164fr); gap: var(--space-3); align-items: end; }
.piece--research .piece__text { grid-column: 1 / span 4; }
.piece--research .scr--wide { grid-column: 5 / -1; }
.facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.facts li, .dl li { display: grid; gap: var(--space-3); align-content: start; padding-top: var(--space-4); border-top: 1px solid var(--text); }
.facts__fig, .dl__fig { font-weight: 300; font-size: clamp(40px, 4vw, 64px); line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.facts__fig small, .dl__fig small { margin-left: var(--space-1); font-size: 16px; font-weight: 400; letter-spacing: 0; }
.dl__fig small { margin-inline: var(--space-2); }
.facts__txt, .dl__txt { font-size: 14px; line-height: 20px; color: var(--text-muted); }
.note { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 14px; line-height: 20px; }
.note .icon { width: 20px; height: 20px; }

/* ---------- the journey: a stepper. Without script every step shows, one after another ---------- */
.jr__panels { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
.jr__step { display: grid; gap: var(--space-5); align-content: start; }
.jr__text { display: grid; gap: var(--space-3); align-content: start; max-width: 40em; }
.jr__text p:not(.jr__meta) { color: var(--text-muted); }
.jr__text .link { font-weight: 600; }
.jr__meta { display: flex; align-items: center; gap: var(--space-2); }
.jr__n { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border: 1px solid currentColor; border-radius: var(--radius-sm); font: 600 12px/1 var(--font-sans); font-variant-numeric: tabular-nums; }
.jr__title { font-family: var(--font-display); font-weight: 300; text-transform: uppercase; font-size: 22px; line-height: 1.2; letter-spacing: .12em; }
.jr__step[hidden] { display: none; }
.jr__ctl:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-5); }
.jr__count { font-size: 14px; line-height: 20px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.jr__ctl .btn[aria-disabled="true"] { opacity: .4; cursor: default; transform: none; }

.jr__rail button {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-3);
  min-height: 56px; padding: var(--space-2) var(--space-3); border: 0; border-top: 1px solid var(--border); border-radius: 0;
  background: transparent; color: var(--text-muted); text-align: left; font: 400 15px/20px var(--font-sans); cursor: pointer;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.jr__rail button[aria-selected="true"] { background: var(--surface-raised); color: var(--text); }
.jr__rail button[aria-selected="true"] .jr__n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (hover: hover) and (pointer: fine) { .jr__rail button:hover { color: var(--text); background: var(--surface); } .jr__rail button[aria-selected="true"]:hover { background: var(--surface-raised); } }

@media (min-width: 1024px) {
  .jr:not(.is-on) .jr__step { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gap); }
  .jr.is-on { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-areas: "rail panel" "rail ctl"; column-gap: var(--gap); align-items: start; }
  .jr.is-on .jr__rail { grid-area: rail; display: flex; flex-direction: column; border-bottom: 1px solid var(--border); }
  .jr.is-on .jr__panels { grid-area: panel; }
  /* every step sits in the same cell, so the box keeps the tallest step's height and nothing below jumps */
  .jr.is-on .jr__step { grid-area: 1 / 1; }
  .jr.is-on .jr__step[hidden] { display: grid; visibility: hidden; }
  .jr.is-on .jr__ctl { grid-area: ctl; }
}
@media (max-width: 1023px) {
  .jr.is-on .jr__rail { position: relative; display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; margin-bottom: var(--space-5); padding-bottom: 2px; scroll-margin-top: var(--space-4); }
  .jr.is-on .jr__rail::-webkit-scrollbar { display: none; }
  .jr.is-on .jr__rail button { flex: none; display: inline-flex; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-3) 0 var(--space-2); border: 1px solid var(--border-strong); border-radius: var(--radius-round); white-space: nowrap; font-size: 14px; }
  .jr.is-on .jr__rail button[aria-selected="true"] { border-color: var(--text); }
  .jr.is-on .jr__rail .who { display: none; }
  .jr.is-on .jr__rail .jr__n { width: 24px; height: 24px; }
}

/* ---------- screens: the paper artefact beside each step ---------- */
.scr { display: grid; gap: var(--space-5); align-content: start; padding: var(--space-5); background: var(--bg); border-radius: var(--radius-md); container-type: inline-size; }
.g-paper .scr { background: var(--surface); border: 1px solid var(--border); }
.scr__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-bottom: var(--space-4); border-bottom: 1px solid var(--border); font-size: 14px; line-height: 20px; font-weight: 600; }

/* record */
.cams { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, 64px); gap: var(--space-2); }
@container (min-width: 520px) { .cams { grid-template-rows: repeat(2, 100px); } }
.cam { position: relative; background: var(--brand-ink); border-radius: var(--radius-sm); }
.cam:first-child { grid-row: span 2; }
.cam .rec { position: absolute; top: var(--space-2); left: var(--space-2); }
.bars { display: flex; align-items: center; gap: 2px; height: 48px; }
.bars i { flex: 1; height: 30%; background: currentColor; opacity: .35; }
.bars i:nth-child(3n) { height: 60%; }
.bars i:nth-child(4n + 1) { height: 80%; }
.bars i:nth-child(5n) { height: 45%; }
.bars i:nth-child(7n) { height: 100%; }

/* map the story */
.tx { display: grid; gap: var(--space-3); }
.tx p { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); min-height: 18px; }
.mk { padding: 0 6px; border: 1px solid var(--accent-text); border-radius: var(--radius-round); font: 600 11px/16px var(--font-sans); color: var(--accent-text); }
.mk--hook { background: var(--brand-signal); border-color: var(--brand-signal); color: var(--brand-ink); }
.mk--short { background: var(--brand-ink); border-color: var(--brand-ink); color: var(--brand-paper); }
.legend { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.legend li { display: flex; align-items: baseline; gap: var(--space-2); font-size: 14px; line-height: 20px; color: var(--text-muted); }
.legend li::before { content: ""; align-self: center; width: 16px; height: 6px; background: var(--brand-signal); }
.legend li:nth-child(2)::before { opacity: .45; }
.legend li:nth-child(3)::before { background: var(--brand-ink); opacity: .85; }
.legend b { font-weight: 300; font-size: 32px; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }

/* cut and review */
.rv { display: grid; gap: var(--space-2); }
.rv__ruler, .tr__ruler { display: flex; justify-content: space-between; font-size: 12px; line-height: 16px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.rv__pins { display: flex; justify-content: space-between; align-items: flex-end; height: 40px; }
.rv__pins i { width: 2px; height: 18px; background: var(--brand-ink); opacity: .35; }
.rv__pins i.pk { height: 40px; background: var(--brand-signal); opacity: 1; }
.rv__track { height: 12px; background: var(--brand-ink); border-radius: var(--radius-sm); }
.notes, .fix { display: grid; gap: var(--space-2); }
.notes li, .fix li { padding: 10px var(--space-3); background: var(--surface); border-left: 2px solid var(--border-strong); font-size: 14px; line-height: 20px; }
.notes li.pk, .fix li { border-left-color: var(--brand-signal); }
.g-paper .notes li, .g-paper .fix li { background: var(--bg); }

/* finish the episode */
.ep { display: grid; gap: var(--space-4); }
.ep__frame { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 16 / 9; padding: var(--space-4); background: var(--brand-ink); color: var(--brand-paper); border-radius: var(--radius-sm); }
.ep__hl { display: grid; gap: var(--space-2); width: 62%; margin: auto; }
.ep__hl .ln { height: 10px; opacity: .55; }
.ep__hl .ln.mark { opacity: 1; transform-origin: left; }
.ep__lower { display: grid; gap: 6px; width: 44%; padding-left: var(--space-2); border-left: 3px solid var(--brand-signal); }
.ep__lower .ln { opacity: .7; }
.ep__side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); align-content: start; }
.ep__side .demo-k, .ep__meter { grid-column: 1 / -1; }
.ep__cam { display: block; aspect-ratio: 16 / 9; background: var(--brand-ink); opacity: .25; border-radius: var(--radius-sm); }
.ep__cam.is-live { opacity: 1; outline: 2px solid var(--brand-signal); outline-offset: -2px; }
.ep__meter { display: flex; gap: var(--space-1); align-items: flex-end; height: 40px; }
.ep__meter i { flex: 1; height: 72%; background: var(--brand-signal); }
.ep__meter i + i { height: 68%; }
@container (min-width: 520px) {
  .ep { grid-template-columns: minmax(0, 1fr) 112px; }
  .ep__side { grid-template-columns: 1fr; }
}
@keyframes sweep { from { transform: scaleX(0); } }
.jr__step:not([hidden]) .ep__hl .ln.mark { animation: sweep 900ms var(--ease) 250ms both; }

/* trailer */
.tr { display: grid; gap: var(--space-2); }
.tr__lane { display: flex; gap: 3px; height: 20px; margin-bottom: var(--space-2); }
.tr__lane i { flex: 1; }
.tr__lane i:nth-child(3n) { flex: 1.6; }
.tr__lane i:nth-child(4n + 2) { flex: .7; }
.tr__lane i:nth-child(5n) { flex: 2.2; }
.tr__vo i { background: var(--brand-signal); }
.tr__clips { height: 36px; }
.tr__clips i { background: var(--brand-ink); }

/* shorts */
.sq { display: grid; gap: var(--space-3); }
.sq__row { display: grid; grid-template-columns: 88px minmax(0, 1fr) 88px; align-items: center; gap: var(--space-3); }
.sq__bar { height: 16px; background: var(--brand-ink); opacity: .25; }
.sq__bar--cut { width: 33%; background: var(--brand-signal); opacity: 1; }
.sq__t { font-size: 13px; line-height: 16px; font-variant-numeric: tabular-nums; }
.tiles { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; }
.tiles--t { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.tiles li { display: flex; align-items: flex-end; aspect-ratio: 9 / 16; padding: 4px 5px; background: var(--brand-ink); color: var(--brand-paper); border-radius: var(--radius-sm); font: 600 11px/14px var(--font-sans); font-variant-numeric: tabular-nums; }
.titles { display: grid; gap: var(--space-2); }
.titles div { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--space-3); align-items: baseline; padding: 10px var(--space-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.titles dt { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--text-muted); }
.titles dd { font-size: 14px; line-height: 20px; font-weight: 600; }
@container (max-width: 479px) {
  .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tiles--t { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sq__row { grid-template-columns: 72px minmax(0, 1fr) 64px; }
}

/* package: a two-way switch and three thumbnails that redraw */
.seg:not([hidden]) { display: inline-flex; justify-self: start; padding: 2px; border: 1px solid var(--text); border-radius: var(--radius-round); }
.seg button { min-height: 40px; padding: 0 var(--space-4); border: 0; border-radius: var(--radius-round); background: transparent; color: var(--text); font: 600 14px/1 var(--font-sans); cursor: pointer; transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
@media (hover: hover) and (pointer: fine) { .seg button[aria-pressed="false"]:hover { background: var(--surface-raised); } }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.th5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2); }
.th5 li { display: grid; gap: var(--space-1); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.th { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--brand-ink); border-radius: var(--radius-sm); }
.th i, .th b { position: absolute; transition: opacity 200ms var(--ease), background-color 200ms var(--ease); }
.th i { left: 8%; height: 8%; background: var(--brand-paper); opacity: .45; }
.th i:nth-of-type(1) { top: 24%; width: 36%; }
.th i:nth-of-type(2) { top: 38%; width: 26%; }
.th b { right: 7%; top: 16%; bottom: 16%; width: 36%; background: var(--brand-graphite); border-radius: var(--radius-sm); }
[data-v="redrawn"] .th i { height: 15%; opacity: 1; }
[data-v="redrawn"] .th i:nth-of-type(1) { top: 22%; width: 50%; }
[data-v="redrawn"] .th i:nth-of-type(2) { top: 44%; width: 36%; background: var(--brand-signal); }
[data-v="redrawn"] .th b { width: 30%; background: var(--ink-700); }
.th5 li:nth-child(2n) .th b { width: 28%; }
.th5 li:nth-child(3n) .th i:nth-of-type(2) { background: var(--brand-signal); opacity: 1; }
.chap { display: grid; gap: var(--space-3); }
.chap__bar { position: relative; display: flex; gap: 2px; height: 20px; }
.chap__bar li { flex: 1; background: var(--brand-ink); opacity: .25; }
.chap__bar li.is-named { background: var(--brand-signal); opacity: 1; }
.chap__bar.is-placed li { position: absolute; top: 0; bottom: 0; left: var(--x); width: calc(var(--w) - 2px); }
.chap__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-1) var(--space-5); }
.chap__list li { display: flex; gap: var(--space-2); font-size: 13px; line-height: 18px; }
.chap__list time { flex: none; font-weight: 600; color: var(--accent-text); font-variant-numeric: tabular-nums; }

/* publish */
.rel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); align-items: end; }
.rel li { position: relative; display: grid; gap: var(--space-1); justify-items: start; }
.rel li:not(:last-child)::after { content: ""; position: absolute; right: -16px; top: 28%; width: 8px; height: 8px; border-top: 2px solid var(--text-muted); border-right: 2px solid var(--text-muted); transform: rotate(45deg); }
.rel__f { display: block; width: 100%; aspect-ratio: 16 / 9; margin-bottom: var(--space-2); background: var(--brand-ink); border-radius: var(--radius-sm); }
.rel__f--v { width: 32%; aspect-ratio: 9 / 16; }
.rel b { font-size: 14px; line-height: 20px; }
.rel small { font-size: 12px; line-height: 16px; color: var(--text-muted); }
.cmt { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.cmt__dot { width: 24px; height: 24px; flex: none; background: var(--brand-graphite); border-radius: var(--radius-sm); }
.cmt__word { font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: .08em; }
.cmt .tag { margin-left: auto; color: var(--accent-text); }

/* talking-head: case study, script, recording */
.doc { display: grid; gap: 10px; padding: var(--space-4); background: var(--surface); border: 1px solid var(--border); }
.doc__row { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: var(--space-3); }
.redact { display: block; width: 56%; height: 14px; background: var(--brand-ink); }
.doc__row:nth-of-type(2) .redact { width: 40%; }
.doc__row:nth-of-type(3) .redact { width: 48%; }
.sheets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.sheet { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-4); background: var(--surface); border: 1px solid var(--border); }
.sheet__h { margin-bottom: var(--space-1); font-size: 13px; line-height: 18px; font-weight: 600; }
.sheet__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); align-items: center; min-height: 16px; }
.vf { position: relative; justify-self: center; width: min(100%, 520px); aspect-ratio: 16 / 9; background: var(--brand-ink); color: var(--brand-paper); border-radius: var(--radius-sm); }
.vf::before { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(243, 237, 228, .5); }
.vf__c { position: absolute; width: 24px; height: 24px; border: 0 solid var(--brand-paper); }
.vf__c:nth-of-type(1) { top: 16px; left: 16px; border-top-width: 2px; border-left-width: 2px; }
.vf__c:nth-of-type(2) { top: 16px; right: 16px; border-top-width: 2px; border-right-width: 2px; }
.vf__c:nth-of-type(3) { bottom: 16px; left: 16px; border-bottom-width: 2px; border-left-width: 2px; }
.vf__c:nth-of-type(4) { bottom: 16px; right: 16px; border-bottom-width: 2px; border-right-width: 2px; }
.vf .rec { position: absolute; top: 24px; left: 48px; }
.vf__sub { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; font-size: 12px; line-height: 16px; font-weight: 600; }
@container (max-width: 479px) { .sheets { grid-template-columns: 1fr; } .chap__list { grid-template-columns: 1fr; } }

/* motion graphics and the edit */
.stills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.stills img { width: 100%; height: auto; border-radius: var(--radius-sm); background: var(--brand-ink); }
.months { display: flex; justify-content: space-between; padding-top: var(--space-2); border-top: 2px solid var(--brand-ink); font-size: 12px; line-height: 16px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.months .is-now { font-weight: 600; color: var(--accent-text); }
.mt { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-2) var(--space-3); align-items: center; }
.mt__lane { position: relative; height: 20px; }
.mt__host i, .mt__gfx i, .mt__sfx i { position: absolute; top: 0; bottom: 0; }
.mt__host i { background: var(--brand-ink); }
.mt__host i:nth-child(1) { left: 0; width: 18%; }
.mt__host i:nth-child(2) { left: 30%; width: 18%; }
.mt__host i:nth-child(3) { left: 62%; width: 12%; }
.mt__host i:nth-child(4) { left: 86%; width: 14%; }
.mt__gfx i { background: var(--brand-signal); }
.mt__gfx i:nth-child(1) { left: 18%; width: 12%; }
.mt__gfx i:nth-child(2) { left: 48%; width: 14%; }
.mt__gfx i:nth-child(3) { left: 74%; width: 12%; }
.mt__gfx i:nth-child(4) { left: 4%; width: 6%; opacity: .5; }
.mt__gfx i:nth-child(5) { left: 34%; width: 8%; opacity: .5; }
.mt__sfx i { width: 6px; background: var(--brand-ink); }
.mt__sfx i:nth-child(1) { left: 17%; } .mt__sfx i:nth-child(2) { left: 29%; } .mt__sfx i:nth-child(3) { left: 47%; } .mt__sfx i:nth-child(4) { left: 52%; }
.mt__sfx i:nth-child(5) { left: 61%; } .mt__sfx i:nth-child(6) { left: 73%; } .mt__sfx i:nth-child(7) { left: 85%; }
.mt__music i { position: absolute; inset: 4px 0; background: var(--brand-ink); opacity: .3; }
.bars--lane { height: 20px; }
.bars--lane i { opacity: .6; }
@container (max-width: 479px) { .stills { grid-template-columns: 1fr; } .mt { grid-template-columns: 72px minmax(0, 1fr); } }

/* audience research: a funnel of counts */
.fn { display: grid; gap: var(--space-5); }
.fn li { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: var(--space-4); row-gap: var(--space-2); align-items: center; }
.fn__fig { grid-row: span 2; font-weight: 300; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.fn__bar { display: block; height: 16px; background: var(--brand-signal); transform-origin: left; transition: transform 900ms var(--ease); }
.fn__bar--1 { width: 100%; }
.fn__bar--2 { width: 29.17%; } /* 981 of 3,363 */
.fn__bar--3 { width: 16.74%; } /* 563 of 3,363 */
.fn li:nth-child(2) .fn__bar { transition-delay: 120ms; }
.fn li:nth-child(3) .fn__bar { transition-delay: 240ms; }
.wait .fn__bar { transform: scaleX(0); }
.fn__dots { display: flex; gap: 6px; }
.fn__dots i { width: 16px; height: 16px; background: var(--brand-ink); }
.fn__txt { font-size: 14px; line-height: 20px; color: var(--text-muted); }
@container (max-width: 479px) { .fn li { grid-template-columns: 84px minmax(0, 1fr); } .fn__fig { font-size: 30px; } }

/* ---------- Cuan ---------- */
.need { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.need__head { grid-column: 1 / span 5; }
.rules { grid-column: 1 / span 5; grid-row: 2; }
.need__funnel { grid-column: 7 / -1; grid-row: 1 / span 2; }
.rules li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: var(--space-4); row-gap: var(--space-1); padding: var(--space-4) 0; border-top: 1px solid var(--border); }
.rules .icon { grid-row: span 2; }
.rules h3 { font-size: 16px; line-height: 24px; font-weight: 600; }
.rules p { font-size: 14px; line-height: 20px; color: var(--text-muted); }
.fun { display: grid; gap: var(--space-2); }
.fun li { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: var(--space-4); row-gap: 2px; margin-inline: auto; width: 100%; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--brand-ink); color: var(--brand-paper); }
.fun .fun__m { width: 86%; background: var(--ink-700); }
.fun .fun__b { width: 72%; background: var(--brand-signal); color: var(--brand-ink); }
.fun b { grid-row: span 2; font-size: 14px; line-height: 20px; }
.fun span { font-size: 14px; line-height: 20px; }
.fun em { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-style: normal; font-size: 13px; line-height: 18px; font-weight: 600; }
.fun small { padding: 0 6px; border: 1px solid currentColor; border-radius: var(--radius-round); font-size: 11px; line-height: 16px; }
.fun__mix { font-size: 14px; line-height: 20px; color: var(--text-muted); }
.fun__mix b { color: var(--text); }
.pill-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pill-list li { padding: 4px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-round); font-size: 13px; line-height: 18px; }

.plan { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.plan li { display: grid; gap: var(--space-2); align-content: start; justify-items: start; padding: var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.plan li.is-pick { border: 2px solid var(--brand-signal); padding: 15px; }
.plan b { font-size: 16px; line-height: 22px; }
.plan small { font-size: 12px; line-height: 16px; color: var(--text-muted); }
.plan .is-pick small { font-weight: 600; color: var(--accent-text); }
.vt { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.vt th, .vt td { padding: 10px var(--space-2) 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.vt thead th { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--text-muted); }
.vt tbody th { font-weight: 600; }
.vt td { font-variant-numeric: tabular-nums; }
.ref { display: inline-block; margin-right: var(--space-1); padding: 0 4px; background: var(--brand-ink); color: var(--brand-paper); border-radius: var(--radius-sm); font: 600 11px/16px var(--font-sans); }
.srcs { display: grid; gap: 6px; font-size: 13px; line-height: 18px; color: var(--text-muted); }
.srcs li { display: flex; align-items: center; gap: var(--space-2); }
.sc { display: grid; gap: 10px; padding: var(--space-4); background: var(--surface); border: 1px solid var(--border); }
.sc__hook { padding-left: var(--space-3); border-left: 3px solid var(--brand-signal); font-size: 18px; line-height: 26px; font-weight: 600; }
.sc__count { display: inline-block; margin-left: var(--space-2); padding: 0 6px; border: 1px solid var(--accent-text); border-radius: var(--radius-round); color: var(--accent-text); font-size: 11px; line-height: 16px; vertical-align: 3px; white-space: nowrap; }
.sc__end { font-size: 16px; line-height: 24px; font-weight: 600; }
.sc__meta { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.lens { display: grid; gap: var(--space-3); }
.lens li { display: grid; grid-template-columns: 72px minmax(0, 1fr) 40px; align-items: center; gap: var(--space-3); }
.lens b { font-size: 14px; line-height: 20px; }
.lens small { font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.lens__bar { display: block; height: 20px; background: var(--brand-signal); }
.lens__bar--full { width: 100%; background: var(--brand-ink); }
.lens__bar--c { width: 72.2%; } /* 39 of 54 s */
.lens__bar--b { width: 42.6%; } /* 23 of 54 s */
.lens__bar--a { width: 31.5%; } /* 17 of 54 s */
.vm { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: var(--space-5); align-items: center; }
@container (max-width: 479px) {
  .plan { grid-template-columns: 1fr; }
  .vm { grid-template-columns: 1fr; }
  .vm .phone { width: min(100%, 200px); }
  .vt { font-size: 13px; }
}

/* one script, four cuts */
.cutter { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap); align-items: start; }
.cutter__vs[hidden] + .cutter__script { grid-column: 1 / -1; }
.cutter__vs:not([hidden]) { position: sticky; top: calc(var(--nav) + var(--space-5)); display: grid; gap: var(--space-2); }
.cutter__vs button {
  display: grid; gap: 2px; padding: var(--space-3) var(--space-4); text-align: left;
  border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: transparent; color: var(--text);
  font: 400 14px/20px var(--font-sans); cursor: pointer; transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.cutter__vs b { font-size: 16px; line-height: 22px; }
.cutter__vs span { font-variant-numeric: tabular-nums; }
.cutter__vs small { font-size: 13px; line-height: 18px; }
.cutter__vs button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
@media (hover: hover) and (pointer: fine) { .cutter__vs button[aria-pressed="false"]:hover { background: var(--surface-raised); } }
.cutter__script { display: grid; gap: var(--space-4); padding: var(--space-5); border-radius: var(--radius-md); }
.cutter__lines { counter-reset: ln; }
.cutter__lines li { counter-increment: ln; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-3); padding: 4px 0 4px var(--space-3); border-left: 3px solid transparent; border-bottom: 1px solid var(--border); font-size: 16px; line-height: 24px; transition: opacity 200ms var(--ease), border-color 200ms var(--ease); }
.cutter__lines li::before { content: counter(ln); font-size: 12px; line-height: 24px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.cutter[data-v="a"] li:not([data-in~="a"]), .cutter[data-v="b"] li:not([data-in~="b"]), .cutter[data-v="c"] li:not([data-in~="c"]) { opacity: .28; }
.cutter[data-v="a"] li[data-in~="a"], .cutter[data-v="b"] li[data-in~="b"], .cutter[data-v="c"] li[data-in~="c"] { border-left-color: var(--brand-signal); }
.cutter__src { font-size: 13px; line-height: 18px; color: var(--text-muted); max-width: 75ch; }

/* inside one reel */
.inside { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.inside .cs-head { grid-column: 1 / span 4; margin-bottom: 0; }
.frames3 { grid-column: 5 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.frames3 li { display: grid; gap: var(--space-3); align-content: start; }
.frames3__k { display: flex; align-items: center; gap: var(--space-2); font-size: 14px; line-height: 20px; font-weight: 600; }

/* what we delivered */
.dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.dl__vis { display: flex; align-items: flex-end; gap: var(--space-1); height: 56px; margin-top: var(--space-2); }
.dl__reels i { width: 20px; aspect-ratio: 9 / 16; background: var(--brand-signal); border-radius: var(--radius-sm); }
.dl__cuts i { width: 8px; height: 32px; background: var(--text); opacity: .55; }
.dl__cuts b { width: 6px; }
.dl__hooks { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 6px; }
.dl__hooks i { width: 72px; height: 6px; background: var(--text); opacity: .55; }
.dl__hooks i:first-child { background: var(--brand-signal); opacity: 1; }
.dl__days i { width: 16px; height: 16px; background: var(--brand-signal); }
.dl__days i:last-child { opacity: .4; }

/* ---------- the close: one line, the call, the next case study ---------- */
.close { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--space-7); align-items: end; }
.close__text { grid-column: 1 / span 6; display: grid; gap: var(--space-5); }
.close__text .cta { margin-top: 0; }
.next { grid-column: 8 / -1; display: grid; gap: var(--space-4); padding: var(--space-5); background: var(--bg); color: var(--text); border-radius: var(--radius-md); text-decoration: none; transition: transform 150ms var(--ease); }
.next__k { font-size: 13px; line-height: 16px; font-weight: 600; color: var(--text-muted); }
.next__slate { display: grid; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.next__client { font-family: var(--font-display); font-weight: 300; text-transform: uppercase; font-size: 13px; line-height: 16px; letter-spacing: .16em; color: var(--text-muted); }
.next__title { font-family: var(--font-display); font-weight: 300; text-transform: uppercase; font-size: 24px; line-height: 1.2; letter-spacing: .12em; }
.next__line { font-size: 14px; line-height: 20px; color: var(--text-muted); }
.g-orange .next:focus-visible { outline-color: var(--brand-ink); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .next:hover { transform: translateY(-2px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
  .btn:active, .next:hover { transform: none; }
  .jr__step:not([hidden]) .ep__hl .ln.mark { animation: none; }
  .wait .fn__bar { transform: none; }
}

/* ---------- 1024 to 1279 ---------- */
@media (max-width: 1279px) {
  .open__text { grid-column: 1 / span 6; }
  .open__reels, .open__note { grid-column: 1 / -1; }
  .open--reels .open__text, .open--reels .open__reels, .open--reels .open__note { grid-row: auto; }
  .open__note { margin-top: calc(var(--space-5) * -1); }
}

/* ---------- tablet: 640 to 1023 ---------- */
@media (max-width: 1023px) {
  .footer__brand { grid-column: span 12; }
  .footer__nav { grid-column: span 7; }
  .footer__contact { grid-column: span 5; }
  .open__text, .open__media, .piece__text, .piece__media, .piece--research .piece__text, .piece--research .scr--wide,
  .need__head, .rules, .need__funnel, .close__text, .next, .inside .cs-head, .frames3 { grid-column: 1 / -1; grid-row: auto; }
  .inside .cs-head { margin-bottom: var(--space-6); }
  .open__text { max-width: 40em; }
  .piece { row-gap: var(--space-7); }
  .need { row-gap: var(--space-6); }
  .need__head { margin-bottom: 0; }
  .facts, .dl { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-6); }
  .cutter { grid-template-columns: 1fr; }
  .cutter__vs:not([hidden]) { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next { max-width: 480px; }
}

/* ---------- phone: under 640 ---------- */
@media (max-width: 639px) {
  .grid > * { grid-column: 1 / -1 !important; }
  .cta { margin-top: var(--space-5); }
  .cta .btn { width: 100%; }
  .closing__links .grid { row-gap: var(--space-4); }
  .footer__brand { flex-direction: row; align-items: center; gap: var(--space-5); }
  .footer__nav ul { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--gap); }
  .footer__contact { flex-direction: row; flex-wrap: wrap; column-gap: var(--space-6); }
  .footer__legal { margin-top: var(--space-4); }
  .prose > .lead { font-size: 18px; line-height: 28px; }

  .cs { padding-block: var(--space-8); }
  .case-open { padding-top: calc(var(--nav) + var(--space-7)); }
  .cs-mark { bottom: var(--space-4); width: 24px; }
  .cs-head { margin-bottom: var(--space-6); }
  .open { row-gap: var(--space-6); }
  .open__reels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .open__note { margin-top: calc(var(--space-4) * -1); }
  .piece__media { grid-template-columns: 1fr; }
  .piece__media .shot--v { width: 56%; }
  .facts, .dl { column-gap: var(--space-4); }
  .scr { padding: var(--space-4); }
  .cutter__script { padding: var(--space-4); }
  .cutter__vs:not([hidden]) { grid-template-columns: 1fr 1fr; }
  .cutter__vs button { padding: var(--space-3); }
  .cutter__lines li { font-size: 15px; line-height: 22px; padding-left: var(--space-2); grid-template-columns: 20px minmax(0, 1fr); gap: var(--space-2); }
  /* three tall frames would be too narrow side by side: they scroll sideways inside their own row */
  .frames3 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 68%; gap: var(--space-3); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--space-2); }
  .frames3 li { scroll-snap-align: start; }
  .next__title { font-size: 20px; }
}

/* ==========================================================================
   Brand 3.0 skin (colour v4, lifted dark, glass, 3 Dec 2026), the same system as the home page
   (home.css + 7vx-site-bridge.css). Pages sit on Ink 875; the only orange section on a page is its closing
   panel (.case-close); any other Signal ground becomes Ink 850, like Selected work on the home page.
   ========================================================================== */
.g-ink, .shot, .next { --border: var(--gold-line); --border-strong: rgb(199 162 102 / .34); --surface: var(--ink-850); --surface-raised: var(--ink-800); }
.cs.g-orange:not(.case-close) {
  --bg: var(--ink-850); --surface: var(--ink-800); --surface-raised: var(--ink-700); --border: var(--gold-line); --border-strong: rgb(199 162 102 / .34);
  --text: var(--brand-paper); --text-muted: var(--stone-300); --accent: var(--brand-signal); --accent-hover: #FF7A47; --accent-text: var(--brand-signal);
  --on-accent: var(--brand-ink); --focus: var(--brand-signal);
}
.case-close.g-orange { background: var(--flame-panel-heat), var(--brand-signal); }
.g-paper { --focus: #B83A0E; } /* Rust focus on light grounds */
.g-ink .eyebrow, .g-ink .label, .cs.g-orange:not(.case-close) .eyebrow { color: var(--flame-amber); }
.g-paper .eyebrow { color: var(--amber-deep); }
.g-ink .btn--primary:hover, .nav .btn--primary:hover { box-shadow: var(--flame-glow-btn); }
:focus-visible { outline-offset: 3px; }

/* header: floating glass pill (library 01) */
.nav { padding: 12px 12px 0; background: transparent; border-bottom: 0; }
.nav__bar { width: min(100%, var(--content-max) + 64px); height: 64px; padding-inline: 22px 10px; border-radius: var(--radius-round);
  background: rgba(28, 22, 19, .88); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--gold-line); box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .8); }
@media (max-width: 1023px) {
  /* no blur here: a backdrop-filter would make the pill the containing block of the fixed menu sheet inside it */
  .nav__bar { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(28, 22, 19, .94); }
  .nav.is-open { background: var(--bg); }
}

/* footer: a glass card over a low horizon glow on Ink 950 (library 53) */
.site-footer { background: radial-gradient(70% 120% at 15% 130%, rgba(255, 90, 31, .20), rgba(98, 27, 15, .18) 45%, rgba(15, 13, 12, 0) 70%), var(--ink-950); padding: var(--space-5) 0; }
.site-footer .closing__links { padding: var(--space-6) var(--space-6) var(--space-5); border: 1px solid var(--gold-line); border-radius: 12px;
  background: rgba(33, 26, 23, .55); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
@media (max-width: 639px) { .site-footer .closing__links { padding: var(--space-5) var(--space-4); } }

/* =====================================================================
   SKIN ROUND 2 (4 Dec 2026): the inner pages take the same library components as the home page
   (map: reports/skin-round2-map.md). Radii 12px for glass cards, 6px for media frames, pills for controls;
   one elevation (library glass over a glow); every section title carries the numbered header (12).
   ===================================================================== */
:root { --elev: 0 24px 60px -30px rgb(0 0 0 / .75); --elev-warm: 0 24px 60px -30px rgb(98 27 15 / .45); }

/* 12 · numbered header: number and gold rule above each section title */
main { counter-reset: sec; }
.cs .h-sec { counter-increment: sec; }
.cs .h-sec::before {
  content: counter(sec, decimal-leading-zero); content: counter(sec, decimal-leading-zero) / "";
  display: block; margin-bottom: var(--space-5); padding-bottom: var(--space-3); border-bottom: 1px solid var(--gold-rule);
  font: 400 13px/1 var(--font-display); letter-spacing: .2em; color: var(--brand-signal);
}
.g-paper .h-sec::before { color: var(--rust, #B83A0E); border-color: rgb(150 112 52 / .45); }
.g-orange .h-sec::before { color: var(--ink-950); border-color: rgb(15 13 12 / .3); }

/* 05 · buttons: Signal with the Ink arrow chip, glass secondary on dark */
.btn--primary { gap: 12px; padding-right: 4px; }
.btn--primary::after { content: ""; width: 34px; height: 34px; flex: none; border-radius: 999px;
  background: url("../brand/icons/7venx-icon-arrow-paper.svg") 50% 50% / 16px no-repeat, var(--ink-950); transition: transform .3s var(--ease); }
.btn--primary:hover::after { transform: translateX(3px) rotate(-45deg); }
.g-orange .btn--primary::after { background: url("../brand/icons/7venx-icon-arrow-ink.svg") 50% 50% / 16px no-repeat, var(--paper, #F3EDE4); }
.g-ink .btn--secondary, .nav .btn--secondary { background: rgb(243 237 228 / .07); border-color: transparent; box-shadow: inset 0 0 0 1px rgb(243 237 228 / .16); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
@media (prefers-reduced-motion: reduce) { .btn--primary:hover::after { transform: none; } }

/* 01 · nav links in the glass inner pill; 02 · the two-line menu that turns into the X */
@media (min-width: 1024px) {
  .nav__links { gap: 2px; padding: 4px; border-radius: 999px; background: rgb(243 237 228 / .06); box-shadow: inset 0 0 0 1px var(--gold-line); }
  .nav__link { padding: 8px 14px; border-radius: 999px; }
  .nav__link::after { display: none; }
  .nav__link:hover { background: rgb(243 237 228 / .08); }
}
@media (max-width: 1023px) {
  .nav__toggle { position: relative; width: 44px; padding: 0; font-size: 0; }
  .nav__toggle::before, .nav__toggle::after { content: ""; position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease), background-color .35s; }
  .nav__toggle::before { top: 18px; }
  .nav__toggle::after { top: 24px; left: 19px; }
  .nav__toggle[aria-expanded="true"]::before { transform: translateY(3px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"]::after { left: 13px; transform: translateY(-3px) rotate(-45deg); background: var(--brand-signal); }
}

/* glows: the case header gets the corner glow (07), later dark sections a low ember, Paper a soft haze */
.case-open.g-ink, .page.g-ink, main > .page:first-child { background: var(--glow-corner), var(--bg); }
.cs.g-ink:not(.case-open) { background: radial-gradient(45% 55% at 0% 100%, rgb(98 27 15 / .5), transparent 70%), var(--bg); }
.cs.g-paper { background: radial-gradient(38% 34% at 90% 0%, rgb(255 212 57 / .16), transparent 70%), radial-gradient(120% 95% at 85% 0%, rgb(255 90 31 / .08), transparent 62%), var(--bg); }

/* 08 · media slots: reel frames are Ink with a spot glow, 6px, gold hairline; 06 · glass tags and chips */
.shot { border-radius: 6px; border-color: rgb(243 237 228 / .14); }
.g-ink .slate { background: radial-gradient(closest-side at 50% 0%, rgb(255 90 31 / .20), transparent), var(--ink-900, #161210); }
.g-ink .tags li, .g-ink .chip { background: rgb(33 26 23 / .6); border-color: rgb(243 237 228 / .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* 61 · demo screens sit in a glass bezel on dark, a white card with the warm shadow on Paper */
.g-ink .scr { border-radius: 6px; box-shadow: 0 0 0 1px rgb(255 255 255 / .06), 0 0 0 9px rgb(243 237 228 / .06), 0 0 0 10px var(--gold-line), var(--elev); }
.g-paper .scr { border-radius: 12px; background: linear-gradient(140deg, rgb(255 255 255 / .8), rgb(255 255 255 / .5) 62%); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgb(255 255 255 / .6), var(--elev-warm); }

/* 56 · by the numbers: a strong top rule over the deliverables */
.dl { padding-top: var(--space-5); border-top: 1px solid var(--border-strong); }
