/* ==========================================================================
   Qlozics Technologies — site.css
   Design system: Binance.US token contract.
   The :root block below is the design system's tokens.css, pasted verbatim,
   followed by one project-additions block. No raw hex appears outside :root.
   ========================================================================== */

:root {
  /* ─── Surface (3 levels) ───────────────────────────────────────── */
  --bg: #ffffff;
  /* Pure White — primary page canvas */
  --surface: #ffffff;
  /* White cards on light sections */
  --surface-warm: #f5f5f5;
  /* Snow — input bg, alternating rows */

  /* ─── Foreground ramp (4 tiers) ────────────────────────────────── */
  --fg: #1e2026;
  /* Ink — primary text, headings */
  --fg-2: #32313a;
  /* Secondary — nav links, descriptive copy */
  --muted: #848e9c;
  /* Slate — metadata, timestamps, captions */
  --meta: #777e90;
  /* Muted — tertiary nav, footer text */

  /* ─── Border (2 levels) ────────────────────────────────────────── */
  --border: #e6e8ea;
  /* Border Light — cards, inputs, sections */
  --border-soft: #f0f1f2;
  /* Softer inner row separator */

  /* ─── Accent ───────────────────────────────────────────────────── */
  --accent: #f0b90b;
  /* Binance Yellow */
  --accent-on: #1e2026;
  /* Ink — high-contrast label on yellow */
  --accent-hover: #f59e0b;
  /* Amber — energetic hover state for yellow */
  --accent-active: #d0980b;
  /* Active Yellow — pressed state */

  /* ─── Semantic ─────────────────────────────────────────────────── */
  --success: #0ecb81;
  --warn: #eab308;
  --danger: #f6465d;

  /* ─── Typography ───────────────────────────────────────────────────
   * Token NAMES are the contract; BinancePlex is proprietary and cannot
   * ship, so the stacks resolve to faces with the same geometric,
   * weight-forward character. Values are the only deviation. */
  --font-display: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --font-body: Inter, "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --text-xs: 11px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 28px;
  --text-3xl: 34px;
  --text-4xl: 60px;

  --leading-body: 1.5;
  --leading-tight: 1.0;
  --tracking-display: 0;

  /* ─── Spacing ──────────────────────────────────────────────────── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;

  --section-y-desktop: 80px;
  --section-y-tablet: 48px;
  --section-y-phone: 32px;

  /* ─── Radius ───────────────────────────────────────────────────── */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* ─── Elevation ────────────────────────────────────────────────── */
  --elev-flat: none;
  --elev-ring: 0 0 0 1px var(--border);
  --elev-raised: 0 3px 5px 0 rgba(32, 32, 37, 0.05);

  /* ─── Focus ring ───────────────────────────────────────────────── */
  --focus-ring: 0 0 0 2px #1eaedb;

  /* ─── Motion ───────────────────────────────────────────────────── */
  --motion-fast: 150ms;
  --motion-base: 200ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);

  /* ─── Layout ───────────────────────────────────────────────────── */
  --container-max: 1200px;
  --container-gutter-desktop: 32px;
  --container-gutter-tablet: 16px;
  --container-gutter-phone: 16px;

  /* ══ Project additions ═══════════════════════════════════════════
   * Dark-panel canvases are documented design-system colors (Binance
   * Dark, Dark Card). The reference fixture applies them inline per
   * section; promoting them to names here invents no new value and
   * keeps every hex inside :root. */
  --panel: #222126;
  /* Binance Dark — dark section canvas */
  --panel-card: #2b2f36;
  /* Dark Card — cards inside dark sections */
  --panel-line: rgba(255, 255, 255, 0.12);
  --panel-line-soft: rgba(255, 255, 255, 0.07);

  --elev-hover: 0 3px 5px 5px rgba(8, 8, 8, 0.05);
  --elev-pill: 0 2px 10px -3px rgba(153, 153, 153, 0.55);
  --elev-drop: 0 24px 37px -12px rgba(0, 0, 0, 0.18);
  --elev-term: 0 24px 48px -16px rgba(32, 32, 37, 0.30);

  /* Fluid display sizes bridging the token tiers */
  --fs-h1: clamp(34px, 5.2vw, 60px);
  /* --text-3xl → --text-4xl */
  --fs-h2: clamp(26px, 3.2vw, 34px);
  /* --text-2xl → --text-3xl */

  --header-h: 64px;
  --section-y: var(--section-y-desktop);
  --gutter: var(--container-gutter-desktop);
}

