/* Anton (display) + Inter (body), self-hosted. Both SIL OFL 1.1 — fonts/OFL-Anton.txt, fonts/OFL-Inter.txt.
 * Sources: google/fonts ofl/anton/Anton-Regular.ttf v2.116 · npm inter-ui 4.1.1 (web/*.woff2).
 * Subset to Latin + punctuation + super/subscripts + £ ¢ € by tools/subset-fonts.py, which also
 * adds a `tnum` feature to Anton (README §3). No third-party font CDN (arm p2): the page promises
 * privacy, and a font request is a request. */
@font-face {
  font-family: "Anton";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/Anton-Regular-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/Inter-Regular-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/Inter-Medium-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/Inter-SemiBold-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/Inter-Bold-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/Inter-Italic-latin.woff2") format("woff2");
}

/* 1MWatt design tokens — the only file that holds colour literals.
 * Kit 2 (operator ruling R13, 2026-09-22): the reference's "kinetic glass" system. Supersedes kit 1 (R5).
 * Every hex below is converted from the reference's oklch value (src/styles.css :root in
 * reference-web/grace-glow-grounds); the conversion is recorded in README.md §2.
 * Contrast for every pair is computed by tools/kitcheck.py and recorded in README.md §2.
 * ⛔ Volt is never text, a line, a border or a stroke on a light surface (1.06:1 on frost).
 *    Components never read --volt for those roles; they read the surface-scoped --accent-*
 *    tokens below. On a light surface --accent-text is cool-3 (8.20:1), as the reference does.
 * ⛔ No green hue, anywhere. Volt is HSL hue 67.9°, 2.1° outside the 70–170° band (arm 2).
 * ⛔ No second accent hue. */

:root {
  /* ── primitives (oklch → sRGB hex, README §2) ─────────────── */
  --ink:     #040915;  /* oklch(0.14 0.03 265) — the ground; primary text on light */
  --cool-1:  #0B152C;  /* oklch(0.20 0.05 265) — dark band                          */
  --cool-2:  #1B2A49;  /* oklch(0.29 0.06 263) — gradient mid                        */
  --cool-3:  #314168;  /* oklch(0.38 0.07 267) — gradient light; accent TEXT on light */
  --volt:    #DDF924;  /* oklch(0.93 0.21 118) — the one accent, HSL hue 67.9°       */
  --frost:   #EDF2F9;  /* oklch(0.96 0.01 255) — light surface; primary text on dark */
  --frost-2: #DFE9F5;  /* oklch(0.93 0.02 255) — light band, gradient end            */

  /* Secondary text. The reference writes these as frost/70 and cool-2/70 (alpha). An alpha text
   * colour has no contrast of its own — it depends on what is under it — so the kit sets SOLID
   * values that pass on the lightest ground they are used on (README §2). */
  --mist:  #B8C2D3;    /* secondary text on dark: 5.60 on cool-3, 11.09 on ink        */
  --slate: #45526C;    /* secondary text on light: 6.39 on frost-2 (cool-2 80% on frost) */

  /* Glass. Translucent fills over the dark ground; the rendered contrast audit samples the pixels
   * under each text run, so these are measured as composited, never as the literal. */
  --glass-fill-a: rgba(255, 255, 255, 0.16);
  --glass-fill-b: rgba(255, 255, 255, 0.05);
  --glass-edge:   rgba(255, 255, 255, 0.18);   /* decorative edge; a control's edge uses --edge */
  --glass-light-fill: rgba(255, 255, 255, 0.70);
  --glass-light-edge: rgba(27, 42, 73, 0.12);  /* cool-2 at 12%, decorative */
  --shadow-deep: rgba(4, 9, 21, 0.50);         /* ink at 50% */

  /* Decoration only (blurred shapes, diagonal rules). The contrast audit renders them and measures
   * the text on top. ⛔ NO TRANSLUCENT VOLT: volt at 10–20% over the cool ground composites to hue
   * 78°–142° (measured, README §2) — green, though volt itself passes at 67.9°. The reference's
   * volt washes are therefore frost washes here; volt decorates only as an OPAQUE line. */
  --deco-frost-6: rgba(237, 242, 249, 0.06);
  --deco-frost-10: rgba(237, 242, 249, 0.10);
  --deco-cool3-40: rgba(49, 65, 104, 0.40);

  /* Decorative hairlines. Non-informational (table rules). Anything that must be SEEN to be
   * used (an input edge, a focus ring) uses a ≥3:1 token instead — see --edge below. */
  --hairline-on-dark:  rgba(237, 242, 249, 0.12);
  --hairline-on-light: rgba(27, 42, 73, 0.12);

  /* ── type ───────────────────────────────────────────────── */
  --font-display: "Anton", Impact, "Arial Narrow", system-ui, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --w-regular: 400;
  --w-medium:  500;
  --w-semibold: 600;
  --w-bold: 700;

  /* Body 16px (the reference's text-base). Display sizes are the reference's. rem = 16px. */
  --fs-label:   0.75rem;   --lh-label:   1.4;    /* 12px — uppercase eyebrows, field labels */
  --fs-caption: 0.875rem;  --lh-caption: 1.5;    /* 14px — helper text, notes               */
  --fs-body:    1rem;      --lh-body:    1.65;   /* 16px — body, source list, table basis    */
  --fs-lead:    1.0625rem; --lh-lead:    1.65;   /* 17px — hero standfirst                   */
  --fs-h3:      1.5rem;    --lh-h3:      1.05;   /* 24px Anton — card titles                 */
  --fs-h2:      clamp(2.5rem, 2rem + 2.2vw, 3.75rem); --lh-h2: 0.9;   /* 40→60px Anton     */
  --fs-h1:      clamp(3.25rem, 8vw, 7rem); --lh-h1: 0.86;             /* 52→112px Anton    */
  --fs-figure:  clamp(4.5rem, 3.4rem + 4.4vw, 6rem); --lh-figure: 1;  /* block 6, 72→96px  */
  --fs-table-figure: 1.875rem;  /* 30px — price figures, Inter tabular (README §3)            */

  --tracking-label: 0.2em;   /* uppercase labels only */
  --tracking-display: 0.01em;

  /* ── space (4px base) ───────────────────────────────────── */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;   --s-7: 3rem;    --s-8: 4rem; --s-9: 6rem;
  --measure: 38rem;          /* prose line length */
  --page-max: 80rem;         /* the reference's max-w-7xl */
  --target-min: 44px;        /* WCAG 2.5.5 target floor */
  --radius-sm: 12px;         /* fields, chips   (rounded-xl)  */
  --radius-md: 16px;         /* inner panel     (rounded-2xl) */
  --radius-lg: 24px;         /* cards, tables   (rounded-3xl) */
  --radius-pill: 999px;      /* buttons         (rounded-full) */
  --tilt: 4deg;              /* hero panel, ≥ 1024 px only (@cdo ruling under R12–R14) */
  --diag: -12deg;            /* the diagonal rules */
}

