/* ============================================================
   THE WIZARDING STAGE — MASTER STYLESHEET
   Dark Academia × Gothic × Cinematic Depth × Glassmorphism
   ============================================================ */

/* ---- TOKENS ---- */
:root {
  --ink:         #0a0608;
  --void:        #06040a;
  --parchment:   #e8dcc8;
  --vellum:      #f0e8d4;
  --gold:        #c9a84c;
  --gold-pale:   #e8c97e;
  --gold-deep:   #8a6420;
  --crimson:     #7a1c2e;
  --emerald:     #0d4a2f;
  --sapphire:    #0f2a4a;
  --aurora-1:    #3d1f6e;
  --aurora-2:    #1a3a5c;
  --aurora-3:    #0d4a3a;
  --aurora-4:    #4a1a40;
  --mist:        rgba(200,185,230,0.04);
  --glass-bg:    rgba(255,255,255,0.035);
  --glass-border:rgba(201,168,76,0.18);
  --glass-glow:  rgba(201,168,76,0.08);

  --ff-display: 'Palatino Linotype', 'Book Antiqua', Palatino, 'Times New Roman', serif;
  --ff-body:    Georgia, 'Times New Roman', serif;
  --ff-rune:    'Palatino Linotype', serif;

  --ease-magic: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-cin:   cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--void);
  color: var(--parchment);
  font-family: var(--ff-body);
  overflow-x: hidden;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(201,168,76,0.3);
  color: var(--vellum);
}

/* ---- CANVAS (cosmos) ---- */
#cosmos-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---- NOISE OVERLAY ---- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
}

/* ---- NAV ---- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 2.5rem;
  transition: background 0.5s var(--ease-cin), backdrop-filter 0.5s;
}

.site-nav.scrolled {
  background: rgba(6,4,10,0.75);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(201,168,76,0.12);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-crest {
  font-size: 1.6rem;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(201,168,76,0.6);
  letter-spacing: 0.05em;
}

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

.nav-links a {
  color: rgba(232,220,200,0.7);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--ff-body);
  transition: color 0.3s, text-shadow 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-magic);
}

.nav-links a:hover { color: var(--gold-pale); text-shadow: 0 0 12px rgba(201,168,76,0.5); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ==============================================================
   HERO
   ============================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
}

/* Fog layers */
.hero-fog {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.fog-layer-1 {
  background: radial-gradient(ellipse 120% 60% at 50% 80%, rgba(30,10,50,0.8) 0%, transparent 70%);
  animation: fogDrift1 18s ease-in-out infinite alternate;
}
.fog-layer-2 {
  background: radial-gradient(ellipse 80% 40% at 20% 60%, rgba(13,74,47,0.15) 0%, transparent 60%);
  animation: fogDrift2 22s ease-in-out infinite alternate;
}
.fog-layer-3 {
  background: radial-gradient(ellipse 60% 30% at 80% 40%, rgba(61,31,110,0.2) 0%, transparent 60%);
  animation: fogDrift3 26s ease-in-out infinite alternate;
}

@keyframes fogDrift1 { 0%{transform:translateX(-3%) scaleX(1)} 100%{transform:translateX(3%) scaleX(1.05)} }
@keyframes fogDrift2 { 0%{transform:translateY(-2%) scaleY(1)} 100%{transform:translateY(4%) scaleY(1.1)} }
@keyframes fogDrift3 { 0%{transform:translateX(2%) scaleX(1)} 100%{transform:translateX(-4%) scaleX(1.08)} }

/* Aurora */
.aurora-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  mix-blend-mode: screen;
}

.aurora-1 {
  width: 80vw; height: 60vh;
  top: -15%; left: -20%;
  background: radial-gradient(ellipse, var(--aurora-1) 0%, transparent 70%);
  animation: auroraMove1 20s ease-in-out infinite alternate;
}
.aurora-2 {
  width: 70vw; height: 50vh;
  top: -10%; right: -15%;
  background: radial-gradient(ellipse, var(--aurora-2) 0%, transparent 70%);
  animation: auroraMove2 25s ease-in-out infinite alternate;
}
.aurora-3 {
  width: 60vw; height: 40vh;
  bottom: 10%; left: 10%;
  background: radial-gradient(ellipse, var(--aurora-3) 0%, transparent 70%);
  animation: auroraMove3 30s ease-in-out infinite alternate;
}

