/* =============================================================================
   Legado Capital — design system
   Dark, quiet, private-capital. Whisper champagne accent on midnight navy.
   Two families: Cormorant Garamond (display) + Jost (UI/body).
   Tracking law: as type grows, tracking tightens; as it shrinks, tracking widens.
   ========================================================================== */

/* ----------------------------- Tokens ----------------------------------- */
:root {
  /* surfaces */
  --ground: #0A0E18;
  --ground-deep: #070A12;
  --surface: #111726;
  --surface-raised: #161D2E;
  --border: #1E2536;
  --border-strong: #2A3346;

  /* ink */
  --text-primary: #F4F1EA;
  --text-secondary: #C9C7BF;
  --text-muted: #8A8E99;

  /* accent — used only on hairlines, tiny labels, hover */
  --accent: #C2A56B;
  --accent-hover: #D4BA84;
  --accent-pressed: #9E8552;
  --hairline-accent: rgba(194, 165, 107, 0.24);

  --emblem-stroke: rgba(244, 241, 234, 0.92);
  --hairline: rgba(244, 241, 234, 0.10);
  --hairline-strong: rgba(244, 241, 234, 0.18);
  --scrim: rgba(7, 10, 18, 0.72);
  --focus: #C2A56B;

  /* fonts */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* rhythm */
  --container: 1120px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section-pad: clamp(5.5rem, 12vh, 9.5rem);

  /* motion */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: 0.005em;
  color: var(--text-secondary);
  background-color: var(--ground);
  background-image: radial-gradient(120% 80% at 50% 30%, #0E1424 0%, var(--ground) 46%, var(--ground-deep) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; padding: 0; }

::selection { background: rgba(194, 165, 107, 0.22); color: var(--text-primary); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 1px;
}
:focus:not(:focus-visible) { outline: none; }

/* ----------------------------- Background layers ------------------------ */
.bg-grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bg-spine {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--hairline) 12%, var(--hairline) 88%, transparent);
  opacity: 0.6;
}

/* ----------------------------- Layout ----------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 2;
}

.section { padding-block: var(--section-pad); position: relative; z-index: 2; }
.measure { max-width: 64ch; }
.prose p + p { margin-top: 1.25em; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--surface-raised);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ----------------------------- Typography ------------------------------- */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.875rem, 3.2vw, 2.75rem);
  line-height: 1.18;
  letter-spacing: 0;
  color: var(--text-primary);
}

.section-head { max-width: 52ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-intro {
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 56ch;
}

/* ----------------------------- Header ----------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--scrim);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(0.45rem, 1vw, 0.6rem);
}
.brand { display: inline-flex; align-items: center; }
.brand-logo {
  height: clamp(44px, 5.2vw, 58px);
  width: auto;
  opacity: 0.96;
  transition: opacity 0.3s var(--ease);
}
.brand:hover .brand-logo { opacity: 1; }

.nav { display: flex; align-items: center; }
.nav-menu { display: flex; gap: clamp(1.5rem, 3vw, 2.75rem); }
.nav-menu a {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding-block: 0.4rem;
  transition: color 0.25s var(--ease);
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: left 0.25s var(--ease), right 0.25s var(--ease);
}
.nav-menu a:hover { color: var(--text-primary); }
.nav-menu a:hover::after { left: 0; right: 0; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-right: -10px;
}
.nav-toggle-bar {
  width: 22px;
  height: 1px;
  background: var(--text-primary);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-3px) rotate(-45deg); }

/* language switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  padding: 0.35rem 0.3rem;
  transition: color 0.25s var(--ease);
}
.lang-btn[aria-pressed="true"] { color: var(--accent); }
.lang-btn:hover { color: var(--text-primary); }
.lang-divider { width: 1px; height: 12px; background: var(--hairline-strong); }

/* ----------------------------- Hero ------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(5rem, 11vh, 7.5rem) clamp(4rem, 9vh, 6rem);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 680px;
}
.emblem { width: clamp(120px, 16vw, 184px); }
.emblem-svg { width: 100%; height: auto; overflow: visible; }
.emblem-mono {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 64px;
  letter-spacing: 0.02em;
}

.hero-drop {
  display: block;
  width: 1px;
  height: clamp(18px, 2.6vw, 26px);
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin-block: 1.5rem 1.75rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-top: 0.4rem;
}
.hero-title em { font-style: italic; font-weight: 500; }

.hero-subtitle {
  margin-top: 1.75rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 46ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  align-items: center;
  justify-content: center;
  margin-top: 2.5rem;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, 4vh, 2.75rem);
  transform: translateX(-50%);
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s var(--ease);
}
.scroll-cue-diamond {
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  transform: rotate(45deg);
  animation: cue 2.6s var(--ease) infinite;
}
.hero.cue-hidden .scroll-cue { opacity: 0; pointer-events: none; }

/* ----------------------------- Buttons ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-primary);
  position: relative;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.12s var(--ease);
}
.btn-primary {
  padding: 0.95rem 1.9rem;
  min-height: 44px;
  border: 1px solid rgba(244, 241, 234, 0.42);
}
.btn-primary::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.btn-primary:hover { border-color: var(--accent); }
.btn-primary:hover::after { transform: scaleX(1); }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost {
  color: var(--text-secondary);
  min-height: 44px;
  padding: 0.5rem 0;
}
.btn-ghost::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.btn-ghost:hover { color: var(--text-primary); }
.btn-ghost:hover::before { transform: rotate(45deg) translate(2px, 2px); }
.btn-ghost:active { transform: translateY(1px); }

/* ----------------------------- Dot divider ------------------------------ */
.dot-divider {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  padding-block: clamp(1rem, 4vh, 2.5rem);
  position: relative;
  z-index: 2;
}
.dot-divider span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-primary);
  opacity: 0.3;
}
.dot-divider span:nth-child(4) { background: var(--accent); opacity: 0.55; }

