/* Homepage-only components. */

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: calc(var(--nav-h) + clamp(72px, 11vh, 140px)) 0 0; overflow: hidden;
  background: radial-gradient(ellipse 90% 70% at 62% 30%, #17263D 0%, #0F1B2D 45%, #0A1220 80%, #070D17 100%); }
.hero .topo-bg { --lr: 460px; }
.hero-inner { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; }
.hero h1 { font-size: clamp(3.1rem, 8vw, 7.4rem); line-height: 0.96; letter-spacing: -0.02em; }
.hero .lede { margin: 34px auto 0; text-align: center; max-width: 34em; color: #C2CBD8; }
.hero .btn-row { justify-content: center; margin-top: 44px; }
.hero .play-btn { margin-left: 8px; }
.hero .pixels { --px: 14px; --gap: 6px; --cols: 10; right: max(var(--gutter), calc((100vw - 1400px) / 2)); top: calc(var(--nav-h) + 8px); opacity: 0.9; }
@media (max-width: 760px) { .hero .pixels { --px: 9px; --gap: 4px; top: calc(var(--nav-h) + 4px); opacity: 0.6; } }

.hero-stage { position: relative; z-index: 2; margin-top: clamp(64px, 9vw, 110px); perspective: 1800px; padding-bottom: clamp(80px, 10vw, 140px); }
.hero-stage .wrap { max-width: 1180px; }
.hero-tilt { transform-origin: 50% 0%; transform: rotateX(calc((1 - var(--sp)) * 22deg)) scale(calc(0.9 + var(--sp) * 0.1)) translateY(calc((1 - var(--sp)) * -30px)); will-change: transform; }
.hero-glow { position: absolute; left: 50%; top: 18%; width: 80%; height: 70%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0, 149, 237, 0.3), rgba(0, 149, 237, 0.1) 50%, transparent); pointer-events: none; }
.hero-stage .screen .stack-vid > * { opacity: 0; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.tab { text-align: left; padding: 16px 18px 18px; border-radius: 14px; position: relative; overflow: hidden; color: var(--fog); transition: color 0.3s, background 0.3s; }
.tab:hover { color: var(--mist); background: rgba(255, 255, 255, 0.03); }
.tab.active { color: var(--cream); background: rgba(255, 255, 255, 0.04); }
.tab b { display: block; font-family: var(--title); font-weight: 400; font-size: 1.35rem; line-height: 1.1; color: inherit; margin-bottom: 4px; }
.tab span { font-size: 0.88rem; line-height: 1.4; display: block; }
.tab::after { content: ''; position: absolute; left: 18px; right: 18px; top: 0; height: 2px; background: var(--night-line-strong); }
.tab::before { content: ''; position: absolute; left: 18px; right: 18px; top: 0; height: 2px; background: var(--sky); transform-origin: left; transform: scaleX(var(--p, 0)); z-index: 1; }
@media (max-width: 760px) { .tabs { grid-template-columns: repeat(2, 1fr); } .tab span { display: none; } }

/* ------------------------------------------------------------------ problem → answer (pinned strike) */
.strike-sec { position: relative; height: 260vh; background: var(--night-0); }
.strike-pin { position: sticky; top: 0; height: 100vh; display: grid; align-items: center; overflow: hidden; }
.strike-pin .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.strike-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.strike-list li { position: relative; display: inline-block; justify-self: start; white-space: nowrap; font-family: var(--title); font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.12; color: var(--cream); transition: color 0.5s; }
.strike-list li::after { content: ''; position: absolute; left: -2%; right: -2%; top: 55%; height: 3px; background: var(--sky); transform-origin: left; transform: scaleX(var(--s, 0)); border-radius: 2px; }
.strike-list li.struck { color: rgba(236, 237, 228, 0.32); }
.strike-answer { opacity: 0.18; transform: translateY(12px); transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out); }
.strike-answer.in { opacity: 1; transform: none; }
.strike-answer h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.strike-answer p { margin-top: 22px; }
@media (max-width: 860px) {
  .strike-sec { height: auto; }
  .strike-pin { position: relative; height: auto; padding: 110px 0; }
  .strike-pin .wrap { grid-template-columns: 1fr; }
}

