/*
SCHEMA: cinematic-css
ONE-LINE: Shared cinematic design system for sub-pages (/how, /why-summit, /contact, /privacy) — mirrors the inline <style> block in /index.html.

SYNC HAZARD: design tokens (--bg, --fg, --accent-2, type stack, etc.) are duplicated between this file and the inline <style> in /03-site/index.html. The homepage keeps its inline block because it carries hero-video + snowfall behavior that's homepage-only. If you change a token here, change it in index.html's inline <style> too, and vice versa — otherwise the homepage and sub-pages drift apart visually. Defines nav, page-hero, buttons, sections, two-col, step-cards, retainer-strip, disciplines, bullet-list, contact-grid, prose (privacy-policy light-card override for Termly), footer, scroll-fade reveal, and responsive breakpoints. Touch when changing the cinematic visual language or adding sub-page component classes.
*/

/* =====================================================================
 * cinematic.css — Shared design system for sub-pages
 *
 * Source of truth for the cinematic visual language as applied to
 * sub-pages (/how, /why-summit, /contact, /privacy). Mirrors the inline
 * styles in index.html (the homepage retains its inline block because
 * it carries hero-video + snowfall behavior that's homepage-only).
 *
 * If you change a design token here, change it in index.html's inline
 * <style> too, and vice versa.
 * ===================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #050709;
  --bg-2: #0a0e1a;
  --bg-3: #080b16;
  --fg: #e8ecf2;
  --fg-2: rgba(232, 236, 242, 0.65);
  --fg-3: rgba(232, 236, 242, 0.55);
  --accent: #1B3A6B;
  --accent-2: #0F2D61;          /* brand navy — for identity surfaces */
  --accent-2-bright: #3a6cb8;   /* brighter brand-family blue — for UI legibility (~3.9:1 vs bg) */
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.18);
}

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  letter-spacing: 0.18em;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
/* Blur lives on a pseudo-element, not nav itself: backdrop-filter on nav
   would establish a containing block and clip the position:fixed mobile
   drawer to the bar. Keep in sync with index.html. */
nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 7, 9, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
nav .brand {
  display: flex; align-items: center;
  text-decoration: none;
  color: var(--fg);
}
.brand-logo {
  height: 28px;
  width: auto;
  display: block;
}
nav .links { display: flex; gap: 28px; }
nav a {
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  color: var(--fg-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  transition: color 0.2s;
}
nav a:hover { color: var(--fg); }
nav a.current { color: var(--fg); }

/* ===== PAGE HEADER (sub-page hero — no video) ===== */
.page-hero {
  position: relative;
  padding: 200px 32px 120px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  text-align: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.3) 100%);
}
.page-hero .container { max-width: 820px; margin: 0 auto; }
.page-hero .eyebrow { margin-bottom: 28px; }
.page-hero h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-optical-sizing: auto;
  font-size: clamp(40px, 6.5vw, 80px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 28px;
  color: var(--fg);
}
.page-hero .lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: rgba(232, 236, 242, 0.78);
  line-height: 1.5;
  max-width: 640px;
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--fg);
  padding: 16px 36px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  font-family: inherit;
  text-decoration: none;
  font-weight: 500;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}
.btn:hover {
  border-color: rgba(255,255,255,1);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 6px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.15);
  transform: translateY(-1px);
}
.btn-solid {
  background: var(--fg);
  color: var(--bg);
  border: none;
  font-weight: 600;
}
.btn-solid:hover { background: #fff; color: var(--bg); }

/* ===== SECTIONS ===== */
section.content {
  padding: 110px 32px;
  border-top: 1px solid var(--border);
}
section.content.alt { background: var(--bg-3); }

.container { max-width: 1100px; margin: 0 auto; }

.eyebrow {
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.22em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 24px;
  max-width: 820px;
}

h3 {
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-lede {
  font-size: 20px;
  font-weight: 400;
  color: rgba(232, 236, 242, 0.78);
  max-width: 640px;
  line-height: 1.5;
}

p { font-size: 16px; color: rgba(232, 236, 242, 0.78); line-height: 1.65; }

/* ===== TWO-COLUMN BLOCK (used on /how + /why-summit) ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  margin-top: 48px;
}
.two-col .col-left {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.6;
  color: var(--fg);
}
.two-col .col-left ul { list-style: none; padding: 0; margin: 0; }
.two-col .col-left li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.two-col .col-left li:last-child { border-bottom: none; }
.two-col .col-right p {
  font-size: 18px;
  color: rgba(232, 236, 242, 0.78);
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 580px;
}
.two-col .col-right p:last-child { margin-bottom: 0; }

/* ===== STEP CARDS (methodology — Meet/Understand/Integrate) ===== */
.step-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  margin-top: 56px;
}
.step-card {
  background: var(--bg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
}
section.content.alt .step-card { background: var(--bg-3); }
.step-card .cap-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent-2-bright);
  margin-bottom: 24px;
}
.step-card h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.step-card .price-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg-3);
  margin-bottom: 20px;
}
.step-card p {
  font-size: 15px;
  color: rgba(232, 236, 242, 0.78);
  line-height: 1.65;
  margin-bottom: 20px;
}
.step-card .deliverables {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: rgba(232, 236, 242, 0.72);
  line-height: 1.7;
}
.step-card .deliverables .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg-3);
  margin-bottom: 10px;
  display: block;
}
.step-card .deliverables ul { list-style: none; padding: 0; margin: 0; }
.step-card .deliverables li { padding: 3px 0; }
.step-card .deliverables li::before {
  content: "+ ";
  color: var(--accent-2-bright);
}