/* ==========================================================================
   1. Base
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg-2);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

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

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

/* Links — never gold on light: gold text on white measures 1.80:1.
   Ink label plus a gold underline carries the accent instead. */
a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color var(--motion-base) var(--ease-standard),
    text-decoration-color var(--motion-base) var(--ease-standard);
}

a:hover {
  color: var(--accent-active);
  text-decoration-color: var(--accent-active);
}

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

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 200;
  padding: var(--space-3) var(--space-5);
  background: var(--accent);
  color: var(--accent-on);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  color: var(--accent-on);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   2. Typography
   ========================================================================== */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--fg);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

h1,
.h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.06;
}

h2,
.h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.1;
}

[data-od-id$="-cta"] h2 {
  font-size: var(--text-xl);
}

h3,
.h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.2;
}

h4,
.h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.25;
}

p {
  margin: 0;
}

/* Eyebrow is mono + Ink-secondary, never gold: the accent budget is
   spent on the nav pill and the hero primary CTA. */
.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.lead {
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 62ch;
}

.body-muted {
  color: var(--fg-2);
}

.body-sm {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--fg-2);
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.meta {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  color: var(--fg-2);
}

.measure {
  max-width: 68ch;
}

.measure-tight {
  max-width: 54ch;
}

/* ==========================================================================
   3. Layout primitives
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section-warm {
  background: var(--surface-warm);
}

.section-tight {
  padding-block: calc(var(--section-y) * 0.65);
}

/* Hard cut at every light↔dark boundary — no hairline bleeds onto a panel. */
.section+.section {
  border-top: 1px solid var(--border);
}

.section-dark+.section,
.section+.section-dark,
.section-dark+.section-dark,
.section-warm+.section-warm {
  border-top: 0;
}

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-2-1 {
  grid-template-columns: 1.15fr 0.85fr;
}

.grid-1-2 {
  grid-template-columns: 0.85fr 1.15fr;
}

.row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.stack-2>*+* {
  margin-top: var(--space-2);
}

.stack-3>*+* {
  margin-top: var(--space-3);
}

.stack-4>*+* {
  margin-top: var(--space-4);
}

.stack-5>*+* {
  margin-top: var(--space-5);
}

.stack-6>*+* {
  margin-top: var(--space-6);
}

.stack-8>*+* {
  margin-top: var(--space-8);
}

.section-head {
  max-width: 68ch;
  margin-bottom: var(--space-12);
}

.section-head .eyebrow {
  margin-bottom: var(--space-4);
}

.section-head h2+.lead {
  margin-top: var(--space-4);
}

.section-head-center {
  margin-inline: auto;
  text-align: center;
}

.section-head-center .lead {
  margin-inline: auto;
}

/* ── Dark panels ───────────────────────────────────────────────────
   `.section-dark` is not part of the seed class system, so it is
   defined here once and reused. Foreground is --surface (#ffffff),
   which needs no new token. --muted measures 4.82:1 on --panel. */
.section-dark {
  background: var(--panel);
  color: var(--surface);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--surface);
}

.section-dark .eyebrow {
  color: var(--accent);
}

/* gold-as-text: 8.87:1 — legal here */
.section-dark .lead,
.section-dark .body-muted,
.section-dark .body-sm,
.section-dark .meta {
  color: var(--muted);
}

.section-dark a {
  color: var(--surface);
  text-decoration-color: var(--accent);
}

.section-dark a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.section-dark .card {
  background: var(--panel-card);
  border-color: var(--panel-line);
  box-shadow: none;
}

.section-dark .card h3,
.section-dark .card h4 {
  color: var(--surface);
}

.section-dark .card p {
  color: var(--muted);
}

.section-dark .card:hover {
  border-color: var(--accent);
  box-shadow: none;
}

