/* ==========================================================================
   The Freyja Stories — Official Promotional Website
   Palette: Deep Twilight Asgard, Warm Parchment Ivory & Burnished Brisingamen Gold
   Fonts: Local Cinzel (display) & Alegreya (editorial serif) — SIL OFL
   ========================================================================== */

@font-face {
  font-family: "Cinzel";
  src: url("../assets/fonts/Cinzel.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Alegreya";
  src: url("../assets/fonts/Alegreya.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Alegreya";
  src: url("../assets/fonts/Alegreya-Italic.ttf") format("truetype");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #0b1120;
  --bg-elevated: #121b31;
  --bg-card: #16223b;
  --bg-card-hover: #1c2b4a;
  --ink: #f6efe0;
  --ink-soft: #d2c8b4;
  --ink-muted: #9da6ba;
  --gold: #e9c46a;
  --gold-bright: #ffd98a;
  --gold-dim: rgba(233, 196, 106, 0.28);
  --ember: #e08d4f;
  --border: rgba(233, 196, 106, 0.22);
  --border-strong: rgba(233, 196, 106, 0.48);
  --shadow-lg: 0 24px 60px rgba(4, 7, 16, 0.65);
  --shadow-md: 0 12px 32px rgba(4, 7, 16, 0.45);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Cinzel", Georgia, serif;
  --font-serif: "Alegreya", Georgia, serif;
  --font-ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max-w: 1220px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Subtle fixed Mímisbrunnur ambient canvas across the entire site */
.site-ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  background-image:
    radial-gradient(ellipse at 72% 62%, rgba(233, 196, 106, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, rgba(11, 17, 32, 0.88) 0%, rgba(11, 17, 32, 0.92) 55%, rgba(7, 11, 22, 0.95) 100%),
    url("../assets/hero/mimisbrunnur_bg.jpg");
  background-size: cover;
  background-position: 65% 58%;
  pointer-events: none;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(var(--max-w), calc(100% - 48px));
  margin-inline: auto;
}

/* Signature Bifrost hairline divider */
.bifrost-rule {
  height: 2px;
  width: 100%;
  border: 0;
  margin: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(233, 196, 106, 0.35) 18%,
    rgba(224, 141, 79, 0.7) 36%,
    rgba(126, 196, 207, 0.7) 52%,
    rgba(165, 148, 249, 0.65) 68%,
    rgba(233, 196, 106, 0.35) 84%,
    transparent 100%
  );
  opacity: 0.75;
}

/* ==========================================================================
   Navigation Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 17, 32, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(233, 196, 106, 0.16);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  background: rgba(11, 17, 32, 0.94);
  border-bottom-color: rgba(233, 196, 106, 0.28);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  white-space: nowrap;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 1.02rem;
  text-transform: uppercase;
  color: #fffaf0;
}

.brand-tld {
  color: var(--gold);
}

.brand-sub {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 2px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1rem;
  background: radial-gradient(circle at 30% 30%, rgba(233, 196, 106, 0.22), rgba(11, 17, 32, 0.9));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold-bright);
}

.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: rgba(233, 196, 106, 0.14);
  color: var(--gold-bright) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--gold);
  color: #101626 !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  padding: 8px 11px;
  font-size: 1.2rem;
  line-height: 1;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, #f1cf79 0%, #d9a441 100%);
  color: #111827;
  box-shadow: 0 8px 24px rgba(233, 196, 106, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffe097 0%, #e6b450 100%);
  box-shadow: 0 12px 30px rgba(233, 196, 106, 0.4);
}

.btn-secondary {
  background: rgba(18, 27, 49, 0.72);
  color: var(--ink);
  border-color: rgba(246, 239, 224, 0.36);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(24, 36, 64, 0.9);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border-color: var(--border-strong);
  padding: 10px 20px;
  font-size: 0.82rem;
}

.btn-ghost:hover {
  background: rgba(233, 196, 106, 0.14);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.8rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: clamp(680px, 90vh, 940px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 112px;
  padding-bottom: 56px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../assets/hero/mimisbrunnur_bg.jpg");
  background-size: cover;
  background-position: 68% 46%;
  transform: scale(1.01);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 13, 25, 0.9) 0%, rgba(10, 16, 30, 0.68) 42%, rgba(11, 17, 32, 0.08) 74%, rgba(11, 17, 32, 0.24) 100%),
    linear-gradient(180deg, rgba(11, 17, 32, 0.42) 0%, rgba(11, 17, 32, 0.04) 36%, rgba(11, 17, 32, 0.62) 84%, rgba(11, 17, 32, 0.94) 100%);
}

.hero-content {
  max-width: 630px;
  margin-bottom: 44px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--gold);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.8vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.04em;
  margin: 0 0 18px;
  color: #fffaf0;
  text-shadow: 0 6px 32px rgba(4, 7, 16, 0.65);
}

.hero-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.58rem);
  line-height: 1.42;
  color: var(--gold-bright);
  margin: 0 0 18px;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 30px;
  max-width: 560px;
}

.hero-lead strong {
  color: var(--ink);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Quick-Jump 5-Book Cover Shelf inside bottom of Hero */
.hero-shelf-wrap {
  margin-top: 12px;
}

.hero-shelf-label {
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 14px;
}

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

.shelf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(18, 27, 49, 0.76);
  border: 1px solid rgba(233, 196, 106, 0.2);
  backdrop-filter: blur(10px);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.shelf-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  background: rgba(24, 37, 66, 0.92);
  box-shadow: 0 18px 36px rgba(4, 7, 16, 0.55);
}

.shelf-card img {
  width: 100%;
  aspect-ratio: 1.38 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.shelf-card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 2px;
}

.shelf-num {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.shelf-title {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

/* ==========================================================================
   Series Highlights Strip
   ========================================================================== */
.highlights-bar {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.highlight-icon {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(233, 196, 106, 0.12);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1.1rem;
}

.highlight-item h3 {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 2px;
  color: var(--ink);
}

.highlight-item p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--ink-muted);
}

/* ==========================================================================
   Shared Section Framing
   ========================================================================== */
.section {
  padding: 96px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78) 0%, rgba(11, 17, 32, 0.84) 100%);
}

