/* Elysium Circle — premium loge aesthetic */
:root {
  --bg-0: #080B14;            /* deepest */
  --bg-1: #0B0F1A;            /* base */
  --bg-2: #0F1320;            /* card */
  --bg-3: #141927;            /* raised */
  --line: rgba(201, 168, 106, 0.18);
  --line-strong: rgba(201, 168, 106, 0.42);
  --gold: #C9A86A;
  --gold-bright: #E4CB94;
  --gold-deep: #8A6D4E;
  --bronze: #8A6D4E;
  --ink: #ECE6D8;             /* warm off-white */
  --ink-mute: #B3AC9C;
  --ink-faint: #7A7567;
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg-1); color: var(--ink); }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

/* === Background grain & vignette layer === */
.page-grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(201,168,106,0.05), transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 90%, rgba(138,109,78,0.04), transparent 60%);
}
.page-grain::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScyMDAnIGhlaWdodD0nMjAwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC45JyBudW1PY3RhdmVzPScyJyBzdGl0Y2hUaWxlcz0nc3RpdGNoJy8+PGZlQ29sb3JNYXRyaXggdmFsdWVzPScwIDAgMCAwIDAuODUgIDAgMCAwIDAgMC43OCAgMCAwIDAgMCAwLjU1ICAwIDAgMCAwLjA1IDAnLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0nMTAwJScgaGVpZ2h0PScxMDAlJyBmaWx0ZXI9J3VybCgjbiknLz48L3N2Zz4=");
  opacity: 0.35; mix-blend-mode: overlay;
}

/* === Typography === */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.005em; }
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--gold);
  display: inline-block; opacity: 0.7;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; color: var(--ink); }
h1 { font-size: clamp(48px, 7vw, 96px); line-height: 1.02; letter-spacing: -0.015em; }
h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.05; letter-spacing: -0.01em; }
h3 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; }
h4 { font-size: 20px; line-height: 1.3; }

p { margin: 0; color: var(--ink-mute); }
.lead { font-size: 18px; line-height: 1.7; color: var(--ink); }
.italic-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.35;
  color: var(--gold-bright);
  letter-spacing: 0.005em;
}

/* === Layout === */
.shell { max-width: 1280px; margin: 0 auto; padding: 0 48px; position: relative; z-index: 1; }
@media (max-width: 720px) { .shell { padding: 0 24px; } }

section.block { padding: 140px 0; position: relative; }
section.block.tight { padding: 96px 0; }
@media (max-width: 720px) { section.block { padding: 88px 0; } }

/* hairline gold rule */
.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent);
}
.rule-short {
  width: 60px; height: 1px; background: var(--gold); margin: 24px 0;
}

/* === Nav === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px 48px;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(14px);
  background: rgba(8, 11, 20, 0.72);
  border-bottom: 1px solid rgba(201,168,106,0.08);
  transition: background 280ms ease, border-color 280ms ease;
}
.nav.scrolled { background: rgba(8, 11, 20, 0.92); border-bottom-color: var(--line); }
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 22px; letter-spacing: 0.04em;
  color: var(--ink); text-decoration: none;
}
.nav-mark {
  width: 28px; height: 28px; border: 1px solid var(--gold);
  display: grid; place-items: center; transform: rotate(45deg);
}
.nav-mark::after {
  content: ""; width: 6px; height: 6px; background: var(--gold);
}
.nav-links {
  display: flex; align-items: center; gap: 32px;
  font-size: 13px; letter-spacing: 0.04em;
}
.nav-links a {
  color: var(--ink-mute); text-decoration: none;
  padding: 6px 0; position: relative;
  transition: color 200ms ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--gold); transition: right 260ms ease;
}
.nav-links a:hover::after { right: 0; }
@media (max-width: 980px) {
  .nav { padding: 14px 24px; }
  .nav-links { display: none; }
}

/* === Language toggle === */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em;
  padding: 4px 10px;
  border: 1px solid rgba(201,168,106,0.2);
}
.lang-toggle button {
  background: transparent; border: 0; cursor: pointer;
  color: var(--ink-faint);
  font: inherit; padding: 4px 4px;
  transition: color 200ms ease;
}
.lang-toggle button:hover { color: var(--gold-bright); }
.lang-toggle button.active { color: var(--gold); }
.lang-toggle .sep { color: var(--gold-deep); opacity: 0.5; }

