/* Scroll story, built on the restored V4 composition. */
html { scroll-padding-top: calc(var(--nav-h) + 2rem); }
.chapter[id] { scroll-margin-top: calc(var(--nav-h) + 2rem); }
.btn-cta { white-space: nowrap; }
.btn-cta .arrow { width: 1.4rem; height: 1.4rem; flex: none; }
.stage-tag { position: absolute; top: 1rem; left: 4.2%; z-index: 5; color: rgba(244,239,232,.72); font-size: .6rem; }
.stage-tag b, .screen-meta b { color: var(--cream); }
.screen-meta { margin-top: .8rem; color: rgba(244,239,232,.65); }
.screen { isolation: isolate; }
.screen.is-transforming .clip-inner { transform: none; }
.screen.is-transforming .clip-play { pointer-events: none; }
.stage-caption { position: relative; z-index: 3; }
.distribution-map, .encounters { margin: 0; min-width: 0; }
.discovery-story { grid-column: 1 / -1; margin-top: 2rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-panel); padding: clamp(1.25rem,3vw,3rem); }
.diagram-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; }
.diagram-heading .h3 { font-size: clamp(1.45rem,2.4vw,2.4rem); max-width: 20ch; }
.diagram-heading .body-2 { max-width: 38ch; }
.network-graph { width: 100%; height: auto; display: block; margin: 2rem 0 1rem; overflow: visible; }
.network-graph text { font-family: var(--sans); font-size: 18px; fill: var(--ink); }
.network-graph .graph-labels text, .network-graph .graph-mono { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; fill: var(--ink-2); }
.graph-guides path { fill: none; stroke: var(--rule); stroke-dasharray: 3 7; }
.flow-paths path { fill: none; stroke: var(--magenta); stroke-width: 2; stroke-linecap: butt; }
.flow-paths [data-stage="3"] path { stroke-width: 1.25; opacity: .7; }
path[pathLength] { stroke-dasharray: 1 1; }
.source-node rect:first-child { fill: var(--ink); }
.source-node text { fill: var(--cream); font-weight: 500; }
.source-node .graph-mono { fill: rgba(244,239,232,.62); }
.cut-nodes .cut-mark rect:first-child { fill: var(--tint-coral); stroke: var(--magenta); }
.cut-nodes .cut-mark rect + rect { fill: var(--magenta); opacity: .55; }
.platform-node path { fill: none; stroke: var(--rule-strong); }
.platform-node circle { fill: var(--ink); }
.platform-node--reels circle { fill: var(--reels); }
.platform-node--shorts circle { fill: var(--shorts); }
.account-nodes circle { fill: var(--cream); stroke: var(--rule-strong); }
.map-mobile { display: none; }
.distribution-map > .meta, .encounters > .meta { font-size: .65rem; letter-spacing: .04em; }
.encounters { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--rule); }
.encounter-chart { position: relative; margin-block: 2rem 1.5rem; }
.encounter-axis { position: absolute; top: 0; bottom: 2.5rem; left: 15%; right: 0; display: flex; justify-content: space-between; pointer-events: none; }
.encounter-axis span { border-left: 1px dashed var(--rule); }
.encounter-row { position: relative; display: grid; grid-template-columns: 15% 1fr; align-items: center; min-height: 105px; }
.lane-label { font-size: .85rem; padding-right: 1rem; }
.encounter-lane { position: relative; height: 100%; min-height: 105px; }
.lane-line { position: absolute; top: 50%; height: 1px; left: 0; width: 100%; background: var(--rule-strong); transform-origin: left; }
.encounter-mark { position: absolute; left: var(--at); top: 50%; transform: translateY(-50%); width: 48px; height: 76px; object-fit: cover; border-radius: 5px; box-shadow: 0 8px 16px -8px rgba(10,10,12,.4); }
.encounter-note { position: absolute; top: 50%; left: var(--at); transform: translateY(-50%); background: var(--surface); padding: .35rem .7rem; color: var(--ink-2); font-size: .85rem; }
.time-direction { margin-left: 15%; display: flex; align-items: center; justify-content: space-between; color: var(--ink-2); font-size: .75rem; padding-top: 1rem; }
.time-direction span:last-child { font-size: 1.6rem; line-height: 1; }
/* The existing process composition becomes a reader-paced sequence. */
#how-it-works { overflow: visible; }
#how-it-works .ghost { max-width: 100%; overflow: hidden; right: 0; }

