
/* V4 DESIGN TOKENS */
:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --display: 'Outfit', -apple-system, sans-serif;
  --bg: #FBFBFD;
  --bg2: #FFFFFF;
  --bg3: #F5F5F7;
  --bg4: #EAEAEA;
  --ink: #1D1D1F;
  --ink2: #424245;
  --ink3: #86868B;
  --ink4: #A1A1A6;
  --rule: #D2D2D7;
  --ruleSoft: rgba(0,0,0,0.08);
  --accent: #0066CC;
  --ok: #28CD41;
  --warn: #FF9F0A;
  --bad: #FF3B30;
  --blue: #0066CC;
  --radius: 18px;
  --motion-ease: cubic-bezier(0.25, 1, 0.5, 1);
}

[data-palette="dark"] {
  --bg: #000000;
  --bg2: #1C1C1E;
  --bg3: #2C2C2E;
  --bg4: #3A3A3C;
  --ink: #F5F5F7;
  --ink2: #E5E5EA;
  --ink3: #AEAEB2;
  --ink4: #8E8E93;
  --rule: #38383A;
  --ruleSoft: rgba(255,255,255,0.1);
  --accent: #2997FF;
  --ok: #30D158;
  --warn: #FF9F0A;
  --bad: #FF453A;
  --blue: #0A84FF;
}

/* ============================================================
   REPORT V4 — CINEMATIC DESIGN SYSTEM  (Enhanced Edition)
   Mobile-first. One font. One truth per screen.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ---- TOKENS (Consolidated) ---- */
:root {
  /* Using global tokens from kinetic-tokens.css */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ============================================================
   NAV
   ============================================================ */
.v4-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 56px;
  background: rgba(251,251,253,0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--ruleSoft);
}
[data-palette="dark"] .v4-nav { background: rgba(0,0,0,0.72); border-color: rgba(255,255,255,0.1); }
.v4-nav-brand {
  font-family: var(--display);
  font-size: 14px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.v4-nav-brand span { color: var(--accent); }
.v4-nav-meta {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink3); display: none;
}
@media (min-width: 640px) { .v4-nav-meta { display: block; } }
.v4-nav-controls { display: flex; align-items: center; gap: 8px; }
.v4-tab {
  padding: 6px 14px; border-radius: 980px; border: 1px solid var(--rule);
  background: transparent; color: var(--ink2); font-family: var(--font);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all 0.2s var(--motion-ease);
  min-height: 32px;
}
.v4-tab.active { background: var(--ink); color: var(--bg2); border-color: transparent; }
[data-palette="light"] .v4-tab.active { background: var(--ink); color: var(--bg); }
/* Deep Dive nav nudge — fires when user reaches bottom of Story */
@keyframes v4-tab-nudge {
  0%   { box-shadow: 0 0 0 0 rgba(59,130,246,0.7); transform: scale(1); }
  40%  { box-shadow: 0 0 0 8px rgba(59,130,246,0); transform: scale(1.06); }
  60%  { transform: scale(0.97); }
  100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); transform: scale(1); }
}
.v4-tab.nudge {
  animation: v4-tab-nudge 0.7s ease-out;
  border-color: rgba(59,130,246,0.6);
  color: var(--blue);
}
/* Small downward arrow that appears above the Deep Dive button */
#btn-deep .v4-nav-arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#btn-deep.nudge .v4-nav-arrow {
  opacity: 1;
  transform: translateY(0);
  animation: v4-arrow-bob 1s ease-in-out infinite;
}
@keyframes v4-arrow-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(3px); }
}
.v4-grade-badge {
  padding: 5px 12px; border-radius: 8px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em;
}
.grade-a { background: rgba(34,197,94,0.15); color: var(--ok); border: 1px solid rgba(34,197,94,0.3); }
.grade-b { background: rgba(59,130,246,0.15); color: var(--blue); border: 1px solid rgba(59,130,246,0.3); }
.grade-c { background: rgba(245,158,11,0.15); color: var(--warn); border: 1px solid rgba(245,158,11,0.3); }
.grade-d { background: rgba(239,68,68,0.15); color: var(--bad); border: 1px solid rgba(239,68,68,0.3); }
.v4-theme-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--rule);
  background: transparent; color: var(--ink2); font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease; flex-shrink: 0;
}
.v4-theme-btn:hover { background: var(--bg3); }

/* ---- STORY / DEEP TAB VISIBILITY ---- */
#v4-story { display: block; }
#v4-deep  { display: none; }

/* ============================================================
   FULL-SCREEN SECTIONS
   ============================================================ */
.v4-screen {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 80px 24px 60px;
  position: relative; overflow: hidden;
}
.v4-screen.alt  { background: var(--bg2); }
.v4-screen.alt2 { background: var(--bg3); }

/* ============================================================
   HERO — animated data-stream background
   ============================================================ */
.v4-hero-canvas {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: 0.35;
}
.v4-hero-content { position: relative; z-index: 1; text-align: center; }
.v4-hero-name {
  font-family: var(--display);
  font-size: clamp(40px, 10vw, 120px);
  font-weight: 900; letter-spacing: -0.05em; line-height: 0.88;
  text-align: center; color: var(--ink); text-transform: uppercase;
  opacity: 0; transform: translateY(32px);
  animation: heroSlideUp 1.2s var(--motion-ease) 0.3s forwards;
}
.v4-hero-meta {
  margin-top: 32px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink3);
  text-align: center; line-height: 2;
  opacity: 0;
  animation: heroFadeIn 0.7s ease 0.9s forwards;
}
@keyframes heroSlideUp {
  to { opacity: 1; transform: none; }
}
@keyframes heroFadeIn {
  to { opacity: 1; }
}

/* Scan-line overlay — subtle AI-processing feel */
.v4-hero-scan {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255,255,255,0.012) 3px,
    rgba(255,255,255,0.012) 4px
  );
}
[data-palette="light"] .v4-hero-scan {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.015) 3px,
    rgba(0,0,0,0.015) 4px
  );
}

/* ============================================================
   VERDICT — cinematic stamp entrance
   ============================================================ */
/* ============================================================
   STORY HERO (REFINED)
   ============================================================ */
.v4-hero-card {
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px -12px rgba(0,0,0,0.06);
  width: 100%; max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center;
  position: relative;
}
@media (max-width: 800px) {
  .v4-hero-card { grid-template-columns: 1fr; gap: 32px; padding: 24px; }
}