/* === Mobile nav === */
.nav-mobile { display: none; align-items: center; gap: 16px; }
.nav-burger {
  background: transparent; border: 0; padding: 8px; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
}
.nav-burger span {
  display: block; width: 22px; height: 1px; background: var(--gold);
}
.nav-mobile-panel {
  position: fixed; top: 60px; left: 0; right: 0;
  background: rgba(8,11,20,0.98);
  border-bottom: 1px solid var(--line);
  padding: 32px 24px;
  display: flex; flex-direction: column; gap: 20px;
  backdrop-filter: blur(20px);
  z-index: 49;
  overflow-y: auto;
  max-height: calc(100dvh - 60px);
  -webkit-overflow-scrolling: touch;
}
.nav-mobile-panel a {
  color: var(--ink); text-decoration: none;
  font-size: 16px; letter-spacing: 0.05em;
}
.nav-mobile-panel .btn { align-self: flex-start; margin-top: 8px; }
@media (max-width: 980px) {
  .nav-mobile { display: flex; }
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  font-family: var(--sans); font-size: 13px;
  letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--gold);
  background: transparent; color: var(--gold);
  transition: all 240ms ease;
  position: relative; overflow: hidden;
}
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: var(--gold); transform: translateY(101%);
  transition: transform 320ms cubic-bezier(.7,.1,.3,.9);
  z-index: 0;
}
.btn span { position: relative; z-index: 1; transition: color 240ms ease; }
.btn:hover::before { transform: translateY(0); }
.btn:hover span { color: var(--bg-0); }
.btn.solid { background: var(--gold); color: var(--bg-0); }
.btn.solid::before { background: var(--gold-bright); }
.btn.solid:hover span { color: var(--bg-0); }
.btn.ghost { border-color: rgba(201,168,106,0.4); color: var(--ink); }
.btn.ghost::before { background: rgba(201,168,106,0.12); }
.btn.ghost:hover span { color: var(--gold-bright); }
.btn .arrow { font-family: var(--serif); font-size: 18px; transform: translateY(-1px); }

/* === Cards === */
.card {
  background: linear-gradient(180deg, rgba(20,25,39,0.7), rgba(11,15,26,0.7));
  border: 1px solid var(--line);
  padding: 40px;
  position: relative;
  transition: border-color 280ms ease, transform 280ms ease, box-shadow 280ms ease;
}
.card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 30px 80px -40px rgba(201,168,106,0.18);
}
.card .corner {
  position: absolute; width: 14px; height: 14px;
  border-color: var(--gold-deep); pointer-events: none;
  opacity: 0.6;
}
.card .corner.tl { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.card .corner.tr { top: -1px; right: -1px; border-top: 1px solid; border-right: 1px solid; }
.card .corner.bl { bottom: -1px; left: -1px; border-bottom: 1px solid; border-left: 1px solid; }
.card .corner.br { bottom: -1px; right: -1px; border-bottom: 1px solid; border-right: 1px solid; }

/* === Section labels === */
.section-no {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.3em;
  color: var(--gold-deep);
}

/* === Hero === */
.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: end start;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: var(--bg-0);
}
.hero-bg image-slot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.9);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 780px;
}
.hero-content h1,
.hero-content .hero-sub,
.hero-content .hero-intro,
.hero-content .hero-marks,
.hero-content [class*="eyebrow"],
.hero-content p {
  text-shadow:
    0 2px 12px rgba(0,0,0,0.9),
    0 4px 32px rgba(0,0,0,0.75),
    0 0 64px rgba(0,0,0,0.5);
}
.hero h1 .ampersand-line {
  display: block;
  font-style: italic;
  color: var(--gold-bright);
  font-size: 0.6em;
  margin-top: 8px;
}
.hero-sub {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 2.2vw, 30px);
  color: var(--gold-bright);
  margin: 18px 0 28px;
}
.hero-intro {
  font-family: var(--serif);
  font-size: 19px; line-height: 1.6;
  color: var(--ink);
  max-width: 560px;
  margin: 0 0 36px;
}
.hero-intro p + p { margin-top: 16px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-marks {
  position: absolute; right: 48px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 36px; z-index: 2;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em;
  color: var(--gold-deep);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
@media (max-width: 980px) { .hero-marks { display: none; } }

.scroll-cue {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--ink-faint);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 38px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* === Section header === */
.section-head {
  display: grid; gap: 18px;
  margin-bottom: 64px;
}
.section-head-center { text-align: center; justify-items: center; }
.section-head-center .meta { justify-content: center; }
.section-head-center h2 { max-width: 880px; margin: 0; }
.section-head-center .intro { margin: 0 auto; }
.section-head .meta {
  display: flex; align-items: center; gap: 24px;
  color: var(--gold-deep);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em;
}
.section-head .meta span { color: var(--gold); }
.section-head h2 { max-width: 880px; }
.section-head .intro {
  max-width: 720px; font-size: 18px; line-height: 1.7;
  color: var(--ink-mute); margin-top: 8px;
}

/* === Accordion === */
.accordion {
  border-top: 1px solid var(--line);
}
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%; background: transparent; border: 0;
  padding: 32px 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  text-align: left; color: var(--ink);
  font-family: var(--serif); font-size: clamp(22px, 2vw, 30px);
  transition: color 200ms ease;
}
.acc-trigger:hover { color: var(--gold-bright); }
.acc-trigger .plus {
  width: 38px; height: 38px; flex-shrink: 0;
  border: 1px solid var(--gold-deep);
  display: grid; place-items: center;
  color: var(--gold); position: relative;
  transition: border-color 240ms ease, transform 300ms ease;
}
.acc-trigger[aria-expanded="true"] .plus { transform: rotate(45deg); border-color: var(--gold); }
.acc-trigger .plus::before, .acc-trigger .plus::after {
  content: ""; position: absolute; background: var(--gold);
}
.acc-trigger .plus::before { width: 12px; height: 1px; }
.acc-trigger .plus::after { width: 1px; height: 12px; }
.acc-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 380ms ease;
}
.acc-body[aria-hidden="false"] { grid-template-rows: 1fr; padding-bottom: 36px; }
.acc-body > div { overflow: hidden; }
.acc-body .acc-content {
  max-width: 760px; font-size: 17px; line-height: 1.75; color: var(--ink-mute);
}
.acc-body .acc-content p + p { margin-top: 16px; }
.acc-body .acc-content .closing {
  font-family: var(--serif); font-style: italic;
  font-size: 22px; color: var(--gold-bright);
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line);
}