/* ── surfaces: the only place accent roles are defined ───── */
.surface-dark {
  --bg:        var(--ink);
  --ink-1:     var(--frost);
  --ink-2:     var(--mist);
  --hairline:  var(--hairline-on-dark);
  --edge:      var(--mist);        /* input edge: ≥ 3:1 on every dark ground (README §2) */
  --focus:     var(--volt);        /* focus ring, 8.46 on cool-3 */
  --accent-text: var(--volt);
  --accent-line: var(--volt);
  --accent-fill:    var(--volt);
  --on-accent-fill: var(--ink);
  --field-bg: var(--cool-1);       /* input fill */
  background-color: var(--bg);
  color: var(--ink-1);
}

.surface-light {
  --bg:        var(--frost);
  --ink-1:     var(--ink);
  --ink-2:     var(--slate);
  --hairline:  var(--hairline-on-light);
  --edge:      var(--slate);       /* input edge, 6.39 */
  --focus:     var(--cool-3);      /* focus ring, 8.20 */
  /* No volt text or line on a light surface. The accent in text is cool-3. Volt is FILL ONLY,
   * with ink on it (16.73). */
  --accent-text: var(--cool-3);
  --accent-line: var(--cool-3);
  --accent-fill:    var(--volt);
  --on-accent-fill: var(--ink);
  --field-bg: var(--frost);
  background-color: var(--bg);
  color: var(--ink-1);
}

/* 1MWatt base — type, figure style, focus, decorative motion. Reads tokens.css; no colour literals. */

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

html {
  font-family: var(--font);
  font-size: 100%;
  /* Figures: tabular + lining everywhere, not only in tables. Inter's default figures are
   * proportional (measured: 0 = 1292 units, 1 = 833), so "tnum" is load-bearing here, not a
   * restatement. Anton gets its tnum from the kit's subset (README §3). */
  font-feature-settings: "tnum" 1, "lnum" 1, "kern" 1;
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--w-regular);
}

/* Display: Anton, uppercase by CSS. The words stay as the copy writes them ("Make it. Don't rent
 * it."); text-transform changes only how they are drawn, so copy fidelity (p3) still reads the copy. */
h1, h2, h3, .display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }

p { margin: 0 0 var(--s-4); max-width: var(--measure); }
strong, b { font-weight: var(--w-semibold); color: var(--ink-1); }
small, .caption { font-size: var(--fs-caption); line-height: var(--lh-caption); }
.lead { font-size: var(--fs-lead); line-height: var(--lh-lead); }
.ink-2 { color: var(--ink-2); }
.accent { color: var(--accent-text); }

/* Eyebrow / label — uppercase, tracked, small. */
.label {
  font-family: var(--font);
  font-size: var(--fs-label);
  line-height: var(--lh-label);
  font-weight: var(--w-semibold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-2);
}

/* A figure read as a figure: counters. Anton, tabular (kit subset). */
.figure {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-figure);
  line-height: var(--lh-figure);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1;
}

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

/* Focus: always visible, never removed. Volt on dark, cool-3 on light (surface-scoped). */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ── Decorative motion (@cdo ruling under R12–R14) ──────────────────────────────
 * Allowed: one entrance rise, and a slow drift of the blurred shapes. CSS only — nothing decorative
 * uses requestAnimationFrame, so arm 6 still means what it says. Both are REMOVED (not shortened)
 * under reduced motion: a finished animation with fill "both" is still an animation. */
@keyframes mw-drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(40px, -30px, 0) rotate(6deg); }
}
@keyframes mw-drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-50px, 24px, 0) rotate(-5deg); }
}
/* Transform only. The reference also fades from opacity 0 — NOT built: an element at opacity 0 is
 * not a largest-contentful-paint candidate, so the headline and hero dropped out of LCP (measured:
 * Firefox 768 px took the nav wordmark image; Chromium took block 2's heading). Arm 9 caught it. */
@keyframes mw-rise {
  from { transform: translateY(24px); }
  to { transform: translateY(0); }
}
.drift-a { animation: mw-drift-a 14s ease-in-out infinite; }
.drift-b { animation: mw-drift-b 18s ease-in-out infinite; }
.rise { animation: mw-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.15s; }
.rise-3 { animation-delay: 0.28s; }

/* Reduced motion: no animation and no transition, anywhere. NOT the common "0.01ms" idiom: a
 * transition-duration on every element, with transition-property defaulting to `all`, CREATES a
 * transition on every property change that had none — measured 2026-09-22, a colour change was
 * still unfinished when read, in a headless page that paints no frames. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* 1MWatt components — kit 2 (R13). Only what the copy uses (spec §2.5). Reads surface tokens; no literals.
 * Volt appears here only through --accent-fill (a fill, legal on both surfaces, always with ink on it)
 * and --accent-text / --accent-line, which are volt on .surface-dark and cool-3 on .surface-light.
 * So a component cannot put volt text or a volt line on a light surface by construction. */

/* ── Logo lockup (R15): vortex icon + 1MWATT + tagline, after the reference's nav (dfd5e20). Live text,
 * so the rendered audits measure it. Tagline: the reference's 8.5 px at frost/45 is 2.9:1 and too small
 * to read; the kit sets it in mist (≥ 5.6:1 on every dark ground) at 10 px (README §4). */
.lockup { display: inline-flex; align-items: center; gap: 12px; min-height: var(--target-min); color: var(--ink-1); text-decoration: none; }
.lockup__icon { width: 40px; height: 40px; flex: none; display: block; }
.lockup__icon > img { width: 100%; height: 100%; display: block; }
.lockup__text { display: flex; flex-direction: column; line-height: 1; }
.lockup__word { font-family: var(--font-display); font-size: 22px; line-height: 1; letter-spacing: -0.01em; text-transform: uppercase; }
.lockup__accent { color: var(--accent-text); }
.lockup__tag { margin-top: 4px; font-size: 10px; line-height: 1; font-weight: var(--w-semibold); letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.lockup__word { white-space: nowrap; }
/* Operator, 2026-09-23: the tagline is not shown on small screens (≤ 40rem, the kit's phone breakpoint;
 * it also stops fitting beside the nav button there: 390 px overflowed by 2 px, 320 px by 48 px). */
@media (max-width: 40rem) { .lockup__tag { display: none; } }
/* The icon file keeps the reference's 1024 frame: the artwork is 79% of it, so a 40 px box shows ~32 px of icon. */

/* ── Glass surfaces ─────────────────────────────────────────── */
.glass {
  background: linear-gradient(135deg, var(--glass-fill-a), var(--glass-fill-b));
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.glass-light {
  background: var(--glass-light-fill);
  border: 1px solid var(--glass-light-edge);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.card { border-radius: var(--radius-lg); padding: var(--s-6) 1.75rem; }
.card h3 { margin-top: var(--s-5); }
.card p { margin-top: var(--s-3); color: var(--ink-2); font-size: var(--fs-body); }
.card p strong { color: var(--ink-1); }
/* Numbered tile (block 4 cards): ink on a volt fill, 16.73. */
.tile-num {
  display: inline-grid; place-items: center; width: 3rem; height: 3rem;
  border-radius: var(--radius-sm);
  background: var(--accent-fill); color: var(--on-accent-fill);
  font-family: var(--font-display); font-size: 1.25rem; line-height: 1;
}

/* Eyebrow pill with a volt dot (hero). The dot is a fill. */
.pill-label {
  display: inline-flex; align-items: center; gap: var(--s-2);
  border-radius: var(--radius-pill); padding: 0.375rem 1rem;
  font-size: var(--fs-label); line-height: var(--lh-label); font-weight: var(--w-semibold);
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-1);
}
.pill-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-fill); }

