/* ============================================
   SILICAIRN — Design System
   Apple-glass × Anduril-structure, held in the middle.
   Light-first, token-driven, optional dark mode.
   ============================================ */

:root {
  /* --- Raw palette --- */
  --black: #000000;
  --ink: #0A0A0A;
  --white: #FFFFFF;
  --red: #DC2626;
  --red-hover: #B91C1C;
  --red-active: #7F1D1D;
  --yellow: #FACC15;
  --gray: #404040;
  --gray-soft: #6B7280;
  --hairline-light: #E5E5E5;

  /* --- Semantic (light) --- */
  --bg: #FFFFFF;
  --surface-ink: #000000;        /* nav, footer, dark bands */
  --text: #0A0A0A;
  --text-secondary: #404040;
  --text-muted: #4B5563;        /* AA on white (~7:1) for small labels */
  --on-ink: #FFFFFF;
  --on-ink-secondary: rgba(255, 255, 255, 0.80);
  --on-ink-muted: rgba(255, 255, 255, 0.68);
  --border: #E5E5E5;
  --border-ink: rgba(255, 255, 255, 0.12);

  /* --- Glass --- */
  --glass-base: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.20);
  --glass-blur: 12px;
  --glass-saturate: saturate(120%);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.15);
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.08);

  /* --- Type --- */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', 'Menlo', 'Consolas', monospace;

  /* --- Spacing (8pt) --- */
  --s-1: 0.25rem;  /* 4 */
  --s-2: 0.5rem;   /* 8 */
  --s-3: 0.75rem;  /* 12 */
  --s-4: 1rem;     /* 16 */
  --s-6: 1.5rem;   /* 24 */
  --s-8: 2rem;     /* 32 */
  --s-12: 3rem;    /* 48 */
  --s-16: 4rem;    /* 64 */
  --s-20: 5rem;    /* 80 */
  --s-24: 6rem;    /* 96 */

  /* --- Layout --- */
  --maxw: 1200px;
  --gutter: 24px;
  --margin: 48px;
  --nav-h: 64px;
  --radius: 6px;     /* soft corners: buttons, inputs, image crops */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0A0A;
    --text: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.78);
    --text-muted: rgba(255, 255, 255, 0.66);
    --border: rgba(255, 255, 255, 0.12);
    --glass-saturate: saturate(180%);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.45);
  }
}

/* ============================================
   Reset & base
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

::selection {
  background: var(--yellow);
  color: #000;
}
::highlight(bubble-persistent) {
  text-decoration-line: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ============================================
   Layout primitives
   ============================================ */

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--margin) * 2);
  margin: 0 auto;
  padding: 0 var(--margin);
}

.section {
  padding: var(--s-24) 0;
}

.section--tight { padding: var(--s-16) 0; }

.section--ink {
  background: var(--surface-ink);
  color: var(--on-ink);
}

.measure-wide { max-width: 760px; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

/* ============================================
   Type utilities
   ============================================ */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.section--ink .eyebrow,
.eyebrow--ink { color: var(--on-ink-muted); }
.eyebrow--red { color: var(--red); }

.display {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-secondary);
}

.body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}
.body + .body { margin-top: var(--s-4); }

.on-ink-secondary { color: var(--on-ink-secondary); }

.mono { font-family: var(--font-mono); }

