/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:      #080E18;
  --fg:      #E8EEF8;
  --mid:     #6A82A0;
  --faint:   #0D1825;
  --divider: rgba(100,155,215,0.1);
  --accent:  #C9A800;
  --adim:    rgba(201,168,0,0.1);
  --f-disp:  'Syne', sans-serif;
  --f-body:  'Lora', serif;
  --f-mono:  'IBM Plex Mono', monospace;

  /* layout grid — everything snaps to --u (24px) or multiples */
  --u:    24px;   /* base grid unit — matches background dot spacing */
  --u2:   48px;   /* 2 units */
  --u3:   72px;   /* 3 units */
  --u4:   96px;   /* 4 units */
  --pad:  var(--u2); /* content left edge = 2 grid units from viewport */

  --max-prose: 720px;   /* 30×24 — prose column */
  --max-wide:  1104px;  /* 46×24 — wide container */
}

/* mobile: 1 unit of padding */
@media (max-width: 640px) {
  :root { --pad: var(--u); }
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 50% 42%, transparent 22%, rgba(4,8,18,0.88) 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,10,0.055) 2px,
      rgba(0,0,10,0.055) 4px
    ),
    radial-gradient(circle, rgba(100,155,215,0.16) 1px, transparent 1px),
    linear-gradient(rgba(70,125,195,0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70,125,195,0.065) 1px, transparent 1px);
  background-size:
    100% 100%,
    100% 4px,
    24px 24px,
    120px 120px,
    120px 120px;
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--f-disp); font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1rem; font-weight: 500; }
p { line-height: 1.7; }

.mono { font-family: var(--f-mono); }
.mono-label {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}
.accent-comment {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0.85;
}
.mid-comment {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--mid);
}

/* ── NAV — height 48px = 2×24 ───────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  height: var(--u2);   /* 48px */
  background: rgba(6,11,22,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(70,125,195,0.18);
  box-shadow: 0 1px 0 rgba(70,125,195,0.08), 0 4px 24px rgba(4,8,18,0.6);
  gap: var(--u);
}
.nav-wordmark {
  font-family: var(--f-disp);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fg);
  flex-shrink: 0;
}
.nav-wordmark span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  padding: 6px 10px;
  border-radius: 2px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--fg); background: var(--faint); }
.nav-links a.active { color: var(--accent); }
.nav-status {
  font-family: var(--f-mono);
  font-size: 0.55rem;
  color: var(--accent);
  opacity: 0.7;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  display: none;
}
@media (min-width: 640px) { .nav-status { display: block; } }

/* ── HAMBURGER TOGGLE (mobile only) ────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  padding: 6px;
  flex-shrink: 0;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--fg);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ── VIEWS ──────────────────────────────────────────────── */
.view { display: none; }
.view.active { display: block; }

/* ── SECTION CHROME — left-aligned, grid-snapped ────────── */
.section-header {
  padding: var(--u4) var(--pad) var(--u2);  /* 96px top, 48px bottom */
  max-width: var(--max-wide);
}
.section-eyebrow {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--u);   /* 24px */
}
.section-title { margin-bottom: var(--u); }
.section-intro {
  color: var(--mid);
  max-width: var(--max-prose);
  font-size: 1.05rem;
}
.divider {
  border: none;
  border-top: 1px solid var(--divider);
  margin: var(--u3) 0;   /* 72px */
}

/* ── HOME VIEW ──────────────────────────────────────────── */
#view-home {
  display: none;
  flex-direction: column;
}
#view-home.active { display: flex; }

.home-hero {
  display: flex;
  flex-direction: column;
  padding: var(--u4) var(--pad) var(--u3);   /* 96 top, 72 bottom */
  max-width: var(--max-wide);
  width: 100%;
}
@media (max-width: 640px) {
  .home-hero { padding: var(--u3) var(--pad) var(--u2); }
}
.home-version {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--mid);
  margin-bottom: var(--u3);   /* 72px — room to breathe before title */
}
.home-version span { color: var(--accent); margin-left: 6px; }
.home-title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.1;
  max-width: 800px;
  margin-bottom: var(--u3);   /* 72px — generous gap before terminal */
}
.home-title em { font-style: normal; color: var(--accent); }