.v4-grade-hero {
  font-family: var(--display);
  font-size: 140px; font-weight: 200;
  color: var(--grade-color, var(--warn));
  letter-spacing: -6px; line-height: 0.9;
}
.v4-score-hero {
  font-family: var(--display);
  font-size: 42px; font-weight: 300;
  color: var(--ink); letter-spacing: -1px;
}
.v4-score-hero span { color: var(--ink4); font-size: 24px; }

.v4-hero-dimension-strip {
  background: var(--bg3); border-radius: 14px;
  padding: 24px 20px; display: flex; justify-content: space-around; gap: 12px;
}
.v4-score-arc-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.v4-score-arc-svg { transform: rotate(-90deg); width: 100px; height: 100px; }
.v4-score-arc-label {
  font-size: 13px; font-weight: 600; color: var(--ink); text-align: center;
}
.v4-score-arc-sub {
  font-size: 11px; color: var(--ink4); margin-top: 2px;
}

/* Hero Tiles */
.v4-hero-tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 1080px; margin: 24px auto 0;
}
@media (max-width: 768px) { .v4-hero-tiles { grid-template-columns: 1fr; } }
.v4-hero-tile {
  background: var(--bg2); border-radius: 18px; padding: 22px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px -12px rgba(0,0,0,0.06);
  display: flex; flex-direction: column; gap: 14px; min-height: 180px;
}
.v4-tile-label {
  font-size: 12px; color: var(--ink4); letter-spacing: 0.3px;
  text-transform: uppercase; font-weight: 500;
}
.v4-tile-stat {
  font-family: var(--display); font-size: 36px; font-weight: 300;
  color: var(--warn); letter-spacing: -1.4px; line-height: 1;
}
.v4-tile-stat-label { font-size: 12.5px; color: var(--ink3); }
.v4-tile-headline { font-size: 14px; color: var(--ink); line-height: 1.4; font-weight: 400; }

/* Key Signals Strip */
.v4-signals-strip {
  background: var(--bg2); border-radius: 18px; padding: 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px -12px rgba(0,0,0,0.06);
  max-width: 1080px; margin: 24px auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
@media (max-width: 640px) { .v4-signals-strip { grid-template-columns: 1fr 1fr; gap: 20px; } }
.v4-signal-col {
  padding: 0 20px; border-right: 0.5px solid var(--ruleSoft);
}
.v4-signal-col:last-child { border-right: none; }
.v4-signal-label { font-size: 12.5px; color: var(--ink3); }
.v4-signal-val {
  font-family: var(--display); font-size: 28px; font-weight: 400;
  color: var(--ink); letter-spacing: -0.6px; margin-top: 8px;
}
.v4-signal-delta {
  display: flex; align-items: center; gap: 4px; margin-top: 8px;
  font-size: 12px; font-weight: 500;
}
.v4-delta-up { color: var(--ok); }
.v4-delta-down { color: var(--bad); }

/* ============================================================
   EVIDENCE TILES — clickable grade-reason cards below verdict
   ============================================================ */
.v4-evidence-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  max-width: 900px;
  width: 100%;
  margin: 40px auto 0;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease 0.8s, transform 0.5s ease 0.8s;
}
.v4-verdict-grade.revealed ~ .v4-evidence-tiles { opacity: 1; transform: none; }
.v4-ev-tile {
  background: var(--bg3);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 18px 20px;
  cursor: pointer;
  text-decoration: none;
  display: flex; flex-direction: column; gap: 6px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  position: relative; overflow: hidden;
}
.v4-ev-tile::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--ev-accent, var(--bad));
  border-radius: 14px 14px 0 0;
}
.v4-ev-tile:hover {
  background: var(--bg4);
  border-color: var(--ev-accent, var(--bad));
  transform: translateY(-2px);
}
.v4-ev-tile:hover .v4-ev-arrow { opacity: 1; transform: translateX(0); }
.v4-ev-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ev-accent, var(--bad));
}
.v4-ev-headline {
  font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.4;
}
.v4-ev-contrast {
  font-size: 11px; font-weight: 500; color: var(--ink3);
  background: var(--bg4); border-radius: 6px;
  padding: 2px 8px; display: inline-block; width: fit-content;
}
.v4-ev-arrow {
  margin-top: auto; padding-top: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--ev-accent, var(--bad));
  opacity: 0; transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
/* Grade-colour variants */
.v4-ev-tile.ev-bad  { --ev-accent: var(--bad); }
.v4-ev-tile.ev-warn { --ev-accent: var(--warn); }
.v4-ev-tile.ev-ok   { --ev-accent: var(--ok); }
.v4-ev-tile.ev-blue { --ev-accent: var(--blue); }
/* Mobile: 2-col grid */
@media (max-width: 600px) {
  .v4-evidence-tiles { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
  .v4-ev-tile { padding: 14px 14px; }
  .v4-ev-headline { font-size: 12px; }
}
@media (max-width: 380px) {
  .v4-evidence-tiles { grid-template-columns: 1fr; }
}
/* Verdict screen: allow extra height for evidence tiles */
.v4-screen.alt { min-height: 100vh; height: auto; padding-bottom: 80px; }

/* ============================================================
   TRUSTSCORE ORBIT — enhanced with glow + rotating ring
   ============================================================ */
.v4-orbit-wrap {
  position: relative; width: min(480px, 88vw); height: min(480px, 88vw);
  margin: 0 auto;
}
.v4-orbit-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center; z-index: 10;
}
.v4-orbit-score {
  font-size: clamp(64px, 12vw, 120px);
  font-weight: 900; letter-spacing: -0.05em; line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 40px rgba(59,130,246,0.4);
  transition: text-shadow 0.3s ease;
}
.v4-orbit-score.pulsing {
  animation: scorePulse 2s ease-in-out infinite;
}
@keyframes scorePulse {
  0%, 100% { text-shadow: 0 0 30px rgba(59,130,246,0.3); }
  50%       { text-shadow: 0 0 60px rgba(59,130,246,0.6), 0 0 100px rgba(59,130,246,0.2); }
}
.v4-orbit-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink3); margin-top: 4px;
}
.v4-orbit-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
/* Rotating outer ring */
.v4-orbit-ring {
  transform-origin: 240px 240px;
  animation: orbitSpin 20s linear infinite;
}
@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.v4-orbit-explain {
  max-width: 560px; margin: 28px auto 0;
  font-size: 14px; font-weight: 400; line-height: 1.6;
  color: var(--ink3); text-align: center;
}
.v4-orbit-explain strong { color: var(--ink2); }
.v4-orbit-section-title {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink3);
  text-align: center; margin-bottom: 16px;
}

