/* ==========================================================================
   FORKBEARD'S ANVIL - STYLES
   Palette: Nordic storm + electric rune-blue + forge ember
   ========================================================================== */

:root {
  --bg: #0a0e15;
  --bg-2: #0e141f;
  --panel: #121a28;
  --panel-2: #16202f;
  --steel: #24324a;
  --ink: #e9eef7;
  --muted: #90a2ba;
  --rune: #4da8ff;
  --rune-bright: #7cc4ff;
  --rune-glow: rgba(77, 168, 255, 0.55);
  --ember: #ff9a3d;
  --font-display: "Grenze Gotisch", serif;
  --font-body: "Inter", system-ui, sans-serif;
  --max: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: var(--rune-bright); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Disable transitions during first paint */
.preload *, .preload *::before, .preload *::after { transition: none !important; }

::selection { background: var(--rune); color: #04101f; }

/* ==========================================================================
   INTRO OVERLAY
   ========================================================================== */

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.4s ease, visibility 1.4s;
}

.intro--hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.intro__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s ease;
}

.intro--hidden .intro__video { transform: scale(1.06); }

.intro__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%),
    linear-gradient(to top, rgba(0,0,0,0.5), transparent 22%);
}

.intro__controls {
  position: absolute;
  bottom: clamp(20px, 4vh, 44px);
  right: clamp(20px, 4vw, 48px);
  display: flex;
  gap: 12px;
}

.intro__btn {
  background: rgba(10, 14, 21, 0.55);
  color: var(--ink);
  border: 1px solid rgba(124, 196, 255, 0.35);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.intro__btn:hover {
  border-color: var(--rune-bright);
  box-shadow: 0 0 18px var(--rune-glow);
  background: rgba(14, 22, 36, 0.75);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 4vw, 48px);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s,
              background 0.35s, box-shadow 0.35s, padding 0.35s;
}

body.revealed .nav { opacity: 1; transform: none; }

.nav--solid {
  background: rgba(10, 14, 21, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(77, 168, 255, 0.15);
  padding-top: 10px;
  padding-bottom: 10px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav__rune {
  color: var(--rune-bright);
  font-size: 1.6rem;
  text-shadow: 0 0 12px var(--rune-glow);
}

.nav__links { display: flex; gap: clamp(16px, 2.5vw, 34px); }

.nav__links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.25s, text-shadow 0.25s;
}

.nav__links a:hover, .nav__links a.active {
  color: var(--rune-bright);
  text-shadow: 0 0 14px var(--rune-glow);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}

.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url("../assets/hero-bg.jpg") center 30% / cover no-repeat;
  transform: scale(1.08);
  animation: hero-drift 24s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from { transform: scale(1.08) translateY(0); }
  to   { transform: scale(1.14) translateY(-1.5%); }
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  mix-blend-mode: screen;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center 45%, rgba(6, 10, 18, 0.25) 0%, rgba(6, 10, 18, 0.72) 78%),
    linear-gradient(to bottom, rgba(6, 10, 18, 0.55), transparent 30%, transparent 60%, var(--bg) 98%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: 120px 24px 80px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s ease 0.35s, transform 1.2s ease 0.35s;
}

body.revealed .hero__content { opacity: 1; transform: none; }

