/* ============================================================
   AUN Digital — design system
   Dark, engineering-grade visual identity for the technology
   arm of Advocacy Unified Network (The Hague).
   Type: Space Grotesk (display) · Inter (text) · JetBrains Mono (labels)
   No frameworks. ~1 stylesheet, all pages.
   ============================================================ */

/* ---------- Fonts (self-hosted, GDPR-friendly) ---------- */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-var.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #060a13;
  --bg-soft: #0a1120;
  --surface: #0d1626;
  --surface-2: #101b30;
  --line: rgba(151, 168, 196, 0.14);
  --line-strong: rgba(151, 168, 196, 0.26);
  --text: #e9edf6;
  --muted: #96a2ba;
  --faint: #6b7791;
  --accent: #5d8bff;
  --accent-soft: rgba(93, 139, 255, 0.12);
  --teal: #2fd4c4;
  --teal-soft: rgba(47, 212, 196, 0.1);
  --amber: #f5b455;
  --grad: linear-gradient(100deg, #6f9aff 0%, #2fd4c4 100%);
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
  --pad-x: clamp(20px, 4vw, 40px);
  --section-y: clamp(76px, 10vw, 128px);
  --header-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-text);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul[class], ol[class] { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(93, 139, 255, 0.35); color: #fff; }

/* Ambient background: dot grid + soft glows */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(151, 168, 196, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.6));
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(52% 38% at 82% -4%, rgba(93, 139, 255, 0.16), transparent 62%),
    radial-gradient(44% 34% at 8% 12%, rgba(47, 212, 196, 0.08), transparent 60%),
    var(--bg);
}

/* ---------- Type helpers ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.h-display { font-size: clamp(2.5rem, 5.6vw, 4.15rem); font-weight: 700; }
.h-xl { font-size: clamp(2.05rem, 4.2vw, 3.1rem); }
.h-lg { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.h-md { font-size: 1.22rem; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.24rem); line-height: 1.62; color: var(--muted); max-width: 62ch; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--grad);
}
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--section-y); position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.06rem; max-width: 60ch; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center p { margin-inline: auto; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Skip link / focus ---------- */
.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--accent);
  color: #061018;
  font-weight: 600;
  border-radius: 8px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(6, 10, 19, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.brand-name small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 3px;
}
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 9px 14px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover { color: var(--text); background: rgba(151, 168, 196, 0.08); }
.main-nav a[aria-current='page'] { color: var(--text); background: rgba(93, 139, 255, 0.14); }
.header-cta { flex-shrink: 0; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded='true'] .icon-open { display: none; }
.nav-toggle[aria-expanded='true'] .icon-close { display: block; }

/* WordPress admin toolbar offset — the toolbar (32px desktop / 46px on
   narrow viewports) is fixed above everything else at a higher z-index
   than our own fixed header, so a logged-in visitor previewing the site
   would otherwise see it overlap the header and clip the top of the hero.
   Only body.admin-bar (added by WordPress for logged-in users) triggers this;
   logged-out visitors are unaffected. */
body.admin-bar .site-header { top: 32px; }
body.admin-bar .hero { padding-top: calc(var(--header-h) + 32px + clamp(56px, 9vw, 110px)); }
body.admin-bar .page-hero { padding-top: calc(var(--header-h) + 32px + clamp(48px, 8vw, 96px)); }
body.admin-bar .main-nav { top: calc(var(--header-h) + 32px); }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar .hero { padding-top: calc(var(--header-h) + 46px + clamp(56px, 9vw, 110px)); }
  body.admin-bar .page-hero { padding-top: calc(var(--header-h) + 46px + clamp(48px, 8vw, 96px)); }
  body.admin-bar .main-nav { top: calc(var(--header-h) + 46px); }
}

/* Header nav can get tight between ~921px and ~1080px (six links + CTA
   button on one line) — trim the gap and type size slightly rather than
   letting it wrap or overflow. */
@media (max-width: 1080px) and (min-width: 921px) {
  .main-nav a { padding: 9px 10px; font-size: 0.86rem; }
  .header-inner { gap: 14px; }
}

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px var(--pad-x) 26px;
    background: rgba(6, 10, 19, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s, transform 0.22s;
  }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 13px 16px; font-size: 1rem; border-radius: 12px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; transition: transform 0.2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--grad);
  color: #051019;
  box-shadow: 0 8px 28px -10px rgba(93, 139, 255, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(93, 139, 255, 0.65); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(13, 22, 38, 0.5); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }

/* Text link with arrow */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
}
.tlink svg { width: 14px; height: 14px; transition: transform 0.2s; }
.tlink:hover svg { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 2px);
  padding-bottom: 32px;
  margin-top: -2px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.55rem, 5.4vw, 4.05rem); font-weight: 700; margin-bottom: 24px; }
.hero .lead { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--faint);
}
.hero-proof span { display: inline-flex; align-items: center; gap: 9px; }
.hero-proof i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
  flex-shrink: 0;
  font-style: normal;
}
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: min(560px, 100%);
  margin-inline: auto;
  width: 100%;
  margin-top: -150px;
}
/* Fallback for browsers without aspect-ratio support (pre-2021 Safari):
   padding-top trick keeps the globe square instead of collapsing flat. */
@supports not (aspect-ratio: 1) {
  .hero-visual { height: 0; padding-top: 100%; }
}
.hero-visual canvas { width: 100%; height: 100%; }
.hero-visual .orbit-ring {
  position: absolute;
  inset: 6%;
  border: 1px dashed rgba(151, 168, 196, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

/* Stat band */
.statband { border-block: 1px solid var(--line); background: rgba(10, 17, 32, 0.55); }
.statband .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-block: 40px;
}
@media (max-width: 860px) { .statband .container { grid-template-columns: repeat(2, 1fr); row-gap: 32px; } }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.stat .lbl { margin-top: 6px; font-size: 0.88rem; color: var(--muted); }

/* ---------- Cards ---------- */
.card {
  position: relative;
  padding: 30px 28px;
  background: linear-gradient(180deg, var(--surface), rgba(13, 22, 38, 0.55));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset-inline: 0; top: 0;
  height: 1px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 24px 44px -22px rgba(0, 0, 0, 0.6); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--accent-soft);
  border: 1px solid rgba(93, 139, 255, 0.25);
  margin-bottom: 20px;
  color: var(--accent);
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .tlink { margin-top: 18px; font-size: 0.9rem; }
.card-list { margin-top: 16px; display: grid; gap: 8px; }
.card-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}
.card-list li::before {
  content: '';
  position: absolute;
  left: 2px; top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--grad);
}

/* ---------- Pills / tags ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}
.pill i { width: 7px; height: 7px; border-radius: 50%; font-style: normal; }
.pill-live { color: var(--teal); border-color: rgba(47, 212, 196, 0.35); background: var(--teal-soft); }
.pill-live i { background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.pill-pre { color: var(--amber); border-color: rgba(245, 180, 85, 0.35); background: rgba(245, 180, 85, 0.08); }
.pill-pre i { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.pill-blue { color: var(--accent); border-color: rgba(93, 139, 255, 0.35); background: var(--accent-soft); }
.pill-blue i { background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* ---------- Product cards (work) ---------- */
.product-card { display: flex; flex-direction: column; gap: 0; padding: 0; }
.product-top { padding: 28px 28px 0; }
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.product-kind { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.product-top h3 { font-size: 1.32rem; margin-bottom: 10px; }
.product-top p { color: var(--muted); font-size: 0.95rem; }
.product-foot {
  margin-top: 22px;
  padding: 16px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
}
.product-foot .tlink { margin: 0; }

/* ---------- Ecosystem grid ---------- */
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 920px) { .eco-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .eco-grid { grid-template-columns: 1fr; } }
.eco-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(13, 22, 38, 0.45);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.eco-item:hover { border-color: rgba(93, 139, 255, 0.45); background: var(--accent-soft); transform: translateY(-3px); }
.eco-item .eco-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.eco-item strong { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; }
.eco-item .eco-domain { font-family: var(--font-mono); font-size: 0.74rem; color: var(--faint); letter-spacing: 0.04em; }
.eco-item p { font-size: 0.87rem; color: var(--muted); }
.eco-item svg { width: 14px; height: 14px; color: var(--faint); transition: color 0.2s, transform 0.2s; flex-shrink: 0; }
.eco-item:hover svg { color: var(--accent); transform: translate(2px, -2px); }