.section-dark hr,
.section-dark .rule {
  border-color: var(--panel-line);
}

.rule {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ==========================================================================
   4. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-8);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--motion-base) var(--ease-standard),
    color var(--motion-base) var(--ease-standard),
    border-color var(--motion-base) var(--ease-standard),
    box-shadow var(--motion-base) var(--ease-standard);
}

/* Primary: gold + Ink (9.03:1). Hover keeps the brand hue-shift to
   Focus Blue but holds the Ink label (6.31:1) — white would be 2.58:1. */
.btn-primary {
  background: var(--accent);
  color: var(--accent-on);
  border-color: var(--accent);
  box-shadow: var(--elev-pill);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-on);
  border-color: var(--accent-hover);
}

.btn-primary:active {
  background: var(--accent-active);
  color: var(--accent-on);
  border-color: var(--accent-active);
}

.btn-secondary {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent-hover);
  color: var(--accent-on);
  border-color: var(--accent-hover);
}

.btn-secondary:active {
  background: var(--accent-active);
  color: var(--accent-on);
  border-color: var(--accent-active);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--surface-warm);
  color: var(--fg);
  border-color: var(--fg);
}

.section-dark .btn-secondary,
.section-dark .btn-ghost {
  background: transparent;
  color: var(--surface);
  border-color: var(--panel-line);
}

.section-dark .btn-secondary:hover,
.section-dark .btn-ghost:hover {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--surface);
}

.btn[aria-disabled="true"],
.btn:disabled {
  background: var(--border);
  color: var(--muted);
  border-color: var(--border);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-form {
  border-radius: var(--radius-sm);
}

.btn-sm {
  min-height: 44px;
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
}

/* Text link with arrow — the section-level tier, never a solid button. */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.btn-arrow svg {
  transition: transform var(--motion-base) var(--ease-standard);
}

.btn-arrow:hover {
  color: var(--accent-active);
}

.btn-arrow:hover svg {
  transform: translateX(3px);
}

.section-dark .btn-arrow {
  color: var(--surface);
}

.section-dark .btn-arrow:hover {
  color: var(--accent);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

/* ==========================================================================
   5. Cards
   ========================================================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--elev-raised);
  transition: box-shadow var(--motion-base) var(--ease-standard),
    border-color var(--motion-base) var(--ease-standard);
}

/* Hover raises the shadow and warms the border — text never dims. */
.card:hover {
  box-shadow: var(--elev-hover);
  border-color: var(--accent);
}

.card-flat {
  box-shadow: none;
}

.card-quiet {
  background: var(--surface-warm);
  border-color: var(--border);
  box-shadow: none;
}

.card h3,
.card h4 {
  margin-bottom: var(--space-3);
}

.card p {
  color: var(--fg-2);
}

/* Feature card: gold line-icon in a square, no emoji anywhere. */
.feature-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-warm);
  color: var(--accent-active);
}

.section-dark .feature-mark {
  background: transparent;
  border-color: var(--panel-line);
  color: var(--accent);
}

.feature-mark svg {
  width: 22px;
  height: 22px;
}

/* ── Course card ───────────────────────────────────────────────── */
.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.course-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.course-card h3 {
  margin: 0;
  font-size: var(--text-lg);
}

.course-card__outcome {
  color: var(--fg-2);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.course-card__tools {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.course-card__foot {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.course-card__price {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}

.course-card__dur {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--fg-2);
}

/* Whole card is clickable; the title link supplies the accessible name. */
.course-card__hit::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
}

.course-card:focus-within {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.course-card:focus-within .course-card__hit:focus-visible {
  box-shadow: none;
}

/* ==========================================================================
   6. Chips, pills, tags
   ========================================================================== */

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--surface-warm);
  color: var(--fg);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.tag {
  text-transform: none;
  letter-spacing: 0.02em;
}

.section-dark .pill,
.section-dark .tag {
  background: transparent;
  color: var(--surface);
  border-color: var(--panel-line);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--accent);
}

/* Filter chips — selected is gold fill + Ink label. */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--motion-base) var(--ease-standard),
    color var(--motion-base) var(--ease-standard),
    border-color var(--motion-base) var(--ease-standard);
}

