/* Layer 2 Media — the scroll story. Tokens live in tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/26px var(--font-sans);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--cinnabar-strong); text-underline-offset: 3px; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--cinnabar-strong); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--cinnabar-tint); color: var(--ink); }
[hidden] { display: none !important; }
h1, h2, h3, p, figure, dl, dd, ol { margin: 0; }
ol { padding: 0; list-style: none; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: var(--radius-md); }
.skip:focus { left: 8px; }

/* — type styles (tokens.json → type.groups) — */
.display-xl { font: 600 clamp(48px, 7vw, 104px)/0.95 var(--font-display); letter-spacing: -0.035em; text-wrap: balance; }
.display-l  { font: 600 clamp(34px, 4.2vw, 56px)/1.04 var(--font-display); letter-spacing: -0.025em; text-wrap: balance; }
.heading    { font: 600 clamp(22px, 2.2vw, 28px)/1.22 var(--font-display); letter-spacing: -0.01em; }
.subhead    { font: 500 clamp(18px, 1.5vw, 20px)/1.4 var(--font-sans); text-wrap: pretty; }
.body       { font: 400 16px/26px var(--font-sans); }
.small      { font: 400 14px/20px var(--font-sans); }
.label      { font: 600 12px/16px var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase; }
.muted      { color: var(--ink-muted); }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 48px); }

