/* =============================================================
   Hamburg Mobility — Data Story · v2 (Apple-inspired redesign)
   Deep charcoal + electric cyan + amber, story-driven layout
   ============================================================= */

:root {
  --bg: #05070d;
  --bg-2: #0b0f1a;
  --surface: #10151f;
  --surface-2: #161c2a;
  --ink: #ffffff;
  --text: #c9d1de;
  --muted: #7a8699;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --primary: #38b6ff;
  --primary-2: #2557d6;
  --accent: #ff7a18;
  --accent-2: #f04e23;
  --good: #4ade80;

  --grad-hero: radial-gradient(1200px 700px at 20% 10%, rgba(56,182,255,0.25), transparent 60%),
               radial-gradient(900px 600px at 80% 40%, rgba(255,122,24,0.20), transparent 55%),
               radial-gradient(1000px 800px at 50% 100%, rgba(37,87,214,0.35), transparent 60%),
               linear-gradient(180deg, #05070d 0%, #0a0f1c 100%);
  --grad-primary: linear-gradient(135deg, #38b6ff, #2557d6);
  --grad-accent: linear-gradient(135deg, #ffb057, #ff5a1f);

  --shadow-lg: 0 40px 80px -30px rgba(0,0,0,0.7);
  --shadow-md: 0 20px 40px -20px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 60px rgba(56,182,255,0.35);

  --radius: 20px;
  --radius-lg: 28px;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3,h4 { font-family: var(--font-display); color: var(--ink); letter-spacing: -0.03em; line-height: 1.05; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img, iframe { max-width: 100%; display: block; }
strong { color: var(--ink); font-weight: 600; }
em { color: var(--primary); font-style: normal; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

.text-gradient      { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-gradient-warm { background: var(--grad-accent);  -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  background: rgba(5, 7, 13, 0.6);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--border);
  transition: background .3s ease;
}
.nav-inner { max-width: 1240px; margin: 0 auto; padding: 14px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 15px; letter-spacing: -0.01em; }
.logo-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--grad-primary); font-size: 14px; }
.nav-links { list-style: none; display: flex; gap: 20px; font-size: 12.5px; color: var(--muted); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { font-size: 13px; padding: 8px 16px; border-radius: 999px; background: var(--ink); color: #05070d; font-weight: 600; transition: transform .2s; }
.nav-cta:hover { transform: translateY(-1px); }
@media (max-width: 900px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 80px;
  background: var(--grad-hero);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 1000px; margin: 0 auto; padding: 0 32px; }
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border-strong)
;

  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text);
  margin-bottom: 32px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 12px var(--good); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.hero-title {
  font-size: clamp(52px, 9vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 28px;
}
.hero-title .row { display: block; }

.hero-sub {
  max-width: 720px; margin: 0 auto 40px;
  font-size: clamp(17px, 1.6vw, 22px); color: var(--text); line-height: 1.55;
}

.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 64px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  transition: all .25s ease;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--ink); color: #05070d; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -18px rgba(255,255,255,0.4); }
.btn-accent { background: var(--grad-accent); color: #fff; box-shadow: 0 18px 40px -16px rgba(255,122,24,0.55); }
.btn-accent:hover { transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.hero-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; }
.kpi { padding: 24px 18px; border-radius: var(--radius); background: rgba(255,255,255,0.04); border: 1px solid var(--border); backdrop-filter: blur(10px); text-align: left; }
.kpi-v { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.kpi-l { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; font-family: var(--font-mono); }
@media (max-width: 720px) { .hero-kpis { grid-template-columns: repeat(2, 1fr); } }

.scroll-cue { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 22px; animation: bob 2s ease-in-out infinite; z-index: 2; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Sections ---------- */
.section { padding: 140px 0; position: relative; }
.section--soft { background: linear-gradient(180deg, transparent, rgba(56,182,255,0.03) 40%, transparent); }
.section--dark { background: #030509; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
  font-family: var(--font-mono); font-size: 12px; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 20px;
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--primary); }

.section-title { font-size: clamp(36px, 5vw, 68px); max-width: 900px; margin-bottom: 24px; letter-spacing: -0.03em; }
.section-lead { font-size: clamp(16px, 1.4vw, 20px); max-width: 780px; color: var(--text); margin-bottom: 20px; line-height: 1.6; }

/* ---------- Problem ---------- */
.problem-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; margin-top: 60px; align-items: start; }
@media (max-width: 900px) { .problem-grid { grid-template-columns: 1fr; } }

.lead { font-size: 22px; color: var(--ink); font-family: var(--font-display); margin: 30px 0 14px; line-height: 1.3; }
.muted { color: var(--muted); font-size: 15px; }

.symptoms { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin-top: 12px; }
.symptoms li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--text); padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); }
.symptoms li span { color: var(--accent); }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card {
  padding: 28px; border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  transition: transform .3s, border-color .3s;
}
.stat-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.stat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; margin-bottom: 16px; }
.stat-icon--primary { background: rgba(56,182,255,0.12); color: var(--primary); }
.stat-icon--accent { background: rgba(255,122,24,0.12); color: var(--accent); }
.stat-v { font-family: var(--font-display); font-size: 26px; color: var(--ink); font-weight: 700; }
.stat-l { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- Storyline ---------- */
.story-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 60px; counter-reset: step; }
@media (max-width: 1000px) { .story-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .story-steps { grid-template-columns: 1fr; } }
.story-steps li {
  padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); position: relative; overflow: hidden;
  transition: transform .3s, border-color .3s;
}
.story-steps li:hover { transform: translateY(-4px); border-color: var(--primary); }
.story-steps li::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(180deg, rgba(56,182,255,0.08), transparent);
  transition: opacity .3s;
}
.story-steps li:hover::before { opacity: 1; }
.story-num { font-family: var(--font-mono); font-size: 13px; color: var(--primary); }
.story-steps h3 { font-size: 18px; margin: 12px 0 10px; color: var(--ink); }
.story-steps p { font-size: 14px; color: var(--muted); line-height: 1.55; position: relative; }