/* === Contrast statements (What Elysium Is) === */
.contrasts { display: grid; gap: 0; margin: 56px 0; max-width: 880px; }
.contrast-row {
  display: grid; grid-template-columns: 220px 1fr;
  align-items: baseline; gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.contrast-row:first-child { border-top: 1px solid var(--line); }
.contrast-row .label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.25em;
  color: var(--gold); text-transform: uppercase;
}
.contrast-row .stmt {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 30px);
  color: var(--ink);
  line-height: 1.25;
}
@media (max-width: 720px) {
  .contrast-row { grid-template-columns: 1fr; gap: 8px; }
}

/* === Codex grid === */
.codex-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.codex-grid .card {
  border: 0; padding: 44px 36px; min-height: 320px;
  display: flex; flex-direction: column; gap: 18px;
  background: var(--bg-1);
}
.codex-grid .card:hover { background: var(--bg-2); box-shadow: none; }
.codex-grid .icon {
  width: 48px; height: 48px;
  color: var(--gold); margin-bottom: 8px;
}
.codex-grid .card h4 {
  font-family: var(--serif); font-size: 28px;
  color: var(--ink);
}
.codex-grid .card .num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em;
  color: var(--gold-deep);
}
.codex-grid .card p { font-size: 15px; line-height: 1.65; }
@media (max-width: 980px) { .codex-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .codex-grid { grid-template-columns: 1fr; } }

/* === Pillars (Four Pillars large) === */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 980px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  position: relative;
  padding: 56px 48px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 20px;
  min-height: 460px;
  transition: border-color 280ms ease, transform 320ms ease;
}
.pillar:hover { border-color: var(--line-strong); }
.pillar .pillar-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
}
.pillar .pillar-icon {
  width: 56px; height: 56px; color: var(--gold); flex-shrink: 0;
}
.pillar .pillar-num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em;
  color: var(--gold-deep);
}
.pillar h3 { font-size: clamp(28px, 2.6vw, 38px); color: var(--ink); }
.pillar .sub {
  font-family: var(--serif); font-style: italic;
  color: var(--gold-bright); font-size: 18px;
  margin-bottom: 8px;
}
.pillar p { font-size: 15.5px; line-height: 1.7; color: var(--ink-mute); }
.pillar .principle {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--serif); font-style: italic;
  color: var(--gold-bright);
  font-size: 18px; line-height: 1.45;
}

/* === Pillar video background (Säule I — Lebenszeit) === */
.pillar-video { overflow: hidden; background: #060810; border-color: rgba(201,168,106,0.4); }
.pillar-bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 600ms ease;
}
.pillar-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(6,8,16,0.55) 0%, rgba(6,8,16,0.72) 100%);
  pointer-events: none;
  transition: opacity 600ms ease;
}
.pillar-video:hover .pillar-bg-video { opacity: 0.78; }
.pillar-video:hover .pillar-bg-overlay { opacity: 0.45; }
.pillar-video .pillar-head,
.pillar-video p,
.pillar-video .principle { position: relative; z-index: 1; }
.pillar-video h3 { color: #ECE6D8; }
.pillar-video p { color: rgba(236,230,216,0.78); }
.pillar-video .principle { border-top-color: rgba(201,168,106,0.25); }
.pillar-video:hover { border-color: rgba(201,168,106,0.75); }

/* === Path (3 steps) === */
.path-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.path-step {
  background: var(--bg-1);
  padding: 52px 40px;
  position: relative;
}
.path-step .step-num {
  font-family: var(--serif); font-size: 84px; line-height: 1;
  color: var(--gold);
  display: block; margin-bottom: 24px;
  opacity: 0.55;
}
.path-step h4 { font-family: var(--serif); font-size: 28px; color: var(--ink); margin-bottom: 16px; }
.path-step p { font-size: 15px; line-height: 1.65; }
@media (max-width: 860px) { .path-grid { grid-template-columns: 1fr; } }

/* === Threshold section === */
.threshold {
  position: relative;
  padding: 180px 0;
  background:
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 40%, var(--bg-0));
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.threshold .arch {
  position: absolute; left: 50%; top: 60px; transform: translateX(-50%);
  width: 360px; height: 460px;
  border-radius: 180px 180px 0 0;
  border: 1px solid var(--line-strong);
  pointer-events: none; opacity: 0.4;
}
.threshold .arch::after {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px; background: linear-gradient(180deg, var(--gold), transparent);
  transform: translateX(-50%); opacity: 0.5;
}
.threshold-poem {
  text-align: center; position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto 80px;
}
.threshold-poem .line {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
}
.threshold-poem .line.gold { color: var(--gold-bright); font-style: italic; }
.threshold-principles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  position: relative; z-index: 1;
}
@media (max-width: 860px) { .threshold-principles { grid-template-columns: 1fr; } }
.threshold-principles .card {
  background: rgba(15,19,32,0.5);
  backdrop-filter: blur(4px);
  padding: 40px 32px;
  text-align: center;
}
.threshold-principles .card .ord {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em;
  color: var(--gold); margin-bottom: 20px; display: block;
}
.threshold-principles .card p {
  font-family: var(--serif); font-size: 22px; line-height: 1.4;
  color: var(--ink); font-style: italic;
}
.threshold-end {
  margin-top: 80px; text-align: center; max-width: 760px;
  margin-left: auto; margin-right: auto;
  position: relative; z-index: 1;
}
.threshold-end p { color: var(--ink-mute); font-size: 17px; line-height: 1.8; }