/* ── TERMINAL TYPEWRITER ─────────────────────────────────── */
.home-terminal {
  max-width: 600px;
  margin-bottom: var(--u2);   /* 48px before status comment */
  min-height: 12rem;           /* prevent layout jump as lines appear */
}
.terminal-line {
  font-family: var(--f-mono);
  font-size: clamp(0.78rem, 1.2vw, 0.88rem);
  color: var(--mid);
  line-height: 1.9;
  white-space: pre-wrap;
}
.terminal-line.active::after {
  content: '█';
  color: var(--accent);
  animation: blink-cursor 0.85s step-end infinite;
  margin-left: 1px;
}
.terminal-line.gap { height: var(--u); }   /* blank line between paragraphs */
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.home-comment {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.8s ease;
}
.home-comment.visible { opacity: 0.75; }

.home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  width: 100%;
}
.home-card {
  display: flex;
  flex-direction: column;
  gap: var(--u);   /* 24px between card elements */
  padding: var(--u2) var(--pad) var(--u3);   /* 48px top, 72px bottom */
  background: var(--bg);
  border-right: 1px solid var(--divider);
  transition: background 0.2s;
  cursor: pointer;
}
.home-card:last-child { border-right: none; }
.home-card:hover { background: var(--faint); }
.home-card:hover .card-arrow { color: var(--accent); transform: translateX(4px); }
.card-number {
  font-family: var(--f-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: var(--mid);
}
.card-title { font-family: var(--f-disp); font-size: 1.1rem; font-weight: 700; }
.card-desc { color: var(--mid); font-size: 0.875rem; line-height: 1.6; flex: 1; }
.card-arrow {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--mid);
  transition: color 0.15s, transform 0.15s;
  display: inline-block;
}

.home-footer {
  padding: var(--u) var(--pad);   /* 24px */
  border-top: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--u);
  flex-wrap: wrap;
  width: 100%;
}
.home-footer-about {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--mid);
  letter-spacing: 0.04em;
}
.home-footer-links { display: flex; gap: var(--u); }
.home-footer-links a {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--mid);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.15s;
}
.home-footer-links a:hover { color: var(--accent); }

/* ── RESEARCH VIEW ──────────────────────────────────────── */
.filter-bar {
  padding: var(--u) var(--pad);   /* 24px */
  border-bottom: 1px solid var(--divider);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-btn {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  padding: 5px 10px;
  border: 1px solid var(--divider);
  border-radius: 2px;
  background: transparent;
  transition: all 0.15s;
}
.filter-btn:hover { color: var(--fg); border-color: rgba(100,155,215,0.3); }
.filter-btn.active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--adim);
}

.landscape-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(312px, 1fr)); /* 13×24 min */
  gap: var(--u);   /* 24px — one full grid unit between cards */
  padding: var(--u2) var(--pad);   /* 48px */
  max-width: var(--max-wide);
}
.org-card {
  background: var(--faint);
  border: 1px solid var(--divider);
  border-radius: 2px;
  padding: var(--u);   /* 24px */
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s;
}
.org-card:hover { border-color: rgba(100,155,215,0.25); }
.org-card.hidden { display: none; }
.org-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.org-name {
  font-family: var(--f-disp);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}
