/* =============================================================================
   DronePoul — Frozen Design System
   -----------------------------------------------------------------------------
   Plain CSS. No framework. No preprocessor. No build step.
   This is the ONLY stylesheet. Section CSS is appended below the library.

   ORDER:
     1. Modern CSS reset
     2. :root tokens (palette, DEM gradient, glass, spacing/radius/shadow/motion,
        clamp-based type scale)
     3. Base element styles
     4. Frozen component class library (the contract — see build/KIT.md)
     5. prefers-reduced-motion guard
   ============================================================================ */


/* =============================================================================
   1. MODERN CSS RESET
   ============================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

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

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
}

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

ul,
ol {
  list-style: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

:where(h1, h2, h3, h4, h5, h6) {
  font-weight: inherit;
  font-size: inherit;
}

#root,
#__next {
  isolation: isolate;
}


/* =============================================================================
   2. :ROOT TOKENS
   ============================================================================ */
:root {
  /* --- Ember dark base (brief §3 — verbatim) ----------------------------- */
  --night: #0d0d10;     /* deepest background */
  --surface: #15151a;   /* panels / cards */
  --elevated: #1e1e25;  /* raised cards, nav */
  --border: #2a2a31;    /* hairline dividers */
  --fg: #ededf0;        /* primary text */
  --muted: #b4b4ba;     /* secondary text (AA on dark) */
  --dim: #8d8d95;       /* tertiary / captions (≈4.6:1 on --night, AA) */

  /* --- Brand orange — the earned accent (NEVER raw tailwind orange) ------ */
  --brand: #f87f2e;
  --brand-light: #ffa85e;
  --brand-dark: #d66a1f;

  /* --- DEM elevation gradient — DronePoul's signature geodata ramp -------- */
  --elev-0: #1b2a6b;    /* deep indigo (low / water) */
  --elev-1: #00b4d8;    /* cyan */
  --elev-2: #2dd4a7;    /* teal-green */
  --elev-3: #f6c453;    /* amber */
  --elev-4: #f87f2e;    /* brand orange (high / peak) */
  --elev-gradient: linear-gradient(90deg, var(--elev-0), var(--elev-1), var(--elev-2), var(--elev-3), var(--elev-4));

  /* --- Glass morphism (brief §3 — verbatim) ------------------------------ */
  --glass-bg: rgba(21, 21, 26, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(14px);
  --glow: 0 0 40px rgba(248, 127, 46, 0.12);

  /* --- Translucent brand washes (derived) -------------------------------- */
  --brand-wash: rgba(248, 127, 46, 0.10);
  --brand-tint: rgba(248, 127, 46, 0.16);
  --glow-strong: 0 0 60px rgba(248, 127, 46, 0.22);
  --hairline: rgba(255, 255, 255, 0.06);

  /* --- Spacing scale (8px grid) ------------------------------------------ */
  --space-0: 0;
  --space-1: 0.25rem;   /* 4 */
  --space-2: 0.5rem;    /* 8 */
  --space-3: 0.75rem;   /* 12 */
  --space-4: 1rem;      /* 16 */
  --space-5: 1.5rem;    /* 24 */
  --space-6: 2rem;      /* 32 */
  --space-7: 3rem;      /* 48 */
  --space-8: 4rem;      /* 64 */
  --space-9: 5.5rem;    /* 88  — mobile section rhythm */
  --space-10: 8rem;     /* 128 — desktop section rhythm */

  /* --- Radius scale ------------------------------------------------------ */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* --- Shadow / elevation scale ------------------------------------------ */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 1px 0 var(--hairline) inset, 0 16px 40px rgba(0, 0, 0, 0.4);

  /* --- Motion scale ------------------------------------------------------ */
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 140ms;
  --dur-base: 240ms;
  --dur-slow: 600ms;
  --dur-reveal: 720ms;

  /* --- Layout ------------------------------------------------------------ */
  --container-max: 1180px;
  --container-pad: clamp(1.25rem, 4vw, 2.5rem);
  --nav-height: 68px;

  /* --- Clamp-based type scale (fluid) ------------------------------------ */
  --fs-eyebrow: clamp(0.72rem, 0.68rem + 0.2vw, 0.8rem);
  --fs-mono: clamp(0.82rem, 0.78rem + 0.2vw, 0.9rem);
  --fs-body: clamp(1rem, 0.96rem + 0.25vw, 1.0625rem);
  --fs-lead: clamp(1.125rem, 1.02rem + 0.6vw, 1.375rem);
  --fs-subhead: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  --fs-headline: clamp(2rem, 1.4rem + 3vw, 3.5rem);
  --fs-headline-xl: clamp(2.75rem, 1.6rem + 5.5vw, 5.5rem);
  --fs-stat: clamp(2.5rem, 1.6rem + 4vw, 4rem);

  /* --- Font stacks ------------------------------------------------------- */
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* --- Misc -------------------------------------------------------------- */
  --term-bg: #0a0a0c;
  --term-output: #a8d8a8;
  --tl-red: #ff5f57;
  --tl-amber: #febc2e;
  --tl-green: #28c840;

  color-scheme: dark;
}


/* =============================================================================
   3. BASE ELEMENT STYLES
   ============================================================================ */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 1.5rem);
}

body {
  background-color: var(--night);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  font-feature-settings: "ss01" on, "cv01" on;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient page-level depth: a couple of very faint radial glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(248, 127, 46, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(0, 180, 216, 0.04), transparent 60%);
}

::selection {
  background: var(--brand-tint);
  color: var(--fg);
}

:focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 3px;
  border-radius: 3px;
  /* dark halo so the ring stays visible over busy backdrops (hero canvas,
     topo grid) where a thin brand-light ring would otherwise wash out */
  box-shadow: 0 0 0 4px rgba(13, 13, 16, 0.8);
}

/* Screen-reader-only utility (visually hidden, still announced) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link — first focusable element; visually hidden until focused */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: var(--container-pad);
  top: 8px;
  z-index: 200;
  background: var(--elevated);
  color: var(--fg);
  padding: 0.6em 1em;
  border-radius: var(--radius-sm);
  outline: 2px solid var(--brand-light);
}

strong,
b {
  font-weight: 600;
  color: var(--fg);
}


/* =============================================================================
   4. FROZEN COMPONENT CLASS LIBRARY
   ============================================================================ */

/* --- Layout: container -------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* --- Layout: section rhythm --------------------------------------------- */
.section {
  position: relative;
  padding-block: var(--space-9);
}