/* === Ranks timeline === */
.ranks {
  display: grid; grid-template-columns: 280px 1fr; gap: 80px;
  align-items: start;
}
@media (max-width: 860px) { .ranks { grid-template-columns: 1fr; gap: 40px; } }
.ranks-text p { font-size: 16px; line-height: 1.75; }
.ranks-list {
  position: relative;
  padding-left: 48px;
}
.ranks-list::before {
  content: ""; position: absolute; left: 16px; top: 12px; bottom: 12px;
  width: 1px; background: linear-gradient(180deg, transparent, var(--gold) 10%, var(--gold) 90%, transparent);
  opacity: 0.5;
}
.rank-item {
  position: relative;
  padding: 22px 0;
  display: grid; grid-template-columns: 1fr auto; gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.rank-item:last-child { border-bottom: 0; }
.rank-item::before {
  content: ""; position: absolute; left: -40px; top: 50%;
  width: 11px; height: 11px;
  border: 1px solid var(--gold); background: var(--bg-1);
  transform: translateY(-50%) rotate(45deg);
  transition: background 280ms ease;
}
.rank-item:hover::before { background: var(--gold); }
.rank-item .name {
  font-family: var(--serif); font-size: 26px; color: var(--ink);
}
.rank-item .ord {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em;
  color: var(--gold-deep);
}
.ranks-final {
  margin-top: 48px;
  font-family: var(--serif); font-style: italic;
  font-size: 22px; color: var(--gold-bright);
}

/* === Membership === */
.membership {
  text-align: center;
  max-width: 760px; margin: 0 auto;
}
.membership-price {
  margin: 56px auto;
  padding: 48px 56px;
  border: 1px solid var(--line-strong);
  display: inline-block;
  position: relative;
}
.membership-price .ord {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em;
  color: var(--gold); display: block; margin-bottom: 16px;
}
.membership-price .amount {
  font-family: var(--serif);
  font-size: 64px; line-height: 1; color: var(--ink);
}
.membership-price .amount .currency {
  color: var(--gold-bright); font-size: 0.6em;
  margin-right: 8px; vertical-align: top;
}
.membership-price .meta {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.3em; color: var(--ink-faint);
  margin-top: 16px; text-transform: uppercase;
}
.membership .note {
  font-size: 15px; line-height: 1.75; color: var(--ink-mute);
  max-width: 620px; margin: 0 auto;
}
.membership .closing {
  margin-top: 48px;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 2vw, 28px);
  color: var(--gold-bright);
  line-height: 1.45;
}

/* === Independence + Legal === */
.text-block {
  display: grid; grid-template-columns: 320px 1fr; gap: 80px;
}
@media (max-width: 860px) { .text-block { grid-template-columns: 1fr; gap: 32px; } }
.text-block .content p { color: var(--ink-mute); font-size: 16.5px; line-height: 1.8; }
.text-block .content p + p { margin-top: 20px; }
.text-block .content .final {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--serif); font-style: italic;
  color: var(--gold-bright); font-size: 20px;
}

.legal-box {
  padding: 56px;
  background:
    linear-gradient(180deg, rgba(15,19,32,0.8), rgba(11,15,26,0.8));
  border: 1px solid var(--line);
  position: relative;
}
.legal-box::before {
  content: "§"; position: absolute; top: 20px; right: 28px;
  font-family: var(--serif); font-size: 64px; color: var(--gold-deep);
  opacity: 0.4;
}
.legal-box p { font-size: 15px; line-height: 1.8; color: var(--ink-mute); }
.legal-box p + p { margin-top: 18px; }

