/* ═══════════════════════════════════════════════
   HAIL THE SWOOP — Style Codex
   Colors: Gold #C4A44A · Sky #6BB3D9 · Desert Dark
   ═══════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold: #C4A44A;
  --gold-light: #D4B85A;
  --gold-dark: #8B7332;
  --gold-glow: rgba(196, 164, 74, 0.3);
  --sky: #6BB3D9;
  --sky-light: #8BC5E3;
  --sky-dark: #4A8DAF;
  --desert-dark: #1A1611;
  --desert-mid: #2A2318;
  --desert-warm: #3D3224;
  --desert-sand: #5C4D3A;
  --text: #E8DFD0;
  --text-muted: #9B8E7A;
  --text-dim: #6B6050;
  --danger: #C44A4A;
  --danger-glow: rgba(196, 74, 74, 0.3);

  --font-display: 'Cinzel Decorative', 'Cinzel', serif;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Lato', -apple-system, sans-serif;

  --section-pad: clamp(4rem, 10vw, 8rem);
  --container-max: 1100px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-color: var(--gold-dark) var(--desert-dark);
}

body {
  font-family: var(--font-body);
  background: var(--desert-dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--gold);
  color: var(--desert-dark);
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--gold-light);
}

/* ── Floating Feathers ── */
#feather-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.floating-feather {
  position: absolute;
  font-size: 1.2rem;
  opacity: 0;
  animation: featherFall linear forwards;
  filter: drop-shadow(0 0 4px rgba(196, 164, 74, 0.3));
  pointer-events: none;
}

@keyframes featherFall {
  0% {
    opacity: 0;
    transform: translateX(0) translateY(-20px) rotate(0deg);
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
    transform: translateX(var(--drift)) translateY(100vh) rotate(var(--spin));
  }
}

/* ── Navigation ── */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 22, 17, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 164, 74, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#main-nav.nav--hidden {
  transform: translateY(-100%);
}

#main-nav.nav--scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
}

.nav-feather {
  transition: transform 0.3s ease;
}
.nav-logo:hover .nav-feather {
  transform: rotate(15deg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s ease;
}

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

.nav-links a {
  display: block;
  padding: 0.5rem 0.8rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 1px;
  background: var(--gold);
  transition: transform 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn--primary {
  background: var(--gold);
  color: var(--desert-dark);
}
.btn--primary:hover {
  background: var(--gold-light);
  color: var(--desert-dark);
  box-shadow: 0 0 30px var(--gold-glow);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-dark);
}
.btn--ghost:hover {
  border-color: var(--gold);
  box-shadow: 0 0 20px var(--gold-glow);
  transform: translateY(-2px);
}

.btn--danger {
  background: var(--danger);
  color: #fff;
}
.btn--danger:hover {
  box-shadow: 0 0 30px var(--danger-glow);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: 
    radial-gradient(ellipse at 50% 30%, rgba(107, 179, 217, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(196, 164, 74, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #1A1611 0%, #0F0D0A 100%);
}

.hero-fog {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(196, 164, 74, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(107, 179, 217, 0.04) 0%, transparent 50%);
  animation: fogDrift 20s ease-in-out infinite;
}

.hero-fog--2 {
  animation: fogDrift2 25s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes fogDrift {
  0%, 100% { transform: translateX(-30px) scale(1); opacity: 0.6; }
  50% { transform: translateX(30px) scale(1.05); opacity: 0.8; }
}

@keyframes fogDrift2 {
  0%, 100% { transform: translateX(20px) translateY(-10px) scale(1.02); opacity: 0.4; }
  50% { transform: translateX(-40px) translateY(10px) scale(0.98); opacity: 0.7; }
}

.hero-particles {
  position: absolute;
  inset: 0;
}

.hero-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: particleDrift linear infinite;
}

@keyframes particleDrift {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0);
  }
  20% {
    opacity: 0.8;
  }
  80% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) translateX(var(--pdrift));
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero-logo {
  margin: 0 auto 2rem;
  width: clamp(120px, 20vw, 200px);
  height: clamp(120px, 20vw, 200px);
}

.swoop-emblem {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 20px rgba(196, 164, 74, 0.3));
}

.central-feather {
  animation: featherFloat 6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes featherFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(1deg); }
}

