/* ============================================================
   SES Group design tokens · v1.0.0 · August 2026
   Owner: Sigurður Eggert Sveinsson · CVR 46651596
   Principle: teal carries meaning, never decoration.
   Usage: paste this :root block (and the dark block) into any
   artifact, then style everything with var(--token).
   ============================================================ */

:root {
  /* ---- Brand teal ---- */
  --teal-50:  #EEF8F9;
  --teal-100: #D6EFF2;
  --teal-300: #7FD3DB;
  --teal-400: #35B6C2;   /* dark-mode primary            */
  --teal-500: #0E9AA7;   /* BRAND: logo, charts, fills   */
  --teal-600: #0B7C89;   /* ACTION: buttons, links, focus */
  --teal-800: #064E58;

  /* ---- Cool neutrals ---- */
  --white:     #FFFFFF;
  --slate-50:  #F6F9FA;
  --slate-100: #EDF2F3;
  --slate-200: #DEE7E9;
  --slate-300: #C2CFD3;
  --slate-400: #93A6AC;
  --slate-500: #6B8189;
  --slate-600: #455B62;
  --slate-800: #12242A;
  --ink-900:   #0A1417;
  --ink-cover: #06181C;   /* cover / dark page background */

  /* ---- Semantic (light) ---- */
  --bg:            var(--slate-50);
  --surface:       var(--white);
  --surface-sunk:  var(--slate-100);
  --border:        var(--slate-200);
  --border-strong: var(--slate-300);
  --text:          var(--ink-900);
  --text-dim:      var(--slate-600);
  --text-faint:    var(--slate-500);
  --primary:       var(--teal-600);
  --primary-fill:  var(--teal-50);
  --on-primary:    var(--white);

  /* ---- Status ---- */
  --success: #1F9D55;  --success-fill: #E6F5EC;  --success-text: #136B3A;
  --warning: #C2790B;  --warning-fill: #FAF0DD;  --warning-text: #8A560A;
  --danger:  #D0452B;  --danger-fill:  #FBEBE7;  --danger-text:  #93301D;
  --info:    #2F6FE4;  --info-fill:    #E8F0FD;  --info-text:    #1E4EA3;

  /* ---- Data series (assign in order, stop at four) ---- */
  --series-1: #0E9AA7;
  --series-2: #064E58;
  --series-3: #7FD3DB;
  --series-4: #2F6FE4;
  --series-5: #C2790B;
  --series-6: #93A6AC;

  /* ---- Typography ---- */
  --font:      'Geist', ui-sans-serif, system-ui, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --fw-light: 300; --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;

  --fs-display: 64px; --lh-display: 1.02; --ls-display: -0.035em;
  --fs-h1: 40px;      --lh-h1: 1.15;      --ls-h1: -0.03em;
  --fs-h2: 28px;      --lh-h2: 1.25;      --ls-h2: -0.025em;
  --fs-h3: 20px;      --lh-h3: 1.35;      --ls-h3: -0.015em;
  --fs-lead: 19px;    --lh-lead: 1.6;
  --fs-body: 16px;    --lh-body: 1.65;
  --fs-small: 14px;   --lh-small: 1.55;
  --fs-label: 11px;   --ls-label: 0.12em;  /* uppercase, mono */

  /* ---- Space (4px base) ---- */
  /* --sp-5 is written sixteen times in components.css as
     `var(--sp-5, 20px)`. A step the system uses that often is a step the
     system has; naming it here retires those fallbacks and stops the next
     rule that forgets one from losing its padding entirely, because an
     undefined custom property discards the whole declaration. */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-8: 32px; --sp-12: 48px; --sp-16: 64px; --sp-24: 96px;

  /* ---- Radius ---- */
  --radius-xs: 6px; --radius-sm: 10px; --radius-md: 16px;
  --radius-lg: 24px; --radius-pill: 999px;

  /* ---- Elevation ---- */
  --shadow-sm: 0 1px 2px rgba(10,20,23,0.04), 0 4px 12px rgba(10,20,23,0.05);
  --shadow-md: 0 8px 24px rgba(10,20,23,0.10), 0 2px 6px rgba(10,20,23,0.06);
  --shadow-lg: 0 24px 56px rgba(10,20,23,0.16);
  --ring-focus: 0 0 0 3px rgba(14,154,167,0.22);
  --ring-primary: 0 0 0 1px #0E9AA7;

  /* ---- Layout ---- */
  --content-max: 1200px;
  --page-margin: 80px;
  --gutter: 24px;
}

/* Dark mode: a remap, never a redesign. */
[data-theme="dark"], .theme-dark {
  --bg:            #06181C;
  --surface:       #0D1F24;
  --surface-sunk:  #13292F;
  --border:        #1E3A41;
  --border-strong: #2A4A52;
  --text:          #E6EFF1;
  --text-dim:      #9BB0B6;
  --text-faint:    #6B8189;
  --primary:       var(--teal-400);
  --primary-fill:  #13292F;
  --on-primary:    #06181C;

  --success-fill: #0E2A21; --warning-fill: #2A2011; --danger-fill: #2C1712; --info-fill: #0F1E33;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 24px 56px rgba(0,0,0,0.6);
  --ring-focus: 0 0 0 3px rgba(53,182,194,0.3);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #06181C; --surface: #0D1F24; --surface-sunk: #13292F;
    --border: #1E3A41; --border-strong: #2A4A52;
    --text: #E6EFF1; --text-dim: #9BB0B6; --text-faint: #6B8189;
    --primary: #35B6C2; --primary-fill: #13292F; --on-primary: #06181C;
  }
}