/* ============================================================
   KPI SIGNAL CARDS
   ============================================================ */
.v4-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px; width: 100%; max-width: 1100px; margin: 0 auto;
}
@media (min-width: 640px) {
  .v4-kpi-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
}
.v4-kpi-card {
  background: var(--bg3); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 20px;
  position: relative; overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.3s ease;
  opacity: 0; transform: translateY(20px);
}
.v4-kpi-card.revealed {
  opacity: 1; transform: none;
  transition: opacity 0.5s var(--motion-ease), transform 0.5s var(--motion-ease),
              border-color 0.2s ease, box-shadow 0.3s ease;
}
.v4-kpi-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: 3px 3px 0 0; transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--motion-ease) 0.3s;
}
.v4-kpi-card.revealed::before { transform: scaleX(1); }
.v4-kpi-card.ok::before   { background: var(--ok); }
.v4-kpi-card.warn::before { background: var(--warn); }
.v4-kpi-card.bad::before  { background: var(--bad); }
.v4-kpi-card.blue::before { background: var(--blue); }
.v4-kpi-card:hover { transform: translateY(-3px); border-color: var(--ink4); }
.v4-kpi-card.ok:hover   { box-shadow: 0 8px 32px rgba(34,197,94,0.12); }
.v4-kpi-card.warn:hover { box-shadow: 0 8px 32px rgba(245,158,11,0.12); }
.v4-kpi-card.bad:hover  { box-shadow: 0 8px 32px rgba(239,68,68,0.12); }
.v4-kpi-card.blue:hover { box-shadow: 0 8px 32px rgba(59,130,246,0.12); }
.v4-kpi-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.v4-kpi-key { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink3); }
.v4-kpi-spark { width: 60px; height: 28px; }
.v4-kpi-val {
  font-size: clamp(20px, 3.5vw, 32px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--ink);
}
.v4-kpi-context { margin-top: 8px; font-size: 12px; font-weight: 400; line-height: 1.5; color: var(--ink3); }
.v4-kpi-delta {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 10px; padding: 3px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
}
.v4-kpi-delta.up      { background: rgba(34,197,94,0.12); color: var(--ok); }
.v4-kpi-delta.down    { background: rgba(239,68,68,0.12); color: var(--bad); }
.v4-kpi-delta.neutral { background: rgba(255,255,255,0.06); color: var(--ink3); }

/* ============================================================
   HOT PILLS (Insights)
   ============================================================ */
.v4-pills-title {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink3); margin-bottom: 20px;
}
.v4-pills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px; width: 100%; max-width: 1100px;
}
@media (min-width: 600px) {
  .v4-pills-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .v4-pills-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
}
.v4-pill {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px; border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: default;
  opacity: 0; transform: translateY(16px);
}
[data-palette="light"] .v4-pill { background: transparent; }
.v4-pill.revealed {
  opacity: 1; transform: none;
  transition: opacity 0.45s var(--motion-ease), transform 0.45s var(--motion-ease),
              border-color 0.2s ease, box-shadow 0.2s ease;
}
.v4-pill:hover { transform: translateY(-2px); border-color: var(--ink4); }
.v4-pill.ok:hover   { box-shadow: 0 4px 20px rgba(34,197,94,0.1); }
.v4-pill.warn:hover { box-shadow: 0 4px 20px rgba(245,158,11,0.1); }
.v4-pill.bad:hover  { box-shadow: 0 4px 20px rgba(239,68,68,0.1); }
.v4-pill-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  transition: transform 0.3s var(--motion-ease);
}
.v4-pill.revealed .v4-pill-icon { animation: iconBounce 0.5s var(--motion-ease) 0.2s both; }
@keyframes iconBounce {
  0%   { transform: scale(0.6); opacity: 0; }
  70%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.v4-pill-icon.ok   { background: rgba(34,197,94,0.15); }
.v4-pill-icon.warn { background: rgba(245,158,11,0.15); }
.v4-pill-icon.bad  { background: rgba(239,68,68,0.15); }
.v4-pill-icon.blue { background: rgba(59,130,246,0.15); }
.v4-pill-body { min-width: 0; }
.v4-pill-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 3px;
}
.v4-pill-label.ok   { color: var(--ok); }
.v4-pill-label.warn { color: var(--warn); }
.v4-pill-label.bad  { color: var(--bad); }
.v4-pill-label.blue { color: var(--blue); }
.v4-pill-headline { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.v4-pill-sub { font-size: 12px; font-weight: 400; color: var(--ink3); margin-top: 3px; line-height: 1.6; }

/* ============================================================
   SUMMARY BULLET LIST — cinematic minimal, Deep Dive Ch01
   ============================================================ */
.v4-summary-bullets {
  list-style: none;
  padding: 0; margin: 0 0 28px 0;
  display: flex; flex-direction: column; gap: 0;
}
.v4-summary-bullets li {
  padding: 20px 0 20px 20px;
  border-left: 2px solid var(--rule);
  background: none;
  font-size: 14px; color: var(--ink2); line-height: 1.75;
  position: relative;
  transition: border-color 0.2s ease;
}
.v4-summary-bullets li::before {
  content: '';
  position: absolute; left: -2px; top: 0; bottom: 0; width: 2px;
  background: var(--bad);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--motion-ease);
}
.v4-summary-bullets li:hover::before {
  transform: scaleY(1);
}
.v4-summary-bullets li strong {
  display: block;
  font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em;
  margin-bottom: 5px;
}
.v4-summary-bullets li br { display: none; }

/* ============================================================
   GO DEEPER CTA — flashing arrow at end of Story
   ============================================================ */