/* === Final footer / closing === */
.closing-section {
  text-align: center;
  padding: 200px 0 80px;
  background: var(--bg-0);
  position: relative;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.closing-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.28;
  pointer-events: none;
}
.closing-video-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 50%, rgba(201,168,106,0.06), transparent 70%),
    linear-gradient(to bottom, rgba(8,11,20,0.55) 0%, rgba(8,11,20,0.35) 50%, rgba(8,11,20,0.65) 100%);
  pointer-events: none;
}
.closing-section h2 {
  font-size: clamp(48px, 6vw, 84px);
  letter-spacing: 0.01em;
  color: var(--ink);
  font-style: italic;
}
.closing-section .latin {
  display: block; color: var(--gold-bright);
}
.closing-section .sub {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink-mute);
  margin-top: 16px;
  font-style: italic;
}
.closing-section .ornament {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: 48px 0 56px;
  color: var(--gold);
}
.closing-section .ornament::before,
.closing-section .ornament::after {
  content: ""; width: 80px; height: 1px; background: var(--gold);
  opacity: 0.6;
}
.closing-section .ornament-mark {
  width: 14px; height: 14px; border: 1px solid var(--gold);
  transform: rotate(45deg); position: relative;
}
.closing-section .ornament-mark::after {
  content: ""; position: absolute; inset: 3px; background: var(--gold);
}
.closing-section .closing-body {
  max-width: 640px; margin: 0 auto;
  font-family: var(--serif);
  font-size: 19px; line-height: 1.7; color: var(--ink);
}
.closing-section .closing-body p + p { margin-top: 14px; }

.footer {
  padding: 80px 0 56px;
  background: var(--bg-0);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 56px;
  margin-bottom: 64px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .nav-brand { font-size: 28px; }
.footer-brand p {
  margin-top: 20px; font-size: 13.5px; line-height: 1.7;
  color: var(--ink-faint); max-width: 320px;
}
.footer-col h5 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em;
  color: var(--gold); text-transform: uppercase;
  margin: 0 0 20px;
}
.footer-col a {
  display: block; color: var(--ink-mute);
  font-size: 14px; text-decoration: none;
  padding: 6px 0;
  transition: color 200ms ease;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--ink-faint); text-transform: uppercase;
  flex-wrap: wrap; gap: 16px;
}

/* === Footer link button (triggers modals) === */
.footer-powered {
  text-align: right;
  margin-bottom: 20px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--ink-faint); text-transform: uppercase;
}
.footer-powered a {
  color: var(--gold-deep); text-decoration: none;
  transition: color 200ms ease;
}
.footer-powered a:hover { color: var(--gold); }
.footer-link-btn {
  display: block; background: none; border: none; padding: 6px 0; cursor: pointer;
  font-family: inherit; font-size: 14px; letter-spacing: normal;
  color: var(--ink-mute); text-transform: none;
  text-align: left; transition: color 200ms ease;
}
.footer-link-btn:hover { color: var(--gold); }

/* === Imprint modal === */
.imprint-overlay {
  align-items: flex-start;
  padding: 48px 24px;
}
/* Higher specificity than .modal-card to override max-width: 480px and padding */
.modal-card.imprint-card {
  width: 100%; max-width: 960px;
  max-height: calc(100vh - 96px);
  display: flex; flex-direction: column;
  background: var(--bg-0);
  border: 1px solid var(--line);
  padding: 0;
}
.imprint-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; padding: 52px 64px 36px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.imprint-body {
  overflow-y: auto; padding: 48px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 48px;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,168,106,0.25) transparent;
}
/* first section (association name) spans full width */
.imprint-section:first-child { grid-column: 1 / -1; }
/* updated line spans full width */
.imprint-updated { grid-column: 1 / -1; }
.imprint-section { display: flex; flex-direction: column; gap: 8px; }
.imprint-heading {
  /* matches .footer-col h5 */
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 2px;
}
.imprint-text {
  /* matches footer link text */
  font-size: 14px; line-height: 1.75; color: var(--ink-mute); margin: 0;
}
.imprint-link { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.imprint-link:hover { color: var(--gold-bright); }
.imprint-updated {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--ink-faint); text-transform: uppercase; padding-top: 8px;
  border-top: 1px solid var(--line);
}
/* Privacy policy uses single-column layout (longer text per section) */
.privacy-body { grid-template-columns: 1fr; }
.privacy-body .imprint-section:first-child { grid-column: auto; }
.privacy-body .imprint-updated { grid-column: auto; }

.imprint-close-btn {
  background: none; border: none; padding: 4px; cursor: pointer;
  color: var(--gold-deep); flex-shrink: 0;
  transition: color 220ms ease, transform 220ms ease;
  line-height: 0;
}
.imprint-close-btn:hover { color: var(--gold); transform: rotate(90deg); }
.imprint-foot {
  padding: 24px 64px 40px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .imprint-body { grid-template-columns: 1fr; padding: 32px 28px; gap: 28px; }
  .imprint-section:first-child { grid-column: auto; }
  .imprint-updated { grid-column: auto; }
  .imprint-head { padding: 32px 28px 24px; }
  .imprint-foot { padding: 20px 28px 32px; }
}

/* === Reveal animation === */
/* Progressive enhancement: elements visible by default; JS adds .reveal-init
   on mount to hide them, then .is-visible reveals them as they enter view. */
.reveal-init {
  opacity: 0; transform: translateY(24px);
  transition: opacity 800ms ease, transform 800ms ease;
}
.reveal-init.is-visible { opacity: 1; transform: none; }

