/* ============================================================================
   THE SAARIO RECORD — kit.css
   All block + component styles. Built ONLY on tokens.css custom properties.
   Lane: Institutional / Archival — engraved plate, ruled ledger, ceremonial
   seal, lineage-as-dossier. Authority through typography and rule-work.
   ============================================================================ */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-400);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--dur-med) var(--ease-plate),
    color var(--dur-med) var(--ease-plate);
}

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

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: var(--fw-regular); }

p { margin: 0; }
a { color: inherit; }

::selection { background: var(--accent); color: var(--text-on-accent); }

:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ---- Layout helpers ----------------------------------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--space-6); }
.wrap--wide { max-width: var(--maxw-wide); }
.section { padding-block: var(--space-9); }
.section--tight { padding-block: var(--space-7); }
.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-6); }

/* ---- Theme frames (for showcasing both modes side by side) -------------- */
.frame {
  background: var(--bg-page);
  color: var(--text-primary);
  border: var(--rule-hair) solid var(--rule);
  overflow: hidden;
}
.frame__label {
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--space-3) var(--space-4);
  border-bottom: var(--rule-hair) solid var(--rule);
  background: var(--bg-surface);
  display: flex; justify-content: space-between; align-items: center;
}

/* =========================================================================
   TYPOGRAPHY PRIMITIVES
   ========================================================================= */
.display {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  font-size: clamp(var(--fs-700), 7vw, var(--fs-900));
}
.display--hero { font-size: clamp(var(--fs-800), 10vw, var(--fs-1000)); }
.display em { font-style: italic; }
.display .accent-word { color: var(--accent-text); }

.kicker, .eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--eyebrow-fg);
  font-weight: var(--fw-medium);
}
.eyebrow::before {
  content: ""; width: var(--space-6); height: var(--rule-med);
  background: var(--eyebrow-rule); display: inline-block;
}
.eyebrow--plain::before { display: none; }

.lead {
  font-size: var(--fs-500);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
  max-width: var(--measure);
  font-weight: var(--fw-light);
}

.section-title {
  font-size: clamp(var(--fs-600), 4vw, var(--fs-800));
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-display);
}

.ledger-label {
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
}

.ref-no {
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  letter-spacing: var(--ls-label);
  color: var(--accent-text);
}

/* Rule-work: the ledger hairline + double rule */
.rule { border: 0; border-top: var(--rule-hair) solid var(--rule); margin: var(--space-6) 0; }
.rule--double {
  border: 0; height: 4px;
  border-top: var(--rule-hair) solid var(--rule-strong);
  border-bottom: var(--rule-hair) solid var(--rule-strong);
  margin: var(--space-6) 0;
}
.rule--accent { border-top-color: var(--accent); border-top-width: var(--rule-med); }

/* =========================================================================
   BUTTONS / PRIMITIVES
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--fs-200);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--space-3) var(--space-5);
  border: var(--rule-med) solid var(--btn-border);
  border-radius: var(--radius-0);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-plate),
    transform var(--dur-fast) var(--ease-plate),
    border-color var(--dur-fast) var(--ease-plate);
}
.btn:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent; color: var(--btn-ghost-fg);
  border-color: var(--btn-ghost-border);
}
.btn--ghost:hover { background: var(--btn-ghost-hover-bg); border-color: var(--accent); color: var(--accent-text); }

.btn--link {
  background: transparent; border-color: transparent; color: var(--accent-text);
  padding-inline: 0; position: relative;
}
.btn--link::after {
  content: ""; position: absolute; left: 0; bottom: 2px; height: var(--rule-med);
  width: 100%; background: var(--accent); transform: scaleX(0.4); transform-origin: left;
  transition: transform var(--dur-med) var(--ease-rule);
}
.btn--link:hover::after { transform: scaleX(1); }

.btn--lg { font-size: var(--fs-300); padding: var(--space-4) var(--space-6); }
.btn[disabled], .btn--disabled {
  opacity: 0.45; pointer-events: none; filter: saturate(0.4);
}
.btn .arrow { font-family: var(--font-body); font-weight: var(--fw-regular); }

.tag {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  padding: 3px var(--space-3);
  background: var(--tag-bg);
  color: var(--tag-fg);
  border: var(--rule-hair) solid var(--tag-border);
  border-radius: var(--radius-0);
}
.tag--accent { color: var(--accent-text); border-color: var(--accent); background: var(--accent-wash); }
.tag--seal {
  border-color: var(--seal-line); color: var(--seal-line);
  background: transparent;
}

.chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--fs-200); font-weight: var(--fw-medium);
  padding: var(--space-2) var(--space-4);
  border: var(--rule-hair) solid var(--rule-strong);
  border-radius: var(--radius-pill);
  color: var(--text-secondary); background: var(--bg-surface);
}
.chip__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* =========================================================================
   SEAL / EMBLEM (CSS evocation of the ceremonial circular Defendo emblem)
   ========================================================================= */
