/* ============================================================
   sx1.nl — v4 "Research Agency" design system (prototype)
   Hardware Shortage Intelligence
   Premium dark editorial system. Vanilla CSS, no framework.
   See DESIGN-NOTES.md for tokens, type scale, component inventory.
   ============================================================ */

/* --- Design tokens ---------------------------------------- */
:root {
  /* Surfaces (layered dark system on #0b0f14 base) */
  --bg-0: #0b0f14;
  --bg-1: #0e141b;
  --bg-2: #131b24;
  --bg-3: #18222d;
  --bg-raised: #1c2836;

  /* Hairlines */
  --line: rgba(148, 163, 184, 0.10);
  --line-2: rgba(148, 163, 184, 0.18);
  --line-3: rgba(148, 163, 184, 0.30);

  /* Ink */
  --ink-0: #edf2f7;
  --ink-1: #a9b6c4;
  --ink-2: #828fa0;
  --ink-3: #7a8698;

  /* Single-accent discipline (brief #1). --accent is the ONLY brand colour;
     --pos/--neg appear ONLY on signed deltas; chart series greys are
     non-data chrome per Datawrapper role model. Legacy aliases below keep
     old var() references resolving to the tokenised roles. */
  --accent: #35e0a1;
  --accent-dim: rgba(53, 224, 161, 0.14);
  --pos: #35e0a1;   /* buyer-perspective: price down = good */
  --neg: #f8717a;   /* buyer-perspective: price up = bad */
  --pos-dim: rgba(53, 224, 161, 0.14);
  --neg-dim: rgba(248, 113, 122, 0.14);
  --grey-0: #edf2f7;
  --grey-1: #a9b6c4;
  --grey-2: #828fa0;  /* de-emphasised chart series */
  --grey-3: #7a8698;
  --grey-4: #33404f;
  --warn: #f5b84c;    /* caution furniture only (disclaimer, regime), never data */
  --warn-dim: rgba(245, 184, 76, 0.14);
  /* Chart series palette (allowed raw-hex zone: :root only) */
  --series-1: #35e0a1;
  --series-2: #6aa9e9;
  --series-3: #f5b84c;
  --series-4: #f8717a;
  --series-grey: #6e7d8e;
  /* legacy aliases (transitional; resolve to roles) */
  --green: var(--accent);
  --green-dim: var(--accent-dim);
  --amber: var(--warn);
  --amber-dim: var(--warn-dim);
  --red: var(--neg);
  --red-dim: var(--neg-dim);
  --blue: var(--series-2);
  --blue-dim: rgba(106, 169, 233, 0.14);

  /* Type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Inter", ui-monospace, monospace; /* tnum via font-feature */

  /* Type scale (major-third-ish, editorial) */
  --t-display: clamp(2.5rem, 5.6vw, 4.25rem);
  --t-h2: clamp(1.7rem, 3vw, 2.35rem);
  --t-h3: 1.25rem;
  --t-lead: clamp(1.05rem, 1.6vw, 1.2rem);
  --t-body: 1rem;   /* mobile directive: body never below 1rem */
  --t-sm: 0.86rem;
  --t-xs: 0.75rem;
  --t-kicker: 0.75rem;

  /* Layout */
  --wrap: 1180px;
  --gut: clamp(20px, 4vw, 44px);
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 8px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.35s;

  /* Elevation */
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 8px 28px rgba(0, 0, 0, 0.45);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 18px 48px rgba(0, 0, 0, 0.55);
}

/* --- Reset ------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink-1);
  background: var(--bg-0);
  overflow-x: hidden;
}

/* Subtle film grain over everything (pure CSS, no asset) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* Ambient gradient glow behind the hero */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1000px 520px at 50% -10%, rgba(53, 224, 161, 0.05), transparent 62%);
}

main, header.site, footer.site { position: relative; z-index: 1; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

a { color: var(--green); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--accent); text-decoration: underline; }

img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent-dim); color: var(--grey-0); }

/* --- Typography primitives --------------------------------- */
.display, h1.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-display);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink-0);
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

.display em { font-style: italic; color: var(--green); }

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-h2);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink-0);
}