/* — buttons, links, chips — */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: flex-start; text-align: left;
  min-height: 40px; padding: 8px 16px; border-radius: var(--radius-md); border: 1.5px solid transparent;
  font: 600 15px/1.2 var(--font-sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, opacity .2s;
}
.btn-primary { background: var(--cinnabar-strong); color: var(--on-cinnabar); }
.btn-primary:hover { background: var(--cinnabar-deep); }
.on-ink .btn-primary:hover { background: #FF8A73; }
.btn-secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-lg { min-height: 52px; padding: 12px 22px; font-size: 16px; min-width: 220px; }
.link-quiet { color: var(--ink); font-weight: 500; font-size: 15px; text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 2px; }
.link-quiet:hover { text-decoration-color: var(--cinnabar-strong); }
.chip {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--radius-sm);
  font: 600 12px/16px var(--font-sans); letter-spacing: 0.04em;
  background: var(--surface-raised); color: var(--ink);
}
.chip-on-photo { position: absolute; left: 12px; top: 12px; background: rgba(20, 22, 26, .78); color: #F3EFE8; }
.show-sm { display: none; }

/* — header: lockup, CTA, progress bar, chapter dots — */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 30; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, #F7F4EE 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
}
.lockup img { height: 38px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); margin-left: auto; margin-right: clamp(8px, 2vw, 24px); }
.site-nav a { color: #14161A; text-decoration: none; font: 500 15px/1 var(--font-sans); padding: 8px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: #C8341D; }
.site-nav a[aria-current] { border-bottom-color: #C8341D; }
.menu-btn { display: none; width: 40px; height: 40px; border: 1.5px solid #DDD6CA; border-radius: var(--radius-md); background: transparent; cursor: pointer; padding: 0; position: relative; }
.menu-btn i { position: absolute; left: 11px; right: 11px; height: 2px; background: #14161A; border-radius: 1px; transition: transform .2s; }
.menu-btn i:first-of-type { top: 15px; } .menu-btn i:last-of-type { top: 22px; }
.menu-btn[aria-expanded="true"] i:first-of-type { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.header-actions .btn { transition: opacity .3s; }
.site-header.at-brief .header-actions .btn { opacity: .35; pointer-events: none; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #DDD6CA; }
.progress-fill { height: 100%; background: #C8341D; transform-origin: left; transform: scaleX(0); }
.chapter-dots { position: absolute; left: 0; right: 0; bottom: -6px; height: 15px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.site-header:not(:has(.site-nav.open)):hover .chapter-dots, .chapter-dots:focus-within { opacity: 1; pointer-events: auto; }
.chapter-dots button {
  position: absolute; top: 0; width: 15px; height: 15px; margin-left: -7px; padding: 0; cursor: pointer;
  border-radius: 50%; border: 3px solid #F7F4EE; background: #5C5A55;
}
.chapter-dots button.done { background: #C8341D; }
.chapter-dots button::after {
  content: attr(data-label); position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; font: 600 11px/1 var(--font-sans); background: #14161A; color: #F3EFE8;
  padding: 5px 7px; border-radius: 4px; opacity: 0; pointer-events: none; transition: opacity .15s;
}
.chapter-dots button:hover::after, .chapter-dots button:focus-visible::after { opacity: 1; }

/* — chapters: pinned scenes scrubbed by scroll (main.js sets --p) — */
.ch { position: relative; }
.ch[data-pin] { height: calc(var(--pin, 150) * 1vh); }
.ch[data-pin] > .ch-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: 64px; }
.ch.free { height: auto !important; }
.ch.free > .ch-pin { position: relative; height: auto; min-height: 0; overflow: visible; padding-block: calc(var(--space-16) + 32px) var(--space-16); }
.ch:not([data-pin]) > .ch-pin { padding-block: clamp(96px, 12vw, 160px); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ch-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; max-width: 520px; }
.stage { position: relative; width: 100%; aspect-ratio: 6 / 5; max-height: calc(100svh - 160px); }
.reveal-line { opacity: calc(var(--r, 1)); transform: translateY(calc((1 - var(--r, 1)) * 16px)); }

/* layer meter (fills as each Layer 2 part lands) */
.meter { display: flex; align-items: center; gap: 6px; }
.meter i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--ink-muted); }
.meter i.on:nth-child(1) { background: #FBDDD6; border-color: #FBDDD6; }
.meter i.on:nth-child(2) { background: #E8452C; border-color: #E8452C; }
.meter i.on:nth-child(3) { background: #C8341D; border-color: #C8341D; }
.meter i.on:nth-child(4) { background: #9E2A17; border-color: #9E2A17; }

/* — the stack: Layer 1 (the client's work) + four Layer 2 glass planes, floating
     in isometric 3D. Tints step up the red ramp; main.js scrubs and tilts it. — */
.iso-stack { position: relative; aspect-ratio: 1; width: 100%; container-type: inline-size; perspective: 1800px; --gap: 9cqw; }
.iso { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(56deg) rotateZ(-42deg); will-change: transform; }
.plane {
  position: absolute; left: 21%; top: 21%; width: 58%; height: 58%;
  border-radius: 7cqw; transform: translateZ(calc((var(--k) + 1) * var(--gap)));
  padding: 4.5cqw 5cqw; display: flex; gap: 2cqw; align-items: flex-start;
  font: 600 max(12px, 4.2cqw)/1.2 var(--font-sans);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .7),
    inset 0 0 0 1px rgba(255, 255, 255, .12),
    0 0 calc(var(--glow, 0) * 60px) calc(var(--glow, 0) * 6px) rgba(255, 106, 77, calc(var(--glow, 0) * .75));
  will-change: transform, opacity;
}
.plane b { font-family: var(--font-display); font-weight: 600; opacity: .75; }
.plane.l1 { padding: 0; overflow: hidden; background: #14161A; border-color: rgba(255, 255, 255, .25); }
.plane.l1 img, .plane.l1 video { width: 100%; height: 100%; object-fit: cover; object-position: 30% 70%; }
.plane.l1-plain { background: linear-gradient(135deg, #3A3D44, #14161A); }
.floor-glow {
  position: absolute; left: 6%; right: 6%; top: 34%; height: 50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 69, 44, .42), rgba(232, 69, 44, 0));
  filter: blur(14px); transform: translateY(14%);
}
.s1 { background: linear-gradient(135deg, rgba(255, 238, 233, .92), rgba(251, 200, 186, .62)); color: #14161A; }
.s2 { background: linear-gradient(135deg, rgba(255, 150, 126, .82), rgba(232, 69, 44, .58)); color: #14161A; }
.s3 { background: linear-gradient(135deg, rgba(240, 84, 56, .86), rgba(200, 52, 29, .66)); color: #FFFFFF; }
.s4 { background: linear-gradient(135deg, rgba(200, 52, 29, .94), rgba(120, 28, 12, .8)); color: #FFFFFF; }

/* flat-on sheets used in single-layer scenes (ch 3, ch 6): same glass, tilted in JS */
.sheet {
  position: absolute; border-radius: var(--radius-lg); padding: 14px 16px; display: flex; gap: 10px; align-items: flex-start;
  font: 600 clamp(13px, 1.1vw, 15px)/1.25 var(--font-sans); border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 30px 60px -24px rgba(158, 42, 23, .55);
  will-change: transform, opacity;
}
.sheet b { font-family: var(--font-display); font-weight: 600; opacity: .75; }

/* 01 opening */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero-title .line { display: inline-block; animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-title .line:nth-child(2) { animation-delay: .08s; }
.hero-title .line:nth-child(3) { animation-delay: .16s; color: var(--cinnabar); }
.hero-lede { max-width: 32ch; animation: rise .9s .24s cubic-bezier(.2, .7, .2, 1) both; }
.hero-ctas { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; animation: rise .9s .32s cubic-bezier(.2, .7, .2, 1) both; }
.hero-explainer { max-width: 44ch; color: var(--ink-muted); border-top: 2px solid var(--line); padding-top: 14px; }
.hero-explainer strong { color: var(--ink); }
.hero-stack { max-width: min(600px, calc(100svh - 180px)); justify-self: end; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.scroll-cue { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); font: 600 12px/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); opacity: calc(1 - var(--p, 0) * 8); }
.scroll-cue span { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }

/* editorial page mockups */
.page {
  background: #FFFDF9; color: #14161A; border-radius: var(--radius-lg); padding: 18px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 0 #DDD6CA;
}
.page .page-mast img { height: 18px; width: auto; max-width: 70%; border-radius: 0; aspect-ratio: auto; object-fit: contain; }
.page.fan .page-mast img { height: 14px; }
.page.fan .page-mast img[src*="guardian"] { height: 24px; margin-block: -5px; }
.page-mast { font: 600 15px/1 Georgia, "Times New Roman", serif; letter-spacing: .02em; padding-bottom: 8px; border-bottom: 1px solid #DDD6CA; }
.page-head { font: 600 20px/1.15 Georgia, "Times New Roman", serif; }
.page img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.page-lines { display: grid; gap: 7px; }
.page-lines i { display: block; height: 7px; border-radius: 4px; background: #E6E0D5; width: 100%; }
.placement { position: relative; border-radius: 8px; overflow: hidden; outline: 2px solid #C8341D; outline-offset: 3px; }
.placement img { aspect-ratio: 16 / 7; border-radius: 0; }
.placement-line { height: 44px; background: #FBDDD6; }
.ad-block {
  position: absolute; left: 0; bottom: 0; display: flex; flex-direction: column; gap: 2px;
  background: #E8452C; color: #14161A; padding: 10px 14px; border-top-right-radius: 10px;
}
.ad-brand { font: 600 15px/1.1 var(--font-display); letter-spacing: -0.01em; }
.ad-line { font: 500 12px/1.3 var(--font-sans); }
.ad-cta { font: 600 12px/1.3 var(--font-sans); margin-top: 4px; }

/* 02 where & who: pages fan out, then signals light up and feed the stack */
.ww-stage { display: grid; place-items: center; }
.ww-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 3; pointer-events: none; }
.ww-links path { fill: none; stroke: #FF6A4D; stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; }
.page.fan { position: absolute; width: 38%; left: 31%; top: 0; padding: 12px; gap: 8px; z-index: 2; will-change: transform, opacity; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .6); }
.page.fan .page-mast { font-size: 12px; }
.page.fan .page-lines i { height: 5px; }
.page.fan .placement-line { height: 30px; }
.sig { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #FF6A4D; box-shadow: 0 0 0 5px rgba(255, 106, 77, .28), 0 0 18px rgba(255, 106, 77, .8); opacity: 0; z-index: 2; }
.sig::after {
  content: attr(data-tag); position: absolute; left: 18px; top: 50%; transform: translateY(-50%); white-space: nowrap;
  font: 600 11px/1 var(--font-sans); color: #F3EFE8; background: rgba(20, 22, 26, .88); padding: 5px 7px; border-radius: 5px;
}
.sheet.solo { left: 27%; top: 60%; width: 36%; height: auto; aspect-ratio: 1.6; z-index: 4; font-size: clamp(14px, 1.3vw, 18px); padding: 16px; }
.sheet.solo-2 { left: 37%; top: 68%; z-index: 5; }
.explainers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
.explainer { padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface-raised); opacity: var(--r, 1); transform: translateY(calc((1 - var(--r, 1)) * 12px)); }
.explainer dt { font-weight: 600; font-size: 14px; color: var(--cinnabar); }
.explainer dd { font-size: 14px; line-height: 1.4; color: var(--ink); }
.pillars { display: grid; gap: 0; width: 100%; }
.pillars li { display: flex; gap: 14px; padding: 14px 0; border-top: 2px solid var(--line); opacity: .45; transition: opacity .25s, border-color .25s; }
.pillars li.on { opacity: 1; border-top-color: var(--cinnabar); }
.pillars b { font: 600 15px/1.4 var(--font-display); color: var(--cinnabar); }
.pillars h3 { font: 600 20px/1.25 var(--font-display); margin-bottom: 4px; }
.pillars p { color: var(--ink-muted); font-size: 15px; line-height: 1.45; }

/* 03 creative morph (signature) */
.morph-stage { aspect-ratio: 5 / 6; max-width: 560px; justify-self: center; }
.morph-article { position: absolute; inset: 0; padding: 22px; gap: 12px; }
.morph-article .morph-article-img { aspect-ratio: 16 / 7; }
.morph-slot { height: 30%; flex: none; border-radius: 8px; }
.post {
  position: absolute; z-index: 2; display: flex; flex-direction: column; overflow: hidden;
  background: #FFFFFF; color: #14161A; border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(20, 22, 26, .18);
}
.post-head { display: flex; align-items: center; gap: 10px; padding: 0 14px; flex: none; overflow: hidden; font-size: 14px; line-height: 1.2; }
.post-head small { display: block; color: #5C5A55; font-size: 12px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #E8452C; flex: none; box-shadow: inset 0 0 0 3px #FBDDD6; }
.post-img { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.post-img > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.post-foot { display: flex; gap: 16px; padding: 0 14px; align-items: center; flex: none; overflow: hidden; font-size: 13px; font-weight: 600; }
.crop-grid, .crop-marks { position: absolute; inset: 0; pointer-events: none; }
.crop-grid i { position: absolute; background: rgba(255, 255, 255, .85); }
.crop-grid i:nth-child(1) { left: 33.33%; top: 0; bottom: 0; width: 1px; }
.crop-grid i:nth-child(2) { left: 66.66%; top: 0; bottom: 0; width: 1px; }
.crop-grid i:nth-child(3) { top: 33.33%; left: 0; right: 0; height: 1px; }
.crop-grid i:nth-child(4) { top: 66.66%; left: 0; right: 0; height: 1px; }
.crop-marks i { position: absolute; width: 22px; height: 22px; border: 0 solid #FFFFFF; }
.crop-marks i:nth-child(1) { left: 8px; top: 8px; border-width: 3px 0 0 3px; }
.crop-marks i:nth-child(2) { right: 8px; top: 8px; border-width: 3px 3px 0 0; }
.crop-marks i:nth-child(3) { left: 8px; bottom: 8px; border-width: 0 0 3px 3px; }
.crop-marks i:nth-child(4) { right: 8px; bottom: 8px; border-width: 0 3px 3px 0; }
.post-ad { transform-origin: left bottom; }
.steps { display: grid; gap: 4px; width: 100%; }
.steps li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-top: 2px solid var(--line); color: var(--ink-muted); font-weight: 500; transition: color .2s; }
.steps li b { font-family: var(--font-display); }
.steps li.on { color: var(--ink); border-top-color: var(--cinnabar-strong); }

/* 04 tuning → funnel (swap in one place) */
.swap { display: grid; }
.swap > * { grid-area: 1 / 1; will-change: opacity, transform; }
.label.accent { color: var(--cinnabar-strong); }
.tuning-panel { position: relative; width: 100%; align-self: center; background: var(--surface-raised); border-radius: var(--radius-lg); padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 18px; }
.tuning-panel > .label { color: var(--ink-muted); }
.bars { display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: 110px 1fr 44px; gap: 12px; align-items: center; font-size: 14px; }
.bar-track { display: block; height: 10px; border-radius: 5px; background: #2E3238; overflow: hidden; }
.bar-fill { display: block; width: 100%; height: 100%; background: #FF6A4D; border-radius: 5px; transform-origin: left; }
.bar-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; }
.chart-up { color: #F2B655; font: 600 22px/1 var(--font-display); }
.chart svg { width: 100%; height: 120px; overflow: visible; }
#chart-line { fill: none; stroke: #F2B655; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* 07 full stack + funnel */
.full-stack { display: grid; gap: clamp(28px, 5vh, 64px); }
.full-copy { position: relative; z-index: 2; }
.full-copy > div { display: grid; gap: 12px; align-content: start; }
.full-copy .subhead { max-width: 46ch; }
.full-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.big-stack { max-width: min(480px, calc(100svh - 300px)); justify-self: center; will-change: transform; }
.funnel { display: grid; gap: 12px; justify-items: start; }
.funnel li {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-raised);
  padding: clamp(16px, 2.2vh, 24px) 22px; display: flex; align-items: center; min-height: 72px;
  font: 600 clamp(17px, 1.6vw, 22px)/1.2 var(--font-display); letter-spacing: -0.01em;
}
.funnel li:nth-child(1) { width: 100%; }
.funnel li:nth-child(2) { width: 84%; }
.funnel li:nth-child(3) { width: 72%; }
.band-fill { position: absolute; inset: 0; background: #FBDDD6; transform-origin: left; transform: scaleX(0); }
.funnel li.gold .band-fill { background: #E9A23B; }
.band-text { position: relative; }
.funnel li { gap: 16px; }
.band-val { position: relative; margin-left: auto; font: 600 clamp(22px, 2.2vw, 30px)/1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.loop-ch > .ch-pin { padding-block: clamp(80px, 10vw, 140px); }
.results-live { display: grid; gap: 16px; align-self: center; }
.live-head { display: flex; align-items: center; gap: 10px; color: var(--ink-muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #E8452C; box-shadow: 0 0 0 0 rgba(232, 69, 44, .6); animation: live 1.6s ease-out infinite; }
@keyframes live { to { box-shadow: 0 0 0 10px rgba(232, 69, 44, 0); } }

/* proof: compact logo strip under the hero, runs on its own */
.proof { border-block: 2px solid var(--line); background: var(--paper); }
.proof-row { display: flex; align-items: center; gap: 16px 32px; padding-block: 18px; }
.proof-title { color: var(--ink-muted); flex: none; margin: 0; }
.drift {
  flex: 1; min-width: 0; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.drift-row { display: flex; align-items: center; gap: 40px; width: max-content; animation: drift 50s linear infinite; }
.drift:hover .drift-row { animation-play-state: paused; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }
.drift-row span { font: 600 22px/1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.drift-row span:nth-child(3n+2) { color: var(--ink-muted); }
.drift-row span.mark { width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, #FF6A4D, #9E2A17); }

/* 06 cases: side by side, details reveal on enter */
.cases-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.cases-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); align-items: start; }
.case-panel { display: grid; gap: 22px; opacity: var(--c, 1); transform: translateY(calc((1 - var(--c, 1)) * 32px)); }
.layered-img { position: relative; padding: 0 22px 22px 0; }
.layered-img::after { content: ""; position: absolute; right: 0; bottom: 0; width: 34%; height: 40%; border-radius: var(--radius-lg); background: #E8452C; z-index: 0; }
.layered-img img { position: relative; z-index: 1; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); }
.case-body { display: grid; gap: 14px; }
.case-body .heading { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.05; }
.case-step { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding-top: 12px; border-top: 2px solid var(--line); opacity: var(--r, 1); transform: translateY(calc((1 - var(--r, 1)) * 12px)); }
.case-step .label { color: var(--cinnabar-strong); padding-top: 4px; }
.case-step p { font-size: 15px; line-height: 1.5; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { background: var(--cinnabar-tint); border-radius: var(--radius-md); padding: 12px; display: grid; gap: 4px; align-content: start; opacity: var(--r, 1); transform: translateY(calc((1 - var(--r, 1)) * 16px)); }
.tile.gold { background: #E9A23B; }
.tile-v { font: 600 clamp(24px, 2.4vw, 34px)/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tile-l { font-size: 12px; line-height: 1.3; }

/* 10 agencies */
.agencies { background: var(--surface-raised); }
.draw-rule { height: 3px; border: 0; margin: 24px 0 8px; background: var(--ink); transform-origin: left; transform: scaleX(var(--rule, 1)); }
.beats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.beat { padding: 20px 0; display: grid; gap: 8px; align-content: start; opacity: var(--r, 1); transform: translateY(calc((1 - var(--r, 1)) * 16px)); }
.beat b { font: 600 14px/1 var(--font-display); color: var(--cinnabar-strong); }
.beat h3 { font: 600 22px/1.2 var(--font-display); letter-spacing: -0.01em; }
.beat p { color: var(--ink-muted); max-width: 34ch; }
.team-line { margin-top: 40px; padding-top: 24px; border-top: 2px solid var(--line); max-width: 30ch; font-size: clamp(26px, 3vw, 40px); line-height: 1.12; }
.team-sub { margin: 14px 0 24px; max-width: 52ch; }

/* 11 what's next */
.next { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.next-copy { display: grid; gap: 16px; }
.next-copy .label { color: var(--cinnabar); }
.next-stage { position: relative; display: flex; align-items: center; gap: 0; }
.quiet-stack { width: 42%; flex: none; }
.connector { flex: 1 1 0; min-width: 0; width: auto; height: 20px; overflow: visible; }
#connector-line { stroke: #FF6A4D; stroke-width: 2.5; stroke-dasharray: 8 8; vector-effect: non-scaling-stroke; }
.future-slot { width: 22%; margin-right: 4%; aspect-ratio: 1; flex: none; border: 2.5px dashed #FF6A4D; border-radius: var(--radius-lg); display: grid; place-items: center; font: 600 40px/1 var(--font-display); color: #FF6A4D; }

/* 12 brief: the system's one poster moment */
.brief { background: #C8341D; color: #FFFFFF; scroll-margin-top: 64px; }
.brief-grid { padding-block: clamp(96px, 12vw, 160px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.brief-copy { display: grid; gap: 18px; position: relative; }
.brief-copy .subhead { font-size: clamp(20px, 2vw, 26px); }
a.on-red { color: #FFFFFF; font-weight: 600; }
.brief-mark { position: relative; width: 140px; height: 140px; margin-top: 24px; }
.brief-mark i { position: absolute; width: 90px; height: 90px; border-radius: 20px; }
.brief-mark i:first-child { left: 0; top: 0; background: #14161A; }
.brief-mark i:last-child { left: 40px; top: 40px; background: #F7F4EE; }
.brief-card { background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 36px); }
.brief-card { display: grid; gap: 16px; justify-items: start; }
.brief-email { font: 600 clamp(26px, 3.2vw, 40px)/1.1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; word-break: break-word; }
.brief-email:hover { color: var(--cinnabar-strong); }
.brief-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; width: 100%; }
.brief-list li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.45; }
.brief-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, #FF6A4D, #9E2A17); }

/* footer */
.site-footer { padding-block: 40px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-lockup { height: 40px; width: auto; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--ink); }

/* ═════ legal pages ═════ */
.legal { max-width: 760px; margin: 0 auto; padding: 120px clamp(16px, 4vw, 48px) clamp(64px, 8vw, 120px); display: grid; gap: 14px; }
.legal h1 { margin-bottom: 4px; }
.legal .subhead { margin-bottom: 12px; }
.legal h2 { margin-top: 28px; padding-top: 20px; border-top: 2px solid var(--line); }
.legal h3 { font: 600 17px/1.3 var(--font-display); margin-top: 6px; }
.legal p, .legal li { font-size: 16px; line-height: 1.65; max-width: 68ch; }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* ═════ case study page ═════ */
.case { max-width: 1120px; margin: 0 auto; padding: 120px clamp(16px, 4vw, 48px) clamp(64px, 8vw, 120px); display: grid; gap: 40px; }
.back { font-weight: 600; text-decoration: none; }
.case-head { display: grid; gap: 16px; justify-items: start; }
.case-head .chip { background: var(--cinnabar-tint); }
.case-hero.layered-img img { aspect-ratio: 16 / 8; }
.case-row { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 16px 40px; border-top: 2px solid var(--line); padding-top: 24px; }
.case-row > p { font-size: 18px; line-height: 1.55; max-width: 60ch; }
.sol { display: grid; gap: 18px; }
.sol > div { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: 4px 24px; }
.sol .label { color: var(--cinnabar-strong); padding-top: 4px; }
.case .tiles .tile { padding: 20px; }
.case .tile-v { font-size: clamp(36px, 4.4vw, 60px); }
.case .tile-l { font-size: 14px; }
.case-cta { background: var(--ink); color: var(--paper); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.case-cta .btn-primary:hover { background: #E8452C; }
.next-link { font-weight: 600; text-decoration: none; justify-self: start; }

/* ═════ gradients, glow and depth ═════ */
.ch[data-ch="opening"] > .ch-pin {
  background:
    radial-gradient(60% 70% at 78% 58%, rgba(232, 69, 44, .16), rgba(232, 69, 44, 0) 70%),
    radial-gradient(40% 50% at 8% 10%, rgba(233, 162, 59, .12), rgba(233, 162, 59, 0) 70%),
    var(--paper);
}
.hero-title .line:nth-child(3) {
  background: linear-gradient(100deg, #FF6A4D 0%, #E8452C 40%, #9E2A17 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .12em; margin-bottom: -.12em;
}
.on-ink {
  background:
    radial-gradient(70% 60% at 85% 30%, rgba(200, 52, 29, .30), rgba(200, 52, 29, 0) 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(242, 182, 85, .10), rgba(242, 182, 85, 0) 70%),
    #14161A;
}
.ch.on-ink > .ch-pin { background: inherit; }
.btn-primary { background-image: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0)); }
.meter i.on:nth-child(1) { background: linear-gradient(135deg, #FFEEE9, #FBC8BA); }
.meter i.on:nth-child(2) { background: linear-gradient(135deg, #FF967E, #E8452C); }
.meter i.on:nth-child(3) { background: linear-gradient(135deg, #F05438, #C8341D); }
.meter i.on:nth-child(4) { background: linear-gradient(135deg, #C8341D, #781C0C); }
.sheet.s1 { background: linear-gradient(135deg, #FFEEE9, #FBC8BA); }
.sheet.s4 { background: linear-gradient(135deg, #D53A22, #781C0C); }
.page.fan { box-shadow: 0 30px 60px -28px rgba(20, 22, 26, .35); }
.bar-fill { background: linear-gradient(90deg, #C8341D, #FF6A4D 70%, #F2B655); }
.tuning-panel { background: linear-gradient(160deg, #262A31, #1A1C21); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 80px -40px rgba(0, 0, 0, .6); }
.band-fill { background: linear-gradient(90deg, #FBDDD6, #FF967E 70%, #E8452C); }
.funnel li.gold .band-fill { background: linear-gradient(90deg, #F7D49A, #E9A23B); }
.layered-img::after { background: linear-gradient(135deg, #FF6A4D, #9E2A17); }
.layered-img img { box-shadow: 0 30px 60px -30px rgba(20, 22, 26, .45); }
.tile { background: linear-gradient(160deg, #FFEEE9, #FBDDD6); }
.tile.gold { background: linear-gradient(160deg, #F7D49A, #E9A23B); }
.agencies { background: linear-gradient(180deg, #EFEAE1, #F7F4EE); }
.future-slot { box-shadow: 0 0 calc(var(--port, 0) * 50px) calc(var(--port, 0) * 4px) rgba(255, 106, 77, .45), inset 0 0 calc(var(--port, 0) * 30px) rgba(255, 106, 77, .35); }
.brief {
  background:
    radial-gradient(60% 80% at 90% 10%, rgba(255, 150, 126, .45), rgba(255, 150, 126, 0) 60%),
    linear-gradient(135deg, #D53A22 0%, #C8341D 45%, #8E2414 100%);
}
.brief-mark i:first-child { background: linear-gradient(135deg, #2A2D33, #14161A); }
.brief-mark i:last-child { background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(247, 244, 238, .7)); }
.brief-card { box-shadow: 0 40px 80px -40px rgba(60, 10, 0, .55); }

/* ═════ responsive ═════ */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  /* lighter rendering on phones and tablets */
  .floor-glow { filter: none; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #F7F4EE; }
  .iso, .plane, .sheet, .page.fan, .drift-row, .post, .reveal-line { will-change: auto; }
}
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .site-nav {
    position: absolute; top: 64px; left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #F7F4EE; border-bottom: 2px solid #DDD6CA; padding: 8px clamp(16px, 4vw, 48px) 16px;
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .site-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid #DDD6CA; font-size: 17px; }
  .site-nav a[aria-current] { border-bottom-color: #DDD6CA; color: #C8341D; }
  .funnel li { width: 100% !important; }
  .hero, .split, .next, .full-stage, .brief-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 24px; }
  .hero-stack { justify-self: center; width: min(100%, 380px); }
  .ch[data-mpin] .hero-copy { gap: 14px; }
  .ch[data-mpin] .hero-explainer { display: none; }
  .stage { max-height: none; }
  .beats { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cases-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .next-stage { max-width: 420px; width: 100%; }
  .morph-stage { width: min(100%, 360px); aspect-ratio: 4 / 5; }
  .morph-article { overflow: hidden; }
  .ch[data-ch="creative"] .ch-copy .subhead { display: none; }
  .ch[data-ch="creative"] .split, .ch[data-ch="stack"] .full-stage { gap: 16px; }
  .ch[data-ch="stack"] .big-stack { width: min(46vw, 200px); }
  .ch[data-ch="stack"] .full-copy .subhead { display: none; }
  .ww-stage { aspect-ratio: 1; }
  .page.fan { width: 33%; left: 33.5%; }
  .sig::after { display: none; }
  .ch[data-ch="wherewho"] .pillars p { display: none; }
  .funnel li { min-height: 0; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .proof-row { flex-direction: column; align-items: stretch; gap: 10px; padding-block: 14px; }
  .drift-row span { font-size: 18px; }
  .show-sm { display: inline; }
  .lockup img { height: 32px; }
  .case-row, .sol > div { grid-template-columns: minmax(0, 1fr); }
  .case-step { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title .line, .hero-lede, .hero-ctas, .scroll-cue span, .drift-row { animation: none; }
  .drift-row { flex-wrap: wrap; width: auto; row-gap: 12px; }
}