.seal {
  --seal-size: 88px;
  position: relative; display: inline-grid; place-items: center;
  width: var(--seal-size, 88px); height: var(--seal-size, 88px);
  border-radius: 50%;
  border: var(--rule-med) solid var(--seal-line);
  background: var(--seal-fill);
}
/* inner concentric ring — even gap from the outer ring */
.seal::before {
  content: ""; position: absolute; inset: calc(var(--seal-size, 88px) * 0.09);
  border-radius: 50%;
  border: var(--rule-hair) solid var(--seal-line);
}
/* triangle — optically centered: a triangle's visual mass sits below its
   geometric center, so nudge it up slightly via translateY so it reads centered
   within the ring; sized to clear the core beneath it. */
.seal__tri {
  width: 0; height: 0;
  border-left: calc(var(--seal-size, 88px) * 0.19) solid transparent;
  border-right: calc(var(--seal-size, 88px) * 0.19) solid transparent;
  border-bottom: calc(var(--seal-size, 88px) * 0.3) solid var(--text-faint);
  transform: translateY(calc(var(--seal-size, 88px) * -0.085));
}
/* core — small accent dot centered under the triangle apex, hairline halo
   from the seal fill so it never reads as a heavy black ring */
.seal__core {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--seal-size, 88px) * 0.16);
  height: calc(var(--seal-size, 88px) * 0.16);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 calc(var(--seal-size, 88px) * 0.02) var(--seal-fill);
  transform: translate(-50%, calc(var(--seal-size, 88px) * 0.21));
}
.seal--lg { --seal-size: 132px; }
.seal--sm { --seal-size: 56px; }

/* Wordmark — heavy slab evocation */
.wordmark {
  display: inline-flex; align-items: baseline; gap: var(--space-3);
  font-family: var(--font-display);
  letter-spacing: var(--ls-display);
}
.wordmark__main { font-size: var(--fs-500); font-weight: var(--fw-bold); line-height: 1; }
.wordmark__sub {
  font-family: var(--font-mono); font-size: var(--fs-100);
  letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-muted);
}

/* =========================================================================
   IMAGE TREATMENT — engraved plate
   ========================================================================= */
.plate {
  position: relative; overflow: hidden;
  background: var(--img-plate-bg);
  border: var(--rule-hair) solid var(--rule-strong);
}
.plate img {
  width: 100%; height: 100%; object-fit: cover;
  filter: var(--img-grade);
  transition: filter var(--dur-slow) var(--ease-plate), transform var(--dur-slow) var(--ease-plate);
}
.plate::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--img-overlay);
}
.plate--accent::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--accent-wash); mix-blend-mode: multiply;
}
.plate__caption {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  font-family: var(--font-mono); font-size: var(--fs-100);
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--paper-100); background: rgba(11, 10, 8, 0.72);
  padding: var(--space-2) var(--space-3); border-top-right-radius: var(--radius-1);
}
.plate--hover:hover img { transform: scale(1.03); }

/* corner registration ticks — engraved-plate motif */
.plate--ticks::before,
.plate--ticks::after { content: ""; position: absolute; z-index: 3; pointer-events: none; }
.plate--ticks::before {
  top: 10px; left: 10px; width: 16px; height: 16px;
  border-top: var(--rule-med) solid var(--seal-line);
  border-left: var(--rule-med) solid var(--seal-line);
}
.plate--ticks::after {
  bottom: 10px; right: 10px; width: 16px; height: 16px;
  border-bottom: var(--rule-med) solid var(--seal-line);
  border-right: var(--rule-med) solid var(--seal-line);
}

