/* ==========================================================================
   XP-LABS — "Kinetic Forge"
   Hand-authored CSS. No build step, no runtime dependencies.
   Order: tokens → reset → primitives → components → sections → motion
   ========================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  /* Surfaces: depth comes from tonal layering, not shadows */
  --surface-0: #07080d;   /* page floor           */
  --surface-1: #0b0c11;   /* alternating sections */
  --surface-2: #0d0e12;   /* cards, modules       */
  --surface-3: #12141a;   /* raised / hover       */

  --stroke:        #1a1c23;  /* ghost border      */
  --stroke-strong: #262933;

  --text:       #f0efed;
  --text-muted: #b9cbbb;
  --text-dim:   #849586;

  --primary:     #0cf993;
  --primary-dim: #00e385;
  --primary-deep:#00522d;
  --on-primary:  #07080d;

  --error:      #ffb4ab;
  --error-bg:   rgba(147, 0, 10, .18);

  /* Shape — "soft-mechanical" */
  --r-sm:  2px;
  --r:     4px;
  --r-lg:  8px;
  --r-pill: 999px;

  /* Rhythm — 4px base unit */
  --gutter:     24px;
  --container:  1440px;
  --page-x:     clamp(16px, 5vw, 64px);
  --section-y:  clamp(72px, 9vw, 120px);

  /* Type */
  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Geist', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --t-display: clamp(2.5rem, 1rem + 4.6vw, 4.5rem);      /* 40 → 72 */
  --t-h1:      clamp(2rem, 1.25rem + 2.4vw, 3rem);       /* 32 → 48 */
  --t-h2:      clamp(1.5rem, 1.2rem + 1.2vw, 2rem);      /* 24 → 32 */
  --t-lede:    clamp(1rem, .95rem + .35vw, 1.125rem);    /* 16 → 18 */
  --t-body:    1rem;

  --header-h: 72px;
  --ease:     cubic-bezier(.22, .61, .36, 1);
  --glow:     0 0 25px rgba(12, 249, 147, .2);
}

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

* { margin: 0; }

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

body {
  min-height: 100svh;
  background: var(--surface-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

input, select, textarea, button { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

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

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* Anchors must clear the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

.skip-link {
  position: absolute;
  left: 50%;
  top: 8px;
  z-index: 200;
  transform: translate(-50%, -180%);
  padding: 12px 20px;
  background: var(--primary);
  color: var(--on-primary);
  font: 500 14px/1 var(--font-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: var(--r);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ── Primitives ─────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--page-x);
}

.section { padding-block: var(--section-y); }
.section--alt {
  background: var(--surface-1);
  border-block: 1px solid var(--stroke);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gutter);
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 32px;
  margin-bottom: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--stroke);
}
.section__head-note {
  max-width: 34ch;
  color: var(--text-dim);
  font-size: .9375rem;
}

.headline-lg {
  font-family: var(--font-display);
  font-size: var(--t-h1);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.headline-md {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.lede {
  font-size: var(--t-lede);
  line-height: 1.6;
  color: var(--text-muted);
}

.label {
  font-family: var(--font-mono);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.label--muted { color: var(--text-dim); }

.is-accent { color: var(--primary); }
.is-muted  { color: var(--text-muted); }

.rule {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--primary);
  margin: 20px 0 24px;
}

/* Pulsing "power-on" indicator */
.dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: var(--r-pill);
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(12, 249, 147, .55);
  animation: pulse 2.4s var(--ease) infinite;
}
.dot--sm { width: 6px; height: 6px; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(12, 249, 147, .5); }
  70%  { box-shadow: 0 0 0 8px rgba(12, 249, 147, 0); }
  100% { box-shadow: 0 0 0 0 rgba(12, 249, 147, 0); }
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), box-shadow .25s var(--ease),
              transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn__icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s var(--ease);
}
.btn:hover .btn__icon { transform: translateX(3px); }

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 500;
}
.btn--primary:hover { background: #2bffa6; box-shadow: var(--glow); }

.btn--ghost {
  border-color: rgba(240, 239, 237, .3);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--text);
  background: rgba(240, 239, 237, .06);
}