@keyframes auroraMove1 {
  0%   { transform: translate(0,0) scale(1); opacity:0.2; }
  50%  { transform: translate(5%,3%) scale(1.1); opacity:0.3; }
  100% { transform: translate(-3%,6%) scale(0.95); opacity:0.15; }
}
@keyframes auroraMove2 {
  0%   { transform: translate(0,0) scale(1); opacity:0.18; }
  100% { transform: translate(-5%,-4%) scale(1.15); opacity:0.28; }
}
@keyframes auroraMove3 {
  0%   { transform: translate(0,0) scale(1); opacity:0.2; }
  100% { transform: translate(4%,-3%) scale(1.08); opacity:0.3; }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 8rem 2rem 4rem;
  max-width: 900px;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
  margin-bottom: 2.5rem;
  font-family: var(--ff-body);
}

/* Title image / fallback */
.title-image-placeholder {
  margin-bottom: 2rem;
}

.title-image {
  max-width: 680px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 40px rgba(201,168,76,0.3));
}

.title-text-fallback {
  padding: 1rem 0;
}

.title-the {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-family: var(--ff-display);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
  margin-bottom: 0.3rem;
}

.title-main {
  font-family: var(--ff-display);
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.01em;
  background: linear-gradient(175deg, #f0e8d4 0%, var(--gold-pale) 40%, var(--gold) 70%, #8a6420 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 60px rgba(201,168,76,0.4));
  margin-bottom: 1rem;
  position: relative;
}

.title-main::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(175deg, #f0e8d4 0%, var(--gold-pale) 40%, var(--gold) 70%, #8a6420 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: blur(20px) opacity(0.4);
  z-index: -1;
}

.title-sub {
  font-family: var(--ff-display);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  letter-spacing: 0.15em;
  color: rgba(232,220,200,0.7);
  margin-top: 0.8rem;
}

/* Divider */
.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin: 1.5rem 0 2rem;
}

.divider-rune {
  color: var(--gold);
  font-size: 0.9rem;
  opacity: 0.6;
  text-shadow: 0 0 8px rgba(201,168,76,0.8);
}

.divider-line {
  display: block;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
}

/* Venue */
.hero-venue { text-align: center; }

.venue-label {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 0.4rem;
}

.venue-name {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  color: var(--vellum);
  letter-spacing: 0.08em;
  text-shadow: 0 0 30px rgba(201,168,76,0.3);
  margin-bottom: 0.4rem;
}

.venue-date {
  font-size: 0.9rem;
  color: rgba(232,220,200,0.6);
  letter-spacing: 0.15em;
}

/* Scroll cue */
.hero-scroll-cue {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.scroll-text {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.5);
}

.scroll-arrow {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.scroll-arrow span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--gold);
  opacity: 0;
  transform: rotate(0deg);
  animation: scrollArrow 2s ease-in-out infinite;
}

.scroll-arrow span:nth-child(1) { transform: translateX(-3px) rotate(30deg); animation-delay:0s; }
.scroll-arrow span:nth-child(2) { width: 20px; animation-delay:0.15s; transform:none; }
.scroll-arrow span:nth-child(3) { transform: translateX(-3px) rotate(-30deg); animation-delay:0.3s; }

@keyframes scrollArrow {
  0%,100% { opacity:0; transform-origin: center; }
  50%      { opacity:0.7; }
}

/* ==============================================================
   PROLOGUE
   ============================================================== */
.prologue {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem;
  overflow: hidden;
}

.prologue::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 0%, rgba(10,6,8,0.6) 15%, rgba(10,6,8,0.3) 50%, rgba(10,6,8,0.6) 85%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}

.prologue-fog {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 50% at 50% 50%, rgba(61,31,110,0.12) 0%, transparent 70%);
  animation: fogDrift1 20s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

.prologue-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  width: 100%;
  text-align: center;
}

.prologue-chapter {
  font-size: 0.72rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.55;
  margin-bottom: 1.5rem;
  font-family: var(--ff-body);
}

.prologue-heading {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--vellum);
  text-shadow: 0 0 60px rgba(201,168,76,0.25), 0 2px 4px rgba(0,0,0,0.8);
  margin-bottom: 2.5rem;
  opacity: 0;
  filter: blur(12px);
  transition: opacity 1.2s var(--ease-magic), filter 1.2s var(--ease-magic);
}

.prologue-heading.revealed {
  opacity: 1;
  filter: blur(0);
}

.prologue-ornament {
  color: var(--gold);
  width: 200px;
  margin: 0 auto 2.5rem;
  opacity: 0.6;
}

.prologue-text {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(232,220,200,0.82);
  line-height: 2;
  margin-bottom: 1.8rem;
  text-align: left;
  padding: 0 1rem;
  letter-spacing: 0.04em;
}

