/* ============================================================
   LitmanProvenance — premium dark theme, v3
   Cinematic banner · Codex Rail · Corner Seal · Rotunda
   ============================================================ */

:root {
  --bg-base: #0A0B10;
  --bg-elevated: #10131E;
  --bg-card: #161A2A;
  --bg-card-hi: #1C2136;

  --border-subtle: rgba(201, 166, 107, 0.10);
  --border-soft: rgba(201, 166, 107, 0.18);
  --border-accent: rgba(201, 166, 107, 0.35);
  --border-violet: rgba(157, 111, 216, 0.25);

  --text-primary: #F4F1E8;
  --text-secondary: #B4B9CC;
  --text-muted: #7A8098;
  --text-tertiary: #5D6378;

  --gold: #C9A66B;
  --gold-bright: #E3C48A;
  --gold-dim: #8A7145;
  --gold-wash: rgba(201, 166, 107, 0.08);

  --violet: #9D6FD8;
  --violet-bright: #B89AE8;
  --violet-dim: #6B4C8E;
  --violet-wash: rgba(157, 111, 216, 0.10);

  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --container: 1200px;
  --section-pad-y: clamp(80px, 10vw, 140px);
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --codex-width: 64px;
  --codex-width-expanded: 240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--gold-bright); font-weight: inherit; }
kbd {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 2px 5px;
  border: 1px solid var(--border-soft);
  border-radius: 3px;
  background: rgba(22, 26, 42, 0.6);
  color: var(--gold);
}
::selection { background: var(--violet); color: var(--bg-base); }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.6'/></svg>");
  mix-blend-mode: overlay;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  position: relative;
}

/* ============================================================
   BANNER
   ============================================================ */
.banner {
  position: relative;
  width: 100%;
  height: clamp(240px, 32vw, 520px);
  overflow: hidden;
  z-index: 3;
  border-bottom: 1px solid var(--border-subtle);
}
.banner-picture { display: block; width: 100%; height: 100%; }
.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(105%);
}
.banner-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 55%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(10,11,16,0.45) 55%, var(--bg-base) 100%);
}
.banner-wordmark {
  position: absolute;
  left: clamp(20px, 4vw, 48px);
  bottom: clamp(16px, 2.6vw, 34px);
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: none;
  z-index: 2;
}
.banner-mark-latin {
  font-family: var(--mono);
  font-size: clamp(11px, 1vw, 14px);
  letter-spacing: 0.44em;
  color: var(--gold-bright);
  text-shadow: 0 2px 16px rgba(0,0,0,0.9), 0 0 28px rgba(201, 166, 107, 0.35);
  text-transform: uppercase;
  font-weight: 500;
}
.banner-mark-rule {
  width: clamp(24px, 3vw, 46px);
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(201,166,107,0.2) 100%);
}
.banner-mark-italic {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(14px, 1.3vw, 19px);
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-shadow: 0 2px 16px rgba(0,0,0,0.9);
  font-weight: 500;
}
@media (max-width: 640px) { .banner-wordmark { gap: 10px; bottom: 14px; } }

/* ============================================================
   CORNER SEAL
   ============================================================ */