.hero__kicker {
  color: var(--rune-bright);
  font-size: clamp(0.75rem, 1.4vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.35em;
  text-shadow: 0 0 16px var(--rune-glow);
  margin-bottom: 18px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 11vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-shadow:
    0 0 22px rgba(124, 196, 255, 0.45),
    0 0 70px rgba(77, 168, 255, 0.35),
    0 4px 24px rgba(0, 0, 0, 0.8);
}

.hero__title span {
  color: var(--rune-bright);
  text-shadow:
    0 0 18px var(--rune-glow),
    0 0 80px rgba(77, 168, 255, 0.5),
    0 4px 24px rgba(0, 0, 0, 0.8);
}

.hero__sub {
  margin: 26px auto 38px;
  max-width: 620px;
  color: #c3d0e2;
  font-size: clamp(1rem, 2vw, 1.2rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--rune-bright);
  font-size: 1.5rem;
  animation: bob 2.2s ease-in-out infinite;
  text-shadow: 0 0 14px var(--rune-glow);
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.25s, border-color 0.25s, background 0.25s;
}

.btn--primary {
  background: linear-gradient(135deg, #2a7fd4, #4da8ff);
  color: #041220;
  box-shadow: 0 0 24px rgba(77, 168, 255, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 38px rgba(77, 168, 255, 0.6);
}

.btn--ghost {
  background: rgba(10, 16, 26, 0.4);
  color: var(--ink);
  border-color: rgba(124, 196, 255, 0.4);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  border-color: var(--rune-bright);
  box-shadow: 0 0 18px var(--rune-glow);
}

.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ==========================================================================
   CREED STRIP
   ========================================================================== */

.creed {
  border-top: 1px solid rgba(77, 168, 255, 0.12);
  border-bottom: 1px solid rgba(77, 168, 255, 0.12);
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
}

.creed__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 24px;
  text-align: center;
}

.creed__text {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.7;
  color: var(--muted);
}

.creed__text strong { color: var(--ink); }

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section {
  position: relative;
  padding: clamp(72px, 10vw, 130px) clamp(20px, 4vw, 48px);
  max-width: none;
}

.section--dark { background: var(--bg-2); }

.section--dark .section__bg {
  position: absolute;
  inset: 0;
  background: url("../assets/runes-bg.jpg") center / cover no-repeat fixed;
  opacity: 0.1;
  pointer-events: none;
}

.section--watch { background: linear-gradient(180deg, var(--bg), #0b1220 60%, var(--bg)); }

.section__head {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 64px);
}

.section__runes {
  display: block;
  color: var(--rune);
  opacity: 0.75;
  font-size: 0.95rem;
  letter-spacing: 0.5em;
  margin-bottom: 10px;
  text-shadow: 0 0 12px var(--rune-glow);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.05;
}

.section__sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.8vw, 1.1rem);
}

.section__note {
  position: relative;
  text-align: center;
  color: var(--muted);
  margin-top: 44px;
  font-size: 0.95rem;
}

/* ==========================================================================
   FILTER BARS
   ========================================================================== */

.filters {
  max-width: var(--max);
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  gap: 10px 12px;
  flex-wrap: wrap;
}

.filters__label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-right: 2px;
}