h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--t-h3);
  color: var(--ink-0);
  line-height: 1.3;
}

.lead { font-size: var(--t-lead); color: var(--ink-1); max-width: 62ch; }

.kicker {
  font-size: var(--t-kicker);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--green);
  display: inline-block;
}

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* As-of stamp — the editorial signature, used everywhere */
.asof {
  font-size: var(--t-xs);
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.asof::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.asof.stale::before { background: var(--warn); }

/* Delta chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--t-xs);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.chip.up   { color: var(--neg);  background: var(--neg-dim);  border-color: rgba(248,113,122,.25); }
.chip.down { color: var(--pos);  background: var(--pos-dim);  border-color: rgba(53,224,161,.25); }
.chip.flat { color: var(--warn); background: var(--warn-dim); border-color: rgba(245,184,76,.25); }
.chip.info { color: var(--series-2); background: var(--blue-dim); border-color: rgba(106,169,233,.25); }

/* Tier badges (bron T1/T2/T3) */
.tier {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  text-transform: uppercase;
}
.tier.t1 { color: var(--accent);   border-color: rgba(53,224,161,.35); }
.tier.t2 { color: var(--series-2); border-color: rgba(106,169,233,.35); }
.tier.t3 { color: var(--warn);     border-color: rgba(245,184,76,.35); }

/* --- Header ------------------------------------------------ */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 15, 20, 0.78);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 62px;
}
.wordmark {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink-0);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 0.92rem;
}
.wordmark .mono {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green);
}
.wordmark small { font-size: 0.75rem; color: var(--ink-2); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }

nav.sections { display: flex; gap: 4px; align-items: center; min-width: 0; flex: 1; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, black 94%, transparent); -webkit-mask-image: linear-gradient(90deg, black 94%, transparent); }
nav.sections::-webkit-scrollbar { display: none; }
nav.sections a {
  flex: none;
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--ink-2);
  padding: 7px 12px;
  border-radius: 999px;
  transition: all var(--dur) var(--ease);
  display: inline-flex;
  gap: 7px;
  align-items: baseline;
}
nav.sections a .n {
  font-size: 0.75rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
nav.sections a:hover { color: var(--ink-0); background: var(--bg-2); }
nav.sections a.active { color: var(--ink-0); background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-2); }
nav.sections a.active .n { color: var(--green); }

.header-cta {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--bg-0) !important;
  background: var(--green);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background var(--dur) var(--ease);
  white-space: nowrap;
}
.header-cta:hover { background: var(--pos); filter: brightness(1.08); }

/* Mobile nav: horizontally scrollable pill row under the header row
   (operator mobile directive: no hidden nav, scrollable pills < 860px). */
@media (max-width: 900px) {
  header.site { backdrop-filter: blur(10px); }
  .header-row {
    flex-wrap: wrap;
    height: auto;
    padding-top: 10px;
    padding-bottom: 4px;
    gap: 10px 16px;
  }
  .wordmark span:not(.mono):not(small) { display: none; } /* keep sx1 + Research */
  nav.sections {
    order: 3;
    width: 100%;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    /* scroll hint: right-edge fade */
    mask-image: linear-gradient(90deg, black 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, black 92%, transparent);
  }
  nav.sections::-webkit-scrollbar { display: none; }
  nav.sections a {
    flex: none;
    min-height: 44px;
    align-items: center;
    padding: 10px 16px;
    border: 1px solid var(--line-2);
    font-size: var(--t-sm);
  }
  .header-cta { min-height: 44px; display: inline-flex; align-items: center; }
}

/* --- Hero --------------------------------------------------- */
/* padding-top only: .hero shares the element with .wrap, and a full
   `padding` shorthand here would zero out .wrap's horizontal gutter. */
.hero { padding-top: clamp(56px, 9vh, 110px); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin: 22px 0 30px;
}
.hero-meta .edition {
  font-size: var(--t-xs);
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(53,224,161,.30);
  border-radius: 999px;
  padding: 4px 12px;
}

.hero h1 { max-width: 17ch; }
.hero .lead { margin-top: 26px; }

.hero-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--line-3), transparent 70%);
  margin: 44px 0 0;
}