/* ============================================================
   SES Group · base layer
   Element defaults, the type scale and the layout primitives.
   Loads after tokens.css. Nothing here knows about a page.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--sp-16);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3, h4 { font-weight: var(--fw-semibold); text-wrap: balance; }

h1 { font-size: var(--fs-h1);      line-height: var(--lh-h1); letter-spacing: var(--ls-h1); }
h2 { font-size: var(--fs-h2);      line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
h3 { font-size: var(--fs-h3);      line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--text); text-decoration: underline; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

::selection { background: var(--teal-100); color: var(--ink-900); }

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

/* ---- Fluid display sizes ------------------------------------------------
   The tokens carry the desktop value; these clamp them down on small
   screens so no page needs a media query to stay readable. */
:root {
  --fs-display-fluid: clamp(34px, 7.2vw, 72px);
  --fs-h1-fluid:      clamp(30px, 5.4vw, 60px);
  --fs-h2-fluid:      clamp(24px, 3.2vw, 36px);
  --fs-h3-fluid:      clamp(20px, 2.2vw, 24px);
  --page-gutter:      clamp(20px, 5vw, 40px);
  --rhythm:           clamp(56px, 8vw, 96px);
}

/* ---- Layout primitives ---- */

.wrap {
  width: 100%;
  max-width: calc(var(--content-max) + var(--page-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.section { padding-block: var(--rhythm); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
.section--ruled { border-top: 1px solid var(--surface-sunk); }

/* Vertical rhythm without per-element margins. */
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--flow, var(--sp-4)); }
.stack--2  { --flow: var(--sp-2); }
.stack--3  { --flow: var(--sp-3); }
.stack--4  { --flow: var(--sp-4); }
.stack--6  { --flow: var(--sp-6); }
.stack--8  { --flow: var(--sp-8); }
.stack--12 { --flow: var(--sp-12); }

.row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap, var(--sp-3));
  align-items: var(--align, center);
}
.row--between { justify-content: space-between; }
.row--baseline { --align: baseline; }
.row--end { --align: flex-end; }
.row--gap-6 { --gap: var(--sp-6); }
.row--gap-8 { --gap: var(--sp-8); }
.row--gap-12 { --gap: var(--sp-12); }

/* Auto-fitting grids: the column count falls out of the available width,
   so adding a card never needs a breakpoint. */