.btn--outline {
  border-color: var(--primary);
  color: var(--primary);
}
.btn--outline:hover {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--glow);
}

/* Not clickable yet — used for systems that have not launched. */
.btn.is-disabled {
  border-color: var(--stroke);
  background: none;
  color: var(--text-muted);
  cursor: default;
  pointer-events: none;
}
.btn.is-disabled .btn__icon { opacity: .7; }
.btn.is-disabled:active { transform: none; }

/* ── Chips & tags ───────────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  background: var(--surface-0);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
}
.chip--live {
  background: rgba(13, 14, 18, .7);
  backdrop-filter: blur(12px);
  color: var(--primary);
}
.chip__icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}
.tag {
  padding: 5px 11px;
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  background: var(--surface-3);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ── Modules & cards ────────────────────────────────────────────────────── */
.module {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  transition: border-color .5s var(--ease);
}
.module:hover { border-color: rgba(12, 249, 147, .5); }

.card {
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.card p { color: var(--text-muted); }
.card__aura {
  position: absolute;
  inset-block-start: -60px;
  inset-inline-end: -60px;
  width: 200px;
  height: 200px;
  border-radius: var(--r-pill);
  background: rgba(12, 249, 147, .07);
  filter: blur(50px);
  pointer-events: none;
  transition: background-color .7s var(--ease);
}
.card:hover .card__aura { background: rgba(12, 249, 147, .14); }

.card-grid {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  margin-top: var(--gutter);
}

/* ── Site header ────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--stroke);
}
/* The glass lives on a pseudo-element: backdrop-filter on the header itself
   would make it the containing block for the fixed-position mobile drawer. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 8, 13, .8);
  backdrop-filter: blur(12px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gutter);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: var(--r);
}
.brand__word {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__link {
  position: relative;
  display: inline-block;
  padding-block: 6px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: color .3s var(--ease);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav__link:hover,
.site-nav__link.is-active { color: var(--primary); }
.site-nav__link:hover::after,
.site-nav__link.is-active::after { transform: scaleX(1); }

.site-nav__cta { padding: 11px 22px; }

.nav-toggle {
  display: none;
  padding: 10px;
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  background: var(--surface-2);
  cursor: pointer;
}
.nav-toggle__bars {
  display: grid;
  gap: 5px;
  width: 20px;
}
.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(7, 8, 13, .6);
  backdrop-filter: blur(2px);
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 104px) clamp(72px, 10vw, 128px);
}
.hero__aura {
  position: absolute;
  inset: -25% -10% auto;
  height: 90%;
  background: radial-gradient(ellipse at 50% 40%, rgba(12, 249, 147, .13), transparent 62%);
  pointer-events: none;
}
.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(26, 28, 35, .55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 28, 35, .55) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 72%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--t-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.hero__lede {
  max-width: 52ch;
  font-size: var(--t-lede);
  line-height: 1.6;
  color: var(--text-muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px clamp(24px, 4vw, 48px);
  margin-top: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--stroke);
  width: 100%;
}
.hero__stats dt {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.hero__stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
}
.hero__visual-glow {
  position: absolute;
  width: min(75%, 420px);
  aspect-ratio: 1;
  border-radius: var(--r-pill);
  background: rgba(12, 249, 147, .2);
  filter: blur(90px);
}
.hero__logo {
  position: relative;
  width: min(100%, 480px);
  height: auto;
}

/* ── Split layout (Vision, Contact) ─────────────────────────────────────── */
.split {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
}
.split__aside { align-self: start; }
.split__body { padding: clamp(28px, 4vw, 48px); }

.quote {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.module__cols {
  display: grid;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--stroke);
}
.module__cols h3 { margin-bottom: 8px; }
.module__cols p { color: var(--text-muted); }

/* ── Feature (flagship product) ─────────────────────────────────────────── */
.feature {
  display: grid;
  overflow: hidden;
}
.feature__aura {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: var(--r-pill);
  background: rgba(12, 249, 147, .06);
  filter: blur(70px);
  pointer-events: none;
  transition: background-color .7s var(--ease);
}
.feature:hover .feature__aura { background: rgba(12, 249, 147, .12); }

.feature__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(28px, 5vw, 64px);
}
.feature__title {
  margin: 24px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.2rem + 4vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}