.mechanism-panel { margin-top: 1rem; }
.mechanism { min-width: 0; }
.mechanism + .mechanism { border-left: 1px solid var(--rule); padding-left: var(--gutter); }
.mechanism .body-2 { margin-top: .6rem; }
.mechanism svg { display: block; width: 100%; height: auto; margin-top: 1.5rem; }
.mechanism-nodes rect { fill: var(--surface); stroke: var(--rule-strong); }
.mechanism-nodes .cut-node { fill: var(--tint-coral); stroke: var(--magenta); }
.mechanism svg text { font-family: var(--sans); font-size: 13px; text-anchor: middle; fill: var(--ink); }
.mechanism svg .mechanism-label { font-size: 12px; fill: var(--ink-2); }
.mechanism-paid .flow-paths path { stroke: var(--ink-2); }
.mechanism-key { display: flex; justify-content: space-between; font-size: .72rem; color: var(--ink-2); padding: .5rem 3% 0; }
/* Stable nav geometry keeps scroll measurements and anchors reliable. */
.site-nav, .site-nav.is-scrolled { padding-block: .9rem; transition: border-color 180ms var(--ease-out), background-color 180ms var(--ease-out), color 180ms var(--ease-out); }
.nav-toggle { display: none; }
/* Content is visible before JavaScript, and with reduced motion. */
[data-reveal] { opacity: 1; transform: none; }
html.has-motion [data-reveal]:not(.is-in):not(.h2) { opacity: 0; transform: translateY(16px); }
html.no-motion .hero-title .ln, html.no-motion .h2 .ln { transform: none; }
html.no-motion .clip-play, html.no-motion .film-ctl { display: none; }
html.no-motion *, html.no-motion *::before, html.no-motion *::after { animation: none !important; transition: none !important; }
@media (hover: none), (pointer: coarse) { .btn:hover { transform: none; } }

@media (max-width: 1100px) { .site-nav { gap: 1rem; } .nav-links { gap: 1rem; } .nav-links a, .nav-links button { font-size: .82rem; } }
.nav-links .nav-menu-only { display: none; }
@media (max-width: 860px) {
  .stage-tag { position: static; margin-bottom: .8rem; font-size: .55rem; }
  .screen-meta { font-size: .6rem; }
  .discovery-story { margin-top: .5rem; }
  .diagram-heading { display: block; }
  .diagram-heading .body-2 { margin-top: .8rem; }
  .network-graph { display: none; }
  .map-mobile { display: flex; flex-direction: column; align-items: center; padding-block: 1.5rem; }
  .map-mobile > .source-mark { width: min(100%,320px); }
  .map-trunk { height: 2rem; width: 1px; background: var(--magenta); }
  .map-mobile > p { font-size: .8rem; }
  .mobile-cuts { display: grid; grid-template-columns: repeat(5,1fr); gap: .6rem; width: 100%; max-width: 320px; padding-top: 1rem; }
  .mobile-accounts { display: flex; gap: .45rem; justify-content: center; margin-top: 1rem; }
  .mobile-accounts i { width: .6rem; height: .6rem; border-radius: 50%; border: 1px solid var(--rule-strong); }
  .mobile-platforms { display: flex; justify-content: space-around; gap: .7rem; width: 100%; max-width: 320px; font-size: .75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--magenta); }
  .encounters { margin-top: 1.5rem; padding-top: 1.5rem; }
  .encounter-row { grid-template-columns: 24% 1fr; }
  .encounter-axis { left: 24%; }
  .time-direction { margin-left: 24%; }
  .lane-label { font-size: .7rem; padding-right: .5rem; }
  .encounter-mark { width: 35px; height: 60px; }
  .encounter-note { display: none; }
  
  
  
  
  
  .mechanism + .mechanism { border-left: none; border-top: 1px solid var(--rule); padding: 1.5rem 0 0; }
  .mechanism svg { margin-top: .5rem; }
  .site-nav { gap: .65rem; }
  .site-nav .nav-right .btn { font-size: .72rem; padding: .85em .8em; }
  .site-nav .nav-right .dot { display: none; }
  .brand-word { font-size: 1rem; }
  .nav-toggle { display: block; font: .8rem var(--sans); color: inherit; background: transparent; border: 1px solid var(--rule); border-radius: 5px; padding: .5rem .75rem; min-height: 2.75rem; min-width: 2.75rem; }
  .nav-right { gap: .6rem; }
  /* Phone menu sheet (gate 2): always laid out, shown by opacity and transform so the same path runs in and out and a tap mid-flight reverses from the live value. */
  .has-js .site-nav .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; top: 100%; left: var(--pad); right: var(--pad); padding: .35rem 1rem; background: rgba(244, 239, 232, .94); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border: 1px solid var(--rule); border-radius: 12px; transform-origin: top right; opacity: 0; visibility: hidden; pointer-events: none; transform: scale(.94) translateY(-6px); transition: transform 280ms cubic-bezier(.32, .72, 0, 1), opacity 200ms ease-out, visibility 0s linear 280ms; }
  .has-js .site-nav.is-menu-open .nav-links { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: transform 280ms cubic-bezier(.32, .72, 0, 1), opacity 200ms ease-out, visibility 0s; }
  .has-js .site-nav .nav-links li + li { border-top: 1px solid var(--rule); }
  .has-js .site-nav .nav-links a { display: flex; align-items: center; min-height: 2.75rem; padding-block: .5rem; border-bottom: 0; font-size: 1rem; transition: color 150ms ease-out; }
  .site-nav.is-menu-open .learn-panel { top: calc(100% + 6.5rem); }
  .learn-panel ul { grid-template-columns: 1fr; row-gap: 1rem; }
  /* Phone menu (Levi, 2026-10-02): no Learn dropdown, its pages listed as plain links. */
  .nav-links .nav-learn, .site-nav .learn-panel { display: none !important; }
  .nav-links .nav-menu-only { display: list-item; }
  .footer .footer-col, .footer .footer-legal { grid-column: 1 / -1; }
  .calendly-inline-widget { min-width: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .has-js .site-nav .nav-links { transform: none; }
  [data-reveal], .h2 .ln, .hero-title .ln { opacity: 1 !important; transform: none !important; }
}

