/* site.css: Phase 3 shared design system, loaded by every page before its
   own page.css. Sections: 0 tokens + reset; 1 type scale; 2 nav (fixed
   pill); 3 footer; 4 primitives (skip link, eyebrow, buttons, ghost
   control, rule, reveal-line, count-up, parallax planes, sticky card
   stack); 5 test guard.
   Extracted from the Phase 2 homepage (index.html inline style + home.css)
   so every inner page can load one system instead of re-declaring it. */

/* --------------------------------------------------- 0. tokens + reset */
:root {
  --navy: #0a0e1a;
  --lime: #39FF14;
  --lime-read: #b8e62e;
  --cyan: #00e3e4;
  --surface: #11162a;
  --surface-elev: #161c33;
  --border: #1f2742;
  --text: #ecf0fa;
  --text-dim: #7a85a8;
  --text-faint: #7c859b;
  --ink: #0a0e1a;
  caret-color: var(--lime);
  accent-color: var(--lime);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--navy); }
body {
  position: relative;
  background: var(--navy);
  color: var(--text);
  font-family: Inter, -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
svg { max-width: 100%; }
::selection { background: var(--lime); color: var(--navy); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@supports (scrollbar-color: auto) {
  html { scrollbar-color: color-mix(in oklab, var(--text) 26%, transparent) transparent; scrollbar-width: thin; }
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.wrap { width: min(1280px, 92%); margin: 0 auto; }

/* --------------------------------------------------------- 1. type scale
   Inter 400-800 for everything read, H1 included; JetBrains Mono for
   numbers/ticks/codes lives on the components that use it (eyebrow, count,
   footer copyright below). A page's own H1/H2 layout (max-width, margin,
   forced breaks) stays with the page -- this is base typography only. */
h1 { font-family: Inter, sans-serif; font-weight: 800; font-size: clamp(2.75rem, 4.75vw, 4.25rem); line-height: 1.04; letter-spacing: -1px; color: var(--text); text-wrap: balance; }
h2 { font-family: Inter, sans-serif; font-weight: 600; font-size: clamp(1.6rem, 2.3vw, 2rem); line-height: 1.2; letter-spacing: -0.015em; color: var(--text); max-width: 30ch; }

/* --------------------------------------------------- 2. nav (fixed pill)
   QuietNav: one slim bar, hairline, text links only, the four-dot mark.
   Blur + hairline after 40px, hide on scroll-down, return on scroll-up
   (site.js). Under 600px a single "Menu" button opens the links as a
   vertical list. aria-current="page" marks the page you're on. */
.navbar {
  width: min(1280px, 92%); margin: 0 auto;
  height: 64px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px;
  position: relative; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.mark { display: grid; grid-template-columns: repeat(2, 5px); gap: 3px; width: 13px; }
.mark i { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
.mark i:nth-child(4) { opacity: 0.35; }
.word { font: 600 0.78rem Orbitron, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; }
.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-dim); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--text); }

.navbar {
  position: fixed;
  top: 20px; left: 0; right: 0; margin-left: auto; margin-right: auto;
  /* Easing curve hardcoded (not a CSS variable) so it can't silently fall
     back to a different curve if a variable definition goes missing. */
  transition: transform .3s cubic-bezier(0.23, 1, 0.32, 1), background-color .25s ease, border-color .25s ease;
  will-change: transform;
}
.navbar.is-scrolled {
  background: rgba(17, 22, 42, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-color: var(--border);
}
.navbar.is-hidden { transform: translateY(-130%); }
@media (prefers-reduced-motion: reduce) { .navbar { transition: background-color .25s ease, border-color .25s ease; } }

/* The nav is fixed (out of flow), so body's padding-top supplies the
   clearance an in-flow nav would otherwise give: nav top offset (20px) +
   nav height (64px desktop / 56px <=860px) + a small gap. */
body { padding-top: 104px; }
@media (max-width: 860px) { body { padding-top: 92px; } }

.nav-menu-btn {
  display: none;
  background: transparent; border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font: 600 13px/1 Inter, sans-serif;
  padding: 9px 14px; cursor: pointer;
}
.nav-menu-btn:hover, .nav-menu-btn:focus-visible { border-color: var(--cyan); color: var(--cyan); outline: none; }

@media (max-width: 860px) {
  .wrap, .navbar { width: calc(100% - 40px); }
  .navbar { height: 56px; padding: 0 16px; }
  .nav-right { gap: 18px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
  .word { font-size: 0.7rem; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: inline-block; }
  /* Anchored to .navbar (already position: fixed everywhere), not
     .nav-right: .nav-right shrinks to the Menu button's own width once
     .nav-links is display: none, so left:0/right:0 against it squeezed
     the open panel down to the button's ~66px and wrapped every link
     onto two or three lines. .navbar spans the full pill at every
     width, so the panel now opens edge-to-edge with it. */
  .nav-links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; gap: 2px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
    padding: 16px; z-index: 60;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: 16px; padding: 12px 8px; display: block; }   /* block, or the 12px padding paints and takes taps without laying out, and each row's hit box overlaps the next */
}

/* -------------------------------------------------------------- 3. footer */
.rule { border-top: 1px solid var(--border); }
footer { padding: 28px 0 40px; display: flex; flex-direction: column; gap: 18px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; }
.foot-links a { color: var(--text-dim); font-size: 13px; font-weight: 500; }
.foot-links a:hover { color: var(--text); text-decoration: none; }
/* Scoped to footer: unscoped `.copy` collided with a page's own hero
   container of the same class (thank-you.html's `<div class="copy">`),
   pulling its two paragraphs of running prose into this mono footer
   typeface. Every footer copyright line is a descendant of <footer>, so
   this reaches exactly the same elements as before and nothing else. */
footer .copy { color: var(--text-faint); font: 500 0.7rem 'JetBrains Mono', monospace; letter-spacing: 0.04em; }