.chip {
  background: rgba(18, 26, 40, 0.7);
  color: var(--muted);
  border: 1px solid var(--steel);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.chip:hover {
  color: var(--ink);
  border-color: rgba(124, 196, 255, 0.5);
}

.chip.active {
  background: rgba(77, 168, 255, 0.14);
  color: var(--rune-bright);
  border-color: var(--rune);
  box-shadow: 0 0 14px rgba(77, 168, 255, 0.25);
}

.filters__spacer { flex: 1; min-width: 8px; }

.filters__search {
  background: rgba(18, 26, 40, 0.7);
  border: 1px solid var(--steel);
  border-radius: 999px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 8px 18px;
  min-width: 200px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.filters__search::placeholder { color: var(--muted); }

.filters__search:focus {
  outline: none;
  border-color: var(--rune);
  box-shadow: 0 0 14px rgba(77, 168, 255, 0.25);
}

.filters__select {
  background: rgba(18, 26, 40, 0.9);
  border: 1px solid var(--steel);
  border-radius: 999px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.filters__select:focus {
  outline: none;
  border-color: var(--rune);
  box-shadow: 0 0 14px rgba(77, 168, 255, 0.25);
}

.filters__select option { background: var(--panel); color: var(--ink); }

/* ==========================================================================
   GRIDS & CARDS
   ========================================================================== */

.grid {
  position: relative;
  display: grid;
  gap: 22px;
  max-width: var(--max);
  margin: 0 auto;
}

.grid--tips   { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid--runes  { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid--videos { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

.card {
  position: relative;
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--steel);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.3s, box-shadow 0.3s;
}

.card::after {
  content: "ᛝ";
  position: absolute;
  right: -14px;
  bottom: -26px;
  font-size: 7rem;
  color: rgba(77, 168, 255, 0.05);
  pointer-events: none;
  transition: color 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 196, 255, 0.55);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45), 0 0 24px rgba(77, 168, 255, 0.16);
}

.card:hover::after { color: rgba(77, 168, 255, 0.11); }

.card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
}

.card__title {
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.card__summary { color: var(--muted); font-size: 0.96rem; flex: 1; }

.card__link {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.card__link:hover { text-shadow: 0 0 12px var(--rune-glow); }

.tag {
  background: rgba(77, 168, 255, 0.1);
  color: var(--rune-bright);
  border: 1px solid rgba(77, 168, 255, 0.25);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   FORK YEAH! — the badge for the truly incredible
   ========================================================================== */

.fork-yeah {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #ffc069, #ff8a2a);
  color: #2b1300;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 150, 0.9);
  transform: rotate(3deg);
  box-shadow: 0 0 16px rgba(255, 154, 61, 0.45), 0 2px 8px rgba(0, 0, 0, 0.4);
  animation: fork-pulse 2.6s ease-in-out infinite;
  cursor: default;
  transition: padding 0.35s ease;
}

.fork-yeah svg {
  width: 21px;
  height: 21px;
  fill: #2b1300;
  flex: none;
}

/* Collapsed by default: just the emblem. Hover unfurls the words. */
.fork-yeah__text {
  max-width: 0;
  opacity: 0;
  margin-left: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.35s ease, opacity 0.25s ease, margin-left 0.35s ease;
}

.fork-yeah:hover {
  padding-right: 13px;
}

.fork-yeah:hover .fork-yeah__text {
  max-width: 100px;
  opacity: 1;
  margin-left: 7px;
}

@keyframes fork-pulse {
  0%, 100% { box-shadow: 0 0 14px rgba(255, 154, 61, 0.4), 0 2px 8px rgba(0, 0, 0, 0.4); }
  50%      { box-shadow: 0 0 28px rgba(255, 154, 61, 0.75), 0 2px 8px rgba(0, 0, 0, 0.4); }
}

@media (prefers-reduced-motion: reduce) {
  .fork-yeah { animation: none; }
}

/* When a card has both the badge and the EXAMPLE ribbon, the ribbon
   moves to the top-left corner so they don't collide. */
.card--forkyeah.card--example::before,
.episode--forkyeah.episode--example::before {
  right: auto;
  left: -34px;
  transform: rotate(-38deg);
}

/* EXAMPLE ribbon on placeholder content */
.card--example::before, .episode--example::before {
  content: "EXAMPLE";
  position: absolute;
  top: 14px;
  right: -34px;
  transform: rotate(38deg);
  background: rgba(255, 154, 61, 0.16);
  color: var(--ember);
  border-top: 1px solid rgba(255, 154, 61, 0.4);
  border-bottom: 1px solid rgba(255, 154, 61, 0.4);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  padding: 3px 40px;
  pointer-events: none;
  z-index: 3;
}

/* ==========================================================================
   PODCAST - FORGE SESSIONS
   ========================================================================== */

.podcast {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.episode {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--steel);
  border-radius: 14px;
  padding: 26px 28px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.3s, box-shadow 0.3s;
}

.episode:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 196, 255, 0.55);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45), 0 0 24px rgba(77, 168, 255, 0.16);
}

.episode__num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--rune);
  text-shadow: 0 0 16px var(--rune-glow);
  line-height: 1;
  min-width: 64px;
  text-align: center;
  align-self: start;
  padding-top: 4px;
}

.episode__num small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-shadow: none;
  margin-top: 2px;
}

.episode__body { display: flex; flex-direction: column; gap: 8px; }