/* ===== RETAINER STRIP ===== */
.retainer-strip {
  margin-top: 64px;
  border: 1px solid var(--border-strong);
  padding: 40px 36px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 36px;
  align-items: center;
}
.retainer-strip .terms ul { list-style: none; padding: 0; margin: 0; }
.retainer-strip .terms li {
  font-size: 16px;
  color: rgba(232, 236, 242, 0.78);
  padding: 6px 0;
}
.retainer-strip .terms li::before {
  content: "+ ";
  color: var(--accent-2-bright);
}
.retainer-strip .price-block {
  text-align: right;
  border-left: 1px solid var(--border);
  padding-left: 36px;
}
.retainer-strip .price-block .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--fg-3);
  margin-bottom: 12px;
}
.retainer-strip .price-block .amount {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--fg);
}
.retainer-strip .price-block .caveat {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--fg-3);
  margin-top: 12px;
  line-height: 1.5;
}

/* ===== DISCIPLINE LIST (with descriptions, /why-summit) ===== */
.disciplines { margin-top: 56px; display: flex; flex-direction: column; gap: 1px; background: var(--border); }
.discipline {
  background: var(--bg);
  padding: 36px 32px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}
section.content.alt .discipline { background: var(--bg-3); }
.discipline h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.discipline p {
  font-size: 16px;
  color: rgba(232, 236, 242, 0.78);
  line-height: 1.65;
  max-width: 560px;
}

/* ===== DON'T-DO + CONTRAST LISTS ===== */
.bullet-list {
  margin-top: 32px;
  list-style: none;
  padding: 0;
}
.bullet-list li {
  font-size: 17px;
  color: rgba(232, 236, 242, 0.82);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.55;
}
.bullet-list li:last-child { border-bottom: none; }
.bullet-list li::before {
  content: "— ";
  color: var(--fg-3);
}

.callout {
  margin-top: 32px;
  border-left: 2px solid var(--accent-2-bright);
  padding-left: 24px;
  font-size: 17px;
  color: rgba(232, 236, 242, 0.82);
  line-height: 1.6;
  max-width: 720px;
}

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  margin-top: 48px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-form label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--fg-3);
  text-transform: uppercase;
}
.contact-form input,
.contact-form textarea {
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  color: var(--fg);
  padding: 14px 16px;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  border-radius: 0;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-2-bright);
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form button { align-self: flex-start; margin-top: 8px; }

.contact-direct {
  border-left: 1px solid var(--border);
  padding-left: 40px;
}
.contact-direct .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--fg-3);
  margin-bottom: 16px;
}
.contact-direct .field-block {
  margin-bottom: 24px;
}
.contact-direct .field-block .key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg-3);
  margin-bottom: 6px;
}
.contact-direct .field-block .value {
  font-size: 16px;
  color: var(--fg);
}
.contact-direct a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--border-strong); }
.contact-direct a:hover { border-color: var(--fg); }