.feature__lede {
  max-width: 46ch;
  margin-bottom: 28px;
  font-size: var(--t-lede);
  line-height: 1.6;
  color: var(--text-muted);
}
.feature__visual {
  display: grid;
  place-items: center;
  padding: clamp(28px, 4vw, 56px);
  background:
    radial-gradient(circle at 50% 50%, rgba(52, 52, 58, .5), transparent 70%),
    var(--surface-0);
  border-top: 1px solid var(--stroke);
}
/* <picture> stretches to the column, so centre the image inside it rather than
   relying on the grid alone — otherwise the logo hangs off to the left. */
.feature__visual picture {
  display: block;
  width: 100%;
}
.feature__visual img {
  display: block;
  width: min(100%, 320px);
  margin-inline: auto;
  border-radius: var(--r);
  transition: transform .7s var(--ease);
}
.feature:hover .feature__visual img { transform: scale(1.04); }

/* ── Forward momentum + terminal ────────────────────────────────────────── */
.momentum {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.momentum__copy { display: grid; gap: 20px; justify-items: start; }
.momentum__status { display: inline-flex; align-items: center; gap: 12px; }
.momentum__status .spin {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  animation: spin 4s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.terminal {
  background: rgba(13, 14, 18, .7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface-0);
  border-bottom: 1px solid var(--stroke);
}
.terminal__title {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.terminal__body {
  padding: clamp(20px, 3vw, 32px);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .05em;
  color: var(--text-dim);
}
.terminal__body p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--stroke);
}
.terminal__body b { font-weight: 500; }
.terminal__meter {
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  overflow: hidden;
}
.terminal__meter i {
  display: block;
  width: 88%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-deep), var(--primary));
  border-radius: inherit;
}
.terminal__caret {
  border: 0;
  padding: 0;
  margin: 20px 0 0;
  color: var(--primary);
  animation: blink 1.2s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── Contact ────────────────────────────────────────────────────────────── */
.contact-meta {
  display: grid;
  gap: 20px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--stroke);
}
.contact-meta dt { margin-bottom: 6px; }
.contact-meta dd { margin: 0; color: var(--text-muted); }
.contact-meta a { text-decoration: underline; text-underline-offset: 3px; }

.form { display: grid; gap: 20px; }
.form__row { display: grid; gap: 20px; }

.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field label span { color: var(--primary); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface-0);
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  color: var(--text);
  font-size: .9375rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 132px; }
.field select {
  appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%),
                    linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: right 20px center, right 14px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.field ::placeholder {
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: var(--text-dim);
  opacity: .8;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--glow);
}
.field.has-error input,
.field.has-error textarea { border-color: var(--error); }
.field__error {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--error);
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.form__note { max-width: 34ch; text-transform: none; letter-spacing: 0; font-size: .75rem; }
.form__note a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }

/* Honeypot — off-screen but not display:none, so bots still fill it */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid var(--stroke);
  border-left-width: 3px;
  border-radius: var(--r);
  font-size: .9375rem;
  color: var(--text-muted);
}
.alert strong { display: block; margin-bottom: 2px; color: var(--text); }
.alert--ok    { border-left-color: var(--primary); background: rgba(12, 249, 147, .06); }
.alert--error { border-left-color: var(--error); background: var(--error-bg); }