.section--tight {
  padding-block: var(--space-8);
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--space-10);
  }
  .section--tight {
    padding-block: var(--space-9);
  }
}

/* --- Eyebrow ------------------------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand-light);
}

/* --- Headlines ---------------------------------------------------------- */
.headline {
  font-size: var(--fs-headline);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-wrap: balance;
}

.headline--xl {
  font-size: var(--fs-headline-xl);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.subhead {
  font-size: var(--fs-subhead);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--fg);
  text-wrap: balance;
}

.lead {
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
  text-wrap: pretty;
}

/* --- Mono voice (data / coordinates / commands / labels) ---------------- */
.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 400;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.78em 1.5em;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform var(--dur-base) var(--ease-spring),
    box-shadow var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out);
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn svg {
  width: 1.05em;
  height: 1.05em;
}

.btn--primary {
  background-color: var(--brand);
  color: #1a0e04;
  box-shadow: 0 6px 18px rgba(248, 127, 46, 0.22);
}

.btn--primary:hover {
  background-color: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(248, 127, 46, 0.34), var(--glow);
}

.btn--ghost {
  background-color: rgba(255, 255, 255, 0.02);
  border-color: var(--glass-border);
  color: var(--fg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

.btn--ghost:hover {
  border-color: rgba(248, 127, 46, 0.4);
  background-color: var(--brand-wash);
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

/* --- Glass card --------------------------------------------------------- */
.glass-card {
  position: relative;
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card);
  transition:
    transform var(--dur-base) var(--ease-spring),
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

/* Hairline luminous top edge */
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 40%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(248, 127, 46, 0.28);
  box-shadow: var(--shadow-lg), var(--glow);
}

/* --- Badge / chip (mono pills) ------------------------------------------ */
.badge,
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 0.45em 0.85em;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--muted);
  background-color: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}

.badge {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-light);
  border-color: rgba(248, 127, 46, 0.3);
  background-color: var(--brand-wash);
}

.chip:hover {
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--fg);
}

/* --- Grids -------------------------------------------------------------- */
.grid-2,
.grid-3 {
  display: grid;
  gap: clamp(1rem, 0.5rem + 2vw, 1.75rem);
}

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

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

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 880px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Pillar eyebrow (numbered "01 — Indsaml") --------------------------- */
.pillar-eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.pillar-eyebrow::before {
  content: attr(data-num);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  background: var(--elev-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --- Stat (big mono number + label + elevation underline) --------------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.stat__num {
  font-family: var(--font-mono);
  font-size: var(--fs-stat);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--muted);
  max-width: 22ch;
}

/* Elevation-gradient underline accent — EARNED, not on every stat.
   Applied only to .stat--underline, and rendered as a ::after on the .stat
   itself so it sits UNDER the whole number→label pairing (the label is the
   last flow child), not wedged between the number and its label. */
.stat--underline::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--elev-gradient);
}

/* --- Elevation bar + legend (uses --elev-gradient) ---------------------- */
.elev-bar {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--elev-gradient);
  box-shadow: 0 0 18px rgba(248, 127, 46, 0.18);
}

.elev-legend {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--dim);
}

.elev-legend__bar {
  width: 100%;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--elev-gradient);
}

.elev-legend__scale {
  display: flex;
  justify-content: space-between;
  letter-spacing: 0.04em;
}

/* --- Reveal (scroll-in fade-up, staggered) ------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--dur-reveal) var(--ease-spring),
    transform var(--dur-reveal) var(--ease-spring);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger: section builders set data-reveal="0..n"; main.js may also apply
   inline transition-delay. These provide a sensible default cascade. */
.reveal[data-reveal="0"] { transition-delay: 0ms; }
.reveal[data-reveal="1"] { transition-delay: 80ms; }
.reveal[data-reveal="2"] { transition-delay: 160ms; }
.reveal[data-reveal="3"] { transition-delay: 240ms; }
.reveal[data-reveal="4"] { transition-delay: 320ms; }
.reveal[data-reveal="5"] { transition-delay: 400ms; }
.reveal[data-reveal="6"] { transition-delay: 480ms; }
.reveal[data-reveal="7"] { transition-delay: 560ms; }

/* --- Background motifs --------------------------------------------------- */
/* Faint coordinate / topographic grid */
.topo-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--hairline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hairline) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
  opacity: 0.5;
}

/* Faint topographic contour lines (SVG data-URI).
   Neutral white hairlines — topographic *texture*, NOT brand signal. Orange is
   reserved strictly for earned interactive/accent moments (brief §3). */
.topo-contours {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.16;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='800' viewBox='0 0 1200 800' fill='none'%3E%3Cg stroke='rgba(255,255,255,0.5)' stroke-width='1' opacity='0.5'%3E%3Cpath d='M0 420 C 200 360 360 460 560 400 C 760 340 940 440 1200 380'/%3E%3Cpath d='M0 470 C 200 410 360 510 560 450 C 760 390 940 490 1200 430'/%3E%3Cpath d='M0 520 C 200 460 360 560 560 500 C 760 440 940 540 1200 480'/%3E%3Cpath d='M0 570 C 220 520 380 600 580 550 C 780 500 960 580 1200 530'/%3E%3Cpath d='M0 620 C 220 580 380 650 580 605 C 780 560 960 630 1200 585'/%3E%3Cpath d='M100 360 C 260 320 380 400 540 360 C 700 320 880 380 1100 350'/%3E%3Cpath d='M140 320 C 280 290 400 350 540 320 C 700 285 860 330 1060 310'/%3E%3C/g%3E%3C/svg%3E");
}

/* --- Terminal block ----------------------------------------------------- */
.term {
  background-color: var(--term-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.7;
}

.term__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background-color: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.term__dots {
  display: inline-flex;
  gap: 0.45rem;
}

.term__dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}

.term__dots span:nth-child(1) { background-color: var(--tl-red); }
.term__dots span:nth-child(2) { background-color: var(--tl-amber); }
.term__dots span:nth-child(3) { background-color: var(--tl-green); }

.term__title {
  font-size: 0.74rem;
  color: var(--dim);
  letter-spacing: 0.04em;
  margin-inline: auto;
}

.term__body {
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}

.term__prompt {
  color: var(--brand-light);
}

.term__cmd {
  color: var(--fg);
}

.term__out {
  color: var(--term-output);
}

.term__comment {
  color: var(--dim);
}

