/* ==========================================================================
   Compute Markets: site stylesheet
   Self-hosted fonts only. No third-party requests. No inline styles (CSP).
   ========================================================================== */

/* ---------- Fonts (SIL OFL 1.1, see assets/fonts/*.txt) ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Ink (dark) */
  --ink-950: #050B16;
  --ink-900: #08111F;
  --ink-850: #0C1729;
  --ink-800: #111E34;
  --ink-700: #1A2944;
  --fg-d: #EAF0F7;
  --fg-d-2: #B4C0D3;
  --fg-d-3: #8D9AB0;
  --line-d: rgba(180, 200, 230, 0.14);
  --line-d-strong: rgba(180, 200, 230, 0.28);

  /* Paper (light) */
  --paper: #F4F1EA;
  --paper-2: #EBE6DB;
  --paper-3: #FBFAF7;
  --white: #FFFFFF;
  --fg: #0B1527;
  --fg-2: #3D4859;
  --fg-3: #566174;
  --line: rgba(11, 21, 39, 0.13);
  --line-strong: rgba(11, 21, 39, 0.3);
  /* Form-control boundaries: >= 3:1 on white and paper-3 (WCAG 1.4.11). --line-strong stays decorative. */
  --field-border: #7D8696;

  /* Accents: cyan = cash-settled, amber = physically delivered */
  --cash: #43C7D9;
  --cash-ink: #0A6C7C;
  --cash-soft: rgba(67, 199, 217, 0.14);
  --phys: #F0A847;
  --phys-ink: #8F5200;
  --phys-soft: rgba(240, 168, 71, 0.16);

  --error: #B42318;
  --error-d: #FF8A80;
  --success: #1E7A4C;
  --focus: #1F5FD6;
  --focus-d: #8CC2FF;

  /* Type */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout */
  --maxw: 1240px;
  --gutter: 16px;
  --radius: 6px;
  --radius-lg: 10px;
  --header-h: 72px;
  --header-h-compact: 60px;
  --section-y: clamp(72px, 9vw, 136px);
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ink-950);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--paper);
  font-feature-settings: "calt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