/* Inline technical token, e.g. silOS, used sparingly */
.tok {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Red highlight for the one accent moment */
.accent { color: var(--red); }

/* ============================================
   Cairn signature: stacked-hairline divider
   ============================================ */

.cairn-divider {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: var(--s-8);
  width: 56px;
}
.cairn-divider span {
  display: block;
  height: 1px;
  background: var(--border);
}
.cairn-divider span:nth-child(1) { width: 56px; }
.cairn-divider span:nth-child(2) { width: 40px; }
.cairn-divider span:nth-child(3) { width: 28px; }
.cairn-divider span:nth-child(4) { width: 16px; }
.section--ink .cairn-divider span,
.cairn-divider--ink span { background: var(--border-ink); }

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.75rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-primary:hover { background: var(--red-hover); border-color: var(--red-hover); }
.btn-primary:active { background: var(--red-active); border-color: var(--red-active); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn-secondary:hover { background: rgba(0, 0, 0, 0.05); }

.section--ink .btn-secondary,
.btn-secondary--ink {
  color: var(--on-ink);
  border-color: rgba(255, 255, 255, 0.4);
}
.section--ink .btn-secondary:hover,
.btn-secondary--ink:hover { background: rgba(255, 255, 255, 0.08); }

.btn-full { width: 100%; }

/* Arrow link */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s ease, gap 0.2s ease;
}
.arrow-link svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.arrow-link:hover { color: var(--red); }
.arrow-link:hover svg { transform: translateX(3px); }
.section--ink .arrow-link { color: var(--on-ink); }
.section--ink .arrow-link:hover { color: var(--yellow); }

/* ============================================
   Glass
   ============================================ */

.glass {
  position: relative;
  background: var(--glass-base);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  border-radius: 0;          /* glass = structural hard corners */
  contain: paint;            /* limit repaint cost of the blur */
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    -webkit-backdrop-filter: blur(var(--glass-blur)) var(--glass-saturate);
    backdrop-filter: blur(var(--glass-blur)) var(--glass-saturate);
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  /* opaque fallback so text stays legible without blur */
  .glass { background: rgba(10, 10, 10, 0.82); border-color: rgba(255, 255, 255, 0.18); }
}

/* ============================================
   Navigation (flat ink bar, sticky, shrinks on scroll)
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--surface-ink);
  border-bottom: 1px solid var(--border-ink);
}

.nav-inner {
  max-width: calc(var(--maxw) + var(--margin) * 2);
  margin: 0 auto;
  padding: 0 var(--margin);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height 0.3s ease;
}
.nav.scrolled .nav-inner { height: 52px; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-logo-mark { width: 22px; height: auto; }
.nav-logo-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--on-ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-8);
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--on-ink-secondary);
  transition: color 0.2s ease;
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a:hover { color: var(--on-ink); }

.nav-active { color: var(--on-ink) !important; }
.nav-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--red);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  color: var(--on-ink) !important;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.nav-cta:hover { background: var(--red); border-color: var(--red); }
/* current-page CTA: filled, no conflicting underline */
.nav-cta[aria-current="page"] { background: var(--red); border-color: var(--red); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 36px;
  height: 36px;
  padding: 6px;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--on-ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.active .nav-toggle-bar:first-child { transform: rotate(45deg) translate(3px, 3px); }
.nav-toggle.active .nav-toggle-bar:last-child { transform: rotate(-45deg) translate(3px, -3px); }

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  background: var(--surface-ink);
  color: var(--on-ink);
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* Terrain/contour backdrop — finished look without a photo;
   founder may replace .hero-bg-img with a real image. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1200px 600px at 75% 10%, rgba(220, 38, 38, 0.10), transparent 60%),
    radial-gradient(900px 500px at 10% 90%, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(180deg, #050505 0%, #0c0c0c 100%);
}
.hero-bg-lines {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("/assets/contours.svg");
  background-size: cover;
  background-position: center;
  mix-blend-mode: screen;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;            /* set to image; raise opacity when provided */
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(var(--s-16), 10vh, var(--s-24));
}

.hero-eyebrow { margin-bottom: var(--s-6); }

.hero-panel {
  max-width: 640px;
  padding: var(--s-12);
}
.hero-panel .display { color: var(--on-ink); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-8);
}

/* small waypoint chip — anchors silOS in the first fold */
.waypoint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--s-6);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--on-ink-secondary);
}
.waypoint::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 1px;
  flex-shrink: 0;
}

/* ============================================
   Statement band (build & break)
   ============================================ */

.statement {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  max-width: 900px;
}
.statement .accent { color: var(--red); }

/* ============================================
   Proof cards (build & break, alternating)
   ============================================ */

.proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  align-items: stretch;
  margin-top: var(--s-12);
}
.proof + .proof { margin-top: var(--gutter); }
.proof--flip .proof-media { order: 2; }

.proof-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  background: #0c0c0c;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.proof-media img { width: 100%; height: 100%; object-fit: cover; }
.proof-media-placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: var(--s-6);
  background:
    radial-gradient(700px 380px at 70% 0%, rgba(220, 38, 38, 0.14), transparent 60%),
    linear-gradient(180deg, #0a0a0a, #141414);
  color: var(--on-ink-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.proof-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s-8) var(--s-4);
}
.proof-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s-3);
}
.proof-body .h2 { margin-bottom: var(--s-3); }

/* Big stat callout */
.stat {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--red);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--s-2);
}

/* ============================================
   Feature / capability rows
   ============================================ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  margin-top: var(--s-12);
}
.feature {
  border-top: 1px solid var(--border);
  padding-top: var(--s-4);
}
.section--ink .feature { border-top-color: var(--border-ink); }
.feature-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.feature .h3 { margin: var(--s-3) 0 var(--s-2); }
.feature p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.65; }

/* ============================================
   Glass card (silOS panel, callouts)
   ============================================ */

.glass-panel {
  padding: var(--s-12);
}
.glass-panel .lead { color: var(--on-ink-secondary); }

/* spec list (Anduril rigor) */
.spec-list {
  display: flex;
  flex-direction: column;
  margin-top: var(--s-6);
}
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-3) 0;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}
.section--ink .spec-list li { border-top-color: var(--border-ink); }
.spec-k { font-family: var(--font-mono); letter-spacing: 0.04em; color: var(--text-muted); }
.section--ink .spec-k { color: var(--on-ink-muted); }
.spec-v { text-align: right; color: var(--text-secondary); }
.section--ink .spec-v { color: var(--on-ink-secondary); }