/* --- Sticky glass nav --------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition:
    background-color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background-color: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom-color: var(--glass-border);
  box-shadow: var(--shadow-md);
}

.nav__inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.nav__brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.nav__brand .brand-accent {
  color: var(--brand);
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--dur-fast) var(--ease-out);
}

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

.nav__actions {
  display: none;
  align-items: center;
  gap: var(--space-4);
}

/* Mobile hamburger toggle */
.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  color: var(--fg);
}

.nav__toggle svg {
  width: 22px;
  height: 22px;
}

.nav__toggle .icon-close { display: none; }

@media (min-width: 920px) {
  .nav__links,
  .nav__actions {
    display: flex;
  }
  .nav__toggle {
    display: none;
  }
}

/* Mobile slide-down menu (open state set on <body> or nav container) */
.nav-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 99;
  background-color: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  padding: var(--space-5) var(--container-pad) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition:
    transform var(--dur-base) var(--ease-spring),
    opacity var(--dur-base) var(--ease-out),
    visibility var(--dur-base);
}

.nav-menu__link {
  padding: var(--space-3) 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
}

.nav-menu__actions {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.nav-menu__actions .btn {
  width: 100%;
}

/* Open state — main.js toggles .nav-open on the .nav element */
.nav.nav-open .nav-menu {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav.nav-open .nav__toggle .icon-open { display: none; }
.nav.nav-open .nav__toggle .icon-close { display: block; }

@media (min-width: 920px) {
  .nav-menu {
    display: none;
  }
}


/* =============================================================================
   5. PREFERS-REDUCED-MOTION GUARD
   Kill transforms / animation / smooth scroll. Reveals snap to final state.
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

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

  .glass-card:hover,
  .btn:hover,
  .btn--primary:hover,
  .btn--ghost:hover {
    transform: none;
  }
}


/* =============================================================================
   6. SECTION-SCOPED CSS (appended by assemble phase — see build/sections/*.css)
   Keep each block prefixed with its section id. Do not edit above this line
   when appending.
   ============================================================================ */


/* >>> SECTION: s00-chrome — from build/sections/s00-chrome.css >>> */
/* ============================================================
   s00-chrome — section-scoped CSS (append to styles.css)
   All selectors prefixed with #nav or #site-footer to avoid collisions.
   The .nav / .nav-menu / .btn machinery lives in styles.css; this only
   adds the brand lockup + the footer the kit does not provide.
   ============================================================ */

/* --- Nav brand lockup (mark + wordmark) -------------------------------- */
#nav .nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

#nav .nav__mark {
  display: inline-flex;
  width: 24px;
  height: 24px;
  color: var(--brand);
  flex: none;
}

#nav .nav__mark svg {
  width: 100%;
  height: 100%;
}

#nav .nav__word {
  line-height: 1;
}

/* =============================================================================
   Footer — not provided by the kit; section-scoped here.
   ============================================================================= */
#site-footer {
  position: relative;
  margin-top: var(--space-10);
  padding-top: var(--space-9);
  padding-bottom: var(--space-7);
  background-color: var(--surface);
  border-top: 1px solid var(--border);
}

/* The kit's .elev-bar is full-width inside; pin it to the very top edge */
#site-footer > .elev-bar {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
}

#site-footer .site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7) var(--space-6);
}

@media (min-width: 640px) {
  #site-footer .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 920px) {
  #site-footer .site-footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: var(--space-6);
  }
}

#site-footer .site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 32ch;
}

#site-footer .site-footer__word {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}

#site-footer .site-footer__word .brand-accent {
  color: var(--brand);
}

#site-footer .site-footer__mark {
  display: inline-flex;
  width: 24px;
  height: 24px;
  color: var(--brand);
  flex: none;
}

#site-footer .site-footer__mark svg {
  width: 100%;
  height: 100%;
}

#site-footer .site-footer__tagline {
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.6;
  margin: 0;
}

#site-footer .site-footer__heading {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 var(--space-4);
}

#site-footer .site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

#site-footer .site-footer__list .mono {
  color: var(--muted);
  font-size: 0.9rem;
}

#site-footer .site-footer__link {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color var(--dur-fast) var(--ease-out);
}

#site-footer .site-footer__link:hover,
#site-footer .site-footer__link:focus-visible {
  color: var(--fg);
}

#site-footer .site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

#site-footer .site-footer__legal {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

#site-footer .site-footer__coords {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  margin: 0;
}

@media (min-width: 640px) {
  #site-footer .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}


/* >>> SECTION: s01-hero — from build/sections/s01-hero.css >>> */
/* ============================================================
   s01-hero — full-viewport hero with live point-cloud terrain
   All selectors prefixed with #s01-hero / .s01-hero__*
   ============================================================ */

#s01-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* sits directly under the fixed nav — pad the centered content down */
  padding-top: calc(var(--nav-height) + var(--space-7));
  padding-bottom: var(--space-9);
  isolation: isolate;
}

/* The signature point-cloud canvas — full bleed behind content */
#s01-hero .s01-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  /* drift the cloud toward the right so text stays legible */
  -webkit-mask-image: radial-gradient(135% 120% at 78% 42%, #000 30%, transparent 86%);
  mask-image: radial-gradient(135% 120% at 78% 42%, #000 30%, transparent 86%);
}

/* faint coordinate grid, kept very subtle behind the cloud */
#s01-hero .s01-hero__grid {
  z-index: 0;
  opacity: 0.5;
}

/* readability veil — darkens left side where the text lives */
#s01-hero .s01-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--night) 0%, rgba(13, 13, 16, 0.82) 30%, rgba(13, 13, 16, 0.25) 60%, transparent 78%),
    linear-gradient(0deg, var(--night) 0%, transparent 22%);
}

#s01-hero .s01-hero__inner {
  position: relative;
  z-index: 2;
}

#s01-hero .s01-hero__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  max-width: 38rem;
}

#s01-hero .s01-hero__headline {
  margin: 0;
  /* keep the top 2/3 at full --fg so the large display strokes stay high
     contrast; only the very bottom drifts toward --muted */
  background: linear-gradient(180deg, var(--fg) 0%, var(--fg) 70%, var(--muted) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#s01-hero .s01-hero__lead {
  margin: 0;
  max-width: 34rem;
}

#s01-hero .s01-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-1);
}

/* live readout chip — glass, mono, drifting values */
#s01-hero .s01-hero__readout {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: var(--space-1) var(--space-4);
  margin-top: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card);
  font-size: var(--fs-mono);
  line-height: 1.5;
  color: var(--muted);
  width: 100%;
  max-width: 30rem;
}