/* ── Price table (block 2) ────────────────────────────────────
 * Copy note 1 (binding): real table, tabular figures, decimal-aligned, and the BASIS AT THE SAME
 * SIZE AND WEIGHT AS THE NUMBER — the basis is the claim, not a caption. So the reference's big
 * display figure with a small grey basis is NOT built: figure, unit, market and basis are one size,
 * one weight, one colour (README §7, gap 1). Figures are Inter tabular (Anton's display figures are
 * the wrong voice for a data cell, and the brief sets table figures in Inter).
 * Uniform row rules and row height: nothing groups the two UK rows against the US row, and
 * nothing draws the eye to the gap between 24.14 and 17.47 (different CCL bases). */
.table-glass { border-radius: var(--radius-lg); overflow: hidden; }
.price-table {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--font);
  font-weight: var(--w-medium);
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--ink-1);
  font-variant-numeric: tabular-nums lining-nums;
}
.price-table th, .price-table td {
  padding: var(--s-5) var(--s-4) var(--s-5) 0;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: baseline;
  font-weight: inherit;
}
.price-table tr > :first-child { padding-left: 1.75rem; }
.price-table tr > :last-child { padding-right: 1.75rem; }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table thead th {
  padding-top: var(--s-4); padding-bottom: var(--s-4);
  font-size: var(--fs-label);
  line-height: var(--lh-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: var(--w-semibold);
  color: var(--ink-2);
}
.price-table .num  { text-align: right; padding-right: var(--s-2); white-space: nowrap; }
.price-table .unit { padding-left: 0; white-space: nowrap; }
.price-table tbody th { white-space: nowrap; }
.price-table sup { font-size: 0.65em; line-height: 0; }

/* Narrow screens: no horizontal scroll at any width. Below 40rem each row stacks — label, then
 * figure + unit, then the basis — and the basis keeps the figure's size and weight. The figure sits
 * in a fixed right-aligned box, so the decimal points still share one x across rows. Explicit ARIA
 * roles in the markup keep the table semantics when display changes. */
@media (max-width: 40rem) {
  .price-table, .price-table tbody, .price-table tr { display: block; }
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .price-table tr {
    display: grid;
    grid-template-columns: 2.9em auto 1fr;   /* 2.9em ≥ "00.00" in Inter 500 tabular */
    grid-template-areas: "label label label" "num unit ." "basis basis basis";
    column-gap: var(--s-2);
    padding: var(--s-4) var(--s-5);
    border-bottom: 1px solid var(--hairline);
  }
  .price-table tbody tr:last-child { border-bottom: 0; }
  .price-table th, .price-table td,
  .price-table tr > :first-child, .price-table tr > :last-child { display: block; padding: 0; border: 0; }
  .price-table tbody th { grid-area: label; white-space: normal; margin-bottom: var(--s-1); }
  .price-table .num  { grid-area: num; padding: 0; }
  .price-table .unit { grid-area: unit; }
  .price-table .basis { grid-area: basis; margin-top: var(--s-1); }
}

/* ── Source list — page furniture. Body size, never collapsed, above the footer. ── */
.sources { font-size: var(--fs-body); line-height: var(--lh-body); }
.sources table { border-collapse: collapse; width: 100%; }
.sources th, .sources td {
  text-align: left; vertical-align: top;
  padding: var(--s-5) var(--s-4) var(--s-5) 0;
  border-bottom: 1px solid var(--hairline);
  font-weight: var(--w-regular);
  color: var(--ink-1);
}
.sources tr > :first-child { padding-left: 1.75rem; }
.sources tr > :last-child { padding-right: 1.75rem; }
.sources tbody tr:last-child > * { border-bottom: 0; }
.sources thead th {
  padding-top: var(--s-4); padding-bottom: var(--s-4);
  font-size: var(--fs-label); letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: var(--ink-2); font-weight: var(--w-semibold);
}
.sources td:first-child {
  font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1;
  color: var(--accent-text); width: 4.5rem;
}
@media (max-width: 40rem) {
  .sources table, .sources tbody, .sources tr, .sources td { display: block; }
  .sources thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sources tr { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: var(--s-3); padding: var(--s-5); border-bottom: 1px solid var(--hairline); }
  .sources tbody tr:last-child { border-bottom: 0; }
  .sources td, .sources tr > :first-child, .sources tr > :last-child { border: 0; padding: 0; grid-column: 2; }
  .sources td:first-child { grid-column: 1; grid-row: 1 / span 3; width: auto; }
  .sources td + td + td { margin-top: var(--s-1); }
}

/* ── Static counter (block 6). A fact, not an effect: no transition, no animation, ever. ── */
.counter { display: block; transition: none; animation: none; }
.counter .counter__label { display: block; margin-bottom: var(--s-3); }
.counter .figure { display: block; color: var(--accent-text); }

/* Volt fill chip — the only way the accent reaches a light surface. */
.chip {
  display: inline-block;
  background: var(--accent-fill);
  color: var(--on-accent-fill);
  padding: 0.1em 0.6em;
  border-radius: var(--radius-pill);
  font-weight: var(--w-semibold);
}

/* ── Buttons ── ink on volt (16.73), both surfaces. Pill. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--target-min); min-width: var(--target-min);
  padding: 0.875rem 1.75rem;
  font: inherit; font-size: var(--fs-caption); font-weight: var(--w-bold); line-height: 1.2;
  border: 0; border-radius: var(--radius-pill);
  background: var(--accent-fill); color: var(--on-accent-fill);
  text-decoration: none; cursor: pointer;
}
.btn:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.btn .arrow { display: inline-block; transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn[disabled], .btn[aria-disabled="true"] { cursor: not-allowed; }
/* Secondary: outline pill. The edge is --edge (≥3:1), not the reference's frost/30 (≈2.3:1). */
.btn-ghost {
  background: transparent; color: var(--ink-1);
  box-shadow: inset 0 0 0 1px var(--edge);
  font-weight: var(--w-semibold);
}
/* Glass pill (nav). Frost text on glass over ink. */
.btn-glass { background: linear-gradient(135deg, var(--glass-fill-a), var(--glass-fill-b)); color: var(--ink-1); box-shadow: inset 0 0 0 1px var(--edge); font-weight: var(--w-semibold); }

/* Text control (e.g. hero "Replay"): looks like a link, sized like a target. */
.btn-text {
  display: inline-flex; align-items: center; min-height: var(--target-min);
  padding: 0; border: 0; background: none; font: inherit; color: inherit;
  text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer;
}

/* ── Form ── */
.form { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.form > .field--wide, .form > .check, .form > .form-actions, .form > .form-status, .form > .form-note { grid-column: 1 / -1; }
@media (max-width: 40rem) { .form { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: var(--s-2); align-content: start; }
.field > label {
  font-size: var(--fs-label); line-height: var(--lh-label); font-weight: var(--w-semibold);
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-2);
}
.field .helper { font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--ink-2); }
.input, .select {
  min-height: var(--target-min);
  width: 100%;
  padding: var(--s-3) var(--s-4);
  font: inherit; font-size: var(--fs-caption);
  color: var(--ink-1);
  background: var(--field-bg);
  border: 1px solid var(--edge);        /* ≥3:1 on its surface — an edge you must see to use */
  border-radius: var(--radius-sm);
}
.select option { color: var(--ink); background: var(--frost); }
.input::placeholder { color: var(--ink-2); opacity: 1; }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-width: 2px; border-color: var(--ink-1); }