/* --- KPI strip ---------------------------------------------- */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--bg-1);
  overflow: hidden;
  margin-top: -1px;
}
@media (max-width: 980px) { .kpi-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .kpi-strip { grid-template-columns: 1fr; } }

.kpi {
  padding: 26px 26px 22px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background var(--dur) var(--ease);
}
.kpi:last-child { border-right: none; }
@media (max-width: 980px) {
  .kpi:nth-child(2n) { border-right: none; }
  .kpi { border-bottom: 1px solid var(--line); }
  .kpi:nth-last-child(-n+2) { border-bottom: none; }
}
.kpi:hover { background: rgba(255,255,255,0.018); }

.kpi .label {
  font-size: var(--t-xs);
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.kpi .value {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 720;
  line-height: 1;
  color: var(--ink-0);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.kpi .value .unit { font-size: 0.95rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.kpi .sub { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.kpi .note { font-size: var(--t-xs); color: var(--ink-3); flex-basis: 100%; margin-top: 4px; }

/* Skeleton shimmer while data loads */
.skeleton { position: relative; overflow: hidden; color: transparent !important; }
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* --- Report sections ---------------------------------------- */
section.report { padding-top: clamp(72px, 12vh, 130px); scroll-margin-top: 74px; } /* top-only: shares element with .wrap gutter */

.sec-head { display: flex; gap: 26px; align-items: baseline; margin-bottom: 14px; }
.sec-no {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-3);
  line-height: 1;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.sec-head .titles { display: flex; flex-direction: column; gap: 8px; }
.sec-head .kicker { margin-top: 4px; }

/* Scroll reveal */
/* item #14: fire once, <=300ms, none above the fold (hero has no .reveal) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* --- Cards --------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 38px; }
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.report-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 22px 22px 18px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.report-card:hover { border-color: var(--line-3); background: var(--bg-2); }

.report-card .rc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 8px; }
.report-card .metric { font-size: var(--t-xs); font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.report-card .value {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ink-0);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.report-card .value .unit { font-size: 0.85rem; color: var(--ink-2); font-weight: 600; }
.report-card .rc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* --- Viz panels ----------------------------------------------- */
.viz-panel {
  margin-top: 38px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.viz-panel .viz-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.viz-panel .viz-head h3 { font-size: 0.95rem; letter-spacing: 0.01em; }
.viz-body { padding: 22px; }
.viz-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: var(--t-xs); color: var(--ink-2); }
.legend .sw { display: inline-flex; align-items: center; gap: 7px; }
.legend .sw i { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }
.legend .sw i.band { height: 12px; opacity: 0.5; }

/* Supply-chain flow SVG */
.flow-svg .node-box { fill: var(--bg-3); stroke: var(--line-2); stroke-width: 1; rx: 8; }
.flow-svg .node-title { fill: var(--ink-0); font: 600 13px var(--font-body); }
.flow-svg .node-sub { fill: var(--ink-2); font: 500 10.5px var(--font-body); }
.flow-svg .edge { fill: none; stroke: var(--line-3); stroke-width: 1.5; }
.flow-svg .edge.hot { stroke: rgba(248,113,122,.55); }
.flow-svg .edge.warm { stroke: var(--grey-2); }
.flow-svg .particle { fill: var(--accent); }
.flow-svg .bottleneck-label { fill: var(--neg); font: 650 10px var(--font-body); letter-spacing: 0.04em; }
.flow-svg .bottleneck-label.warm { fill: var(--grey-1); }

/* Runway chart */
.runway-svg text { font-family: var(--font-body); }
.runway-svg .axis { stroke: var(--line-2); stroke-width: 1; }
.runway-svg .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.runway-svg .zero { stroke: var(--line-3); stroke-width: 1; }
.runway-svg .tick { fill: var(--ink-3); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.runway-svg .band95 { fill: rgba(106,169,233,0.08); }
.runway-svg .band80 { fill: rgba(106,169,233,0.13); }
.runway-svg .bandkb { fill: rgba(245,184,76,0.13); }
/* ONE accent series (realised/consensus); model + scenario in greys/series tokens */
.runway-svg .line-actual { stroke: var(--series-1); stroke-width: 2; fill: none; stroke-linecap: round; }
.runway-svg .line-model { stroke: var(--series-2); stroke-width: 2; fill: none; stroke-dasharray: 5 5; stroke-linecap: round; }
.runway-svg .line-kb { stroke: var(--series-grey); stroke-width: 2; fill: none; stroke-dasharray: 2 4; stroke-linecap: round; }
.runway-svg .pt { fill: var(--bg-0); stroke-width: 2; }
.runway-svg .pt.actual { stroke: var(--series-1); }
.runway-svg .pt.model { stroke: var(--series-2); }
.runway-svg .pt.kb { stroke: var(--series-grey); }
.runway-svg .annot { fill: var(--ink-2); font-size: 10.5px; }
.runway-svg .annot-strong { fill: var(--ink-1); font-size: 11px; font-weight: 600; }
.runway-svg .divider { stroke: var(--line-3); stroke-dasharray: 3 4; }

/* --- Scenario comparison ------------------------------------- */
.scenario-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 38px; }
@media (max-width: 860px) { .scenario-grid { grid-template-columns: 1fr; } }
.scenario {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  background: var(--bg-1);
  position: relative;
}
.scenario.consensus { border-top: 2px solid var(--accent); }
.scenario.hardliner { border-top: 2px solid var(--grey-2); }
.scenario .who { font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--ink-2); }
.scenario ul { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.scenario li { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.scenario li b { color: var(--ink-0); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* --- Methodiek ------------------------------------------------ */
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 38px; }
@media (max-width: 900px) { .method-grid { grid-template-columns: 1fr; } }
.method {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  background: var(--bg-1);
}
.method .m-no { font-family: var(--font-display); font-size: 1.4rem; color: var(--green); font-weight: 600; }
.method p { font-size: 0.88rem; margin-top: 8px; }

/* --- Footer --------------------------------------------------- */
footer.site {
  margin-top: clamp(90px, 14vh, 150px);
  border-top: 1px solid var(--line-2);
  background: var(--bg-1);
}
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-top: 54px; padding-bottom: 30px; } /* longhand: shares element with .wrap gutter */
.footer-brand .display { font-size: 1.5rem; }
.footer-brand p { max-width: 42ch; font-size: 0.86rem; margin-top: 10px; color: var(--ink-2); }
.footer-col h4 { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; font-weight: 700; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 0.88rem; }
.footer-col a { color: var(--ink-1); }
.footer-col a:hover { color: var(--green); }
.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: 20px; padding-bottom: 34px; /* longhand: shares element with .wrap gutter */
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: var(--t-xs);
  color: var(--ink-3);
}
.disclaimer {
  color: var(--warn);
  border: 1px solid rgba(245, 184, 76, 0.3);
  background: var(--warn-dim);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 650;
  letter-spacing: 0.03em;
}

/* Legacy anchor aliases (link-rot guard: v3 URLs like /#crisis keep landing
   on the v4 section that absorbed that content). */
.anchor-alias { display: block; width: 0; height: 0; overflow: hidden; }
section[id], [id].anchor-alias { scroll-margin-top: 96px; }

/* --- Outlook page (outlook.html) components ------------------ */
.horizon-note {
  margin-top: 26px;
  display: inline-block;
  font-size: var(--t-sm);
  color: var(--amber);
  border: 1px solid rgba(245, 184, 76, 0.35);
  background: var(--warn-dim);
  border-radius: var(--r-md);
  padding: 12px 18px;
}

.regime-banner {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid rgba(248, 113, 122, 0.35);
  background: linear-gradient(90deg, var(--red-dim), transparent 60%);
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-size: var(--t-sm);
  color: var(--ink-1);
}
.regime-banner[hidden] { display: none; }
.regime-banner .rb-badge {
  flex: none;
  font-size: var(--t-kicker);
  font-weight: 750;
  letter-spacing: 0.16em;
  color: var(--red);
  border: 1px solid rgba(248, 113, 122, 0.4);
  border-radius: 4px;
  padding: 3px 8px;
}

.scenario-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}
@media (max-width: 980px) { .scenario-cards { grid-template-columns: 1fr; } }
.sc-card {
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--sc-rule, var(--line-3));
  border-radius: var(--r-lg);
  background: var(--bg-1);
  padding: 24px 24px 20px;
  box-shadow: var(--shadow-1);
}
.sc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.sc-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-0);
  letter-spacing: 0.01em;
}
.sc-assumption { margin-top: 12px; font-size: var(--t-sm); color: var(--ink-1); }
.dir-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.dir-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--ink-1);
}
.dir-chip b { color: var(--ink-0); font-variant-numeric: tabular-nums; }
.dir-chip.dir-tight { border-color: rgba(248,113,122,.4); color: var(--neg); }
.dir-chip.dir-easing { border-color: rgba(245,184,76,.4); color: var(--warn); }
.dir-chip.dir-loose { border-color: rgba(53,224,161,.4); color: var(--pos); }
.dir-chip.dir-indeterminate { border-style: dashed; }
.sc-anchor-count { margin-top: 14px; font-size: var(--t-xs); color: var(--ink-3); }

