/* =================================================================
   iViRTH COE — Stylesheet
   Palette sampled directly from the iViRTH gold mark: a near-black
   ground with a single metallic gold ink, used the way the logo
   uses it — as structure, not decoration.
   ================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg:          #0a0908;
  --bg-raised:   #121009;
  --bg-card:     #161310;
  --bg-card-hi:  #1d1810;
  --line:        #2c2716;
  --line-soft:   #1e1a10;

  --gold-deep:   #8a7140;
  --gold:        #c9a75b;
  --gold-light:  #ecdfb3;

  --ink:         #f4efe4;
  --ink-muted:   #aba07f;
  --ink-faint:   #6f6650;

  --danger:      #c97a5f;
  --danger-bg:   #241712;
  --success:     #b9c089;
  --success-bg:  #181a10;

  --font-sans: 'DM Sans', system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: 'DM Mono', ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 30px;

  --container: 1220px;
  --header-h: 84px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}
ul, ol { padding: 0; list-style: none; }
img, picture { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

html, body { background: var(--bg); }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.site-shell { display: flex; flex-direction: column; min-height: 100vh; }

::selection { background: var(--gold-deep); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 0; top: -100px;
  background: var(--gold); color: #15120a;
  padding: .6rem 1.2rem; z-index: 999; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 700px) { .container { padding: 0 2.5rem; } }

.section { padding: clamp(3.5rem, 7vw, 7rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.section-divide { border-top: 1px solid var(--line-soft); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.eyebrow::before {
  content: '';
  width: 16px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); line-height: 1.05; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.15; }
h3 { font-size: 1.25rem; line-height: 1.3; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-muted); max-width: 46ch; }

.text-muted { color: var(--ink-muted); }
.mono { font-family: var(--font-mono); }

.grid { display: grid; gap: 1.5rem; }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #15120a; }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { background: transparent; border-color: var(--gold-deep); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-gold-small, .btn-ghost-small { padding: .55rem 1.15rem; font-size: .85rem; border-radius: 999px; }
.btn-gold-small { background: var(--gold); color: #15120a; }
.btn-gold-small:hover { background: var(--gold-light); }
.btn-ghost-small { background: transparent; border: 1px solid var(--line); color: var(--ink-muted); }
.btn-ghost-small:hover, .btn-ghost-small.is-active { border-color: var(--gold); color: var(--gold-light); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--line-soft);
}
.site-header::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(10,9,8,.86);
  backdrop-filter: blur(10px);
  z-index: -1;
}
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 1.5rem;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 700px) { .header-inner { padding: 0 2.5rem; } }

.brand { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.brand-wordmark { height: 28px; width: auto; }
.brand-suffix {
  font-family: var(--font-mono);
  font-size: .8rem; letter-spacing: .12em;
  color: var(--gold);
  border: 1px solid var(--line);
  padding: .2rem .5rem;
  border-radius: 999px;
  margin-top: 2px;
}

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px;
  background: transparent; border: 1px solid var(--line);
  border-radius: 10px;
}
.nav-toggle-bar { width: 18px; height: 2px; background: var(--ink); margin: 0 auto; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  display: flex; align-items: center; gap: 2rem;
}
.primary-nav-list { display: flex; gap: 1.6rem; }
.primary-nav-list a { font-size: .92rem; color: var(--ink-muted); padding: .3rem 0; border-bottom: 1px solid transparent; }
.primary-nav-list a:hover, .primary-nav-list a.is-active { color: var(--ink); border-color: var(--gold-deep); }
.nav-cta-group { display: flex; align-items: center; gap: .7rem; }

@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    z-index: 99;
    background: var(--bg);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 2rem 1.5rem; gap: 2rem;
    transform: translateY(-12px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
    overflow-y: auto;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .primary-nav-list { flex-direction: column; gap: 1.1rem; }
  .primary-nav-list a { font-size: 1.2rem; }
  .nav-cta-group { flex-direction: column; align-items: stretch; }
}
@media (min-width: 941px) { .nav-toggle { display: none; } }

/* ---------- Flash banner ---------- */
.flash-banner { border-bottom: 1px solid var(--line-soft); }
.flash-banner .flash-inner {
  max-width: var(--container); margin: 0 auto; padding: .9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.flash-success { background: var(--success-bg); }
.flash-success p { color: var(--success); }
.flash-error { background: var(--danger-bg); }
.flash-error p { color: var(--danger); }
.flash-dismiss { background: none; border: none; font-size: 1.4rem; line-height: 1; color: inherit; opacity: .7; }
.flash-dismiss:hover { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.hero-mark {
  position: absolute; top: 50%; right: -8%;
  width: min(720px, 60vw); height: auto;
  transform: translateY(-50%);
  opacity: .07;
  pointer-events: none;
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; position: relative; z-index: 1; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }

.hero h1 { margin: 1.1rem 0 1.4rem; }
.hero h1 .accent { color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }

.hero-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}
.hero-panel-title { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1rem; }
.hero-stage-rows { display: flex; flex-direction: column; gap: .65rem; }
.hero-stage-row { display: flex; align-items: baseline; gap: .8rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.hero-stage-row:last-child { border-bottom: none; }
.hero-stage-row .stage-num { font-family: var(--font-mono); color: var(--gold); font-size: .85rem; flex-shrink: 0; }
.hero-stage-row .stage-label { font-size: .92rem; color: var(--ink-muted); }

/* ---------- Stat strip ---------- */
.stat-strip { border-bottom: 1px solid var(--line-soft); background: var(--bg-raised); }
.stat-strip .grid { padding: 2.2rem 0; }
.stat-card { text-align: center; }
@media (min-width: 760px) { .stat-card { text-align: left; border-left: 1px solid var(--line); padding-left: 1.6rem; } .stat-card:first-child { border-left: none; padding-left: 0; } }
.stat-num { font-family: var(--font-mono); font-size: clamp(2rem, 4vw, 2.6rem); color: var(--gold-light); display: block; }
.stat-label { color: var(--ink-muted); font-size: .88rem; margin-top: .25rem; }

/* ---------- Pillars (ViSEN / ViSET / ViSER) ---------- */
.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.9rem;
  height: 100%;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.pillar-card:hover { border-color: var(--gold-deep); transform: translateY(-3px); }
.pillar-tag { font-family: var(--font-mono); font-size: .78rem; color: var(--gold); letter-spacing: .08em; }
.pillar-card h3 { margin-top: .5rem; }
.pillar-card p { margin-top: .7rem; color: var(--ink-muted); }
.pillar-glyph {
  width: 42px; height: 42px; border: 1px solid var(--gold-deep); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); color: var(--gold); font-size: .8rem; margin-bottom: 1rem;
}

/* ---------- Helix Twin comparison ---------- */
.twin-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 2rem; }
.twin-card h3 { color: var(--gold-light); }
.twin-card ul { margin-top: 1.2rem; display: flex; flex-direction: column; gap: .9rem; }
.twin-card li { padding-left: 1.4rem; position: relative; color: var(--ink-muted); font-size: .95rem; }
.twin-card li::before { content: '◆'; position: absolute; left: 0; top: 1px; color: var(--gold); font-size: .7rem; }
.twin-card li strong { color: var(--ink); display: block; font-weight: 600; }