.seal {
  position: fixed;
  top: 22px;
  left: 22px;
  width: 56px;
  height: 56px;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: radial-gradient(circle at 50% 50%, rgba(22, 26, 42, 0.9), rgba(10, 11, 16, 0.85));
  border-radius: 50%;
  border: 1px solid var(--border-accent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transform: scale(0.7) rotate(-18deg);
  pointer-events: none;
  transition:
    opacity 0.45s var(--ease),
    transform 0.6s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}
.seal[data-visible="true"] {
  opacity: 1;
  transform: scale(1) rotate(0);
  pointer-events: auto;
}
.seal:hover {
  border-color: var(--gold);
  box-shadow: 0 0 36px rgba(201, 166, 107, 0.4), 0 8px 28px rgba(0, 0, 0, 0.7);
  color: var(--gold-bright);
}
.seal:hover svg { animation: seal-spin 5s linear infinite; }
@keyframes seal-spin { to { transform: rotate(360deg); } }
.seal svg { position: relative; z-index: 2; transition: transform 0.5s var(--ease); }
.seal-halo {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(201, 166, 107, 0.25), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.seal:hover .seal-halo { opacity: 1; }

/* Menu pips — appear on mobile to hint at nav function */
.seal-pips {
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  gap: 3px;
  padding: 3px 6px;
  background: var(--bg-base);
  border-radius: 10px;
  border: 1px solid var(--border-soft);
}
.seal-pips i {
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}
@media (max-width: 860px) {
  .seal-pips { display: inline-flex; }
  .seal { width: 52px; height: 52px; top: 16px; left: 16px; }
  .seal svg { width: 44px; height: 44px; }
}

/* ============================================================
   CODEX RAIL
   ============================================================ */
.codex {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 70;
  padding: 22px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}
.codex > * { pointer-events: auto; }

.codex-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px 14px 0;
  opacity: 0.75;
}
.codex-glyph {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(201, 166, 107, 0.55);
}
.codex-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.codex-footer {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, var(--gold) 0%, transparent 100%);
  margin: 14px 31px 0 0;
  opacity: 0.5;
}

.codex-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  position: relative;
}
.codex-list::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  right: 31px;
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(201, 166, 107, 0.22) 10%,
    rgba(201, 166, 107, 0.22) 90%,
    transparent 100%);
  pointer-events: none;
}
.codex-list li { display: block; }

.codex-list a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  height: 34px;
  padding: 0 20px 0 18px;
  width: var(--codex-width);
  max-width: var(--codex-width);
  overflow: hidden;
  background: rgba(10, 11, 16, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-left: 1px solid transparent;
  transition:
    max-width 0.5s var(--ease),
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.codex-n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--gold);
  letter-spacing: 0.02em;
  line-height: 1;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
  transition: color 0.3s var(--ease), text-shadow 0.3s var(--ease);
  order: 2;
}
.codex-t {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(14px);
  transition: opacity 0.4s var(--ease), transform 0.45s var(--ease);
  order: 1;
  font-weight: 500;
}
.codex-tick {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transform: scale(0);
  transition: all 0.35s var(--ease);
  order: 3;
  position: absolute;
  right: 9px;
  top: 50%;
  margin-top: -2px;
}
.codex-list a:hover {
  max-width: var(--codex-width-expanded);
  background: linear-gradient(90deg, rgba(22, 26, 42, 0.96) 0%, rgba(10, 11, 16, 0.88) 100%);
  border-color: var(--border-accent);
  box-shadow: 0 6px 24px rgba(0,0,0,0.5), -2px 0 28px rgba(201, 166, 107, 0.18);
}
.codex-list a:hover .codex-t { opacity: 1; transform: translateX(0); }
.codex-list a:hover .codex-n { color: var(--gold-bright); text-shadow: 0 0 14px rgba(201, 166, 107, 0.55); }
.codex-list a.is-active {
  max-width: var(--codex-width-expanded);
  background: linear-gradient(90deg, rgba(28, 33, 54, 0.96) 0%, rgba(22, 26, 42, 0.88) 100%);
  border-color: var(--gold);
  box-shadow: 0 6px 30px rgba(0,0,0,0.6), -3px 0 36px rgba(201, 166, 107, 0.25);
}
.codex-list a.is-active .codex-t { opacity: 1; transform: translateX(0); }
.codex-list a.is-active .codex-n { color: var(--gold-bright); text-shadow: 0 0 16px rgba(227, 196, 138, 0.65); }
.codex-list a.is-active .codex-tick { opacity: 1; transform: scale(1); box-shadow: 0 0 10px var(--gold-bright); }

@media (max-width: 860px) { .codex { display: none; } }

/* ============================================================
   ROTUNDA — radial pocket-watch menu overlay
   ============================================================ */
.rotunda {
  position: fixed;
  inset: 0;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow: hidden;
}
.rotunda[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}
.rotunda-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 50% 50%, rgba(30, 18, 52, 0.65), transparent 70%),
    radial-gradient(ellipse 1200px 800px at 50% 50%, rgba(10, 11, 16, 0.96) 40%, rgba(10, 11, 16, 0.99) 100%);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}