/* ── Prose (privacy / terms / 404) ──────────────────────────────────────── */
.page-head {
  padding-block: calc(var(--section-y) * .7) clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--stroke);
  background: var(--surface-1);
}
.page-head h1 {
  font-family: var(--font-display);
  font-size: var(--t-h1);
  font-weight: 600;
  letter-spacing: -.01em;
}
.page-head .label { margin-top: 12px; }

.prose {
  max-width: 68ch;
  padding-block: var(--section-y);
  color: var(--text-muted);
}
.prose h2 {
  margin: 48px 0 12px;
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-bottom: 16px; line-height: 1.7; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

.error-page {
  min-height: 62vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  text-align: center;
  padding-block: var(--section-y);
}
.error-page__code {
  font-family: var(--font-display);
  font-size: var(--t-display);
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--surface-1);
  border-top: 1px solid var(--stroke);
}
/* Two rows: brand and links share the top row, the legal line sits under a
   hairline. Keeps the links anchored to an edge instead of floating in the
   middle of the band. */
.site-footer__inner {
  display: grid;
  gap: 28px;
  padding-block: clamp(40px, 5vw, 56px);
}
.site-footer__word {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.site-footer__tag { margin-top: 6px; color: var(--text-dim); font-size: .875rem; }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}
.site-footer__links a {
  color: var(--text-muted);
  font-size: .9375rem;
  text-decoration: none;
  transition: color .25s var(--ease);
}
.site-footer__links a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-footer__links .is-accent { color: var(--primary); font-weight: 500; }
.site-footer__legal {
  padding-top: 24px;
  border-top: 1px solid var(--stroke);
  color: var(--text-dim);
  font-size: .8125rem;
}

/* ── Scroll reveal ──────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════════════════════════════════════
   Responsive — mobile first, then tablet (≥640), then desktop (≥1024)
   ══════════════════════════════════════════════════════════════════════════ */

/* Mobile: nav collapses into a drawer */
@media (max-width: 899px) {
  /* Above the drawer, so the close affordance stays reachable */
  .nav-toggle { display: block; position: relative; z-index: 96; }

  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 95;
    width: min(86vw, 340px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    padding: calc(var(--header-h) + 24px) 24px 32px;
    background: var(--surface-2);
    border-left: 1px solid var(--stroke);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .35s var(--ease), visibility .35s var(--ease);
    overflow-y: auto;
  }
  .site-nav.is-open { transform: none; visibility: visible; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav__list li + li { border-top: 1px solid var(--stroke); }
  .site-nav__link {
    display: block;
    padding: 18px 4px;
    font-size: 1rem;
  }
  .site-nav__link::after { display: none; }
  .site-nav__cta { margin-top: 24px; width: 100%; }
}

/* Tablet and up */
@media (min-width: 640px) {
  .form__row { grid-template-columns: 1fr 1fr; }
  .module__cols { grid-template-columns: 1fr 1fr; }
  .contact-meta { grid-template-columns: 1fr 1fr; }
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    column-gap: 48px;
    align-items: center;
  }
  .site-footer__links { justify-content: flex-end; }
  .site-footer__legal { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .hero { min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; }
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .hero__stats { width: auto; }

  .feature { grid-template-columns: 1fr 1fr; }
  .feature__visual {
    border-top: 0;
    border-left: 1px solid var(--stroke);
  }

  /* 12-column intent: 4 for the aside, 8 for the body */
  .split { grid-template-columns: 4fr 8fr; }
  .split__aside {
    position: sticky;
    top: calc(var(--header-h) + 48px);
  }
  .split--contact .split__aside { position: static; }
  .momentum { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); }
}

/* ── Motion & contrast preferences ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media (prefers-contrast: more) {
  :root {
    --stroke: #3b4a3e;
    --text-muted: #d7e2d8;
    --text-dim: #b9cbbb;
  }
}

@media print {
  .site-header, .nav-scrim, .hero__aura, .hero__grid-lines, .form { display: none; }
  body { background: #fff; color: #000; }
}
