/* ==========================================================================
   Portal design kit v2: the showcase layer
   Load AFTER tokens.css and opt in with <body class="v2" data-persona="...">.
   Nothing here changes a v1 token or a v1 class, so v1 report pages are
   untouched. Everything new is a --v2-* / --p-* token or a .v2-* class.
   Fonts are self-hosted (SIL OFL 1.1, licences in design/fonts/).
   ========================================================================== */

/* ---------- 1. Fonts (self-hosted, latin subset) ------------------------- */
@font-face { font-family: "Bricolage Grotesque V2"; src: url("fonts/bricolage-grotesque-latin-var.woff2") format("woff2-variations"), url("fonts/bricolage-grotesque-latin-var.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter V2"; src: url("fonts/inter-latin-var.woff2") format("woff2-variations"), url("fonts/inter-latin-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter V2"; src: url("fonts/inter-latin-var-italic.woff2") format("woff2-variations"), url("fonts/inter-latin-var-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono V2"; src: url("fonts/jetbrains-mono-latin-var.woff2") format("woff2-variations"), url("fonts/jetbrains-mono-latin-var.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

/* ---------- 2. v2 tokens -------------------------------------------------- */
body.v2 {
  --v2-display: "Bricolage Grotesque V2", "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
  --v2-body: "Inter V2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --v2-mono: "JetBrains Mono V2", ui-monospace, "SF Mono", Menlo, monospace;
  --v2-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --v2-fs-hero: clamp(2.35rem, 1.2rem + 5.2vw, 5.4rem);
  --v2-fs-h2:   clamp(1.85rem, 1.1rem + 2.9vw, 3.4rem);
  --v2-fs-h3:   clamp(1.2rem, 1rem + 0.7vw, 1.5rem);
  --v2-fs-big:  clamp(2.4rem, 1.5rem + 3.6vw, 4.4rem);
  --v2-fs-lede: clamp(1.08rem, 0.98rem + 0.5vw, 1.32rem);

  --v2-gutter: clamp(16px, 4vw, 48px);
  --v2-wrap: 78rem;
  --v2-radius: 18px;
  --v2-radius-sm: 10px;
  --v2-ease: cubic-bezier(.2, .7, .1, 1);
  --v2-section-y: clamp(4.5rem, 3rem + 6vw, 9rem);

  /* Persona defaults (portal home). Each project overrides via data-persona. */
  --p-accent: #4f8fe8;        /* accent on dark surfaces */
  --p-accent-ink: #1c5cab;    /* accent as text on light surfaces (>= 4.5:1) */
  --p-accent-2: #9bb7d6;
  --p-deep: #0a1220;          /* the persona's night colour: hero, film, CTA */
  --p-deep-2: #121d31;
  --p-paper: #f4f6f9;         /* light-mode page plane */
  --p-paper-2: #ffffff;
  --p-tint: #e7eef8;          /* quiet tinted panels in light mode */
  --p-glow: rgba(79, 143, 232, 0.35);
  --p-grain: 0.06;

  --v2-plane: var(--p-paper);
  --v2-card: var(--p-paper-2);
  --v2-panel: var(--p-tint);
  --v2-ink: #0d1520;
  --v2-ink-2: #3f4a58;
  --v2-ink-3: #5c6775;
  --v2-line: rgba(13, 21, 32, 0.12);
  --v2-line-strong: rgba(13, 21, 32, 0.22);
  --v2-shadow: 0 1px 2px rgba(13, 21, 32, .06), 0 20px 50px -24px rgba(13, 21, 32, .35);
  --v2-accent-text: var(--p-accent-ink);
}

/* Personas: five personalities, one family. Same structure, different light. */
body.v2[data-persona="focus-group"] {      /* paper crowd: terracotta, ochre, cream */
  --p-accent: #ff8a65; --p-accent-ink: #b23f1d; --p-accent-2: #e8b65a;
  --p-deep: #22120d; --p-deep-2: #33201a; --p-paper: #fbf5ee; --p-paper-2: #fffdf9; --p-tint: #f6e6d8;
  --p-glow: rgba(255, 138, 101, .38);
}
body.v2[data-persona="industry-wargame"] { /* war room: deep teal, brass */
  --p-accent: #e2bd6b; --p-accent-ink: #8a6215; --p-accent-2: #5fc3bb;
  --p-deep: #061719; --p-deep-2: #0c2427; --p-paper: #f2f5f4; --p-paper-2: #ffffff; --p-tint: #e1ecea;
  --p-glow: rgba(226, 189, 107, .34);
}
body.v2[data-persona="earnings-call-tell"] { /* studio: midnight violet, amber */
  --p-accent: #ffb547; --p-accent-ink: #9a5800; --p-accent-2: #a78bfa;
  --p-deep: #110b20; --p-deep-2: #1c1433; --p-paper: #f6f4fa; --p-paper-2: #ffffff; --p-tint: #ebe6f7;
  --p-glow: rgba(167, 139, 250, .36);
}
body.v2[data-persona="ai-hiring-index"] {  /* blueprint: graphite, signal green */
  --p-accent: #3ee08f; --p-accent-ink: #0b6b3d; --p-accent-2: #9fb3c1;
  --p-deep: #0b1013; --p-deep-2: #141c21; --p-paper: #f3f5f4; --p-paper-2: #ffffff; --p-tint: #e2ece6;
  --p-glow: rgba(62, 224, 143, .30);
}
body.v2[data-persona="white-space-finder"] { /* atlas: cream paper, indigo ink, vermilion */
  --p-accent: #ff7a59; --p-accent-ink: #b0341a; --p-accent-2: #8fa2ff;
  --p-deep: #0e1430; --p-deep-2: #182048; --p-paper: #f7f2e6; --p-paper-2: #fffcf5; --p-tint: #ece4d0;
  --p-glow: rgba(143, 162, 255, .32);
}

/* Dark mode: the page takes the persona's night colour. Declared twice, as in v1. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.v2 {
    --v2-plane: var(--p-deep); --v2-card: var(--p-deep-2);
    --v2-panel: color-mix(in srgb, var(--p-deep-2) 70%, var(--p-accent) 6%);
    --v2-ink: #f1f3f6; --v2-ink-2: #c3cad3; --v2-ink-3: #9aa5b1;
    --v2-line: rgba(255, 255, 255, .11); --v2-line-strong: rgba(255, 255, 255, .2);
    --v2-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 24px 60px -28px rgba(0, 0, 0, .9);
    --v2-accent-text: var(--p-accent);
  }
}
:root[data-theme="dark"] body.v2 {
  --v2-plane: var(--p-deep); --v2-card: var(--p-deep-2);
  --v2-panel: color-mix(in srgb, var(--p-deep-2) 70%, var(--p-accent) 6%);
  --v2-ink: #f1f3f6; --v2-ink-2: #c3cad3; --v2-ink-3: #9aa5b1;
  --v2-line: rgba(255, 255, 255, .11); --v2-line-strong: rgba(255, 255, 255, .2);
  --v2-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 24px 60px -28px rgba(0, 0, 0, .9);
  --v2-accent-text: var(--p-accent);
}

/* ---------- 3. Base for v2 pages ----------------------------------------- */
body.v2 {
  background: var(--v2-plane);
  color: var(--v2-ink);
  font-family: var(--v2-body);
  font-feature-settings: "cv11", "ss01", "ss03";
  font-optical-sizing: auto;
  line-height: 1.6;
  overflow-x: hidden;
}
body.v2 ::selection { background: var(--p-accent); color: var(--p-deep); }
body.v2 h1, body.v2 h2, body.v2 h3 { font-family: var(--v2-display); font-weight: 650; letter-spacing: -0.025em; text-wrap: balance; }
body.v2 a { color: var(--v2-accent-text); }
body.v2 :focus-visible { outline: 2px solid var(--p-accent); outline-offset: 3px; }
/* v1 helpers used inside v2 pages (charts, tables) keep v1 tokens; align their fonts. */
body.v2 .pc svg text, body.v2 .pc-tip { font-family: var(--v2-body); }
body.v2 .kicker, body.v2 .caption b, body.v2 .table thead th { font-family: var(--v2-mono); }

.v2-wrap { width: 100%; max-width: var(--v2-wrap); margin-inline: auto; padding-inline: max(var(--v2-gutter), env(safe-area-inset-left, 0px)) max(var(--v2-gutter), env(safe-area-inset-right, 0px)); }
.v2-eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--v2-mono); font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--v2-accent-text); margin: 0;
}
.v2-eyebrow::before { content: ""; width: 1.6em; height: 1px; background: currentColor; opacity: .7; }
.v2-h2 { font-size: var(--v2-fs-h2); line-height: 1.04; margin: .5rem 0 0; max-width: 20ch; }
.v2-h2 em, .v2-hero h1 em { font-family: var(--v2-serif); font-style: italic; font-weight: 500; letter-spacing: -0.01em; color: var(--v2-accent-text); }
.v2-lede { font-size: var(--v2-fs-lede); line-height: 1.55; color: var(--v2-ink-2); max-width: 60ch; margin: 1.1rem 0 0; }
.v2-section { padding-block: var(--v2-section-y); position: relative; scroll-margin-top: 4rem; }
.v2-section--tint { background: var(--v2-panel); }
.v2-section--deep { background: var(--p-deep); color: #f1f3f6; --v2-ink: #f1f3f6; --v2-ink-2: #c6cdd6; --v2-ink-3: #9aa5b1; --v2-line: rgba(255,255,255,.12); --v2-line-strong: rgba(255,255,255,.22); --v2-card: var(--p-deep-2); --v2-accent-text: var(--p-accent); }
.v2-section-head { display: grid; gap: .2rem; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.v2-section-head--split { grid-template-columns: minmax(0, 1fr); align-items: end; gap: 1.2rem 3rem; }
@media (min-width: 60rem) { .v2-section-head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } .v2-section-head--split .v2-lede { margin: 0; } }

/* Skip link: hidden until focused. */
.v2-skip { position: absolute; left: 8px; top: -60px; z-index: 60; transition: top .15s; }
.v2-skip:focus { top: 8px; }

/* ---------- 4. Top bar --------------------------------------------------- */
.v2-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: #f1f3f6;
  transition: background .35s var(--v2-ease), border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.v2-nav.is-scrolled { background: color-mix(in srgb, var(--p-deep) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom-color: rgba(255,255,255,.08); }
.v2-nav-inner { display: flex; align-items: center; gap: 1rem; min-height: 3.6rem; }
body.v2 .v2-nav a { color: inherit; text-decoration: none; }
body.v2 a.v2-show { color: #f4f5f7; text-decoration: none; }
.v2-home {
  display: inline-flex; align-items: center; gap: .55rem; flex: none;
  font-family: var(--v2-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .45rem .8rem .45rem .65rem; border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  transition: background .2s, border-color .2s;
}
.v2-home::before { content: ""; width: .42em; height: .42em; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.v2-home:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); }
.v2-nav-title--always { opacity: 1 !important; transform: none !important; }
.v2-nav-title { font-family: var(--v2-display); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.v2-nav.is-scrolled .v2-nav-title { opacity: 1; transform: none; }
.v2-nav-links { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; font-size: .875rem; }
.v2-nav-links a:not(.v2-btn) { color: rgba(241,243,246,.75); }
.v2-nav-links a:not(.v2-btn):hover { color: #fff; }
@media (max-width: 52rem) { .v2-nav-links a:not(.v2-btn):not(.v2-keep), .v2-nav-links .v2-hide-sm { display: none; } .v2-nav-title:not(.v2-nav-title--always) { display: none; } }

/* ---------- 5. Buttons ---------------------------------------------------- */
.v2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 2.75rem; padding: .7rem 1.25rem; border-radius: 999px;
  font-family: var(--v2-body); font-weight: 600; font-size: .95rem; letter-spacing: -0.005em; text-decoration: none;
  background: var(--p-accent); color: var(--p-deep) !important; border: 1px solid transparent;
  box-shadow: 0 10px 30px -12px var(--p-glow);
  transition: transform .25s var(--v2-ease), box-shadow .25s, background .2s;
}
.v2-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px var(--p-glow); }
.v2-btn .v2-arrow { transition: transform .25s var(--v2-ease); }
.v2-btn:hover .v2-arrow { transform: translateX(3px); }
.v2-btn--ghost { background: transparent; color: inherit !important; border-color: currentColor; box-shadow: none; opacity: .92; }
.v2-btn--ghost:hover { box-shadow: none; opacity: 1; }
.v2-btn--sm { min-height: 2.25rem; padding: .45rem .95rem; font-size: .85rem; }
.v2-arrow { display: inline-block; width: 1em; height: 1em; }

/* ---------- 6. Hero ------------------------------------------------------ */
.v2-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 62rem);
  display: grid; align-items: end;
  background: var(--p-deep); color: #f4f5f7;
  padding: 7.5rem 0 clamp(2.5rem, 1.5rem + 4vw, 5rem);
}
.v2-hero-media { position: absolute; inset: 0; z-index: -2; }
.v2-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-pos, 70% 50%); transform: scale(1.06); animation: v2-drift 28s ease-in-out infinite alternate; }
.v2-hero::before { /* scrim: legible text on any image */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--p-deep) 94%, transparent) 0%, color-mix(in srgb, var(--p-deep) 70%, transparent) 38%, color-mix(in srgb, var(--p-deep) 8%, transparent) 75%),
    linear-gradient(0deg, var(--p-deep) 0%, color-mix(in srgb, var(--p-deep) 40%, transparent) 30%, transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--p-deep) 70%, transparent) 0%, transparent 18%);
}
.v2-hero::after { /* fine film grain */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--p-grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.v2-hero-copy { display: grid; gap: 1.2rem; max-width: 50rem; }
.v2-hero .v2-eyebrow { color: var(--p-accent); }
.v2-hero h1 { font-size: var(--v2-fs-hero); line-height: .98; margin: 0; letter-spacing: -0.035em; max-width: 16ch; }
.v2-hero h1 em { color: var(--p-accent); }
.v2-hero-lede { font-size: var(--v2-fs-lede); line-height: 1.55; color: rgba(244,245,247,.86); max-width: 54ch; margin: 0; }
.v2-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .4rem; }
.v2-hero-credit { position: absolute; right: var(--v2-gutter); bottom: .8rem; font-family: var(--v2-mono); font-size: .65rem; letter-spacing: .08em; color: rgba(244,245,247,.5); text-transform: uppercase; }
@keyframes v2-drift { from { transform: scale(1.06) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }

/* Stat band: the scale numbers, set on the hero's lower edge. */
.v2-statband {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 1px; margin-top: clamp(2rem, 1rem + 3vw, 3.5rem);
  border-top: 1px solid rgba(255,255,255,.16);
}
.v2-stat { padding: 1.1rem 1.2rem 0 0; display: grid; gap: .25rem; align-content: start; min-width: 0; }
.v2-stat-value { font-family: var(--v2-display); font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); font-weight: 600; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.v2-stat-value small { font-size: .45em; font-weight: 600; letter-spacing: 0; margin-left: .15em; opacity: .75; }
.v2-stat-label { font-size: .85rem; line-height: 1.4; color: rgba(244,245,247,.72); max-width: 24ch; }
.v2-section .v2-statband { border-top-color: var(--v2-line-strong); }
.v2-section .v2-stat-label { color: var(--v2-ink-3); }

/* ---------- 7. Prose blocks: problem / why it matters -------------------- */
.v2-split { display: grid; gap: clamp(2rem, 1rem + 3vw, 4.5rem); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 60rem) { .v2-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .v2-split--flip > :first-child { order: 2; } }
.v2-prose { display: grid; gap: 1rem; font-size: 1.05rem; color: var(--v2-ink-2); }
.v2-prose p { margin: 0; max-width: 60ch; }
.v2-prose strong { color: var(--v2-ink); font-weight: 650; }
.v2-pull { font-family: var(--v2-serif); font-style: italic; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); line-height: 1.3; color: var(--v2-ink); border-left: 3px solid var(--p-accent); padding: .2rem 0 .2rem 1.2rem; margin: .5rem 0; max-width: 32ch; }
.v2-plate { position: relative; margin: 0; border-radius: var(--v2-radius); overflow: hidden; box-shadow: var(--v2-shadow); background: var(--p-deep); }
.v2-plate img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.2s var(--v2-ease); }
.v2-plate:hover img { transform: scale(1.03); }
.v2-plate figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.1rem .9rem; font-size: .8rem; line-height: 1.4; color: rgba(255,255,255,.85); background: linear-gradient(transparent, rgba(0,0,0,.65)); }