.rotunda-bg::after {
  /* subtle starfield over the overlay */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 15% 22%, rgba(201, 166, 107, 0.5), transparent 50%),
    radial-gradient(1px 1px at 82% 16%, rgba(157, 111, 216, 0.45), transparent 50%),
    radial-gradient(1px 1px at 25% 78%, rgba(244, 241, 232, 0.25), transparent 50%),
    radial-gradient(1px 1px at 78% 82%, rgba(201, 166, 107, 0.4), transparent 50%),
    radial-gradient(1px 1px at 55% 38%, rgba(244, 241, 232, 0.2), transparent 50%);
  opacity: 0.8;
}

.rotunda-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-accent);
  background: rgba(22, 26, 42, 0.8);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  z-index: 3;
  font-family: inherit;
}
.rotunda-close:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  transform: rotate(90deg);
  box-shadow: 0 0 24px rgba(201, 166, 107, 0.3);
}

.rotunda-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(18px, 3vh, 32px);
  opacity: 0;
  transform: translateY(-12px);
  transition: all 0.6s var(--ease) 0.1s;
}
.rotunda[aria-hidden="false"] .rotunda-header {
  opacity: 1;
  transform: translateY(0);
}
.rotunda-glyph {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(201, 166, 107, 0.6);
}
.rotunda-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
}

/* The dial */
.rotunda-dial {
  --dial-size: clamp(300px, 78vmin, 560px);
  --radius: calc(var(--dial-size) * 0.40);
  position: relative;
  width: var(--dial-size);
  height: var(--dial-size);
  z-index: 2;
  transform: scale(0.85) rotate(-6deg);
  opacity: 0;
  transition: transform 0.7s var(--ease) 0.15s, opacity 0.6s var(--ease) 0.15s;
}
.rotunda[aria-hidden="false"] .rotunda-dial {
  transform: scale(1) rotate(0);
  opacity: 1;
}

.rotunda-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}
.rotunda-ring-outer {
  border: 1px solid rgba(201, 166, 107, 0.28);
  box-shadow:
    inset 0 0 60px rgba(201, 166, 107, 0.06),
    0 0 100px rgba(201, 166, 107, 0.08);
}
.rotunda-ring-inner {
  inset: 14%;
  border: 1px dashed rgba(201, 166, 107, 0.22);
  animation: spinRing 60s linear infinite;
}
.rotunda-ring-marks {
  inset: -2%;
  border: 1px solid rgba(201, 166, 107, 0.14);
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg 1deg,
      rgba(201, 166, 107, 0.35) 1deg 1.5deg,
      transparent 1.5deg 30deg
    );
  mask: radial-gradient(transparent 48%, black 49%, black 51%, transparent 52%);
  -webkit-mask: radial-gradient(transparent 48%, black 49%, black 51%, transparent 52%);
}
@keyframes spinRing { to { transform: rotate(360deg); } }

.rotunda-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(28, 33, 54, 0.95), rgba(10, 11, 16, 0.9));
  border: 1px solid var(--border-accent);
  box-shadow: 0 0 40px rgba(201, 166, 107, 0.18), inset 0 0 20px rgba(0,0,0,0.6);
}

.rotunda-items {
  list-style: none;
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
}
.rotunda-items li {
  position: absolute;
  top: 50%;
  left: 50%;
  transform:
    translate(-50%, -50%)
    rotate(var(--angle))
    translate(0, calc(-1 * var(--radius)))
    rotate(calc(-1 * var(--angle)));
}
.rotunda-items a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(68px, 13vmin, 88px);
  height: clamp(68px, 13vmin, 88px);
  padding: 6px 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, rgba(28, 33, 54, 0.9), rgba(10, 11, 16, 0.85));
  border: 1px solid var(--border-soft);
  color: var(--gold);
  transition: all 0.35s var(--ease);
  position: relative;
  text-align: center;
}
.rotunda-items a:hover,
.rotunda-items a:focus-visible {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: radial-gradient(circle at 50% 30%, rgba(40, 44, 70, 0.95), rgba(14, 16, 26, 0.9));
  transform: scale(1.08);
  box-shadow: 0 0 32px rgba(201, 166, 107, 0.45), 0 8px 24px rgba(0,0,0,0.5);
  outline: none;
}
.rotunda-n {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 3vmin, 24px);
  line-height: 1;
  color: inherit;
  letter-spacing: 0.02em;
}
.rotunda-l {
  font-family: var(--mono);
  font-size: clamp(8.5px, 1.2vmin, 10px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 5px;
  transition: color 0.3s var(--ease);
}
.rotunda-items a:hover .rotunda-l,
.rotunda-items a:focus-visible .rotunda-l {
  color: var(--text-primary);
}

/* Compass tick-marks between positions */
.rotunda-dial::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: calc(var(--radius) * 0.12);
  background: var(--gold);
  opacity: 0.5;
  transform: translate(-50%, -50%) translate(0, calc(-1 * var(--radius) * 0.95));
  box-shadow: 0 0 6px var(--gold);
}