/* ----------------------------- Purpose ---------------------------------- */
.purpose .prose { margin-top: 2rem; font-size: 1.1875rem; line-height: 1.75; color: var(--text-secondary); }

/* ----------------------------- Paths (editorial, doubled frame) --------- */
.paths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}
.framed {
  position: relative;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.012), transparent);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), background-color 0.35s var(--ease);
}
.framed::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--border);
  pointer-events: none;
  transition: border-color 0.35s var(--ease);
}
.framed:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.framed:hover::before { border-color: var(--hairline-accent); }

.path-card { padding: clamp(2rem, 4vw, 3rem); }
.path-index {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.path-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  color: var(--text-primary);
  margin-top: 1rem;
}
.path-body { margin-top: 1rem; color: var(--text-secondary); }

.paths-closing {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.5;
  color: var(--text-primary);
  max-width: 40ch;
}

/* ----------------------------- EOT (raised, crop-marked) ---------------- */
.eot-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: clamp(2.25rem, 6vw, 5rem);
  overflow: hidden;
}
.crop {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
  opacity: 0.8;
}
.crop-tl { top: 14px; left: 14px; border-top-width: 1px; border-left-width: 1px; }
.crop-tr { top: 14px; right: 14px; border-top-width: 1px; border-right-width: 1px; }
.crop-bl { bottom: 14px; left: 14px; border-bottom-width: 1px; border-left-width: 1px; }
.crop-br { bottom: 14px; right: 14px; border-bottom-width: 1px; border-right-width: 1px; }

.eot-head { max-width: 60ch; }
.eot-term {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 1.1rem;
  display: inline-block;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--hairline-accent);
}
.eot-lead {
  margin-top: 1.75rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.45;
  color: var(--text-primary);
  max-width: 36ch;
}
.eot-body { margin-top: 1.75rem; max-width: 64ch; color: var(--text-secondary); }

.eot-points {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--hairline);
  padding-top: clamp(2rem, 4vw, 3rem);
}
.eot-points li { position: relative; padding-left: 1.5rem; }
.eot-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
}
.eot-point-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--text-primary);
}
.eot-points li p { margin-top: 0.6rem; font-size: 0.9875rem; color: var(--text-secondary); }
.eot-note {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* ----------------------------- Contact / form -------------------------- */
.contact-body { margin-top: 1.5rem; font-size: 1.1875rem; color: var(--text-secondary); }
.contact-form { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.hp-field { position: absolute; left: -9999px; }

.field { margin-bottom: 2rem; }
.field label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  transition: color 0.2s var(--ease);
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  padding: 0.65rem 0.1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 0 var(--accent);
}
.field input:focus + label { color: var(--accent); }
.field:focus-within label { color: var(--accent); }

.form-submit { margin-top: 0.5rem; }
.form-note {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.form-success {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border: 1px solid var(--hairline-accent);
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--surface);
}
.form-success-mark {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
  margin-bottom: 1.25rem;
}
.form-success h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--text-primary);
}
.form-success p { margin-top: 0.75rem; color: var(--text-secondary); }