.chip:hover {
  background: var(--surface-warm);
  border-color: var(--fg);
}

.chip[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-on);
  border-color: var(--accent);
}

.chip[aria-pressed="true"]:hover {
  background: var(--accent-active);
  color: var(--accent-on);
  border-color: var(--accent-active);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ==========================================================================
   7. Header
   ========================================================================== */

.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--motion-base) var(--ease-standard);
}

.topnav.is-stuck {
  box-shadow: var(--elev-raised);
}

.topnav__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  height: 60px;
  width: auto;
}

.brand:focus-visible {
  box-shadow: var(--focus-ring);
}

.navlist {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.navlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--fg-2);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--motion-base) var(--ease-standard),
    background var(--motion-base) var(--ease-standard);
}

.navlink:hover {
  color: var(--fg);
  background: var(--surface-warm);
}

.navlink[aria-current="page"] {
  color: var(--fg);
  border-bottom-color: var(--accent);
  border-radius: 0;
}

/* ── Courses dropdown ─────────────────────────────────────────── */
.navdrop {
  position: relative;
}

.navdrop__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-3);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--fg-2);
  cursor: pointer;
  transition: color var(--motion-base) var(--ease-standard),
    background var(--motion-base) var(--ease-standard);
}

.navdrop__btn:hover {
  color: var(--fg);
  background: var(--surface-warm);
}

.navdrop__btn[aria-current="page"] {
  color: var(--fg);
  border-bottom-color: var(--accent);
  border-radius: 0;
}

.navdrop__btn svg {
  transition: transform var(--motion-base) var(--ease-standard);
}

.navdrop.is-open .navdrop__btn svg {
  transform: rotate(180deg);
}

.navdrop__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 360px;
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--elev-drop);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--motion-base) var(--ease-standard),
    transform var(--motion-base) var(--ease-standard),
    visibility var(--motion-base);
}

.navdrop.is-open .navdrop__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.navdrop__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--fg);
  font-size: var(--text-sm);
  font-weight: 600;
}

.navdrop__item:hover {
  background: var(--surface-warm);
  color: var(--fg);
}

.navdrop__item span:last-child {
  font-family: var(--font-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--fg-2);
}

.navdrop__all {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  margin-top: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-top: 1px solid var(--border-soft);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
}

.navdrop__all:hover {
  color: var(--accent-active);
}

/* Header CTA stays outlined so no viewport shows two solid gold pills. */
.nav-cta {
  flex-shrink: 0;
}

.navtoggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg);
  cursor: pointer;
}

.navtoggle:hover {
  background: var(--surface-warm);
}

/* ── Mobile drawer ────────────────────────────────────────────── */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: var(--surface);
  padding: var(--space-6) 0 var(--space-12);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--motion-base) var(--ease-standard), visibility var(--motion-base);
}

.drawer.is-open {
  transform: none;
  visibility: visible;
}

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
}

.drawer__link[aria-current="page"] {
  color: var(--fg);
}

.drawer__link[aria-current="page"] span {
  color: var(--accent-active);
}

.drawer__acc {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: var(--space-3) 0;
  border: 0;
  border-bottom: 1px solid var(--border-soft);
  background: none;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
  text-align: left;
}

.drawer__acc svg {
  transition: transform var(--motion-base) var(--ease-standard);
}

.drawer__acc[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.drawer__sub {
  display: none;
  padding: var(--space-2) 0 var(--space-4) var(--space-4);
}

.drawer__sub.is-open {
  display: block;
}

.drawer__sub a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--fg-2);
}

.drawer__sub a:hover {
  color: var(--fg);
}

