/* ============================================================
   SKYRIM FAN SITE — MAIN STYLESHEET
   Dark Nordic palette, Cinzel + Crimson Text fonts
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  --charcoal: #1a1a1a;
  --stone: #2a2a2a;
  --stone-mid: #232323;
  --stone-light: #333333;
  --ice: #4a7fa5;
  --ice-light: #6a9fc5;
  --fire: #b83232;
  --fire-light: #d94040;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --text-primary: #e8e0d0;
  --text-secondary: #a09080;
  --text-dim: #6a6055;

  --font-title: 'Cinzel', serif;
  --font-body: 'Crimson Text', serif;

  --section-pad: clamp(60px, 8vw, 120px);
  --radius: 2px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
  background-color: var(--charcoal);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* --- Stone Texture Overlay --- */
.stone-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  opacity: 0.6;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 clamp(20px, 4vw, 60px);
  transition: background var(--transition), padding var(--transition);
}

.site-nav.scrolled {
  background: rgba(18, 16, 14, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  padding-top: 8px;
  padding-bottom: 8px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1400px;
  margin: 0 auto;
  transition: height var(--transition);
}

.site-nav.scrolled .nav-inner {
  height: 56px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  filter: invert(1) sepia(1) saturate(2) hue-rotate(5deg) brightness(0.9);
  opacity: 0.85;
  transition: opacity var(--transition);
}

.nav-logo:hover .nav-logo-img {
  opacity: 1;
}

.nav-logo-text {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: clamp(24px, 3vw, 48px);
}

.nav-links a {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-secondary);
  transition: var(--transition);
}

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(18, 16, 14, 0.98);
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  padding: 20px clamp(20px, 4vw, 60px);
  gap: 16px;
}

.nav-mobile-menu.open {
  display: flex;
}

.nav-mobile-menu a {
  font-family: var(--font-title);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color var(--transition);
}

.nav-mobile-menu a:hover {
  color: var(--gold);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-parallax-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  transform: translateY(0);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 8, 6, 0.3) 0%,
    rgba(10, 8, 6, 0.55) 40%,
    rgba(10, 8, 6, 0.85) 85%,
    rgba(10, 8, 6, 1) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 clamp(20px, 5vw, 80px);
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-wrap {
  margin-bottom: 24px;
}

.hero-logo {
  width: clamp(60px, 8vw, 100px);
  height: clamp(60px, 8vw, 100px);
  filter: invert(1) sepia(1) saturate(3) hue-rotate(5deg) brightness(0.85);
  opacity: 0;
  transform: translateY(-20px);
  animation: heroFadeIn 1s ease 0.3s forwards;
}

.hero-eyebrow {
  font-family: var(--font-title);
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  opacity: 0;
  animation: heroFadeIn 1s ease 0.6s forwards;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-shadow:
    0 0 60px rgba(201, 168, 76, 0.3),
    0 4px 30px rgba(0, 0, 0, 0.8),
    0 0 120px rgba(201, 168, 76, 0.1);
  margin-bottom: 20px;
  opacity: 0;
  animation: heroFadeIn 1.2s ease 0.8s forwards;
}

.hero-subtitle {
  font-family: var(--font-title);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0;
  animation: heroFadeIn 1s ease 1.1s forwards;
}

.hero-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 44px;
  line-height: 1.6;
  opacity: 0;
  animation: heroFadeIn 1s ease 1.3s forwards;
}

.hero-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  opacity: 0;
  animation: heroFadeIn 1s ease 1.6s forwards;
  transition: var(--transition);
}