/* ============================================
   CTA band
   ============================================ */

.cta-band { text-align: center; }
.cta-band .display { margin-bottom: var(--s-6); }
.cta-band .lead { margin: 0 auto var(--s-8); max-width: 520px; color: var(--on-ink-secondary); }

/* ============================================
   Forms (contact)
   ============================================ */

.form { max-width: 560px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.form-group { margin-bottom: var(--s-4); }
.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--s-2);
}
.form-input,
.form-textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.875rem;
  min-height: 44px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.form-status { font-size: 0.875rem; margin-top: var(--s-4); min-height: 1.2em; }
.form-status.is-error { color: var(--red); }
.form-status.is-ok { color: var(--text); }

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--surface-ink);
  color: var(--on-ink);
  padding: var(--s-20) 0 var(--s-8);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: var(--s-16);
  padding-bottom: var(--s-12);
  border-bottom: 1px solid var(--border-ink);
}
.footer-brand { max-width: 320px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--s-4);
}
.footer-logo-mark { width: 20px; height: auto; }
.footer-logo-text { font-size: 1rem; font-weight: 700; letter-spacing: 0.12em; }
.footer-tagline { font-size: 0.875rem; line-height: 1.6; color: var(--on-ink-secondary); }
.footer-cols { display: flex; gap: var(--s-16); }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--on-ink-muted);
  margin-bottom: var(--s-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.875rem; color: var(--on-ink-secondary); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--on-ink); }
.footer-bottom {
  padding-top: var(--s-8);
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.75rem; color: var(--on-ink-muted); }
.footer-note { font-size: 0.75rem; color: var(--on-ink-muted); font-family: var(--font-mono); letter-spacing: 0.04em; }

/* ============================================
   Page header (interior pages)
   ============================================ */

.page-header {
  padding: calc(var(--nav-h) + var(--s-20)) 0 var(--s-12);
  background: var(--surface-ink);
  color: var(--on-ink);
}
.page-header .display { color: var(--on-ink); max-width: 14ch; }
.page-header .lead { color: var(--on-ink-secondary); max-width: 640px; margin-top: var(--s-6); }

/* ============================================
   Scroll reveal
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================
   Selection bubble (secondary "Ask Us" touch)
   ============================================ */

.select-bubble {
  position: absolute;
  display: none;
  padding: 0.2rem 0.5rem;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius);
  z-index: 2000;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  cursor: pointer;
}
.select-bubble::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -4px;
  transform: translateY(-50%);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 5px solid var(--ink);
}
.select-bubble:not(.editing):hover { background: var(--red); }
.select-bubble:not(.editing):hover::before { border-right-color: var(--red); }
.select-bubble.visible { display: block; }
.select-bubble-input {
  display: none;
  background: transparent;
  border: none;
  outline: none;
  font: inherit;
  font-weight: 500;
  color: var(--white);
  padding: 0;
  margin: 0;
  min-width: 1ch;
}
.select-bubble-input::placeholder { color: rgba(255, 255, 255, 0.5); font-weight: 400; }
.select-bubble.editing { cursor: text; }
.select-bubble.editing .select-bubble-text { display: none; }
.select-bubble.editing .select-bubble-input { display: inline-block; vertical-align: middle; }
.select-bubble-submit {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: 0.35rem;
  width: 16px;
  height: 16px;
  background: var(--red);
  color: var(--white);
  border-radius: 3px;
  vertical-align: middle;
}
.select-bubble-submit svg { width: 8px; height: 8px; display: block; }
.select-bubble.editing.has-value .select-bubble-submit { display: inline-flex; }

/* ============================================
   Reduced motion
   ============================================ */

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

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  :root { --margin: 32px; --gutter: 16px; }
}

@media (max-width: 768px) {
  :root { --margin: 16px; --gutter: 16px; --s-24: 4.5rem; --s-20: 3.5rem; }

  .section { padding: var(--s-20) 0; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: var(--s-12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 1.25rem; color: var(--on-ink); }
  .nav-cta { border: none; padding: 0; }

  .hero-panel { padding: var(--s-8) 0 0; }
  .hero { min-height: 88vh; min-height: 88svh; }

  .proof, .proof--flip .proof-media { grid-template-columns: 1fr; }
  .proof--flip .proof-media { order: 0; }
  .proof-media, .proof-media-placeholder { min-height: 240px; }

  .feature-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .footer-top { flex-direction: column; gap: var(--s-12); }
  .footer-cols { gap: var(--s-12); flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .glass-panel, .hero-panel { padding-left: 0; padding-right: 0; }
  .hero-panel { padding: var(--s-6) 0 0; }
}
