/* ═══════════════════════════════════════════════════
   THE SECRET BURGER SOCIETY — STYLESHEET v2
   Dark · Mysterious · Cult Aesthetic
═══════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --black:      #0A0A0A;
  --navy:       #0B1120;
  --gold:       #D4AF37;
  --gold-light: #F0D060;
  --gold-dim:   #7A6010;
  --red:        #8B0000;
  --red-dim:    #3D0000;
  --white:      #F5F0E8;
  --gray:       #888888;

  --font-serif:  'Cinzel', serif;
  --font-body:   'Inter', sans-serif;
  --font-italic: 'Cormorant Garant', serif;
  --font-mono:   'Courier New', Courier, monospace;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── RESET ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }

img { display: block; max-width: 100%; }

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

/* ── SHARED TEXT ── */
.section-label {
  font-family: var(--font-serif);
  font-size: 0.62rem;
  letter-spacing: 0.38em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 2rem; height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.8rem;
}

.body-text {
  font-weight: 300;
  font-size: 0.95rem;
  color: rgba(245,240,232,0.68);
  line-height: 1.9;
  margin-bottom: 1.2rem;
  max-width: 56ch;
}
.gold-text { color: var(--gold); font-family: var(--font-italic); font-style: italic; font-size: 1rem; }

/* ═══════════════════════════════════════════
   SCANLINES (fixed overlay)
═══════════════════════════════════════════ */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 99998;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.018) 3px,
    rgba(0,0,0,0.018) 4px
  );
}

/* ═══════════════════════════════════════════
   INITIATION GATE
═══════════════════════════════════════════ */
.initiation-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.initiation-gate.dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Noise texture inside gate */
.gate-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

.gate-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  max-width: 540px;
  animation: gateContentFade 1.2s var(--ease) forwards;
}
@keyframes gateContentFade {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Eye */
.gate-eye-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gate-eye-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.25);
}
.ring-1 { inset: 0;     animation: ringPulse 2.5s ease-in-out infinite; }
.ring-2 { inset: -16px; animation: ringPulse 2.5s ease-in-out 0.6s infinite; }
.ring-3 { inset: -32px; animation: ringPulse 2.5s ease-in-out 1.2s infinite; }
@keyframes ringPulse {
  0%,100% { opacity:0.2; transform:scale(0.95); }
  50%     { opacity:0.7; transform:scale(1.05); }
}
.gate-eye-glyph {
  font-size: 3.2rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 18px rgba(212,175,55,0.7));
  animation: eyeBreathe 3s ease-in-out infinite;
  transition: transform 0.15s ease;
  will-change: transform;
}
@keyframes eyeBreathe {
  0%,100% { filter: drop-shadow(0 0 18px rgba(212,175,55,0.6)); }
  50%     { filter: drop-shadow(0 0 32px rgba(212,175,55,1)); }
}

.gate-intercept {
  font-family: var(--font-serif);
  font-size: 0.55rem;
  letter-spacing: 0.55em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  animation: flickerText 5s ease-in-out infinite;
}
@keyframes flickerText {
  0%,88%,90%,92%,100% { opacity:1; }
  89% { opacity:0.2; }
  91% { opacity:0.6; }
}
.gate-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.6rem;
  text-shadow: 0 0 50px rgba(212,175,55,0.15);
}
.gate-rule {
  width: 80px; height: 1px;
  background: var(--gold-dim);
  margin: 0 auto 1.8rem;
}
.gate-body {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1rem;
  color: rgba(245,240,232,0.5);
  line-height: 1.85;
  max-width: 44ch;
  margin: 0 auto 2.5rem;
}
.gate-btn {
  position: relative;
  padding: 1rem 2.8rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.45s var(--ease);
  margin-bottom: 2rem;
  display: inline-block;
}
.gate-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.gate-btn:hover::before { transform: scaleX(1); }
.gate-btn:hover { color: var(--black); }
.gate-btn-text { position: relative; z-index: 1; }
.gate-warning {
  font-size: 0.6rem;
  color: rgba(245,240,232,0.18);
  letter-spacing: 0.05em;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   MORSE TICKER
═══════════════════════════════════════════ */
.morse-ticker {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  height: 28px;
  background: rgba(0,0,0,0.88);
  border-bottom: 1px solid rgba(212,175,55,0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
  overflow: hidden;
}
.morse-label {
  font-family: var(--font-serif);
  font-size: 0.48rem;
  letter-spacing: 0.35em;
  color: var(--red);
  white-space: nowrap;
  flex-shrink: 0;
  animation: flickerText 5s infinite 2s;
}
.morse-scroll-wrap { flex: 1; overflow: hidden; }
.morse-code {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: rgba(212,175,55,0.38);
  letter-spacing: 0.12em;
  white-space: nowrap;
  display: inline-block;
  animation: morseScroll 40s linear infinite;
}
@keyframes morseScroll {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-100%); }
}

