/* VulcanAX v0 — Editorial Mode (rev 2026-05-10: sticky nav, h3 hierarchy)
   Per 04-marketing-brand-guidelines.md and 11-it-website-v0-spec.md.
   v0 is throwaway; sunsets on v1 cutover. */

:root {
  --paper:        #F2EDE2;
  --paper-2:      #E9E2D2;
  --ink:          #1A1614;
  --ink-2:        #3D3631;
  --ink-muted:    #6E665F;
  --ink-dim:      #9A9088;
  --red:          #E8232A;
  --red-soft:     rgba(232, 35, 42, 0.06);
  --red-line:     rgba(232, 35, 42, 0.25);
  --rule:         rgba(26, 22, 20, 0.12);
  --rule-strong:  rgba(26, 22, 20, 0.24);

  --measure: 72ch;
  --content-width: clamp(280px, 92vw, 820px);
  --page-max: 1240px;
  --pad-x: clamp(24px, 5vw, 80px);
  --nav-h: 64px;
  --cursor-h: 56px;
  --stack-h: calc(var(--nav-h) + var(--cursor-h));
}

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

html, body { margin: 0; padding: 0; }

html {
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.7 'Newsreader', Georgia, 'Times New Roman', serif;
  font-optical-sizing: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule-strong);
}
a:hover { text-decoration-color: var(--red); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  text-decoration: none;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ── Sticky nav ─────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(233, 226, 210, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--rule-strong);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-nav.is-scrolled {
  background: rgba(10, 10, 11, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.10);
}
.site-nav.is-scrolled .nav-mark .syne-mark { color: var(--paper); }
.site-nav.is-scrolled .nav-links a { color: rgba(245, 240, 226, 0.55); }
.site-nav.is-scrolled .nav-links a:hover { color: var(--paper); }
.site-nav.is-scrolled .nav-links a[aria-current="true"] {
  color: var(--paper);
  border-bottom-color: var(--red);
}

.nav-inner {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--nav-h);
}

.nav-mark {
  text-decoration: none;
  flex: 0 0 auto;
}

.nav-mark .syne-mark {
  font-family: 'Syne', Georgia, serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-mark .syne-mark .ax { color: var(--red); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 0 1 auto;
}

.nav-links a {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="true"] {
  color: var(--ink);
  border-bottom-color: var(--red);
}

.nav-cta {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--red);
  padding: 10px 18px;
  text-decoration: none;
  flex: 0 0 auto;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }
.nav-cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ── Section cursor (sticky under nav, shows current §) ── */

.section-cursor {
  position: sticky;
  top: var(--nav-h);
  z-index: 49;
  background: rgba(233, 226, 210, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--rule);
  height: var(--cursor-h);
  overflow: hidden;
  transition: opacity 0.18s ease;
}

.section-cursor[data-section="top"] { opacity: 0; pointer-events: none; }

.section-cursor-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  gap: 18px;
}

.section-cursor-num {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  flex: 0 0 auto;
  line-height: 1;
}

.section-cursor-rule {
  flex: 0 0 40px;
  height: 1px;
  background: var(--rule-strong);
}

.section-cursor-desc {
  font-family: 'Syne', Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  flex: 0 0 auto;
}