/* =========================================================================
   NAV HEADER
   ========================================================================= */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-6);
  border-bottom: var(--rule-hair) solid var(--rule-strong);
  background: var(--bg-surface);
}
.nav__brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.nav__links { display: flex; gap: var(--space-6); align-items: center; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  text-decoration: none; font-size: var(--fs-200); font-weight: var(--fw-medium);
  letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-secondary);
  position: relative; padding-block: var(--space-2);
  transition: color var(--dur-fast) var(--ease-plate);
}
.nav__links a:hover { color: var(--text-primary); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: var(--rule-med);
  width: 0; background: var(--accent); transition: width var(--dur-med) var(--ease-rule);
}
.nav__links a:hover::after { width: 100%; }
.nav__actions { display: flex; gap: var(--space-3); align-items: center; }

/* theme toggle control */
.theme-toggle {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: var(--fs-100);
  letter-spacing: var(--ls-label); text-transform: uppercase;
  background: transparent; color: var(--text-secondary);
  border: var(--rule-hair) solid var(--rule-strong); border-radius: var(--radius-0);
  padding: var(--space-2) var(--space-3); cursor: pointer;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent-text); }

/* =========================================================================
   HERO — image-led (threshold)
   ========================================================================= */
.hero {
  position: relative; min-height: 78vh; display: grid; align-items: end;
  background: var(--img-plate-bg);
  border-bottom: var(--rule-heavy) solid var(--accent);
  overflow: hidden;
}
.hero__img { position: absolute; inset: 0; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; filter: var(--img-grade); }
.hero__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,10,8,0.92) 0%, rgba(11,10,8,0.66) 38%, rgba(11,10,8,0.12) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: var(--space-9) var(--space-6); width: 100%; }
.hero__eyebrow { color: var(--ox-200); }
.hero__eyebrow::before { background: var(--ox-300); }
.hero__title { color: var(--paper-50); max-width: 16ch; margin-top: var(--space-5); }
.hero__title .accent-word { color: var(--ox-200); font-style: italic; }
.hero__lead { color: var(--ink-100); margin-top: var(--space-5); max-width: 46ch; }
.hero__cta { margin-top: var(--space-6); display: flex; gap: var(--space-4); flex-wrap: wrap; }
.hero__cta .btn--ghost { color: var(--paper-100); border-color: var(--ink-300); }
.hero__cta .btn--ghost:hover { color: var(--paper-50); border-color: var(--ox-200); background: rgba(168,38,45,0.18); }
.hero__meta {
  position: absolute; top: var(--space-6); right: var(--space-6); z-index: 2;
  display: flex; gap: var(--space-4); align-items: center;
  font-family: var(--font-mono); font-size: var(--fs-100);
  letter-spacing: var(--ls-label); color: var(--ink-200); text-transform: uppercase;
}

/* HERO — type-led (no image, ledger plate) */
.hero-type {
  background: var(--bg-surface);
  border-top: var(--rule-heavy) solid var(--accent);
  border-bottom: var(--rule-hair) solid var(--rule-strong);
  padding-block: var(--space-10);
}
.hero-type__grid {
  display: grid; grid-template-columns: 1fr auto; gap: var(--space-7); align-items: end;
}
.hero-type__title { max-width: 14ch; }
.hero-type__side {
  border-left: var(--rule-hair) solid var(--rule-strong); padding-left: var(--space-5);
  font-family: var(--font-mono); font-size: var(--fs-100); letter-spacing: var(--ls-label);
  text-transform: uppercase; color: var(--text-muted); min-width: 200px;
}
.hero-type__side dt { color: var(--accent-text); margin-top: var(--space-3); }
.hero-type__side dd { margin: 0 0 var(--space-2); color: var(--text-secondary); }

/* HERO — split */
.hero-split { display: grid; grid-template-columns: 1.05fr 0.95fr; }
.hero-split__text {
  background: var(--bg-surface); padding: var(--space-9) var(--space-7);
  display: flex; flex-direction: column; justify-content: center;
  border-top: var(--rule-heavy) solid var(--accent);
}
.hero-split__media { position: relative; min-height: 460px; }
.hero-split__media .plate { position: absolute; inset: 0; border: 0; }