.v4-go-deeper {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 20px; padding: 80px 24px 60px;
  text-align: center;
}
.v4-go-deeper-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink3);
}
.v4-go-deeper-title {
  font-size: clamp(22px, 4vw, 38px); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.2; color: var(--ink);
}
.v4-go-deeper-sub {
  font-size: clamp(14px, 1.8vw, 17px); color: var(--ink2);
  max-width: 480px; line-height: 1.65;
}
.v4-go-deeper-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px; border-radius: 50px;
  background: var(--accent); color: #fff;
  font-family: var(--font); font-size: 16px; font-weight: 700;
  letter-spacing: -0.01em; cursor: pointer;
  border: none; text-decoration: none;
  min-height: 52px; min-width: 200px;
  box-shadow: 0 0 0 0 rgba(59,130,246,0.5);
  animation: goDeepPulse 2s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.v4-go-deeper-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(59,130,246,0.4);
  animation: none;
}
.v4-go-deeper-arrow {
  font-size: 20px;
  animation: goDeepBounce 1.2s ease-in-out infinite;
}
@keyframes goDeepPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.5); }
  50%       { box-shadow: 0 0 0 12px rgba(59,130,246,0); }
}
@keyframes goDeepBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* ============================================================
   MOVERS — numbers count up + bar animates
   ============================================================ */
.v4-movers-list { width: 100%; max-width: 900px; }
.v4-mover-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px 20px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
  opacity: 0; transform: translateX(-20px);
}
.v4-mover-row.revealed {
  opacity: 1; transform: none;
  transition: opacity 0.5s var(--motion-ease), transform 0.5s var(--motion-ease);
}
.v4-mover-name    { font-size: 15px; font-weight: 600; color: var(--ink); }
.v4-mover-figures { font-size: 12px; color: var(--ink3); margin-top: 3px; }
.v4-mover-insight { font-size: 12px; color: var(--ink3); margin-top: 4px; font-style: italic; }
.v4-mover-bar-wrap { width: 100px; height: 4px; background: var(--rule); border-radius: 2px; overflow: hidden; }
@media (max-width: 640px) { .v4-mover-bar-wrap { display: none; } }
.v4-mover-bar { height: 100%; border-radius: 2px; width: 0; transition: width 1s var(--motion-ease); }
.v4-mover-bar.up   { background: var(--ok); }
.v4-mover-bar.down { background: var(--bad); }
.v4-mover-pct {
  font-size: 20px; font-weight: 800; letter-spacing: -0.03em;
  min-width: 70px; text-align: right;
}
.v4-mover-pct.up   { color: var(--ok); }
.v4-mover-pct.down { color: var(--bad); }
.v4-mover-pct.flat { color: var(--ink3); }

/* ============================================================
   TIMELINE — self-drawing spine + alternating slide-in
   ============================================================ */