.site-nav ul, .mobile-menu ul, .site-footer__nav ul, .doc-toc ol, .timeline-steps ol { list-style: none; padding: 0; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
abbr[title] { text-decoration: none; cursor: help; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
/* Programmatic focus targets (main, form card, summaries) are not controls: no ring around whole blocks. */
main:focus-visible, .enquiry:focus-visible, [tabindex="-1"]:focus-visible { outline: none; }
::selection { background: rgba(67, 199, 217, 0.3); }

.visually-hidden {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important;
  white-space: nowrap !important; border: 0 !important;
}
.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.nw { white-space: nowrap; }
.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

/* Placeholders the client must fill: [like this] */
.ph {
  background: rgba(127, 127, 127, 0.14);
  border-bottom: 1px dashed currentColor;
  padding: 0 0.15em;
  border-radius: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* Small "indicative" tags */
.tbc {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.1em 0.6em;
  vertical-align: 0.15em;
  white-space: nowrap;
}

/* Dark contexts */
.section--ink, .site-header, .hero, .cred, .site-footer, .notice-strip, .enquiry__aside, .calc__out, .doc-hero, .page-404 {
  --focus: var(--focus-d);
}
.section--ink .tbc, .hero .tbc, .enquiry__aside .tbc, .calc__out .tbc, .site-footer .tbc { color: var(--fg-d-3); border-color: var(--line-d-strong); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 200;
  background: var(--paper);
  color: var(--fg);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.skip-link:focus { top: 12px; }

/* ---------- Notice strip ---------- */
.notice-strip {
  background: var(--ink-950);
  color: var(--fg-d-2);
  border-bottom: 1px solid var(--line-d);
  font-size: 0.8125rem;
  line-height: 1.45;
}
.notice-strip p { padding: 8px 0; }
.notice-strip strong { color: var(--fg-d); font-weight: 600; }
@media (max-width: 599px) { .notice-strip span { display: block; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.75rem 1.375rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn:hover { text-decoration: none; }
.btn--sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn--light { background: var(--paper); color: var(--fg); }
.btn--light:hover { background: var(--white); }
.btn--ghost { background: rgba(8, 17, 31, 0.25); color: var(--fg-d); border-color: rgba(234, 240, 247, 0.32); }
.btn--ghost:hover { border-color: var(--fg-d); background: rgba(8, 17, 31, 0.5); }
.btn--dark { background: var(--ink-900); color: var(--paper); }
.btn--dark:hover { background: var(--ink-700); }
.btn--outline { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--fg); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.link-btn {
  background: none; border: 0; padding: 0;
  color: inherit; font-weight: 550;
  text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px;
}
.link-btn:hover { text-decoration-thickness: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: var(--fg-d);
  background: rgba(8, 17, 31, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-d);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
  transition: min-height 0.2s ease;
}
.site-header.is-compact .site-header__inner { min-height: var(--header-h-compact); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fg-d);
  flex-shrink: 0;
}
.brand .mark { width: 28px; height: 28px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 1.0625rem; font-weight: 620; letter-spacing: -0.015em; }
.brand__endorse { font-size: 0.71875rem; color: var(--fg-d-3); letter-spacing: 0.01em; margin-top: 2px; }
.site-nav { display: none; margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a {
  display: block;
  padding: 8px 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-d-2);
  text-decoration: none;
  border-radius: 4px;
  position: relative;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--fg-d); }
.site-nav a.is-active { color: var(--fg-d); }
.site-nav a.is-active::after {
  content: "";
  position: absolute; left: 10px; right: 10px; bottom: 2px;
  height: 1px; background: var(--fg-d);
}
.site-header__cta { display: none; margin-left: auto; white-space: nowrap; }
.menu-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px 0 12px;
  background: none;
  border: 0;
  color: var(--fg-d);
  font-size: 0.875rem;
  font-weight: 550;
}
.menu-toggle__icon { position: relative; width: 22px; height: 14px; display: inline-block; }
.menu-toggle__icon span {
  position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}
.menu-toggle__icon span:first-child { top: 3px; }
.menu-toggle__icon span:last-child { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child { top: 6.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child { top: 6.5px; transform: rotate(-45deg); }
.mobile-menu {
  border-top: 1px solid var(--line-d);
  background: var(--ink-900);
  max-height: calc(100dvh - 60px);
  overflow-y: auto;
}
.mobile-menu nav { padding: 8px 0 24px; }
.mobile-menu li { border-bottom: 1px solid var(--line-d); }
.mobile-menu li a {
  display: block;
  padding: 14px 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--fg-d);
  text-decoration: none;
}
.mobile-menu .btn { margin-top: 20px; }

@media (min-width: 720px) {
  .site-header__cta { display: inline-flex; }
  .menu-toggle { margin-left: 8px; }
}
@media (min-width: 1280px) {
  .site-nav { display: block; }
  .site-header__cta { margin-left: 8px; }
  .menu-toggle, .mobile-menu { display: none !important; }
}
@media (min-width: 1280px) and (max-width: 1379px) {
  .site-header__inner { gap: 16px; }
  .site-nav ul { gap: 0; }
  .site-nav a { padding: 8px 8px; }
  .site-nav a.is-active::after { left: 8px; right: 8px; }
}
@media (min-width: 1380px) {
  .site-nav ul { gap: 8px; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section--paper { background: var(--paper); color: var(--fg); }
.section--paper-2 { background: var(--paper-2); color: var(--fg); }
.section--ink { background: var(--ink-900); color: var(--fg-d); }
.section--grid { overflow: hidden; }
.section--grid::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(180, 200, 230, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(180, 200, 230, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 70% 20%, #000 20%, transparent 75%);
  pointer-events: none;
}
.section--grid > .container { position: relative; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 20px;
}
.eyebrow span {
  color: var(--fg);
  padding-right: 12px;
  border-right: 1px solid var(--line-strong);
}
.section--ink .eyebrow, .enquiry__aside .eyebrow { color: var(--fg-d-3); }
.section--ink .eyebrow span { color: var(--fg-d); border-color: var(--line-d-strong); }
.eyebrow--phys span { color: var(--phys) !important; }

h2 {
  font-size: clamp(2rem, 1.35rem + 2.3vw, 3.25rem);
  line-height: 1.04;
  font-weight: 580;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
h3 { font-size: 1.1875rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.012em; }
.lede, .section-head__lede {
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 60ch;
  text-wrap: pretty;
}
.section--ink .lede, .section--ink .section-head__lede { color: var(--fg-d-2); }
.section-head {
  border-top: 1px solid var(--line-strong);
  padding-top: 22px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section--ink .section-head { border-color: var(--line-d-strong); }
.section-head h2 + .section-head__lede { margin-top: 20px; }
.section-head--split { display: grid; gap: 20px; }
@media (min-width: 960px) {
  .section-head--split {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 48px;
    align-items: start;
  }
  /* Eyebrow line (12px x 1.6) + its 20px margin: the lede starts level with the H2, and the
     eyebrow always sits directly under the section rule, however long the lede is. */
  .section-head--split .section-head__lede { justify-self: end; margin-top: calc(0.75rem * 1.6 + 20px); }
}
.footnote {
  margin-top: 28px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--fg-3);
  max-width: 90ch;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  color: var(--fg-d);
  background: var(--ink-900);
  padding-top: clamp(48px, 8vh, 104px);
  padding-bottom: clamp(32px, 4vw, 48px);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 17, 31, 0.78) 0%, rgba(8, 17, 31, 0.42) 34%, rgba(8, 17, 31, 0.62) 64%, rgba(8, 17, 31, 0.96) 100%),
    linear-gradient(90deg, rgba(8, 17, 31, 0.82) 0%, rgba(8, 17, 31, 0.35) 55%, rgba(8, 17, 31, 0.1) 100%);
}
.hero__inner { position: relative; }
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--line-d-strong);
  border-radius: 999px;
  background: rgba(8, 17, 31, 0.55);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-d);
}
@media (max-width: 479px) {
  .status-chip { font-size: 0.6875rem; letter-spacing: 0.03em; padding-right: 12px; gap: 8px; }
}
@media (max-width: 399px) {
  .status-chip { font-size: 0.625rem; letter-spacing: 0.02em; }
}
/* Static hollow ring = "pending". Deliberately not animated: a pulsing dot reads as "live". */
.status-chip__pulse {
  width: 9px; height: 9px; border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--fg-d);
  flex-shrink: 0;
}
.hero__title {
  margin-top: 28px;
  font-size: clamp(2.5rem, 1.3rem + 4.9vw, 5.5rem);
  line-height: 1;
  font-weight: 590;
  letter-spacing: -0.04em;
  max-width: 12.8em;
  text-wrap: balance;
}
.hero__title span { display: block; color: var(--fg-d-2); }
.hero__lede {
  margin-top: 28px;
  max-width: 62ch;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--fg-d-2);
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
@media (max-width: 479px) { .hero__actions .btn { width: 100%; } }

.index-strip {
  margin-top: clamp(40px, 6vh, 80px);
  border: 1px solid var(--line-d-strong);
  border-radius: var(--radius-lg);
  background: rgba(5, 11, 22, 0.62);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.index-strip__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-d);
}
.index-strip__title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--fg-d);
}
.index-strip__title .ph { color: var(--fg-d-2); }
.index-strip__flag { color: var(--fg-d-3); margin-left: 10px; }
.index-strip__flag::before { content: "·"; margin-right: 10px; }
.index-strip__unit { font-family: var(--font-mono); font-size: 0.75rem; color: var(--fg-d-3); letter-spacing: 0.04em; }
.index-strip__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.index-tile {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "ticker chg" "value value" "gpu gpu";
  align-items: baseline;
  gap: 2px 8px;
  padding: 16px 20px 18px;
  border-right: 1px solid var(--line-d);
  border-bottom: 1px solid var(--line-d);
}
.index-tile:nth-child(2n) { border-right: 0; }
.index-tile:nth-child(n+3) { border-bottom: 0; }
.index-tile__ticker { grid-area: ticker; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; color: var(--fg-d-2); }
.index-tile__value {
  grid-area: value;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg-d);
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.index-tile__gpu { grid-area: gpu; font-size: 0.8125rem; color: var(--fg-d-3); }
.index-tile__chg { grid-area: chg; font-family: var(--font-mono); font-size: 0.75rem; color: var(--fg-d-2); font-variant-numeric: tabular-nums; }
.index-tile__chg abbr { color: var(--fg-d-3); }
@media (max-width: 599px) {
  .index-tile { padding: 14px 16px 16px; }
  .index-tile__chg { white-space: nowrap; font-size: 0.6875rem; }
  .index-strip__head { padding: 14px 16px; }
  .index-strip__flag { display: block; margin-left: 0; }
  .index-strip__flag::before { content: none; }
  .index-strip__source { padding: 12px 16px 14px; }
}
.index-strip__source {
  padding: 12px 20px 14px;
  border-top: 1px solid var(--line-d);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--fg-d-3);
}
@media (min-width: 900px) {
  .index-strip__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .index-tile { border-bottom: 0; }
  .index-tile:nth-child(2n) { border-right: 1px solid var(--line-d); }
  .index-tile:last-child { border-right: 0; }
}

/* ---------- Credibility bar ---------- */
.cred {
  background: var(--ink-950);
  color: var(--fg-d);
  border-top: 1px solid var(--line-d);
  border-bottom: 1px solid var(--line-d);
}
.cred__list { display: grid; grid-template-columns: 1fr; }
.cred__list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-d);
}
.cred__list li:last-child { border-bottom: 0; }
.cred__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-d-3);
}
.cred__text { font-size: 0.9375rem; line-height: 1.45; color: var(--fg-d); }
@media (min-width: 720px) {
  .cred__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cred__list li { padding: 24px 24px 24px 0; }
  .cred__list li:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line-d); }
  .cred__list li:nth-child(-n+2) { border-bottom: 1px solid var(--line-d); }
  .cred__list li:nth-child(n+3) { border-bottom: 0; }
}
@media (min-width: 1100px) {
  .cred__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cred__list li { padding: 28px 24px; border-bottom: 0 !important; border-left: 1px solid var(--line-d); }
  .cred__list li:first-child { padding-left: 0; border-left: 0; }
  .cred__list li:last-child { padding-right: 0; }
}