.docs-strip { padding: 0 0 clamp(80px, 10vw, 130px); background: var(--night-0); display: grid; gap: 14px; }
.docs-head { text-align: center; margin-bottom: clamp(24px, 3vw, 40px); }
.docs-title { font-size: clamp(2.2rem, 3.6vw, 3.4rem); line-height: 1.06; }
.docs-title .accent { display: block; }
/* document chips carry a small drawn thumbnail of the real document type (SVG <symbol> sprite in the page) */
.docs-strip .doc-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.docs-strip .doc-chip { height: 60px; padding: 0 20px 0 10px; gap: 12px; font-size: 0.92rem; color: var(--mist); background: rgba(23, 38, 61, 0.4); }
.docs-strip .doc-thumb { flex: none; width: 34px; height: 44px; }
/* the trailing gap makes the second half start exactly one item-pitch later, so the -50% loop is seamless */
.docs-strip .marquee-track { padding-right: 14px; }

/* ------------------------------------------------------------------ outcomes */
.outcomes h2.big { font-size: min(clamp(3rem, 8vw, 7.2rem), calc((100vw - 2 * var(--gutter)) / 8)); line-height: 0.98; letter-spacing: -0.02em; }
/* each line is a dim copy with a bright copy wiped over it; the wipe is two opposing transforms (compositor only) */
.outcomes h2.big .ln { display: block; width: fit-content; max-width: 100%; position: relative; color: rgba(236, 237, 228, 0.18); }
.outcomes h2.big .ln.blue { color: rgba(142, 219, 255, 0.18); font-style: italic; }
/* the clip box reaches past the glyphs (descenders, italic overhang); the inner span is padded back into place */
.outcomes h2.big .ln-fill { position: absolute; inset: -0.25em -0.2em -0.38em -0.12em; overflow: hidden; transform: translate3d(calc((var(--f, 0) - 1) * 100%), 0, 0); will-change: transform; }
.outcomes h2.big .ln-fill > span { display: block; padding: 0.25em 0.2em 0.38em 0.12em; color: var(--cream); transform: translate3d(calc((1 - var(--f, 0)) * 100%), 0, 0); will-change: transform; }
.outcomes h2.big .ln.blue .ln-fill > span { color: var(--sky); }
.outcome-grid { margin-top: clamp(64px, 8vw, 110px); }
.outcome-grid .card { min-height: 280px; display: flex; flex-direction: column; }
.outcome-grid .card h3 { font-size: 1.55rem; }
.cycler { display: grid; margin-top: 16px; height: 1.4em; overflow: hidden; font: italic 400 1.45rem/1.4 var(--title); color: var(--sky); }
.cycler span { grid-area: 1 / 1; line-height: 1.4; transform: translateY(105%); transition: transform 0.7s var(--ease-out); will-change: transform; }

/* ------------------------------------------------------------------ chapters scrollytelling */
.chapters { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 6vw, 88px); }
/* the steps column ends with the last chapter, so the pinned screen releases there and scrolls on normally */
.chapter-steps { padding: 10vh 0 0; }
.chapter { min-height: 72vh; display: grid; align-content: center; opacity: 0.28; transition: opacity 0.6s; }
.chapter.active { opacity: 1; }
.chapter .num { font-family: var(--title); font-style: italic; color: var(--sky); font-size: 1.3rem; margin-bottom: 14px; }
.chapter h3 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.04; margin-bottom: 20px; }
.chapter .body-copy { max-width: 30em; }
.chapter .check-list { margin-top: 24px; }
.chapter .link-arrow { margin-top: 26px; }
.chapter-mobile-clip { display: none; }
.chapter-stage { position: sticky; top: calc(var(--nav-h) + max(16px, (100vh - var(--nav-h) - min(52vw, 620px)) / 2)); align-self: start; margin-top: 10vh; height: fit-content; }
.chapter-stage .screen { aspect-ratio: 1260 / 924; }
.chapter-stage [data-chapter-clip] { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity 0.7s ease, transform 1.2s var(--ease-out); }
.chapter-stage [data-chapter-clip].active { opacity: 1; transform: none; }
.chapter-stage [data-chapter-clip] video, .chapter-stage [data-chapter-clip] img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chapter-dots { display: flex; gap: 8px; margin-top: 22px; justify-content: center; }
.chapter-dots i { width: 28px; height: 3px; border-radius: 2px; background: var(--night-line-strong); transition: background 0.4s, width 0.5s var(--ease-out); }
.chapter-dots i.active { background: var(--sky); width: 48px; }
@media (max-width: 900px) {
  .chapters { grid-template-columns: 1fr; }
  .chapter-stage { display: none; }
  .chapter-steps { padding: 0; }
  .chapter { min-height: 0; opacity: 1; padding: 40px 0; }
  .chapter-mobile-clip { display: block; margin-top: 28px; }
}