/* ═══════════════════════════════════════════
   SECTION 1: HERO
═══════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 28px; /* morse ticker height */
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(18,17,24,0) 0%, #0A0A0A 70%),
              linear-gradient(180deg, #0B1120 0%, #0A0A0A 100%);
}

.smoke-canvas {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 30% 60%, rgba(212,175,55,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 50% 35% at 70% 30%, rgba(139,0,0,0.07) 0%, transparent 70%);
  animation: smokeDrift 14s ease-in-out infinite alternate;
}
@keyframes smokeDrift {
  0%   { opacity:0.5; transform:scale(1) translateY(0); }
  100% { opacity:0.9; transform:scale(1.05) translateY(-14px); }
}

/* Cipher BG */
.cipher-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(212,175,55,0.045);
  letter-spacing: 0.15em;
  line-height: 1.9;
  overflow: hidden;
  padding: 2rem;
  user-select: none;
  word-break: break-all;
}

.hero-particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Crest */
.crest-wrap {
  position: relative;
  width: 110px; height: 110px;
  margin-bottom: 2.5rem;
  animation: floatCrest 6s ease-in-out infinite;
}
@keyframes floatCrest {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-9px); }
}
.crest-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.15);
  pointer-events: none;
}
.crest-ring.ring-a { inset: -18px; animation: ringPulse 3s ease-in-out infinite; }
.crest-ring.ring-b { inset: -36px; animation: ringPulse 3s ease-in-out 1s infinite; }
.crest-img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(212,175,55,0.55));
  position: relative; z-index: 1;
}
.crest-glow {
  position: absolute; inset: -24px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.18) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,100% { opacity:0.5; transform:scale(1); }
  50%     { opacity:1;   transform:scale(1.15); }
}

/* Hero typography */
.hero-eyebrow {
  font-family: var(--font-serif);
  font-size: 0.58rem;
  letter-spacing: 0.55em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.3s forwards;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--white);
  text-shadow: 0 0 60px rgba(212,175,55,0.15);
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.55s forwards;
}
/* Glitch on title — triggered by JS adding .glitching class */
.hero-title.glitching {
  animation: fadeUp 0s forwards, titleGlitch 0.4s steps(1) forwards !important;
}
@keyframes titleGlitch {
  0%  { text-shadow: -4px 0 rgba(139,0,0,0.9), 4px 0 rgba(212,175,55,0.7); transform: skewX(-2deg); }
  20% { text-shadow:  4px 0 rgba(139,0,0,0.9),-4px 0 rgba(212,175,55,0.7); transform: skewX(2deg) translateX(3px); }
  40% { text-shadow: -2px 0 rgba(212,175,55,0.8), 2px 0 rgba(139,0,0,0.6); transform: skewX(-1deg) translateX(-2px); }
  60% { text-shadow:  3px 0 rgba(139,0,0,0.9),-3px 0 rgba(212,175,55,0.5); transform: skewX(1deg); }
  80% { text-shadow: -1px 0 rgba(212,175,55,0.4), 1px 0 rgba(139,0,0,0.3); transform: none; }
  100%{ text-shadow: 0 0 60px rgba(212,175,55,0.15); transform: none; }
}