/* =========================================================================
   PRINCIPLES (four soul principles)
   ========================================================================= */
.principles { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-8); align-items: start; }
.principles__media .plate { aspect-ratio: 4 / 5; }
.principle-list { border-top: var(--rule-hair) solid var(--rule-strong); }
.principle {
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-5);
  padding: var(--space-5) 0; border-bottom: var(--rule-hair) solid var(--rule);
}
.principle__no {
  font-family: var(--font-display); font-size: var(--fs-700);
  line-height: 1; color: var(--accent-text); font-weight: var(--fw-regular);
}
.principle__title { font-family: var(--font-display); font-size: var(--fs-600); line-height: var(--lh-snug); }
.principle__title .gloss { font-family: var(--font-body); font-size: var(--fs-200); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-muted); display: block; margin-top: var(--space-2); }
.principle__body { color: var(--text-secondary); margin-top: var(--space-3); }

/* principles — alt grid layout */
.principle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--rule-hair); background: var(--rule); border: var(--rule-hair) solid var(--rule); }
.principle-cell { background: var(--bg-surface); padding: var(--space-6); }
.principle-cell .ref-no { display: block; margin-bottom: var(--space-3); }

/* =========================================================================
   LINEAGE / DOSSIER
   ========================================================================= */
.dossier {
  border: var(--rule-hair) solid var(--rule-strong);
  background: var(--bg-surface);
}
.dossier__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: var(--rule-med) solid var(--rule-strong);
  background: var(--bg-surface-3);
}
.dossier__head .ledger-label { color: var(--text-secondary); }
.dossier__body { display: grid; grid-template-columns: 0.9fr 1.1fr; }
.dossier__media { position: relative; border-right: var(--rule-hair) solid var(--rule-strong); min-height: 360px; }
.dossier__media .plate { position: absolute; inset: 0; border: 0; }
.dossier__record { padding: var(--space-7); }
.record-row {
  display: grid; grid-template-columns: 160px 1fr; gap: var(--space-4);
  padding: var(--space-4) 0; border-bottom: var(--rule-hair) solid var(--rule);
}
.record-row:last-child { border-bottom: 0; }
.record-row dt { font-family: var(--font-mono); font-size: var(--fs-100); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-muted); }
.record-row dd { margin: 0; color: var(--text-primary); }
.record-row dd .accent-word { color: var(--accent-text); }

/* lineage timeline */
.lineage-line { list-style: none; margin: 0; padding: 0; border-left: var(--rule-med) solid var(--accent); }
.lineage-line li { position: relative; padding: 0 0 var(--space-6) var(--space-6); }
.lineage-line li::before {
  content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px;
  background: var(--bg-surface); border: var(--rule-med) solid var(--accent); border-radius: 50%;
}
.lineage-line .year { font-family: var(--font-mono); font-size: var(--fs-100); letter-spacing: var(--ls-label); color: var(--accent-text); }
.lineage-line .who { font-family: var(--font-display); font-size: var(--fs-500); display: block; margin: var(--space-1) 0; }

/* =========================================================================
   TRACK CARDS + TRACK FEATURE
   ========================================================================= */
.track-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.track-card {
  display: flex; flex-direction: column;
  background: var(--card-bg); border: var(--rule-hair) solid var(--card-border);
  border-top: var(--rule-heavy) solid var(--accent);
  transition: transform var(--dur-med) var(--ease-plate), box-shadow var(--dur-med) var(--ease-plate);
}
.track-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow); }
.track-card__media { aspect-ratio: 16 / 10; }
.track-card__media .plate { width: 100%; height: 100%; border: 0; }
.track-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.track-card__title { font-family: var(--font-display); font-size: var(--fs-600); line-height: var(--lh-snug); }
.track-card__desc { color: var(--text-secondary); font-size: var(--fs-300); flex: 1; }
.track-card__foot { display: flex; justify-content: space-between; align-items: center; border-top: var(--rule-hair) solid var(--rule); padding-top: var(--space-3); }