.grid { display: grid; gap: var(--sp-6); }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--3     { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid--4     { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

/* The case-page two column: sticky contents rail beside the article. */
.split {
  display: grid;
  gap: clamp(var(--sp-8), 4vw, 56px);
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .split { grid-template-columns: 200px minmax(0, 1fr); }
  .split--wide-first { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); }
}

.measure { max-width: 70ch; }
.measure--narrow { max-width: 46ch; }

/* ---- Inverted regions -------------------------------------------------
   Dark surfaces are a token remap, never a separate design. Anything
   inside .invert reads the dark values of the same semantic tokens. */
.invert {
  --bg:            var(--ink-cover);
  --surface:       #0D1F24;
  --surface-sunk:  #13292F;
  --border:        #1E3A41;
  --border-strong: #2A4A52;
  --text:          #E6EFF1;
  --text-dim:      #9BB0B6;
  --text-faint:    #6B8189;
  --primary:       var(--teal-400);
  --primary-fill:  #13292F;
  --on-primary:    var(--ink-cover);
  background: var(--bg);
  color: var(--text);
}

/* ---- Accessibility helpers ---- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: calc(-1 * var(--sp-16));
  z-index: 50;
  padding: var(--sp-3) var(--sp-4);
  background: var(--teal-600);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  transition: top .15s ease;
}
.skip-link:focus { top: var(--sp-4); color: var(--white); text-decoration: none; }

/* ============================================================
   SES Group · component layer
   Every visual pattern in the system, once. Pages compose
   these classes; pages never carry a style attribute.
   Loads after base.css.
   ============================================================ */

/* ---------- Text roles --------------------------------------------------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--primary);
  margin: 0;
}
.eyebrow--dim { color: var(--text-faint); }
.eyebrow--plain { text-transform: none; letter-spacing: 0.04em; font-size: 11.5px; }

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  font-weight: var(--fw-light);
  color: var(--text-dim);
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.dim { color: var(--text-dim); }
.faint { color: var(--text-faint); }

.display {
  font-size: var(--fs-display-fluid);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  font-weight: var(--fw-semibold);
}
.title-1 { font-size: var(--fs-h1-fluid); line-height: 1.08; letter-spacing: -0.033em; }
.title-2 { font-size: var(--fs-h2-fluid); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
.title-3 { font-size: var(--fs-h3-fluid); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }

/* ---------- Buttons ------------------------------------------------------
   One primary per view. 44px minimum height: a factory tablet is the
   worst-case touch target, and it sets the floor everywhere else. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: var(--sp-3) var(--sp-6);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15.5px;
  font-weight: var(--fw-medium);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; }

.btn--primary { background: var(--teal-600); color: var(--white); }
.btn--primary:hover { background: var(--teal-800); color: var(--white); }
.invert .btn--primary { background: var(--teal-400); color: var(--ink-cover); }
.invert .btn--primary:hover { background: var(--teal-300); color: var(--ink-cover); }

.btn--secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--secondary:hover { border-color: var(--text); color: var(--text); background: var(--surface-sunk); }

.btn--ghost { background: transparent; color: var(--primary); padding-inline: var(--sp-3); }
.btn--ghost:hover { background: var(--primary-fill); color: var(--primary); }

.btn--sm { min-height: 36px; padding: var(--sp-2) var(--sp-4); font-size: var(--fs-small); }
.btn--lg { min-height: 52px; padding: var(--sp-4) var(--sp-8); font-size: 17px; }

/* An inline text link that behaves like a call to action, not a button. */
.actionlink {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 14.5px;
  font-weight: var(--fw-medium);
  color: var(--primary);
}
.actionlink:hover { color: var(--teal-800); text-decoration: underline; }

.plainlink { color: inherit; text-decoration: none; }
.plainlink:hover { color: inherit; text-decoration: underline; }

/* ---------- Masthead ----------------------------------------------------- */

.masthead { position: relative; z-index: 10; }
.masthead__inner {
  display: flex;
  align-items: center;
  gap: clamp(var(--sp-4), 3vw, 36px);
  flex-wrap: wrap;
  padding-block: var(--sp-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  flex: none;
}
.brand:hover { color: var(--text); text-decoration: none; }
.brand__mark { width: 28px; height: 28px; flex: none; }
.brand__name { font-size: 17px; font-weight: var(--fw-semibold); letter-spacing: -0.03em; }

.mainnav { display: flex; gap: clamp(var(--sp-4), 2vw, 28px); flex-wrap: wrap; }
.mainnav__link { color: var(--text-dim); font-size: 14.5px; }
.mainnav__link:hover { color: var(--text); text-decoration: none; }
.mainnav__link[aria-current="page"] { color: var(--text); font-weight: var(--fw-medium); }

.masthead__end { margin-left: auto; display: flex; align-items: center; gap: var(--sp-4); }

.langswitch {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--surface-sunk);
  border-radius: var(--radius-xs);
}
.langswitch__btn {
  padding: 5px 11px;
  border: 0;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: var(--fw-medium);
  text-decoration: none;
  cursor: pointer;
  line-height: 1.4;
}
.langswitch__btn:hover { color: var(--text); text-decoration: none; }
.langswitch__btn[aria-current="true"] {
  background: var(--primary);
  color: var(--on-primary);
  font-weight: var(--fw-semibold);
}

/* ---------- Hero --------------------------------------------------------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-6);
  padding-block: clamp(var(--sp-12), 8vw, 96px) clamp(var(--sp-12), 7vw, 88px);
}
.hero--case { padding-block: clamp(var(--sp-8), 5vw, 56px) clamp(var(--sp-12), 6vw, 72px); }
.hero__title { max-width: 900px; color: var(--text); }
.hero__lead { max-width: 62ch; }

.hero__stats {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(var(--sp-6), 4vw, 44px);
  margin-top: clamp(var(--sp-4), 2vw, 32px);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}
.stat__value {
  font-size: var(--fs-h2);
  line-height: 1.1;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.025em;
  color: var(--text);
}
.stat__label { font-size: 13px; color: var(--text-faint); margin-top: 3px; }

.breadcrumb { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); }
.breadcrumb a { color: var(--text-faint); }
.breadcrumb a:hover { color: var(--text); }

/* ---------- Pills, tags, chips ------------------------------------------- */

.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: var(--surface-sunk);
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: var(--fw-medium);
  line-height: 1.5;
  white-space: nowrap;
}
.pill--primary { background: var(--primary-fill); color: var(--primary); }
.pill--success { background: var(--success-fill); color: var(--success-text); border-radius: var(--radius-pill); padding-inline: var(--sp-3); }
.pill--neutral { background: var(--surface-sunk); color: var(--text-faint); border-radius: var(--radius-pill); padding-inline: var(--sp-3); }
.pill--warning { background: var(--warning-fill); color: var(--warning-text); }
.pill--danger  { background: var(--danger-fill);  color: var(--danger-text); }
.pill--info    { background: var(--info-fill);    color: var(--info-text); }

.tag {
  display: inline-block;
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text-dim);
}

.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip[aria-pressed="true"] {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--white);
  font-weight: var(--fw-medium);
}