/* ---------- Hypotheses ---------- */
.hypo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 50px; }
@media (max-width: 1100px) { .hypo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .hypo-grid { grid-template-columns: 1fr; } }

.hypo-card {
  position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); cursor: pointer; perspective: 1200px;
}
.hypo-inner { position: relative; width: 100%; height: 100%; transition: transform .8s cubic-bezier(.22,.9,.3,1); transform-style: preserve-3d; }
.hypo-card:hover .hypo-inner, .hypo-card:focus-within .hypo-inner { transform: rotateY(180deg); }
.hypo-face { position: absolute; inset: 0; backface-visibility: hidden; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; }
.hypo-front { background-size: cover; background-position: center; color: #fff; }
.hypo-tag {
  align-self: flex-start; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
  font-family: var(--font-mono); font-size: 12px; margin-bottom: 12px;
}
.hypo-front h3 { font-size: 22px; color: #fff; }
.hypo-back {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  transform: rotateY(180deg); justify-content: flex-start; gap: 12px;
}
.hypo-back h4 { color: var(--primary); font-size: 15px; font-family: var(--font-mono); font-weight: 500; }
.hypo-back p { font-size: 14px; color: var(--text); line-height: 1.55; }
.hypo-source { font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 12px; margin-top: auto; }

/* ---------- Maps ---------- */
.map-block { margin-top: 60px; padding: 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.map-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.map-chip { padding: 6px 14px; border-radius: 999px; background: rgba(56,182,255,0.12); color: var(--primary); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; }
.map-subtitle { font-size: clamp(22px, 2.5vw, 32px); color: var(--ink); }

.attr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
@media (max-width: 800px) { .attr-grid { grid-template-columns: 1fr; } }
.attr-card { padding: 22px; border-radius: 16px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); }
.attr-icon { font-size: 24px; margin-bottom: 10px; }
.attr-label { font-family: var(--font-mono); font-size: 12px; color: var(--primary); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.attr-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.attr-card li { font-size: 14px; color: var(--text); padding-left: 16px; position: relative; }
.attr-card li::before { content: "→"; position: absolute; left: 0; color: var(--primary); }
.attr-note { font-size: 13px; color: var(--muted); margin-top: 16px; }
.attr-note a { color: var(--primary); border-bottom: 1px solid rgba(56,182,255,0.4); }

.map-wrap { position: relative; margin-top: 20px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: #000; height: 560px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.btn-ghost--light { background: rgba(255,255,255,0.06); color: var(--ink); border-color: var(--border-strong); }

/* ---------- Charts ---------- */
.chart-card {
  margin-top: 40px; padding: 36px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .3s;
}
.chart-card:hover { border-color: var(--border-strong); }
.chart-card > header { margin-bottom: 24px; }
.chart-chip { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255,122,24,0.14); color: var(--accent); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; margin-bottom: 12px; }
.chart-card h3 { font-size: 26px; color: var(--ink); margin-bottom: 10px; }
.chart-card > header p { color: var(--text); font-size: 15px; line-height: 1.6; }
.chart-sub { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--primary); margin: 28px 0 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.chart-foot { font-size: 12px; color: var(--muted); font-family: var(--font-mono); margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.chart-card iframe { background: #fff; border-radius: 8px; }

/* ---------- Data mini-cards (new bespoke numbers) ---------- */
.metric-band {
  margin-top: 50px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 900px) { .metric-band { grid-template-columns: repeat(2, 1fr); } }
.metric {
  padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.metric::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-primary); }
.metric.warm::before { background: var(--grad-accent); }
.metric-v { font-family: var(--font-display); font-size: 44px; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.metric-u { font-family: var(--font-mono); font-size: 14px; color: var(--muted); margin-left: 4px; }
.metric-l { font-size: 13px; color: var(--muted); margin-top: 12px; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-mono); }
.metric-d { font-size: 13px; color: var(--text); margin-top: 8px; line-height: 1.5; }

/* Bar chart (bespoke, SVG-less bars) */
.bar-chart { margin-top: 40px; padding: 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.bar-chart h3 { font-size: 22px; color: var(--ink); margin-bottom: 6px; }
.bar-chart .subtitle { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.bar-row { display: grid; grid-template-columns: 160px 1fr 60px; gap: 14px; align-items: center; margin-bottom: 12px; font-size: 14px; }
.bar-row .label { color: var(--text); }
.bar-track { height: 14px; background: rgba(255,255,255,0.05); border-radius: 999px; overflow: hidden; position: relative; }
.bar-fill { height: 100%; background: var(--grad-primary); border-radius: 999px; width: 0; transition: width 1.4s cubic-bezier(.22,.9,.3,1); }
.bar-fill.warm { background: var(--grad-accent); }
.bar-row .val { text-align: right; font-family: var(--font-mono); color: var(--ink); font-size: 13px; }

/* ---------- Onion (redesigned as radial diagram) ---------- */
.onion-wrap { margin-top: 60px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .onion-wrap { grid-template-columns: 1fr; } }
.onion-svg { width: 100%; height: auto; max-width: 620px; margin: 0 auto; display: block; filter: drop-shadow(0 20px 60px rgba(56,182,255,0.25)); }
.onion-ring-svg { fill-opacity: 0.06; stroke-width: 1.5; transition: fill-opacity .3s, transform .3s; transform-origin: center; cursor: pointer; }
.onion-ring-svg:hover { fill-opacity: 0.18; }
.onion-ring-outer { fill: var(--primary); stroke: var(--primary); }
.onion-ring-mid   { fill: var(--accent);  stroke: var(--accent); }
.onion-ring-core  { fill: #fff;           stroke: #fff; }
.onion-label-svg  { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--ink); }
.onion-node       { fill: var(--surface); stroke: var(--border-strong); }
.onion-node-text  { font-family: var(--font-sans); font-size: 10px; fill: var(--text); text-anchor: middle; }

.onion-legend { display: flex; flex-direction: column; gap: 16px; }
.legend-item { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); position: relative; padding-left: 60px; }
.legend-dot { position: absolute; left: 20px; top: 22px; width: 26px; height: 26px; border-radius: 50%; }
.legend-dot.outer { background: rgba(56,182,255,0.2); border: 2px solid var(--primary); }
.legend-dot.mid   { background: rgba(255,122,24,0.2); border: 2px solid var(--accent); }
.legend-dot.core  { background: rgba(255,255,255,0.15); border: 2px solid #fff; }
.legend-item h4 { color: var(--ink); font-size: 15px; font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.legend-item p { font-size: 14px; color: var(--text); line-height: 1.55; }
.legend-item .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.legend-item .tags span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text); }

/* ---------- Findings ---------- */
.findings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
@media (max-width: 900px) { .findings { grid-template-columns: 1fr; } }
.finding {
  padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: transform .3s, border-color .3s;
}
.finding:hover { transform: translateY(-4px); border-color: var(--primary); }
.finding-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(56,182,255,0.12); color: var(--primary); display: grid; place-items: center; font-size: 22px; margin-bottom: 16px; }
.finding h3 { font-family: var(--font-mono); font-size: 13px; color: var(--primary); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; font-weight: 500; }
.finding p { font-size: 15px; color: var(--text); line-height: 1.6; }

/* ---------- Conclusion ---------- */
.conclusion-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 900px) { .conclusion-grid { grid-template-columns: 1fr; } }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.checklist li { padding: 14px 18px 14px 46px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); color: var(--text); font-size: 14px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 18px; top: 14px; color: var(--good); font-weight: 700; }

.quote-card {
  padding: 36px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(56,182,255,0.12), rgba(255,122,24,0.08));
  border: 1px solid var(--border-strong);
  position: sticky; top: 100px;
}
.quote-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.quote-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--grad-accent); display: grid; place-items: center; font-size: 18px; }
.quote-eyebrow { font-family: var(--font-mono); font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; }
.quote-sub { color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.quote-card blockquote { font-family: var(--font-display); font-size: 22px; line-height: 1.35; color: var(--ink); margin-bottom: 28px; letter-spacing: -0.01em; }
.quote-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 20px; border-top: 1px solid var(--border); }
.qs-v { font-family: var(--font-display); font-size: 22px; color: var(--ink); font-weight: 700; }
.qs-l { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-mono); }