.episode__title { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }

.episode__meta { font-size: 0.85rem; color: var(--muted); }
.episode__meta b { color: var(--rune-bright); font-weight: 600; }

.episode__desc { color: var(--muted); font-size: 0.96rem; }

.episode__audio { width: 100%; margin-top: 6px; filter: invert(0.9) hue-rotate(180deg); border-radius: 8px; }

.episode__links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

.episode__platform {
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(124, 196, 255, 0.3);
  border-radius: 999px;
  padding: 5px 14px;
  color: var(--rune-bright);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.episode__platform:hover { border-color: var(--rune-bright); box-shadow: 0 0 14px var(--rune-glow); }

.episode__platform--soon { opacity: 0.5; pointer-events: none; }

/* ==========================================================================
   RUNE STONES - X / REDDIT CARDS
   ========================================================================== */

.rune-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 4px 13px;
  width: fit-content;
}

.rune-card__badge--x { background: rgba(233, 238, 247, 0.08); color: #e9eef7; border: 1px solid rgba(233,238,247,0.25); }
.rune-card__badge--reddit { background: rgba(255, 90, 40, 0.12); color: #ff8a5e; border: 1px solid rgba(255,110,60,0.35); }

.rune-card__quote {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink);
  border-left: 3px solid var(--rune);
  padding-left: 16px;
  font-style: italic;
}

.rune-card__author { font-size: 0.88rem; color: var(--rune-bright); font-weight: 600; }
.rune-card__author small { color: var(--muted); font-weight: 400; }

.rune-card__note { font-size: 0.88rem; color: var(--muted); }
.rune-card__note::before { content: "⚒ "; color: var(--ember); }

/* ==========================================================================
   WATCHTOWER - YOUTUBE
   ========================================================================== */

.video-card { padding: 0; }

.video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #060a12 url("../assets/calm-bg.jpg") center / cover;
  background-blend-mode: luminosity;
  cursor: pointer;
  border: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s;
}

.video-card__thumb:hover img { transform: scale(1.05); }

.video-card__play {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(10, 14, 21, 0.72);
  border: 1.5px solid var(--rune-bright);
  color: var(--rune-bright);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  box-shadow: 0 0 22px var(--rune-glow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.video-card__thumb:hover .video-card__play {
  transform: scale(1.12);
  box-shadow: 0 0 36px var(--rune-glow);
}

.video-card__thumb--empty { cursor: default; }
.video-card__thumb--empty .video-card__play { opacity: 0.4; box-shadow: none; }

.video-card__frame { aspect-ratio: 16 / 9; width: 100%; border: none; }

.video-card__body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 8px; }

.video-card__why { color: var(--muted); font-size: 0.92rem; }
.video-card__why::before { content: "Why watch: "; color: var(--ember); font-weight: 700; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  border-top: 1px solid rgba(77, 168, 255, 0.12);
  background: linear-gradient(180deg, var(--bg-2), #070b12);
  padding: clamp(64px, 8vw, 100px) 24px 32px;
}

.footer__horn { max-width: 560px; margin: 0 auto 64px; text-align: center; }

.footer__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 10px;
}

.footer__text { color: var(--muted); margin-bottom: 26px; }

.footer__form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.footer__form input {
  flex: 1;
  min-width: 220px;
  background: var(--panel);
  border: 1px solid var(--steel);
  border-radius: 999px;
  padding: 13px 22px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.98rem;
}

.footer__form input:focus { outline: none; border-color: var(--rune); box-shadow: 0 0 14px var(--rune-glow); }

.footer__base {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 26px;
  border-top: 1px solid rgba(77, 168, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer__brand { color: var(--rune-bright); font-weight: 600; }

/* ==========================================================================
   WORD-HOARD GLOSSARY
   ========================================================================== */

.glossary-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 80;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(124, 196, 255, 0.5);
  background: rgba(14, 20, 31, 0.9);
  color: var(--rune-bright);
  font-size: 1.7rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 18px rgba(77, 168, 255, 0.35), 0 4px 16px rgba(0, 0, 0, 0.5);
  text-shadow: 0 0 12px var(--rune-glow);
  transition: transform 0.25s ease, box-shadow 0.25s, border-color 0.25s;
  opacity: 0;
  pointer-events: none;
}

body.revealed .glossary-fab {
  opacity: 1;
  pointer-events: auto;
  transition: transform 0.25s ease, box-shadow 0.25s, border-color 0.25s, opacity 0.8s ease 0.4s;
}

.glossary-fab:hover {
  transform: translateY(-3px) scale(1.06);
  border-color: var(--rune-bright);
  box-shadow: 0 0 30px rgba(77, 168, 255, 0.6), 0 6px 20px rgba(0, 0, 0, 0.5);
}

.glossary {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.glossary__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 12, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.glossary.open .glossary__backdrop { opacity: 1; }

.glossary__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(460px, 94vw);
  background: linear-gradient(200deg, var(--panel), var(--bg-2));
  border-left: 1px solid rgba(77, 168, 255, 0.25);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  padding: 26px 26px 0;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.25, 1);
}

.glossary.open .glossary__panel { transform: translateX(0); }

.glossary__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.glossary__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  text-shadow: 0 0 20px rgba(77, 168, 255, 0.35);
}