/* ---------- Cards -------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.card--flat { box-shadow: none; }
.card--raised { box-shadow: var(--shadow-sm); }

.cardlink {
  color: inherit;
  text-decoration: none;
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.cardlink:hover {
  color: inherit;
  text-decoration: none;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.cardlink:hover .card__title { color: var(--primary); }

.card__media {
  height: 150px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card__body { padding: var(--sp-6); display: flex; flex-direction: column; flex: 1; gap: var(--sp-3); }
.card__meta { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); }
.card__title { font-size: 19px; font-weight: var(--fw-semibold); letter-spacing: -0.02em; transition: color .15s ease; }
.card__text { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-dim); flex: 1; }
.card__year { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); }

.is-filtered-out { display: none !important; }

/* ---- Card artwork: drawn from tokens, never an image asset ---- */
.thumb { width: 100%; height: 100%; display: flex; align-items: flex-end; gap: var(--sp-2); }
.thumb--bars > i { flex: 1; background: var(--border); border-radius: 4px 4px 0 0; display: block; }
.thumb--bars > i:last-child { background: var(--teal-500); }

.thumb--rows { flex-direction: column; justify-content: center; align-items: stretch; gap: var(--sp-2); }
.thumb--rows > i { height: 10px; border-radius: 3px; background: var(--border); display: block; }
.thumb--rows > i.is-key { background: var(--teal-500); }

.thumb--tiles { align-items: center; justify-content: center; gap: 10px; }
.thumb--tiles > i { width: 26px; height: 26px; border-radius: var(--radius-xs); background: var(--surface-sunk); display: block; }
.thumb--tiles > i.is-key { background: var(--teal-400); }

.thumb--grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; align-items: stretch; }
.thumb--grid > i { aspect-ratio: 1; border-radius: 4px; background: var(--border); display: block; }
.thumb--grid > i:nth-child(even) { background: var(--surface-sunk); }
.thumb--grid > i.is-key { background: var(--teal-500); }

.thumb--docs { align-items: center; justify-content: center; gap: var(--sp-3); }
.thumb--docs > i { width: 44px; height: 56px; border: 2px solid var(--border-strong); border-radius: var(--radius-xs); display: block; }
.thumb--docs > i.is-key { border-color: var(--teal-500); }
.thumb--docs > i.is-link { width: 20px; height: 2px; border: 0; background: var(--teal-500); }

.thumb--spark, .thumb--donut { align-items: center; justify-content: center; }

.card__media--ink { background: var(--ink-cover); border-bottom-color: var(--ink-cover); }

/* ---------- Featured panel ----------------------------------------------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; } }

.feature__body {
  padding: clamp(var(--sp-8), 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-4);
  min-width: 0;
}
.feature__aside {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: clamp(var(--sp-6), 3vw, 40px);
  display: flex;
  align-items: center;
  min-width: 0;
}
@media (min-width: 900px) {
  .feature__aside { border-top: 0; border-left: 1px solid var(--border); }
}

.panel {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--sp-5, 20px);
  box-shadow: var(--shadow-sm);
}
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); }
.panel__title { font-size: var(--fs-small); font-weight: var(--fw-semibold); }
.panel__axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
  margin-top: var(--sp-1);
}
.panel__chart { margin-top: var(--sp-4); }

.minifact__value { font-size: 16px; font-weight: var(--fw-semibold); letter-spacing: -0.02em; }
.minifact__value--accent { color: var(--primary); }
.minifact__label { font-size: 12.5px; color: var(--text-faint); }

/* ---------- Facts strip -------------------------------------------------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.facts--overlap { margin-top: -32px; position: relative; z-index: 5; }
.fact { padding: var(--sp-6) 28px; border-top: 1px solid var(--surface-sunk); }
.fact:first-child { border-top: 0; }
@media (min-width: 760px) {
  .fact { border-top: 0; border-left: 1px solid var(--surface-sunk); }
  .fact:first-child { border-left: 0; }
}
.fact__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-faint);
}
.fact__value { margin-top: var(--sp-2); font-size: 15px; font-weight: var(--fw-medium); }
.fact__value--accent { color: var(--primary); }

/* ---------- Contents rail ------------------------------------------------ */

.toc { font-size: var(--fs-small); }
@media (min-width: 900px) { .toc { position: sticky; top: var(--sp-8); } }
.toc__list { display: flex; flex-direction: column; gap: 9px; margin-top: var(--sp-4); }
.toc__link { color: var(--text-dim); }
.toc__link:hover { color: var(--text); text-decoration: none; }
.toc__link.is-current { color: var(--text); font-weight: var(--fw-medium); }

/* ---------- Article ------------------------------------------------------ */

.article { min-width: 0; max-width: 720px; }
.article__section + .article__section { margin-top: clamp(var(--sp-8), 4vw, 56px); }
.article p { font-size: 17px; line-height: 1.75; color: var(--text-dim); }
.article p + p { margin-top: var(--sp-4); }
.article h2 { margin-bottom: var(--sp-4); }
.article strong { color: var(--text); font-weight: var(--fw-semibold); }

.bullets { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-4); }
.bullets > li {
  position: relative;
  padding-left: var(--sp-6);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-dim);
}
.bullets > li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 8px; height: 1px;
  background: var(--border-strong);
}

/* ---------- Blocks ------------------------------------------------------- */