/* ---------- Lifecycle rail (signature element) ---------- */
.rail { position: relative; }
.rail-line {
  display: none;
}
@media (min-width: 880px) {
  .rail-track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; }
  .rail-track::before {
    content: '';
    position: absolute; top: 22px; left: 4%; right: 4%; height: 1px;
    background: linear-gradient(90deg, var(--line), var(--gold-deep), var(--line));
  }
}

.rail-node { border: none; background: transparent; }
.rail-node summary {
  list-style: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 0 1rem 1.4rem 0;
}
.rail-node summary::-webkit-details-marker { display: none; }
.rail-node summary .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--gold-deep);
  margin-bottom: .9rem; position: relative; z-index: 1;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.rail-node[open] summary .dot { background: var(--gold); border-color: var(--gold-light); }
.rail-node summary .stage-tag { font-family: var(--font-mono); font-size: .75rem; color: var(--gold); letter-spacing: .08em; }
.rail-node summary .stage-name { font-weight: 700; margin-top: .3rem; font-size: 1rem; }
.rail-node summary .stage-chevron { margin-top: .5rem; font-size: .8rem; color: var(--ink-faint); }
.rail-node[open] summary .stage-chevron::after { content: '— collapse'; }
.rail-node:not([open]) summary .stage-chevron::after { content: '+ details'; }

.rail-body {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 1.3rem 1.4rem; margin: 0 1rem 1.6rem 0; font-size: .92rem; color: var(--ink-muted);
}
.rail-body dl { display: grid; gap: .5rem; margin-top: .4rem; }
.rail-body dt { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .07em; }
.rail-body dd { color: var(--ink); margin-bottom: .5rem; }

@media (max-width: 879px) {
  .rail-track { display: flex; flex-direction: column; }
  .rail-node { border-left: 1px solid var(--line); padding-left: 1.2rem; margin-left: 5px; }
  .rail-node summary { padding-bottom: 1rem; }
}

/* ---------- Idea box ---------- */
.idea-teaser {
  border: 1.5px dashed var(--gold-deep);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  text-align: center;
  background: radial-gradient(circle at 50% 0%, var(--bg-card-hi), var(--bg-raised));
}
.idea-teaser h2 { margin-top: .8rem; }
.idea-teaser p { margin: .9rem auto 1.6rem; }

.idea-box-form { max-width: 640px; margin: 0 auto; }
.idea-result {
  display: none;
  text-align: center;
  padding: 2.4rem 1.5rem;
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}
.idea-result.is-visible { display: block; animation: drop-in .45s var(--ease); }
.idea-result .check {
  width: 54px; height: 54px; border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; color: var(--gold-light); font-size: 1.4rem;
}
@keyframes drop-in {
  from { opacity: 0; transform: translateY(-14px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Forms (apply / partners / contact / idea) ---------- */
.form-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: clamp(1.5rem, 3vw, 2.4rem); }
.field { margin-bottom: 1.4rem; }
.field label, .fieldset-legend { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .5rem; color: var(--ink); }
.field .hint { display: block; font-size: .82rem; color: var(--ink-faint); margin-top: .4rem; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  color: var(--ink);
  transition: border-color .18s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-deep); }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; gap: 1.2rem; }
