/* ============================================================
   CROWN OF ELFAT — Royal Class Design System
   Aesthetic: Sovereign Glassmorphism
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&family=Cinzel:wght@400;600;700&family=Raleway:wght@300;400;500;600&display=swap');

/* === CSS VARIABLES ======================================== */
:root {
  --void:          #020509;
  --midnight:      #060c18;
  --deep:          #0a1428;
  --panel:         rgba(7, 14, 36, 0.75);
  --panel-light:   rgba(14, 26, 60, 0.5);

  --gold:          #c8a84b;
  --gold-bright:   #e2c26a;
  --gold-dim:      rgba(200, 168, 75, 0.2);
  --gold-glow:     rgba(200, 168, 75, 0.1);
  --gold-deep:     #8a6820;

  --royal-blue:    #1a3580;
  --blue-mid:      #2555c0;
  --blue-bright:   #4080f8;
  --blue-glow:     rgba(50, 100, 240, 0.2);

  --text:          #eae6f5;
  --text-muted:    rgba(215, 208, 238, 0.5);
  --text-dim:      rgba(180, 172, 210, 0.28);

  --border-gold:   rgba(200, 168, 75, 0.18);
  --border-blue:   rgba(60, 100, 220, 0.2);
  --border-panel:  rgba(80, 104, 190, 0.14);

  --status-applicant: #606470;
  --status-pending:   #c8a84b;
  --status-verified:  #3a8a5c;
  --status-delegate:  #3060c8;
  --status-advisor:   #8840c8;

  --radius:        14px;
  --radius-lg:     22px;
  --radius-sm:     7px;
  --radius-xs:     4px;

  --transition:    0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET ================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.72;
  background: var(--void);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* === BACKGROUND =========================================== */
.royal-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 70% at 15% -5%,  rgba(26, 53, 128, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 105%, rgba(160, 120, 30, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse 120% 120% at 50% 50%, var(--midnight) 0%, var(--void) 100%);
  pointer-events: none;
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* === LAYOUT =============================================== */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.container-md {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-sm {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* === NAVIGATION =========================================== */
.royal-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 68px;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(3, 6, 16, 0.88);
  backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border-gold);
  transition: background var(--transition);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-crown { width: 30px; height: 30px; color: var(--gold); }

.nav-name {
  font-family: 'Cinzel', serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.09em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-links li a {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-xs);
  transition: color var(--transition), background var(--transition);
  display: block;
}

.nav-links li a:hover { color: var(--gold-bright); background: var(--gold-glow); }

.nav-links li.nav-cta a {
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  margin-left: 0.4rem;
}

.nav-links li.nav-cta a:hover {
  background: rgba(200, 168, 75, 0.18);
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* === GLASS PANELS ========================================= */
.glass {
  background: var(--panel);
  backdrop-filter: blur(28px) saturate(1.3);
  border: 1px solid var(--border-panel);
  border-radius: var(--radius);
}

.glass-gold {
  background: rgba(7, 14, 38, 0.78);
  backdrop-filter: blur(28px) saturate(1.3);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
}

.glass-glow {
  box-shadow:
    0 0 0 1px rgba(200, 168, 75, 0.04) inset,
    0 4px 40px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(200, 168, 75, 0.04);
}

/* === TYPOGRAPHY =========================================== */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.15;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 5.2rem); font-weight: 300; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem);      font-weight: 300; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.9rem); font-weight: 400; }
h4 { font-size: 1rem; font-weight: 600; font-family: 'Cinzel', serif; letter-spacing: 0.08em; }

.cinzel { font-family: 'Cinzel', serif; }
.cormorant { font-family: 'Cormorant Garamond', serif; }

.gold       { color: var(--gold); }
.gold-bright { color: var(--gold-bright); }
.muted      { color: var(--text-muted); }
.dim        { color: var(--text-dim); }