.v4-timeline { width: 100%; max-width: 860px; position: relative; padding-left: 40px; }
.v4-tl-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.v4-tl-stat { flex: 1; padding: 10px 14px; background: rgba(15,31,53,0.03); border: 1px solid var(--rule); border-radius: 8px; min-width: 140px; }
.v4-tl-stat-year { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink3); margin-bottom: 6px; border-bottom: 1px solid var(--rule); padding-bottom: 4px; }
.v4-tl-stat-row { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 3px; line-height: 1.2; }
.v4-tl-stat-row span { color: var(--ink3); font-weight: 500; }
.v4-tl-stat-row strong { color: var(--ink); font-weight: 700; }
/* The spine draws itself as you scroll via JS clip-path */
.v4-timeline::before {
  content: ''; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(to bottom, transparent, var(--rule) 10%, var(--rule) 90%, transparent);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.2s var(--motion-ease);
}
.v4-timeline.spine-revealed::before { transform: scaleY(1); }
.v4-tl-entry {
  position: relative; margin-bottom: 48px;
  opacity: 0; transform: translateY(20px);
}
.v4-tl-entry.revealed {
  opacity: 1; transform: none;
  transition: opacity 0.55s var(--motion-ease), transform 0.55s var(--motion-ease);
}
/* Dot pulses when entry reveals */
.v4-tl-dot {
  position: absolute; left: -35px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  border: 3px solid var(--bg); box-shadow: 0 0 0 2px currentColor;
  transition: box-shadow 0.3s ease;
}
.v4-tl-entry.revealed .v4-tl-dot { animation: dotPop 0.4s var(--motion-ease) 0.15s both; }
@keyframes dotPop {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.v4-tl-dot.crisis    { color: var(--bad);  background: var(--bad); }
.v4-tl-dot.recovery  { color: var(--ok);   background: var(--ok); }
.v4-tl-dot.growth    { color: var(--blue); background: var(--blue); }
.v4-tl-dot.warning   { color: var(--warn); background: var(--warn); }
.v4-tl-dot.stable    { color: var(--ok);   background: var(--ok); }
.v4-tl-dot.neutral   { color: var(--ink3); background: var(--ink3); }
/* Glow pulse on crisis dots */
.v4-tl-dot.crisis { animation: crisisPulse 2s ease-in-out infinite; }
@keyframes crisisPulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--bad); }
  50%       { box-shadow: 0 0 0 2px var(--bad), 0 0 12px rgba(239,68,68,0.5); }
}
.v4-tl-badge {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 8px;
}
.v4-tl-badge.crisis   { background: rgba(239,68,68,0.12);  color: var(--bad); }
.v4-tl-badge.recovery { background: rgba(34,197,94,0.12);  color: var(--ok); }
.v4-tl-badge.growth   { background: rgba(59,130,246,0.12); color: var(--blue); }
.v4-tl-badge.warning  { background: rgba(245,158,11,0.12); color: var(--warn); }
.v4-tl-badge.stable   { background: rgba(34,197,94,0.12);  color: var(--ok); }
.v4-tl-badge.neutral  { background: rgba(255,255,255,0.06); color: var(--ink3); }
.v4-tl-period   { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink3); margin-bottom: 6px; }
.v4-tl-headline { font-size: clamp(16px, 2.2vw, 22px); font-weight: 700; color: var(--ink); line-height: 1.3; margin-bottom: 8px; }
.v4-tl-body     { font-size: 14px; font-weight: 400; color: var(--ink2); line-height: 1.65; }
.v4-tl-chips    { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.v4-tl-chip {
  padding: 3px 10px; border-radius: 20px;
  background: var(--bg3); border: 1px solid var(--rule);
  font-size: 11px; font-weight: 500; color: var(--ink3);
}

/* ============================================================
   SECTION CHROME
   ============================================================ */
.v4-section-overline {
  font-family: var(--display);
  font-size: 12px; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
  text-align: center; margin-bottom: 16px;
}
.v4-section-title {
  font-family: var(--display);
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.05;
  text-align: center; margin-bottom: 16px;
}
.v4-section-sub {
  font-size: clamp(14px, 1.8vw, 18px); font-weight: 400;
  color: var(--ink2); text-align: center; max-width: 600px;
  margin: 0 auto 40px; line-height: 1.6;
}

/* ============================================================
   AI DATA FINGERPRINT — new section between KPIs and insights
   ============================================================ */
.v4-fingerprint {
  width: 100%; max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .v4-fingerprint { grid-template-columns: repeat(3, 1fr); }
}
.v4-fp-card {
  background: var(--bg3); border: 1px solid var(--rule);
  border-radius: 12px; padding: 18px 20px;
  opacity: 0; transform: translateY(16px);
}
.v4-fp-card.revealed {
  opacity: 1; transform: none;
  transition: opacity 0.5s var(--motion-ease), transform 0.5s var(--motion-ease);
}
.v4-fp-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink3); margin-bottom: 10px;
}
.v4-fp-bar-track {
  height: 6px; background: var(--rule); border-radius: 3px; overflow: hidden; margin-bottom: 8px;
}
.v4-fp-bar-fill {
  height: 100%; border-radius: 3px; width: 0;
  transition: width 1.1s var(--motion-ease);
}
.v4-fp-bar-fill.ok   { background: linear-gradient(90deg, var(--ok), #4ade80); }
.v4-fp-bar-fill.warn { background: linear-gradient(90deg, var(--warn), #fbbf24); }
.v4-fp-bar-fill.bad  { background: linear-gradient(90deg, var(--bad), #f87171); }
.v4-fp-bar-fill.blue { background: linear-gradient(90deg, var(--blue), #60a5fa); }
.v4-fp-value { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.v4-fp-sub   { font-size: 11px; color: var(--ink3); margin-top: 3px; }

/* ============================================================
   CLOSING SCREEN
   ============================================================ */
.v4-close-grade {
  font-size: clamp(100px, 22vw, 280px);
  font-weight: 900; letter-spacing: -0.06em; line-height: 0.85;
  text-align: center; opacity: 0.06;
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; user-select: none;
  animation: closeFade 2s ease 0.5s both;
}
@keyframes closeFade {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 0.06; transform: scale(1); }
}
.v4-close-content { position: relative; z-index: 2; text-align: center; }
.v4-close-verdict { font-size: clamp(20px, 4vw, 42px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.v4-close-sub { font-size: clamp(13px, 1.6vw, 17px); color: var(--ink2); margin-top: 16px; max-width: 520px; line-height: 1.65; }
.v4-reassess { margin-top: 40px; padding: 24px 28px; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--bg3); max-width: 520px; text-align: left; }
.v4-reassess-title { font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink3); margin-bottom: 12px; }
.v4-reassess-item { font-size: 13px; color: var(--ink2); padding: 6px 0; border-bottom: 1px solid var(--rule); display: flex; gap: 10px; align-items: flex-start; }
.v4-reassess-item:last-child { border-bottom: none; }
.v4-reassess-item::before { content: '→'; color: var(--ink3); flex-shrink: 0; margin-top: 1px; }

/* ============================================================
   DEEP DIVE TAB
   ============================================================ */
.v4-deep {
  max-width: 1200px; margin: 0 auto;
  padding: 80px 24px 60px;
}
.v4-deep-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--rule);
  margin-bottom: 48px; flex-wrap: wrap;
}
.v4-deep-company { font-size: clamp(20px, 4vw, 36px); font-weight: 800; letter-spacing: -0.03em; }
.v4-deep-meta { font-size: 12px; color: var(--ink3); margin-top: 6px; line-height: 1.8; }
.v4-deep-score-block { text-align: right; }
.v4-deep-score-num { font-size: 56px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; color: var(--accent); }
.v4-deep-score-label { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink3); margin-top: 4px; }
.v4-sub-scores { display: flex; gap: 20px; margin-top: 10px; justify-content: flex-end; flex-wrap: wrap; }
.v4-sub-score { text-align: center; }
.v4-sub-score-num { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.v4-sub-score-label { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink3); }

/* Deep Dive chapter headings */
.v4-chapter {
  margin-bottom: 64px; padding-top: 48px;
  border-top: 1px solid var(--rule);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s var(--motion-ease), transform 0.5s var(--motion-ease);
}
.v4-chapter.revealed { opacity: 1; transform: none; }
.v4-chapter:first-child { border-top: none; padding-top: 0; }
.v4-ch-num {
  font-family: var(--display);
  font-size: 11px; font-weight: 800; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.v4-ch-title {
  font-family: var(--display);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 12px;
}
.v4-ch-standfirst {
  font-size: clamp(14px, 1.8vw, 17px);
  color: var(--ink2); line-height: 1.65; max-width: 720px; margin-bottom: 32px;
}

/* Deep Dive tables */
.v4-table-wrap { overflow-x: auto; margin-bottom: 24px; -webkit-overflow-scrolling: touch; }
.v4-table { width: 100%; border-collapse: collapse; font-size: 13px; font-weight: 400; }
.v4-table th {
  padding: 10px 14px; text-align: right;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink3);
  border-bottom: 1px solid var(--rule); white-space: nowrap;
}
.v4-table th:first-child { text-align: left; }
.v4-table td {
  padding: 10px 14px; text-align: right;
  border-bottom: 1px solid var(--rule);
  color: var(--ink2); white-space: nowrap;
}
.v4-table td:first-child { text-align: left; font-weight: 500; color: var(--ink); }
.v4-table tr:last-child td { border-bottom: none; }
.v4-table td.neg { color: var(--bad); }
.v4-table td.pos { color: var(--ok); }
.v4-table td.highlight { font-weight: 700; color: var(--ink); }

/* Ratio cards — with animated fill bar */
.v4-ratio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px; margin-bottom: 24px;
}
@media (min-width: 640px) {
  .v4-ratio-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
}
.v4-ratio-card {
  padding: 20px; border-radius: 12px;
  background: var(--bg3); border: 1px solid var(--rule);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.4s var(--motion-ease), transform 0.4s var(--motion-ease);
}
.v4-ratio-card.revealed { opacity: 1; transform: none; }
.v4-ratio-name { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink3); margin-bottom: 6px; }
.v4-ratio-val  { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.v4-ratio-bench { font-size: 11px; color: var(--ink3); margin-top: 4px; }
.v4-ratio-bar-track { height: 3px; background: var(--rule); border-radius: 2px; margin-top: 10px; overflow: hidden; }
.v4-ratio-bar-fill  { height: 100%; border-radius: 2px; width: 0; transition: width 0.9s var(--motion-ease) 0.2s; }

/* Risk cards — left border pulse on entry */
.v4-risk-list { display: flex; flex-direction: column; gap: 12px; }
.v4-risk-card {
  padding: 20px; border-radius: 12px;
  background: var(--bg3); border: 1px solid var(--rule);
  border-left: 4px solid transparent;
  opacity: 0; transform: translateX(-12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.v4-risk-card.revealed { opacity: 1; transform: none; }
.v4-risk-card.critical  { border-left-color: var(--bad); }
.v4-risk-card.important { border-left-color: var(--warn); }
.v4-risk-card.watch     { border-left-color: var(--blue); }
.v4-risk-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.v4-risk-severity {
  padding: 2px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.v4-risk-severity.critical  { background: rgba(239,68,68,0.12);  color: var(--bad); }
.v4-risk-severity.important { background: rgba(245,158,11,0.12); color: var(--warn); }
.v4-risk-severity.watch     { background: rgba(59,130,246,0.12); color: var(--blue); }
.v4-risk-title    { font-size: 15px; font-weight: 700; color: var(--ink); }
.v4-risk-body     { font-size: 13px; color: var(--ink2); line-height: 1.6; }
.v4-risk-evidence { font-size: 11px; color: var(--ink3); margin-top: 8px; font-style: italic; }

/* Compliance rows */
.v4-comp-list { display: flex; flex-direction: column; gap: 8px; }
.v4-comp-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 10px;
  background: var(--bg3); border: 1px solid var(--rule);
  min-height: 44px;
}
.v4-comp-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.v4-comp-dot.pass   { background: var(--ok); }
.v4-comp-dot.review { background: var(--warn); }
.v4-comp-dot.flag   { background: var(--bad); }
.v4-comp-check  { font-size: 13px; font-weight: 600; color: var(--ink); flex: 1; }
.v4-comp-result { font-size: 12px; color: var(--ink3); }

/* Director cards */
.v4-director-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (min-width: 640px) {
  .v4-director-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
}
.v4-director-card {
  padding: 18px 18px 18px 24px; border-radius: 0;
  background: transparent; border: none;
  border-left: 2px solid var(--rule);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.v4-director-card.revealed { opacity: 1; transform: none; }
.v4-director-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.v4-director-role { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink3); margin-top: 3px; }
.v4-director-meta { font-size: 12px; color: var(--ink3); margin-top: 8px; line-height: 1.6; }
.v4-dir-meta-label { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink3); }
.v4-dir-flag-agent { display: inline-block; margin-top: 4px; padding: 2px 7px; font-size: 11px; color: var(--warn); background: rgba(165,107,30,0.1); border-radius: 4px; }

/* Avatar + intelligence chips on director cards (parity with v3 partial) */
.v4-dir-card-head { display: flex; gap: 12px; align-items: flex-start; }
.v4-dir-card-avatar { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--ink2)); color: var(--paper); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; letter-spacing: 0.04em; }
.v4-dir-card-id { flex: 1; min-width: 0; }
.v4-dir-chips { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.v4-dir-chip { display: inline-block; padding: 3px 9px; font-size: 11px; font-weight: 600; border-radius: 999px; line-height: 1.4; }
.v4-dir-chip-strong { background: rgba(47,104,71,0.12); color: var(--ok); }
.v4-dir-chip-mixed { background: rgba(165,107,30,0.14); color: var(--warn); }
.v4-dir-chip-weak { background: rgba(138,45,31,0.14); color: var(--bad); }
.v4-dir-chip-neutral { background: var(--paper2); color: var(--ink2); border: 1px solid var(--rule); }
.v4-dir-chips-cap { font-size: 11px; color: var(--ink3); margin: 6px 0 0; }
.v4-dir-phoenix { margin-top: 10px; font-size: 12px; }
.v4-dir-phoenix-sum { color: var(--bad); font-weight: 600; cursor: pointer; padding: 4px 0; }
.v4-dir-phoenix-list { list-style: none; margin: 8px 0 0; padding: 0; }
.v4-dir-phoenix-list li { padding: 4px 0; border-bottom: 1px dashed var(--rule); font-size: 12px; }
.v4-dir-phoenix-list li:last-child { border-bottom: 0; }
.v4-dir-phoenix-co { color: var(--ink); font-weight: 600; }
.v4-dir-phoenix-sep { color: var(--ink3); }
.v4-dir-phoenix-date { font-family: 'JetBrains Mono', monospace; color: var(--ink3); font-size: 11px; }
.v4-dir-addr { margin-top: 12px; padding: 8px 12px; background: rgba(15,31,53,0.04); border-radius: 6px; font-size: 12px; }
.v4-dir-addr-label { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink3); margin-bottom: 2px; }
.v4-dir-addr-value { color: var(--ink2); }

/* OSINT alert banner */
.v4-osint-alert { padding: 14px 18px; background: rgba(138,45,31,0.06); border-left: 4px solid var(--bad); border-radius: 8px; margin-bottom: 22px; }
.v4-osint-alert-overline { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bad); margin-bottom: 4px; }
.v4-osint-alert-body { font-size: 13px; color: var(--ink); line-height: 1.55; }

/* Director / Ownership insight prose blocks */
.v4-dir-narr { margin-bottom: 24px; padding: 16px 20px; background: var(--paper2); border-left: 3px solid var(--accent); border-radius: 8px; }
.v4-dir-narr-ownership { border-left-color: var(--ink2); }
.v4-dir-narr-overline { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink3); margin-bottom: 6px; }
.v4-dir-narr-title { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.v4-dir-narr-prose p { font-size: 13px; color: var(--ink2); line-height: 1.65; margin: 0 0 10px; }
.v4-dir-narr-prose p:last-child { margin-bottom: 0; }

/* Connected entities (OSINT network nodes) grid */
.v4-osint-nodes { margin-bottom: 24px; }
.v4-osint-grid { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.v4-osint-node { padding: 10px 14px; background: var(--paper2); border: 1px solid var(--rule); border-radius: 8px; }
.v4-osint-node-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.v4-osint-node-role { font-size: 11px; color: var(--ink3); margin-top: 2px; }

/* Board intelligence aggregate banner */
.v4-dir-agg { margin-bottom: 22px; padding: 14px 18px; background: var(--paper2); border: 1px solid var(--rule); border-radius: 10px; }
.v4-dir-agg-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink3); margin-bottom: 10px; }
.v4-dir-agg-stats { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.v4-dir-agg-stat { display: flex; flex-direction: column; gap: 2px; }
.v4-dir-agg-stat-value { font-size: 22px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.v4-dir-agg-stat-cap { font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink3); }

/* Previous-Director Outliers (career-wide dissolved) */
.v4-prev-outliers { margin-top: 36px; padding: 16px 20px; background: rgba(165,107,30,0.06); border: 1px solid rgba(165,107,30,0.25); border-radius: 12px; }
.v4-prev-outliers-overline { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--warn); margin-bottom: 4px; }
.v4-prev-outliers-title { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.v4-prev-outliers-sub { font-size: 12px; color: var(--ink3); line-height: 1.55; margin: 0 0 12px; }
.v4-prev-outliers-list { list-style: none; margin: 0; padding: 0; }
.v4-prev-outliers-row { display: grid; grid-template-columns: 1.4fr 2fr; gap: 6px 14px; padding: 9px 0; border-bottom: 1px dashed rgba(165,107,30,0.3); }
.v4-prev-outliers-row:last-child { border-bottom: 0; }
.v4-prev-outliers-name { font-size: 13px; color: var(--ink); }
.v4-prev-outliers-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; font-size: 9.5px; background: var(--paper); border: 1px solid var(--rule); color: var(--ink3); border-radius: 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.v4-prev-outliers-stats { font-size: 12px; color: var(--ink2); display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.v4-prev-outliers-big { font-size: 18px; font-weight: 700; color: var(--warn); }
.v4-prev-outliers-big-label { font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--warn); }
.v4-prev-outliers-sep { color: var(--ink3); }
.v4-prev-outliers-meta { grid-column: 1 / -1; font-size: 11.5px; color: var(--ink3); }

/* Director Network Intelligence + Cross-company bleed (Chapter 08 sub-sections) */
.v4-dni-section { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--rule); }
.v4-dni-title { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink3); margin-bottom: 4px; }
.v4-dni-sub { font-size: 12px; color: var(--ink3); margin-bottom: 14px; }
.v4-dni-sub strong { color: var(--ink); font-weight: 700; }
.v4-dni-headline { padding: 12px 16px; background: var(--paper2); border-left: 3px solid var(--accent); border-radius: 8px; margin-bottom: 16px; font-size: 13px; }
.v4-dni-headline strong { color: var(--ink); display: block; margin-bottom: 4px; }
.v4-dni-summary { font-size: 12.5px; color: var(--ink3); line-height: 1.55; }
.v4-dni-summary strong { display: inline; color: var(--ink); }
.v4-dni-table-wrap { border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--paper2); }
.v4-dni-table { width: 100%; border-collapse: collapse; font-family: var(--font); font-size: 13px; }
.v4-dni-table thead th { padding: 10px 12px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink3); text-align: left; border-bottom: 1px solid var(--rule); }
.v4-dni-table thead th.num { text-align: right; }
.v4-dni-table tbody td { padding: 10px 12px; border-bottom: 1px solid var(--rule); color: var(--ink2); vertical-align: middle; }
.v4-dni-table tbody td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.v4-dni-table tbody tr.v4-dni-row { cursor: pointer; transition: background 120ms ease; }
.v4-dni-table tbody tr.v4-dni-row:hover { background: rgba(15,31,53,0.03); }
.v4-dni-table tbody tr.v4-dni-detail-row td { border-bottom: 0; padding: 0; }
.v4-dni-name { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.v4-dni-toggle { font-size: 10px; color: var(--ink3); margin-left: 6px; display: inline-block; transition: transform 0.25s ease; }
.v4-dni-toggle.open { transform: rotate(180deg); }
.v4-dni-flag { color: var(--bad); }
.v4-dni-detail { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-in-out; background: rgba(15,31,53,0.02); }
.v4-dni-detail-inner { padding: 14px 16px; border-bottom: 2px solid var(--rule); }
.v4-dni-detail-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink3); margin-bottom: 8px; }
.v4-dni-appt-list { list-style: none; margin: 0; padding: 0; font-size: 12.5px; line-height: 1.55; }
.v4-dni-appt { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.v4-dni-appt:last-child { border-bottom: 0; }
.v4-dni-appt-co a { color: var(--ink); font-weight: 600; text-decoration: none; }
.v4-dni-appt-co a:hover { text-decoration: underline; }
.v4-dni-appt-num { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--ink3); }
.v4-dni-appt-role { color: var(--ink3); margin-left: 8px; font-size: 12px; }
.v4-dni-appt-resigned { color: var(--ink4, var(--ink3)); margin-left: 6px; font-size: 10.5px; }
.v4-dni-appt-cta { color: var(--accent); text-decoration: underline; font-size: 12px; white-space: nowrap; flex-shrink: 0; }
.v4-dni-pill { display: inline-block; margin-left: 6px; padding: 1px 7px; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; border-radius: 4px; vertical-align: middle; }
.v4-dni-pill-grey { color: var(--paper); background: var(--ink3); }
.v4-dni-pill-red { color: var(--paper); background: var(--bad); }
.v4-dni-profile-link { margin-top: 12px; text-align: right; font-size: 11px; }
.v4-dni-profile-link a { color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; text-decoration: underline; }
.v4-dni-empty { font-size: 12px; color: var(--ink3); }
.v4-dni-source { font-size: 11px; color: var(--ink3); font-style: italic; margin-top: 10px; line-height: 1.5; }