.hero-cta-text {
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-cta-arrow {
  width: 24px;
  height: 24px;
  color: var(--gold);
  animation: bounce 2s ease-in-out infinite;
}

.hero-cta:hover .hero-cta-text {
  color: var(--gold-light);
}

.hero-rune-border {
  position: absolute;
  bottom: 80px;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
}

.rune-divider {
  width: 100%;
  height: 40px;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 24px;
  opacity: 0.5;
}

.scroll-hint svg {
  width: 24px;
  height: 40px;
}

.scroll-dot {
  animation: scrollDot 2s ease-in-out infinite;
}

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
.section-dragons,
.section-whiterun,
.section-classes,
.section-timeline {
  position: relative;
  padding: var(--section-pad) clamp(20px, 5vw, 80px);
  overflow: hidden;
}

.section-dragons {
  background-color: var(--charcoal);
}

.section-whiterun {
  background-color: var(--stone-mid);
}

.section-classes {
  background-color: var(--charcoal);
}

.section-timeline {
  background-color: var(--stone-mid);
}

.section-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.section-inner--reversed {
  direction: rtl;
}

.section-inner--reversed > * {
  direction: ltr;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-eyebrow--fire { color: var(--fire); }
.section-eyebrow--gold { color: var(--gold); }
.section-eyebrow--ice  { color: var(--ice);  }

.eyebrow-icon {
  width: 40px;
  height: 20px;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.section-title--fire {
  text-shadow: 0 0 40px rgba(184, 50, 50, 0.25);
}

.section-title--gold {
  text-shadow: 0 0 40px rgba(201, 168, 76, 0.2);
}

/* --- Lore Text --- */
.lore-text p {
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.75;
}

.lore-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.lore-text em {
  font-style: italic;
  color: rgba(232, 224, 208, 0.7);
}

.lore-quote {
  border-left: 2px solid var(--fire);
  padding: 16px 24px;
  margin: 28px 0 0;
  background: rgba(184, 50, 50, 0.05);
}

.lore-quote--gold {
  border-left-color: var(--gold);
  background: var(--gold-dim);
}

.lore-quote p {
  font-style: italic;
  color: rgba(232, 224, 208, 0.75) !important;
  margin-bottom: 8px !important;
  font-size: 1rem !important;
}

.lore-quote cite {
  font-size: 0.85rem;
  color: var(--text-dim) !important;
  font-style: normal;
  display: block;
}

/* --- Image Frame --- */
.img-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.img-frame img {
  width: 100%;
  height: clamp(280px, 40vw, 500px);
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s ease;
  filter: brightness(0.85) contrast(1.05) saturate(0.9);
}

.img-frame:hover img {
  transform: scale(1.03);
}

.img-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.img-frame--fire::before {
  background: linear-gradient(135deg, rgba(184,50,50,0.12) 0%, transparent 50%);
}

.img-frame--gold::before {
  background: linear-gradient(225deg, rgba(201,168,76,0.1) 0%, transparent 50%);
}

.img-frame-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  z-index: 2;
  pointer-events: none;
}

.img-frame--fire .img-frame-corner {
  border-color: var(--fire);
}

.img-frame--gold .img-frame-corner {
  border-color: var(--gold);
}

.img-frame-corner--tl {
  top: 12px; left: 12px;
  border-top: 1.5px solid;
  border-left: 1.5px solid;
}

.img-frame-corner--tr {
  top: 12px; right: 12px;
  border-top: 1.5px solid;
  border-right: 1.5px solid;
}

.img-frame-corner--bl {
  bottom: 12px; left: 12px;
  border-bottom: 1.5px solid;
  border-left: 1.5px solid;
}

.img-frame-corner--br {
  bottom: 12px; right: 12px;
  border-bottom: 1.5px solid;
  border-right: 1.5px solid;
}

/* ============================================================
   DRAGONS SECTION — specific elements
   ============================================================ */
.dragon-shouts {
  display: flex;
  gap: 20px;
  margin-top: 32px;
}

.shout-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 20px;
  background: rgba(184, 50, 50, 0.08);
  border: 1px solid rgba(184, 50, 50, 0.25);
  border-radius: var(--radius);
  transition: var(--transition);
}

.shout-item:hover {
  background: rgba(184, 50, 50, 0.14);
  border-color: rgba(184, 50, 50, 0.5);
  transform: translateY(-2px);
}

.shout-word {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fire-light);
  letter-spacing: 0.1em;
}