/* ---------- 8. How it works: the pipeline diagram ------------------------ */
.v2-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); counter-reset: v2step; position: relative; }
@media (min-width: 64rem) { .v2-flow { grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr)); } }
.v2-flow > li { counter-increment: v2step; position: relative; margin: 0; max-width: none; padding: 0 0 2rem 3.4rem; }
@media (min-width: 64rem) { .v2-flow > li { padding: 3.6rem 1.2rem 0 0; } }
/* connector line, drawn in as the diagram enters the viewport */
.v2-flow > li::before {
  content: counter(v2step, decimal-leading-zero);
  position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center; z-index: 1;
  font-family: var(--v2-mono); font-size: .72rem; font-weight: 600; color: var(--p-deep);
  background: var(--p-accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--p-accent) 18%, transparent), 0 0 30px var(--p-glow);
}
.v2-flow > li::after {
  content: ""; position: absolute; left: 1.2rem; top: 2.4rem; bottom: 0; width: 2px;
  background: linear-gradient(var(--p-accent), color-mix(in srgb, var(--p-accent) 20%, transparent));
  transform-origin: top; transform: scaleY(0); transition: transform .9s var(--v2-ease) calc(var(--i, 0) * .15s);
}
@media (min-width: 64rem) {
  .v2-flow > li::after { left: 2.4rem; right: 0; top: 1.2rem; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--p-accent), color-mix(in srgb, var(--p-accent) 20%, transparent)); transform-origin: left; transform: scaleX(0); }
}
.v2-flow > li:last-child::after { display: none; }
.v2-flow.is-in > li::after { transform: none; }
.v2-flow h3 { font-size: 1.15rem; margin: 0 0 .35rem; letter-spacing: -0.015em; }
.v2-flow p { font-size: .92rem; line-height: 1.5; color: var(--v2-ink-2); margin: 0; max-width: 34ch; }
.v2-chip-row { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .7rem; }
.v2-chip { display: inline-flex; align-items: center; gap: .4em; font-family: var(--v2-mono); font-size: .68rem; letter-spacing: .02em; line-height: 1.3; padding: .28rem .55rem; border-radius: 6px; border: 1px solid var(--v2-line-strong); color: var(--v2-ink-2); background: color-mix(in srgb, var(--v2-card) 70%, transparent); }
.v2-chip--aws { border-color: color-mix(in srgb, var(--p-accent) 55%, transparent); color: var(--v2-ink); }
.v2-chip--aws::before { content: ""; width: .45rem; height: .45rem; border-radius: 2px; background: var(--p-accent); }
.v2-flow .v2-out { display: block; margin-top: .6rem; font-family: var(--v2-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; color: var(--v2-ink); line-height: 1.1; }
.v2-flow .v2-out small { display: block; font-family: var(--v2-body); font-size: .78rem; font-weight: 500; letter-spacing: 0; color: var(--v2-ink-3); margin-top: .15rem; }

/* Architecture strip under the flow: the services and models, as a legend. */
.v2-stack { margin-top: clamp(2rem, 1rem + 3vw, 3rem); display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); background: var(--v2-line); border: 1px solid var(--v2-line); border-radius: var(--v2-radius-sm); overflow: hidden; }
.v2-stack > div { background: var(--v2-card); padding: 1rem 1.1rem; display: grid; gap: .2rem; }
.v2-stack dt { font-family: var(--v2-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--v2-ink-3); }
.v2-stack dd { margin: 0; font-weight: 600; font-size: .95rem; line-height: 1.35; }