.rotunda-caption {
  position: relative;
  z-index: 2;
  margin-top: clamp(16px, 3vh, 28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.6s var(--ease) 0.3s;
}
.rotunda[aria-hidden="false"] .rotunda-caption {
  opacity: 1;
  transform: translateY(0);
}
.rotunda-current {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--text-primary);
  min-height: 1.5em;
  letter-spacing: 0.01em;
}
.rotunda-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.rotunda-top {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 8px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  transition: all 0.3s var(--ease);
}
.rotunda-top:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: var(--gold-wash);
}
.rotunda-kbd {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
@media (max-width: 640px) {
  .rotunda-kbd { display: none; }
}

body.rotunda-open { overflow: hidden; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(90px, 12vw, 150px) 0 clamp(90px, 12vw, 150px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.starfield {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(244, 241, 232, 0.35), transparent 50%),
    radial-gradient(1px 1px at 75% 15%, rgba(201, 166, 107, 0.5), transparent 50%),
    radial-gradient(1px 1px at 40% 80%, rgba(157, 111, 216, 0.4), transparent 50%),
    radial-gradient(1px 1px at 85% 70%, rgba(244, 241, 232, 0.3), transparent 50%),
    radial-gradient(1px 1px at 10% 60%, rgba(201, 166, 107, 0.35), transparent 50%),
    radial-gradient(1px 1px at 60% 45%, rgba(244, 241, 232, 0.25), transparent 50%),
    radial-gradient(1px 1px at 30% 10%, rgba(157, 111, 216, 0.35), transparent 50%),
    radial-gradient(1px 1px at 90% 90%, rgba(244, 241, 232, 0.2), transparent 50%);
  opacity: 0.75;
}
.gradient-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 50% 10%, rgba(157, 111, 216, 0.12), transparent 70%),
    radial-gradient(ellipse 1100px 600px at 50% 100%, rgba(201, 166, 107, 0.06), transparent 70%);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 820px;
  gap: 26px;
  position: relative;
  z-index: 2;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--gold);
  font-weight: 500;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  display: inline-block;
}
.eyebrow-tick {
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--gold);
  position: relative;
}
.eyebrow-tick::before, .eyebrow-tick::after {
  content: '';
  position: absolute;
  top: -2px;
  width: 1px;
  height: 5px;
  background: var(--gold);
}
.eyebrow-tick::before { left: 3px; }
.eyebrow-tick::after { right: 3px; }
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(46px, 6.8vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}
.hero-title em { color: var(--gold-bright); font-style: italic; }
.hero-lead {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.72;
  color: var(--text-secondary);
  max-width: 680px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}