.drawer__sub a span:last-child {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.drawer__cta {
  margin-top: var(--space-6);
}

.drawer__cta .btn {
  width: 100%;
}

/* ==========================================================================
   8. Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: calc(var(--section-y) * 1.1) var(--section-y);
  color: var(--fg);
}

.hero h1, .hero p {
  color: var(--fg);
}

#hero-shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 75%, transparent 100%);
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-12);
  align-items: center;
}

.hero h1 {
  margin-bottom: var(--space-5);
}

.hero .eyebrow {
  margin-bottom: var(--space-5);
}

.hero .lead {
  margin-bottom: var(--space-8);
}

.hero-center {
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
}

.hero-center .lead {
  margin-inline: auto;
}

.hero-center .cta-row {
  justify-content: center;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.hero-meta div {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.hero-meta dt,
.hero-meta__k {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.hero-meta dd,
.hero-meta__v {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--fg-2);
}

.breadcrumb a {
  color: var(--fg-2);
  text-decoration-color: var(--border);
}

.breadcrumb a:hover {
  color: var(--fg);
  text-decoration-color: var(--accent);
}

.breadcrumb span[aria-hidden] {
  color: var(--muted);
}

/* ==========================================================================
   9. Terminal / workflow motif
   ========================================================================== */

.term {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-md);
  box-shadow: var(--elev-term);
  overflow: hidden;
}

.term__bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--panel-line);
}

.term__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--panel-line);
}

.term__dot:nth-child(1) {
  background: #ff5f56;
}

.term__dot:nth-child(2) {
  background: #ffbd2e;
}

.term__dot:nth-child(3) {
  background: #27c93f;
}

.term__title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--muted);
}

.term__body {
  margin: 0;
  padding: var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.75;
  color: var(--surface);
  overflow-x: auto;
  white-space: pre;
  tab-size: 2;
}

.term__prompt {
  color: var(--accent);
}

.term__dim {
  color: var(--muted);
}

.term__ok {
  color: var(--success);
}

.term__key {
  color: var(--surface);
  font-weight: 600;
}

/* Workflow / pipeline diagram — filled nodes, never empty outlines. */
.flow {
  display: grid;
  gap: var(--space-3);
}

.flow__node {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--panel-card);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-sm);
}

.flow__idx {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-on);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
}

.flow__label {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--surface);
}

.flow__note {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--muted);
}

.flow__link {
  height: 14px;
  width: 1px;
  margin-left: 33px;
  background: var(--panel-line);
}

/* ==========================================================================
   10. Stats
   ========================================================================== */

.stat-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-6);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

.stat-unit {
  font-size: var(--text-lg);
  font-weight: 600;
}

/* ==========================================================================
   11. Quote / carousel
   ========================================================================== */

.carousel {
  position: relative;
}

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(50% - var(--space-3));
  gap: var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: var(--space-2);
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__track>* {
  scroll-snap-align: start;
}

.quote {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  height: 100%;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 0.6;
  color: var(--accent);
}

.quote p {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--fg);
}

.quote-author {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-soft);
}

.quote-author strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--fg);
}

.quote-author span {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--fg-2);
}

.carousel__controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.carousel__btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--motion-base) var(--ease-standard),
    border-color var(--motion-base) var(--ease-standard);
}

.carousel__btn:hover:not(:disabled) {
  background: var(--surface-warm);
  border-color: var(--fg);
}

.carousel__btn:disabled {
  color: var(--muted);
  border-color: var(--border-soft);
  cursor: not-allowed;
}

.carousel__dots {
  display: flex;
  gap: var(--space-2);
  margin-left: var(--space-2);
}

.carousel__dot {
  width: 28px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  cursor: pointer;
}

.carousel__dot::before {
  content: "";
  display: block;
  width: 22px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--border);
  transition: background var(--motion-base) var(--ease-standard);
}

.carousel__dot[aria-current="true"]::before {
  background: var(--accent);
}

.carousel__dot:hover::before {
  background: var(--fg-2);
}

/* ==========================================================================
   12. Accordion (curriculum + FAQ)
   ========================================================================== */

.acc {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}

.acc__item+.acc__item {
  border-top: 1px solid var(--border);
}

.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: 64px;
  padding: var(--space-4) var(--space-6);
  background: var(--surface);
  border: 0;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--fg);
  text-align: left;
  cursor: pointer;
  transition: background var(--motion-base) var(--ease-standard);
}

.acc__btn:hover {
  background: var(--surface-warm);
}

.acc__idx {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--fg-2);
  letter-spacing: 0.06em;
}

.acc__title {
  flex: 1;
}