.prologue-quote {
  margin-top: 3rem;
  padding: 2rem 2.5rem;
  border-left: 2px solid rgba(201,168,76,0.3);
  text-align: left;
  background: rgba(201,168,76,0.04);
  border-radius: 0 4px 4px 0;
}

.prologue-quote blockquote {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(232,220,200,0.75);
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.prologue-quote cite {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0.7;
  font-style: normal;
  text-transform: uppercase;
}

/* ==============================================================
   CHARACTERS
   ============================================================== */
.characters {
  position: relative;
  z-index: 2;
  padding: 8rem 2rem 6rem;
}

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

.section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 1rem;
}

.section-heading {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--vellum);
  text-shadow: 0 0 40px rgba(201,168,76,0.2);
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
}

.section-subheading {
  font-size: 0.85rem;
  color: rgba(232,220,200,0.5);
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}

.section-ornament {
  color: var(--gold);
  width: 300px;
  margin: 0 auto;
  opacity: 0.5;
}

/* Characters table — 2-col grid */
.characters-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Character card */
.char-card {
  perspective: 1200px;
  animation: floatCard 6s ease-in-out infinite;
}

.char-card:nth-child(odd)  { animation-delay: 0s; }
.char-card:nth-child(even) { animation-delay: 3s; }

@keyframes floatCard {
  0%,100% { transform: translateY(0px); }
  50%     { transform: translateY(-6px); }
}

.char-card-inner {
  position: relative;
  padding: 1.8rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.5s var(--ease-magic), box-shadow 0.5s var(--ease-magic), border-color 0.4s;
  transform-style: preserve-3d;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

/* Glow blob */
.char-glow {
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  top: -40px; left: -40px;
  filter: blur(40px);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 0;
}

[data-house="gryffindor"] .char-glow { background: radial-gradient(circle, #7a1c2e 0%, transparent 70%); }
[data-house="slytherin"]  .char-glow { background: radial-gradient(circle, #0d4a2f 0%, transparent 70%); }
[data-house="ravenclaw"]  .char-glow { background: radial-gradient(circle, #0f2a4a 0%, transparent 70%); }
[data-house="hufflepuff"] .char-glow { background: radial-gradient(circle, #6a5010 0%, transparent 70%); }
[data-house="dark"]       .char-glow { background: radial-gradient(circle, #2a002a 0%, transparent 70%); }
[data-house="neutral"]    .char-glow { background: radial-gradient(circle, #2a2a1a 0%, transparent 70%); }

/* Hover */
.char-card:hover .char-glow { opacity: 0.9; }
.char-card:hover .char-card-inner {
  transform: translateZ(18px) translateY(-4px);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.7),
    0 0 40px rgba(201,168,76,0.15),
    inset 0 1px 0 rgba(255,255,255,0.08);
  border-color: rgba(201,168,76,0.4);
}

.char-rune {
  position: relative;
  z-index: 1;
  font-family: var(--ff-rune);
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
  min-width: 2rem;
  text-shadow: 0 0 12px rgba(201,168,76,0.5);
  transition: opacity 0.4s;
}

.char-card:hover .char-rune { opacity: 0.9; }

.char-info {
  position: relative;
  z-index: 1;
  flex: 1;
}

.char-name {
  font-family: var(--ff-display);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--vellum);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  text-shadow: 0 0 20px rgba(201,168,76,0.2);
}

.char-desc {
  font-size: clamp(0.75rem, 1.1vw, 0.88rem);
  color: rgba(232,220,200,0.62);
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.char-house-badge {
  position: absolute;
  bottom: 1rem;
  right: 1.2rem;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.35;
  font-family: var(--ff-body);
  transition: opacity 0.4s;
}

.char-card:hover .char-house-badge { opacity: 0.75; }

/* ==============================================================
   ENTRY
   ============================================================== */
.entry {
  position: relative;
  z-index: 2;
  padding: 8rem 2rem 8rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.entry::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(30,15,5,0.4) 0%, transparent 70%);
  pointer-events: none;
}

.entry-fog {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 40% at 50% 0%, rgba(100,60,0,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 120% 40% at 50% 100%, rgba(100,60,0,0.06) 0%, transparent 60%);
  animation: fogDrift2 24s ease-in-out infinite alternate;
  pointer-events: none;
}

.entry-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 820px;
}

/* Scroll ornament */
.scroll-top-ornament,
.scroll-bottom-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0;
}

.scroll-bottom-ornament { margin-top: 0; }

.scroll-roller {
  width: 60px; height: 14px;
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(201,168,76,0.08) 0%, rgba(201,168,76,0.04) 100%);
  position: relative;
}

.scroll-roller::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 30px; height: 1px;
  background: rgba(201,168,76,0.4);
}

.scroll-seal {
  color: var(--gold);
  font-size: 1rem;
  opacity: 0.5;
  text-shadow: 0 0 8px rgba(201,168,76,0.6);
}

/* Document */
.entry-document {
  background: linear-gradient(160deg, rgba(30,18,5,0.92) 0%, rgba(20,12,3,0.95) 100%);
  border: 1px solid rgba(201,168,76,0.2);
  border-top: 2px solid rgba(201,168,76,0.35);
  border-bottom: 2px solid rgba(201,168,76,0.35);
  padding: 4rem 3.5rem;
  position: relative;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 40px 120px rgba(0,0,0,0.8),
    inset 0 0 80px rgba(201,168,76,0.03),
    inset 0 1px 0 rgba(201,168,76,0.1);
}

/* Parchment texture via pseudo */
.entry-document::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(201,168,76,0.02) 29px),
    repeating-linear-gradient(90deg, transparent, transparent 28px, rgba(201,168,76,0.01) 29px);
  border-radius: inherit;
  pointer-events: none;
}

.entry-document::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201,168,76,0.08);
  pointer-events: none;
}

.doc-header { text-align: center; margin-bottom: 2.5rem; }

.doc-stamp {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 0.3rem 1rem;
  margin-bottom: 1.2rem;
  opacity: 0.7;
  transform: rotate(-1deg);
}

.doc-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.5);
  margin-bottom: 0.6rem;
}

.doc-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  color: var(--vellum);
  letter-spacing: 0.08em;
  text-shadow: 0 0 40px rgba(201,168,76,0.25);
  margin-bottom: 0.4rem;
}