#s01-hero .s01-hero__readout-label {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--hairline);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  color: var(--brand-light);
}

#s01-hero .s01-hero__readout-row {
  display: contents;
}

#s01-hero .s01-hero__readout-key {
  color: var(--dim);
  letter-spacing: 0.1em;
}

#s01-hero .s01-hero__readout-val {
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

/* small live pulse dot next to the label */
#s01-hero .s01-hero__pulse {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(248, 127, 46, 0.55);
  animation: s01HeroPulse 2.4s var(--ease-out) infinite;
}

@keyframes s01HeroPulse {
  0%   { box-shadow: 0 0 0 0 rgba(248, 127, 46, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(248, 127, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(248, 127, 46, 0); }
}

#s01-hero .s01-hero__caption {
  margin: var(--space-7) 0 0;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---- responsive ---- */
@media (max-width: 720px) {
  #s01-hero .s01-hero__canvas {
    -webkit-mask-image: radial-gradient(150% 100% at 50% 28%, #000 24%, transparent 82%);
    mask-image: radial-gradient(150% 100% at 50% 28%, #000 24%, transparent 82%);
    opacity: 0.85;
  }
  #s01-hero .s01-hero__veil {
    background:
      linear-gradient(0deg, var(--night) 8%, rgba(13, 13, 16, 0.55) 48%, transparent 92%);
  }
  #s01-hero .s01-hero__readout {
    max-width: 100%;
  }
}

/* reduced-motion: stop the pulse (canvas handled in JS → single static frame) */
@media (prefers-reduced-motion: reduce) {
  #s01-hero .s01-hero__pulse {
    animation: none;
  }
}


/* >>> SECTION: s02-stats — from build/sections/s02-stats.css >>> */
/* ======================================================================
   s02-stats — Proof stat strip (section-scoped)
   Only what the KIT lacks: top+bottom hairlines framing the strip and a
   responsive 2 -> 3 -> 6 column grid for the six stats. All selectors are
   prefixed with the section id. Stat visuals (mono number, label, DEM-gradient
   underline) and the count-up come from the frozen .stat kit + core main.js.
   ====================================================================== */

#s02-stats {
  position: relative;
}

/* The eyebrow sits above the framed strip with a little breathing room. */
#s02-stats .eyebrow {
  margin-bottom: var(--space-5);
}

/* Top + bottom hairlines that frame the proof strip. */
#s02-stats .s02-stats__strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: var(--space-7);
}

/* 6-up on wide, 3-up on medium, 2-up on small. The kit's .grid-3 tops out at
   3 columns, so this section owns its own track count. */
#s02-stats .s02-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6) var(--space-5);
}

@media (min-width: 680px) {
  #s02-stats .s02-stats__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  #s02-stats .s02-stats__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--space-5) var(--space-4);
  }
}

/* Stat labels in a tight 6-up strip read better unconstrained by the kit's
   22ch cap; keep them full-width within their narrow track. */
#s02-stats .stat__label {
  max-width: 18ch;
}

/* The global --fs-stat (up to 4rem) is sized for a single hero number; in this
   6-up strip each track is ~150–180px, so a 7-char number like "282/282" would
   overflow and the space-bearing suffixes (" m", " MB") would wrap and collide.
   Scale the number to fit the narrowest track and keep number+suffix on one line. */
#s02-stats .stat__num {
  font-size: clamp(1.9rem, 1.1rem + 1.4vw, 2.2rem);
  white-space: nowrap;
}


/* >>> SECTION: s03-indsaml — from build/sections/s03-indsaml.css >>> */
/* =============================================================================
   s03-indsaml — Pillar 1: Vi indsamler data
   Section-scoped only. Every selector prefixed with #indsaml.
   ============================================================================ */

/* Layout: vertical centering of the two columns on wide screens */
#indsaml .indsaml__grid {
  align-items: center;
}

#indsaml .indsaml__col {
  display: flex;
  flex-direction: column;
}

/* Headline / lead rhythm */
#indsaml .pillar-eyebrow {
  margin-bottom: var(--space-4);
}

#indsaml .headline {
  margin-bottom: var(--space-4);
}

#indsaml .lead {
  margin-bottom: var(--space-5);
}

#indsaml .indsaml__body {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 var(--space-4);
}

/* --- Capability list ---------------------------------------------------- */
#indsaml .indsaml__caps {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

#indsaml .indsaml__cap {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

#indsaml .indsaml__cap-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--brand-wash);
  color: var(--brand-light);
}

#indsaml .indsaml__cap-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

#indsaml .indsaml__cap-text {
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--muted);
  padding-top: 0.3rem;
}

#indsaml .indsaml__cap-text strong {
  color: var(--fg);
  font-weight: 600;
}

#indsaml .indsaml__cap-text .mono {
  color: var(--brand-light);
}

/* --- Right visual: survey map card -------------------------------------- */
#indsaml .indsaml__visual {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* hover lift is inherited from .glass-card; keep the card itself static-feeling */
#indsaml .indsaml__visual:hover {
  transform: none;
}

#indsaml .indsaml__map {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 30% 10%, rgba(0, 180, 216, 0.06), transparent 60%),
    var(--night);
  border: 1px solid var(--hairline);
  aspect-ratio: 4 / 3;
}

/* scope the kit grid motif tighter inside the small map panel */
#indsaml .indsaml__map .topo-grid {
  background-size: 40px 40px;
  opacity: 0.4;
}

#indsaml .indsaml__path-svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

#indsaml .indsaml__frame line,
#indsaml .indsaml__frame rect {
  stroke: var(--hairline);
  stroke-width: 1;
  fill: none;
}

#indsaml .indsaml__bounds {
  stroke: rgba(0, 180, 216, 0.35);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  fill: rgba(0, 180, 216, 0.04);
}

#indsaml .indsaml__path {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(248, 127, 46, 0.45));
}

/* draw animation: JS measures length, sets the dash, then removes the class.
   Initial dashed-hidden state lives here so there's no flash before JS runs. */
#indsaml .indsaml__path.is-armed {
  stroke-dashoffset: var(--indsaml-path-len, 0);
}

#indsaml .indsaml__path.is-drawn {
  transition: stroke-dashoffset 2200ms var(--ease-out);
  stroke-dashoffset: 0;
}

#indsaml .indsaml__shots circle {
  fill: var(--brand-light);
  stroke: var(--night);
  stroke-width: 1;
  opacity: 0;
}