.shout-meaning {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ============================================================
   WHITERUN SECTION — specific elements
   ============================================================ */
.whiterun-landmarks {
  display: flex;
  gap: 20px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.landmark {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--gold-dim);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius);
  font-family: var(--font-title);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  transition: var(--transition);
}

.landmark:hover {
  background: rgba(201, 168, 76, 0.2);
  border-color: rgba(201, 168, 76, 0.4);
  transform: translateY(-2px);
}

.landmark-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* ============================================================
   CLASSES SECTION
   ============================================================ */
.classes-inner {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
}

.classes-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.classes-header .section-eyebrow {
  justify-content: center;
}

.classes-intro {
  font-style: italic;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.7;
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.class-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s ease;
}

.class-card-inner {
  background: var(--stone);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: var(--radius);
  padding: 28px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.4s ease, background 0.4s ease;
  position: relative;
  overflow: hidden;
}

.class-card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(201,168,76,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.class-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,168,76,0.3), 0 0 30px rgba(201,168,76,0.08);
}

.class-card:hover .class-card-inner {
  border-color: rgba(201, 168, 76, 0.4);
  background: #2f2f2f;
}

.class-card:hover .class-card-inner::before {
  opacity: 1;
}

.class-card--featured .class-card-inner {
  border-color: rgba(201, 168, 76, 0.3);
  background: #2a2820;
}

.class-card--featured:hover {
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,168,76,0.5), 0 0 50px rgba(201,168,76,0.12);
}

.class-icon-wrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 50%;
  margin-bottom: 4px;
  transition: border-color 0.4s ease, background 0.4s ease;
}

.class-card:hover .class-icon-wrap {
  border-color: rgba(201, 168, 76, 0.3);
  background: rgba(201, 168, 76, 0.05);
}

.class-icon {
  width: 30px;
  height: 30px;
  color: var(--text-secondary);
  transition: color 0.4s ease;
}

.class-card:hover .class-icon {
  color: var(--gold);
}

.class-badge {
  font-family: var(--font-title);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 3px 8px;
  display: inline-block;
  align-self: flex-start;
}

.class-badge--featured {
  color: var(--gold);
  border-color: rgba(201, 168, 76, 0.2);
  background: var(--gold-dim);
}

.class-name {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  transition: color 0.4s ease;
}

.class-card:hover .class-name {
  color: var(--gold-light);
}

.class-flavor {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

.class-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.class-skills span {
  font-family: var(--font-title);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  padding: 2px 8px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  transition: color 0.4s ease, border-color 0.4s ease;
}

.class-card:hover .class-skills span {
  color: rgba(201, 168, 76, 0.6);
  border-color: rgba(201, 168, 76, 0.15);
}

/* ============================================================
   TIMELINE SECTION
   ============================================================ */
.timeline-inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
}

.timeline-header .section-eyebrow {
  justify-content: center;
}

.timeline-intro {
  color: var(--text-secondary);
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.7;
}

.timeline {
  position: relative;
}

.timeline-spine {
  position: absolute;
  left: 50%;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(201, 168, 76, 0.2) 10%,
    rgba(201, 168, 76, 0.2) 90%,
    transparent 100%
  );
  transform: translateX(-50%);
}

.timeline-node {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: start;
  margin-bottom: 60px;
  gap: 0;
}

.timeline-node--right {
  direction: rtl;
}

.timeline-node--right > * {
  direction: ltr;
}

.timeline-node--final {
  grid-template-columns: 1fr;
  text-align: center;
}

.timeline-marker {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  transition: transform 0.4s ease;
}

.timeline-marker svg {
  width: 44px;
  height: 44px;
}

.timeline-marker--final {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
}

.timeline-marker--final svg {
  width: 56px;
  height: 56px;
}

.timeline-node:hover .timeline-marker {
  transform: scale(1.1);
}

.timeline-content {
  padding: 0 28px 0 0;
  padding-top: 4px;
}

.timeline-content--right {
  padding: 0 0 0 28px;
  grid-column: 3;
  grid-row: 1;
}