/* === Image slot styling helper === */
.hero image-slot::part(placeholder),
.hero image-slot {
  background: var(--bg-0);
}

/* a quiet shimmer along thin gold lines */
.gold-shimmer {
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer { 0%,100% { background-position: 200% 0; } 50% { background-position: -100% 0; } }

/* ===================================================
   CEREMONIAL EXTRAS
   =================================================== */

/* Sigil — used in nav, hero watermark, closing, modal */
.sigil { color: var(--gold); display: block; }
.sigil-glow { filter: drop-shadow(0 0 24px rgba(201,168,106,0.18)); }
.nav-brand .nav-mark {
  border: none; width: 28px; height: 36px; transform: none;
  background: none; display: flex; align-items: center; justify-content: center;
}
.nav-brand .nav-mark::after { content: none; }
.nav-logo {
  height: 48px; width: auto; display: block;
  filter: drop-shadow(0 4px 12px rgba(201,168,106,0.18));
  transition: filter 280ms ease, transform 280ms ease;
}
.nav-brand:hover .nav-logo {
  filter: drop-shadow(0 6px 20px rgba(228,203,148,0.35));
  transform: translateY(-1px);
}
.footer-brand-mark .nav-logo { height: 64px; }

/* Ornamental divider */
.ornament-divider {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 0;
  color: var(--gold);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 800ms ease 100ms, transform 800ms ease 100ms;
}
.ornament-divider.size-lg svg { width: 380px; }
.ornament-divider.in-view, .ornament-divider {
  opacity: 1; transform: none;
}
.ornament-divider svg path,
.ornament-divider svg line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawLine 1400ms cubic-bezier(.7,.1,.3,1) 200ms forwards;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* Constellation */
.constellation {
  position: absolute; inset: 0; width: 100%; height: 100%;
  color: var(--gold-bright);
  pointer-events: none;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

/* Mouse spotlight — subtle radial gold glow following cursor */
.mouse-spotlight {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  background: radial-gradient(
    480px circle at var(--mx, 50%) var(--my, 50%),
    rgba(201,168,106,0.06),
    transparent 60%
  );
  mix-blend-mode: screen;
  transition: background 200ms linear;
}

/* === Hero embellishments === */
.hero { background: var(--bg-0); }
.hero-bg { transition: transform 50ms linear; will-change: transform; }
.hero-constellation {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  will-change: transform;
}
.hero-sigil {
  position: absolute;
  right: -120px; top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  opacity: 0.16;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}
@media (max-width: 1100px) { .hero-sigil { right: -200px; opacity: 0.1; } }
@media (max-width: 720px) { .hero-sigil { display: none; } }

/* ===========================================================
   Hero — handwriting "ink" entrance
   The title is revealed left-to-right via a clip-path mask
   (as if drawn by a pen), a thin gold baseline draws under it,
   and the surrounding copy cascades up in measured stages.
   =========================================================== */

.hero-title {
  position: relative;
  display: block;
  opacity: 1;
  /* slightly looser tracking + italic accent feel */
  letter-spacing: 0.005em;
}

/* The masked title — clip-path acts like an advancing ink front */
.hero-title-ink {
  display: inline-block;
  position: relative;
  /* start fully clipped from the right */
  clip-path: inset(0 100% -0.15em 0);
  -webkit-clip-path: inset(0 100% -0.15em 0);
  /* small soft blur clears as ink dries */
  filter: blur(6px);
  opacity: 0;
  will-change: clip-path, filter, opacity;
  transition:
    clip-path 1800ms cubic-bezier(.22,.61,.36,1) 200ms,
    -webkit-clip-path 1800ms cubic-bezier(.22,.61,.36,1) 200ms,
    filter 1400ms ease-out 300ms,
    opacity 600ms ease-out 200ms;
}
.hero-title-text {
  display: inline-block;
  /* tiny italic tilt nods to handwritten ductus without losing the serif */
  font-style: italic;
  font-weight: 400;
}
.hero-in .hero-title-ink {
  clip-path: inset(0 0 -0.15em 0);
  -webkit-clip-path: inset(0 0 -0.15em 0);
  filter: blur(0);
  opacity: 1;
}

/* Hairline gold baseline that draws beneath the title in sync */
.hero-ink-line {
  display: block;
  margin-top: 14px;
  height: 1px;
  width: min(380px, 70%);
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201,168,106, 0.85) 18%,
    rgba(201,168,106, 0.95) 60%,
    rgba(201,168,106, 0) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  transition:
    transform 1600ms cubic-bezier(.22,.61,.36,1) 600ms,
    opacity 600ms ease-out 600ms;
}
.hero-in .hero-ink-line {
  transform: scaleX(1);
  opacity: 1;
}

/* Staged fade-up cascade for the surrounding copy */
.hero-stage {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 900ms ease-out, transform 900ms cubic-bezier(.22,.61,.36,1);
}
.hero-in .hero-stage { opacity: 1; transform: none; }
.hero-in .hero-stage-1 { transition-delay:   80ms; }
.hero-in .hero-stage-3 { transition-delay: 1400ms; }
.hero-in .hero-stage-4 { transition-delay: 1700ms; }
.hero-in .hero-stage-5 { transition-delay: 1950ms; }
.hero-in .hero-stage-6 { transition-delay: 2200ms; }

/* italic sub gets a touch more lift — feels like a calligraphic flourish */
.hero-in .hero-sub.hero-stage {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-title-ink,
  .hero-ink-line,
  .hero-stage {
    transition: none !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* === Threshold stars === */
.threshold-stars {
  position: absolute; inset: 0;
  color: var(--gold-bright);
  opacity: 0.7;
  pointer-events: none;
}
.gold-dust-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  display: block;
}
.network-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  display: block;
}

/* === Closing section embellishments === */
.closing-stars {
  position: absolute; inset: 0;
  color: var(--gold-bright);
  opacity: 0.8;
  pointer-events: none;
}
.closing-sigil {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold);
  opacity: 0.1;
  pointer-events: none;
}
.closing-section .shell { position: relative; z-index: 2; }