#indsaml .indsaml__shots circle.is-lit {
  opacity: 0.9;
  transition: opacity var(--dur-base) var(--ease-out);
}

#indsaml .indsaml__start {
  fill: var(--elev-1);
  stroke: var(--fg);
  stroke-width: 1.5;
}

#indsaml .indsaml__map-tag {
  position: absolute;
  z-index: 2;
  right: var(--space-3);
  bottom: var(--space-3);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--dim);
  background-color: rgba(13, 13, 16, 0.7);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 0.3em 0.7em;
}

/* --- Telemetry card ----------------------------------------------------- */
#indsaml .indsaml__telemetry {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.02);
}

#indsaml .indsaml__trow {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

#indsaml .indsaml__tkey {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

#indsaml .indsaml__tval {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

#indsaml .indsaml__tval--brand {
  color: var(--brand-light);
}

#indsaml .indsaml__tdiv {
  width: 1px;
  align-self: stretch;
  background-color: var(--border);
}

#indsaml .indsaml__cap-line {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--dim);
  text-align: center;
  margin: 0;
}

@media (max-width: 879px) {
  #indsaml .indsaml__tdiv {
    display: none;
  }
}

/* Reduced motion: path is fully drawn, shots fully lit, no transitions. */
@media (prefers-reduced-motion: reduce) {
  #indsaml .indsaml__path,
  #indsaml .indsaml__path.is-armed,
  #indsaml .indsaml__path.is-drawn {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }

  #indsaml .indsaml__shots circle {
    opacity: 0.9;
  }
}


/* >>> SECTION: s04-visualiser — from build/sections/s04-visualiser.css >>> */
/* =============================================================================
   s04-visualiser — Pillar 2: Vi visualiserer data (THE SHOWPIECE)
   Faux geospatial map-viewer panel + rotating wireframe globe (canvas #globe).
   All selectors prefixed #visualiser. Composes KIT classes; only adds what the
   kit lacks (the viewer chrome, the framed viewport, vertical legend layout).
   ============================================================================ */

/* Two-column layout: copy left, viewer right. Collapses to one column < 880px
   (the .grid-2 base already does 1fr below 880). On wide screens give the
   viewer a touch more room so the globe reads as the hero. */
@media (min-width: 880px) {
  #visualiser .visualiser__layout {
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    gap: clamp(2rem, 1rem + 3vw, 4rem);
  }
}

/* --- LEFT column ---------------------------------------------------------- */
#visualiser .visualiser__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

#visualiser .visualiser__body {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--muted);
  max-width: 56ch;
}

#visualiser .visualiser__engine {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
}

#visualiser .visualiser__engine .visualiser__body {
  margin: 0;
}

#visualiser .visualiser__formats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* --- RIGHT column: viewer ------------------------------------------------- */
#visualiser .visualiser__viewer {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* The framing glass-card. Reset the kit hover lift here — a fixed instrument
   panel shouldn't bob. */
#visualiser .visualiser__panel {
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--glow);
}

#visualiser .visualiser__panel:hover {
  transform: none;
}

/* Top chrome bar */
#visualiser .visualiser__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--glass-border);
  background-color: rgba(255, 255, 255, 0.02);
}

#visualiser .visualiser__panel-title {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

#visualiser .visualiser__engine-badge {
  font-size: 0.64rem;
}

/* The framed viewport that holds the canvas + overlaid chrome */
#visualiser .visualiser__viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(0, 180, 216, 0.10), transparent 70%),
    radial-gradient(ellipse 90% 90% at 50% 120%, rgba(248, 127, 46, 0.10), transparent 70%),
    var(--term-bg);
  overflow: hidden;
}

#visualiser .visualiser__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* faint coordinate grid behind globe */
#visualiser .visualiser__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--hairline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hairline) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 35%, transparent 85%);
  mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 35%, transparent 85%);
  opacity: 0.4;
}

/* zoom controls (top-right) */
#visualiser .visualiser__zoom {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background-color: transparent;
}

#visualiser .visualiser__zoom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background-color: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: var(--fg);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

#visualiser .visualiser__zoom-btn[data-zoom="in"] {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

#visualiser .visualiser__zoom-btn[data-zoom="out"] {
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

#visualiser .visualiser__zoom-btn svg {
  width: 18px;
  height: 18px;
}

#visualiser .visualiser__zoom-btn:hover {
  background-color: var(--brand-wash);
  color: var(--brand-light);
}

#visualiser .visualiser__zoom-btn:focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 2px;
}

#visualiser .visualiser__zoom-btn:active {
  background-color: var(--brand-tint);
}

/* vertical elevation legend (left edge) — title stacked above a [bar][labels]
   row. Labels align to the bar by layout (both 96px tall), not by absolute
   positioning, so they sit beside the gradient on the glass legend. */
#visualiser .visualiser__legend {
  position: absolute;
  top: var(--space-4);
  left: var(--space-3);
  z-index: 2;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  background-color: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  align-items: flex-start;
}

#visualiser .visualiser__legend-title {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* bar + scale sit side by side, both 96px so the labels line up by layout */
#visualiser .visualiser__legend-body {
  display: flex;
  gap: var(--space-2);
}

/* make the kit's horizontal bar vertical; high elevation (orange) at top,
   indigo (low) at bottom — matches the Høj (top) / Lav (bottom) labels. */
#visualiser .visualiser__legend-bar {
  width: 10px;
  height: 96px;
  background: linear-gradient(
    to top,
    var(--elev-0), var(--elev-1), var(--elev-2), var(--elev-3), var(--elev-4)
  );
}

#visualiser .visualiser__legend-scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 96px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* mono HUD readout (bottom-left) */
#visualiser .visualiser__hud {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  background-color: rgba(10, 10, 12, 0.66);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  font-size: 0.66rem;
  line-height: 1.5;
  color: var(--muted);
}

#visualiser .visualiser__hud-line {
  white-space: nowrap;
}

#visualiser #visualiser-zoom-readout {
  color: var(--brand-light);
  font-variant-numeric: tabular-nums;
}

#visualiser .visualiser__hud-budget {
  color: var(--elev-1);
  letter-spacing: 0.02em;
}

/* bottom status bar */
#visualiser .visualiser__statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--glass-border);
  background-color: rgba(255, 255, 255, 0.02);
  font-size: 0.7rem;
  color: var(--muted);
}

#visualiser .visualiser__status-coord {
  color: var(--muted);
}

#visualiser .visualiser__caption {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-align: center;
}