.acc__sign {
  flex-shrink: 0;
  position: relative;
  width: 16px;
  height: 16px;
  color: var(--accent-active);
}

.acc__sign::before,
.acc__sign::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform var(--motion-base) var(--ease-standard);
}

.acc__sign::before {
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
}

.acc__sign::after {
  top: 0;
  left: 7px;
  width: 2px;
  height: 16px;
}

.acc__btn[aria-expanded="true"] .acc__sign::after {
  transform: scaleY(0);
}

.acc__panel {
  display: none;
  padding: 0 var(--space-6) var(--space-6);
}

.acc__panel.is-open {
  display: block;
}

.acc__panel ul {
  margin: 0;
  padding-left: var(--space-5);
  display: grid;
  gap: var(--space-2);
}

.acc__panel li {
  color: var(--fg-2);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.acc__panel li::marker {
  color: var(--accent-active);
}

/* ==========================================================================
   13. Log list (process steps)
   ========================================================================== */

.log-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: var(--space-6);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border);
  align-items: start;
}

.log-row:last-child {
  border-bottom: 1px solid var(--border);
}

.log-row__idx {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
  padding-top: var(--space-1);
}

.log-row h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.log-row p {
  color: var(--fg-2);
  max-width: 72ch;
}

.section-dark .log-row {
  border-color: var(--panel-line);
}

.section-dark .log-row:last-child {
  border-bottom-color: var(--panel-line);
}

.section-dark .log-row__idx {
  color: var(--accent);
}

.section-dark .log-row p {
  color: var(--muted);
}

/* ==========================================================================
   14. Table
   ========================================================================== */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.table-scroll:focus-visible {
  box-shadow: var(--focus-ring);
}

.ds-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.ds-table caption {
  text-align: left;
  padding: var(--space-4) var(--space-5);
  color: var(--fg-2);
  font-size: var(--text-sm);
}

.ds-table th,
.ds-table td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-soft);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.ds-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-warm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
}

.ds-table tbody th {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--fg);
}

.ds-table tbody tr:last-child th,
.ds-table tbody tr:last-child td {
  border-bottom: 0;
}

.ds-table tbody tr:nth-child(even) th,
.ds-table tbody tr:nth-child(even) td {
  background: var(--surface-warm);
}

.num-col {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
  color: var(--fg);
  font-weight: 600;
}

.ds-table td {
  color: var(--fg-2);
}

/* ==========================================================================
   15. Forms
   ========================================================================== */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.field label .req {
  color: var(--danger);
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.4;
  transition: border-color var(--motion-base) var(--ease-standard),
    box-shadow var(--motion-base) var(--ease-standard);
}

.textarea {
  min-height: 132px;
  resize: vertical;
  padding-top: var(--space-3);
}

.select {
  appearance: none;
  padding-right: var(--space-8);
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--muted);
}

.input:hover,
.textarea:hover,
.select:hover {
  border-color: var(--fg-2);
}

.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  border-color: var(--fg);
  box-shadow: var(--focus-ring);
  outline: none;
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"],
.select[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-help {
  font-size: var(--text-sm);
  color: var(--fg-2);
}

.field-error {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--danger);
}

.field-error.is-shown {
  display: flex;
}

.field-error svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.form-status {
  margin-top: var(--space-5);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-warm);
  font-size: var(--text-sm);
  color: var(--fg);
}

.form-status:empty {
  display: none;
}

.form-status strong {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-base);
}

.form-status .cta-row {
  margin-top: var(--space-4);
}

/* ==========================================================================
   16. Contact + map + fee card
   ========================================================================== */

.contact-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-card__k {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.contact-card__v {
  font-size: var(--text-base);
  color: var(--fg);
  line-height: 1.55;
}

.contact-card a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.map-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}

.map-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

.fee-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.fee-card__amt {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
  line-height: 1;
}

.fee-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-3);
}

.fee-card__list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--fg-2);
  line-height: 1.6;
}

.fee-card__list svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--accent-active);
}

.section-dark .fee-card__list svg {
  color: var(--accent);
}

