/* style.css — PhoenixWealth.biz — Deep Purple + Gold enterprise landing
   Reuses the design language of Phoenix Wealth Publishing (same type stack,
   spacing, component grammar) with a distinct royal palette that signals
   the parent-level enterprise identity. */

/* ===================== TYPE SCALE ===================== */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 0.5rem + 6vw, 6.5rem);

  /* ===================== SPACING (4px base) ===================== */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 640px;
  --content-default: 900px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* ===================== FONTS ===================== */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-sans: 'Inter', 'Helvetica Neue', sans-serif;
}

/* ===================== COLOR — Deep Purple + Gold =====================
   Light mode: warm ivory surfaces (parchment feel) with royal purple ink
   and antique-gold accent — echoes the sibling Publishing site's warm
   surfaces so the enterprise family looks coherent.
   Dark mode: deep aubergine/plum surfaces with luminous gold — dramatic,
   consistent with the historic PhoenixWealth.biz dark hero.
*/
:root,
[data-theme='light'] {
  --color-bg: #f8f3ec;                 /* warm ivory */
  --color-surface: #fbf7f0;
  --color-surface-2: #ffffff;
  --color-surface-offset: #efe6db;
  --color-surface-offset-2: #e6d9c6;
  --color-surface-dynamic: #d9c9b1;
  --color-divider: #dccdb6;
  --color-border: #c9b697;

  --color-text: #201033;               /* deep royal ink */
  --color-text-muted: #4d3f5f;
  --color-text-faint: #8a7fa0;
  --color-text-inverse: #f8f3ec;

  /* Ink — deep aubergine, for structural dark bands (footer, dark sections) */
  --color-ink: #1b0d2e;
  --color-ink-2: #100519;

  /* Primary Accent — Royal Purple */
  --color-primary: #5b2a86;
  --color-primary-hover: #4a1f70;
  --color-primary-active: #391659;
  --color-primary-highlight: #e8dcf3;

  /* Secondary Accent — Antique Gold */
  --color-gold: #b58a2d;
  --color-gold-hover: #96711f;
  --color-gold-active: #755614;
  --color-gold-highlight: #f0e4c4;

  --color-warning: #a8621b;
  --color-warning-highlight: #f3e0c4;
  --color-error: #8a2a4a;
  --color-error-highlight: #f0d4dc;
  --color-success: #3f6b3a;
  --color-success-highlight: #dbe6d4;

  --shadow-sm: 0 1px 2px oklch(0.15 0.08 300 / 0.10);
  --shadow-md: 0 6px 20px oklch(0.15 0.08 300 / 0.14);
  --shadow-lg: 0 16px 40px oklch(0.15 0.08 300 / 0.22);
}

[data-theme='dark'] {
  --color-bg: #1b0d2e;                 /* deep royal purple */
  --color-surface: #24132f;
  --color-surface-2: #2c1a38;
  --color-surface-offset: #33203f;
  --color-surface-offset-2: #402a4d;
  --color-surface-dynamic: #503a5f;
  --color-divider: #3a2647;
  --color-border: #4c3459;

  --color-text: #f5eddc;               /* soft ivory on plum */
  --color-text-muted: #c9b8d6;
  --color-text-faint: #8a7a9e;
  --color-text-inverse: #1b0d2e;

  --color-ink: #100519;
  --color-ink-2: #08020e;

  --color-primary: #b48adf;            /* luminous lilac */
  --color-primary-hover: #c9a6ec;
  --color-primary-active: #dcc0f5;
  --color-primary-highlight: #3d2555;

  --color-gold: #e6c063;                /* luminous gold */
  --color-gold-hover: #f0d17f;
  --color-gold-active: #f7de9d;
  --color-gold-highlight: #3d2f16;

  --color-warning: #e0a54f;
  --color-warning-highlight: #4a3620;
  --color-error: #e07a99;
  --color-error-highlight: #4a2230;
  --color-success: #8fc086;
  --color-success-highlight: #223a20;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.35);
  --shadow-md: 0 6px 20px oklch(0 0 0 / 0.40);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #1b0d2e;
    --color-surface: #24132f;
    --color-surface-2: #2c1a38;
    --color-surface-offset: #33203f;
    --color-surface-offset-2: #402a4d;
    --color-surface-dynamic: #503a5f;
    --color-divider: #3a2647;
    --color-border: #4c3459;
    --color-text: #f5eddc;
    --color-text-muted: #c9b8d6;
    --color-text-faint: #8a7a9e;
    --color-text-inverse: #1b0d2e;
    --color-ink: #100519;
    --color-ink-2: #08020e;
    --color-primary: #b48adf;
    --color-primary-hover: #c9a6ec;
    --color-primary-active: #dcc0f5;
    --color-primary-highlight: #3d2555;
    --color-gold: #e6c063;
    --color-gold-hover: #f0d17f;
    --color-gold-active: #f7de9d;
    --color-gold-highlight: #3d2f16;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.35);
    --shadow-md: 0 6px 20px oklch(0 0 0 / 0.40);
    --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.55);
  }
}