/* === HERO ================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 9rem 2rem 7rem;
  text-align: center;
}

.royal-seal {
  width: 130px;
  height: 130px;
  margin: 0 auto 3rem;
}

.seal-outer {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(200, 168, 75, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, rgba(200,168,75,0.08) 0%, transparent 70%);
  animation: sealPulse 5s ease-in-out infinite;
  position: relative;
}

.seal-outer::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(200, 168, 75, 0.10);
}

.seal-crown-icon { width: 62px; height: 62px; color: var(--gold); }

@keyframes sealPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(200,168,75,0.08), 0 0 80px rgba(200,168,75,0.03); }
  50%       { box-shadow: 0 0 55px rgba(200,168,75,0.18), 0 0 120px rgba(200,168,75,0.07); }
}

.hero-kicker {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.55rem, 1.2vw, 0.72rem);
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
  animation: fadeUp 0.9s ease 0.2s both;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.01em;
  margin-bottom: 0.3rem;
  animation: fadeUp 0.9s ease 0.35s both;
}

.hero-title .italic-gold {
  color: var(--gold);
  font-style: italic;
}

.hero-divider {
  width: 140px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  margin: 1.4rem auto;
  opacity: 0.35;
  animation: fadeUp 0.9s ease 0.48s both;
}

.hero-motto {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-style: italic;
  color: var(--gold-bright);
  opacity: 0.8;
  margin-bottom: 3rem;
  animation: fadeUp 0.9s ease 0.58s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero .royal-seal { animation: fadeUp 0.9s ease 0.05s both; }

/* === STATS DASHBOARD ====================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto 5rem;
  padding: 0 2rem;
}

.stat-card {
  padding: 2.2rem 1.8rem 1.8rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(200,168,75,0.08), transparent 70%);
  pointer-events: none;
}

.stat-kicker {
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 300;
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.stat-number.elfat-num {
  font-size: clamp(1.3rem, 2.8vw, 2.2rem);
}

.stat-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
  line-height: 1.4;
}

.stat-pill {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.52rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-glow);
  border: 1px solid rgba(200,168,75,0.22);
  border-radius: 100px;
  padding: 0.18rem 0.7rem;
  margin-top: 0.9rem;
}

/* === ROYAL TIMELINE ======================================= */
.timeline-section { padding: 4rem 0 6rem; }

.timeline-wrap {
  overflow-x: auto;
  padding: 1.5rem 2rem;
}

.timeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 700px;
}

.tl-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.tl-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dim), rgba(200,168,75,0.08));
}

.tl-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--deep);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-bottom: 0.8rem;
  flex-shrink: 0;
}

.tl-dot.done {
  border-color: var(--gold);
  background: rgba(200,168,75,0.12);
  box-shadow: 0 0 16px rgba(200,168,75,0.2);
}

.tl-dot svg { width: 12px; height: 12px; color: var(--gold); }

.tl-label {
  font-family: 'Cinzel', serif;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  padding: 0 0.3rem;
  line-height: 1.5;
}

.tl-label.done-label { color: var(--gold); }

/* === BUTTONS ============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 2.4rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  position: relative;
}

.btn-gold {
  background: linear-gradient(135deg, #c8a84b 0%, #9a7a24 100%);
  color: #0a0800;
  box-shadow: 0 4px 28px rgba(200,168,75,0.22);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 38px rgba(200,168,75,0.35);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.btn-danger {
  background: rgba(160, 30, 30, 0.15);
  border: 1px solid rgba(180, 40, 40, 0.3);
  color: #f07070;
}

.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* === FORMS ================================================ */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group { margin-bottom: 1.4rem; }

.form-label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  opacity: 0.85;
}

.form-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(4, 9, 24, 0.7);
  border: 1px solid var(--border-panel);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  padding: 0.78rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8a84b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(200,168,75,0.55);
  box-shadow: 0 0 0 3px rgba(200,168,75,0.08);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-dim); }

.form-textarea { resize: vertical; min-height: 110px; }

.form-select option { background: #0a1428; color: var(--text); }

/* File upload */
.file-drop {
  border: 1px dashed rgba(200,168,75,0.3);
  border-radius: var(--radius-sm);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: rgba(200,168,75,0.02);
}

.file-drop:hover {
  border-color: var(--gold);
  background: rgba(200,168,75,0.05);
}

.file-drop-icon { width: 32px; height: 32px; color: var(--gold); margin: 0 auto 0.6rem; opacity: 0.6; }
.file-drop p { font-size: 0.82rem; color: var(--text-muted); }
.file-drop strong { color: var(--gold); }
.file-input-hidden { display: none; }

/* Charter checkboxes */
.charter-check {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-panel);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  background: rgba(200,168,75,0.02);
  transition: border-color var(--transition), background var(--transition);
  cursor: pointer;
}

.charter-check:has(input:checked) {
  border-color: rgba(200,168,75,0.35);
  background: rgba(200,168,75,0.04);
}

.charter-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px; height: 20px;
  min-width: 20px;
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  background: rgba(4,9,24,0.8);
  cursor: pointer;
  position: relative;
  margin-top: 1px;
  transition: all var(--transition);
  flex-shrink: 0;
}

.charter-check input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #c8a84b, #9a7a24);
  border-color: var(--gold);
}

.charter-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%) rotate(45deg);
  width: 5px; height: 9px;
  border-right: 2px solid #04080f;
  border-bottom: 2px solid #04080f;
}

.charter-check-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.charter-check-text strong { color: var(--text); font-weight: 500; }

/* === PROGRESS BARS ======================================== */
.nation-card {
  margin-bottom: 1.4rem;
  padding: 1.2rem 1.4rem;
}