.ghost-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--t-xs); color: var(--ink-2); cursor: pointer;
  min-height: 44px;
}
.ghost-toggle input { width: 16px; height: 16px; accent-color: var(--green); }

/* Anchor timeline */
.anchor-timeline { margin-top: 34px; }
.tl-year {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.tl-year:first-child { border-top: none; }
.tl-year-no {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--ink-0);
  line-height: 1;
}
.tl-items { display: flex; flex-direction: column; gap: 14px; }
.tl-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  border-left: 2px solid var(--sc-rule, var(--line-3));
  padding: 10px 0 10px 16px;
}
.tl-date { font-size: var(--t-sm); color: var(--ink-0); font-weight: 650; padding-top: 2px; }
.tl-event { font-size: var(--t-sm); color: var(--ink-1); }
.tl-meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tl-src { font-size: var(--t-xs); color: var(--green); }
.tl-retr { font-size: var(--t-xs); color: var(--ink-3); }
.sc-tag {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--sc-rule, var(--ink-2));
  border: 1px solid var(--line-2);
  padding: 2px 7px; border-radius: 4px;
}
@media (max-width: 700px) {
  .tl-year { grid-template-columns: 1fr; gap: 8px; }
  .tl-item { grid-template-columns: 1fr; gap: 4px; }
}