.glossary__sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

.glossary__close {
  background: none;
  border: 1px solid var(--steel);
  border-radius: 50%;
  color: var(--muted);
  width: 38px;
  height: 38px;
  font-size: 1rem;
  flex: none;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.glossary__close:hover {
  color: var(--rune-bright);
  border-color: var(--rune);
  box-shadow: 0 0 12px var(--rune-glow);
}

.glossary__search {
  background: rgba(10, 14, 21, 0.7);
  border: 1px solid var(--steel);
  border-radius: 12px;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  padding: 13px 18px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.glossary__search::placeholder { color: var(--muted); }

.glossary__search:focus {
  outline: none;
  border-color: var(--rune);
  box-shadow: 0 0 16px rgba(77, 168, 255, 0.3);
}

.glossary__count {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 12px 2px 10px;
}

.glossary__list {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 26px;
  scrollbar-width: thin;
  scrollbar-color: var(--steel) transparent;
}

.glossary__entry {
  padding: 14px 2px;
  border-bottom: 1px solid rgba(36, 50, 74, 0.6);
}

.glossary__entry:last-child { border-bottom: none; }

.glossary__term {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--rune-bright);
  margin-bottom: 4px;
}

.glossary__def {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.glossary__none {
  text-align: center;
  color: var(--muted);
  padding: 40px 10px;
}

.glossary__none .rune {
  color: var(--rune);
  font-size: 1.6rem;
  display: block;
  margin-bottom: 10px;
  text-shadow: 0 0 12px var(--rune-glow);
}

@media (max-width: 760px) {
  .glossary-fab { bottom: 18px; right: 18px; width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .glossary__panel, .glossary__backdrop { transition: none; }
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal--visible { opacity: 1; transform: none; }

/* ==========================================================================
   EMPTY STATES
   ========================================================================== */

.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--steel);
  border-radius: 14px;
  padding: 56px 24px;
  font-size: 1rem;
}

.empty .rune { color: var(--rune); font-size: 1.6rem; display: block; margin-bottom: 10px; text-shadow: 0 0 12px var(--rune-glow); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 760px) {
  .nav__links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: rgba(10, 14, 21, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 34px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -8px 0 40px rgba(0,0,0,0.5);
  }

  .nav__links.open { transform: translateX(0); }
  .nav__links a { font-size: 1.05rem; }

  .nav__toggle { display: flex; z-index: 60; }

  .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .episode { grid-template-columns: 1fr; }
  .episode__num { text-align: left; min-width: 0; }

  .section--dark .section__bg { background-attachment: scroll; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__bg, .hero__scroll { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__content, .nav { transition: none; }
}