/* ---------- Dots & tags ---------- */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot--cash { background: var(--cash); }
.dot--phys { background: var(--phys); }
.section--paper .dot--cash, .section--paper-2 .dot--cash, .form .dot--cash { background: var(--cash-ink); }
.section--paper .dot--phys, .section--paper-2 .dot--phys, .form .dot--phys { background: #C77A12; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid;
}
.tag--cash { color: var(--cash-ink); border-color: rgba(10, 108, 124, 0.4); background: rgba(10, 108, 124, 0.06); }
.tag--phys { color: var(--phys-ink); border-color: rgba(143, 82, 0, 0.4); background: rgba(199, 122, 18, 0.07); }

/* ---------- Contracts ---------- */
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-3);
}
.segmented input, .chips input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  margin: 0;
  pointer-events: none;
}
.segmented label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 550;
  color: var(--fg-2);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
  user-select: none;
}
.segmented label:hover { color: var(--fg); }
.segmented input:checked + label { background: var(--ink-900); color: var(--paper); }
.segmented input:checked + label .dot--cash { background: var(--cash); }
.segmented input:checked + label .dot--phys { background: var(--phys); }
.segmented input:focus-visible + label, .chips input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.seg-short { display: none; }
@media (max-width: 559px) {
  .segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .segmented label { justify-content: center; padding: 0 10px; font-size: 0.875rem; }
  .seg-long { display: none; }
  .seg-short { display: inline; }
}
.contracts__hint { margin-top: 14px; font-size: 0.8125rem; color: var(--fg-3); }