/* --- Ticker tape (v4 surface, data/prices.json via js/prices.js) --- */
.ticker-tape.v4 {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--bg-1);
  padding: 10px 0;
  position: relative;
}
.ticker-tape.v4::before,
.ticker-tape.v4::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 48px; z-index: 2; pointer-events: none;
}
.ticker-tape.v4::before { left: 0; background: linear-gradient(90deg, var(--bg-1), transparent); }
.ticker-tape.v4::after { right: 0; background: linear-gradient(-90deg, var(--bg-1), transparent); }
.ticker-tape.v4 .tape-track {
  display: inline-flex; white-space: nowrap;
  animation: tape-scroll-v4 50s linear infinite;
  will-change: transform;
}
.ticker-tape.v4:hover .tape-track,
.ticker-tape.v4:focus-within .tape-track { animation-play-state: paused; }
@keyframes tape-scroll-v4 { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-tape.v4 .tape-run { display: inline-flex; align-items: center; }
.ticker-tape.v4 .tape-item {
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 0 18px; font-size: var(--t-sm);
  border-right: 1px solid var(--line);
}
.ticker-tape.v4 .tape-sym { font-weight: 700; letter-spacing: .04em; color: var(--ink-0); }
.ticker-tape.v4 .tape-price { font-variant-numeric: tabular-nums; color: var(--ink-1); }
.ticker-tape.v4 .tape-chg { font-weight: 650; font-variant-numeric: tabular-nums; }
/* Buyer-perspective semantics (DESIGN-NOTES): price up = red, down = green. */
.ticker-tape.v4 .px-up   { color: var(--neg); }
.ticker-tape.v4 .px-down { color: var(--pos); }
.ticker-tape.v4 .px-flat { color: var(--ink-2); }
.ticker-tape.v4 .tape-sep { color: var(--ink-3); }
.tape-asof { margin-top: 10px; font-size: var(--t-xs); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tape-asof a { color: var(--green); text-decoration: none; }
.tape-asof a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .ticker-tape.v4 .tape-track { animation: none; }
  .ticker-tape.v4 { overflow-x: auto; }
}

/* --- Quote cards (koersen.html, rendered by js/prices.js) ------
   Buyer-perspective semantics: .px-up red / .px-down green. */
.px-group { margin-bottom: 34px; }
.px-group:last-child { margin-bottom: 0; }
.px-group-title {
  font-size: var(--t-kicker);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 14px;
  font-weight: 700;
}
.px-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.px-card {
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--bg-1);
  padding: 18px 18px 14px;
  box-shadow: var(--shadow-1);
  transition: border-color var(--dur) var(--ease);
}
.px-card:hover { border-color: var(--line-3); }
.px-card-hd { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.px-name { font-weight: 600; font-size: var(--t-sm); color: var(--ink-0); }
.px-ticker { font-size: var(--t-xs); color: var(--ink-3); letter-spacing: 0.06em; }
.px-price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink-0);
  margin: 8px 0 6px;
  font-variant-numeric: tabular-nums;
}
.px-deltas { display: flex; gap: 12px; font-size: var(--t-xs); font-weight: 650; font-variant-numeric: tabular-nums; }
.px-up   { color: var(--neg); }
.px-down { color: var(--pos); }
.px-flat { color: var(--ink-2); }
.px-spark { margin-top: 8px; width: 100%; height: auto; display: block; }
@media (max-width: 540px) {
  .px-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .px-card { padding: 14px 14px 12px; }
  .px-price { font-size: 1.1rem; }
}
@media (max-width: 400px) { .px-grid { grid-template-columns: 1fr; } }