.steps { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); margin-top: var(--sp-6); }
.step { border: 1px solid var(--border); border-radius: 14px; padding: var(--sp-5, 20px); }
.step__eyebrow { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.step:first-child .step__eyebrow { color: var(--primary); }
.step__title { margin-top: var(--sp-2); font-size: 15.5px; font-weight: var(--fw-semibold); line-height: 1.4; }

.kpis { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); margin-top: var(--sp-6); }
.kpi { border: 1px solid var(--border); border-radius: 14px; padding: var(--sp-5, 20px); }
.kpi__value { font-size: var(--fs-h2); font-weight: var(--fw-semibold); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.kpi__label { font-size: 13px; color: var(--text-dim); margin-top: var(--sp-1); }
.kpi__note { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin-top: var(--sp-2); }

.note {
  margin-top: var(--sp-6);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--bg);
  padding: var(--sp-5, 20px) var(--sp-6);
}
.note--info    { border-left-color: var(--info); }
.note--success { border-left-color: var(--success); }
.note--warning { border-left-color: var(--warning); }
.note--danger  { border-left-color: var(--danger); }
.note__title { font-size: 15.5px; font-weight: var(--fw-semibold); }
.note__body { font-size: 15.5px; line-height: 1.7; color: var(--text-dim); margin-top: var(--sp-2); }

.quote { margin-top: var(--sp-6); border-left: 3px solid var(--teal-500); padding-left: var(--sp-6); }
.quote__text { font-size: 19px; line-height: 1.6; font-weight: var(--fw-light); color: var(--text); }
.quote__by { margin-top: var(--sp-3); font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); }

.tablewrap { margin-top: var(--sp-6); overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.table th, .table td { padding: var(--sp-3) var(--sp-4); text-align: left; }
.table thead th {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
  font-weight: var(--fw-medium);
}
.table tbody tr:nth-child(even) { background: var(--bg); }
.table tbody td { border-top: 1px solid var(--surface-sunk); color: var(--text-dim); }
.table td.is-num, .table th.is-num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.pairs { margin-top: var(--sp-6); display: grid; gap: 0; border-top: 1px solid var(--surface-sunk); }
.pair { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; padding: var(--sp-3) 0; border-bottom: 1px solid var(--surface-sunk); }
.pair__label { font-size: var(--fs-small); color: var(--text-faint); }
.pair__value { font-size: var(--fs-small); font-weight: var(--fw-medium); }

.figure { margin-top: var(--sp-6); }
.figure__caption { margin-top: var(--sp-3); font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }

/* A deliberately labelled mock-up. Never dressed as measured data. */
.sketch {
  margin-top: var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  padding: var(--sp-5, 20px);
}
.sketch__window { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.sketch__bar { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--surface-sunk); display: flex; align-items: center; gap: 10px; }
.sketch__name { font-size: 13px; font-weight: var(--fw-semibold); }
.sketch__context { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); }
.sketch__tiles { padding: var(--sp-4); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 110px), 1fr)); gap: 10px; }
.sketch__tile { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--sp-3); }
.sketch__tile--accent { border-color: var(--teal-500); }
.sketch__tile-label { font-size: 11px; color: var(--text-faint); }
.sketch__tile--accent .sketch__tile-label { color: var(--primary); }
.sketch__tile-value { font-size: 20px; font-weight: var(--fw-semibold); margin-top: 2px; font-variant-numeric: tabular-nums; }
.sketch__caption { margin-top: var(--sp-3); font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }

/* ---------- Pager -------------------------------------------------------- */

.pager {
  margin-top: clamp(var(--sp-8), 4vw, 56px);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--surface-sunk);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
}
.pager__item { min-width: 0; }
.pager__item--next { text-align: right; margin-left: auto; }
.pager__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-faint);
}
.pager__title { margin-top: var(--sp-2); font-size: 17px; font-weight: var(--fw-semibold); letter-spacing: -0.02em; }

/* ---------- Call to action ----------------------------------------------- */

.cta {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--sp-8), 5vw, 64px) clamp(var(--sp-6), 4vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(var(--sp-6), 3vw, 48px);
  flex-wrap: wrap;
}
.cta__title { max-width: 22ch; }
.cta__body { margin-top: var(--sp-3); max-width: 46ch; color: var(--text-dim); }
.cta__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* ---------- Footer ------------------------------------------------------- */

.sitefooter { padding-block: clamp(var(--sp-8), 4vw, 56px) var(--sp-12); }
.sitefooter__inner {
  padding-top: var(--sp-6);
  border-top: 1px solid var(--surface-sunk);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
}
.sitefooter a { color: var(--text-faint); }
.sitefooter a:hover { color: var(--text); }

/* ---------- Empty / error page ------------------------------------------- */

.centred { min-height: 52vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--sp-4); }

/* ---------- Small layout helpers used by the page templates -------------- */
.row--gap-2 { --gap: var(--sp-2); }
.ruled { border-top: 1px solid var(--surface-sunk); padding-top: clamp(var(--sp-8), 4vw, 64px); }

/* Inside an article the section heading returns to the system's h2 (28px);
   the fluid title-2 is for page-level section headings. */
.article .title-2 { font-size: clamp(23px, 2.6vw, 28px); }