.track-feature { display: grid; grid-template-columns: 1.1fr 0.9fr; border: var(--rule-hair) solid var(--rule-strong); border-top: var(--rule-heavy) solid var(--accent); background: var(--bg-surface); }
.track-feature__media { position: relative; min-height: 380px; }
.track-feature__media .plate { position: absolute; inset: 0; border: 0; }
.track-feature__text { padding: var(--space-8) var(--space-7); display: flex; flex-direction: column; justify-content: center; }
.track-feature__title { font-size: clamp(var(--fs-600), 3.5vw, var(--fs-800)); line-height: var(--lh-snug); }
.track-spec { list-style: none; margin: var(--space-5) 0 0; padding: 0; border-top: var(--rule-hair) solid var(--rule); }
.track-spec li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: var(--rule-hair) solid var(--rule); font-size: var(--fs-300); }
.track-spec li::before { content: "—"; color: var(--accent-text); }

/* track switcher control row */
.track-switch { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.track-switch__btn {
  font-family: var(--font-mono); font-size: var(--fs-100); letter-spacing: var(--ls-label);
  text-transform: uppercase; padding: var(--space-2) var(--space-4);
  border: var(--rule-hair) solid var(--rule-strong); background: var(--bg-surface);
  color: var(--text-secondary); cursor: pointer; border-radius: var(--radius-0);
  transition: all var(--dur-fast) var(--ease-plate);
}
.track-switch__btn[aria-pressed="true"] { background: var(--accent); color: var(--text-on-accent); border-color: var(--accent); }

/* =========================================================================
   PROGRESSION OF THE PATH (static marketing illustration)
   ========================================================================= */
.progression { border: var(--rule-hair) solid var(--rule-strong); background: var(--bg-surface); }
.progression__head { padding: var(--space-5); border-bottom: var(--rule-med) solid var(--rule-strong); background: var(--bg-surface-3); display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); flex-wrap: wrap; }
.ladder { display: grid; grid-template-columns: repeat(3, 1fr); }
.ladder__step { position: relative; padding: var(--space-7) var(--space-6); border-right: var(--rule-hair) solid var(--rule-strong); }
.ladder__step:last-child { border-right: 0; }
.ladder__step--cur { background: var(--accent-wash); }
.ladder__num { font-family: var(--font-mono); font-size: var(--fs-100); letter-spacing: var(--ls-label); color: var(--accent-text); }
.ladder__name { font-family: var(--font-display); font-size: var(--fs-600); line-height: var(--lh-snug); margin: var(--space-2) 0 var(--space-4); }
.ladder__bar { height: var(--rule-heavy); background: var(--rule); margin-bottom: var(--space-4); position: relative; }
.ladder__bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); }
.ladder__unlocks { list-style: none; margin: 0; padding: 0; }
.ladder__unlocks li { font-size: var(--fs-300); color: var(--text-secondary); padding: var(--space-2) 0; border-bottom: var(--rule-hair) solid var(--rule); display: flex; gap: var(--space-3); }
.ladder__unlocks li:last-child { border-bottom: 0; }
.ladder__unlocks li::before { content: "✓"; color: var(--accent-text); font-weight: var(--fw-bold); }
.ladder__seal { position: absolute; top: var(--space-6); right: var(--space-6); }

/* =========================================================================
   FOOTPRINT / STAT STRIP
   ========================================================================= */
.footprint { border-block: var(--rule-med) solid var(--rule-strong); background: var(--bg-surface); }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: var(--space-7) var(--space-6); border-right: var(--rule-hair) solid var(--rule-strong); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-display); font-size: clamp(var(--fs-700), 5vw, var(--fs-800)); line-height: 1; letter-spacing: var(--ls-display); }
.stat__num .unit { color: var(--accent-text); }
.stat__label { font-family: var(--font-mono); font-size: var(--fs-100); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-muted); margin-top: var(--space-3); }
.country-row { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: var(--space-5) var(--space-6); border-top: var(--rule-hair) solid var(--rule); }

/* =========================================================================
   QUOTE / ENDORSEMENT
   ========================================================================= */