/* --- Mobile pass (operator directive 2026-09-17): 360/390/768 --- */
/* Nothing may overflow the viewport horizontally; charts and wide
   diagrams get their own scroll container with a visible hint. */
.viz-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.viz-body > svg, .viz-body > div > svg { min-width: 560px; }
.viz-body::-webkit-scrollbar { height: 6px; }
.viz-body::-webkit-scrollbar-thumb { background: var(--line-3); border-radius: 3px; }

@media (max-width: 768px) {
  .hero h1 { max-width: none; overflow-wrap: break-word; }
  .report { padding-top: 46px; }
  .sec-head { gap: 16px; }
  .sec-no { font-size: 2.4rem; }
  .viz-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .viz-foot { flex-direction: column; align-items: flex-start; }
  .footer-grid { gap: 28px; padding: 40px 0 24px; }
  .footer-col ul { gap: 4px; }
  .footer-col a { display: inline-flex; min-height: 44px; align-items: center; }
}

@media (max-width: 540px) {
  :root { --t-lead: 1rem; }                 /* lead never below 1rem */
  /* MINOR-3 (review t_9b1cf67e): contact links need 44px tap height */
  .footer-legal-identity dd a { display: inline-flex; align-items: center; min-height: 44px; }
  .wordmark { min-height: 44px; display: inline-flex; align-items: center; }
  .tape-asof a { display: inline-flex; min-height: 44px; align-items: center; }
  .report-card a, .viz-foot a { display: inline-flex; min-height: 36px; align-items: center; }
  .hero p a, .report p a, .tl-src { display: inline-flex; min-height: 44px; align-items: center; }
  .ghost-toggle { padding: 10px 0; }
  .ghost-toggle input { width: 22px; height: 22px; }
  .hero-meta .asof, .asof, .chip { white-space: normal; }
  .viz-head .asof { flex: none; }
  .kpi { padding: 20px 18px 16px; }
  .kpi .value { font-size: 2rem; }
  .chip { min-height: 28px; }               /* chips readable; tap rows below */
  .report-card { padding: 18px 18px 15px; }
  .sc-card { padding: 20px 18px 16px; }
  .hero-meta { gap: 10px; }
  .hero-meta .edition, .hero-meta .asof { font-size: 0.75rem; padding: 5px 10px; }
  .horizon-note { padding: 10px 14px; }
  .regime-banner { flex-direction: column; gap: 8px; }
  .tl-year-no { font-size: 1.5rem; }
  .footer-legal { flex-direction: column; gap: 8px; }
  .tape-asof { font-size: 0.75rem; }
  .ticker-tape.v4 { padding: 12px 0; }
  .ticker-tape.v4 .tape-item { padding: 0 14px; font-size: 0.8rem; }
  .method { padding: 20px 18px 18px; }
  .scenario-cards { gap: 14px; }
}