/* Tablet band (481–879px): the panel gets 1.05fr but the page is still narrow,
   so shrink the legend bar + HUD font so the chrome doesn't eat into the globe
   (radius = min(w,h)*0.36). */
@media (min-width: 481px) and (max-width: 879px) {
  #visualiser .visualiser__hud {
    font-size: 0.6rem;
  }
  #visualiser .visualiser__legend-bar,
  #visualiser .visualiser__legend-scale {
    height: 72px;
  }
}

/* tighten chrome on small viewports so it doesn't crowd the globe */
@media (max-width: 480px) {
  #visualiser .visualiser__hud {
    font-size: 0.6rem;
  }
  #visualiser .visualiser__legend-bar,
  #visualiser .visualiser__legend-scale {
    height: 72px;
  }
  #visualiser .visualiser__statusbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}


/* >>> SECTION: s05-software (id=software) — from build/sections/software.css >>> */
/* ===================================================================== */
/* s05-software — Pillar 3: Vi bygger fantastisk software                 */
/* All selectors prefixed with #software to avoid collisions.            */
/* ===================================================================== */

#software .software__grid {
  align-items: start;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
}

#software .software__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0; /* allow the terminal to shrink/scroll instead of overflow */
}

#software .software__body {
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--muted);
  max-width: 58ch;
}

/* --- Platform points list --------------------------------------------- */
#software .software__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

#software .software__point {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--fg);
}

#software .software__point-icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 0.15em;
  color: var(--brand);
}

#software .software__point .mono {
  color: var(--fg);
}

#software .software__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* --- Terminal ---------------------------------------------------------- */
#software .software__term {
  width: 100%;
}

/* JS line-by-line reveal; reduced-motion / no-JS => fully shown */
#software .software__line {
  display: block;
}

#software .software__term[data-term-animate="true"] .software__line {
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}

#software .software__term[data-term-animate="true"] .software__line.is-shown {
  opacity: 1;
  transform: none;
}

/* --- Architecture mini-diagram ---------------------------------------- */
#software .software__arch {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--space-4);
  padding: var(--space-5);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

#software .software__arch-node {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-4);
  background-color: var(--elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
}

#software .software__arch-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: var(--brand-wash);
  color: var(--brand);
}

#software .software__arch-icon svg {
  width: 22px;
  height: 22px;
}

#software .software__arch-cmd {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
}

#software .software__arch-sub {
  font-size: 0.78rem;
  color: var(--dim);
  letter-spacing: 0.02em;
}

#software .software__arch-badge {
  margin-top: var(--space-2);
}

/* The link block between the two nodes */
#software .software__arch-link {
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  text-align: center;
  min-width: 120px;
}

#software .software__arch-link-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.3;
}

#software .software__arch-link-label--back {
  color: var(--dim);
}

#software .software__arch-net {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-light);
}

#software .software__arch-wire {
  position: relative;
  width: 100%;
  max-width: 120px;
  height: 2px;
  background: var(--elev-gradient);
  border-radius: var(--radius-pill);
  opacity: 0.7;
}

/* Arrowheads on the wire */
#software .software__arch-arrow {
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-block: 4px solid transparent;
}

#software .software__arch-arrow--right {
  right: -1px;
  transform: translateY(-50%);
  border-left: 7px solid var(--elev-4);
}

#software .software__arch-arrow--left {
  left: -1px;
  transform: translateY(-50%);
  border-right: 7px solid var(--elev-1);
}

#software .software__arch-foot {
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--dim);
}

/* On wider screens, lay the diagram out horizontally with a centered link */
@media (min-width: 560px) {
  #software .software__arch {
    flex-wrap: nowrap;
    align-items: center;
  }
  #software .software__arch-link {
    flex: 0 1 150px;
  }
}

/* Reduced motion: never hide terminal lines (JS also guards this) */
@media (prefers-reduced-motion: reduce) {
  #software .software__term .software__line {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* >>> SECTION: s06-pipeline — from build/sections/s06-pipeline.css >>> */
/* =============================================================================
   s06-pipeline — "Fra optagelse til kort"
   6-stage end-to-end flow. Horizontal on desktop, stacks/wraps on mobile.
   Connecting line carries --elev-gradient and lights up stage-by-stage on
   scroll (.active added in sequence by s06-pipeline.js). All selectors are
   prefixed with #s06-pipeline. Reduced-motion safe (handled in JS + below).
   ============================================================================ */

#s06-pipeline .s06-pipeline__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  margin-bottom: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

#s06-pipeline .s06-pipeline__lead {
  max-width: 60ch;
}

/* --- The flow track ----------------------------------------------------- */
#s06-pipeline .s06-pipeline__flow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  counter-reset: none;
}

/* The connecting line lives on the track via ::before (full ramp, dimmed)
   and ::after (the lit progress overlay that grows as stages activate). */
#s06-pipeline .s06-pipeline__flow::before,
#s06-pipeline .s06-pipeline__flow::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: var(--radius-pill);
}

/* MOBILE / stacked: a vertical spine down the left gutter of the icons. */
#s06-pipeline .s06-pipeline__flow::before,
#s06-pipeline .s06-pipeline__flow::after {
  left: calc(var(--s06-rail) / 2);
  top: var(--s06-rail);
  bottom: var(--s06-rail);
  width: 2px;
  transform: translateX(-50%);
}

#s06-pipeline .s06-pipeline__flow::before {
  background: linear-gradient(
    180deg,
    var(--elev-0), var(--elev-1), var(--elev-2), var(--elev-3), var(--elev-4)
  );
  opacity: 0.18;
}

/* Lit progress overlay — height driven by --s06-progress (0..1), set by JS. */
#s06-pipeline .s06-pipeline__flow::after {
  background: linear-gradient(
    180deg,
    var(--elev-0), var(--elev-1), var(--elev-2), var(--elev-3), var(--elev-4)
  );
  height: calc((100% - calc(var(--s06-rail) * 2)) * var(--s06-progress, 0));
  bottom: auto;
  opacity: 0.9;
  box-shadow: 0 0 16px rgba(248, 127, 46, 0.22);
  transition: height var(--dur-slow) var(--ease-spring);
}

/* --rail is the column the icon centers in, so the spine threads the icons. */
#s06-pipeline {
  --s06-rail: 54px;
  --s06-progress: 0;
}

/* --- Stage / node ------------------------------------------------------- */
#s06-pipeline .s06-pipeline__stage {
  position: relative;
}