.check { display: grid; grid-template-columns: var(--target-min) 1fr; align-items: start; gap: 0 var(--s-2); }
.check input { width: 20px; height: 20px; margin: 12px; accent-color: var(--accent-fill); }
.check label { font-weight: var(--w-semibold); padding-top: 10px; font-size: var(--fs-caption); }
.check .helper { grid-column: 2; font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--ink-2); }

/* Error: no red, no second hue. A labelled message with a heavy rule in the ground's ink.
 * The word "Error:" is part of the message so meaning never rests on colour. */
.msg-error {
  margin: 0;
  border-left: 4px solid var(--ink-1);
  padding: var(--s-1) 0 var(--s-1) var(--s-3);
  font-size: var(--fs-caption);
  font-weight: var(--w-medium);
}
.msg-error::before { content: "Error: "; font-weight: var(--w-semibold); }

/* Status panel (success / server states). Glass, ink rule. */
.msg-status {
  background: var(--glass-fill-b);
  border-left: 4px solid var(--ink-1);
  border-radius: var(--radius-sm);
  padding: var(--s-4);
  font-size: var(--fs-caption);
}

/* ── Footer ── */
.footer { font-size: var(--fs-caption); line-height: var(--lh-caption); }
.footer a:not(.btn) { color: inherit; }