.org-star {
  font-family: var(--f-mono);
  font-size: 0.55rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 6px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  white-space: nowrap;
  opacity: 0.85;
  flex-shrink: 0;
}
.org-parent {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  color: var(--mid);
  letter-spacing: 0.04em;
}
.org-cat-badge {
  font-family: var(--f-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  padding: 3px 8px;
  background: rgba(100,155,215,0.06);
  border: 1px solid var(--divider);
  border-radius: 2px;
  display: inline-block;
}
.org-desc {
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.65;
  flex: 1;
}
.org-merit {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: var(--u);   /* 24px */
  border-top: 1px solid var(--divider);
}
.org-merit-label {
  font-family: var(--f-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--mid);
  opacity: 0.7;
}
.org-merit p {
  font-size: 0.82rem;
  color: var(--mid);
  line-height: 1.65;
  font-style: italic;
}
.org-gap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px var(--u);
  border-left: 2px solid var(--accent);
  background: rgba(201,168,0,0.05);
}
.org-gap-label {
  font-family: var(--f-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  opacity: 0.8;
}
.org-gap p {
  font-size: 0.85rem;
  color: var(--fg);
  line-height: 1.65;
}
.org-link {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  color: var(--mid);
  letter-spacing: 0.04em;
  transition: color 0.15s;
}
.org-link:hover { color: var(--accent); }

/* White space section */
.whitespace-section {
  padding: var(--u3) var(--pad);   /* 72px */
  max-width: var(--max-wide);
}
.whitespace-section h3 { margin-bottom: var(--u); }
.whitespace-section .section-eyebrow { margin-bottom: var(--u); }
.whitespace-intro {
  color: var(--mid);
  font-size: 0.9rem;
  margin-bottom: var(--u2);   /* 48px */
  max-width: 500px;
}
.whitespace-list {
  list-style: none;
  display: grid;
  gap: 1px;
  background: var(--divider);
  max-width: 720px;   /* 30×24 — aligns to prose column */
}
.whitespace-item {
  display: flex;
  align-items: flex-start;
  gap: var(--u);   /* 24px */
  padding: var(--u) var(--u);   /* 24px all round */
  background: var(--faint);
  transition: background 0.15s;
}
.whitespace-item:hover { background: rgba(201,168,0,0.04); }
.ws-num {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  flex-shrink: 0;
  margin-top: 3px;
}
.ws-text { font-size: 0.9rem; line-height: 1.6; color: var(--fg); }

/* References section */
.references-section {
  padding: var(--u3) var(--pad);   /* 72px */
  max-width: var(--max-wide);
  border-top: 1px solid var(--divider);
}
.ref-group { margin-bottom: var(--u2); }   /* 48px */
.ref-group-title {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--u);   /* 24px */
}
.ref-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.ref-item {
  padding: var(--u) 0;   /* 24px */
  border-bottom: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ref-item:last-child { border-bottom: none; }
.ref-title-author {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.ref-title { font-family: var(--f-disp); font-size: 0.9rem; font-weight: 700; }
.ref-author { font-family: var(--f-mono); font-size: 0.65rem; color: var(--mid); }
.ref-year { font-family: var(--f-mono); font-size: 0.6rem; color: var(--mid); opacity: 0.6; }
.ref-note { font-size: 0.8rem; color: var(--mid); line-height: 1.6; max-width: 600px; }

/* ── PROSPECTUS VIEW ────────────────────────────────────── */
.prospectus-body {
  max-width: var(--max-prose);
  padding: 0 var(--pad) var(--u4);   /* 96px bottom */
}
.prosp-section {
  padding: var(--u2) 0;   /* 48px */
  border-bottom: 1px solid var(--divider);
}
.prosp-section:last-child { border-bottom: none; }
.prosp-section h3 { margin-bottom: var(--u); color: var(--fg); }
.prosp-section p {
  color: var(--mid);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: var(--u);   /* 24px */
}
.prosp-section p:last-child { margin-bottom: 0; }
.prosp-section ul, .prosp-section ol {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--u);   /* 24px */
  margin-top: var(--u);
}
.prosp-section li {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.65;
  padding-left: var(--u);   /* 24px — indent aligns to grid */
  position: relative;
}
.prosp-section li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--f-mono);
}
.phases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(216px, 1fr));  /* 9×24 min */
  gap: var(--u);   /* 24px */
  margin-top: var(--u);
}
.phase-card {
  background: var(--faint);
  border: 1px solid var(--divider);
  border-radius: 2px;
  padding: var(--u);   /* 24px */
  display: flex;
  flex-direction: column;
  gap: var(--u);   /* 24px */
}
.phase-label {
  font-family: var(--f-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.phase-title { font-family: var(--f-disp); font-size: 0.95rem; font-weight: 700; }
.phase-items { list-style: none !important; margin-top: 0 !important; gap: 12px !important; }
.phase-items li { font-size: 0.8rem !important; padding-left: 14px !important; }
.prosp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--u);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding: 10px var(--u);   /* 10px 24px */
  border: 1px solid var(--accent);
  border-radius: 2px;
  transition: background 0.15s;
}
.prosp-link:hover { background: var(--adim); }