.endorse { display: grid; grid-template-columns: auto 1fr; gap: var(--space-7); padding: var(--space-8) var(--space-7); border: var(--rule-hair) solid var(--rule-strong); border-left: var(--rule-heavy) solid var(--accent); background: var(--bg-surface); }
.endorse__quote { font-family: var(--font-display); font-size: clamp(var(--fs-600), 3vw, var(--fs-700)); line-height: var(--lh-snug); letter-spacing: var(--ls-display); }
.endorse__quote .accent-word { color: var(--accent-text); font-style: italic; }
.endorse__by { margin-top: var(--space-5); display: flex; align-items: center; gap: var(--space-4); }
.endorse__by .name { font-family: var(--font-display); font-size: var(--fs-500); }
.endorse__by .role { font-family: var(--font-mono); font-size: var(--fs-100); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-muted); display: block; }

/* =========================================================================
   CTA BAND
   ========================================================================= */
.cta-band {
  position: relative; background: var(--bg-plate); color: var(--paper-100);
  border-top: var(--rule-heavy) solid var(--accent); border-bottom: var(--rule-heavy) solid var(--accent);
  padding-block: var(--space-9); overflow: hidden;
}
.cta-band__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.4fr auto; gap: var(--space-7); align-items: center; }
.cta-band__title { font-family: var(--font-display); font-size: clamp(var(--fs-700), 4.5vw, var(--fs-800)); line-height: var(--lh-snug); color: var(--paper-50); max-width: 18ch; }
.cta-band__title .accent-word { color: var(--ox-200); font-style: italic; }
.cta-band__sub { color: var(--ink-200); margin-top: var(--space-4); max-width: 44ch; }
.cta-band__actions { display: flex; flex-direction: column; gap: var(--space-3); }
.cta-band__actions .btn--ghost { color: var(--paper-100); border-color: var(--ink-400); }
.cta-band__actions .btn--ghost:hover { border-color: var(--ox-200); color: var(--paper-50); background: rgba(168,38,45,0.2); }
.cta-band__seal { position: absolute; right: -30px; top: 50%; transform: translateY(-50%); opacity: 0.5; z-index: 1; }

/* =========================================================================
   PHOTO + CAPTION (documentary)
   ========================================================================= */
.figure { border: var(--rule-hair) solid var(--rule-strong); background: var(--bg-surface); }
.figure__media { position: relative; }
.figure__media .plate { width: 100%; border: 0; }
.figure__cap { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-top: var(--rule-med) solid var(--rule-strong); }
.figure__cap .ref-no { white-space: nowrap; }
.figure__cap p { font-size: var(--fs-300); color: var(--text-secondary); }

/* =========================================================================
   FAQ / ACCORDION
   ========================================================================= */
.faq { border-top: var(--rule-med) solid var(--rule-strong); }
.faq__item { border-bottom: var(--rule-hair) solid var(--rule-strong); }
.faq__q {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-5); align-items: center;
  padding: var(--space-5) var(--space-2); color: var(--text-primary);
  font-family: var(--font-display); font-size: var(--fs-500); line-height: var(--lh-snug);
}
.faq__q .num { font-family: var(--font-mono); font-size: var(--fs-100); letter-spacing: var(--ls-label); color: var(--accent-text); }
.faq__q .mark { font-family: var(--font-body); font-size: var(--fs-600); color: var(--accent-text); transition: transform var(--dur-med) var(--ease-plate); line-height: 1; }
.faq__item[open] .faq__q .mark { transform: rotate(45deg); }
.faq__a { padding: 0 var(--space-2) var(--space-5) calc(var(--space-5) + 2.5ch); color: var(--text-secondary); max-width: var(--measure); }
/* native <details> safety */
.faq__item summary { list-style: none; } .faq__item summary::-webkit-details-marker { display: none; }

/* =========================================================================
   CONTENT + MEDIA SPLIT
   ========================================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media .plate { aspect-ratio: 3 / 2; }
.split__body .section-title { margin-bottom: var(--space-4); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { background: var(--bg-surface); border-top: var(--rule-heavy) solid var(--accent); }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-7); padding-block: var(--space-8); }
.footer__brand .lead { font-size: var(--fs-300); margin-top: var(--space-4); }
.footer__col h4 { font-family: var(--font-mono); font-size: var(--fs-100); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-muted); font-weight: var(--fw-medium); margin-bottom: var(--space-4); }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { padding: var(--space-2) 0; }
.footer__col a { text-decoration: none; color: var(--text-secondary); font-size: var(--fs-300); transition: color var(--dur-fast); }
.footer__col a:hover { color: var(--accent-text); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; padding-block: var(--space-5); border-top: var(--rule-hair) solid var(--rule-strong); font-family: var(--font-mono); font-size: var(--fs-100); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-muted); }

/* =========================================================================
   SHOWCASE SCAFFOLD (index.html only)
   ========================================================================= */