/* ── Chart primitives (for later: yield curve, load vs generation, before/after bill) ──
 * SVG classes. One series may take the accent: volt on a dark surface, cool-3 on a light one
 * (--accent-line). The others are ink-2 and dashed. */
.chart { font-size: var(--fs-caption); font-variant-numeric: tabular-nums lining-nums; }
.chart .axis      { stroke: var(--ink-2); stroke-width: 1; fill: none; }
.chart .axis-text { fill: var(--ink-2); dominant-baseline: central; }  /* centre ON the gridline */
.chart .grid      { stroke: var(--hairline); stroke-width: 1; fill: none; }
.chart .series    { stroke: var(--ink-2); stroke-width: 1.5; fill: none; stroke-dasharray: 4 3; }
.chart .series-key { stroke: var(--accent-line, var(--ink-1)); stroke-width: 2.5; fill: none; }
.chart .annot     { fill: var(--ink-1); font-weight: var(--w-medium); }
.chart .annot-line { stroke: var(--ink-1); stroke-width: 1; }

/* On a light surface a volt fill is only 1.06:1 against its ground, so the button's shape would
 * rest on hue alone. A 1px ink edge gives it a boundary. On dark it is not needed (16.73). */
.surface-light .btn:not(.btn-ghost), .surface-light .chip, .surface-light .tile-num { box-shadow: inset 0 0 0 1px var(--ink); }

/* 1MWatt page layout — kit 2 (R13), after the operator's reference (reference-web/grace-glow-grounds).
 * The kit (design-kit/*.css) is prepended by build.mjs; this file only places things. No colour
 * literals here — kitcheck scans dist/ and would refuse them; colours come from tokens. */

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
.wrap { max-width: var(--page-max); margin: 0 auto; padding-left: var(--s-5); padding-right: var(--s-5); }
@media (max-width: 40rem) { .wrap { padding-left: var(--s-4); padding-right: var(--s-4); } }

/* ── Nav ── */
.site-header { position: relative; z-index: 3; padding-top: 1.75rem; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.nav__cta { white-space: nowrap; flex: none; }
@media (max-width: 24rem) { .nav__cta { padding-left: 1rem; padding-right: 1rem; } }

.nav__links { display: flex; gap: 2.25rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { display: inline-flex; align-items: center; min-height: var(--target-min); font-size: var(--fs-caption); font-weight: var(--w-medium); color: var(--ink-2); text-decoration: none; }
.nav__links a:hover { color: var(--ink-1); text-decoration: underline; }
@media (max-width: 48rem) { .nav__links { display: none; } }

/* ── Decoration: blurred shapes and diagonal rules (aria-hidden, behind content) ── */
.deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(64px); }
.blob--cool { left: -6rem; top: 2.5rem; width: 24rem; height: 24rem; background: var(--deco-cool3-40); }
.blob--soft { right: -8rem; top: 10rem; width: 28rem; height: 28rem; background: var(--deco-frost-6); }
.blob--right { left: auto; right: -6rem; }
.rule { position: absolute; top: 0; height: 120%; transform: rotate(var(--diag)); transform-origin: top center; }
.rule--wide { left: 33.333%; width: 4rem; background: var(--deco-frost-6); }
.rule--volt { left: 42%; width: 3px; background: var(--volt); }   /* opaque: hue 67.9°, never a green composite */
.rule--thin { right: 25%; width: 0.25rem; background: var(--deco-frost-10); }
.rule--at-quarter { right: auto; left: 25%; }
.rule--at-two-thirds { left: auto; right: 33.333%; width: 2.5rem; }
/* Hero: the diagonals run in the panel column, not through the text (an opaque volt line under
 * text would fail contrast). Below 64rem the text is full width, so the hero rules are not drawn. */
.hero-band .rule--wide { left: 55%; }
.hero-band .rule--volt { left: 64%; }
.hero-band .rule--thin { right: 12%; }
@media (max-width: 63.99rem) { .hero-band .rule { display: none; } }

/* ── Block 1: the hero band ── */
.hero-band {
  position: relative; overflow: hidden;
  background-color: var(--cool-2);
  background-image: radial-gradient(120% 90% at 15% -10%, var(--cool-3) 0%, var(--cool-2) 42%, var(--cool-1) 78%, var(--ink) 100%);
}
.block-1 {
  position: relative; z-index: 1;
  display: grid; gap: var(--s-7); align-items: center;
  grid-template-columns: minmax(0, 1fr);
  padding-top: var(--s-8); padding-bottom: var(--s-8);
}
@media (min-width: 64rem) {
  .block-1 { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); padding-top: var(--s-9); padding-bottom: var(--s-9); }
}
.block-1 .pill-label { margin: 0; }
.block-1 h1 { margin-top: var(--s-5); }
.block-1 .lead { margin-top: var(--s-5); max-width: 28rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); margin-top: 2.25rem; }