.section-header {
  max-width: 720px;
  margin-bottom: 54px;
}

.section-header.centered {
  margin-inline: auto;
  text-align: center;
}

.section-header.centered .kicker {
  justify-content: center;
}

.section-header.centered .kicker::after {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0.03em;
  margin: 0 0 14px;
  color: #fffaf0;
}

.section-intro {
  margin: 0;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   The Five Books — Editorial Spread Cards
   ========================================================================== */
.books-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.book-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 36px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(22, 34, 59, 0.88) 0%, rgba(14, 21, 39, 0.94) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  scroll-margin-top: 96px;
  transition: border-color 0.25s ease;
}

.book-spread:hover {
  border-color: var(--border-strong);
}

.book-spread.is-reversed .book-visual {
  order: 2;
}

.book-spread.is-reversed .book-info {
  order: 1;
}

.book-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Realistic landscape book presentation */
.book-cover-frame {
  position: relative;
  border-radius: 10px 14px 14px 10px;
  overflow: hidden;
  box-shadow:
    -6px 0 0 rgba(255, 255, 255, 0.07) inset,
    10px 18px 38px rgba(3, 6, 14, 0.7),
    0 0 0 1px rgba(233, 196, 106, 0.28);
  cursor: pointer;
  background: #090e1a;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-cover-frame:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    -6px 0 0 rgba(255, 255, 255, 0.09) inset,
    14px 26px 48px rgba(3, 6, 14, 0.82),
    0 0 0 1px rgba(233, 196, 106, 0.55);
}

/* Subtle book spine crease along left edge */
.book-cover-frame::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 24px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.36) 0%,
    rgba(255, 255, 255, 0.14) 24%,
    rgba(0, 0, 0, 0.16) 44%,
    transparent 100%
  );
  pointer-events: none;
}

.book-cover-frame img {
  width: 100%;
  aspect-ratio: 1.38 / 1;
  object-fit: cover;
}

.peek-single {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 10px 16px 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(233, 196, 106, 0.24);
  background: rgba(11, 17, 32, 0.72);
  color: var(--ink);
  text-align: left;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.peek-single:hover {
  border-color: var(--gold-bright);
  background: rgba(20, 31, 56, 0.9);
  transform: translateY(-2px);
}

.peek-single img {
  width: 112px;
  flex-shrink: 0;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.peek-single-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.peek-single-kicker {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.peek-single-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: #fffaf0;
}

.peek-single-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  font-size: 1rem;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.peek-single:hover .peek-single-arrow {
  background: var(--gold);
  color: #101626;
}

.book-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.book-pill {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(233, 196, 106, 0.16);
  color: var(--gold-bright);
  border: 1px solid rgba(233, 196, 106, 0.38);
}

.book-pages-meta {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}

.book-info h3 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 12px;
  color: #fffaf0;
}

.book-hook {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.28rem;
  line-height: 1.4;
  color: var(--gold-bright);
  margin: 0 0 18px;
  padding-left: 16px;
  border-left: 2.5px solid var(--gold);
}

.book-info p.book-blurb {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.book-source {
  margin: 18px 0 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(233, 196, 106, 0.16);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

/* ==========================================================================
   Official Book Trailers
   ========================================================================== */
.trailer-showcase {
  max-width: 920px;
  margin-inline: auto;
}

.trailer-card {
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  scroll-margin-top: 96px;
}

.trailer-body-centered {
  text-align: center;
}

.trailer-player {
  position: relative;
  background: #060913;
  aspect-ratio: 16 / 9;
}

.trailer-player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #060913;
}

.trailer-body {
  padding: 24px 26px 26px;
}

.trailer-tag {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 6px;
}

.trailer-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 8px;
  color: #fffaf0;
}

.trailer-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ==========================================================================
   Characters Grid
   ========================================================================== */
.characters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.char-card {
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.char-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.char-portrait {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #090e1c;
}

.char-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.char-card:hover .char-portrait img {
  transform: scale(1.05);
}

.char-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.char-role {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.char-body h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  margin: 0;
  color: #fffaf0;
}

.char-body p {
  margin: 4px 0 0;
  font-size: 0.96rem;
  line-height: 1.52;
  color: var(--ink-soft);
}

/* ==========================================================================
   Filterable Illustration Gallery
   ========================================================================== */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(22, 34, 59, 0.65);
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #101626;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gallery-tile-featured {
  grid-column: span 2;
}

.gallery-tile-featured img {
  aspect-ratio: auto;
  height: 100%;
  min-height: 280px;
}

.gallery-tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a1020;
  padding: 0;
  text-align: left;
  display: block;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.gallery-tile:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-tile-featured img {
  aspect-ratio: 16 / 9;
  max-height: 430px;
}

.gallery-tile:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 18px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 13, 25, 0.88) 55%, rgba(8, 13, 25, 0.96) 100%);
}