.v4-bleed-list { display: flex; flex-direction: column; gap: 12px; }
.v4-bleed-card { padding: 14px 16px; background: var(--paper2); border: 1px solid var(--rule); border-left: 3px solid var(--bad); border-radius: 8px; }
.v4-bleed-name { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.v4-bleed-name a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.v4-bleed-name a:hover { border-bottom-color: var(--accent); }
.v4-bleed-count { font-size: 11px; font-weight: 600; color: var(--bad); text-transform: uppercase; letter-spacing: 0.06em; }
.v4-bleed-co-list { list-style: none; margin: 0; padding: 0; font-size: 12.5px; line-height: 1.6; }
.v4-bleed-co { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--rule); }
.v4-bleed-co:last-child { border-bottom: 0; }
.v4-bleed-co a { color: var(--ink); text-decoration: none; }
.v4-bleed-co a:hover { text-decoration: underline; }
.v4-bleed-co-status { display: inline-block; padding: 2px 8px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; border-radius: 4px; flex-shrink: 0; min-width: 84px; text-align: center; }
.v4-bleed-co-high { background: var(--bad); color: var(--paper); }
.v4-bleed-co-medium { background: var(--warn); color: var(--paper); }

/* QA section */
.v4-qa-list { display: flex; flex-direction: column; gap: 14px; }
.v4-qa-item {
  padding: 18px 20px; border-radius: 12px;
  background: var(--bg3); border: 1px solid var(--rule);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.v4-qa-item.revealed { opacity: 1; transform: none; }
.v4-qa-q { font-size: 12px; font-weight: 700; color: var(--ink3); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.v4-qa-a { font-size: 15px; color: var(--ink2); line-height: 1.65; }

/* Company details */
.v4-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .v4-detail-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; } }
.v4-detail-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink3); margin-bottom: 4px; }
.v4-detail-val   { font-size: 14px; font-weight: 500; color: var(--ink); }