/* The approved hero (R6), restyled 82021fd8, in the reference's glass panel (R12). Tilt only at
 * ≥ 1024 px. The counter tilts with the panel: @cdo cdo-review-hero-2 (legible at 1440; no counter-rotation). */
.hero-col { min-width: 0; position: relative; }
.hero-panel { border-radius: var(--radius-lg); padding: var(--s-3); box-shadow: 0 25px 50px -12px var(--shadow-deep); }
.hero-panel__inner { border-radius: var(--radius-md); overflow: hidden; }
@media (min-width: 64rem) {
  .hero-panel { transform: rotate(var(--tilt)); }
}

/* ── The diagonal divider into the light band ── */
.diagonal { position: relative; height: 4rem; margin-top: -0.5rem; background: var(--ink); }
.diagonal::after { content: ""; position: absolute; inset: 0; background: var(--frost); clip-path: polygon(0 100%, 100% 20%, 100% 100%); }

/* ── Blocks 2 + 3: the light band ── */
.price-band { background-image: linear-gradient(180deg, var(--frost) 0%, var(--frost-2) 100%); padding-top: 2.5rem; padding-bottom: var(--s-9); }
.price-band__grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--s-6); }
.block-2 { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; }
.block-2 > * { grid-column: 1 / -1; }
.block-2__head { max-width: 42rem; }
.block-2__head .label { margin: 0 0 var(--s-3); }
.block-2 .table-glass { margin-top: var(--s-7); }
.block-2__para, .block-3 p { margin-top: 2.5rem; margin-bottom: 0; font-size: 0.9375rem; color: var(--ink-2); }
.block-2__para strong, .block-3 strong { color: var(--ink-1); }
@media (min-width: 48rem) {
  .price-band__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .block-2 { grid-row: 1 / span 3; grid-template-rows: subgrid; }
  .block-2 > .block-2__para { grid-column: 1; }
  .block-3 { grid-column: 2; grid-row: 3; }
}
.price-table__price-head { text-align: right; padding-right: var(--s-6) !important; }
@media (max-width: 40rem) { .price-table__price-head { text-align: left; } }

/* Source markers: a link, sized as a target without moving the line. On light: cool-3. */
a.src { text-decoration: none; padding: 0 0.1em; color: var(--accent-text); }
a.src:hover sup { text-decoration: underline; }
a.src sup { font-size: 0.7em; line-height: 0; font-weight: var(--w-semibold); }

/* ── Dark bands (blocks 4, 5, 6) ── */
.band { position: relative; overflow: hidden; padding-top: var(--s-9); padding-bottom: var(--s-9); }
.band__inner { position: relative; z-index: 1; }
.band--cool { background-color: var(--cool-1); }
.band--index { background-color: var(--ink); background-image: radial-gradient(90% 70% at 80% 0%, var(--cool-2) 0%, var(--ink) 70%); }
.band .label { margin: 0 0 var(--s-3); }

.cards { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); margin-top: 3.5rem; }
@media (min-width: 48rem) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card p { margin-bottom: 0; }
.block-4__close { margin-top: 2.5rem; margin-bottom: 0; max-width: 48rem; color: var(--ink-2); }

.block-5__grid { display: grid; gap: var(--s-7); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 64rem) { .block-5__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.block-5__text h2 { margin-bottom: var(--s-5); }
.block-5__text p { max-width: 28rem; }
.block-5__form h3 { margin: 0 0 var(--s-2); }
.form-standfirst { color: var(--ink-2); font-size: var(--fs-caption); margin-bottom: var(--s-5); }
.form-status:empty { display: none; }
.form-note { font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--ink-2); margin: 0; }
.form-note a { color: var(--ink-1); }
.btn--block { width: 100%; }
.btn--lg { padding: 1rem 2rem; }

.block-6__grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 64rem) { .block-6__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.block-6__title { margin: 0 0 var(--s-5); }
.block-6 .counter { margin: 0; }
.block-6 p { margin: 0; max-width: none; }

/* ── Sources on light ── */
.sources.band { background-color: var(--frost); }
.sources h2 { margin-bottom: var(--s-7); }
.sources cite, .site-footer cite { font-style: italic; }

.placeholder { font-weight: var(--w-medium); }

/* ── Footer ── */
.site-footer { position: relative; overflow: hidden; background-color: var(--ink); }
.footer__top { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5); padding-top: 3.5rem; padding-bottom: 3.5rem; }
.footer__line { font-size: 1.875rem; line-height: 1.1; }
.footer__top p { margin: var(--s-2) 0 0; max-width: none; color: var(--ink-2); }
.footer__top p strong { color: var(--ink-1); }
.footer__sources { position: relative; z-index: 1; border-top: 1px solid var(--hairline); }
.footer__sources p { margin: 0; max-width: none; padding-top: 1.25rem; padding-bottom: 1.25rem; font-size: var(--fs-label); line-height: var(--lh-caption); }