.hero-ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  opacity: 0.55;
}
.orn-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.orn-diamond {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 8px var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.04em;
  font-weight: 500;
  transition: all 0.28s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--sans);
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: #1A140A;
  box-shadow: 0 12px 36px rgba(201, 166, 107, 0.28), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(201, 166, 107, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border-accent);
  color: var(--text-primary);
}
.btn-ghost:hover {
  background: var(--gold-wash);
  border-color: var(--gold);
  color: var(--gold-bright);
}
.btn-large { padding: 18px 36px; font-size: 15px; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: var(--section-pad-y) 0;
  position: relative;
  z-index: 2;
}
.section + .section { border-top: 1px solid var(--border-subtle); }
.section-head {
  position: relative;
  max-width: 820px;
  margin-bottom: 72px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 10px;
}
.section-roman {
  position: absolute;
  top: -18px;
  left: -6px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(90px, 11vw, 180px);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-dim);
  opacity: 0.35;
  letter-spacing: -0.02em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transition: opacity 0.6s var(--ease);
}
.section-head > *:not(.section-roman) { position: relative; z-index: 1; }
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--text-primary);
  margin-top: 4px;
}
.section-title em { color: var(--gold-bright); font-style: italic; }
.section-lead {
  font-size: clamp(16px, 1.1vw, 18px);
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.72;
}

/* STATS */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 960px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stat-grid { grid-template-columns: 1fr; } }
.stat-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, var(--gold-wash) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.stat-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.stat-card:hover::before { opacity: 1; }
.stat-card > * { position: relative; z-index: 1; }
.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.stat-value {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.1;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.stat-body { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* PLATFORM */
.section-platform {
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-elevated) 50%, var(--bg-base) 100%);
}
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .pillar-grid { grid-template-columns: 1fr; } }
.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.pillar:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  background: var(--bg-card-hi);
}
.pillar:hover::before { opacity: 1; }
.pillar-featured {
  background: linear-gradient(180deg, var(--bg-card-hi) 0%, var(--bg-card) 100%);
  border-color: var(--border-violet);
}
.pillar-featured::before {
  background: linear-gradient(90deg, transparent, var(--violet) 50%, transparent);
  opacity: 1;
}
.pillar-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: var(--gold-wash);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
}
.pillar-featured .pillar-icon {
  color: var(--violet-bright);
  background: var(--violet-wash);
  border-color: var(--border-violet);
}
.pillar-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 0.1em;
  position: absolute;
  top: 32px;
  right: 32px;
  opacity: 0.5;
}
.pillar-featured .pillar-num { color: var(--violet-bright); }
.pillar-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-top: 6px;
}
.pillar-body { color: var(--text-secondary); font-size: 15px; line-height: 1.7; }
.pillar-body em { color: var(--gold-bright); }
.pillar-featured .pillar-body em { color: var(--violet-bright); }
.pillar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}
.pillar-list li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.pillar-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 1px;
  background: var(--gold);
}
.pillar-featured .pillar-list li::before { background: var(--violet); }

/* WEDGE */
.section-wedge { position: relative; overflow: hidden; }
.wedge-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 80% 30%, rgba(157, 111, 216, 0.08), transparent 70%),
    radial-gradient(ellipse 500px 400px at 20% 70%, rgba(201, 166, 107, 0.06), transparent 70%);
  pointer-events: none;
}
.wedge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  margin-bottom: 80px;
}
@media (max-width: 900px) { .wedge-grid { grid-template-columns: 1fr; } }
.wedge-copy { display: flex; flex-direction: column; gap: 22px; }
.wedge-pullquote {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.5;
  color: var(--text-primary);
  padding: 24px 28px;
  border-left: 2px solid var(--gold);
  background: var(--gold-wash);
  border-radius: 4px;
  font-style: italic;
}
.wedge-pullquote strong { font-style: normal; color: var(--gold-bright); font-weight: 600; }
.wedge-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}
.wedge-list li { display: flex; align-items: flex-start; gap: 14px; line-height: 1.6; }
.wedge-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  margin-top: 9px;
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--violet);
}
.wedge-visual { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 20px; }
.crystal {
  width: 220px;
  height: 300px;
  filter: drop-shadow(0 20px 50px rgba(157, 111, 216, 0.35));
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.crystal-caption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--violet-bright);
}
.estates-strip {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 26px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.estates-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.estates-names {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--text-secondary);
}
.estates-names span { display: inline-flex; align-items: center; font-style: italic; }
.estates-names span:not(:last-child)::after {
  content: '·';
  color: var(--gold-dim);
  margin-left: 20px;
  font-style: normal;
}