@media (max-width: 400px) {
  .wordmark { font-size: 0.84rem; }
  .hero h1 { font-size: clamp(1.9rem, 8.4vw, 2.5rem); } /* display floor */
  .kpi-strip { border-radius: var(--r-md); }
}

/* --- Reduced motion ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
  .skeleton::after { animation: none; }
}

/* ============================================================
   ELEVATION PASS (brief t_fa31a4d6, 2026-09-17)
   Items: #3 .stat · #4 provenance chip · #5 edition masthead
   · #10 above-fold · #11 legal identity · #14 motion cap
   ============================================================ */

/* --- #3 .stat component (trading-desk furniture) ------------- */
.stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat .stat-value {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink-0);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.stat .stat-value .unit {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--grey-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 8px;
}
.stat .stat-delta { font-size: var(--t-sm); font-weight: 650; font-variant-numeric: tabular-nums; }
.stat .stat-delta.pos { color: var(--pos); }
.stat .stat-delta.neg { color: var(--neg); }
.stat .stat-asof {
  font-size: var(--t-xs);
  color: var(--grey-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
@media (max-width: 540px) {
  .stat .stat-value { font-size: clamp(2.4rem, 12vw, 3.2rem); }
}

/* --- #4 provenance chip — mono, on every data figure --------- */
.prov {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  color: var(--grey-2);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 3px 8px;
  background: var(--bg-0);
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.prov a { color: var(--grey-1); text-decoration: none; border-bottom: 1px dotted var(--line-3); }
.prov a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.prov .prov-conf-high { color: var(--pos); }
.prov .prov-conf-med  { color: var(--warn); }
.prov .prov-conf-low  { color: var(--neg); }
.report-card .prov, .kpi .prov { margin-top: 10px; }
.viz-panel .prov { margin-top: 8px; }

/* --- #5 edition masthead strip ------------------------------- */
.edition-strip {
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  font-size: var(--t-xs);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--grey-2);
  font-weight: 650;
}
.edition-strip .wrap {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 7px;
  padding-bottom: 7px;
  flex-wrap: wrap;
  align-items: center;
}
.edition-strip .ed-no { color: var(--accent); }
.edition-strip a { color: var(--grey-2); }
.edition-strip a:hover { color: var(--accent); }

/* --- #10 above-fold P1-mobile composition -------------------- */
.fold-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--t-kicker);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.fold-eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: live-pulse 2.4s var(--ease) infinite;
}
@keyframes live-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .fold-eyebrow::before { animation: none; } }