.doc-subtitle {
  font-size: 0.8rem;
  color: rgba(232,220,200,0.45);
  letter-spacing: 0.22em;
}

.doc-divider {
  color: var(--gold);
  width: 100%;
  margin: 2rem 0;
  opacity: 0.6;
}

/* Critical notice */
.critical-notice {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.5rem 2rem;
  background: rgba(122,28,46,0.12);
  border: 1px solid rgba(122,28,46,0.3);
  border-left: 3px solid rgba(122,28,46,0.6);
  border-radius: 2px;
  margin-bottom: 2rem;
}

.notice-icon {
  font-size: 1.4rem;
  color: #c0394d;
  opacity: 0.8;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.notice-label {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #c0394d;
  opacity: 0.7;
  margin-bottom: 0.4rem;
}

.notice-main {
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--vellum);
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.notice-detail {
  font-size: 0.82rem;
  color: rgba(232,220,200,0.55);
  line-height: 1.6;
}

/* Ticket highlight */
.ticket-highlight {
  margin: 2rem 0;
}

.ticket-glow-border {
  position: relative;
  padding: 2px;
  background: linear-gradient(135deg, rgba(201,168,76,0.6) 0%, rgba(201,168,76,0.15) 50%, rgba(201,168,76,0.6) 100%);
  border-radius: 4px;
  animation: ticketGlow 3s ease-in-out infinite alternate;
}

@keyframes ticketGlow {
  0%   { box-shadow: 0 0 20px rgba(201,168,76,0.15), 0 0 60px rgba(201,168,76,0.05); }
  100% { box-shadow: 0 0 40px rgba(201,168,76,0.35), 0 0 100px rgba(201,168,76,0.12); }
}

.ticket-inner-content {
  background: linear-gradient(135deg, rgba(30,18,5,0.95) 0%, rgba(20,12,3,0.98) 100%);
  border-radius: 2px;
  padding: 2.5rem;
  text-align: center;
}

.ticket-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  opacity: 0.8;
}

.ticket-main-text {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--gold-pale);
  letter-spacing: 0.12em;
  text-shadow: 0 0 40px rgba(201,168,76,0.5), 0 0 80px rgba(201,168,76,0.2);
  margin-bottom: 0.6rem;
  line-height: 1;
}