/* === Gallery === */
.gallery-block { background: linear-gradient(180deg, transparent, rgba(11,15,26,0.5), transparent); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.gallery-cell {
  position: relative; margin: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 280ms ease, transform 400ms ease;
}
.gallery-cell:hover { border-color: var(--line-strong); }
.gallery-cell::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(8,11,20,0.85));
  z-index: 2; pointer-events: none;
}
.gallery-cell image-slot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.gallery-cell figcaption {
  position: absolute; left: 20px; bottom: 16px; right: 20px;
  z-index: 3;
  display: flex; align-items: center; gap: 14px;
  color: var(--ink);
}
.gallery-cell .ord {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em;
  color: var(--gold);
}
.gallery-cell .cap {
  font-family: var(--serif); font-style: italic; font-size: 15px;
  color: var(--ink-mute);
}
.gallery-cell.cell-0 { grid-column: span 7; grid-row: span 2; }
.gallery-cell.cell-1 { grid-column: span 5; grid-row: span 1; }
.gallery-cell.cell-2 { grid-column: span 5; grid-row: span 1; }
.gallery-cell.cell-3 { grid-column: span 12; grid-row: span 1; }
@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-cell.cell-0, .gallery-cell.cell-1, .gallery-cell.cell-2, .gallery-cell.cell-3 {
    grid-column: 1 / -1; grid-row: span 1;
  }
}

/* === Sign In button in nav === */
.nav-signin {
  background: transparent; border: 1px solid rgba(201,168,106,0.18);
  color: var(--ink-mute);
  padding: 8px 14px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  cursor: pointer;
  transition: all 220ms ease;
}
.nav-signin:hover { color: var(--gold); border-color: var(--line-strong); }
.nav-signin svg { color: var(--gold); }

/* === LOGIN MODAL === */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 6, 12, 0.86);
  backdrop-filter: blur(14px);
  display: grid; place-items: center;
  padding: 24px;
  overflow-y: auto;
  opacity: 1; /* always visible — entrance is via .modal-card transition */
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background:
    linear-gradient(180deg, rgba(20,25,39,0.95), rgba(11,15,26,0.95));
  border: 1px solid var(--line-strong);
  padding: 56px 48px 40px;
  box-shadow:
    0 60px 120px -40px rgba(0,0,0,0.7),
    0 0 0 1px rgba(201,168,106,0.08) inset;
  opacity: 1;
  transform: none;
}
.modal-card::before, .modal-card::after {
  content: ""; position: absolute; width: 24px; height: 24px;
  border-color: var(--gold); opacity: 0.6;
}
.modal-card::before { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.modal-card::after { bottom: -1px; right: -1px; border-bottom: 1px solid; border-right: 1px solid; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--ink-faint); padding: 8px;
  transition: color 200ms ease, transform 200ms ease;
}
.modal-close:hover { color: var(--gold); transform: rotate(90deg); }
.modal-sigil {
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 24px;
}
.modal-sigil .sigil { color: var(--gold); }
.modal-logo {
  display: block;
  width: 132px; height: auto;
  filter: drop-shadow(0 4px 18px rgba(212, 175, 55, 0.18));
}
.modal-logo-sm { width: 104px; }
.modal-sigil-sub {
  font-family: var(--serif); font-style: italic;
  color: var(--gold); font-size: 12px; letter-spacing: 0.2em;
  margin-top: 12px;
}
.modal-head { text-align: center; margin-bottom: 32px; }
.modal-head h3 { font-size: 28px; color: var(--ink); }
.modal-sub {
  font-family: var(--serif); font-style: italic;
  color: var(--ink-mute); font-size: 15px; margin-top: 8px;
}

.modal-form { display: flex; flex-direction: column; gap: 22px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  color: var(--gold); text-transform: uppercase;
}
.field-meta {
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.04em; text-transform: none;
  color: var(--ink-faint); text-decoration: none;
}
.field-meta:hover { color: var(--gold); }
.field input {
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-family: var(--serif); font-size: 18px;
  color: var(--ink);
  outline: none;
  transition: border-color 220ms ease;
}
.field input::placeholder { color: var(--ink-faint); font-style: italic; }
.field input:focus { border-bottom-color: var(--gold); }

