:root {
  --bg: #06070b;
  --glass: rgba(13, 15, 22, 0.56);
  --glass-strong: rgba(11, 13, 19, 0.72);
  --glass-hover: rgba(20, 23, 33, 0.68);
  --border: rgba(226, 190, 103, 0.22);
  --border-strong: rgba(242, 209, 128, 0.48);
  --spec-top: rgba(255, 243, 210, 0.16);
  --gold: #e2be67;
  --gold-bright: #fae3a2;
  --gold-dim: #9e8242;
  --crimson: #a82a2a;
  --emerald: #48b878;
  --sky: #6ba8e5;
  --text: #ece8df;
  --muted: #b3aea3;
  --dim: #7b776e;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}
main { flex: 1; position: relative; z-index: 2; }
h1, h2, h3, .serif { font-family: 'Cinzel', Georgia, serif; letter-spacing: 0.045em; }

/* Fixed Custom Gothic Rune Sanctuary Art Layer (Lower Sections & Subpages) */
.world-backdrop {
  position: fixed;
  inset: -6%;
  z-index: 0;
  background:
    radial-gradient(ellipse 85% 60% at 50% 25%, rgba(10, 12, 18, 0.35), rgba(6, 7, 11, 0.88) 78%),
    url('/assets/world_bg.jpg') center center / cover no-repeat;
  transform: translate3d(0, 0, 0) scale(1.06);
  will-change: transform;
  pointer-events: none;
}
.world-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 40% at 20% 20%, rgba(226, 190, 103, 0.08), transparent 60%),
    radial-gradient(ellipse 55% 45% at 82% 75%, rgba(107, 168, 229, 0.07), transparent 60%);
  animation: ambientBreathe 12s ease-in-out infinite alternate;
}

/* Global Interactive Ember & Arcane Spark Canvas */
#ember-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Top Scroll Progress Hairline */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 200;
  background: linear-gradient(90deg, #9e7a2c, #fae3a2, #ffffff, #e2be67);
  box-shadow: 0 0 12px rgba(250, 227, 162, 0.85);
  transition: width 0.08s linear;
}

/* Frosted Glass Navigation */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 10, 15, 0.62);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border-bottom: 1px solid rgba(242, 209, 128, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.42), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}
.nav-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: nowrap;
}
.brand {
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--gold-bright);
  text-decoration: none;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  flex-shrink: 0;
  text-shadow: 0 0 18px rgba(226, 190, 103, 0.35);
}
.brand-crest-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 14px rgba(226, 190, 103, 0.35);
  object-fit: cover;
}
.brand span.badge {
  font-family: 'Inter', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--gold-bright);
  background: rgba(226, 190, 103, 0.12);
  backdrop-filter: blur(8px);
}
.nav-links {
  display: flex;
  gap: 13px;
  flex-wrap: nowrap;
  align-items: center;
  white-space: nowrap;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
@media (max-width: 1120px) {
  .nav-inner { padding: 11px 14px; gap: 10px; }
  .brand { font-size: 0.98rem; letter-spacing: 0.08em; gap: 7px; }
  .brand span.badge { font-size: 0.6rem; padding: 2px 6px; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 0.8rem; }
  .nav-cta { padding: 8px 13px !important; font-size: 0.78rem !important; }
}
.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(226, 190, 103, 0.1);
  color: var(--gold-bright);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
@media (max-width: 920px) {
  .nav-inner { flex-wrap: wrap; padding: 10px 14px; }
  .nav-burger { display: inline-flex; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 0 6px;
    border-top: 1px solid rgba(242, 209, 128, 0.14);
    white-space: normal;
  }
  .nav-links.mob-open { display: flex; }
  .nav-links a, .nav-dd-btn { padding: 8px 4px; width: 100%; text-align: left; }
  .nav-cta { text-align: center !important; margin-top: 4px; }
  .nav-dd { width: 100%; }
  .nav-dd-menu { position: static !important; width: 100% !important; max-width: 100% !important; transform: none !important; margin-top: 6px; grid-template-columns: 1fr !important; }
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  transform: scaleX(0);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).active::after { transform: scaleX(1); }
.nav-links a:hover, .nav-links a.active {
  color: var(--gold-bright);
  text-shadow: 0 0 14px rgba(250, 227, 162, 0.35);
}
.nav-cta {
  padding: 8px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f6dc8d 0%, #c99c3c 55%, #a87b22 100%);
  color: #120d04 !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  border: 1px solid rgba(255, 244, 204, 0.55);
  box-shadow: 0 4px 22px rgba(226, 190, 103, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(226, 190, 103, 0.55);
}

/* Layout */
.container { width: 100%; min-width: 0; max-width: 1140px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
section {
  padding: 84px 0;
  border-bottom: 1px solid rgba(242, 209, 128, 0.08);
  position: relative;
}
section:last-of-type { border-bottom: none; }

.page-hero {
  padding: 86px 0 56px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 10, 16, 0.55) 0%, rgba(6, 7, 11, 0.88) 100%),
    url('/assets/hero_bg.jpg') center 35% / cover no-repeat;
}

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 10px;
  text-shadow: 0 0 16px rgba(226, 190, 103, 0.35);
}
.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.55rem);
  color: var(--gold-bright);
  margin-bottom: 12px;
  line-height: 1.18;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.65);
}
.section-sub {
  color: var(--muted);
  max-width: 740px;
  font-size: 1.02rem;
  margin-bottom: 34px;
}