/* MOATS */
.moat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .moat-grid { grid-template-columns: 1fr; } }
.moat { position: relative; padding: 36px 0 36px 56px; border-top: 1px solid var(--border-soft); }
.moat-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
  position: absolute;
  left: 0;
  top: 36px;
  font-weight: 500;
}
.moat-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.005em;
}
.moat-body { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }

/* ARCHITECTURE */
.section-arch { background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-elevated) 100%); }
.arch-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: stretch;
  margin-bottom: 48px;
}
@media (max-width: 920px) { .arch-diagram { grid-template-columns: 1fr; gap: 24px; } }
.arch-node {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.3s var(--ease);
}
.arch-node:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.arch-provenance { border-top: 2px solid var(--gold); }
.arch-attest { border-top: 2px solid var(--violet); }
.arch-node-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.arch-provenance .arch-node-label { color: var(--gold); }
.arch-attest .arch-node-label { color: var(--violet-bright); }
.arch-node-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.005em;
}
.arch-working {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}
.arch-node-body { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.arch-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 260px;
  position: relative;
}
.arch-exchange {
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 166, 107, 0.14), var(--bg-card));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 0 60px rgba(201, 166, 107, 0.08);
}
.arch-exchange-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.arch-exchange-title {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 10px;
}
.arch-exchange-sub { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.arch-rails {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: -1;
}
.arch-rail {
  width: 38%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
  opacity: 0.4;
}
.arch-rail:last-child { background: linear-gradient(270deg, var(--violet) 0%, transparent 100%); }
@media (max-width: 920px) { .arch-rails { display: none; } }
.arch-caption {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

/* LAW */
.law-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .law-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .law-grid { grid-template-columns: 1fr; } }
.law-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.law-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--gold), var(--violet));
  transition: height 0.4s var(--ease);
}
.law-card:hover { border-color: var(--border-soft); background: var(--bg-card-hi); transform: translateX(2px); }
.law-card:hover::after { height: 100%; }
.law-state {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.law-stat { font-family: var(--serif); font-size: 24px; color: var(--text-primary); font-weight: 500; line-height: 1.15; }
.law-act {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--violet-bright);
  letter-spacing: 0.04em;
}
.law-note { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-top: 4px; }

/* ACCESS */
.section-access { padding: var(--section-pad-y) 0 calc(var(--section-pad-y) - 20px); }
.access-card {
  background: linear-gradient(135deg, var(--bg-card-hi) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  overflow: hidden;
}
.access-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, var(--gold) 50%, transparent 90%);
}
.access-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--violet-wash) 0%, transparent 60%);
  pointer-events: none;
}
.access-roman { top: -24px !important; left: -10px !important; }
.access-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  max-width: 800px;
  position: relative;
  z-index: 1;
}
.access-title em { color: var(--gold-bright); font-style: italic; }
.access-lead {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 720px;
  position: relative;
  z-index: 1;
}
.access-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}
.access-email { display: flex; flex-direction: column; gap: 4px; }
.access-email-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.access-email-value {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--gold-bright);
  transition: color 0.2s;
}
.access-email-value:hover { color: var(--gold); text-decoration: underline; }
.access-rule { height: 1px; background: var(--border-subtle); margin: 12px 0; position: relative; z-index: 1; }
.access-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; z-index: 1; }
@media (max-width: 640px) { .access-meta { grid-template-columns: 1fr; gap: 16px; } }
.access-meta > div { display: flex; flex-direction: column; gap: 4px; }
.access-meta-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.access-meta-value { font-size: 14px; color: var(--text-secondary); }
.access-meta-value a { color: var(--gold); border-bottom: 1px solid var(--border-soft); }
.access-meta-value a:hover { color: var(--gold-bright); border-color: var(--gold); }

/* FOOTER */
.footer { border-top: 1px solid var(--border-subtle); padding: 40px 0 44px; position: relative; z-index: 2; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--text-primary);
}
.footer-mark { color: var(--gold); display: inline-flex; }
.footer-brand em { color: var(--gold-bright); font-style: italic; }
.footer-copy, .footer-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.footer-disclaimer { font-style: italic; opacity: 0.7; }

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .crystal, .seal svg, .rotunda-ring-inner { animation: none; }
  html { scroll-behavior: auto; }
}