/* Bar heights live here, not on the element: the artwork is decoration and
   must not put a style attribute back into the markup. */
.thumb--bars > i:nth-child(1) { height: 38%; }
.thumb--bars > i:nth-child(2) { height: 58%; }
.thumb--bars > i:nth-child(3) { height: 46%; }
.thumb--bars > i:nth-child(4) { height: 74%; }
.thumb--bars > i:nth-child(5) { height: 100%; }

/* ==========================================================================
   Product patterns
   Used by the product templates in lib/product.mjs. The portfolio pages
   never touch anything below.

   Written against how independent consultancies actually lay a page out.
   Three rules came out of that reading and are worth keeping:

     1. A headline is short. Long headlines set at display size wrap into a
        wall and read as a slide, not a page.
     2. Sections are told apart by the surface they sit on, not by a hairline
        under every one of them. A page of identical ruled bands reads as a
        form.
     3. Nothing smaller than 15px carries meaning. The first draft put the
        offer bullets at 14px, which is where a page starts to feel cheap.
   ========================================================================== */

/* ---------- Section chrome ----------------------------------------------- */

.band { position: relative; }
.band__inner { padding-block: clamp(56px, 6vw, 104px); }
.band--tint { background: var(--surface-sunk); }
.band--ink { background: var(--ink-cover); }

/* Two plain bands in a row still need separating, but only then. */
.band:not(.band--tint):not(.band--ink) + .band:not(.band--tint):not(.band--ink) .band__inner {
  border-top: 1px solid var(--border);
}

.sechead { max-width: 44ch; margin-bottom: clamp(var(--sp-8), 4vw, 56px); }
.sechead--wide { max-width: 60ch; }
.sechead .title-2 { margin-top: var(--sp-3); }
.sechead__lead {
  margin-top: var(--sp-4);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 58ch;
}

.actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* ---------- Hero ---------------------------------------------------------- */

.hero--product {
  display: grid;
  gap: clamp(var(--sp-8), 5vw, 80px);
  align-items: center;
  padding-block: clamp(var(--sp-12), 7vw, 112px) clamp(var(--sp-12), 6vw, 96px);
}
@media (min-width: 1000px) {
  .hero--product { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); }
}
.hero--inner { padding-block: clamp(var(--sp-8), 5vw, 72px) clamp(var(--sp-8), 5vw, 80px); }

.hero__copy { min-width: 0; }
.hero__aside { min-width: 0; }

/* Short headline, so it can be large without wrapping into a paragraph. */
.hero__title {
  margin-top: var(--sp-4);
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: var(--fw-semibold);
  max-width: 17ch;
  color: var(--text);
}
.hero__title--inner { max-width: 24ch; font-size: clamp(30px, 3.6vw, 46px); }

/* Weight 400, not 300. Light weights on a dark surface go grey and thin. */
.hero__lead {
  margin-top: var(--sp-5, 20px);
  font-size: 18.5px;
  line-height: 1.62;
  font-weight: var(--fw-regular);
  color: var(--text-dim);
  max-width: 52ch;
}
.hero__actions { margin-top: clamp(var(--sp-6), 3vw, 36px); }
.hero__note {
  margin-top: var(--sp-6);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-faint);
  max-width: 50ch;
}

/* ---------- The credentials strip ---------------------------------------- */

.proofstrip { background: var(--ink-cover); }
.proofstrip__inner {
  border-top: 1px solid var(--border);
  padding-block: clamp(var(--sp-8), 3.5vw, 44px);
  display: grid;
  gap: var(--sp-6) clamp(var(--sp-6), 3vw, 48px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}
/* Large figures set their own line-height. Inheriting the 1.65 body value
   leaves a band of dead space under every number. */
.proofstrip__value {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.05;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.03em;
  color: var(--teal-400);
  font-variant-numeric: tabular-nums;
}
.proofstrip__label {
  margin-top: var(--sp-2);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-faint);
  max-width: 26ch;
}

/* ---------- The example, shown as evidence -------------------------------- */

.showcaseband__inner {
  padding-block: clamp(56px, 6vw, 104px);
  display: grid;
  gap: clamp(var(--sp-8), 5vw, 72px);
  align-items: center;
}
@media (min-width: 1000px) {
  .showcaseband__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); }
}
.showcaseband__copy { min-width: 0; }
.showcaseband__copy .title-2 { margin-top: var(--sp-3); }
.showcaseband__copy .actions { margin-top: clamp(var(--sp-6), 3vw, 36px); }
.showcaseband__art { min-width: 0; }

/* The real panel: actual figures from the example dataset, labelled as
   such. A placeholder in the one position that has to earn trust is the
   most expensive thing on a page. */
.showcase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.invert .showcase { background: #0D1F24; border-color: #1E3A41; box-shadow: var(--shadow-lg); }

.showcase__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5, 20px);
  border-bottom: 1px solid var(--border);
}
.showcase__name { font-size: 14.5px; font-weight: var(--fw-semibold); color: var(--text); }
.showcase__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--teal-500);
  border: 1px solid var(--teal-500);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
}
.invert .showcase__tag { color: var(--teal-400); border-color: var(--teal-400); }