.gpu-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .gpu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1140px) { .gpu-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gpu-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-top: 2px solid var(--fg);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 24px 22px 20px;
  transition: border-color 0.2s ease;
}
.gpu-card__family {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.gpu-card__title {
  margin-top: 6px;
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.gpu-card__spec { margin-top: 10px; font-size: 0.8125rem; color: var(--fg-3); }
.gpu-card__spec-label {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.gpu-card__spec-node { display: block; }
.contracts__note { margin-top: 16px; font-size: 0.8125rem; line-height: 1.5; color: var(--fg-3); max-width: 90ch; }
.gpu-card__desc { margin-top: 16px; font-size: 0.9375rem; line-height: 1.55; color: var(--fg-2); }
.variant {
  margin-top: 18px;
  padding: 16px 16px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.variant + .variant { margin-top: 10px; }
.variant--cash { background: rgba(10, 108, 124, 0.05); border-color: rgba(10, 108, 124, 0.24); }
.variant--phys { background: rgba(199, 122, 18, 0.06); border-color: rgba(143, 82, 0, 0.24); }
.variant__label {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.variant--cash .variant__label { color: var(--cash-ink); }
.variant--phys .variant__label { color: var(--phys-ink); }
.variant__code {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.375rem;
  letter-spacing: 0.01em;
  color: var(--fg);
}
.variant__text { margin-top: 6px; font-size: 0.875rem; line-height: 1.5; color: var(--fg-2); }
.gpu-card__meta { margin-top: auto; padding-top: 18px; }
.gpu-card__meta div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
}
.gpu-card__meta dt { color: var(--fg-3); }
.gpu-card__meta dd { color: var(--fg); text-align: right; font-variant-numeric: tabular-nums; }
.gpu-card__meta dd.mono { font-size: 0.8125rem; }

/* Variant toggle (pure CSS via :has; without support, both variants stay visible) */
.contracts:has(#variant-cash:checked) .variant--phys,
.contracts:has(#variant-phys:checked) .variant--cash { display: none; }
.contracts:has(#variant-cash:checked) .gpu-card { border-top-color: var(--cash-ink); }
.contracts:has(#variant-phys:checked) .gpu-card { border-top-color: #C77A12; }
.contracts:has(#variant-cash:checked) .variant,
.contracts:has(#variant-phys:checked) .variant { margin-top: 18px; }

.matrix-wrap {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  gap: 28px;
}
@media (min-width: 1200px) {
  .matrix-wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; }
}
.matrix-intro h3 { font-size: 1.375rem; letter-spacing: -0.02em; }
.matrix-intro p { margin-top: 12px; font-size: 0.9375rem; color: var(--fg-2); }
.matrix-intro__index { padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.875rem !important; }
.matrix-intro__index strong { color: var(--fg); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll:focus-visible { outline-offset: 2px; }
.matrix { font-size: 0.9375rem; min-width: 620px; }
@media (max-width: 759px) {
  .matrix-wrap .table-scroll { overflow: visible; }
  .matrix tbody tr { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .matrix tbody th { grid-column: 1 / -1; font-size: 1rem; }
  .matrix td.mono { font-size: 0.9375rem; }
}
.matrix th, .matrix td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.matrix thead th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  border-bottom: 1px solid var(--line-strong);
}
.matrix thead .dot { margin-right: 8px; vertical-align: 1px; }
.matrix thead th:not(:last-child) { white-space: nowrap; }
.matrix tbody th { font-weight: 600; white-space: nowrap; }
.matrix td.mono { font-size: 0.9375rem; }
.roadmap {
  margin-top: 40px;
  padding: 18px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--fg-2);
  max-width: 100ch;
}
.roadmap strong { color: var(--fg); }

/* ---------- How it works ---------- */
.how { display: grid; gap: 48px; }
@media (min-width: 1024px) {
  .how { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
}
.how__points { counter-reset: pt; }
.how__points li {
  counter-increment: pt;
  position: relative;
  padding: 22px 0 22px 56px;
  border-top: 1px solid var(--line-d);
}
.how__points li:last-child { border-bottom: 1px solid var(--line-d); }
.how__points li::before {
  content: counter(pt, decimal-leading-zero);
  position: absolute; left: 0; top: 24px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg-d-3);
}
.how__points h3 { color: var(--fg-d); }
.how__points p { margin-top: 8px; font-size: 0.9375rem; color: var(--fg-d-2); }

.how__figure {
  background: linear-gradient(180deg, rgba(17, 30, 52, 0.9), rgba(12, 23, 41, 0.9));
  border: 1px solid var(--line-d);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 2.5vw, 28px);
}
.timeline { width: 100%; height: auto; overflow: visible; font-family: var(--font-sans); }
.tl-grid { stroke: rgba(180, 200, 230, 0.08); stroke-width: 1; }
.tl-prem { fill: rgba(234, 240, 247, 0.16); }
.tl-disc { fill: url(#tl-hatch); }
.tl-hatch-line { stroke: rgba(234, 240, 247, 0.38); stroke-width: 1.4; }
.tl-index { fill: none; stroke: var(--fg-d-3); stroke-width: 1.8; stroke-dasharray: 6 5; }
.tl-mark { fill: none; stroke: var(--fg-d); stroke-width: 2.4; stroke-linejoin: round; }
.tl-successor { stroke: rgba(234, 240, 247, 0.45); stroke-width: 1.2; stroke-dasharray: 2 5; }
.tl-maturity { stroke: var(--cash); stroke-width: 1.6; }
.tl-settle { fill: var(--cash); }
.tl-note { font-size: 14px; fill: var(--fg-d-2); }
.tl-note--cash { fill: var(--cash); }
.tl-axis { font-family: var(--font-mono); font-size: 14px; fill: var(--fg-d-3); }
.tl-ticks line { stroke: var(--phys); stroke-width: 1.6; }
.tl-marker circle { fill: var(--ink-900); stroke: var(--fg-d); stroke-width: 1.5; }
.tl-marker text { fill: var(--fg-d); font-size: 13px; font-weight: 650; font-family: var(--font-mono); }
.tl-marker--cash circle { stroke: var(--cash); }
.tl-marker--cash text { fill: var(--cash); }
.tl-marker--phys circle { stroke: var(--phys); }
.tl-marker--phys text { fill: var(--phys); }
.tl-marker { transform-box: fill-box; transform-origin: center; }
/* The SVG scales with its box (viewBox 640 wide), so its text is resized per breakpoint to stay legible. */
@media (min-width: 1024px) and (max-width: 1199px) {
  .tl-axis, .tl-note { font-size: 16px; }
}
@media (max-width: 639px) {
  .tl-note, .tl-axis--minor { display: none; } /* repeated in legend keys 3 and 4; year grid lines remain */
  .tl-axis { font-size: 18px; }
  .tl-marker { transform: scale(1.3); }
}
@media (max-width: 479px) {
  .tl-axis { font-size: 22px; }
  .tl-marker { transform: scale(1.6); }
}
.how__figure figcaption { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-d); }
.how__legend-title { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-d-3); }
.how__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; font-size: 0.8125rem; color: var(--fg-d-2); }
.how__legend li { display: inline-flex; align-items: center; gap: 8px; }
.lg { display: inline-block; width: 22px; height: 10px; }
.lg--mark { height: 0; border-top: 2.4px solid var(--fg-d); }
.lg--index { height: 0; border-top: 2px dashed var(--fg-d-3); }
.lg--prem { background: rgba(234, 240, 247, 0.22); border: 1px solid rgba(234, 240, 247, 0.3); }
.lg--disc { background: repeating-linear-gradient(45deg, rgba(234, 240, 247, 0.45) 0 1.4px, transparent 1.4px 5px); border: 1px solid rgba(234, 240, 247, 0.3); }
.how__keys { display: grid; gap: 8px; margin-top: 16px; font-size: 0.8125rem; color: var(--fg-d-2); }
@media (min-width: 640px) { .how__keys { grid-template-columns: 1fr 1fr; gap: 10px 24px; } }
.how__keys li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.key {
  flex-shrink: 0;
  display: inline-grid; place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--fg-d);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--fg-d);
}
.key--cash { border-color: var(--cash); color: var(--cash); }
.key--phys { border-color: var(--phys); color: var(--phys); }

.funding {
  display: grid;
  gap: 20px;
  margin-top: clamp(48px, 6vw, 80px);
}
@media (min-width: 1024px) {
  .funding { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px 64px; }
  .funding__flow { grid-column: 1; grid-row: 1; }
  .formula { grid-column: 1; grid-row: 2; }
  .example { grid-column: 2; grid-row: 1 / span 2; }
}
.funding__flow, .formula, .example {
  border: 1px solid var(--line-d);
  border-radius: var(--radius-lg);
  background: rgba(5, 11, 22, 0.45);
  padding: clamp(20px, 2.5vw, 28px);
}
.flow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.flow__party {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 14px;
  border: 1px solid var(--line-d-strong);
  border-radius: var(--radius);
  background: var(--ink-850);
  color: var(--fg-d);
  text-align: center;
  min-width: 82px;
}
.flow__arrows { display: grid; gap: 18px; }
.flow__arrow {
  position: relative;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--fg-d-2);
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--fg-d-2);
}
.flow__arrow::after {
  content: "";
  position: absolute;
  bottom: -5.5px;
  width: 9px; height: 9px;
  border-top: 1.5px solid var(--fg-d-2);
  border-right: 1.5px solid var(--fg-d-2);
}
.flow__arrow--right::after { right: 0; transform: rotate(45deg); }
.flow__arrow--left::after { left: 0; transform: rotate(-135deg); }
.flow__note { margin-top: 18px; font-size: 0.8125rem; color: var(--fg-d-3); line-height: 1.55; }
.formula__title, .example__title {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 1.0625rem;
  color: var(--fg-d);
}
.formula__lines { margin-top: 16px; }
.formula__lines div { padding: 12px 0; border-top: 1px solid var(--line-d); }
.formula__lines dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-d-3);
}
.formula__lines dd { margin-top: 4px; font-family: var(--font-mono); font-size: 0.875rem; color: var(--fg-d); line-height: 1.5; }
.formula__note { margin-top: 12px; font-size: 0.8125rem; color: var(--fg-d-3); line-height: 1.55; }
.example__table { margin-top: 16px; font-size: 0.9375rem; }
.example__table th, .example__table td { padding: 12px 0; border-top: 1px solid var(--line-d); vertical-align: top; }
.example__table th { text-align: left; font-weight: 400; color: var(--fg-d-2); padding-right: 16px; }
.example__table td { text-align: right; font-family: var(--font-mono); font-weight: 500; color: var(--fg-d); font-variant-numeric: tabular-nums; }
.example__table .is-total th, .example__table .is-total td { border-top: 1px solid var(--line-d-strong); color: var(--fg-d); font-weight: 600; }
.example__table .is-total td span { display: block; white-space: nowrap; }
@media (max-width: 479px) {
  .example__table tr { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line-d); }
  .example__table .is-total { border-top-color: var(--line-d-strong); }
  .example__table th, .example__table td { display: block; padding: 0; border-top: 0 !important; text-align: left; }
}
.example__note { margin-top: 16px; font-size: 0.875rem; color: var(--fg-d-2); line-height: 1.6; }

/* ---------- Calculator ---------- */
.calc { display: grid; gap: 24px; }
@media (min-width: 1000px) {
  .calc { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 0; align-items: stretch; }
}
.calc__form {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 36px);
  display: grid;
  gap: 24px;
  align-content: start;
}
@media (min-width: 1000px) {
  .calc__form { border-radius: var(--radius-lg) 0 0 var(--radius-lg); border-right: 0; }
  .calc__out { border-radius: 0 var(--radius-lg) var(--radius-lg) 0 !important; }
}
.calc__row { display: grid; gap: 24px; }
@media (min-width: 560px) { .calc__row { grid-template-columns: auto auto; justify-content: start; gap: 32px; } }
.calc__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc__group legend, .field > label, .choice-group > legend {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
  padding: 0;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--field-border);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.9375rem;
  font-weight: 550;
  color: var(--fg-2);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.chips label:hover { border-color: var(--fg); color: var(--fg); }
.chips input:checked + label { background: var(--ink-900); border-color: var(--ink-900); color: var(--paper); }
.chips input:checked + label .dot--cash { background: var(--cash); }
.chips input:checked + label .dot--phys { background: var(--phys); }
@media (max-width: 479px) {
  .calc__group .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .calc__group .chips--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chips label { justify-content: center; padding: 0 8px; }
}