/* ---------- Methodology / limitation callouts ---------- */
.callout {
  margin-top: 28px; padding: 24px 28px; border-radius: var(--radius);
  background: rgba(56,182,255,0.05); border: 1px solid rgba(56,182,255,0.25);
}
.callout.warn { background: rgba(255,122,24,0.06); border-color: rgba(255,122,24,0.28); }
.callout-title {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.callout.warn .callout-title { color: var(--accent); }
.callout p { font-size: 14px; color: var(--text); line-height: 1.6; margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }
.callout ul { margin: 8px 0 0 18px; font-size: 14px; color: var(--text); line-height: 1.6; }

/* ---------- Confidence badges on findings ---------- */
.confidence { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.confidence::before { content: "●"; font-size: 9px; }
.confidence.strong { background: rgba(74,222,128,0.12); color: var(--good); }
.confidence.moderate { background: rgba(56,182,255,0.12); color: var(--primary); }
.confidence.weak { background: rgba(255,122,24,0.12); color: var(--accent); }
.finding.is-weak { opacity: 0.82; }

/* ---------- Attribute table (construction type & duration) ---------- */
.attr-table-wrap { margin-top: 24px; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table.attr-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); }
table.attr-table th, table.attr-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
table.attr-table th { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 500; }
table.attr-table td { color: var(--text); }
table.attr-table tr:last-child td { border-bottom: none; }
table.attr-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ---------- Hourly screenshot gallery ---------- */
.shot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
@media (max-width: 900px) { .shot-grid { grid-template-columns: repeat(2, 1fr); } }
.shot-card { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.shot-card .shot-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.shot-card .shot-placeholder { width: 100%; aspect-ratio: 4/3; display: grid; place-items: center; color: var(--muted); font-family: var(--font-mono); font-size: 12px; text-align: center; padding: 10px; background: repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 10px, rgba(255,255,255,0.015) 10px 20px); }
.shot-card .shot-placeholder img { width: 100%; height: 100%; object-fit: cover; display: block; padding: 0; }
.shot-card .shot-cap { padding: 12px 14px; }
.shot-card .shot-time { font-family: var(--font-mono); font-size: 12px; color: var(--primary); margin-bottom: 4px; }
.shot-card .shot-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ---------- Mini flow diagram (accident layer rationale) ---------- */
.mini-flow { display: flex; align-items: stretch; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.flow-step { flex: 1 1 190px; min-width: 170px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 18px 16px; }
.flow-step .flow-icon { font-size: 22px; margin-bottom: 8px; }
.flow-step .flow-title { font-family: var(--font-display); color: var(--ink); font-size: 14.5px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.flow-step .flow-text { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.flow-arrow { display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); color: var(--primary); font-size: 20px; flex: 0 0 auto; padding: 0 2px; }
@media (max-width: 900px) {
  .mini-flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); padding: 4px 0; }
}

/* ---------- Story-thread connectors ---------- */
.thread-box {
  margin-top: 24px; padding: 18px 24px; border-radius: 14px;
  background: rgba(255,255,255,0.03); border: 1px dashed var(--border-strong);
  display: flex; align-items: flex-start; gap: 12px;
}
.thread-box .thread-arrow { font-family: var(--font-mono); color: var(--primary); font-size: 15px; line-height: 1.6; }
.thread-box p { font-size: 13.5px; color: var(--text); line-height: 1.6; }
.thread-box strong { color: var(--ink); }
.thread-recap { margin-top: 20px; padding: 26px 30px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(56,182,255,0.08), rgba(255,122,24,0.05)); border: 1px solid var(--border-strong); }
.thread-recap-title { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.thread-recap ol { margin-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.thread-recap li { font-size: 14px; color: var(--text); line-height: 1.6; }
.thread-recap li strong { color: var(--primary); }

/* ---------- Footer ---------- */
.footer { padding: 60px 0; border-top: 1px solid var(--border); background: #030509; }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer-brand { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 16px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,.9,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Scroll progress bar ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad-primary); z-index: 200; transition: width .1s linear; }

/* ---------- Utility ---------- */
::selection { background: var(--primary); color: #05070d; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #030509; }
::-webkit-scrollbar-thumb { background: #1a2233; border-radius: 999px; }