/* ===================== LAYOUT PRIMITIVES ===================== */
.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 4vw, var(--space-12));
}
.wrap--default { max-width: var(--content-default); }
.wrap--narrow { max-width: var(--content-narrow); }

section { padding-block: clamp(var(--space-12), 8vw, var(--space-24)); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--color-gold);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text);
}

.display-hero {
  font-size: var(--text-hero);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.03;
}
.display-title {
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.08;
}
.section-title {
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.15;
}
.subhead {
  font-size: var(--text-lg);
  font-weight: 600;
  font-family: var(--font-body);
}

p.lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  line-height: 1.55;
  max-width: 60ch;
}

/* ===================== HEADER / NAV ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header--hidden { transform: translateY(-100%); }
.site-header--scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}
.brand img {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}
.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand-tagline {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-4), 2vw, var(--space-8));
}
.main-nav a {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  position: relative;
  padding-block: var(--space-1);
}
.main-nav a:hover { color: var(--color-primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
}
.theme-toggle:hover {
  color: var(--color-gold);
  background: var(--color-surface-offset);
}
.theme-toggle svg { width: 18px; height: 18px; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
[data-theme='light'] .btn--primary { color: #ffffff; }
.btn--primary:hover { background: var(--color-primary-hover); }
.btn--outline {
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn--outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}
.btn--gold {
  background: var(--color-gold);
  color: #1b0d2e;
}
.btn--gold:hover { background: var(--color-gold-hover); }

/* ===================== HERO =====================
   The hero section is always dark (deep royal purple), regardless of
   theme. So text colors are pinned to light values here, not the
   theme-flipping --color-text-inverse token. */
.hero {
  position: relative;
  overflow: hidden;
  background: #1b0d2e;
  color: #f5eddc;
  isolation: isolate;
}
.hero::before {
  /* Deep purple → aubergine radial with a soft gold glow behind the phoenix */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 62%, oklch(0.55 0.14 78 / 0.28), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 30%, oklch(0.35 0.14 300 / 0.55), transparent 75%),
    linear-gradient(180deg, #1b0d2e 0%, #100519 60%, #08020e 100%);
}
.hero::after {
  /* subtle gold particle veil */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 30%, oklch(0.85 0.12 82 / 0.10) 0, transparent 2px),
    radial-gradient(circle at 65% 45%, oklch(0.85 0.12 82 / 0.08) 0, transparent 2px),
    radial-gradient(circle at 82% 72%, oklch(0.85 0.12 82 / 0.12) 0, transparent 2px),
    radial-gradient(circle at 12% 78%, oklch(0.85 0.12 82 / 0.09) 0, transparent 2px),
    radial-gradient(circle at 42% 88%, oklch(0.85 0.12 82 / 0.10) 0, transparent 2px);
  opacity: 0.9;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: center;
  min-height: 86vh;
  padding-block: clamp(var(--space-16), 12vh, var(--space-24));
}
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: clamp(var(--space-12), 10vh, var(--space-20));
  }
}
.hero-content .eyebrow {
  color: #e6c063;
}
.hero-content .eyebrow::before { background: #e6c063; }
.hero .display-hero {
  color: #f5eddc;
  margin-block: var(--space-5) var(--space-6);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}
.hero .display-hero .accent-gold {
  color: #e6c063;
  font-style: italic;
}
.hero-mission {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: color-mix(in oklab, #f5eddc 88%, transparent);
  max-width: 44ch;
  margin-block-end: var(--space-8);
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.hero-actions .btn--outline {
  border-color: color-mix(in oklab, #e6c063 55%, transparent);
  color: #e6c063;
  background: transparent;
}
.hero-actions .btn--outline:hover {
  border-color: #e6c063;
  background: color-mix(in oklab, #e6c063 12%, transparent);
  color: #f0d17f;
}
.hero-actions .btn--gold {
  background: #e6c063;
  color: #1b0d2e;
}
.hero-actions .btn--gold:hover {
  background: #f0d17f;
  color: #100519;
}

.hero-mark {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin-inline: auto;
}
.hero-mark::before {
  /* gold halo behind the phoenix */
  content: '';
  position: absolute;
  inset: 8%;
  background: radial-gradient(circle, oklch(0.72 0.15 82 / 0.35) 0%, transparent 62%);
  filter: blur(6px);
  z-index: 0;
}
.hero-mark img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 40px oklch(0.55 0.20 30 / 0.45));
}

/* ===================== PILLARS ===================== */
.pillars {
  background: var(--color-surface-offset);
}
[data-theme='dark'] .pillars {
  background: var(--color-surface);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--space-6), 3vw, var(--space-10));
  margin-top: clamp(var(--space-8), 5vw, var(--space-12));
}
@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: 1fr; }
}
.pillar {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-top: 3px solid var(--color-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition:
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive),
    border-color var(--transition-interactive);
}
[data-theme='dark'] .pillar {
  background: var(--color-surface-2);
}
.pillar:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-top-color: var(--color-primary);
}
.pillar-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-gold);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.pillar-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
}
.pillar-body {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.pillar-tag {
  margin-top: auto;
  padding-top: var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.pillar-tag strong {
  color: var(--color-primary);
  font-weight: 600;
}

/* ===================== ABOUT / SPLIT ===================== */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split .split-mark { order: -1; max-width: 320px; margin-inline: auto; }
}
.split-mark {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  position: relative;
}
.split-mark::before {
  content: '';
  position: absolute;
  inset: 12%;
  background: radial-gradient(circle, oklch(0.55 0.16 300 / 0.15) 0%, transparent 62%);
  z-index: 0;
}
[data-theme='dark'] .split-mark::before {
  background: radial-gradient(circle, oklch(0.72 0.15 82 / 0.20) 0%, transparent 62%);
}
.split-mark img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  height: auto;
}
.split-copy .eyebrow { margin-bottom: var(--space-3); }
.split-copy .section-title { margin-block: var(--space-3) var(--space-5); }