@media (min-width: 700px) { .field-row-2 { grid-template-columns: 1fr 1fr; } }

fieldset { border: none; padding: 0; margin: 0 0 1.6rem; }

.choice-grid { display: grid; gap: .8rem; }
@media (min-width: 620px) { .choice-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 760px) { .choice-grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .choice-grid-5 { grid-template-columns: repeat(5, 1fr); } }

.choice-chip {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease);
  background: var(--bg-raised);
}
.choice-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice-chip .chip-title { font-weight: 600; display: block; }
.choice-chip .chip-desc { display: block; font-size: .8rem; color: var(--ink-muted); margin-top: .3rem; }
.choice-chip:has(input:checked),
.choice-chip.is-checked { border-color: var(--gold); background: var(--bg-card-hi); }
.choice-chip:has(input:checked) .chip-title,
.choice-chip.is-checked .chip-title { color: var(--gold-light); }
.choice-chip:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }

.radio-pill-group { display: flex; flex-wrap: wrap; gap: .6rem; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-pill span {
  display: inline-flex; padding: .5rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); font-size: .85rem; color: var(--ink-muted);
  transition: all .15s var(--ease);
}
.radio-pill input:checked + span { border-color: var(--gold); color: var(--gold-light); background: var(--bg-card-hi); }

.conditional-block {
  border-left: 2px solid var(--gold-deep);
  padding-left: 1.2rem;
  margin: 1.4rem 0;
}
.conditional-block[hidden] { display: none; }

.consent-row { display: flex; align-items: flex-start; gap: .7rem; font-size: .85rem; color: var(--ink-muted); }
.consent-row input { margin-top: .25rem; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot-note { margin-top: 1.2rem; font-size: .85rem; color: var(--ink-faint); }

/* ---------- Stage helper cards (apply page) ---------- */
.stage-legend { display: grid; gap: .6rem; margin-top: 1rem; }
@media (min-width: 760px) { .stage-legend { grid-template-columns: repeat(3, 1fr); } }
.stage-legend-item { font-size: .82rem; color: var(--ink-muted); padding: .7rem .9rem; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); }
.stage-legend-item b { color: var(--gold); font-family: var(--font-mono); margin-right: .35rem; }

/* ---------- Generic content cards ---------- */
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.8rem; }
.card-list { display: flex; flex-direction: column; gap: 1.2rem; }

.callout {
  border-left: 2px solid var(--gold);
  padding: .3rem 0 .3rem 1.4rem;
  font-size: 1.05rem;
  color: var(--ink-muted);
}
.callout strong { color: var(--ink); }

/* ---------- Tables (about page stage table fallback) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
th { font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); background: var(--bg-raised); }
tr:last-child td { border-bottom: none; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--bg-card-hi), var(--bg-raised));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem;
}
.cta-band h2 { max-width: 26ch; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); margin-top: auto; background: var(--bg-raised); }
.footer-inner {
  max-width: var(--container); margin: 0 auto; padding: 3.5rem 1.5rem 2.5rem;
  display: grid; gap: 2.4rem;
}
@media (min-width: 700px) { .footer-inner { padding: 3.5rem 2.5rem 2.5rem; grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-wordmark { height: 24px; margin-bottom: 1rem; opacity: .9; }
.footer-brand p { color: var(--ink-muted); font-size: .9rem; margin-bottom: 1.2rem; max-width: 34ch; }
.footer-col h3 { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); margin-bottom: 1rem; font-weight: 500; }
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col a { color: var(--ink-muted); font-size: .9rem; }
.footer-col a:hover { color: var(--gold-light); }
.footer-base {
  border-top: 1px solid var(--line-soft);
  max-width: var(--container); margin: 0 auto; padding: 1.4rem 1.5rem 2rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
  font-size: .8rem; color: var(--ink-faint);
}
@media (min-width: 700px) { .footer-base { padding: 1.4rem 2.5rem 2rem; } }
.footer-base a { color: var(--ink-muted); text-decoration: underline; text-decoration-color: var(--line); }

/* ---------- Page header (non-home pages) ---------- */
.page-header { padding: clamp(2.6rem, 6vw, 4.5rem) 0 2.5rem; border-bottom: 1px solid var(--line-soft); }
.page-header .eyebrow { margin-bottom: 1rem; }
.page-header .lede { margin-top: 1rem; }
.breadcrumbs { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-faint); margin-bottom: 1.2rem; }
.breadcrumbs a { color: var(--ink-muted); }
.breadcrumbs a:hover { color: var(--gold-light); }

/* ---------- 404 ---------- */
.error-page { padding: clamp(4rem, 12vw, 8rem) 0; text-align: center; }
.error-page .code { font-family: var(--font-mono); font-size: clamp(3.5rem, 14vw, 7rem); color: var(--gold); line-height: 1; }

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}