.timeline-content--center {
  padding: 0 clamp(20px, 5vw, 60px);
  max-width: 700px;
  margin: 0 auto;
}

.timeline-chapter {
  font-family: var(--font-title);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
  margin-bottom: 8px;
}

.timeline-title {
  font-family: var(--font-title);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.timeline-text {
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.timeline-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-content--right .timeline-detail {
  justify-content: flex-start;
}

.detail-tag {
  font-family: var(--font-title);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-dim);
}

.detail-tag--fire {
  background: rgba(184,50,50,0.1);
  border-color: rgba(184,50,50,0.25);
  color: var(--fire-light);
}

.detail-tag--ice {
  background: rgba(74,127,165,0.1);
  border-color: rgba(74,127,165,0.25);
  color: var(--ice-light);
}

.detail-tag--gold {
  background: var(--gold-dim);
  border-color: rgba(201,168,76,0.25);
  color: var(--gold);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0f0d0b;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  padding: 48px clamp(20px, 5vw, 80px);
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo img {
  width: 36px;
  height: 36px;
  filter: invert(1) sepia(1) saturate(2) hue-rotate(5deg) brightness(0.7);
  opacity: 0.5;
}

.footer-logo span {
  font-family: var(--font-title);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 600px;
}

.footer-rune {
  width: 200px;
  opacity: 0.5;
}

.footer-rune svg {
  width: 100%;
}

.footer-dovah {
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: rgba(201, 168, 76, 0.3);
  text-transform: uppercase;
}

/* ============================================================
   ANIMATIONS & SCROLL REVEALS
   ============================================================ */
@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(16px); opacity: 0; }
  81% { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Reveal classes — set by JS */
.reveal-left,
.reveal-right,
.reveal-up,
.reveal-card,
.reveal-node {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-up    { transform: translateY(30px); }
.reveal-card  { transform: translateY(24px); }
.reveal-node  { transform: translateY(20px); }

.reveal-left.revealed,
.reveal-right.revealed,
.reveal-up.revealed,
.reveal-card.revealed,
.reveal-node.revealed {
  opacity: 1;
  transform: translate(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .classes-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .class-card:nth-child(4),
  .class-card:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 900px) {
  .section-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .section-inner--reversed {
    direction: ltr;
  }

  .whiterun-image {
    order: -1;
  }

  .classes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .class-card--featured {
    grid-column: 1 / -1;
  }

  .class-card--featured .class-card-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
  }

  .class-card--featured .class-icon-wrap {
    flex-shrink: 0;
  }

  /* Timeline adjustments */
  .timeline-spine {
    left: 22px;
  }

  .timeline-node {
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto;
  }

  .timeline-node--right {
    direction: ltr;
  }

  .timeline-content--right {
    padding: 0 0 0 20px;
    grid-column: 2;
    grid-row: 1;
  }

  .timeline-content--left {
    grid-column: 2;
    padding: 0 0 0 20px;
  }

  .timeline-content--center {
    grid-column: 2;
    padding: 0 0 0 20px;
    text-align: left;
    margin: 0;
  }

  .timeline-node--final {
    grid-template-columns: 44px 1fr;
    text-align: left;
  }

  .timeline-marker--final {
    margin: 0;
  }

  .timeline-content--center .timeline-detail {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .hero-title {
    font-size: clamp(3.5rem, 16vw, 6rem);
  }

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

  .class-card--featured .class-card-inner {
    flex-direction: column;
  }

  .dragon-shouts {
    flex-wrap: wrap;
  }

  .whiterun-landmarks {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    width: 56px;
    height: 56px;
  }

  .hero-title {
    font-size: clamp(3rem, 18vw, 5rem);
  }

  .section-inner {
    gap: 36px;
  }
}

/* ============================================================
   UTILITY
   ============================================================ */
::selection {
  background: rgba(201, 168, 76, 0.25);
  color: var(--text-primary);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--charcoal);
}

::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 168, 76, 0.4);
}