/* ── Privacy page ── */
.page-header { background-color: var(--ink); padding-bottom: 1.75rem; }
.prose { max-width: var(--measure); padding-top: var(--s-8); padding-bottom: var(--s-9); }
.prose h1 { font-size: var(--fs-h2); line-height: var(--lh-h2); margin-bottom: var(--s-6); }
.prose h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); margin: var(--s-7) 0 var(--s-3); }
.prose p { color: var(--ink-1); }
.prose table { border-collapse: collapse; width: 100%; margin: var(--s-4) 0; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: var(--s-3) var(--s-4) var(--s-3) 0; border-bottom: 1px solid var(--hairline); }
.prose thead th { font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-2); font-weight: var(--w-semibold); border-bottom-color: var(--ink-1); }
.prose a { color: var(--accent-text); }
@media (max-width: 40rem) {
  .prose table, .prose tbody, .prose tr, .prose td { display: block; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .prose tr { padding: var(--s-3) 0; border-bottom: 1px solid var(--hairline); }
  .prose td { border: 0; padding: var(--s-1) 0; }
  .prose td:first-child { font-weight: var(--w-semibold); }
}

/* 1MWatt nav vortex (R16) — @animation. CSS only; no JS.
   .mw-vortex--live on the NAV lockup only. The same markup without that class is static.
   After 6 s (the hero's 0 → 4 MW is over), the blades make ONE clockwise turn in 4.8 s,
   easing in and out, then rest: under 5 s of motion, so no pause control is needed (WCAG 2.2.2).
   At rest the icon is @designer's vortex.svg. The turn twin (4 px keyline) replaces it for exactly
   the active interval, in ONE step each way (fill-mode none: outside the interval the base styles
   apply, twin hidden, rest shown). No fade: half-transparent volt shows the ground through it (a
   two-way crossfade put 40% of the icon in the green band), and even a fade of the twin over the
   rest image leaves dark volt pixels that 8-bit rounding pushes past 70° (WebKit: 0.63%).
   Cost: the keyline goes 2 → 4 px as the turn starts and back as it ends, in one frame. */
.mw-vortex{position:relative;display:block;width:100%;height:100%}
.mw-vortex>img{position:absolute;inset:0;width:100%;height:100%;display:block}
.mw-vortex__turn{opacity:0}
@media (prefers-reduced-motion:no-preference){
.mw-vortex--live .mw-vortex__turn{transform-origin:50.0098% 49.6875%;animation:mw-vortex-turn 4.8s cubic-bezier(.45,0,.25,1) 6s 1 none}
.mw-vortex--live .mw-vortex__rest{animation:mw-vortex-rest 4.8s linear 6s 1 none}
}
@keyframes mw-vortex-turn{from{transform:rotate(0deg);opacity:1}to{transform:rotate(360deg);opacity:1}}
@keyframes mw-vortex-rest{from,to{opacity:0}}

/* Nav cyclone: LOOPS CONTINUOUSLY (operator decision, 2026-09-23, via @coo). This overrides @animation's
   one-shot in src/vortex/mw-vortex.css, which stays vendored byte-for-byte (its manifest still matches).
   - No delay. On a loop a delay only postpones the first cycle, and the 6 s wait read as "static".
   - Linear: no seam and no surge at the turn boundary. One turn every 4.8 s, as before.
   - While it spins, the 4 px keyline twin shows (the twin @cdo accepted for the turn) and the 2 px rest
     icon is hidden. Opacity is set, not animated, so there is no crossfade (the green-band finding).
   - Reduced motion: every rule here is inside no-preference, and base.css removes every animation under
     reduce, so the rest icon shows, static. hV proves both states by name.
   ⚠ WCAG 2.2.2: motion that lasts more than 5 s needs a pause control. This loop has none. Recorded. */
@media (prefers-reduced-motion:no-preference){
.mw-vortex--live .mw-vortex__turn{opacity:1;transform-origin:50.0098% 49.6875%;animation:mw-vortex-spin 4.8s linear 0s infinite none}
.mw-vortex--live .mw-vortex__rest{opacity:0;animation:none}
}
@keyframes mw-vortex-spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