.field { min-width: 0; }
.field__unit, .field label .req, .field label .opt, .choice-group legend .req, .choice-group legend .opt {
  font-weight: 400; color: var(--fg-3); font-size: 0.8125rem; margin-left: 6px;
}
.req, .opt { font-family: var(--font-sans); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field select, .field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--fg);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field input[type="number"] { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.field textarea { min-height: 128px; resize: vertical; }
.field select {
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-2) 50%), linear-gradient(135deg, var(--fg-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--fg-3); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(31, 95, 214, 0.25);
}
.field [aria-invalid="true"] { border-color: var(--error) !important; box-shadow: 0 0 0 1px var(--error); }
.mono-input { font-family: var(--font-mono) !important; letter-spacing: 0.04em; text-transform: uppercase; }
.field__hint { margin-top: 6px; font-size: 0.8125rem; color: var(--fg-3); line-height: 1.45; }
.field__error {
  margin-top: 6px;
  font-size: 0.8125rem;
  font-weight: 550;
  color: var(--error);
  line-height: 1.45;
  display: flex; gap: 6px;
}
.field__warn {
  margin-top: 6px;
  padding: 8px 10px;
  border-left: 2px solid var(--fg-3);
  background: var(--paper-2);
  font-size: 0.8125rem;
  color: var(--fg-2);
  line-height: 1.45;
}
.field__error::before { content: "!"; display: inline-grid; place-items: center; flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--error); color: #fff; font-size: 0.6875rem; font-weight: 700; margin-top: 1px; }
.input-combo { display: flex; }
.input-combo input { border-radius: var(--radius) 0 0 var(--radius) !important; }
.input-combo select { width: auto !important; flex-shrink: 0; border-radius: 0 var(--radius) var(--radius) 0 !important; margin-left: -1px; background-color: var(--paper-3); }

.calc__out {
  background: var(--ink-900);
  color: var(--fg-d);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  --accent: var(--cash);
}
.calc__out[data-variant="P"] { --accent: var(--phys); }
.calc__instrument {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-d-strong);
}
.calc__tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 4px 10px;
}
.calc__code { font-family: var(--font-mono); font-weight: 500; font-size: 1.5rem; letter-spacing: 0.01em; }
.calc__index { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--fg-d-3); }
.calc__results div {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 4px 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-d);
}
.calc__results dt { font-size: 0.875rem; color: var(--fg-d-2); }
.calc__assume { display: block; font-size: 0.75rem; color: var(--fg-d-3); }
.calc__results dd {
  margin-left: auto; /* stays right-aligned when it wraps under its label */
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  text-wrap: balance;
  color: var(--fg-d);
}
.calc__key { background: rgba(234, 240, 247, 0.04); margin: 0 -14px; padding: 16px 14px !important; border-radius: var(--radius); border-bottom: 0 !important; }
.calc__key dt { color: var(--fg-d); font-weight: 600; }
.calc__key dd:first-of-type { font-size: 1.25rem; display: grid; justify-items: end; }
.calc__dir { display: block; font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 500; color: var(--accent); }
.calc__sub { flex-basis: 100%; font-size: 0.8125rem !important; color: var(--fg-d-3) !important; }
.calc__cap {
  margin-top: 14px;
  padding: 10px 12px;
  border-left: 2px solid var(--accent); /* cyan for cash, amber for physical, like the rest of the panel */
  background: rgba(234, 240, 247, 0.06);
  font-size: 0.8125rem;
  color: var(--fg-d);
}
.calc__disclaimer { margin-top: auto; padding-top: 20px; font-size: 0.75rem; line-height: 1.55; color: var(--fg-d-3); }

/* ---------- Physical delivery ---------- */
.delivery-intro { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .delivery-intro { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 64px; } }
.delivery-intro h2 { margin-bottom: 24px; }
.delivery-intro__text { border-top: 1px solid var(--line-d-strong); padding-top: 22px; }
.status-note {
  margin-top: 24px;
  padding: 12px 14px;
  border-left: 2px solid var(--phys);
  background: rgba(240, 168, 71, 0.07);
  font-size: 0.875rem;
  color: var(--fg-d-2);
  max-width: 60ch;
}
.status-note strong { color: var(--fg-d); }
.delivery-intro__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-d);
  aspect-ratio: 3 / 2;
}
.delivery-intro__media img { width: 100%; height: 100%; object-fit: cover; }

.steps {
  counter-reset: none;
  display: grid;
  gap: 0;
  margin-top: clamp(56px, 7vw, 96px);
  grid-template-columns: 1fr;
}
.step {
  position: relative;
  padding: 0 0 32px 48px;
}
.step::before {
  content: "";
  position: absolute;
  left: 15px; top: 34px; bottom: 0;
  width: 1px;
  background: linear-gradient(var(--phys), rgba(240, 168, 71, 0.25));
}
.step:last-child::before { display: none; }
.step__num {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 31px; height: 31px;
  border-radius: 50%;
  border: 1.5px solid var(--phys);
  background: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--phys);
}
.step__title { font-size: 1.125rem; padding-top: 3px; color: var(--fg-d); }
.step p { margin-top: 8px; font-size: 0.875rem; line-height: 1.55; color: var(--fg-d-2); }
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
  .step { padding: 52px 0 0; }
  .step::before { left: 40px; right: -28px; top: 15px; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, var(--phys), rgba(240, 168, 71, 0.25)); }
  .step__title { padding-top: 0; }
}
.deferral {
  margin-top: clamp(32px, 4vw, 48px);
  padding: 18px 20px;
  border: 1px solid var(--line-d);
  border-left: 2px solid var(--phys);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.875rem;
  color: var(--fg-d-2);
  line-height: 1.6;
}
.deferral strong { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--fg-d); font-size: 0.9375rem; margin-bottom: 6px; }
.deferral .tbc { white-space: normal; max-width: 100%; }

.grade { margin-top: clamp(56px, 7vw, 96px); }
.grade__head { display: grid; gap: 12px; margin-bottom: 24px; }
@media (min-width: 960px) { .grade__head { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: end; } }
.grade__head h3 { font-size: 1.5rem; letter-spacing: -0.02em; color: var(--fg-d); }
.grade__head p { font-size: 0.9375rem; color: var(--fg-d-2); max-width: 70ch; }
.grade-table { font-size: 0.875rem; }
.grade-table th, .grade-table td { text-align: left; vertical-align: top; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line-d); }
.grade-table thead th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-d-3);
  border-bottom: 1px solid var(--line-d-strong);
}
.grade-table tbody th { font-family: var(--font-mono); font-weight: 500; font-size: 1rem; color: var(--phys); white-space: nowrap; }
.grade-table td { color: var(--fg-d-2); }
.grade-table td:first-of-type { color: var(--fg-d); }
.grade__notes { margin-top: 18px; display: grid; gap: 6px; font-size: 0.8125rem; color: var(--fg-d-3); line-height: 1.55; }