.sg-head { border-bottom: var(--rule-heavy) solid var(--accent); background: var(--bg-surface); }
.sg-head__bar { display: flex; justify-content: space-between; align-items: center; padding: var(--space-4) var(--space-6); border-bottom: var(--rule-hair) solid var(--rule-strong); }
.sg-hero { padding-block: var(--space-9); }
.sg-section { padding-block: var(--space-8); border-top: var(--rule-hair) solid var(--rule); }
.sg-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); margin-bottom: var(--space-6); flex-wrap: wrap; }
.sg-block { margin-bottom: var(--space-7); }
.sg-block__title { font-family: var(--font-mono); font-size: var(--fs-200); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-secondary); margin-bottom: var(--space-4); display: flex; align-items: center; gap: var(--space-3); }
.sg-block__title::before { content: ""; width: var(--space-5); height: var(--rule-med); background: var(--accent); }
.sg-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.sg-pair--stack { grid-template-columns: 1fr; }
.sg-note { font-size: var(--fs-300); color: var(--text-muted); max-width: var(--measure); }

/* swatches */
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: var(--space-4); }
.swatch { border: var(--rule-hair) solid var(--rule); }
.swatch__chip { height: 64px; }
.swatch__meta { padding: var(--space-3); font-family: var(--font-mono); font-size: var(--fs-100); letter-spacing: 0.04em; }
.swatch__meta .name { color: var(--text-primary); display: block; text-transform: none; letter-spacing: 0.04em; }
.swatch__meta .val { color: var(--text-muted); }

.type-spec { border-top: var(--rule-hair) solid var(--rule); }
.type-row { display: grid; grid-template-columns: 120px 1fr; gap: var(--space-5); align-items: baseline; padding: var(--space-4) 0; border-bottom: var(--rule-hair) solid var(--rule); }
.type-row .meta { font-family: var(--font-mono); font-size: var(--fs-100); letter-spacing: var(--ls-label); color: var(--text-muted); text-transform: uppercase; }

.scale-row { display: flex; align-items: flex-end; gap: var(--space-3); flex-wrap: wrap; }
.scale-box { background: var(--accent-wash); border: var(--rule-hair) solid var(--accent); display: grid; place-items: center; font-family: var(--font-mono); font-size: var(--fs-100); color: var(--accent-text); }

.elev-row { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.elev-card { background: var(--bg-surface); padding: var(--space-5); min-width: 150px; font-family: var(--font-mono); font-size: var(--fs-100); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-muted); }
.elev-card.e1 { box-shadow: var(--shadow-1); }
.elev-card.e2 { box-shadow: var(--shadow-2); }
.elev-card.ep { box-shadow: var(--shadow-plate); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1080px) {
  .hero-split, .track-feature, .dossier__body, .cta-band__inner,
  .principles, .split, .hero-type__grid { grid-template-columns: 1fr; }
  .hero-type__side { border-left: 0; border-top: var(--rule-hair) solid var(--rule-strong); padding-left: 0; padding-top: var(--space-4); }
  .track-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 0; }
  .dossier__media, .track-feature__media, .hero-split__media { min-height: 320px; }
}
@media (max-width: 760px) {
  .sg-pair { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .stat-strip, .ladder, .track-grid, .principle-grid, .footer__top { grid-template-columns: 1fr; }
  .stat, .ladder__step { border-right: 0; border-bottom: var(--rule-hair) solid var(--rule-strong); }
  .record-row { grid-template-columns: 1fr; gap: var(--space-1); }
  .endorse { grid-template-columns: 1fr; }
  .display--hero { font-size: clamp(var(--fs-700), 13vw, var(--fs-800)); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