.gallery-book-tag {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}

.gallery-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fffaf0;
}

/* ==========================================================================
   About the Myths, Pronunciation & Author
   ========================================================================== */
.world-banner {
  position: relative;
  padding: 96px 0;
  isolation: isolate;
  overflow: hidden;
}

.world-banner-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../assets/hero/mimisbrunnur_bg.jpg");
  background-size: cover;
  background-position: 70% 55%;
  opacity: 0.42;
}

.world-banner-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 17, 32, 0.92) 0%, rgba(11, 17, 32, 0.68) 28%, rgba(11, 17, 32, 0.78) 78%, rgba(7, 11, 22, 0.96) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.editorial-panel {
  padding: 36px;
  border-radius: 20px;
  background: rgba(18, 27, 49, 0.84);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.editorial-panel h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 14px;
  color: #fffaf0;
}

.editorial-panel p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.editorial-panel p:last-child {
  margin-bottom: 0;
}

.pronounce-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.pronounce-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(11, 17, 32, 0.72);
  border: 1px solid rgba(233, 196, 106, 0.18);
}

.pronounce-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 8px;
}

.pronounce-word {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  color: #fffaf0;
}

.pronounce-say {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  white-space: nowrap;
}

.pronounce-note {
  margin: 4px 0 0;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--ink-muted);
}

/* Companion Series Card */
.companion-card {
  margin-top: 28px;
  padding: 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(28, 41, 70, 0.88), rgba(14, 21, 39, 0.92));
  border: 1px solid var(--border-strong);
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.companion-thumb-wrap {
  position: relative;
}

.companion-card img {
  width: 100%;
  aspect-ratio: 1.38 / 1;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.coming-soon-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--font-ui);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f1cf79 0%, #d9a441 100%);
  color: #101626;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.companion-kicker {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 6px;
}

.companion-card h4 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  margin: 0 0 6px;
  color: #fffaf0;
}

.companion-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #070b16;
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand p {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

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

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(233, 196, 106, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   Lightbox & Modal
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(5, 8, 18, 0.92);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.modal-backdrop.open {
  display: flex;
}

.lightbox-shell {
  position: relative;
  width: min(1140px, 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lightbox-stage {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #060913;
  box-shadow: var(--shadow-lg);
}

.lightbox-stage img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  margin-inline: auto;
  background: #060913;
}

.lightbox-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.lightbox-text h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 4px;
  color: #fffaf0;
}

.lightbox-text p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.lightbox-meta {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(18, 27, 49, 0.88);
  color: var(--ink);
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.icon-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #101626;
}

/* Order Info Dialog */
.order-dialog {
  position: relative;
  width: min(560px, 100%);
  padding: 34px;
  border-radius: 20px;
  background: linear-gradient(155deg, #17233f 0%, #0d1426 100%);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.order-dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.order-dialog h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 6px 0 12px;
  color: #fffaf0;
  padding-right: 40px;
}

.order-dialog p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.order-specs {
  list-style: none;
  margin: 18px 0 24px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(9, 14, 27, 0.72);
  border: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 0.86rem;
  color: var(--ink-soft);
  display: grid;
  gap: 8px;
}

.order-specs strong {
  color: var(--gold-bright);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-shelf {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
  }

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

  .book-spread {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px;
  }

  .book-spread.is-reversed .book-visual,
  .book-spread.is-reversed .book-info {
    order: initial;
  }

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

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

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: rgba(11, 17, 32, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 24px 22px;
    display: none;
  }

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

  .nav-links li a {
    display: block;
    padding: 12px 0;
  }

  .nav-cta {
    text-align: center;
    margin-top: 8px;
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
  }

  .hero-bg {
    background-position: 72% 28%;
  }

  .hero-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trailers-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-tile-featured {
    grid-column: span 1;
  }

  .gallery-tile-featured img {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

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

  .companion-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .container {
    width: calc(100% - 32px);
  }

  .section {
    padding: 68px 0;
  }

  .highlights-grid,
  .characters-grid {
    grid-template-columns: 1fr;
  }

  .book-spread {
    padding: 20px;
  }

  .book-peek-strip {
    gap: 8px;
  }

  .editorial-panel {
    padding: 24px;
  }
}