/* ------------------------------------------------------------------ case study */
.case { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.case-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--paper-line); }
.case-stats .stat-num { font-size: clamp(2.6rem, 4.4vw, 3.8rem); }
.case-stats .stat-label { font-size: 0.95rem; margin-top: 10px; }
.vol-bars { margin-top: 36px; display: grid; gap: 14px; }
.vol-bar { display: grid; grid-template-columns: 9.5em 1fr auto; gap: 16px; align-items: center; font-size: 0.95rem; color: var(--paper-body); }
.vol-bar .track { height: 14px; border-radius: 7px; background: var(--paper-2); overflow: hidden; }
.vol-bar .fill { height: 100%; width: var(--w); border-radius: 7px; background: #94A3B8; transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease-out); transition-delay: var(--d, 0s); }
.vol-bar.after .fill { background: var(--blue); }
.in .vol-bar .fill { transform: none; }
.vol-bar b { font-variant-numeric: tabular-nums; color: var(--paper-ink); }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } .case-stats { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------------ audiences */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.aud { position: relative; min-height: 600px; padding: 36px 32px; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; background: linear-gradient(180deg, #13223A, #0C1626); box-shadow: inset 0 0 0 1px var(--night-line); transition: transform 0.6s var(--ease-out), box-shadow 0.4s; }
.aud:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--night-line-strong), 0 40px 80px -40px rgba(0, 0, 0, 0.8); }
.aud .art { position: absolute; right: 6%; bottom: 5%; height: 42%; width: auto; max-width: 70%; object-fit: contain; object-position: right bottom; opacity: 1; transition: transform 1.2s var(--ease-out), opacity 0.6s; pointer-events: none; }
.aud:hover .art { transform: translateY(-10px) scale(1.03); opacity: 1; }
.aud > *:not(.art) { z-index: 1; }
.aud .who { position: relative; font-weight: 600; font-size: clamp(2rem, 2.7vw, 2.5rem); line-height: 1.04; color: var(--cream); }
.aud .tag { position: relative; margin-top: 14px; font-family: var(--title); font-size: 1.35rem; line-height: 1.15; color: var(--mist); max-width: none; }
.aud .tag .accent { display: block; }
.aud p { position: relative; color: var(--mist); margin-top: 18px; max-width: 18em; }
.aud .link-arrow { position: relative; margin-top: auto; }
@media (max-width: 980px) { .aud-grid { grid-template-columns: 1fr; } .aud { min-height: 380px; } .aud .art { height: 46%; opacity: 1; } }

/* ------------------------------------------------------------------ citation funnel */
.cite { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.funnel { position: relative; display: grid; gap: 14px; }
.funnel-row { display: grid; grid-template-columns: 7.5em 1fr; gap: 18px; align-items: center; }
.funnel-row .lbl { color: var(--fog); font-size: 0.92rem; text-align: right; }
.funnel-row .lbl b { display: block; color: var(--cream); font-weight: 600; font-size: 1rem; }
.funnel-bar { height: 64px; border-radius: 12px; background: rgba(23, 38, 61, 0.8); box-shadow: inset 0 0 0 1px var(--night-line); position: relative; overflow: hidden; transform-origin: left; transform: scaleX(0.2); opacity: 0; transition: transform 1.1s var(--ease-out), opacity 0.6s; transition-delay: var(--d, 0s); }
.in .funnel-bar { transform: none; opacity: 1; }
.funnel-bar.pages { background-image: repeating-linear-gradient(90deg, rgba(159, 179, 200, 0.18) 0 1px, transparent 1px 5px); }
.funnel-bar.page { width: 34%; background: #F8FAFC; }
.funnel-bar.page::before { content: ''; position: absolute; inset: 12px 14px; background: repeating-linear-gradient(180deg, #CBD5E1 0 3px, transparent 3px 9px); opacity: 0.7; }
.funnel-passage { margin-left: calc(7.5em + 18px); padding: 22px 24px; border-radius: 14px; background: #F8FAFC; color: #0F172A; font-size: 1rem; line-height: 1.55; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: 0.9s; }
.in .funnel-passage { opacity: 1; transform: none; }
.funnel-passage mark { background: linear-gradient(transparent 8%, rgba(245, 197, 24, 0.45) 8% 92%, transparent 92%); color: inherit; padding: 0 2px; box-shadow: 0 0 0 2px #F5C518; border-radius: 3px; }
.funnel-passage .src { display: block; margin-top: 12px; font-size: 0.82rem; color: #64748B; }
.pin { position: absolute; width: 2px; background: var(--sky); left: calc(7.5em + 18px + 17%); opacity: 0.7; }
@media (max-width: 900px) { .cite { grid-template-columns: 1fr; } .funnel-row { grid-template-columns: 1fr; } .funnel-row .lbl { text-align: left; } .funnel-passage { margin-left: 0; } }

/* ------------------------------------------------------------------ offerings teaser */
.offer-card { display: flex; flex-direction: column; min-height: 100%; }
.offer-card .tier-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 0; }
.offer-card .tier-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--paper-line); color: var(--paper-body); font-size: 0.96rem; }
.offer-card .tier-list li span:last-child { color: var(--paper-muted); text-align: right; }

/* ------------------------------------------------------------------ blog */
.post { display: flex; flex-direction: column; gap: 18px; }
.post .thumb { aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--night-3); }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.post:hover .thumb img { transform: scale(1.04); }
.post .meta { color: var(--fog); font-size: 0.88rem; }
.post h3 { font-size: 1.45rem; line-height: 1.2; transition: color 0.2s; }
.post:hover h3 { color: var(--sky); }

/* ------------------------------------------------------------------ hero: copy left, "the file comes alive" right */
.hero-inner.hero-split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); justify-items: stretch; align-items: center; gap: clamp(32px, 4vw, 64px); text-align: left; max-width: 1320px; }
.hero-copy { container-type: inline-size; min-width: 0; }
/* each headline line stays whole: the payoff is 9.36x the font size wide, so size to the column, not the window */
.hero-split h1 { font-size: min(5.6rem, 100cqi / 9.5); }
.hero-split h1 .split-line > span { white-space: nowrap; }
.hero-split .lede { margin: 30px 0 0; text-align: left; max-width: 30em; }
.hero-split .btn-row { justify-content: flex-start; margin-top: 40px; }
@media (max-width: 980px) {
  .hero-inner.hero-split { grid-template-columns: 1fr; }
  .hero-file { justify-self: center; }
}

/* The composition is laid out on a fixed 560 x 500 canvas and scaled to its column (home.js sets --hf-scale). */
.hero-file { position: relative; width: 100%; max-width: 560px; aspect-ratio: 560 / 500; justify-self: end; }
.hf { position: absolute; left: 0; top: 0; width: 560px; height: 500px; transform-origin: 0 0; transform: scale(var(--hf-scale, 1)); }
.hf-doc { position: absolute; width: 214px; padding: 14px 16px 16px; border-radius: 10px; background: #FFFFFF; color: #1E293B; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(15, 23, 42, 0.06);
  transform: translate3d(var(--x), var(--y), 0) rotate(var(--r)); transition: transform 0.7s var(--ease-out), opacity 0.6s ease, box-shadow 0.6s ease; will-change: transform; }
.hf-doc.lift { transform: translate3d(var(--x), calc(var(--y) - 16px), 0) rotate(0deg) scale(1.05); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(15, 23, 42, 0.06); z-index: 10; }
/* read documents dim but stay opaque: a navy wash inside the card, so cards and contours never show through */
.hf-doc::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: #0B1422; opacity: 0; transition: opacity 0.6s ease; pointer-events: none; }
.hf-doc.read::after { opacity: 0.42; }
.hf-doc-head { display: flex; align-items: center; gap: 8px; font: 600 12px/1.2 var(--sans); }
.hf-ext { font: 700 9px/1 var(--sans); letter-spacing: 0.06em; padding: 4px 5px; border-radius: 4px; background: #EEF2F6; color: #475569; }
.hf-yr { margin: 4px 0 10px; font: 500 11px var(--sans); color: #64748B; }
.hf-l { position: relative; height: 5px; border-radius: 3px; background: #E2E8F0; margin-top: 7px; }
.hf-mark { position: absolute; inset: -4px -6px; border-radius: 4px; background: rgba(245, 197, 24, 0.42); box-shadow: 0 0 0 1.5px #E0A43A; transform-origin: left center; transform: scaleX(0); transition: transform 0.6s var(--ease-in-out); }
.hf-mark.on { transform: scaleX(1); }

.hf-record { position: absolute; right: 0; top: 18px; width: 318px; padding: 20px 20px 18px; border-radius: 16px; background: linear-gradient(180deg, rgba(23, 38, 61, 0.96), rgba(15, 27, 45, 0.96)); box-shadow: inset 0 0 0 1px var(--night-line-strong), 0 40px 90px -30px rgba(0, 0, 0, 0.8); z-index: 5; }
.hf-rec-kicker { font: 600 10.5px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky-strong); }
.hf-rec-title { margin-top: 8px; font: 400 21px/1.15 var(--title); color: var(--cream); }
.hf-rows { margin-top: 14px; display: grid; gap: 4px; }
.hf-row { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--night-line); opacity: 0; transform: translateY(8px); transition: opacity 0.5s ease, transform 0.6s var(--ease-out); }
.hf-row.in { opacity: 1; transform: none; }
.hf-row b { font: 400 18px/1.1 var(--title); color: var(--sky); }
.hf-row span { font: 400 13px/1.4 var(--sans); color: var(--cream); }
.hf-cite { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; padding: 3px 7px; border-radius: 6px; font: 500 10.5px/1.2 var(--sans); color: var(--sky); background: rgba(142, 219, 255, 0.1); }
.hf-progress { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--night-line); }
.hf-progress-head { display: flex; justify-content: space-between; align-items: baseline; font: 500 11.5px var(--sans); color: var(--fog); }
.hf-status { color: var(--cream); font-weight: 600; transition: opacity 0.3s ease; }
.hf-status.done { color: #6EE7B7; }
.hf-bar { margin-top: 8px; height: 6px; border-radius: 3px; background: rgba(159, 179, 200, 0.16); overflow: hidden; }
.hf-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--aqua), var(--blue)); transform-origin: left center; transform: scaleX(var(--prog, 0)); transition: transform 0.9s var(--ease-in-out); }
.hf-bar.done i { background: linear-gradient(90deg, var(--aqua), #6EE7B7); }

/* the fact in flight from the document to its row */
.hf-chip { position: absolute; left: 0; top: 0; z-index: 20; padding: 7px 10px; border-radius: 8px; background: #F5C518; color: #1E293B; font: 600 12px/1.2 var(--sans); white-space: nowrap; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.6);
  transition: transform 0.85s var(--ease-in-out), opacity 0.35s ease; will-change: transform; }

/* ------------------------------------------------------------------ case study: live infographic */
.ci { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 4vw, 56px); padding: clamp(24px, 3.4vw, 44px); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(23, 38, 61, 0.7), rgba(12, 22, 38, 0.6)); box-shadow: inset 0 0 0 1px var(--night-line); }
.ci-stage { display: flex; flex-direction: column; gap: 18px; }
.ci-stage-head, .ci-time-head { display: flex; justify-content: space-between; align-items: baseline; color: var(--fog); font-size: 0.92rem; }
.ci-vol { color: var(--cream); font-size: 1rem; }
.ci-vol b { font: 400 clamp(2rem, 3.2vw, 2.7rem)/1 var(--title); font-variant-numeric: lining-nums tabular-nums; margin-right: 4px; }
.ci-grid { width: 100%; aspect-ratio: 17 / 10; display: block; }
.ci-legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.84rem; color: var(--fog); }
.ci-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.ci-legend i.dig { background: #D9772B; }
.ci-legend i.saved { box-shadow: inset 0 0 0 1.5px rgba(127, 214, 255, 0.55); }
.ci-time { padding-top: 16px; border-top: 1px solid var(--night-line); }
.ci-time-val { color: var(--cream); font-weight: 600; transition: color 0.4s ease; }
.ci-time-val.fast { color: var(--aqua); }
.ci-time-bar { margin-top: 10px; height: 10px; border-radius: 5px; background: rgba(159, 179, 200, 0.12); overflow: hidden; }
.ci-time-bar i { display: block; height: 100%; border-radius: 5px; background: #D9772B; transform-origin: left center; transform: scaleX(var(--t, 0)); transition: transform 1.2s var(--ease-in-out), background-color 0.6s ease; }
.ci-time-bar i.fast { background: var(--aqua); }

.ci-acts { list-style: none; margin: 0; padding: 0; display: grid; align-content: center; gap: 10px; }
.ci-act { padding: 18px 20px; border-radius: 14px; opacity: 0.32; transition: opacity 0.6s ease, background-color 0.6s ease, box-shadow 0.6s ease; }
.ci-act.on { opacity: 1; background: rgba(142, 219, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(142, 219, 255, 0.16); }
.ci-act.done { opacity: 0.8; }
.ci-label { font: 400 1.35rem/1.2 var(--title); color: var(--cream); }
.ci-act.on .ci-label { color: var(--sky); font-style: italic; }
.ci-text { margin-top: 6px; color: var(--mist); font-size: 0.98rem; }
.ci-radar-row { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.ci-radar { width: 160px; height: 160px; flex: none; overflow: visible; }
.ci-radar .ax { stroke: rgba(159, 179, 200, 0.22); stroke-width: 1; }
.ci-radar .ring { fill: none; stroke: rgba(159, 179, 200, 0.12); }
.ci-radar text { fill: var(--fog); font: 600 11px var(--sans); text-anchor: middle; dominant-baseline: middle; }
.ci-radar .bg { fill: rgba(224, 164, 58, 0.16); stroke: #E0A43A; stroke-width: 2; stroke-dasharray: 5 4; }
.ci-radar .site { fill: rgba(127, 214, 255, 0.16); stroke: var(--sky-strong); stroke-width: 2.2; }
.ci-radar .draw { stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.1s var(--ease-in-out), fill-opacity 0.6s ease; fill-opacity: 0; }
.ci-radar .draw.in { stroke-dashoffset: 0; fill-opacity: 1; }
.ci-radar .bg.draw.in { stroke-dasharray: 5 4; }
.ci-chips { display: grid; gap: 8px; }
.ci-chip { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 7px 12px; border-radius: 999px; font: 600 0.84rem var(--sans); color: var(--night-1); background: var(--aqua);
  opacity: 0; transform: translateY(6px) scale(0.96); transition: opacity 0.45s ease, transform 0.55s var(--ease-out); }
.ci-chip:last-child { background: #F5C518; }
.ci-chip.in { opacity: 1; transform: none; }
.ci-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.ci-results span { display: block; margin-top: 6px; color: var(--mist); font-size: 0.86rem; line-height: 1.4; }
.ci-big { font: 400 clamp(2rem, 3vw, 2.6rem)/1 var(--title); color: var(--aqua); font-variant-numeric: lining-nums tabular-nums; }
.ci-replay { grid-column: 1 / -1; justify-self: end; margin-top: -8px; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; font: 600 0.84rem var(--sans); color: var(--mist); box-shadow: inset 0 0 0 1px var(--night-line-strong); transition: color 0.2s, box-shadow 0.2s; }
.ci-replay[hidden] { display: none; }
.ci-replay:hover { color: var(--cream); box-shadow: inset 0 0 0 1px var(--sky); }
@media (max-width: 900px) {
  .ci { grid-template-columns: 1fr; }
  .ci-results { grid-template-columns: 1fr 1fr 1fr; }
  .ci-replay { justify-self: start; }
}
@media (max-width: 520px) { .ci-results { grid-template-columns: 1fr; } .ci-radar-row { flex-direction: column; align-items: flex-start; } }

/* ------------------------------------------------------------------ hero ends; product preview straddles light and dark */
/* The heading sits on a white band; a navy band starts partway down the player and runs into the next (navy)
   section, so the player sits across the boundary in its dark frame. */
.hero { padding-bottom: clamp(88px, 11vw, 150px); }
.preview-sec { padding-bottom: 0; background: #fff; color: var(--paper-ink); }
.preview-sec .section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.preview-sec h2 { color: var(--paper-ink); }
.preview-sec .accent { color: var(--blue); }
.preview-sec .lede { color: var(--paper-body); }
.preview-sec .hero-stage { margin-top: 0; isolation: isolate; }
.preview-sec .hero-stage::before { content: ''; position: absolute; left: 0; right: 0; top: clamp(140px, 22vw, 300px); bottom: 0; z-index: -1; background: var(--night-0); }
.preview-sec .hero-glow { display: none; }
/* the player keeps its dark frame on every tab here, including the live research graphic */
.preview-sec .screen.is-motion { background-color: var(--night-2); box-shadow: 0 0 0 1px rgba(159, 179, 200, 0.16), 0 50px 120px -30px rgba(0, 0, 0, 0.75); overflow: hidden; }

/* ------------------------------------------------------------------ the same answer, cited three ways */
/* One Statvis answer, then three citations for it, each with a bar for how much reading it leaves you. The last row
   is the real page, with the passage boxed. Plays once on reveal; transforms and opacity only. */
.cl { display: grid; gap: 12px; width: 100%; max-width: 600px; justify-self: end; }
.cl-answer { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 16px 18px; border-radius: 14px; background: #F8FAFC; color: #0F172A; box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.8);
  opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.7s var(--ease-out); }
.cl-avatar { width: 34px; height: 34px; border-radius: 9px; background: var(--night-2); display: grid; place-items: center; color: var(--cream); }
.cl-avatar img { width: 24px; height: auto; }
.cl-answer p { font-size: 1rem; line-height: 1.5; }
.cl-pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 5px; border-radius: 6px; font: 700 0.72rem/1 var(--sans); color: #fff; background: var(--blue); vertical-align: 1px; }
.cl-caption { margin-top: 10px; font-size: 0.86rem; color: var(--fog); opacity: 0; transition: opacity 0.5s ease 0.25s; }
.cl-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) 9.5em; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 12px; background: rgba(23, 38, 61, 0.55); box-shadow: inset 0 0 0 1px var(--night-line);
  opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.7s var(--ease-out); transition-delay: calc(0.35s + var(--i) * 0.22s); }
.cl-cite { font-size: 0.95rem; color: var(--cream); line-height: 1.3; }
.cl-cite span { display: block; margin-bottom: 3px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; color: var(--fog); }
.cl-meter { height: 8px; border-radius: 4px; background: rgba(159, 179, 200, 0.12); overflow: hidden; }
.cl-meter i { display: block; height: 100%; width: calc(var(--w) * 100%); min-width: 6px; border-radius: 4px; background: var(--c); transform-origin: left center; transform: scaleX(0);
  transition: transform 0.9s var(--ease-in-out); transition-delay: calc(0.7s + var(--i) * 0.22s); }
.cl-effort { font-size: 0.88rem; color: var(--mist); text-align: right; }
.cl-statvis { background: rgba(0, 202, 203, 0.07); box-shadow: inset 0 0 0 1px rgba(0, 202, 203, 0.35); }
.cl-statvis .cl-cite span, .cl-statvis .cl-effort { color: var(--aqua); }
.cl-page { grid-column: 1 / -1; position: relative; margin: 4px 0 0; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); }
.cl-page img { display: block; width: 100%; height: auto; }
.cl-box { position: absolute; left: 5.9%; top: 19.6%; width: 87.2%; height: 60.2%; border-radius: 4px; background: rgba(245, 197, 24, 0.18); box-shadow: 0 0 0 2px #F5C518;
  transform-origin: left center; transform: scaleX(0); transition: transform 0.7s var(--ease-in-out) 1.75s; mix-blend-mode: normal; }
.in .cl-answer, .in .cl-row { opacity: 1; transform: none; }
.in .cl-caption { opacity: 1; }
.in .cl-meter i, .in .cl-box { transform: none; }
@media (max-width: 600px) {
  .cl-row { grid-template-columns: 1fr auto; }
  .cl-meter { grid-column: 1 / -1; order: 3; }
  .cl-page { order: 4; }
}