/* ---------- 9. Feature grid --------------------------------------------- */
.v2-features { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.v2-feature { background: var(--v2-card); border: 1px solid var(--v2-line); border-radius: var(--v2-radius); padding: 1.4rem 1.4rem 1.5rem; display: grid; gap: .55rem; align-content: start; transition: transform .35s var(--v2-ease), border-color .35s, box-shadow .35s; }
.v2-feature:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--p-accent) 50%, transparent); box-shadow: var(--v2-shadow); }
.v2-feature svg { width: 28px; height: 28px; color: var(--v2-accent-text); }
.v2-feature h3 { font-size: 1.12rem; margin: 0; letter-spacing: -0.015em; }
.v2-feature p { margin: 0; font-size: .93rem; color: var(--v2-ink-2); line-height: 1.55; }

/* ---------- 10. Film block ---------------------------------------------- */
.v2-film { position: relative; border-radius: var(--v2-radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: 0 40px 90px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08); }
.v2-film video, .v2-film > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.v2-film-state { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; padding: 1.5rem; background: radial-gradient(ellipse at center, color-mix(in srgb, var(--p-deep) 82%, transparent) 0%, color-mix(in srgb, var(--p-deep) 55%, transparent) 70%); }
.v2-film > img { filter: saturate(.8) blur(1px); }
/* Film ready: the poster stays clear; the play button sits low-left, off the title card. */
.v2-film.is-ready > img { filter: none; }
.v2-film.is-ready .v2-film-state { background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55)); place-items: end start; padding: clamp(1rem, .6rem + 2vw, 2rem); }
.v2-film.is-ready .v2-play { width: 4rem; height: 4rem; }
/* The frame is always 16:9 so the film is never cropped; on phones only the waiting state gets a taller box for its text. */
.v2-film video { object-fit: contain; background: #000; }
@media (max-width: 40rem) { .v2-film:not(.is-ready) { aspect-ratio: 4 / 5; } .v2-film-state p:not(.v2-eyebrow) { font-size: .88rem; } }
.v2-film-state > div { display: grid; gap: .6rem; justify-items: center; max-width: 34ch; }
.v2-film-state .v2-eyebrow { color: var(--p-accent); }
.v2-film-state p { margin: 0; font-size: .95rem; color: rgba(255,255,255,.82); line-height: 1.5; }
.v2-film-title { font-family: var(--v2-display); font-size: clamp(1.3rem, 1rem + 1.5vw, 2rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.v2-play { width: 4.5rem; height: 4.5rem; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--p-accent); color: var(--p-deep); box-shadow: 0 0 0 10px color-mix(in srgb, var(--p-accent) 22%, transparent), 0 20px 50px -10px var(--p-glow); transition: transform .3s var(--v2-ease); }
.v2-play:hover { transform: scale(1.07); }
.v2-play svg { width: 1.6rem; height: 1.6rem; margin-left: 4px; }
.v2-pulse { width: .6rem; height: .6rem; border-radius: 50%; background: var(--p-accent); box-shadow: 0 0 0 0 var(--p-glow); animation: v2-pulse 2.2s infinite; }
@keyframes v2-pulse { 0% { box-shadow: 0 0 0 0 var(--p-glow); } 70% { box-shadow: 0 0 0 14px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.v2-film-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 1rem; font-size: .85rem; color: var(--v2-ink-3); }

/* ---------- 11. What we found: finding cards ---------------------------- */
.v2-findings { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 62rem) { .v2-findings { grid-template-columns: repeat(2, minmax(0, 1fr)); } .v2-finding--wide { grid-column: 1 / -1; } }
.v2-finding { background: var(--v2-card); border: 1px solid var(--v2-line); border-radius: var(--v2-radius); padding: clamp(1.1rem, .8rem + 1.2vw, 1.9rem); display: grid; gap: .9rem; align-content: start; min-width: 0; position: relative; overflow: hidden; }
.v2-finding::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--p-accent), transparent 70%); }
.v2-finding > * { min-width: 0; }
.v2-finding-num { font-family: var(--v2-display); font-size: var(--v2-fs-big); font-weight: 600; letter-spacing: -0.04em; line-height: .95; color: var(--v2-ink); font-variant-numeric: tabular-nums; }
.v2-finding-num small { font-size: .38em; letter-spacing: -0.01em; margin-left: .12em; color: var(--v2-ink-2); font-weight: 600; }
.v2-finding h3 { font-size: var(--v2-fs-h3); line-height: 1.2; margin: 0; letter-spacing: -0.02em; max-width: 30ch; }
.v2-finding p { margin: 0; color: var(--v2-ink-2); font-size: .95rem; line-height: 1.55; max-width: 62ch; }
.v2-finding .v2-chart { margin-top: .3rem; }
.v2-finding .v2-note, .v2-chartcard .v2-note { font-size: .8rem; color: var(--v2-ink-3); line-height: 1.45; border-top: 1px solid var(--v2-line); padding-top: .7rem; }
.v2-tag { display: inline-flex; width: fit-content; font-family: var(--v2-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; padding: .2rem .5rem; border-radius: 4px; border: 1px dashed var(--v2-line-strong); color: var(--v2-ink-2); }
/* Charts inside v2 cards sit on the card colour; v1 chart chrome reads --surface. */
body.v2 .v2-finding .pc, body.v2 .v2-chartcard .pc { --surface: var(--v2-card); }
.v2-chartcard { background: var(--v2-card); border: 1px solid var(--v2-line); border-radius: var(--v2-radius); padding: clamp(1rem, .7rem + 1.2vw, 1.8rem); display: grid; gap: .8rem; min-width: 0; }

/* ---------- 12. Method and limits panel --------------------------------- */
.v2-limits { display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); border-radius: var(--v2-radius); overflow: hidden; border: 1px solid var(--v2-line-strong); background: var(--v2-card); }
@media (min-width: 60rem) { .v2-limits { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }
.v2-limits > div { padding: clamp(1.3rem, 1rem + 1.5vw, 2.4rem); display: grid; gap: 1rem; align-content: start; }
.v2-limits-method { background: var(--v2-panel); }
.v2-limits-caveats { position: relative; }
.v2-limits-caveats::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; background: repeating-linear-gradient(135deg, var(--v2-ink-3) 0 1.5px, transparent 1.5px 7px); opacity: .5; }
.v2-limits h3 { font-size: 1.35rem; margin: 0; }
.v2-limits ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .95rem; }
.v2-limits li { margin: 0; max-width: none; padding-left: 1.6rem; position: relative; color: var(--v2-ink-2); font-size: .95rem; line-height: 1.55; }
.v2-limits li strong { color: var(--v2-ink); display: block; font-weight: 650; }
.v2-limits-caveats li::before { content: ""; position: absolute; left: 0; top: .45em; width: .8rem; height: .8rem; border: 1px solid var(--v2-ink-3); border-radius: 2px; background: repeating-linear-gradient(135deg, var(--v2-ink-3) 0 1.5px, transparent 1.5px 4px); }
.v2-limits-method li::before { content: ""; position: absolute; left: .1rem; top: .5em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--p-accent); }
.v2-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; }
.v2-facts dt { font-family: var(--v2-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--v2-ink-3); }
.v2-facts dd { margin: .15rem 0 0; font-family: var(--v2-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }

/* ---------- 13. CTA to the report --------------------------------------- */
.v2-cta { position: relative; isolation: isolate; overflow: hidden; border-radius: calc(var(--v2-radius) + 6px); background: var(--p-deep); color: #f4f5f7; padding: clamp(2rem, 1.2rem + 4vw, 4.5rem); display: grid; gap: 1.2rem; }
.v2-cta-media { position: absolute; inset: 0; z-index: -2; }
.v2-cta-media img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.v2-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, var(--p-deep) 15%, color-mix(in srgb, var(--p-deep) 60%, transparent) 60%, transparent); }
.v2-cta h2 { font-size: var(--v2-fs-h2); line-height: 1.02; margin: 0; max-width: 18ch; }
.v2-cta p { margin: 0; max-width: 52ch; color: rgba(244,245,247,.82); font-size: var(--v2-fs-lede); line-height: 1.5; }
.v2-cta .v2-eyebrow { color: var(--p-accent); }
.v2-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .3rem; }