/* Deep Dive sidebar nav */
.v4-deep-layout { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: start; }
.v4-deep-nav {
  position: sticky; top: 68px;
  display: flex; flex-direction: column; gap: 4px;
}
.v4-deep-nav a {
  font-size: 12px; font-weight: 500; color: var(--ink3);
  text-decoration: none; padding: 7px 10px; border-radius: 6px;
  transition: all 0.15s ease; min-height: 36px; display: flex; align-items: center;
}
.v4-deep-nav a:hover  { background: var(--bg3); color: var(--ink); }
.v4-deep-nav a.active { background: var(--bg3); color: var(--ink); font-weight: 600; }
/* Sliding active indicator */
.v4-deep-nav { position: relative; }
.v4-nav-indicator {
  position: absolute; left: 0; width: 3px; border-radius: 2px;
  background: var(--accent);
  transition: top 0.25s var(--motion-ease), height 0.25s ease;
  pointer-events: none;
}
@media (max-width: 900px) {
  .v4-deep-layout { grid-template-columns: 1fr; }
  .v4-deep-nav    { display: none; }
}

/* ---- SCROLL FADE-IN ---- */
.v4-fade { opacity: 0; transform: translateY(20px); }
.v4-fade.revealed { opacity: 1; transform: none; transition: opacity 0.6s var(--motion-ease), transform 0.6s var(--motion-ease); }