.fold-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line-2);
}
@media (max-width: 860px) { .fold-stats { grid-template-columns: 1fr; gap: 22px; } }
.fold-cta-row { display: flex; gap: 14px; align-items: center; margin-top: 30px; flex-wrap: wrap; }
.btn-ghost {
  display: inline-flex; align-items: center; min-height: 44px;
  border: 1px solid var(--line-3); border-radius: var(--r-sm);
  color: var(--ink-0); font-weight: 650; font-size: var(--t-sm);
  padding: 10px 20px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn-ghost:hover { border-color: var(--accent); background: var(--bg-2); }
.cta-text { color: var(--accent); font-weight: 650; font-size: var(--t-sm); min-height: 44px; display: inline-flex; align-items: center; }

/* hero on mobile: verdict first, no oversized display */
@media (max-width: 860px) {
  .hero { padding-top: 26px; }
  .hero .lead { margin-top: 18px; }
  .hero-meta { margin: 12px 0 14px; }
  .fold-stats { gap: 14px; }
  .fold-cta-row { margin-top: 18px; }
}
/* P1-above-fold budget (brief #10): eyebrow+verdict+3 stats+CTA within ~844px */
@media (max-width: 540px) {
  .stat .stat-value { font-size: clamp(2rem, 10.5vw, 2.6rem); }
  .stat .stat-delta { font-size: var(--t-xs); }
  .fold-stats { gap: 12px; }
  .hero .display { font-size: clamp(1.7rem, 7.6vw, 2.1rem); }
  .edition-strip { font-size: 0.75rem; }
  .edition-strip .wrap { padding-top: 4px; padding-bottom: 4px; }
  /* header CTA duplicates the fold CTA; item #10: logo + menu only */
  header.site .header-cta { display: none; }
  .header-row { padding-top: 6px; padding-bottom: 2px; }
  .hero { padding-top: 14px; }
  .hero-meta { margin: 8px 0 10px; }
  /* 3-up stat row keeps the full P1 triad above the fold */
  .fold-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .stat .stat-value { font-size: clamp(1.7rem, 8.4vw, 2.15rem); }
  .stat .stat-value .unit { font-size: 0.75rem; margin-left: 3px; letter-spacing: 0.03em; }
  .stat .stat-asof { font-size: 0.75rem; }
  .stat .prov { font-size: 0.75rem; padding: 2px 5px; }
  .hero-meta .edition, .hero-meta .asof { font-size: 0.75rem; }
}

/* --- #11 institutional identity block (footer) --------------- */
.footer-legal-identity {
  border-top: 1px solid var(--line);
  padding: 22px 0 10px;
  font-size: var(--t-xs);
  color: var(--grey-2);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.footer-legal-identity dt { font-weight: 700; color: var(--grey-1); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.75rem; margin-bottom: 3px; }
.footer-legal-identity dd { font-variant-numeric: tabular-nums; }
.footer-legal-identity a { color: var(--grey-1); }
.footer-legal-identity a:hover { color: var(--accent); }

/* --- #16 "In het kort" press block --------------------------- */
.press-block {
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  background: var(--bg-1);
  padding: 22px 24px;
  margin: 34px 0;
}
.press-block h3 {
  font-size: var(--t-kicker);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-2);
  margin-bottom: 12px;
}
.press-block ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.press-block li { font-size: var(--t-sm); color: var(--ink-1); padding-left: 16px; position: relative; }
.press-block li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.press-block .press-quote {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  font-family: var(--font-display); font-style: italic; font-size: 1.02rem; color: var(--ink-0);
}
.press-block .press-contact { margin-top: 12px; font-size: var(--t-xs); color: var(--grey-2); }
.press-block .press-contact a { color: var(--accent); }

/* --- #6 legal-document page furniture (methodology/independence) --- */
.legal-doc { max-width: 72ch; margin-top: 34px; }
.legal-doc .clause { margin-bottom: 30px; }
.legal-doc .clause > h3 {
  font-family: var(--font-body); font-size: var(--t-sm);
  letter-spacing: 0.10em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 8px;
}
.legal-doc .clause p, .legal-doc .clause li { font-size: var(--t-body); color: var(--ink-1); }
.legal-doc .clause ol, .legal-doc .clause ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.legal-doc .rev-table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); margin-top: 18px; }
.legal-doc .rev-table th, .legal-doc .rev-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.legal-doc .rev-table th { font-size: var(--t-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-2); }
.effective-date { font-size: var(--t-xs); color: var(--grey-2); letter-spacing: 0.08em; text-transform: uppercase; }

/* --- #9 focus ring (accent, keyboard) ------------------------ */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* --- #14 scroll choreography cap: ≤300ms, fire-once already -- */
.reveal { transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }

/* --- #2 nav furniture: CSS chevrons replace glyph arrows ------ */
nav.sections .n.ext::after {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 2px;
  border-top: 1.4px solid currentColor;
  border-right: 1.4px solid currentColor;
  transform: rotate(-45deg) translate(-1px, 1px);
}
nav.sections .n.back::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 6px;
  border-bottom: 1.4px solid currentColor;
  border-left: 1.4px solid currentColor;
  transform: rotate(45deg) translate(1px, -1px);
}
.header-cta::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 8px;
  border-top: 1.6px solid currentColor;
  border-right: 1.6px solid currentColor;
  transform: rotate(45deg);
}