/* The homepage keeps html.no-motion, which kills every transition above; the phone menu sheet re-enables its own, and only when the visitor has not asked for reduced motion. */
@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
  html.has-js.no-motion .site-nav .nav-links { transition: transform 280ms cubic-bezier(.32, .72, 0, 1), opacity 200ms ease-out, visibility 0s linear 280ms !important; }
  html.has-js.no-motion .site-nav.is-menu-open .nav-links { transition: transform 280ms cubic-bezier(.32, .72, 0, 1), opacity 200ms ease-out, visibility 0s !important; }
}

/* Gate 3: on a phone the nav is a translucent layer, not an opaque strip. The material sits on ::before so the menu sheet (a child of the nav) keeps its own backdrop blur. A soft edge fade replaces the 1px rule. No layout property transitions. */
@media (max-width: 860px) {
  .site-nav, .site-nav.is-scrolled, .site-nav.is-inverse { background: transparent; border-bottom-color: transparent; }
  .site-nav::before, .site-nav::after { content: ""; position: absolute; left: 0; right: 0; z-index: -1; pointer-events: none; }
  .site-nav::before { top: 0; bottom: 0; background: rgba(244, 239, 232, .72); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); transition: background-color 180ms var(--ease-out); }
  .site-nav.is-inverse::before { background: rgba(10, 10, 12, .72); }
  .site-nav::after { top: 100%; height: 14px; background: linear-gradient(to bottom, rgba(10, 10, 12, .08), rgba(10, 10, 12, 0)); opacity: 0; transition: opacity 180ms var(--ease-out); }
  .site-nav.is-scrolled::after { opacity: 1; }
  .site-nav.is-inverse::after { background: linear-gradient(to bottom, rgba(244, 239, 232, .1), rgba(244, 239, 232, 0)); }
}

html:not(.has-js) .clip-play, html:not(.has-js) .film-ctl { display: none; }
@media (max-width: 860px) {
 html:not(.has-js) .site-nav { flex-wrap: wrap; }
 html:not(.has-js) .nav-links { display: flex; flex-wrap: wrap; }
 html:not(.has-js) .nav-links button { display: none; }
}

#how-it-works .ghost { right: 40px; }

/* Information bubbles: the four steps show what a campaign contains,
 * not footage we do not have the rights to show. */

@media (max-width: 860px) {
 .mechanism svg text { font-size: 17px; }
 .mechanism svg .mechanism-label { font-size: 16px; }
}
/* Gate 4: reduced motion keeps feedback as a short opacity cross-fade (no slide, no scale). Specificity beats the global kill and html.no-motion above, which are !important too. */
@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  html.has-js .site-nav .nav-links { transform: none !important; transition: opacity 150ms ease-out, visibility 0s linear 150ms !important; }
  html.has-js .site-nav.is-menu-open .nav-links { transform: none !important; transition: opacity 150ms ease-out, visibility 0s !important; }
}

/* Gate 4: reduced transparency makes the phone nav and menu sheet solid, no blur. */
@media (prefers-reduced-transparency: reduce) {
  .site-nav::before, .has-js .site-nav .nav-links { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-nav::before { background: #f4efe8; }
  .site-nav.is-inverse::before { background: #0a0a0c; }
  .has-js .site-nav .nav-links { background: #f4efe8; }
}

/* Gate 4: more contrast gives the nav and menu sheet a solid ground and a defined edge. */
@media (prefers-contrast: more) {
  .site-nav::before { background: #f4efe8; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-nav.is-inverse::before { background: #0a0a0c; }
  .site-nav::after { opacity: 1; }
  .site-nav::before { box-shadow: inset 0 -1px 0 rgba(10, 10, 12, .6); }
  .site-nav.is-inverse::before { box-shadow: inset 0 -1px 0 rgba(244, 239, 232, .6); }
  .has-js .site-nav .nav-links { background: #f4efe8; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: rgba(10, 10, 12, .6); }
}