.partner {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid;
  gap: 24px;
  padding: clamp(24px, 3.5vw, 40px);
  border: 1px solid var(--line-d-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(17, 30, 52, 0.9), rgba(8, 17, 31, 0.9));
}
@media (min-width: 960px) { .partner { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; } }
.partner h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.025em; line-height: 1.15; color: var(--fg-d); }
.partner h3 .ph { font-size: 0.55em; font-weight: 500; letter-spacing: 0; vertical-align: middle; white-space: nowrap; }
.partner .eyebrow { margin-bottom: 12px; }
.partner__body > p { font-size: 0.9375rem; color: var(--fg-d-2); }
.partner__roles { display: grid; gap: 12px; margin-top: 20px; }
@media (min-width: 640px) { .partner__roles { grid-template-columns: 1fr 1fr; } }
.partner__roles div { padding: 16px; border: 1px solid var(--line-d); border-radius: var(--radius); }
.partner__roles dt { font-weight: 600; color: var(--fg-d); font-size: 0.9375rem; }
.partner__roles dd { margin-top: 6px; font-size: 0.875rem; color: var(--fg-d-2); }
.partner__link { margin-top: 18px; font-size: 0.9375rem; font-weight: 550; }
.partner__link a { color: var(--fg-d); }

/* ---------- Participants ---------- */
.segments { display: grid; gap: 20px; }
@media (min-width: 900px) { .segments { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.segment {
  display: flex;
  flex-direction: column;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.segment__media { aspect-ratio: 16 / 8; overflow: hidden; background: var(--ink-900); }
.segment__media img { width: 100%; height: 100%; object-fit: cover; }
.segment__body { display: flex; flex-direction: column; flex: 1; padding: clamp(20px, 2.5vw, 32px); }
.segment__kicker {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.segment__kicker .mono {
  display: inline-grid; place-items: center;
  width: 24px; height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--fg);
  letter-spacing: 0;
}
.segment h3 { margin-top: 14px; font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem); line-height: 1.2; letter-spacing: -0.022em; }
.segment__who { margin-top: 10px; font-size: 0.875rem; color: var(--fg-3); }
.segment__points { margin-top: 20px; }
.segment__points div { padding: 14px 0; border-top: 1px solid var(--line); }
.segment__points dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.segment__points dt span { margin-left: 6px; color: var(--fg-3); }
.segment__points dt span::before { content: "· "; }
.segment__points dd { margin-top: 6px; font-size: 0.9375rem; line-height: 1.55; color: var(--fg-2); }
.segment__points dd .mono { font-size: 0.875rem; color: var(--fg); }
.segment__fit { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Specifications ---------- */
.spec { background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(8px, 2vw, 16px) clamp(16px, 3vw, 36px) clamp(20px, 3vw, 32px); }
.spec-table { font-size: 0.9375rem; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 15px 20px 15px 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
.spec-table thead th {
  /* Sticks under the compact header (60px + 1px border); the header is always compact by the time the table is reached. */
  position: sticky; top: calc(var(--header-h-compact) + 1px);
  box-shadow: inset 0 -1px 0 var(--line-strong); /* the border does not stick in a collapsed table */
  background: var(--paper-3);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  border-bottom: 1px solid var(--line-strong);
  padding-top: 18px;
  z-index: 1;
}
.spec-table thead .dot { margin-right: 8px; vertical-align: 1px; }
.spec-table tbody th { width: 24%; font-weight: 600; color: var(--fg); padding-right: 24px; }
.spec-table td { color: var(--fg-2); }
.spec-table td.mono { font-size: 0.875rem; color: var(--fg); }
.spec-table td.na { color: var(--fg-3); }
.spec-table td[colspan] { color: var(--fg); }
.spec__footnote { margin-top: 20px; font-size: 0.875rem; color: var(--fg-2); font-weight: 500; }

/* Responsive stacked tables */
@media (max-width: 759px) {
  .stack-table { min-width: 0 !important; }
  .stack-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack-table, .stack-table tbody, .stack-table tr, .stack-table th, .stack-table td { display: block; width: 100% !important; }
  .stack-table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .section--ink .stack-table tr { border-color: var(--line-d); }
  .stack-table th, .stack-table td { border: 0 !important; padding: 3px 0 !important; }
  .stack-table tbody th { margin-bottom: 6px; }
  .stack-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-3);
    margin-top: 6px;
  }
  .section--ink .stack-table td[data-label]::before { color: var(--fg-d-3); }
  /* Keep the site-wide colour code in stacked rows: cyan = cash-settled, amber = physically delivered */
  .stack-table td[data-label="Cash-settled"]::before { color: var(--cash-ink); }
  .stack-table td[data-label="Physically delivered"]::before { color: var(--phys-ink); }
  .spec-table td[colspan][data-label]::before { display: none; }
  .grade .table-scroll { overflow: visible; }
}
/* The six-column deliverable-grade table is too dense below 1024px: stack it (two columns per row on tablets). */
@media (max-width: 1023px) {
  .grade .table-scroll { overflow: visible; }
  .grade-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .grade-table, .grade-table tbody, .grade-table tr, .grade-table th, .grade-table td { display: block; width: 100% !important; }
  .grade-table tr { padding: 14px 0; border-bottom: 1px solid var(--line-d); }
  .grade-table th, .grade-table td { border: 0 !important; padding: 3px 0 !important; }
  .grade-table tbody th { margin-bottom: 6px; }
  .grade-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-d-3);
    margin-top: 6px;
  }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .grade-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .grade-table tbody th { grid-column: 1 / -1; }
}

/* ---------- Venue ---------- */
.venue { overflow: hidden; isolation: isolate; padding-top: 0; }
.venue__media {
  position: absolute;
  inset: 0 0 auto 0;
  height: min(76vw, 900px);
  z-index: -1;
}
.venue__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.venue__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 56% at 20% 18%, rgba(8, 17, 31, 0.92) 0%, rgba(8, 17, 31, 0.72) 48%, rgba(8, 17, 31, 0) 82%),
    linear-gradient(180deg, rgba(8, 17, 31, 0.6) 0%, rgba(8, 17, 31, 0.15) 32%, rgba(8, 17, 31, 0.35) 62%, var(--ink-900) 100%);
}
.venue__head .section-head__lede { text-shadow: 0 1px 12px rgba(5, 11, 22, 0.9); }
/* Below 1024px the heading and lede cover most of the image, and the desktop vignette does not
   scale down: darken the whole area behind the text. */