.contact-direct {
  margin-top: 2.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.contact-direct a {
  color: var(--text-secondary);
  border-bottom: 1px solid var(--hairline-accent);
  padding-bottom: 1px;
  margin-left: 0.5rem;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.contact-direct a:hover { color: var(--accent); border-color: var(--accent); }

/* ----------------------------- Footer ----------------------------------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  position: relative;
  z-index: 2;
  background: var(--ground-deep);
}
.footer-inner { display: flex; flex-direction: column; gap: 2.5rem; }
.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.5;
  color: var(--text-primary);
  max-width: 42ch;
}
.footer-legal { max-width: 90ch; }
.footer-copy {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
}
.footer-fineprint {
  font-size: 0.75rem;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

/* ----------------------------- Motion ----------------------------------- */
@keyframes cue {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.4; }
  50% { transform: rotate(45deg) translate(3px, 3px); opacity: 0.9; }
}
@keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes emblemFade { from { opacity: 0; } to { opacity: 1; } }

/* Reveal-on-scroll + emblem draw-in: only when JS is active AND motion is allowed.
   Without JS or with reduced-motion, everything is shown fully formed. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }

  /* Emblem draw-in — additive: the emblem is fully drawn by default, and the
     .play class (added on load and on hover) animates the strokes/dots/L in.
     This way the emblem is never invisible if JS or motion is unavailable. */
  .js .emblem .draw { stroke-dasharray: 100; }
  .js .emblem.play .draw { animation: draw 1s var(--ease) both; }
  .js .emblem.play .draw:nth-child(1) { animation-delay: 0.15s; }
  .js .emblem.play .draw:nth-child(2) { animation-delay: 0.3s; }
  .js .emblem.play .draw:nth-child(3) { animation-delay: 0.45s; }
  .js .emblem.play .draw:nth-child(4) { animation-delay: 0.6s; }

  /* Dots fade in two at a time (top + bottom of the same column), left to
     right, while the frames are still drawing; the L lands last. */
  .js .emblem.play .emblem-dots circle { animation: emblemFade 0.35s var(--ease) both; }
  .js .emblem.play .emblem-dots circle:nth-child(1),
  .js .emblem.play .emblem-dots circle:nth-child(8)  { animation-delay: 0.40s; }
  .js .emblem.play .emblem-dots circle:nth-child(2),
  .js .emblem.play .emblem-dots circle:nth-child(9)  { animation-delay: 0.55s; }
  .js .emblem.play .emblem-dots circle:nth-child(3),
  .js .emblem.play .emblem-dots circle:nth-child(10) { animation-delay: 0.70s; }
  .js .emblem.play .emblem-dots circle:nth-child(4),
  .js .emblem.play .emblem-dots circle:nth-child(11) { animation-delay: 0.85s; }
  .js .emblem.play .emblem-dots circle:nth-child(5),
  .js .emblem.play .emblem-dots circle:nth-child(12) { animation-delay: 1.00s; }
  .js .emblem.play .emblem-dots circle:nth-child(6),
  .js .emblem.play .emblem-dots circle:nth-child(13) { animation-delay: 1.15s; }
  .js .emblem.play .emblem-dots circle:nth-child(7),
  .js .emblem.play .emblem-dots circle:nth-child(14) { animation-delay: 1.30s; }

  .js .emblem.play .emblem-mono { animation: emblemFade 0.6s var(--ease) 1.45s both; }

  .js .emblem { cursor: pointer; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue-diamond { animation: none; }
}

/* ----------------------------- Responsive ------------------------------- */
@media (max-width: 860px) {
  .paths-grid { grid-template-columns: 1fr; }
  .eot-points { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: static; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--scrim);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border-bottom: 1px solid var(--hairline);
    padding: 0.5rem var(--gutter) 1.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s var(--ease);
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-menu li { border-bottom: 1px solid var(--hairline); }
  .nav-menu li:last-child { border-bottom: none; }
  .nav-menu a { display: block; padding-block: 1rem; letter-spacing: 0.18em; }
  .nav-menu a::after { display: none; }

  .bg-spine { display: none; }
  .hero-inner { text-align: center; }
}

@media (max-width: 420px) {
  .hero-cta { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-cta .btn { justify-content: center; }
}

/* ----------------------------- Forced colors ---------------------------- */
@media (forced-colors: active) {
  .bg-grain, .bg-spine { display: none; }
  .framed, .framed::before, .eot-panel, .btn-primary, .form-success { border-color: CanvasText; }
  .nav-menu a::after, .btn-primary::after { background: Highlight; }
  .crop { border-color: CanvasText; }
}