.showcase__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}
.showcase__kpi {
  background: var(--surface);
  padding: var(--sp-4) var(--sp-5, 20px) var(--sp-5, 20px);
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.invert .showcase__kpi { background: #0D1F24; }
.showcase__kpi-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.showcase__kpi-value {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.2;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.showcase__kpi-delta { font-size: 11.5px; font-variant-numeric: tabular-nums; }
.showcase__kpi-delta--good { color: var(--success); }
.showcase__kpi-delta--watch { color: var(--warning); }

.showcase__chart { display: block; padding: var(--sp-5, 20px) var(--sp-5, 20px) 0; }
.showcase__body { padding: var(--sp-5, 20px) var(--sp-5, 20px) 0; }
.showcase__foot {
  padding: var(--sp-4) var(--sp-5, 20px) var(--sp-5, 20px);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-faint);
}

/* ---------- The problem, in three lines ---------------------------------- */

.points {
  display: grid;
  gap: clamp(var(--sp-6), 3vw, 48px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.point__title {
  font-size: 17px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  padding-top: var(--sp-4);
  border-top: 2px solid var(--border-strong);
}
.point:first-child .point__title { border-top-color: var(--teal-500); }
.point__body { margin-top: var(--sp-3); font-size: 15.5px; line-height: 1.65; color: var(--text-dim); }

/* ---------- Tiers --------------------------------------------------------- */

.tiers {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: stretch;
}
.tier {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(28px, 2.6vw, 36px);
  display: flex;
  flex-direction: column;
}
.tier--featured { border-color: var(--teal-500); box-shadow: var(--shadow-md); }
.tier__flag {
  position: absolute;
  top: 0;
  right: clamp(28px, 2.6vw, 36px);
  transform: translateY(-50%);
  background: var(--teal-600);
  color: var(--white);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}
.tier__name { font-size: 20px; font-weight: var(--fw-semibold); letter-spacing: -0.025em; }
.tier__for { margin-top: var(--sp-3); font-size: 15px; line-height: 1.6; color: var(--text-dim); }
.tier__price {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5, 20px);
  border-top: 1px solid var(--border);
  font-size: 26px;
  line-height: 1.2;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.tier__unit { font-size: 14px; font-weight: var(--fw-regular); color: var(--text-faint); letter-spacing: 0; }
.tier__list { display: flex; flex-direction: column; gap: 11px; margin-top: var(--sp-5, 20px); flex: 1; }
.tier__list > li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-dim);
}
.tier__list > li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 6px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--teal-500);
  border-bottom: 2px solid var(--teal-500);
  transform: rotate(-45deg);
}
.tier .btn { margin-top: clamp(var(--sp-6), 2.5vw, 32px); align-self: stretch; justify-content: center; }
.tiers__note {
  margin-top: clamp(var(--sp-6), 3vw, 40px);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-faint);
  max-width: 76ch;
}

/* ---------- Timeline ------------------------------------------------------ */

.timeline { display: flex; flex-direction: column; }
.tl {
  display: grid;
  gap: var(--sp-3);
  padding-block: clamp(var(--sp-6), 2.6vw, 32px);
  border-top: 1px solid var(--border);
}
.tl:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 760px) {
  .tl { grid-template-columns: 168px minmax(0, 1fr); gap: clamp(var(--sp-6), 4vw, 64px); }
}
.tl__when {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-faint);
  padding-top: 5px;
}
.tl:first-child .tl__when { color: var(--primary); }
.tl__title { font-size: 18px; font-weight: var(--fw-semibold); letter-spacing: -0.02em; }
.tl__text { margin-top: var(--sp-2); font-size: 16px; line-height: 1.7; color: var(--text-dim); max-width: 64ch; }

/* ---------- Two column: a claim, and why it holds ------------------------- */

.twocol { display: grid; gap: clamp(var(--sp-6), 3vw, 48px); }
@media (min-width: 900px) {
  .twocol { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(var(--sp-8), 5vw, 88px); }
}
.twocol__head .title-2 { margin-top: var(--sp-3); }
.twocol__body { min-width: 0; }
.twocol__body p { font-size: 16.5px; line-height: 1.72; color: var(--text-dim); max-width: 62ch; }
.twocol__body p + p { margin-top: var(--sp-4); }

.ticks { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: clamp(var(--sp-6), 2.5vw, 32px); }
.ticks > li {
  position: relative;
  padding-left: 28px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
}
.ticks > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--teal-500);
  border-bottom: 2px solid var(--teal-500);
  transform: rotate(-45deg);
}

.taglist { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: clamp(var(--sp-6), 2.5vw, 32px); }

/* ---------- Scope --------------------------------------------------------- */

.scope { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); }
.scope__col {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(28px, 2.6vw, 36px);
  background: var(--surface);
}
.scope__col--out { background: transparent; border-style: dashed; }
.scope__title { font-size: 16px; font-weight: var(--fw-semibold); letter-spacing: -0.02em; }
.scope__list { display: flex; flex-direction: column; gap: 11px; margin-top: var(--sp-5, 20px); }
.scope__list > li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
}
.scope__list > li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 6px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--teal-500);
  border-bottom: 2px solid var(--teal-500);
  transform: rotate(-45deg);
}
.scope__col--out .scope__list > li::before {
  top: 10px;
  width: 12px;
  height: 0;
  border-left: 0;
  border-bottom: 2px solid var(--text-faint);
  transform: none;
}