.nation-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.nation-name {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.nation-pct {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: var(--gold);
  font-weight: 300;
}

.progress-track {
  height: 3px;
  background: rgba(80,104,190,0.12);
  border-radius: 100px;
  overflow: visible;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2555c0, #c8a84b);
  border-radius: 100px;
  width: 0%;
  transition: width 1.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: -1px; top: -3px;
  width: 9px; height: 9px;
  background: var(--gold);
  border-radius: 50%;
  border: 2px solid var(--midnight);
  box-shadow: 0 0 8px rgba(200,168,75,0.5);
}

.nation-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.45rem;
  font-size: 0.65rem;
  color: var(--text-dim);
}

/* === STATUS BADGES ======================================== */
.status-badge {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  border-radius: 100px;
  border: 1px solid currentColor;
}

.s-applicant       { color: var(--status-applicant); }
.s-pending         { color: var(--status-pending); }
.s-verified        { color: var(--status-verified); }
.s-delegate        { color: var(--status-delegate); }
.s-advisor         { color: var(--status-advisor); }

/* Nation status badges */
.ns-not-eligible      { color: #555; }
.ns-approaching       { color: var(--gold); }
.ns-threshold-reached { color: #6ecf9a; }
.ns-crown-nation      { color: var(--gold-bright); }

/* === ALERTS / MESSAGES ==================================== */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.alert-success {
  background: rgba(40, 100, 70, 0.18);
  border: 1px solid rgba(60, 140, 90, 0.35);
  color: #74daa0;
}

.alert-error {
  background: rgba(140, 30, 30, 0.18);
  border: 1px solid rgba(180, 40, 40, 0.35);
  color: #f08080;
}

.alert-info {
  background: rgba(200, 168, 75, 0.07);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
}

/* === PAGE HEADER ========================================== */
.page-hero {
  padding: 10rem 2rem 4rem;
  text-align: center;
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

/* === VOTING CODE DISPLAY ================================== */
.code-box {
  background: rgba(4, 9, 24, 0.9);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 2.2rem;
  text-align: center;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.code-box::before {
  content: '';
  position: absolute;
  top: -40px; left: 50%;
  transform: translateX(-50%);
  width: 180px; height: 80px;
  background: radial-gradient(ellipse, rgba(200,168,75,0.15), transparent 70%);
}

.code-label {
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.code-value {
  font-family: 'Courier New', 'Consolas', monospace;
  font-size: clamp(1rem, 2.5vw, 1.45rem);
  font-weight: bold;
  color: var(--gold-bright);
  letter-spacing: 0.12em;
  text-shadow: 0 0 20px rgba(200,168,75,0.3);
}

.code-warning {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.9rem;
  font-style: italic;
}

/* === CHARTER TEXT ========================================= */
.charter-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(230, 225, 245, 0.88);
}

.charter-body h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 2.5rem 0 0.85rem;
  font-weight: 600;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-gold);
}

.charter-body p { margin-bottom: 0.9rem; }
.charter-body ol, .charter-body ul { margin: 0.4rem 0 1rem 1.6rem; }
.charter-body li { margin-bottom: 0.35rem; }
.charter-body strong { color: var(--text); font-weight: 600; }

/* === SECTION ============================================== */
.section { padding: 5rem 0; flex: 1; }

.section-header { text-align: center; margin-bottom: 3rem; }

.kicker {
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.7rem;
}

.rule {
  width: 55px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.4rem auto 0;
  opacity: 0.4;
}

/* === SUBJECT PROFILE ===================================== */
.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal-blue), var(--gold-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--gold-bright);
  margin: 0 auto 1.5rem;
  border: 1px solid var(--border-gold);
  box-shadow: 0 0 30px rgba(200,168,75,0.1);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-panel);
}

.detail-row:last-child { border-bottom: none; }

.detail-label {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.detail-value {
  font-size: 0.9rem;
  color: var(--text);
  text-align: right;
}

/* === FOOTER ============================================== */
.royal-footer {
  border-top: 1px solid var(--border-panel);
  padding: 2.5rem;
  text-align: center;
  margin-top: auto;
}

.footer-motto {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer-copy {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

/* === FADE-IN SCROLL ANIMATION ============================ */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

/* === UTILITIES =========================================== */
.mt-sm  { margin-top: 0.5rem; }
.mt-md  { margin-top: 1rem; }
.mt-lg  { margin-top: 2rem; }
.mb-md  { margin-bottom: 1rem; }
.mb-lg  { margin-bottom: 2rem; }
.tc     { text-align: center; }
.flex   { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-md { gap: 1rem; }
.gap-sm { gap: 0.5rem; }
.w-full { width: 100%; }

/* === RESPONSIVE ========================================== */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: 1fr; max-width: 520px; }
  .form-row   { grid-template-columns: 1fr; }
  .container  { padding: 0 1.5rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .royal-nav { padding: 0 1.5rem; }
  .hero { padding: 8rem 1.5rem 5rem; }
  .timeline { min-width: 600px; }
}