/* Facility spec block — data-forward, not a grey image slot. */
.spec {
  display: grid;
  gap: 0;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.spec__row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--panel-line-soft);
}

.spec__row:last-child {
  border-bottom: 0;
}

.spec__k {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec__v {
  font-size: var(--text-sm);
  color: var(--surface);
  line-height: 1.6;
}

/* ==========================================================================
   17. Footer
   ========================================================================== */

.pagefoot {
  background: var(--panel);
  color: var(--surface);
  padding-block: var(--section-y) var(--space-8);
}

.pagefoot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: var(--space-12) var(--space-8);
}

.pagefoot h2 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-5);
}

.pagefoot ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-1);
}

.pagefoot li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--surface);
  font-size: var(--text-sm);
  text-decoration: none;
}

.pagefoot li a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.pagefoot li a span {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  margin-left: var(--space-2);
}

.pagefoot li a:hover span {
  color: var(--accent);
}

.pagefoot address a {
  color: var(--surface);
  text-decoration-color: var(--accent);
}

.pagefoot address a:hover {
  color: var(--accent);
}

.pagefoot__blurb {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.6;
  max-width: 34ch;
  margin-top: var(--space-5);
}

/* Text lockup — the raster wordmark's crimson measures 1.80:1 on the
   dark panel, so dark surfaces get a type lockup instead. */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}

.lockup svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.lockup__word {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--surface);
}

.lockup__word b {
  color: var(--accent);
  font-weight: 700;
}

.social {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.social a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-sm);
  color: var(--surface);
  text-decoration: none;
  transition: background var(--motion-base) var(--ease-standard),
    border-color var(--motion-base) var(--ease-standard),
    color var(--motion-base) var(--ease-standard);
}

.social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-on);
}

.social svg {
  width: 18px;
  height: 18px;
}

.pagefoot__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--panel-line);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--muted);
}

.pagefoot__bottom nav {
  display: flex;
  gap: var(--space-5);
}

.pagefoot__bottom a {
  color: var(--muted);
  text-decoration: none;
}

.pagefoot__bottom a:hover {
  color: var(--accent);
}

/* ==========================================================================
   18. Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--motion-base) var(--ease-standard),
    transform var(--motion-base) var(--ease-standard);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   19. Responsive — design-system ladder 1024 / 897 / 768 / 600 / 425
   ========================================================================== */

@media (max-width: 1024px) {
  :root {
    --section-y: 64px;
  }

  .navlist {
    gap: 0;
  }

  .navlink,
  .navdrop__btn {
    padding: 0 var(--space-2);
  }

  .stat-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-8);
  }

  .pagefoot__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 896px) {
  :root {
    --section-y: var(--section-y-tablet);
    --gutter: var(--container-gutter-tablet);
  }

  .navlist,
  .nav-cta {
    display: none;
  }

  .navtoggle {
    display: flex;
  }

  .hero-split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .grid-2-1,
  .grid-1-2,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    margin-bottom: var(--space-8);
  }
}

@media (max-width: 768px) {
  .carousel__track {
    grid-auto-columns: 86%;
  }

  .log-row {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .spec__row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .map-card iframe {
    height: 300px;
  }
}

@media (max-width: 600px) {
  :root {
    --section-y: var(--section-y-phone);
    --gutter: var(--container-gutter-phone);
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-2-1,
  .grid-1-2 {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .pagefoot__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .cta-row .btn {
    width: 100%;
  }

  .hero-meta {
    gap: var(--space-4) var(--space-5);
  }

  .term__body {
    font-size: var(--text-xs);
    padding: var(--space-4);
  }

  .acc__btn {
    padding: var(--space-4);
    gap: var(--space-3);
  }

  .acc__panel {
    padding: 0 var(--space-4) var(--space-5);
  }

  .carousel__track {
    grid-auto-columns: 92%;
  }
}

@media (max-width: 425px) {
  .stat-row {
    grid-template-columns: 1fr;
  }

  .brand img {
    height: 48px;
  }

  .navdrop__panel {
    min-width: 0;
  }
}

/* ==========================================================================
   20. Reduced motion — kills reveals and transitions entirely
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .btn-arrow:hover svg {
    transform: none;
  }
}