/* ---------- 14. Footer --------------------------------------------------- */
.v2-footer { border-top: 1px solid var(--v2-line); padding-block: 2rem 3rem; font-size: .85rem; color: var(--v2-ink-3); }
.v2-footer .v2-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; }
.v2-footer p { margin: 0; max-width: 70ch; }

/* ---------- 15. Showcase cards (portal home) ----------------------------- */
.v2-showcase { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) { .v2-showcase { grid-template-columns: repeat(6, minmax(0, 1fr)); } .v2-show { grid-column: span 3; } .v2-show:nth-child(n+3) { grid-column: span 2; } }
.v2-show { position: relative; isolation: isolate; display: grid; align-content: end; min-height: 26rem; border-radius: var(--v2-radius); overflow: hidden; color: #f4f5f7; text-decoration: none; background: var(--p-deep); box-shadow: var(--v2-shadow); }
.v2-show:nth-child(-n+2) { min-height: 32rem; }
.v2-show-media { position: absolute; inset: 0; z-index: -2; }
.v2-show-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--v2-ease); }
.v2-show:hover .v2-show-media img { transform: scale(1.05); }
.v2-show::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--p-deep) 30%, color-mix(in srgb, var(--p-deep) 88%, transparent) 55%, color-mix(in srgb, var(--p-deep) 20%, transparent) 90%); }
.v2-show-body { padding: 1.4rem 1.4rem 1.5rem; display: grid; gap: .55rem; }
.v2-show .v2-eyebrow { color: var(--p-accent); }
.v2-show h3 { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2rem); line-height: 1.05; color: #fff; }
.v2-show p { margin: 0; color: rgba(244,245,247,.82); font-size: .93rem; line-height: 1.5; max-width: 46ch; }
.v2-show-stat { display: flex; align-items: baseline; gap: .7rem; padding-top: .8rem; margin-top: .3rem; border-top: 1px solid rgba(255,255,255,.16); }
.v2-show-stat b { font-family: var(--v2-display); font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--p-accent); white-space: nowrap; }
.v2-show-stat span { font-size: .8rem; line-height: 1.35; color: rgba(244,245,247,.75); }
.v2-show-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .5rem; font-size: .85rem; }
.v2-show-foot .v2-go { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: #fff; }
.v2-show-foot .v2-go svg { transition: transform .3s var(--v2-ease); }
.v2-show:hover .v2-go svg { transform: translateX(4px); }
.v2-show:focus-visible { outline: 3px solid var(--p-accent); outline-offset: 3px; }
.v2-status { display: inline-flex; align-items: center; gap: .45em; font-size: .78rem; color: rgba(244,245,247,.78); }
.v2-status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #9aa5b1; }
.v2-status[data-state="live"]::before { background: #3ddc84; box-shadow: 0 0 0 3px rgba(61,220,132,.2); }
.v2-status[data-state="in-progress"]::before { background: #ffb547; }

/* ---------- 16. Motion --------------------------------------------------- */
.v2-reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--v2-ease), transform .9s var(--v2-ease); transition-delay: calc(var(--d, 0) * 90ms); }
.v2-reveal.is-in { opacity: 1; transform: none; }
.v2-js-off .v2-reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .v2-reveal { opacity: 1; transform: none; transition: none; }
  .v2-hero-media img { animation: none; transform: none; }
  .v2-flow > li::after { transform: none !important; transition: none; }
  .v2-pulse { animation: none; }
}
@media print {
  .v2-nav { position: static; background: #000; }
  .v2-hero { min-height: 0; }
  .v2-reveal { opacity: 1; transform: none; }
}

/* ---------- 17. Phone refinements ---------------------------------------- */
@media (max-width: 40rem) {
  .v2-hero { padding-top: 6rem; }
  .v2-hero::before {
    background:
      linear-gradient(0deg, var(--p-deep) 0%, color-mix(in srgb, var(--p-deep) 78%, transparent) 55%, color-mix(in srgb, var(--p-deep) 45%, transparent) 100%);
  }
  .v2-hero-credit { position: static; display: block; margin: 1.5rem var(--v2-gutter) 0; }
  .v2-statband { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-stat-value { font-size: 1.75rem; }
}