@media (max-width: 1023px) {
  /* Taller image so its lower part shows in the gap above the pillars, clear of the text. */
  .venue__media { height: max(76vw, 560px); }
  .venue__media::after { background: linear-gradient(180deg, rgba(8, 17, 31, 0.9) 0%, rgba(8, 17, 31, 0.86) 45%, rgba(8, 17, 31, 0.5) 74%, var(--ink-900) 100%); }
  .venue__media img { object-position: 50% 70%; }
}
.venue__inner { padding-top: var(--section-y); }
.venue__head { max-width: 760px; border-top: 0; padding-top: 0; }
.venue__head .section-head__lede { margin-top: 20px; }
.pillars {
  display: grid;
  gap: 1px;
  margin-top: clamp(120px, 24vw, 340px);
  background: var(--line-d);
  border: 1px solid var(--line-d);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pillar {
  padding: clamp(22px, 2.5vw, 32px);
  background: rgba(8, 17, 31, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.pillar h3 { color: var(--fg-d); font-size: 1.125rem; }
.pillar h3::before {
  content: "";
  display: block;
  width: 24px; height: 1px;
  background: var(--fg-d);
  margin-bottom: 16px;
}
.pillar p { margin-top: 8px; font-size: 0.9375rem; color: var(--fg-d-2); }

/* ---------- Membership ---------- */
.admission { display: grid; gap: 40px; }
@media (min-width: 1024px) { .admission { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.criteria h3, .timeline-steps h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 1.375rem; letter-spacing: -0.02em; }
.criteria > p { margin-top: 12px; color: var(--fg-2); }
.criteria__list { margin-top: 16px; }
.criteria__list li {
  position: relative;
  padding: 12px 0 12px 32px;
  border-top: 1px solid var(--line);
  color: var(--fg-2);
}
.criteria__list li strong { font-weight: 600; color: var(--fg); }
.criteria__list li::before {
  content: "";
  position: absolute; left: 2px; top: 19px;
  width: 12px; height: 7px;
  border-left: 1.5px solid var(--fg);
  border-bottom: 1.5px solid var(--fg);
  transform: rotate(-45deg);
}
.criteria__note { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--fg-3); }
.timeline-steps ol { margin-top: 18px; }
.timeline-steps li { position: relative; display: flex; gap: 16px; padding-bottom: 20px; font-size: 0.9375rem; color: var(--fg-2); }
.timeline-steps li::before {
  content: "";
  position: absolute; left: 15px; top: 32px; bottom: 0;
  width: 1px; background: var(--line-strong);
}
.timeline-steps li:last-child::before { display: none; }
.timeline-steps strong { color: var(--fg); font-weight: 600; }
.ts__n {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 31px; height: 31px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper-3);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg);
}
.timeline-steps li > div { padding-top: 4px; }

.enquiry {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: 0 30px 80px -40px rgba(11, 21, 39, 0.35);
}
@media (min-width: 1024px) { .enquiry { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
/* Small laptops: a slightly wider aside keeps the fallback email address on one line. */
@media (min-width: 1024px) and (max-width: 1199px) { .enquiry { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.enquiry__aside {
  background: var(--ink-900);
  color: var(--fg-d);
  padding: clamp(24px, 3.5vw, 44px);
  position: relative;
  overflow: hidden;
}
.enquiry__aside::after {
  content: "";
  position: absolute; inset: auto -20% -30% -20%; height: 60%;
  background-image:
    linear-gradient(to right, rgba(180, 200, 230, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(180, 200, 230, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: linear-gradient(transparent, #000);
  mask-image: linear-gradient(transparent, #000);
  pointer-events: none;
}
.enquiry__aside > * { position: relative; z-index: 1; }
@supports (overflow: clip) {
  /* clip (unlike hidden) does not create a scroll container, so the sticky aside content below works */
  .enquiry, .enquiry__aside { overflow: clip; }
}
@media (min-width: 1024px) {
  /* The aside is as tall as the form: keep the pitch and contact in view while the form is filled in. */
  .enquiry__aside .enquiry__aside-inner { position: sticky; top: calc(var(--header-h-compact) + 1px + 32px); }
}
.enquiry__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; letter-spacing: -0.025em; }
.enquiry__aside-inner > p { margin-top: 14px; color: var(--fg-d-2); font-size: 0.9375rem; }
.enquiry__facts { margin-top: 24px; display: grid; gap: 10px; font-size: 0.875rem; color: var(--fg-d-2); }
.enquiry__facts li { padding-left: 20px; position: relative; }
.enquiry__facts li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 8px; height: 1px; background: var(--fg-d-2); }
.enquiry__facts a, .enquiry__contact a { color: var(--fg-d); }
.enquiry__contact { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-d); font-size: 0.875rem; color: var(--fg-d-2); overflow-wrap: anywhere; }
.enquiry__main { padding: clamp(20px, 3.5vw, 44px); min-width: 0; }

.form { display: grid; gap: 28px; }
.form__section { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 20px; }
.form__section > legend {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.form__grid { display: grid; gap: 20px; }
@media (min-width: 640px) {
  .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 20px; }
  .field--wide { grid-column: 1 / -1; }
}
.choice-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 11px 16px 11px 12px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.9375rem;
  cursor: pointer;
  line-height: 1.4;
}
.choice:hover { border-color: var(--fg-3); }
.choice input {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin: 1px 0 0;
  accent-color: var(--ink-900);
  cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--ink-900); box-shadow: inset 0 0 0 1px var(--ink-900); }
.choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.choice input:focus-visible { outline: none; }
.field > label.choice--block { display: flex; width: 100%; margin-bottom: 0; padding: 14px 16px 14px 14px; background: transparent; border-color: var(--line); font-size: 0.9375rem; font-weight: 400; color: var(--fg-2); line-height: 1.5; }
.choice--block a { color: var(--fg); }
.choice--block .req, .choice--block .opt { margin-left: 4px; font-size: 0.8125rem; color: var(--fg-3); }
@media (max-width: 479px) {
  .choices--grid-sm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choices--stack-sm { display: grid; grid-template-columns: minmax(0, 1fr); }
}
.form__section--declare { gap: 12px; }
.choice-group[aria-invalid="true"] .choice { border-color: var(--error); }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form__submit { display: grid; gap: 14px; justify-items: start; padding-top: 4px; }
.form__submit .btn { min-width: 280px; }
@media (max-width: 479px) { .form__submit .btn { width: 100%; min-width: 0; } }
.form__micro { font-size: 0.8125rem; color: var(--fg-3); max-width: 70ch; line-height: 1.55; }
.form__noscript { padding: 12px 14px; border-left: 2px solid var(--error); background: rgba(180, 35, 24, 0.06); font-size: 0.875rem; }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border: 2px solid rgba(244, 241, 234, 0.4);
  border-top-color: var(--paper);
  border-radius: 50%;
}
@media (prefers-reduced-motion: no-preference) { .btn.is-loading::after { animation: spin 0.8s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }

.form-summary {
  margin-bottom: 28px;
  padding: 18px 20px;
  border: 1px solid var(--error);
  border-left-width: 4px;
  border-radius: var(--radius);
  background: rgba(180, 35, 24, 0.05);
}
.form-summary__title { font-size: 1rem; color: var(--error); }
.form-summary__list { margin-top: 8px; display: grid; gap: 4px; font-size: 0.9375rem; }
.form-summary__list a { color: var(--error); font-weight: 550; }

.form-result {
  margin-bottom: 28px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--white);
}
.form-result[data-state="success"] { border-color: rgba(30, 122, 76, 0.5); border-left: 4px solid var(--success); }
.form-result[data-state="error"] { border-color: rgba(180, 35, 24, 0.5); border-left: 4px solid var(--error); }
.form-result[data-state="offline"] { border-left: 4px solid var(--fg); }
.form-result__icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px; background: var(--paper-2); }
.form-result[data-state="success"] .form-result__icon { background: rgba(30, 122, 76, 0.12); }
.form-result[data-state="success"] .form-result__icon::before { content: ""; width: 14px; height: 8px; border-left: 2px solid var(--success); border-bottom: 2px solid var(--success); transform: translateY(-2px) rotate(-45deg); }
.form-result[data-state="error"] .form-result__icon { background: rgba(180, 35, 24, 0.1); }
.form-result[data-state="error"] .form-result__icon::before, .form-result[data-state="offline"] .form-result__icon::before { content: "!"; font-weight: 700; color: var(--error); }
.form-result[data-state="offline"] .form-result__icon::before { color: var(--fg); }
.form-result__title { font-size: 1.25rem; letter-spacing: -0.015em; }
.form-result__body { margin-top: 10px; display: grid; gap: 12px; color: var(--fg-2); font-size: 0.9375rem; }
.form-result__body .btn { justify-self: start; }
.form-result__body .mono { color: var(--fg); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: 8px; }
@media (min-width: 1024px) {
  .faq-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
  .faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
}
.faq { border-bottom: 1px solid var(--line-strong); }
.faq details { border-top: 1px solid var(--line-strong); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 22px 48px 22px 0;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  font-weight: 550;
  letter-spacing: -0.012em;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 14px; height: 1.5px;
  background: var(--fg);
  transition: transform 0.2s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--fg-2); }
.faq__a { padding: 0 0 24px; display: grid; gap: 12px; max-width: 70ch; color: var(--fg-2); }
.faq__a strong { color: var(--fg); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-950);
  color: var(--fg-d-2);
  padding: clamp(56px, 7vw, 96px) 0 32px;
  font-size: 0.9375rem;
}
.site-footer a { color: var(--fg-d); }
.site-footer a.btn--light { color: var(--fg); }
.site-footer__top { display: grid; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-d); }
@media (min-width: 900px) { .site-footer__top { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; } }
.site-footer .brand .mark { width: 32px; height: 32px; }
.site-footer__tag { margin: 18px 0 24px; max-width: 42ch; color: var(--fg-d-2); }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.site-footer__heading {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-d-3);
  margin-bottom: 14px;
}
.site-footer__nav ul { display: grid; gap: 8px; }
.site-footer__nav a { text-decoration: none; color: var(--fg-d-2); }
.site-footer__nav a:hover { color: var(--fg-d); text-decoration: underline; }
.site-footer__reg { padding: 32px 0; display: grid; gap: 14px; font-size: 0.8125rem; line-height: 1.65; color: var(--fg-d-3); border-bottom: 1px solid var(--line-d); }
.site-footer__reg > * { max-width: 120ch; }
.site-footer__reg strong { color: var(--fg-d-2); font-weight: 600; }
.site-footer__reg .mono { font-size: 0.78125rem; color: var(--fg-d-2); }
.site-footer__risk { color: var(--fg-d-2) !important; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; font-size: 0.8125rem; color: var(--fg-d-3); }