/* Typewriter sub */
.hero-sub-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeIn 0.5s var(--ease) 1.1s forwards;
}
.hero-sub {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  color: rgba(245,240,232,0.6);
  letter-spacing: 0.12em;
}
.typewriter-cursor {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--gold);
  opacity: 1;
  animation: cursorBlink 0.9s step-end infinite;
}
@keyframes cursorBlink {
  0%,100% { opacity:1; }
  50%     { opacity:0; }
}

/* Hero motto */
.hero-motto {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 0.68rem;
  letter-spacing: 0.45em;
  color: rgba(212,175,55,0.3);
  text-transform: uppercase;
  margin-bottom: 2.2rem;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 1.5s forwards;
}

/* CTA Button */
.cta-btn {
  position: relative;
  padding: 0.9rem 2.8rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.4s var(--ease);
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.7s forwards;
}
.cta-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.cta-btn:hover::before { transform: scaleX(1); }
.cta-btn:hover { color: var(--black); }
.cta-btn .btn-text { position: relative; z-index: 1; }
.btn-glow {
  position: absolute; inset: -3px;
  border: 1px solid rgba(212,175,55,0.2);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.cta-btn:hover .btn-glow { opacity:1; box-shadow:0 0 24px rgba(212,175,55,0.4); }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 2.2s forwards;
}
.scroll-hint span { font-family: var(--font-serif); font-size: 0.48rem; letter-spacing: 0.45em; color: rgba(212,175,55,0.4); }
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(212,175,55,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity:0.4; transform:scaleY(0.7) translateY(0); }
  50%     { opacity:1;   transform:scaleY(1) translateY(5px); }
}

/* ═══════════════════════════════════════════
   SECTION 2: THE CREED
═══════════════════════════════════════════ */
.creed {
  padding: 8rem 0;
  background: var(--black);
  position: relative;
  overflow: hidden;
}
.creed::before {
  content:''; position:absolute; top:0; left:0; right:0;
  height:1px; background:linear-gradient(90deg,transparent,var(--gold-dim),transparent);
}

.creed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Redacted text */
.redacted {
  background: rgba(20,20,20,0.95);
  color: rgba(20,20,20,0.95);
  border-radius: 2px;
  padding: 0 3px;
  cursor: not-allowed;
  user-select: none;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
  font-size: 0.85em;
}
.redacted:hover {
  background: rgba(139,0,0,0.25);
  color: rgba(245,240,232,0.35);
  box-shadow: 0 0 8px rgba(139,0,0,0.4);
}

.redacted-doc {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(245,240,232,0.4);
  border-left: 2px solid rgba(139,0,0,0.4);
  padding-left: 1rem;
  line-height: 1.9;
}

.creed-divider {
  display: flex; align-items: center; gap: 1rem; margin-top: 2rem;
}
.divider-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}
.divider-line:last-child { background: linear-gradient(270deg, var(--gold-dim), transparent); }
.divider-icon { color: var(--gold); font-size: 0.8rem; opacity: 0.5; }

.latin-motto {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  color: rgba(212,175,55,0.35);
  text-transform: uppercase;
  margin-top: 1.2rem;
}

/* Image frame */
.image-frame {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.creed-img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.12) brightness(0.82) saturate(0.8);
  transition: transform 0.8s var(--ease), filter 0.5s;
}
.image-frame:hover .creed-img { transform: scale(1.04); filter: contrast(1.18) brightness(0.88); }
.image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,17,32,0.25) 0%, rgba(10,10,10,0.55) 100%);
}