/* =========================================================================
   CINEMATIC FULL-BLEED CUSTOM ART HERO STAGE
   ========================================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 86px 0 88px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(242, 209, 128, 0.18);
}

/* Layer 1: Custom Citadel Key Art with Ken Burns + Mouse Parallax */
.hero-art {
  position: absolute;
  inset: -6%;
  z-index: 0;
  background: url('/assets/hero_bg.jpg') center 40% / cover no-repeat;
  animation: kenBurns 26s ease-in-out infinite alternate;
  will-change: transform;
  filter: contrast(1.06) saturate(1.12);
}

/* Layer 2: Volumetric Animated Golden God-Rays Sweep */
.hero-rays {
  position: absolute;
  inset: -15%;
  z-index: 1;
  pointer-events: none;
  background:
    conic-gradient(from 122deg at 22% 8%, transparent 0deg, rgba(250, 224, 152, 0.16) 14deg, transparent 28deg, rgba(250, 224, 152, 0.1) 42deg, transparent 58deg, transparent 360deg);
  mix-blend-mode: screen;
  animation: raysDrift 14s ease-in-out infinite alternate;
}

/* Layer 3: Cinematic Vignette & Bottom Seamless Feather */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 72% 58% at 50% 42%, rgba(6, 8, 13, 0.24) 0%, rgba(6, 7, 11, 0.72) 72%, rgba(6, 7, 11, 0.94) 100%),
    linear-gradient(180deg, rgba(6, 7, 11, 0.45) 0%, rgba(6, 7, 11, 0.18) 38%, rgba(6, 7, 11, 0.58) 76%, #06070b 100%);
}

/* Floating Animated Crest Medallion */
.hero-emblem-wrap {
  position: relative;
  width: 86px;
  height: 86px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: emblemFloat 5.5s ease-in-out infinite;
}
.hero-emblem-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(250, 227, 162, 0.85) 18%, transparent 38%, rgba(226, 190, 103, 0.55) 68%, transparent 100%);
  animation: spinSlow 9s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
}
.hero-emblem {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(250, 227, 162, 0.45);
  box-shadow: 0 0 38px rgba(226, 190, 103, 0.45), 0 12px 30px rgba(0, 0, 0, 0.75);
}