.terms-block {
  padding: 20px 0 4px;
  border-top: 1px solid var(--line);
}
.terms-text {
  font-family: var(--serif); font-style: italic;
  color: var(--ink-mute); font-size: 14.5px; line-height: 1.6;
  margin-bottom: 14px;
}
.radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
.radio {
  flex: 1; min-width: 140px;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 220ms ease, background 220ms ease;
}
.radio:hover { border-color: var(--line-strong); }
.radio.selected { border-color: var(--gold); background: rgba(201,168,106,0.04); }
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio-mark {
  width: 16px; height: 16px; flex-shrink: 0;
  border: 1px solid var(--gold-deep); border-radius: 50%;
  position: relative;
  transition: border-color 220ms ease;
}
.radio.selected .radio-mark { border-color: var(--gold); }
.radio-mark::after {
  content: ""; position: absolute; inset: 3px;
  border-radius: 50%; background: var(--gold);
  transform: scale(0); transition: transform 240ms cubic-bezier(.2,.7,.2,1.4);
}
.radio.selected .radio-mark::after { transform: scale(1); }
.radio-label {
  font-family: var(--sans); font-size: 13px;
  letter-spacing: 0.04em; color: var(--ink);
}

.btn.full { justify-content: center; width: 100%; padding: 18px 24px; }
.btn.disabled { opacity: 0.4; cursor: not-allowed; }
.btn.disabled:hover::before { transform: translateY(101%); }
.btn.disabled:hover span { color: var(--bg-0); }

.modal-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; color: var(--ink-faint);
  text-transform: uppercase;
}
.modal-foot a { color: var(--gold); text-decoration: none; }
.modal-foot a:hover { color: var(--gold-bright); }

.modal-success {
  display: flex; flex-direction: column; align-items: center; padding: 20px 0;
}
.modal-success .ornament-divider { color: var(--gold); padding: 16px 0 24px; }

@media (max-width: 560px) {
  .modal-card { padding: 48px 24px 32px; }
  .radio { min-width: 100px; flex-basis: 100%; }
}

/* === APPLICATION MODAL — Antrag auf Zugang === */
.app-card {
  max-width: 720px;
}
.app-intro {
  font-family: var(--serif); font-style: italic;
  color: var(--ink-mute);
  font-size: 15.5px; line-height: 1.7;
  text-align: center;
  max-width: 540px;
  margin: 0 auto 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.app-stepper {
  display: flex; align-items: center;
  gap: 12px; justify-content: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.app-stepper .step {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  color: var(--ink-faint);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  transition: all 280ms ease;
}
.app-stepper .step.active { border-color: var(--gold); color: var(--gold); }
.app-stepper .step.done { border-color: var(--gold-deep); color: var(--gold-bright); }
.app-stepper .step-dot {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
}
.app-stepper .step.done .step-dot { background: var(--gold); color: var(--bg-0); border-color: var(--gold); }
.app-stepper .step.active .step-dot { background: rgba(201,168,106,0.12); }
.app-stepper .step-name { font-family: var(--sans); font-weight: 500; }

.form-step { display: flex; flex-direction: column; gap: 22px; }
.field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.field textarea {
  width: 100%;
  background: rgba(15,19,32,0.4);
  border: 1px solid var(--line);
  padding: 14px 16px;
  font-family: var(--serif); font-size: 16px;
  color: var(--ink);
  outline: none;
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
  transition: border-color 220ms ease, background 220ms ease;
}
.field textarea::placeholder { color: var(--ink-faint); font-style: italic; }
.field textarea:focus { border-color: var(--gold); background: rgba(15,19,32,0.6); }

.chip-group {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.chip {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-mute);
  padding: 10px 18px;
  font-family: var(--sans); font-size: 13px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 240ms ease;
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip.selected {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,106,0.06);
}

.form-error {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  color: #d28a8a;
  text-transform: uppercase;
  padding: 12px 14px;
  border: 1px solid rgba(210,138,138,0.3);
  background: rgba(60,20,20,0.2);
}

.app-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; padding-top: 28px;
  border-top: 1px solid var(--line);
  gap: 16px; flex-wrap: wrap;
}
.app-step-label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-faint);
}
.app-step-label .ord { color: var(--gold); }
.app-actions-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .app-stepper .step-name { display: none; }
  .app-card { padding: 48px 28px 32px; }
}

/* Pillar card lift on hover */
.pillar { transition: border-color 280ms ease, transform 320ms ease, box-shadow 320ms ease; }
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 80px -50px rgba(201,168,106,0.18);
}

/* Codex card hover sheen */
.codex-grid .card { transition: background 320ms ease, transform 320ms ease; }
.codex-grid .card:hover { transform: translateY(-2px); }

/* When prefers-reduced-motion, disable parallax & animations */
@media (prefers-reduced-motion: reduce) {
  .ornament-divider svg path, .ornament-divider svg line,
  .constellation circle { animation: none !important; }
  .hero-bg, .hero-sigil { transform: none !important; }
  .mouse-spotlight { display: none; }
}