.ticket-sub-text {
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  color: rgba(232,220,200,0.8);
  letter-spacing: 0.06em;
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

.ticket-note {
  font-size: 0.75rem;
  color: rgba(232,220,200,0.42);
  letter-spacing: 0.12em;
}

/* Detail rows */
.doc-details {
  margin: 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.detail-row {
  display: grid;
  grid-template-columns: 1.5rem 7rem 1fr;
  align-items: baseline;
  gap: 0 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(201,168,76,0.08);
  font-size: clamp(0.82rem, 1.4vw, 0.95rem);
}

.detail-row:first-child {
  border-top: 1px solid rgba(201,168,76,0.08);
}

.detail-icon {
  color: var(--gold);
  opacity: 0.35;
  font-size: 0.7rem;
  align-self: center;
}

.detail-label {
  color: rgba(232,220,200,0.55);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  font-family: var(--ff-body);
}

.detail-value {
  color: var(--vellum);
  line-height: 1.6;
  letter-spacing: 0.03em;
}

.detail-sub {
  font-size: 0.78rem;
  color: rgba(232,220,200,0.45);
  letter-spacing: 0.05em;
  display: block;
  margin-top: 0.1rem;
}

.doc-footer-note {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: rgba(232,220,200,0.38);
  line-height: 2;
  letter-spacing: 0.04em;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201,168,76,0.08);
}

/* Wax seal */
.doc-wax-seal {
  position: absolute;
  bottom: -1.8rem;
  right: 3rem;
}

.seal-outer {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, #8a2020 0%, #4a0f0f 60%, #2a0808 100%);
  border: 3px solid rgba(201,168,76,0.4);
  box-shadow: 0 4px 20px rgba(0,0,0,0.6), 0 0 20px rgba(122,28,46,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
}

.seal-inner {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  color: rgba(201,168,76,0.7);
  font-style: italic;
  text-shadow: 0 0 10px rgba(201,168,76,0.4);
}

/* ==============================================================
   FOOTER
   ============================================================== */
.site-footer {
  position: relative;
  z-index: 2;
  padding: 4rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(201,168,76,0.1);
  margin-top: 2rem;
}

.footer-inner { max-width: 600px; margin: 0 auto; }

.footer-crest {
  font-size: 1.8rem;
  color: var(--gold);
  opacity: 0.3;
  margin-bottom: 1.2rem;
  display: block;
}

.footer-text {
  font-size: 0.8rem;
  color: rgba(232,220,200,0.35);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(232,220,200,0.2);
  letter-spacing: 0.1em;
}

/* ==============================================================
   SCROLL ANIMATIONS
   ============================================================== */
.reveal-fade {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease-magic), transform 0.9s var(--ease-magic);
}

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

.scroll-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-magic), transform 0.9s var(--ease-magic);
}

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

.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.15s; }
.stagger-3 { transition-delay: 0.28s; }
.stagger-4 { transition-delay: 0.42s; }

.scroll-blur-reveal {
  opacity: 0;
  filter: blur(12px);
  transition: opacity 1.3s var(--ease-magic), filter 1.3s var(--ease-magic);
}
.scroll-blur-reveal.visible {
  opacity: 1;
  filter: blur(0);
}

/* Parallax */
.parallax-element {
  will-change: transform;
}

/* ==============================================================
   REDUCED MOTION
   ============================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .char-card { animation: none; }
}

/* ==============================================================
   RESPONSIVE — TABLET
   ============================================================== */
@media (max-width: 900px) {
  .characters-table {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .char-card-inner { padding: 1.4rem 1.2rem; gap: 0.8rem; }
  .char-rune { font-size: 1.5rem; }

  .entry-document { padding: 3rem 2.5rem; }

  .detail-row {
    grid-template-columns: 1.2rem 6rem 1fr;
  }
}

/* ==============================================================
   RESPONSIVE — MOBILE
   ============================================================== */
@media (max-width: 600px) {
  .nav-links { display: none; }

  .characters-table {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .char-card { animation-play-state: paused; }
  .char-card-inner { padding: 1.2rem 1rem; }

  .entry-document { padding: 2.5rem 1.5rem; }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .detail-icon { display: none; }

  .doc-wax-seal { right: 1rem; }

  .prologue-text { padding: 0; }
  .prologue-quote { padding: 1.2rem 1.5rem; }

  .ticket-inner-content { padding: 2rem 1.2rem; }

  .scroll-top-ornament,
  .scroll-bottom-ornament { margin: 0 0 -1px; }

  .hero-content { padding: 7rem 1.2rem 3rem; }

  .site-nav { padding: 1rem 1.5rem; }
}

@media (max-width: 400px) {
  .title-main { font-size: 3rem; }
  .section-heading { font-size: 2rem; }
  .doc-title { font-size: 2rem; }
}

.title-image-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
}

.title-image {
  width: 130%;
  height: auto;
  transform: none;
}

.parallax-element {
  transform: none !important;
}