.hero-crest {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid rgba(242, 209, 128, 0.36);
  background: rgba(12, 14, 21, 0.52);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 var(--spec-top);
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* Shimmering Liquid-Gold Hero Title */
.hero h1 {
  font-size: clamp(2rem, 6.8vw, 5.1rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0.06em;
  max-width: 100%;
  overflow-wrap: break-word;
  background: linear-gradient(110deg, #caa247 0%, #fff4d1 24%, #e5be63 45%, #ffffff 54%, #cfa443 72%, #fae3a2 100%);
  background-size: 240% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 28px rgba(226, 190, 103, 0.28));
  animation: goldShimmer 7.5s linear infinite;
  margin-bottom: 18px;
}
.hero h1 span {
  display: block;
  font-size: clamp(0.84rem, 2vw, 1.32rem);
  font-weight: 600;
  color: var(--gold-bright);
  -webkit-text-fill-color: var(--gold-bright);
  margin-top: 12px;
  letter-spacing: 0.2em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9);
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { min-height: auto; padding: 48px 0 56px; }
  .hero-crest { font-size: 0.68rem; letter-spacing: 0.06em; padding: 6px 14px; border-radius: 14px; }
  .hero h1 span { letter-spacing: 0.1em; }
  .hero-lead { padding: 14px 16px; font-size: 0.95rem; margin-bottom: 24px; }
  .hero-actions { gap: 10px; margin-bottom: 32px; }
  .hero-actions a { width: 100%; }
  .launch-strip { max-width: 100%; padding: 10px 14px !important; gap: 8px !important; }
}

.hero-lead {
  max-width: 720px;
  margin: 0 auto 36px;
  font-size: 1.08rem;
  color: #e4dfd3;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
  padding: 16px 24px;
  border-radius: 14px;
  background: rgba(10, 12, 18, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 240, 200, 0.1);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 54px;
}

/* Liquid-Gold Sweeping Gleam CTA Buttons */
.btn-primary, .btn-secondary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.94rem;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #f8df94 0%, #d4a644 52%, #a67a21 100%);
  color: #130e04;
  font-weight: 700;
  border: 1px solid rgba(255, 245, 208, 0.6);
  box-shadow: 0 10px 34px rgba(226, 190, 103, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn-primary::before, .nav-cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
  transform: skewX(-24deg);
  animation: btnSweep 4.6s ease-in-out infinite;
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 42px rgba(226, 190, 103, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.btn-secondary {
  border: 1px solid rgba(242, 209, 128, 0.38);
  background: rgba(14, 17, 25, 0.52);
  backdrop-filter: blur(18px) saturate(155%);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  color: var(--gold-bright);
  font-weight: 600;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45), inset 0 1px 0 var(--spec-top);
}
.btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(226, 190, 103, 0.16);
  border-color: var(--gold-bright);
  box-shadow: 0 14px 36px rgba(226, 190, 103, 0.24), inset 0 1px 0 rgba(255, 245, 215, 0.35);
}

/* =========================================================================
   TRUE MULTI-LAYER FROSTED GLASSMORPHISM SURFACES + CURSOR SPOTLIGHT
   ========================================================================= */
.stat-box, .card, .step, .table-wrap, details, .callout, .ad-rail {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(155%);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  border: 1px solid var(--border);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 var(--spec-top),
    inset 0 -1px 0 rgba(0, 0, 0, 0.38);
  position: relative;
  overflow: hidden;
}

/* Dynamic Cursor-Following Glass Spotlight (--mx / --my set by motion.js) */
.glass-tilt {
  transform-style: preserve-3d;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
  will-change: transform;
}
.glass-tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(250, 227, 162, 0.16), transparent 65%);
  transition: opacity 0.28s ease;
}
.glass-tilt:hover::after { opacity: 1; }
.glass-tilt:hover {
  border-color: var(--border-strong);
  background: var(--glass-hover);
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.62),
    0 0 28px rgba(226, 190, 103, 0.14),
    inset 0 1px 0 rgba(255, 245, 214, 0.28);
}