/* ---------- Audience modal ---------- */
.audience {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
}
.audience__backdrop {
  position: fixed; inset: 0;
  background: rgba(5, 11, 22, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.audience__panel {
  position: relative;
  width: min(100%, 640px);
  background: var(--paper);
  color: var(--fg);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 44px);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
  border-top: 3px solid var(--fg);
}
.audience__brand { display: flex; align-items: center; gap: 10px; font-weight: 620; letter-spacing: -0.015em; color: var(--fg); }
.audience__brand .mark { width: 24px; height: 24px; color: var(--fg); }
.audience__eyebrow {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.audience__title { margin-top: 10px; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); line-height: 1.12; letter-spacing: -0.028em; }
.audience__text { margin-top: 16px; display: grid; gap: 12px; font-size: 0.9375rem; color: var(--fg-2); }
.audience__actions { margin-top: 28px; display: grid; gap: 10px; }
.audience__actions .btn { width: 100%; min-height: 52px; }
.audience__links { margin-top: 20px; font-size: 0.8125rem; color: var(--fg-3); }
.audience__links a { color: var(--fg-2); }
.audience__panel:focus-visible { outline: none; }
html.has-modal { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .audience:not([hidden]) .audience__panel { animation: rise 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Legal / document pages ---------- */
.doc-hero {
  background: var(--ink-900);
  color: var(--fg-d);
  padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}
.doc-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(180, 200, 230, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(180, 200, 230, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 85% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 90% at 85% 0%, #000 10%, transparent 70%);
}
.doc-hero .container { position: relative; }
.doc-hero h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem); line-height: 1.04; font-weight: 590; letter-spacing: -0.035em; }
.doc-hero__meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-d-3); }
.doc-hero__lede { margin-top: 20px; max-width: 64ch; color: var(--fg-d-2); font-size: 1.0625rem; }
.doc-hero .eyebrow { color: var(--fg-d-3); }
.doc-hero .eyebrow span { color: var(--fg-d); border-color: var(--line-d-strong); }
.doc-body { background: var(--paper); padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 8vw, 120px); }
.doc-layout { display: grid; gap: 40px; }
@media (min-width: 1024px) { .doc-layout { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 72px; align-items: start; } }
.doc-toc { font-size: 0.875rem; }
@media (min-width: 1024px) { .doc-toc { position: sticky; top: calc(var(--header-h) + 32px); } }
.doc-toc h2 { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 12px; }
.doc-toc ol { display: grid; gap: 2px; border-left: 1px solid var(--line-strong); }
.doc-toc a { display: block; padding: 6px 0 6px 16px; color: var(--fg-2); text-decoration: none; line-height: 1.4; margin-left: -1px; border-left: 1px solid transparent; }
.doc-toc a:hover { color: var(--fg); border-left-color: var(--fg); }
.prose { max-width: 72ch; font-size: 1.0625rem; line-height: 1.7; color: var(--fg-2); }
.prose > * + * { margin-top: 1em; }
.prose h2 {
  font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.022em;
  font-weight: 600;
  color: var(--fg);
  margin-top: 2.4em;
  padding-top: 0.9em;
  border-top: 1px solid var(--line-strong);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.125rem; color: var(--fg); margin-top: 1.8em; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--fg); }
.prose address { font-style: normal; }
.prose .callout {
  padding: 16px 20px;
  border-left: 3px solid var(--fg);
  background: var(--paper-3);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9375rem;
}
.prose dl.facts { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.prose dl.facts div { display: grid; gap: 2px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .prose dl.facts div { grid-template-columns: 220px minmax(0, 1fr); } }
.prose dl.facts dt { font-weight: 600; color: var(--fg); font-size: 0.9375rem; }
.prose dl.facts dd { font-size: 0.9375rem; }
.doc-draft {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 24px;
  padding: 6px 12px;
  border: 1px dashed var(--line-d-strong);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: var(--fg-d-2);
}

/* ---------- 404 ---------- */
.page-404 { min-height: 70vh; display: grid; align-items: center; background: var(--ink-900); color: var(--fg-d); padding: 96px 0; position: relative; overflow: hidden; }
.page-404 .code { font-family: var(--font-mono); font-size: 0.875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-d-3); }
.page-404 h1 { margin-top: 16px; font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 590; max-width: 18ch; }
.page-404 p { margin-top: 20px; color: var(--fg-d-2); max-width: 56ch; font-size: 1.0625rem; }
.page-404 .hero__actions { margin-top: 32px; }

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

/* ---------- Print ---------- */
@media print {
  .notice-strip, .site-header, .hero__media, .audience, .menu-toggle, .calc, .enquiry, .skip-link { display: none !important; }
  body, .section--ink, .hero, .site-footer, .cred { background: #fff !important; color: #000 !important; }
  .section { padding-block: 24px; }
}