#s06-pipeline .s06-pipeline__node {
  position: relative;
  display: grid;
  grid-template-columns: var(--s06-rail) 1fr;
  grid-template-areas:
    "icon step"
    "icon name"
    "icon cmd"
    "line line";
  align-items: start;
  column-gap: var(--space-4);
  row-gap: var(--space-1);
  padding: var(--space-4) var(--space-5);
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card);
  transition:
    transform var(--dur-base) var(--ease-spring),
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

/* Hairline luminous top edge (mirrors .glass-card) */
#s06-pipeline .s06-pipeline__node::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 40%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

#s06-pipeline .s06-pipeline__node:hover {
  transform: translateY(-4px);
  border-color: rgba(248, 127, 46, 0.28);
  box-shadow: var(--shadow-lg), var(--glow);
}

/* --- Icon disc (the lit node on the rail) ------------------------------- */
#s06-pipeline .s06-pipeline__icon {
  grid-area: icon;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--s06-rail);
  height: var(--s06-rail);
  border-radius: 50%;
  border: 1px solid var(--border);
  background-color: var(--elevated);
  color: var(--dim);
  transition:
    color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-spring);
}

#s06-pipeline .s06-pipeline__icon svg {
  width: 26px;
  height: 26px;
}

#s06-pipeline .s06-pipeline__step {
  grid-area: step;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--dim);
  text-transform: uppercase;
}

#s06-pipeline .s06-pipeline__name {
  grid-area: name;
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--fg);
}

#s06-pipeline .s06-pipeline__cmd {
  grid-area: cmd;
  align-self: start;
  justify-self: start;
  display: inline-block;
  margin-top: var(--space-1);
  padding: 0.3em 0.7em;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--brand-light);
  font-size: 0.78rem;
}

#s06-pipeline .s06-pipeline__line {
  grid-area: line;
  margin-top: var(--space-3);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
}

/* --- Active (lit) state — added stage-by-stage on scroll ----------------
   Inactive floor is 0.7 (visibly "pending" but keeps the --muted body text
   ≥4.5:1 and the mono step label legible, even if a deep-linked user lands
   here before the light-up sequence fires). */
#s06-pipeline .s06-pipeline__stage {
  opacity: 0.7;
  transition: opacity var(--dur-slow) var(--ease-out);
}

#s06-pipeline .s06-pipeline__stage.active {
  opacity: 1;
}

#s06-pipeline .s06-pipeline__stage.active .s06-pipeline__icon {
  color: #1a0e04;
  border-color: transparent;
  background: var(--elev-gradient);
  box-shadow: 0 0 22px rgba(248, 127, 46, 0.32);
}

#s06-pipeline .s06-pipeline__stage.active .s06-pipeline__step {
  color: var(--brand-light);
}

#s06-pipeline .s06-pipeline__stage.active .s06-pipeline__node {
  border-color: rgba(248, 127, 46, 0.22);
}

/* --- Footer line -------------------------------------------------------- */
#s06-pipeline .s06-pipeline__foot {
  margin-top: clamp(2rem, 1.25rem + 3vw, 3.5rem);
  text-align: center;
  color: var(--dim);
  letter-spacing: 0.04em;
}

/* =============================================================================
   DESKTOP: horizontal 6-up row with a centered horizontal rail through the
   icon discs. Falls back to wrapping rows on mid widths.
   ============================================================================ */
@media (min-width: 880px) {
  #s06-pipeline .s06-pipeline__flow {
    grid-template-columns: repeat(6, 1fr);
    gap: clamp(0.75rem, 0.25rem + 1.2vw, 1.5rem);
    align-items: stretch;
  }

  /* HORIZONTAL rail: thread through the icon-disc centers near the top. */
  #s06-pipeline .s06-pipeline__flow::before,
  #s06-pipeline .s06-pipeline__flow::after {
    left: calc(var(--s06-rail-pad) + var(--s06-rail) / 2);
    right: calc(var(--s06-rail-pad) + var(--s06-rail) / 2);
    top: calc(var(--s06-node-pad-y) + var(--s06-rail) / 2);
    bottom: auto;
    width: auto;
    height: 2px;
    transform: translateY(-50%);
  }

  #s06-pipeline .s06-pipeline__flow::before {
    background: var(--elev-gradient);
  }

  /* Lit overlay grows left→right by width via --s06-progress. */
  #s06-pipeline .s06-pipeline__flow::after {
    right: auto;
    height: 2px;
    width: calc(
      (100% - (var(--s06-rail-pad) * 2) - var(--s06-rail)) * var(--s06-progress, 0)
    );
    transition: width var(--dur-slow) var(--ease-spring);
  }

  /* The padding inside each node before the icon disc starts, used to align
     the horizontal rail to the first/last disc centers. */
  #s06-pipeline {
    --s06-rail-pad: var(--space-5);
    --s06-node-pad-y: var(--space-5);
  }

  #s06-pipeline .s06-pipeline__node {
    grid-template-columns: 1fr;
    grid-template-areas:
      "icon"
      "step"
      "name"
      "cmd"
      "line";
    justify-items: start;
    row-gap: var(--space-2);
    column-gap: 0;
    height: 100%;
    padding: var(--s06-node-pad-y) var(--s06-rail-pad);
  }

  #s06-pipeline .s06-pipeline__line {
    margin-top: var(--space-2);
  }
}

/* Mid-width (560–879px): keep the single-column stacked layout so its working
   vertical spine — the "one binary runs the whole way" through-line — holds
   right up to where the desktop horizontal rail takes over at 880px. A
   spine-less 2-up band would lose the light-up-stage-by-stage device exactly at
   common tablet widths, so we deliberately do NOT switch to 2-up here. */

/* =============================================================================
   Reduced motion: everything visible/lit immediately, no growth transitions.
   (JS also sets all stages .active + full progress under reduced motion.)
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  #s06-pipeline .s06-pipeline__stage {
    opacity: 1;
  }
  #s06-pipeline .s06-pipeline__flow::after {
    transition: none;
  }
  #s06-pipeline .s06-pipeline__icon,
  #s06-pipeline .s06-pipeline__node {
    transition: none;
  }
  #s06-pipeline .s06-pipeline__node:hover {
    transform: none;
  }
}


/* >>> SECTION: s07-manifest (id=platform) — from build/sections/s07-manifest.css >>> */
/* =============================================================================
   s07-manifest — Hvorfor DronePoul (anchor: #platform)
   The ownership manifesto: incumbents (one layer each) vs. the whole line.
   All selectors prefixed with #platform to avoid collisions.
   ============================================================================ */

#platform {
  overflow: hidden;
}