/* CLASSIFIED stamp — appears on hover */
.classified-stamp {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-14deg);
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.28em;
  color: rgba(139,0,0,0.7);
  border: 3px solid rgba(139,0,0,0.55);
  padding: 0.4rem 1rem;
  pointer-events: none;
  z-index: 10;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.4s;
  text-shadow: 0 0 12px rgba(139,0,0,0.5);
  white-space: nowrap;
}
.image-frame:hover .classified-stamp { opacity: 1; }

.file-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.5rem 0.8rem;
  background: rgba(0,0,0,0.75);
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.18em;
  color: rgba(212,175,55,0.45);
  text-transform: uppercase;
  z-index: 5;
}

/* Corner brackets */
.corner {
  position: absolute;
  width: 22px; height: 22px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.55;
  transition: opacity 0.3s;
}
.image-frame:hover .corner { opacity: 0.9; }
.corner-tl { top:12px;    left:12px;  border-width:1px 0 0 1px; }
.corner-tr { top:12px;    right:12px; border-width:1px 1px 0 0; }
.corner-bl { bottom:12px; left:12px;  border-width:0 0 1px 1px; }
.corner-br { bottom:12px; right:12px; border-width:0 1px 1px 0; }

/* ═══════════════════════════════════════════
   SECTION 3: THE RELIC
═══════════════════════════════════════════ */
.relic {
  position: relative;
  padding: 8rem 2rem;
  background: linear-gradient(180deg, #0A0A0A 0%, #1C0404 35%, #0E0000 65%, #0A0A0A 100%);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}
.relic::before {
  content:''; position:absolute; inset:0;
  background:
    radial-gradient(ellipse 70% 50% at 30% 50%, rgba(139,0,0,0.14) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 70% 50%, rgba(212,175,55,0.05) 0%, transparent 70%);
  pointer-events:none;
}
.relic-bg-texture {
  position:absolute; inset:0; opacity:0.025;
  background-image: repeating-linear-gradient(45deg, #fff 0px, #fff 1px, transparent 1px, transparent 44px);
}

/* DO NOT DISTRIBUTE watermark */
.do-not-share {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) rotate(-28deg);
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.45em;
  color: rgba(139,0,0,0.055);
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}

.burger-showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.burger-img {
  width: 100%; max-width: 480px;
  border-radius: 4px;
  filter: contrast(1.18) brightness(0.88) saturate(1.1);
  position: relative; z-index: 2;
  transition: transform 0.8s var(--ease), filter 0.5s;
}
.burger-img:hover { transform: scale(1.03) translateY(-7px); filter: contrast(1.24) brightness(0.95); }
.burger-glow-ring {
  position: absolute; inset: -30px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,0,0,0.28) 0%, rgba(212,175,55,0.07) 40%, transparent 70%);
  animation: burgerGlow 4s ease-in-out infinite; z-index:1;
}
@keyframes burgerGlow {
  0%,100% { opacity:0.7; transform:scale(0.95); }
  50%     { opacity:1;   transform:scale(1.06); }
}

/* Coordinates */
.relic-coordinates {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(212,175,55,0.5);
  letter-spacing: 0.1em;
}
.coord-label { color: rgba(139,0,0,0.7); font-size: 0.6rem; letter-spacing: 0.2em; }
.coord-blink { color: var(--gold); animation: cursorBlink 1s step-end infinite; }

/* ═══════════════════════════════════════════
   SECTION 4: THE RITUAL
═══════════════════════════════════════════ */
.ritual {
  padding: 8rem 0;
  background: var(--black);
  position: relative;
  overflow: hidden;
}
.ritual::before {
  content:''; position:absolute; top:0; left:0; right:0;
  height:1px; background:linear-gradient(90deg,transparent,var(--gold-dim),transparent);
}
.ritual::after {
  content:''; position:absolute; bottom:0; left:0; right:0;
  height:1px; background:linear-gradient(90deg,transparent,var(--gold-dim),transparent);
}