/* ── JOIN VIEW ──────────────────────────────────────────── */
.join-tabs {
  display: flex;
  gap: 1px;
  background: var(--divider);
  border-bottom: 1px solid var(--divider);
  flex-wrap: wrap;
}
.join-tab {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--u) var(--pad);   /* 24px top/bottom */
  background: var(--bg);
  cursor: pointer;
  transition: background 0.15s;
  text-align: left;
}
.join-tab:hover { background: var(--faint); }
.join-tab.active { background: var(--faint); border-bottom: 2px solid var(--accent); }
.join-tab-label {
  font-family: var(--f-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}
.join-tab.active .join-tab-label { color: var(--accent); }
.join-tab-title { font-family: var(--f-disp); font-size: 0.85rem; font-weight: 700; color: var(--fg); }

.join-panels { padding: 0 var(--pad); }
.join-panel { display: none; padding: var(--u2) 0; max-width: var(--max-prose); }
.join-panel.active { display: block; }
.join-panel p {
  color: var(--mid);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: var(--u2);   /* 48px */
  max-width: 500px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--u);   /* 24px */
}
.form-label {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
}
.form-input,
.form-select,
.form-textarea {
  background: var(--faint);
  border: 1px solid var(--divider);
  border-radius: 2px;
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 0.9rem;
  padding: 12px var(--u);
  transition: border-color 0.15s;
  width: 100%;
  max-width: 480px;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(201,168,0,0.5);
}
.form-select { appearance: none; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 96px; font-size: 0.85rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--u);   /* 24px */
  max-width: 480px;
}
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.form-submit {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 12px var(--u);
  cursor: pointer;
  transition: opacity 0.15s;
}
.form-submit:hover { opacity: 0.85; }

.form-success {
  display: none;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--accent);
  padding: 12px var(--u);
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--adim);
  margin-top: var(--u);
  max-width: 480px;
}

/* ── PAGE FOOTER ────────────────────────────────────────── */
.page-footer {
  padding: var(--u) var(--pad);   /* 24px */
  border-top: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--u);
  flex-wrap: wrap;
}
.footer-meta {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  color: var(--mid);
  opacity: 0.5;
  letter-spacing: 0.04em;
}
.footer-links { display: flex; gap: var(--u); }
.footer-links a {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  color: var(--mid);
  letter-spacing: 0.05em;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--accent); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 640px) {

  /* Nav — hamburger + dropdown */
  .nav-toggle { display: flex; }
  .site-nav { flex-wrap: wrap; gap: 0; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 3;
    padding: 0;
    border-top: 1px solid var(--divider);
    background: rgba(6,11,22,0.96);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--divider); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    display: block;
    padding: 14px var(--pad);
    font-size: 0.7rem;
    white-space: nowrap;
  }

  /* Home */
  .home-cards { grid-template-columns: 1fr; }
  .home-card { border-right: none; border-bottom: 1px solid var(--divider); }
  .home-card:last-child { border-bottom: none; }
  .home-footer { flex-direction: column; align-items: flex-start; }
  .home-version { margin-bottom: var(--u2); }

  /* Section header — reduce top breathing room */
  .section-header { padding-top: var(--u2); }

  /* Research */
  .landscape-grid {
    grid-template-columns: 1fr;
    padding: var(--u) var(--pad);
  }
  .whitespace-section,
  .references-section { padding: var(--u2) var(--pad); }

  /* Prospectus */
  .phases-grid { grid-template-columns: 1fr; }

  /* Join tabs — 2×2 wrap on small screens */
  .join-tab { padding: var(--u) var(--u); min-width: 140px; }

  /* Forms */
  .form-input,
  .form-select,
  .form-textarea { max-width: 100%; }
  .form-success { max-width: 100%; }
}