/* --- Thesis head -------------------------------------------------------- */
#platform .manifest-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 64ch;
  margin-bottom: var(--space-8);
}

#platform .manifest-head .lead {
  max-width: 60ch;
}

/* --- Comparison device (incumbents vs. ours) ---------------------------- */
#platform .manifest-compare {
  align-items: stretch;
  margin-bottom: var(--space-7);
}

#platform .manifest-compare__heading {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--dim);
  margin-bottom: var(--space-4);
}

#platform .manifest-ours .manifest-compare__heading {
  color: var(--brand-light);
}

/* Incumbent cards — visibly diminished, each labelled "et lag" */
#platform .manifest-incumbents__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

#platform .manifest-incumbent {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  opacity: 0.82;
}

#platform .manifest-incumbent__name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--fg);
}

#platform .manifest-incumbent__role {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--dim);
}

#platform .manifest-incumbent__chip {
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
  border-color: var(--border);
  background-color: rgba(255, 255, 255, 0.015);
}

/* Hover restraint: incumbent cards do NOT lift (they're the "lesser" side) */
#platform .manifest-incumbent:hover {
  transform: none;
  border-color: var(--glass-border);
  box-shadow: var(--shadow-card);
}

/* --- DronePoul stacked block (4-layer stack, DEM accents) --------------- */
#platform .manifest-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
  padding: var(--space-5);
}

#platform .manifest-layer {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-5);
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.018);
  border: 1px solid var(--hairline);
  overflow: hidden;
}

/* Left accent bar — one DEM stop per tier (low -> high) */
#platform .manifest-layer__accent {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  border-radius: 0;
}

#platform .manifest-layer[data-tier="0"] .manifest-layer__accent { background: var(--elev-1); }
#platform .manifest-layer[data-tier="1"] .manifest-layer__accent { background: var(--elev-2); }
#platform .manifest-layer[data-tier="2"] .manifest-layer__accent { background: var(--elev-3); }
#platform .manifest-layer[data-tier="3"] .manifest-layer__accent { background: var(--elev-4); }

/* Faint tier wash that climbs the ramp */
#platform .manifest-layer[data-tier="3"] {
  background-color: var(--brand-wash);
  border-color: rgba(248, 127, 46, 0.22);
}

#platform .manifest-layer__index {
  color: var(--dim);
  font-weight: 500;
}

#platform .manifest-layer__name {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--fg);
}

/* --- Contrast block ----------------------------------------------------- */
#platform .manifest-contrast {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

#platform .manifest-contrast__rule {
  width: 3.5rem;
  height: 4px;
  margin-bottom: var(--space-1);
}

#platform .manifest-contrast__body {
  color: var(--muted);
  max-width: 64ch;
  line-height: 1.6;
}

/* --- "Kontrol betyder" proof chips -------------------------------------- */
#platform .manifest-control__heading {
  margin-bottom: var(--space-5);
}

#platform .manifest-control__grid {
  align-items: stretch;
}

#platform .manifest-proof {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

#platform .manifest-proof__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--brand-light);
  background-color: var(--brand-wash);
  border: 1px solid rgba(248, 127, 46, 0.22);
}

#platform .manifest-proof__icon svg {
  width: 20px;
  height: 20px;
}

#platform .manifest-proof__title {
  font-size: var(--fs-h3);
}

#platform .manifest-proof__text {
  color: var(--muted);
  line-height: 1.55;
}


/* >>> SECTION: s08-cta (id=kontakt) — from build/sections/s08-cta.css >>> */
/* =============================================================================
   s08-cta — Afslutning / CTA (anchor id="kontakt")
   Calm, centered keynote close with a soft radial brand glow at the base.
   All selectors prefixed with .s08-cta. Composes KIT classes; adds only the
   centered layout, the base glow, and the inert email-capture styling.
   ============================================================================ */

.s08-cta {
  /* establish a stacking context so the glow sits behind content */
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}

/* Soft radial brand glow anchored at the base of the section */
.s08-cta__glow {
  position: absolute;
  left: 50%;
  bottom: -28%;
  transform: translateX(-50%);
  width: min(140%, 1100px);
  height: 70%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 100% at 50% 100%, rgba(248, 127, 46, 0.18), transparent 70%),
    radial-gradient(ellipse 90% 80% at 50% 100%, rgba(248, 127, 46, 0.07), transparent 72%);
  filter: blur(2px);
}

.s08-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  max-width: 760px;
}

/* Centered lead: KIT .lead is left-aligned w/ a max-width — recenter it here */
.s08-cta__lead {
  max-width: 54ch;
  margin-inline: auto;
  text-align: center;
}

/* Dual primary/ghost CTA */
.s08-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-2);
}

.s08-cta__note {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 46ch;
}

/* --- Inert early-access capture ---------------------------------------- */
.s08-cta__capture {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
  max-width: 520px;
  margin-top: var(--space-4);
}

.s08-cta__field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  flex: 1 1 240px;
  min-width: 0;
}

.s08-cta__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.s08-cta__input {
  width: 100%;
  padding: 0.78em 1.1em;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background-color: rgba(255, 255, 255, 0.02);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  line-height: 1;
  transition:
    border-color var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.s08-cta__input::placeholder {
  color: var(--dim);
  opacity: 1;
}

.s08-cta__input:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.s08-cta__input:focus-visible {
  border-color: rgba(248, 127, 46, 0.4);
  background-color: var(--brand-wash);
  box-shadow: var(--glow);
}

.s08-cta__submit {
  flex: 0 0 auto;
}

/* Mono "this is a placeholder" note (also an aria-live status region) */
.s08-cta__placeholder {
  position: relative;
  z-index: 1;
  margin-top: calc(var(--space-2) * -1);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* --- Closing manifest bookend ------------------------------------------ */
.s08-cta__rule {
  width: 64px;
  margin-top: var(--space-6);
}

.s08-cta__manifest {
  max-width: 18ch;
  color: var(--fg);
  text-wrap: balance;
}

.s08-cta__contact {
  letter-spacing: 0.04em;
  color: var(--dim);
}

/* On small screens, capture stacks and submit goes full-width */
@media (max-width: 560px) {
  .s08-cta__capture {
    flex-direction: column;
    align-items: stretch;
  }
  .s08-cta__field {
    align-items: stretch;
  }
  .s08-cta__submit {
    width: 100%;
  }
  .s08-cta__actions .btn {
    width: 100%;
  }
}

/* <<< END SECTION-SCOPED CSS <<< */