/* ---------- Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split .eyebrow { margin-bottom: 16px; }
.split h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 18px; }
.split p + p { margin-top: 14px; }
.split .body p { color: var(--muted); }

/* Principles list */
.principles { display: grid; gap: 0; border-top: 1px solid var(--line); }
.principle {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.principle .idx {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  padding-top: 3px;
}
.principle h3 { font-size: 1.12rem; margin-bottom: 6px; }
.principle p { color: var(--muted); font-size: 0.95rem; max-width: 68ch; }

/* ---------- Process timeline ---------- */
.process { display: grid; gap: 0; counter-reset: step; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 26px;
  padding: 30px 0 30px 0;
  border-bottom: 1px solid var(--line);
}
.step:first-child { border-top: 1px solid var(--line); }
.step .step-no {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.step h3 { font-size: 1.14rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.95rem; max-width: 66ch; }
@media (max-width: 640px) { .step { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 920px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }
.member {
  padding: 30px 26px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.avatar {
  width: 76px; height: 76px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: #051019;
  background: var(--grad);
  margin-bottom: 22px;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 1.14rem; }
.member .role { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 7px 0 14px; }
.member p { font-size: 0.92rem; color: var(--muted); }
.member .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--faint);
  letter-spacing: 0.03em;
}
.member.placeholder { border-style: dashed; }
.member.placeholder .avatar { background: var(--surface-2); color: var(--faint); border: 1px dashed var(--line-strong); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-inner {
  position: relative;
  padding: clamp(48px, 7vw, 84px) clamp(28px, 5vw, 72px);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(93, 139, 255, 0.18), transparent 55%),
    radial-gradient(60% 100% at 0% 100%, rgba(47, 212, 196, 0.12), transparent 55%),
    var(--surface);
  text-align: center;
  overflow: hidden;
}
.cta-inner h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); margin-bottom: 16px; }
.cta-inner p { color: var(--muted); max-width: 56ch; margin: 0 auto 32px; }
.cta-inner .hero-actions { justify-content: center; margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-methods { display: grid; gap: 14px; margin-top: 30px; }
.method {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(13, 22, 38, 0.45);
  transition: border-color 0.2s, background 0.2s;
}
a.method:hover { border-color: rgba(93, 139, 255, 0.45); background: var(--accent-soft); }
.method .card-icon { width: 40px; height: 40px; margin: 0; flex-shrink: 0; border-radius: 11px; }
.method .card-icon svg { width: 18px; height: 18px; }
.method strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.method span { font-size: 0.88rem; color: var(--muted); word-break: break-word; }

.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(13, 22, 38, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(93, 139, 255, 0.18);
}
.form-note { font-size: 0.83rem; color: var(--faint); }
.form-status { font-size: 0.92rem; color: var(--teal); min-height: 1.4em; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px)); padding-bottom: clamp(40px, 6vw, 72px); }
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); margin-bottom: 20px; max-width: 18ch; }
.page-hero .lead { max-width: 64ch; }

/* ---------- Facts / definition list ---------- */
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.fact {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.fact dt { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); padding-top: 4px; }
.fact dd { color: var(--text); }
.fact dd .muted { color: var(--muted); }
@media (max-width: 640px) { .fact { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Redirect / notice panel ---------- */
.panel {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: rgba(13, 22, 38, 0.5);
}
.panel h3 { margin-bottom: 8px; font-size: 1.05rem; }
.panel p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: rgba(8, 13, 24, 0.7); margin-top: 0; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-block: clamp(48px, 6vw, 72px) 40px;
}
@media (max-width: 920px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin-top: 18px; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: 0.92rem; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-col a .ext { font-size: 0.75em; color: var(--faint); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--faint);
}
.footer-bottom .mono { font-size: 0.74rem; letter-spacing: 0.05em; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--text); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay='1'] { transition-delay: 0.08s; }
.reveal[data-delay='2'] { transition-delay: 0.16s; }
.reveal[data-delay='3'] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Misc ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.maxw-68 { max-width: 68ch; }
.anchor-offset { scroll-margin-top: calc(var(--header-h) + 20px); }
hr.sep { border: 0; border-top: 1px solid var(--line); margin-block: clamp(40px, 6vw, 64px); }

/* ---------- Legal documents (Privacy Policy / Terms of Service) ---------- */
.legal-doc { max-width: 74ch; }
.legal-doc h2 {
  font-size: 1.32rem;
  margin-top: 44px;
  margin-bottom: 14px;
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc h3 { font-size: 1.08rem; margin-bottom: 10px; }
.legal-doc p { color: var(--muted); margin-bottom: 16px; }
.legal-doc p:last-child { margin-bottom: 0; }
.legal-doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-doc a:hover { color: var(--text); }
.legal-doc .card-list { margin-top: 4px; margin-bottom: 16px; }
.legal-doc .panel p { margin-bottom: 0; }