.wind-path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: windDraw 4s ease-out forwards;
}

.wind-path--2 {
  animation-delay: 0.5s;
}

@keyframes windDraw {
  to { stroke-dashoffset: 0; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-shadow: 
    0 0 40px rgba(196, 164, 74, 0.3),
    0 0 80px rgba(196, 164, 74, 0.1);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.hero-title-pre,
.hero-title-post {
  font-weight: 300;
  opacity: 0.4;
  font-size: 0.7em;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  letter-spacing: 0.2em;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 2s ease-in-out infinite;
  color: var(--text-dim);
  font-size: 1.5rem;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
  50% { transform: translateX(-50%) translateY(10px); opacity: 0.8; }
}

/* ═══════════════════════════════════════════════
   SECTIONS — General
   ═══════════════════════════════════════════════ */
.section {
  padding: var(--section-pad) 1.5rem;
  position: relative;
}

.section--dark {
  background: var(--desert-mid);
}

.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

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

.section-numeral {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gold-dark);
  letter-spacing: 0.3em;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.section-subtitle {
  font-weight: 400;
  font-size: 0.7em;
  color: var(--text-muted);
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── Reveal Animation ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   CREED SECTION
   ═══════════════════════════════════════════════ */
.creed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.creed-card {
  background: var(--desert-mid);
  border: 1px solid rgba(196, 164, 74, 0.15);
  border-radius: 4px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.creed-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.creed-card:hover {
  border-color: rgba(196, 164, 74, 0.3);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.creed-card:hover::before {
  opacity: 1;
}

.creed-number {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold-dark);
  opacity: 0.3;
  margin-bottom: 0.5rem;
}

.creed-dogma {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.creed-meaning {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.creed-icon {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-size: 2rem;
  opacity: 0.15;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.creed-card:hover .creed-icon {
  opacity: 0.3;
  transform: scale(1.1);
}

/* ═══════════════════════════════════════════════
   ORIGIN SECTION
   ═══════════════════════════════════════════════ */
.origin-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.origin-dropcap {
  float: left;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.8;
  color: var(--gold);
  margin-right: 0.5rem;
  margin-top: 0.1em;
  text-shadow: 0 0 20px var(--gold-glow);
}

.origin-paragraph {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.origin-paragraph--lead {
  font-size: 1.1rem;
}

.origin-paragraph em {
  color: var(--gold-light);
  font-style: italic;
}

.origin-patron {
  background: rgba(196, 164, 74, 0.05);
  border: 1px solid rgba(196, 164, 74, 0.15);
  border-radius: 4px;
  padding: 1.5rem;
  position: sticky;
  top: 5rem;
}

.origin-patron h3 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.patron-list {
  list-style: none;
}

.patron-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(196, 164, 74, 0.08);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.patron-list li:last-child {
  border-bottom: none;
}

.patron-icon {
  font-size: 1.2rem;
}

/* ═══════════════════════════════════════════════
   HIERARCHY SECTION
   ═══════════════════════════════════════════════ */
.hierarchy-ladder {
  max-width: 700px;
  margin: 0 auto;
}

.hierarchy-rank {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
}

.rank-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 20px;
}

.rank-pip {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-dark);
  border: 2px solid var(--gold);
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--gold-glow);
}

.hierarchy-rank--4 .rank-pip {
  width: 16px;
  height: 16px;
  background: var(--gold);
  box-shadow: 0 0 20px var(--gold-glow);
}

.rank-line {
  flex: 1;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-dark), transparent);
  margin-top: 0.5rem;
}

.rank-content {
  padding-bottom: 1.5rem;
}

.rank-badge {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  letter-spacing: 0.2em;
}

.rank-content h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.rank-title-en {
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
  font-style: italic;
}

.rank-content p:not(.rank-title-en) {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.rank-content em {
  color: var(--gold-light);
}

/* ═══════════════════════════════════════════════
   RITUALS SECTION
   ═══════════════════════════════════════════════ */
.ritual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.ritual-card {
  background: rgba(26, 22, 17, 0.6);
  border: 1px solid rgba(196, 164, 74, 0.12);
  border-radius: 4px;
  padding: 2rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
  position: relative;
}

.ritual-card:hover {
  border-color: rgba(196, 164, 74, 0.25);
  transform: translateY(-3px);
}

.ritual-freq {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sky);
  background: rgba(107, 179, 217, 0.1);
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
  margin-bottom: 0.8rem;
}

.ritual-card h3 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.ritual-en {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 0.8rem;
}

.ritual-card p:not(.ritual-en) {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   SIGNS SECTION
   ═══════════════════════════════════════════════ */
.signs-table {
  max-width: 800px;
  margin: 0 auto;
}

.sign-row {
  display: grid;
  grid-template-columns: 140px 30px 1fr 1fr;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(196, 164, 74, 0.08);
  transition: background 0.3s ease;
  gap: 0.5rem;
}

.sign-row:hover {
  background: rgba(196, 164, 74, 0.04);
}

.sign-event {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text);
}

.sign-emoji {
  font-size: 1.3rem;
}

.sign-arrow {
  color: var(--gold-dark);
  text-align: center;
  font-size: 0.9rem;
}

.sign-meaning {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 0.95rem;
}

.sign-note {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-style: italic;
}

/* ═══════════════════════════════════════════════
   HOLIDAYS SECTION
   ═══════════════════════════════════════════════ */
.holiday-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.holiday-card {
  background: rgba(26, 22, 17, 0.6);
  border: 1px solid rgba(196, 164, 74, 0.12);
  border-radius: 4px;
  padding: 2rem;
  transition: border-color 0.3s ease;
}

.holiday-card:hover {
  border-color: rgba(196, 164, 74, 0.25);
}

.holiday-date {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.5rem;
}

.holiday-card h3 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

.holiday-en {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 0.8rem;
}

.holiday-card > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.holiday-tradition {
  background: rgba(196, 164, 74, 0.06);
  border-left: 2px solid var(--gold-dark);
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.holiday-tradition strong {
  color: var(--gold);
}

/* ═══════════════════════════════════════════════
   HERESY SECTION
   ═══════════════════════════════════════════════ */
.section--heresy {
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(196, 74, 74, 0.06) 0%, transparent 50%),
    var(--desert-dark);
}

.section-intro--warning {
  color: var(--danger);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.heresy-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.heresy-quote {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--danger);
  border-left: 3px solid var(--danger);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  font-style: italic;
  line-height: 1.5;
}

.heresy-text p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.heresy-text em {
  color: var(--text);
}

.heresy-text strong {
  color: var(--danger);
}

.heresy-warning-box {
  background: rgba(196, 74, 74, 0.06);
  border: 1px solid rgba(196, 74, 74, 0.2);
  border-radius: 4px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.heresy-warning-box h4 {
  font-family: var(--font-heading);
  color: var(--danger);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.heresy-warning-box ul {
  list-style: none;
  padding: 0;
}

.heresy-warning-box li {
  padding: 0.3rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.heresy-warning-box li::before {
  content: '✕ ';
  color: var(--danger);
  font-weight: 700;
}

.heresy-report {
  background: rgba(196, 74, 74, 0.04);
  border: 1px solid rgba(196, 74, 74, 0.15);
  border-radius: 4px;
  padding: 1.5rem;
  text-align: center;
  position: sticky;
  top: 5rem;
}

.heresy-report h4 {
  font-family: var(--font-heading);
  color: var(--danger);
  margin-bottom: 0.8rem;
}

.heresy-report p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.heresy-disclaimer {
  font-size: 0.8rem !important;
  color: var(--text-dim) !important;
  font-style: italic;
}

/* ═══════════════════════════════════════════════
   PRAY SECTION (Easter Egg)
   ═══════════════════════════════════════════════ */
.section--pray {
  background: 
    radial-gradient(ellipse at 50% 30%, rgba(196, 164, 74, 0.1) 0%, transparent 50%),
    var(--desert-dark);
  text-align: center;
  padding: var(--section-pad) 1.5rem;
}

.pray-content {
  max-width: 600px;
  margin: 0 auto;
}

.pray-feather {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: featherFloat 4s ease-in-out infinite;
}

.pray-content h2 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.pray-text {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.pray-prayer {
  background: rgba(196, 164, 74, 0.05);
  border: 1px solid rgba(196, 164, 74, 0.15);
  border-radius: 4px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.pray-prayer p {
  font-family: var(--font-heading);
  color: var(--gold-light);
  font-size: 1rem;
  line-height: 2;
}

.pray-result {
  margin-top: 1rem;
  font-family: var(--font-heading);
  color: var(--sky);
  font-size: 1.1rem;
  min-height: 2rem;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
#footer {
  background: #0F0D0A;
  border-top: 1px solid rgba(196, 164, 74, 0.1);
  padding: 3rem 1.5rem;
  text-align: center;
}

.footer-content {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-blessing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.footer-feather-icon {
  animation: featherFloat 5s ease-in-out infinite;
}

.footer-motto {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

.footer-links {
  margin-bottom: 1.5rem;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-sep {
  color: var(--text-dim);
  margin: 0 0.5rem;
}

.footer-copy {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.footer-fine-print {
  font-size: 0.75rem;
  color: var(--text-dim);
  opacity: 0.6;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════
   MODALS & OVERLAYS
   ═══════════════════════════════════════════════ */
.modal,
.konami-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.modal-content {
  background: var(--desert-mid);
  border: 1px solid rgba(196, 164, 74, 0.2);
  border-radius: 4px;
  padding: 2.5rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-content h3 {
  font-family: var(--font-heading);
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.modal-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

.modal-content em {
  color: var(--text-dim);
}

.modal-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem;
  background: rgba(196, 164, 74, 0.06);
  border-radius: 2px;
  margin: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--gold);
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
}

.modal-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Konami Overlay */
.konami-overlay {
  background: rgba(180, 40, 40, 0.9);
  backdrop-filter: blur(12px);
  animation: konamiFlash 0.5s ease;
}

@keyframes konamiFlash {
  0% { opacity: 0; }
  30% { opacity: 1; }
  50% { background: rgba(255, 0, 0, 0.95); }
  100% { background: rgba(180, 40, 40, 0.9); }
}

.konami-content {
  text-align: center;
  animation: konamiShake 0.5s ease;
}

@keyframes konamiShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.konami-ripper {
  font-size: 6rem;
  margin-bottom: 1rem;
  animation: ripperFlap 0.3s ease infinite alternate;
}

@keyframes ripperFlap {
  from { transform: scaleX(1) rotate(-5deg); }
  to { transform: scaleX(-1) rotate(5deg); }
}

.konami-content h2 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 2.5rem;
  text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
  margin-bottom: 0.5rem;
}

.konami-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.konami-shame {
  font-style: italic;
  margin-bottom: 2rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 22, 17, 0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid rgba(196, 164, 74, 0.15);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.8rem 1rem;
  }

  /* Nav toggle animation */
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .origin-content {
    grid-template-columns: 1fr;
  }

  .origin-patron {
    position: static;
  }

  .heresy-content {
    grid-template-columns: 1fr;
  }

  .heresy-report {
    position: static;
  }

  .sign-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(196, 164, 74, 0.1);
  }

  .sign-arrow {
    display: none;
  }

  .sign-meaning {
    font-size: 1.1rem;
  }

  .hero-title {
    letter-spacing: 0.08em;
  }

  .creed-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --section-pad: 3rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .ritual-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Print ── */
@media print {
  #main-nav, .hero-fog, .hero-particles, #feather-container, .hero-scroll-hint {
    display: none !important;
  }
  body {
    background: #fff;
    color: #333;
  }
  .section--dark {
    background: #f5f5f5;
  }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