section[id] {
  scroll-margin-top: var(--stack-h);
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

main > section {
  min-height: calc(100vh - var(--stack-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero { min-height: calc(100vh - var(--nav-h)); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ── Hero ──────────────────────────────────────────── */

.hero {
  padding: 0;
  border-bottom: 1px solid var(--rule);
}

.display {
  font-family: 'Syne', Georgia, serif;
  font-weight: 800;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 28px;
  max-width: 24ch;
}

.sub {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.45;
  color: var(--ink-2);
  margin: 0 0 40px;
  max-width: 46ch;
}

.hero-cta { margin: 0; }

/* ── Buttons + CTA links ───────────────────────────── */

.btn {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-block;
  padding: 18px 32px;
  background: var(--red);
  color: var(--paper);
  text-decoration: none;
  border: 0;
  transition: background 0.15s ease;
}

.btn-lg {
  font-size: 16px;
  padding: 22px 40px;
  letter-spacing: 0.16em;
}
.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--paper); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.cta-link {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 4px;
  color: var(--ink);
  display: inline-block;
}
.cta-link:hover { color: var(--red); border-bottom-color: var(--red); }
.cta-line { margin: 36px 0 24px; }

.cta-sub {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: 17px;
  color: var(--ink-muted);
  margin: 0;
}
.cta-sub a { color: var(--ink-2); }
.cta-sub a:hover { color: var(--red); }

/* ── Section markers ────────────────────────────────── */

main > section + section { padding-top: clamp(72px, 10vw, 120px); }
main > section { padding-bottom: clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--rule); }
main > section.cta-section { border-bottom: 0; }

.section-marker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 32px;
  font-family: 'DM Sans', system-ui, sans-serif;
}

.marker-num {
  color: var(--red);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.marker-rule {
  flex: 1 1 auto;
  height: 1px;
  background: var(--rule-strong);
  display: block;
}

.marker-desc {
  color: var(--ink-dim);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  flex: 0 0 auto;
}

/* ── Section title (h2) ─────────────────────────────── */

.section-title {
  font-family: 'Syne', Georgia, serif;
  font-weight: 700;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: var(--content-width);
  margin: 0 0 32px;
}

/* ── Sub-heading (h3) ───────────────────────────────── */

.sub-h {
  font-family: 'Syne', Georgia, serif;
  font-weight: 700;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 44px 0 14px;
  max-width: var(--content-width);
}

.sub-h::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--red);
  margin-bottom: 14px;
}

/* ── Body prose ─────────────────────────────────────── */

.prose {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: var(--content-width);
  margin: 0 0 24px;
}

.prose:last-child { margin-bottom: 0; }

.dropcap {
  font-family: 'Syne', Georgia, serif;
  font-weight: 800;
  font-size: 64px;
  line-height: 0.9;
  color: var(--red);
  float: left;
  margin: 6px 12px 0 0;
}

/* ── Pull quote ─────────────────────────────────────── */

.pull {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  margin: 36px 0;
  padding: 24px 0;
  max-width: var(--content-width);
}

.pull p {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
  max-width: var(--content-width);
}

/* ── Footer ─────────────────────────────────────────── */

.site-footer {
  width: 100%;
  background: #0A0A0B;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--paper);
}

.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) var(--pad-x) clamp(32px, 5vw, 56px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-right-group {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-block {
  display: flex;
  flex-direction: column;
}

.footer-right { align-items: flex-end; text-align: right; }

.footer-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  background-color: var(--paper);
  -webkit-mask-image: url(mark.svg);
          mask-image: url(mark.svg);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-mode: alpha;
          mask-mode: alpha;
  text-decoration: none;
  border-bottom: 0;
  transition: background-color 0.2s ease;
}

.footer-icon:hover { background-color: var(--red); }

.footer-mark { margin: 0 0 12px; }

.syne-mark {
  font-family: 'Syne', Georgia, serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.syne-mark .ax { color: var(--red); }

.site-footer .syne-mark { color: var(--paper); }

.footer-meta {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 240, 226, 0.55);
  margin: 6px 0 0;
}

.footer-meta a {
  color: rgba(245, 240, 226, 0.75);
  text-decoration: none;
}
.footer-meta a:hover { color: var(--red); }

/* ── Hint tooltip (operator definition) ─────────────── */

.hint {
  position: relative;
  display: inline;
  cursor: help;
  border-bottom: 2px dashed var(--red);
  padding-bottom: 1px;
}

.hint:hover, .hint:focus-within, .hint.is-open {
  background: rgba(232, 35, 42, 0.08);
}

.hint-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1em;
  height: 1.1em;
  margin-left: 4px;
  background: var(--red);
  color: var(--paper);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.55em;
  line-height: 1;
  border-radius: 50%;
  vertical-align: 0.15em;
  letter-spacing: 0;
  text-transform: none;
  user-select: none;
}

.hint-content {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: 320px;
  max-width: 78vw;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 16px;
  font-family: 'Newsreader', Georgia, serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  transform: translateY(4px);
  z-index: 60;
  box-shadow: 0 6px 24px rgba(26, 22, 20, 0.18);
}

.hint:hover .hint-content,
.hint:focus-within .hint-content,
.hint.is-open .hint-content {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 720px) {
  :root { --pad-x: 18px; }
  .nav-links { display: none; }
  .nav-inner { padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .nav-cta { padding: 9px 14px; font-size: 10.5px; }
  .display { font-size: clamp(30px, 8vw, 42px); max-width: 22ch; }
  .sub { font-size: 19px; }
  .pull p { font-size: 19px; }
  .cta-link { font-size: 19px; }
  .btn { font-size: 13px; padding: 16px 24px; }
  .btn-lg { font-size: 15px; padding: 20px 32px; letter-spacing: 0.14em; }
  .dropcap { font-size: 48px; }
  .section-title { font-size: clamp(22px, 6vw, 28px); }
  .sub-h { font-size: 20px; }
  .hero { min-height: calc(100vh - var(--nav-h)); }
  .hint-content { width: 260px; }
  .section-cursor { height: 48px; }
  .section-cursor-inner { padding-top: 10px; padding-bottom: 10px; }
  .section-cursor-desc { font-size: 17px; }
  .section-cursor-num { font-size: 11px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-right-group { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-right { align-items: flex-start; text-align: left; }
  .footer-icon { width: 48px; height: 48px; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-nav { display: none; }
}