/* Stat Ribbon */
.stat-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr));
  gap: 14px;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
}
.stat-box {
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
}
.stat-val {
  font-family: 'Cinzel', serif;
  font-size: 1.44rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 4px;
  text-shadow: 0 0 18px rgba(226, 190, 103, 0.32);
}
.stat-lbl {
  font-size: 0.76rem;
  color: #c2bdb2;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Grids & Cards */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.card {
  border-radius: 16px;
  padding: 28px;
}
.card h3 { font-size: 1.15rem; color: var(--gold-bright); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card ul, .card ol { margin-top: 12px; padding-left: 20px; color: #d4cfc3; font-size: 0.93rem; }
.card li { margin-bottom: 7px; }
.card strong { color: var(--text); }

/* Frosted Glass Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border-color: rgba(242, 209, 128, 0.34);
  background: var(--glass-strong);
}
table { width: 100%; border-collapse: collapse; min-width: 700px; }
th, td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
  font-size: 0.93rem;
}
thead th {
  background: linear-gradient(180deg, rgba(30, 34, 48, 0.85) 0%, rgba(16, 19, 28, 0.88) 100%);
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-strong);
}
tbody tr { transition: background 0.18s ease; }
tbody tr:hover { background: rgba(226, 190, 103, 0.07); }
tbody tr:last-child td { border-bottom: none; }
.cat-cell { font-weight: 700; color: var(--gold); white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.price-gold { color: var(--gold-bright); font-weight: 700; }

/* Pills & Callouts */
.pill {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  vertical-align: middle;
  backdrop-filter: blur(8px);
}
.pill-green { background: rgba(72, 184, 120, 0.16); color: #7ae3a7; border: 1px solid rgba(72, 184, 120, 0.42); }
.pill-gold { background: rgba(226, 190, 103, 0.18); color: var(--gold-bright); border: 1px solid var(--border-strong); }
.pill-red { background: rgba(168, 42, 42, 0.22); color: #f59c9c; border: 1px solid rgba(168, 42, 42, 0.45); }
.pill-blue { background: rgba(107, 168, 229, 0.18); color: #a7d1ff; border: 1px solid rgba(107, 168, 229, 0.4); }

.callout {
  margin-top: 28px;
  padding: 24px 28px;
  border-radius: 14px;
  border-left: 3px solid var(--gold-bright);
  background: linear-gradient(90deg, rgba(226, 190, 103, 0.14), rgba(13, 15, 22, 0.62));
}
.callout h4 { font-family: 'Cinzel', serif; color: var(--gold-bright); margin-bottom: 6px; font-size: 1.02rem; }
.callout p { color: #d6d1c3; font-size: 0.94rem; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 18px; }
.step {
  border-radius: 14px;
  padding: 22px;
}
.step-num { font-family: 'Cinzel', serif; font-size: 0.78rem; font-weight: 700; color: var(--gold); letter-spacing: 0.14em; margin-bottom: 6px; }
.step h4 { font-family: 'Cinzel', serif; color: #fff4d6; margin-bottom: 8px; font-size: 1.04rem; }
.step p { color: var(--muted); font-size: 0.9rem; }

/* FAQ */
.faq-list { display: grid; gap: 14px; }
details {
  border-radius: 14px;
  padding: 20px 24px;
  transition: border-color 0.22s ease, background 0.22s ease;
}
details[open] { border-color: var(--border-strong); background: var(--glass-hover); }
summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--gold-bright);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
summary::after { content: "+"; font-size: 1.25rem; color: var(--gold); }
details[open] summary::after { content: "−"; }
details p { margin-top: 12px; color: #d3cec0; font-size: 0.94rem; }

/* Status indicators */
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}
.dot-on { background: #48b878; box-shadow: 0 0 12px rgba(72, 184, 120, 0.9); animation: pulseDot 2.2s ease-in-out infinite; }
.dot-off { background: #e05252; box-shadow: 0 0 12px rgba(224, 82, 82, 0.9); }

code {
  font-family: Consolas, monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--gold-bright);
  font-size: 0.88em;
}

/* Footer */
footer {
  position: relative;
  z-index: 2;
  padding: 46px 0 58px;
  text-align: center;
  color: var(--dim);
  font-size: 0.86rem;
  border-top: 1px solid rgba(242, 209, 128, 0.16);
  background: rgba(6, 8, 12, 0.78);
  backdrop-filter: blur(18px);
}
footer .serif { color: var(--gold-bright); font-size: 1.02rem; margin-bottom: 8px; display: block; letter-spacing: 0.12em; }
footer .footer-links { margin: 12px 0 14px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
footer .footer-links a { color: var(--muted); text-decoration: none; font-size: 0.85rem; transition: color 0.18s; }
footer .footer-links a:hover { color: var(--gold-bright); }

/* Frosted Glass Desktop Rails */
.ad-rail { display: none; }
@media (min-width: 1480px) {
  .ad-rail {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 96px;
    width: 162px;
    z-index: 40;
    border-radius: 14px;
    padding: 14px 12px;
    gap: 12px;
  }
  .ad-rail-left { left: max(14px, calc((100vw - 1140px) / 2 - 186px)); }
  .ad-rail-right { right: max(14px, calc((100vw - 1140px) / 2 - 186px)); }
  .rail-tag {
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    text-align: center;
    border-bottom: 1px solid rgba(242, 209, 128, 0.14);
    padding-bottom: 7px;
  }
  .rail-block {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(226, 190, 103, 0.18);
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
  }
  .rail-block h4 {
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    color: var(--gold-bright);
    margin-bottom: 6px;
    line-height: 1.25;
  }
  .rail-block p {
    font-size: 0.74rem;
    color: var(--muted);
    line-height: 1.45;
    margin-bottom: 10px;
  }
  .rail-btn {
    display: block;
    width: 100%;
    padding: 7px 8px;
    border-radius: 7px;
    background: linear-gradient(135deg, #f3d684 0%, #bd9134 100%);
    color: #130e04;
    font-size: 0.74rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 6px;
    transition: filter 0.18s, transform 0.18s;
  }
  .rail-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
  .rail-btn-ghost {
    display: block;
    width: 100%;
    padding: 6px 8px;
    border-radius: 7px;
    border: 1px solid rgba(242, 209, 128, 0.34);
    color: var(--gold-bright);
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 6px;
    transition: background 0.18s, border-color 0.18s;
  }
  .rail-btn-ghost:hover { background: rgba(226, 190, 103, 0.15); border-color: var(--gold-bright); }
}

/* =========================================================================
   HYPER-MOTION SCROLL REVEAL CHOREOGRAPHY
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translate3d(0, 30px, 0) scale(0.975);
  filter: blur(8px);
  transition:
    opacity 0.78s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.78s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.78s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0ms);
}
.reveal.in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

/* Keyframes */
@keyframes kenBurns {
  0%   { transform: scale(1.04) translate3d(0%, 0%, 0); }
  50%  { transform: scale(1.11) translate3d(-1.4%, -1%, 0); }
  100% { transform: scale(1.08) translate3d(1.2%, -0.5%, 0); }
}
@keyframes raysDrift {
  0%   { opacity: 0.55; transform: rotate(-2deg) scale(1); }
  100% { opacity: 0.92; transform: rotate(3deg) scale(1.06); }
}
@keyframes goldShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 240% center; }
}
@keyframes emblemFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes btnSweep {
  0%, 62% { left: -75%; }
  100%    { left: 135%; }
}
@keyframes ambientBreathe {
  0%   { opacity: 0.55; }
  100% { opacity: 1; }
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.22); opacity: 0.75; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art, .hero-rays, .hero h1, .hero-emblem-wrap, .hero-emblem-ring, .btn-primary::before, .nav-cta::before {
    animation: none !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
}

/* Aden Library Ergonomic Dropdown */
.nav-dd { position: relative; display: inline-flex; align-items: center; }
.nav-dd-btn {
  background: none; border: none; color: var(--muted); font-family: inherit;
  font-size: 0.88rem; font-weight: 500; cursor: pointer; padding: 4px 2px;
  display: inline-flex; align-items: center; gap: 4px; transition: color 0.2s ease;
}
.nav-dd-btn:hover, .nav-dd:hover .nav-dd-btn, .nav-dd.open .nav-dd-btn { color: var(--gold-bright); }
.dd-caret { font-size: 0.7rem; opacity: 0.85; }
.nav-dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.nav-dd-menu {
  display: none; position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: 540px; max-width: 92vw; background: rgba(11, 13, 19, 0.97);
  border: 1px solid var(--border-strong); border-radius: 14px; padding: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.78); grid-template-columns: 1fr 1fr; gap: 12px;
  z-index: 300; backdrop-filter: blur(20px);
}
.nav-dd:hover .nav-dd-menu, .nav-dd.open .nav-dd-menu { display: grid; }
.dd-col { display: flex; flex-direction: column; gap: 4px; }
.dd-col-hdr {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gold-dim); padding: 2px 8px 6px; border-bottom: 1px solid rgba(226,190,103,0.16); margin-bottom: 3px;
}
.nav-links a.dd-item {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px;
  border: 1px solid transparent; transition: all 0.16s ease;
}
.nav-links a.dd-item::after { display: none !important; }
.nav-links a.dd-item:hover {
  background: rgba(226, 190, 103, 0.11); border-color: rgba(226, 190, 103, 0.3);
}
.dd-title { font-size: 0.85rem; font-weight: 700; color: var(--gold-bright); line-height: 1.2; }
.dd-sub { font-size: 0.72rem; color: var(--muted); line-height: 1.3; }
.footer-legal {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(226, 190, 103, 0.14);
  font-size: 0.74rem; line-height: 1.6; color: var(--dim); max-width: 920px; margin-left: auto; margin-right: auto;
}
.footer-legal a { color: var(--gold-dim); text-decoration: none; }
.footer-legal a:hover { color: var(--gold-bright); text-decoration: underline; }