/* ============================================================
   RESPONSIVE — MOBILE FIRST
   ============================================================ */
@media (max-width: 640px) {
  .v4-screen  { padding: 72px 16px 48px; }
  .v4-deep    { padding: 72px 16px 48px; }
  .v4-nav     { padding: 0 12px; height: 48px; }
  .v4-nav-brand { font-size: 13px; }
  .v4-tab     { padding: 5px 10px; font-size: 12px; }
  .v4-grade-badge { padding: 4px 8px; font-size: 11px; }
  .v4-nav-controls { gap: 6px; }
  /* Reduce animation distances on mobile */
  .v4-kpi-card  { transform: translateY(12px); }
  .v4-pill      { transform: translateY(10px); }
  .v4-tl-entry  { transform: translateY(12px); }
  .v4-mover-row { transform: translateX(-10px); }
}
@media (max-width: 400px) {
  .v4-kpi-grid { grid-template-columns: 1fr; }
  .v4-grade-score-text { display: none; }
}

/* ============================================================
   V4 NEW COMPONENTS (Hero Tiles, Signals, Timeline)
   ============================================================ */
.v4-hero-tile {
  background: var(--bg2); border-radius: 18px; padding: 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.v4-hero-tile:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.v4-tile-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink3);
}
.v4-tile-headline { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.v4-tile-stat-label { font-size: 13px; color: var(--ink3); line-height: 1.5; }

/* Signals Strip */
.v4-signals-strip {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  max-width: 1080px; width: 100%; margin: 32px auto 0;
}
@media (min-width: 768px) {
  .v4-signals-strip { grid-template-columns: repeat(4, 1fr); }
}

/* Movers & QA Grid */
.v4-two-up-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  max-width: 1080px; width: 100%; margin: 0 auto;
}
@media (min-width: 900px) {
  .v4-two-up-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* Timeline New */
.v4-timeline-new {
  display: flex; flex-direction: column; gap: 32px;
  max-width: 1080px; width: 100%; margin: 0 auto;
}
.v4-tl-card {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  background: var(--bg2); border-radius: 20px; padding: 24px;
  border: 1px solid var(--ruleSoft);
}
@media (min-width: 640px) {
  .v4-tl-card { grid-template-columns: 140px 1fr; gap: 32px; }
}
.v4-tl-tag {
  margin-top: 8px; font-size: 11px; font-weight: 700;
  color: var(--blue); text-transform: uppercase;
}
.v4-tl-era { font-size: 12px; color: var(--ink4); font-weight: 600; }

/* Sections */
.v4-section-head { max-width: 1080px; width: 100%; margin: 0 auto 32px; }
.v4-section-overline {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink3); margin-bottom: 8px;
}
.v4-section-title {
  font-family: var(--display); font-size: 32px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--ink); line-height: 1.1;
}

/* Go Deeper */
.v4-go-deeper { text-align: center; max-width: 640px; margin: 0 auto; }
.v4-go-deeper-title {
  font-family: var(--display); font-size: clamp(32px, 8vw, 48px);
  font-weight: 300; letter-spacing: -1px; line-height: 1.1; margin-bottom: 24px;
}
.v4-go-deeper-btn {
  background: var(--ink); color: var(--bg); padding: 16px 40px;
  border-radius: 40px; font-weight: 600; font-size: 16px;
  border: none; cursor: pointer; transition: transform 0.2s ease;
}
.v4-go-deeper-btn:hover { transform: scale(1.05); }

/* Closing Screen */
.v4-close-grade {
  position: absolute; font-size: 400px; font-family: var(--display);
  font-weight: 100; color: var(--accent); opacity: 0.05;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  pointer-events: none;
}
.v4-close-content { position: relative; z-index: 1; text-align: center; max-width: 640px; }
.v4-close-verdict { font-family: var(--display); font-size: 32px; font-weight: 600; color: var(--ink); margin-bottom: 16px; }
.v4-close-sub { font-size: 16px; color: var(--ink3); line-height: 1.6; }