.ritual-header { text-align: center; margin-bottom: 4rem; }
.ritual-header .section-label { justify-content: center; }
.ritual-header .section-label::before { display:none; }

/* COUNTDOWN */
.countdown-widget {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2.5rem;
  padding: 1.2rem 2.8rem;
  border: 1px solid rgba(212,175,55,0.12);
  position: relative;
  background: rgba(212,175,55,0.02);
}
.countdown-widget::before,
.countdown-widget::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border-color: var(--gold-dim);
  border-style: solid;
  opacity: 0.6;
}
.countdown-widget::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.countdown-widget::after  { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.countdown-label {
  font-family: var(--font-serif);
  font-size: 0.5rem;
  letter-spacing: 0.5em;
  color: rgba(139,0,0,0.8);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.cd-dot {
  font-size: 0.45rem;
  color: var(--red);
  animation: cursorBlink 1s step-end infinite;
}
.countdown-digits {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.digit-group {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
}
.digit-val {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.04em;
  min-width: 2.2ch;
  text-align: center;
  text-shadow: 0 0 18px rgba(212,175,55,0.45);
}
.digit-label {
  font-family: var(--font-serif);
  font-size: 0.42rem;
  letter-spacing: 0.4em;
  color: rgba(245,240,232,0.25);
  text-transform: uppercase;
}
.digit-sep {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  color: rgba(212,175,55,0.3);
  padding-top: 0.1rem;
  animation: cursorBlink 1s step-end infinite;
}

/* Timeline */
.timeline { position:relative; max-width:700px; margin:0 auto; }
.timeline-line {
  position:absolute; left:50%; top:0; bottom:0; width:1px;
  transform:translateX(-50%);
  background:linear-gradient(to bottom, transparent, var(--gold-dim) 8%, var(--gold-dim) 92%, transparent);
  opacity:0.4;
}
.timeline-step {
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:start;
  gap:2rem;
  margin-bottom:4rem;
  position:relative;
}
.timeline-step:last-child { margin-bottom:0; }

/* Alternating layout */
.timeline-step:nth-child(odd)  .step-marker { order:2; }
.timeline-step:nth-child(odd)  .step-content { order:1; text-align:right; }
.timeline-step:nth-child(odd)::after  { content:''; order:3; }
.timeline-step:nth-child(even) .step-marker { order:2; }
.timeline-step:nth-child(even) .step-content { order:3; text-align:left; }
.timeline-step:nth-child(even)::before { content:''; order:1; }

.step-marker { display:flex; align-items:flex-start; justify-content:center; padding-top:0.2rem; }
.step-dot {
  width:52px; height:52px;
  border:1px solid var(--gold-dim);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:var(--black);
  position:relative; flex-shrink:0;
  transition:border-color 0.4s, box-shadow 0.4s, background 0.4s;
}
.step-dot::before {
  content:''; position:absolute; inset:-5px;
  border-radius:50%;
  border:1px solid rgba(212,175,55,0.1);
}
.step-dot:hover, .timeline-step:hover .step-dot {
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(212,175,55,0.3);
  background: rgba(212,175,55,0.06);
}
.step-icon { font-size:1.3rem; }

.step-time {
  font-family: var(--font-serif);
  font-size: 0.52rem; letter-spacing:0.38em;
  color: var(--gold); text-transform:uppercase; margin-bottom:0.4rem;
}
.step-title {
  font-family: var(--font-serif);
  font-size: 1.1rem; font-weight:600;
  letter-spacing:0.14em; text-transform:uppercase;
  color: var(--white); margin-bottom:0.6rem;
}
.step-body { font-size:0.88rem; color:rgba(245,240,232,0.55); line-height:1.75; max-width:28ch; }
.timeline-step:nth-child(odd) .step-body { margin-left:auto; }

/* ═══════════════════════════════════════════
   SECTION 5: THE SUMMONS
═══════════════════════════════════════════ */
.summons {
  position:relative; padding:8rem 2rem 4rem;
  background:var(--black); overflow:hidden; text-align:center;
}
.summons::before {
  content:''; position:absolute; top:0; left:0; right:0;
  height:1px; background:linear-gradient(90deg,transparent,var(--gold-dim),transparent);
}
.summons::after {
  content:''; position:absolute; inset:0;
  background:radial-gradient(ellipse 70% 55% at 50% 20%, rgba(212,175,55,0.055) 0%, transparent 70%);
  pointer-events:none;
}
.summons-particles { position:absolute; inset:0; pointer-events:none; z-index:0; }
.summons-content { position:relative; z-index:1; max-width:640px; margin:0 auto; }
.summons-crest { font-size:1.5rem; color:var(--gold); opacity:0.45; margin-bottom:1.5rem; animation:glowPulse 4s ease-in-out infinite; }
.summons-title { font-size:clamp(2rem,5vw,3.5rem); margin-bottom:1.5rem; }
.summons-body { max-width:50ch; margin:0 auto 2.5rem; color:rgba(245,240,232,0.6); }

/* Form */
.waitlist-form-wrap { width:100%; }
.input-group {
  display:flex; border:1px solid rgba(212,175,55,0.3);
  max-width:540px; margin:0 auto;
  transition:border-color 0.3s;
}
.input-group:focus-within { border-color:var(--gold); box-shadow:0 0 20px rgba(212,175,55,0.08); }
.email-input {
  flex:1; padding:1rem 1.4rem;
  background:rgba(255,255,255,0.025);
  border:none; outline:none;
  color:var(--white); font-family:var(--font-body); font-size:0.85rem; font-weight:300;
  min-width:0;
}
.email-input::placeholder { color:rgba(245,240,232,0.25); }
.email-input:-webkit-autofill { -webkit-box-shadow:0 0 0 30px #0A0A0A inset; -webkit-text-fill-color:var(--white); }

.seal-btn {
  position:relative; padding:1rem 1.8rem;
  background:transparent; border:none;
  border-left:1px solid rgba(212,175,55,0.3);
  color:var(--gold);
  font-family:var(--font-serif); font-size:0.62rem;
  letter-spacing:0.3em; text-transform:uppercase;
  cursor:pointer; white-space:nowrap; overflow:hidden;
  transition:color 0.4s var(--ease);
}
.seal-btn::before {
  content:''; position:absolute; inset:0;
  background:var(--gold);
  transform:scaleX(0); transform-origin:left;
  transition:transform 0.45s var(--ease);
}
.seal-btn:hover::before { transform:scaleX(1); }
.seal-btn:hover { color:var(--black); box-shadow:0 0 30px rgba(212,175,55,0.45),0 0 65px rgba(212,175,55,0.15); }
.seal-btn .btn-text { position:relative; z-index:1; }

/* Success */
.success-state { padding:2rem; }
.wax-seal-icon {
  font-size:3rem; color:var(--gold); margin-bottom:1rem;
  animation:sealReveal 0.7s var(--ease) forwards;
}
@keyframes sealReveal {
  from { transform:scale(0) rotate(-30deg); opacity:0; }
  to   { transform:scale(1) rotate(0);      opacity:1; }
}
.success-text {
  font-family:var(--font-italic); font-style:italic;
  font-size:1.2rem; color:var(--gold);
  letter-spacing:0.06em;
  animation:fadeUp 0.8s var(--ease) 0.3s both;
}

/* Footer */
.site-footer {
  position:relative; z-index:1;
  margin-top:5rem; padding:2rem;
  border-top:1px solid rgba(212,175,55,0.07);
  text-align:center;
}
.footer-text {
  font-size:0.68rem; letter-spacing:0.12em;
  color:rgba(245,240,232,0.2); text-transform:uppercase;
}
.footer-link { color:rgba(212,175,55,0.45); text-decoration:none; transition:color 0.3s; }
.footer-link:hover { color:var(--gold); }

/* ═══════════════════════════════════════════
   KEYFRAMES
═══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(28px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeIn {
  from { opacity:0; }
  to   { opacity:1; }
}

/* Scroll Reveal */
.reveal-up, .reveal-left, .reveal-right {
  opacity:0; will-change:opacity,transform;
  transition:opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal-up    { transform:translateY(40px); }
.reveal-left  { transform:translateX(-40px); }
.reveal-right { transform:translateX(40px); }
.revealed { opacity:1 !important; transform:none !important; }

#step1 { transition-delay:0.1s; }
#step2 { transition-delay:0.25s; }
#step3 { transition-delay:0.4s; }
#step4 { transition-delay:0.55s; }

/* Particles */
.particle {
  position:absolute; border-radius:50%; background:var(--gold); opacity:0;
  pointer-events:none;
  animation:particleFade var(--dur,6s) var(--delay,0s) ease-in-out infinite;
}
@keyframes particleFade {
  0%  { opacity:0; transform:translateY(0) scale(0.5); }
  30% { opacity:var(--max-opacity,0.3); }
  70% { opacity:var(--max-opacity,0.3); }
  100%{ opacity:0; transform:translateY(calc(var(--dir,-1)*60px)) scale(1.2); }
}

/* Cursor glow trail */
#cursorGlow {
  position:fixed; border-radius:50%; pointer-events:none; z-index:9999;
  width:260px; height:260px;
  background:radial-gradient(circle, rgba(212,175,55,0.05) 0%, transparent 70%);
  transform:translate(-50%,-50%);
  transition:left 0.15s ease, top 0.15s ease;
  will-change:left,top;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .container { padding:0 1.2rem; }
  .crest-wrap { width:80px; height:80px; margin-bottom:1.8rem; }
  .scroll-hint { display:none; }
  .creed { padding:5rem 0; }
  .creed-grid { grid-template-columns:1fr; gap:3rem; }
  .creed-image { order:-1; }
  .image-frame { aspect-ratio:16/10; }
  .body-text { max-width:100%; }
  .relic { grid-template-columns:1fr; padding:5rem 1.2rem; gap:3rem; }
  .relic-media { order:-1; }
  .ritual { padding:5rem 0; }
  .timeline-line { display:none; }
  .timeline-step {
    grid-template-columns:auto 1fr;
    gap:1rem; margin-bottom:2.5rem;
  }
  .timeline-step .step-marker { order:1 !important; }
  .timeline-step .step-content { order:2 !important; text-align:left !important; }
  .timeline-step::before,
  .timeline-step::after { display:none !important; }
  .step-body { max-width:100%; margin-left:0 !important; }
  .summons { padding:5rem 1.2rem 3rem; }
  .input-group { flex-direction:column; border:none; gap:0.8rem; }
  .email-input { border:1px solid rgba(212,175,55,0.3); padding:1rem; }
  .seal-btn { border:1px solid var(--gold); padding:1rem; }
  .input-group:focus-within { border:none; box-shadow:none; }
  .countdown-widget { padding:1rem 1.5rem; }
  .morse-ticker { height:24px; }
}

@media (max-width: 480px) {
  .section-title { font-size:clamp(1.5rem,7vw,2rem); }
  .cta-btn { padding:0.8rem 1.8rem; font-size:0.62rem; }
  .gate-title { font-size:clamp(1.8rem,9vw,3rem); }
}

/* Scrollbar */
::-webkit-scrollbar { width:3px; }
::-webkit-scrollbar-track { background:var(--black); }
::-webkit-scrollbar-thumb { background:var(--gold-dim); border-radius:2px; }
::-webkit-scrollbar-thumb:hover { background:var(--gold); }
::selection { background:rgba(212,175,55,0.22); color:var(--white); }