/* ===== PROSE (privacy policy and similar) ===== */
.prose {
  max-width: 720px;
  margin: 0 auto;
}
.prose h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  margin: 56px 0 16px;
  max-width: none;
}
.prose h2:first-child { margin-top: 0; }
.prose p {
  font-size: 16px;
  color: rgba(232, 236, 242, 0.82);
  line-height: 1.7;
  margin-bottom: 16px;
}
.prose ul {
  margin: 0 0 16px 0;
  padding-left: 0;
  list-style: none;
}
.prose ul li {
  font-size: 16px;
  color: rgba(232, 236, 242, 0.82);
  line-height: 1.7;
  padding: 4px 0 4px 20px;
  position: relative;
}
.prose ul li::before {
  content: "—";
  color: var(--fg-3);
  position: absolute;
  left: 0;
}
.prose .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--fg-3);
  margin-bottom: 40px;
  text-transform: uppercase;
}
.prose a { color: var(--fg); border-bottom: 1px solid var(--border-strong); text-decoration: none; }
.prose a:hover { border-color: var(--fg); }

/* ===== FOOTER ===== */
footer {
  padding: 56px 32px 40px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
footer .col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--fg-3);
  margin-bottom: 16px;
  font-weight: 500;
  text-transform: uppercase;
}
footer .col a {
  display: block;
  font-size: 14px;
  color: var(--fg-2);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
}
footer .col a:hover { color: var(--fg); }
footer .brand-block {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--fg-3);
  line-height: 1.8;
}
footer .footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg-3);
}

/* ===== SCROLL FADE-IN ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE BREAKPOINTS ===== */

@media (min-width: 2560px) {
  nav { padding: 28px 64px; }
  .brand-logo { height: 36px; }
  nav a { font-size: 15px; }
  nav .links { gap: 40px; }

  .page-hero { padding: 260px 64px 160px; }
  .page-hero .container { max-width: 980px; }
  .page-hero h1 { font-size: 104px; }
  .page-hero .lede { font-size: 24px; max-width: 760px; }

  section.content { padding: 160px 64px; }
  .container { max-width: 1500px; }
  h2 { font-size: 88px; max-width: 1100px; }
  .section-lede { font-size: 24px; max-width: 760px; }
  .eyebrow { font-size: 14px; }

  footer { padding: 80px 64px 56px; }
}

@media (min-width: 900px) and (max-width: 1199px) {
  nav { padding: 16px 28px; }
  nav .links { gap: 22px; }
  nav a { font-size: 12px; }

  .page-hero { padding: 160px 28px 100px; }

  section.content { padding: 90px 28px; }
  .container { max-width: 100%; }
}

@media (min-width: 600px) and (max-width: 899px) {
  nav { padding: 14px 22px; }
  nav .links { gap: 18px; }
  nav a { font-size: 11px; }

  .page-hero { padding: 140px 24px 80px; }

  section.content { padding: 80px 24px; }

  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .step-cards { grid-template-columns: 1fr 1fr; }
  .discipline { grid-template-columns: 1fr; gap: 16px; }
  .retainer-strip { grid-template-columns: 1fr; }
  .retainer-strip .price-block { border-left: none; padding-left: 0; text-align: left; border-top: 1px solid var(--border); padding-top: 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-direct { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 32px; }
  footer .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 599px) {
  nav { padding: 12px 18px; }
  .brand-logo { height: 22px; }
  nav .links { gap: 14px; }
  nav a { font-size: 11px; }

  .page-hero { padding: 110px 20px 70px; }
  .page-hero h1 { font-size: 36px; }
  .page-hero .lede { font-size: 16px; }

  section.content { padding: 64px 20px; }
  h2 { font-size: 32px; line-height: 1.12; }
  .section-lede { font-size: 16px; }
  .eyebrow { font-size: 10px; }

  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .two-col .col-left { font-size: 19px; }
  .two-col .col-right p { font-size: 16px; }

  .step-cards { grid-template-columns: 1fr; }
  .step-card { padding: 32px 24px; }
  .step-card h3 { font-size: 26px; }

  .discipline { grid-template-columns: 1fr; gap: 12px; padding: 28px 22px; }
  .discipline h3 { font-size: 24px; }

  .retainer-strip { grid-template-columns: 1fr; padding: 28px 22px; }
  .retainer-strip .price-block { border-left: none; padding-left: 0; text-align: left; border-top: 1px solid var(--border); padding-top: 20px; }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-direct { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 28px; }

  footer { padding: 40px 20px 28px; }
  footer .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  footer .footer-bottom { flex-direction: column; gap: 10px; text-align: left; }
}

/* Shrink (do NOT hide) the inline nav links on the smallest screens.
   At <=899px the MOBILE NAV block below replaces this row with a hamburger
   drawer; this rule only governs the no-JS fallback, where the links stay
   inline. The footer also carries full nav on every page. */
@media (max-width: 480px) {
  nav .links { gap: 10px; }
  nav a { font-size: 10px; }
}

/* =====================================================================
   Privacy policy container — Option A (light card on dark site)
   ---------------------------------------------------------------------
   Termly's CSS expects a light background (#000 headings, #595959 body,
   #3030F1 links). We give it one here rather than overriding everything,
   preserving the intended legal-document readability.

   Polish-pass overrides below also:
     - hide Termly's own title + "Last updated" line (the page hero
       now carries them, so leaving them in the card double-titles)
     - fix Termly's invalid heading HTML — the generator wraps every
       h1/h2/h3 in <strong><span>…</span></strong>, which the parser
       hoists out so the headings render at browser-default sizes.
       Explicit font sizes here restore visual hierarchy.
     - brand-align links (#1e40af → #0F2D61 hover) and override
       Termly's Arial body font with the site system stack
   ===================================================================== */
.privacy-container {
  max-width: 800px;
  margin: 0 auto 96px;
  padding: 64px 56px 72px;
  background: #ffffff;
  color: #2a2a2a;
  border-radius: 12px;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.45),
    0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.65;
}