/* ===================== QUOTE BAND =====================
   Also always dark, regardless of theme. */
.quote-band {
  background:
    linear-gradient(180deg, #1b0d2e 0%, #100519 100%);
  color: #f5eddc;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, oklch(0.4 0.14 300 / 0.55), transparent 70%);
  z-index: 0;
}
.quote-band .wrap { position: relative; z-index: 1; }
.quote-mark {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: #e6c063;
  line-height: 0.5;
  display: block;
  margin-bottom: var(--space-2);
}
blockquote.principle {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-2xl);
  line-height: 1.25;
  color: #f5eddc;
  max-width: 22ch;
  margin-inline: auto;
  letter-spacing: -0.005em;
}
blockquote.principle .accent-gold { color: #e6c063; }
.quote-band .cite {
  display: block;
  margin-top: var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in oklab, #e6c063 85%, transparent);
}

/* ===================== CONTACT ===================== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: start;
}
@media (max-width: 780px) {
  .contact { grid-template-columns: 1fr; }
}
.contact-copy .section-title { margin-block: var(--space-3) var(--space-5); }
.contact-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-left: 3px solid var(--color-gold);
  border-radius: var(--radius-md);
}
.contact-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.contact-card p, .contact-card address {
  font-family: var(--font-body);
  font-style: normal;
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}
.contact-card a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}
.contact-card a:hover {
  color: var(--color-gold);
  text-decoration: underline;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.contact-list li {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.contact-list li strong {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  margin-bottom: 2px;
}

/* ===================== FOOTER =====================
   Always dark regardless of theme. */
.site-footer {
  background: #100519;
  color: #f5eddc;
  padding-block: clamp(var(--space-12), 6vw, var(--space-20)) var(--space-8);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, oklch(0.4 0.14 300 / 0.45), transparent 70%);
  z-index: 0;
}
.site-footer .wrap { position: relative; z-index: 1; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--space-10);
  padding-block-end: var(--space-10);
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-block-end: var(--space-4);
}
.footer-brand img { height: 40px; width: auto; object-fit: contain; }
.footer-brand-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: #f5eddc;
}
.footer-brand-name .accent-gold { color: #e6c063; }
.footer-tagline {
  font-family: var(--font-body);
  font-style: italic;
  color: color-mix(in oklab, #f5eddc 75%, transparent);
  max-width: 40ch;
  font-size: var(--text-sm);
  line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e6c063;
  margin-block-end: var(--space-4);
  font-weight: 600;
}
.footer-col a, .footer-col p {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: color-mix(in oklab, #f5eddc 82%, transparent);
  text-decoration: none;
  margin-block-end: var(--space-3);
  line-height: 1.5;
}
.footer-col a:hover {
  color: #e6c063;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-block-start: var(--space-6);
  border-top: 1px solid color-mix(in oklab, #f5eddc 15%, transparent);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: color-mix(in oklab, #f5eddc 55%, transparent);
}
.footer-mark-text .accent-gold { color: #e6c063; }

/* ===================== MOBILE NAV ===================== */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(320px, 84vw);
    background: var(--color-surface);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--space-2);
    padding: calc(var(--space-16) + var(--space-4)) var(--space-6) var(--space-8);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 60;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a {
    font-size: var(--text-lg);
    padding-block: var(--space-3);
    width: 100%;
    border-bottom: 1px solid var(--color-divider);
  }
  .nav-toggle { display: inline-flex; }
  .nav-scrim {
    position: fixed;
    inset: 0;
    background: oklch(0.1 0 0 / 0.5);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .nav-scrim.is-open { opacity: 1; pointer-events: auto; }
}

/* ===================== MISC ===================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #ffffff;
  padding: var(--space-3) var(--space-5);
  z-index: 100;
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}
.accent-gold { color: var(--color-gold); }