/* ---------- FAQ ----------------------------------------------------------- */

.faq { border-top: 1px solid var(--border); max-width: 74ch; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  list-style: none;
  cursor: pointer;
  padding-block: var(--sp-5, 20px);
  padding-right: var(--sp-8);
  position: relative;
  font-size: 16.5px;
  font-weight: var(--fw-medium);
  letter-spacing: -0.015em;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint);
  transform: rotate(45deg);
  transition: transform .15s ease;
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__q:hover { color: var(--primary); }
.faq__q:focus-visible { outline: 2px solid var(--teal-600); outline-offset: 3px; border-radius: var(--radius-xs); }
.faq__a { padding-bottom: var(--sp-6); max-width: 66ch; }
.faq__a p { font-size: 15.5px; color: var(--text-dim); line-height: 1.7; }
.faq__a p + p { margin-top: var(--sp-3); }

/* ---------- Closing call to action ---------------------------------------- */

.ctaband__inner {
  padding-block: clamp(56px, 5.5vw, 96px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(var(--sp-6), 4vw, 64px);
  flex-wrap: wrap;
}
.ctaband__title { margin-top: var(--sp-3); max-width: 18ch; }
.ctaband__body { margin-top: var(--sp-4); font-size: 17px; line-height: 1.6; color: var(--text-dim); max-width: 46ch; }

/* ==========================================================================
   The example dashboard
   Its own vocabulary, because it is the one page that is the product rather
   than a description of it.
   ========================================================================== */

.dash { display: flex; flex-direction: column; gap: var(--sp-6); }

.dash__bar { display: flex; justify-content: flex-end; }
/* Hidden until the script confirms it can do something. With no JavaScript
   the page still shows the full year, which is the view that matters. */
.dash__slicer { display: none; gap: 4px; padding: 4px; background: var(--surface-sunk); border-radius: var(--radius-pill); }
.dash__slicer.is-ready { display: inline-flex; }
.dash__slice {
  border: 0;
  background: transparent;
  border-radius: var(--radius-pill);
  padding: 7px var(--sp-4);
  font: inherit;
  font-size: 13.5px;
  color: var(--text-dim);
  cursor: pointer;
}
.dash__slice:hover { color: var(--text); }
.dash__slice[aria-pressed="true"] { background: var(--surface); color: var(--text); font-weight: var(--fw-medium); box-shadow: var(--shadow-sm); }
.dash__slice:focus-visible { outline: 2px solid var(--teal-600); outline-offset: 2px; }

.dash__kpis { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.dash__kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
}
.dash__kpi-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-faint);
}
.dash__kpi-value {
  margin-top: var(--sp-3);
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.15;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.dash__kpi-note { margin-top: var(--sp-2); font-size: 13px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.dash__kpi-note--up { color: var(--success-text); }
.dash__kpi-note--down { color: var(--warning-text); }

.dash__row { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }

.dash__panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  min-width: 0;
}
.dash__panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.dash__panel-title { font-size: 16px; font-weight: var(--fw-semibold); letter-spacing: -0.02em; }
.dash__panel-note { margin-top: var(--sp-4); font-size: 13.5px; line-height: 1.6; color: var(--text-faint); max-width: 78ch; }

/* A chart keeps its own scroll box. Squeezing a twelve month chart onto a
   phone preserves the shape and destroys the labels, so the chart scrolls
   inside the panel instead and the page itself never does. */
.chartwrap { overflow-x: auto; overscroll-behavior-x: contain; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart--wide { min-width: 620px; }
.chart--small { max-width: 420px; margin-inline: auto; }
.chart__bar { fill: var(--teal-500); transition: opacity .15s ease; }
.chart__bar--flag { fill: var(--warning); }
.chart__bar.is-dim { opacity: 0.25; }
.chart__tick { fill: var(--text-faint); font-family: var(--font-mono); font-size: 10.5px; }
.chart__tick--alt { fill: var(--text-faint); }
.chart__value { fill: var(--text-dim); font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; }
.chart__value--flag { fill: var(--warning-text); }
.chart__value--warn { fill: var(--warning-text); }
.chart__rowlabel { fill: var(--text); font-size: 13.5px; }

.dash__findings {
  border-top: 1px solid var(--border);
  padding-top: clamp(var(--sp-8), 4vw, 48px);
  margin-top: var(--sp-4);
}
.dash__findings-title { margin-bottom: var(--sp-6); }
.dash__finding-grid { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.dash__finding { border-left: 2px solid var(--teal-500); padding-left: var(--sp-5, 20px); }
.dash__finding-value {
  font-size: 24px;
  line-height: 1.15;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.dash__finding-title { margin-top: 2px; font-size: 13px; color: var(--text-faint); }
.dash__finding-body { margin-top: var(--sp-3); font-size: 15.5px; line-height: 1.65; color: var(--text-dim); }