@media (max-width: 768px) {
  .privacy-container {
    margin: 0 16px 64px;
    padding: 40px 28px 48px;
    border-radius: 8px;
  }
}

/* Hide Termly's own title + "Last updated" — hero carries them now */
.privacy-container [data-custom-class='title'],
.privacy-container [data-custom-class='subtitle'] {
  display: none;
}

/* Termly wraps h1/h2/h3 in <strong><span>; browsers hoist the heading
   out and render at default sizes. Explicit sizes restore hierarchy. */
.privacy-container h1 {
  font-size: 28px;
  font-weight: 700;
  color: #0F2D61;
  margin: 0 0 8px;
  line-height: 1.2;
}
.privacy-container h2 {
  font-size: 22px;
  font-weight: 700;
  color: #0F2D61;
  margin: 32px 0 12px;
  line-height: 1.3;
}
.privacy-container h3 {
  font-size: 17px;
  font-weight: 600;
  color: #0F2D61;
  margin: 24px 0 8px;
  line-height: 1.4;
}

/* Brand-align links (Termly hardcodes #3030F1 royal blue) */
.privacy-container a,
.privacy-container [data-custom-class='link'] {
  color: #1e40af !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.privacy-container a:hover {
  color: #0F2D61 !important;
}

/* Lists — Termly inline-styles individual <li>s; these defaults
   apply when Termly's per-li style is absent */
.privacy-container ul {
  list-style: disc;
  padding-left: 1.5em;
}
.privacy-container ul ul {
  list-style: circle;
}

/* Override Termly's Arial body font with the site system stack
   (Termly's inline styles on individual elements still take precedence,
   so this only affects elements without an inline font-family override) */
.privacy-container [data-custom-class='body_text'] {
  color: #2a2a2a !important;
  font-family: inherit !important;
}

    /* === MOBILE NAV — keep in sync: index.html inline <style> <-> cinematic.css === */
    /* Hamburger + slide-in drawer for <=899px. Behavior in /nav.js.
       The existing nav .links container IS the drawer. /nav.js adds .has-toggle
       (JS active) and toggles .menu-open; without JS the links stay inline. */
    .nav-toggle {
      display: none;
      width: 44px;
      height: 44px;
      padding: 0;
      margin: 0;
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 7px;
      color: var(--fg);
      cursor: pointer;
      align-items: center;
      justify-content: center;
      z-index: 102;
    }
    .nav-toggle-box {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 4px;
      width: 20px;
      height: 14px;
    }
    .nav-toggle-bar {
      display: block;
      width: 100%;
      height: 2px;
      background: currentColor;
      border-radius: 2px;
      transition: transform 0.3s ease, opacity 0.2s ease;
    }
    @media (max-width: 899px) {
      .nav-toggle { display: inline-flex; }

      nav.has-toggle .links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 4px;
        padding: 92px 28px 40px;
        background: rgba(5, 7, 9, 0.97);
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
        z-index: 101;
        overflow-y: auto;
      }
      nav.has-toggle.menu-open .links { transform: translateX(0); }

      nav.has-toggle .links a {
        width: 100%;
        font-size: 17px;
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
      }

      nav.has-toggle.menu-open .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
      nav.has-toggle.menu-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
      nav.has-toggle.menu-open .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    }
    @media (prefers-reduced-motion: reduce) {
      nav.has-toggle .links,
      .nav-toggle-bar { transition: none; }
    }
    /* === END MOBILE NAV === */
