/* ================================================================
   INDIGO – Marketing Website Styles
   Dark · Immersive · Animated
================================================================ */

/* ----------------------------------------------------------------
   CSS Custom Properties
---------------------------------------------------------------- */
:root {
  --color-bg:           #080a0f;
  --color-surface:      #0d1117;
  --color-surface-2:    #111825;
  --color-border:       rgba(160, 165, 170, 0.25);
  --color-gold:         #A0A5AA;
  --color-gold-light:   #C0C5CA;
  --color-gold-dim:     rgba(160, 165, 170, 0.4);
  --color-off-white:    #e8e0d0;
  --color-muted:        rgba(232, 224, 208, 0.55);
  --color-indigo:       #3a5f8a;
  --color-indigo-light: #5b8fc4;
  --color-smoke:        rgba(8, 10, 15, 0.72);

  --nav-height:         50px;
  --font-display:       'Cinzel Decorative', serif;
  --font-heading:       'Cinzel', serif;
  --font-body:          'EB Garamond', serif;
  --font-nav:           'GoudyOldStyleBT-Bold', Georgia, serif;

  --ease-out-quart:     cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out-sine:   cubic-bezier(0.37, 0, 0.63, 1);
}

/* ----------------------------------------------------------------
   Reset & Base
---------------------------------------------------------------- */
@font-face {
  font-family: 'GoudyOldStyleBT-Bold';
  src: url('../Assets/GoudyOldStyleBT-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'TrajanPro-Bold';
  src: url('../Assets/TrajanPro-Bold.otf') format('opentype'),
       url('../Assets/TrajanPro-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--color-bg);
  color: var(--color-off-white);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.7;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

/* ----------------------------------------------------------------
   Utility
---------------------------------------------------------------- */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  text-shadow: 0 0 40px rgba(201, 168, 76, 0.5);
}

.section-divider {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(160, 165, 170, 0.6), transparent);
  margin: 1.2rem auto 1.8rem;
}

.section-intro {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--color-muted);
  max-width: 680px;
  margin: 0 auto;
  font-style: italic;
  letter-spacing: 0.03em;
}

/* ----------------------------------------------------------------
   Scroll-reveal base states
---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s var(--ease-out-quart),
              transform 0.85s var(--ease-out-quart);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade-only reveal — for absolutely-positioned elements that
   already manage their own transform (e.g. gallery buttons) */
.reveal-fade {
  opacity: 0;
  transition: opacity 0.85s var(--ease-out-quart);
}
.reveal-fade.visible {
  opacity: 1;
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.38s; }
.delay-4 { transition-delay: 0.52s; }
.delay-5 { transition-delay: 0.68s; }

/* fade-in-up used on hero (runs once on load) */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s var(--ease-out-quart) forwards;
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ?? entrance keyframes ?? */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes riseGlow {
  from { opacity: 0; transform: translateY(18px) scale(0.96); filter: brightness(0.6); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    filter: brightness(1);   }
}

/* Nav logo entrance */
.nav-logo-enter {
  opacity: 0;
  animation: slideDown 2.0s cubic-bezier(0.16,1,0.3,1) forwards;
  animation-delay: 0.2s;
}

/* Nav link entrance – delay set via inline style from JS */
.nav-link-enter {
  opacity: 0;
  animation: slideDown 1.8s cubic-bezier(0.16,1,0.3,1) forwards;
}

/* ----------------------------------------------------------------
   MUSIC TOGGLE
---------------------------------------------------------------- */
.music-toggle {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 3000;
  background: rgba(8, 10, 15, 0.55);
  border: 1px solid rgba(160, 165, 170, 0.2);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(6px);
  padding: 0;
}

.music-toggle:hover {
  opacity: 0.9;
  border-color: rgba(160, 130, 80, 0.5);
}

.music-icon {
  width: 16px;
  height: 16px;
  fill: rgba(180, 150, 90, 0.8);
  stroke: none;
}

.music-icon-off line {
  stroke: rgba(180, 150, 90, 0.8);
}

/* ----------------------------------------------------------------
   NAVIGATION
---------------------------------------------------------------- */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2000;
  height: var(--nav-height);
  transition: background 0.4s ease, box-shadow 0.4s ease;
  background: transparent;
  pointer-events: auto;
}

#main-nav.scrolled {
  background: rgba(8, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.6), 0 1px 0 var(--color-border);
}

.nav-container {
  max-width: 1600px;
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 0 20px rgba(201,168,76,0.5));
  transition: filter 0.3s;
}
.nav-logo-img:hover { 
  filter: drop-shadow(0 0 35px rgba(201,168,76,0.8)); 
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-nav);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 1px;
  background: var(--color-gold);
  transition: left 0.35s var(--ease-out-quart),
              right 0.35s var(--ease-out-quart);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-gold-light);
}

.nav-link:hover::after,
.nav-link.active::after {
  left: 0; right: 0;
}

/* Hamburger toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-gold);
  transition: transform 0.35s, opacity 0.35s;
}
.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); }

/* ----------------------------------------------------------------
   SECTION BASE
---------------------------------------------------------------- */
.section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* ================================================================
   SECTION 1 – HERO
================================================================ */
.section-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Hero background layers */
.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-bg-image.active {
  opacity: 1;
}

.hero-bg-image.inactive {
  opacity: 0;
}

/* Layered dark smoke overlay */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: none;
  z-index: 1;
}

/* Particle canvas */
#hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: calc(var(--nav-height) + 2rem) 2rem 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 1200px;
}

/* Hero image assets */
.hero-subtitle,
.hero-native-title {
  position: relative;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-subtitle-img,
.hero-native-img {
  transition: opacity 1.2s ease-in-out;
  display: block;
  margin: 0 auto;
}

.hero-subtitle-img.active,
.hero-native-img.active {
  opacity: 1;
  position: relative;
}

.hero-subtitle-img.inactive,
.hero-native-img.inactive {
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-native-img {
  max-width: 100%;
  max-height: 42px;
  width: auto;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(201,168,76,0.5));
}

.hero-subtitle-img {
  max-width: min(260px, 74vw);
  width: 100%;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.9));
}

.hero-title-img {
  max-width: none;
  width: min(790px, 99vw);
  position: relative;
  left: 21px;
  margin-bottom: -2rem;
  filter: drop-shadow(0 0 60px rgba(201,168,76,0.35))
          drop-shadow(0 4px 30px rgba(0,0,0,0.8));
  animation: titleGlow 4s ease-in-out infinite alternate;
}
@keyframes titleGlow {
  from { filter: drop-shadow(0 0 40px rgba(201,168,76,0.3)) drop-shadow(0 4px 30px rgba(0,0,0,0.8)); }
  to   { filter: drop-shadow(0 0 80px rgba(201,168,76,0.65)) drop-shadow(0 4px 30px rgba(0,0,0,0.8)); }
}

.hero-tagline {
  position: absolute;
  bottom: 16.5%;
  left: 0;
  right: 0;
  z-index: 4;
  text-align: center;
  pointer-events: none;
}

.hero-tagline-img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(768px, 90vw);
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.9));
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transition: opacity 0.3s ease-in-out;
}

.hero-tagline-img.writing {
  animation: writeIn 3s linear forwards;
}

.hero-tagline-img.writing-fast {
  animation: writeIn 3s linear forwards;
}

.hero-tagline-img.writing-slow {
  animation: writeIn 12s linear forwards;
}

/* Second Watauga tagline sits below the first */
.tagline-young-men {
  top: 3.2rem;
}

.hero-tagline-img.fading {
  animation: fadeOutTagline 0.5s ease-out forwards;
}

@keyframes writeIn {
  0% {
    opacity: 1;
    clip-path: inset(0 100% 0 0);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0% 0 0);
  }
}

@keyframes fadeOutTagline {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* CTA Button */
.hero-cta {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  z-index: 4;
  text-align: center;
}

.hero-enter-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0.45;
  transition: opacity 0.4s ease, transform 0.4s ease;
  animation: arrowFloat 3s ease-in-out infinite;
}

.hero-enter-link:hover {
  opacity: 0.75;
  transform: translateY(3px);
}

.hero-enter-arrow {
  width: 36px;
  height: 22px;
  stroke: #a0654a;
  stroke-width: 2.5;
}

@keyframes arrowFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* Scroll indicator - hidden, replaced by button */
.hero-scroll-indicator {
  display: none !important;
}
}

.scroll-arrow {
  width: 28px; height: 28px;
  border-right: 2px solid var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
  transform: rotate(45deg);
  opacity: 0.7;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
  50%       { transform: translateX(-50%) translateY(10px); opacity: 1; }
}

/* fade-in-up delays for hero stack – rhythmic 0.18s beat */
.hero-title         { animation-delay: 0.65s;  animation-duration: 1.1s; }
.hero-subtitle      { animation-delay: 0.92s;  animation-duration: 0.95s; }
.hero-native-title  { animation-delay: 1.10s;  animation-duration: 0.95s; }
.hero-tagline       { animation-delay: 1.28s;  animation-duration: 0.95s; }
.hero-cta           { animation-delay: 1.52s;  animation-duration: 0.9s; }

/* ================================================================
   SECTION 2 – THE WORLD OF INDIGO
================================================================ */
.section-world {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--nav-height) 2rem 0;
  gap: 0;
  min-height: 100vh;
}

/* Full-bleed map background */
.world-map-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-attachment: scroll;
  z-index: 0;
}

.world-map-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% 50%, rgba(8,10,15,0.15) 0%, rgba(8,10,15,0.5) 100%),
    linear-gradient(180deg, rgba(8,10,15,0.75) 0%, rgba(8,10,15,0.2) 25%,
                             rgba(8,10,15,0.2) 75%, rgba(8,10,15,0.85) 100%);
  z-index: 1;
}

/* ---- Gallery ---- */
.world-gallery-wrapper {
  position: relative;
  z-index: 2;
  width: min(680px, 90vw);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.world-gallery {
  position: relative;
  width: 100%;
  /* Height maintained by aspect ratio of displayed image */
  aspect-ratio: 16 / 10;
  background: transparent;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: none;
  box-shadow:
    0 8px 60px rgba(0,0,0,0.85),
    0 0 80px rgba(58,95,138,0.25);
  border-radius: 2px;
}

/* JS controls opacity via inline style for the crossfade.
   Active slide gets opacity: 1 during its on-screen phase. */

/* Caption bar */
.gallery-caption-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.4rem 0;
  border-top: 1px solid var(--color-border);
  margin-top: 0.4rem;
}

#gallery-caption {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--color-gold-light);
  letter-spacing: 0.06em;
  min-height: 1.4em;
  text-shadow: 0 0 20px rgba(201,168,76,0.45);
}

@keyframes captionSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.caption-animate {
  animation: captionSlideIn 0.55s var(--ease-out-quart) forwards;
}

.gallery-counter {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--color-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Prev / Next buttons */
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(8,10,15,0.65);
  border: 1px solid var(--color-border);
  color: var(--color-gold);
  font-size: 2rem;
  line-height: 1;
  width: 44px; height: 58px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s, transform 0.2s;
  z-index: 5;
  backdrop-filter: blur(6px);
}

.gallery-btn:hover {
  background: rgba(201,168,76,0.15);
  color: var(--color-gold-light);
  transform: translateY(-50%) scale(1.1);
}

.gallery-btn-prev { left: -58px; }
.gallery-btn-next { right: -58px; }

/* Progress dots */
.gallery-dots {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.2rem;
  max-width: 100%;
}

.gallery-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(201,168,76,0.25);
  border: 1px solid var(--color-gold-dim);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  flex-shrink: 0;
}

.gallery-dot.active {
  background: var(--color-gold);
  transform: scale(1.35);
}

/* ================================================================
   SECTION STUBS (3, 4, 5)
================================================================ */
.section-stub {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 4rem) 2rem 5rem;
}

.stub-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%,
              rgba(58,95,138,0.08) 0%, transparent 70%);
  z-index: 0;
}

/* Alternating top border accent */
.section-stub::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-dim), transparent);
}

.stub-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  width: 100%;
}

.stub-header-img {
  max-width: min(560px, 85vw);
  margin: 0 auto 0.5rem;
  filter: drop-shadow(0 0 30px rgba(201,168,76,0.3));
}

.stub-placeholder-text {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--color-muted);
  margin-top: 2.5rem;
  text-transform: uppercase;
}

/* ---- Series covers ---- */
.series-covers {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: nowrap;
  margin-top: 2.5rem;
}

.series-cover-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.series-cover-link {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.series-cover {
  width: 240px;
  border: none;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7);
  transition: transform 0.4s var(--ease-out-quart), box-shadow 0.4s;
  border-radius: 2px;
}

.series-cover:hover,
.series-cover-link:hover .series-cover {
  transform: translateY(-8px) scale(1.35);
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  z-index: 10;
  position: relative;
}

.series-cover-placeholder {
  width: 240px;
  aspect-ratio: 2 / 3;
  border: none;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7);
  border-radius: 2px;
  background: rgba(32,26,16,0.80);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  transition: transform 0.4s var(--ease-out-quart), box-shadow 0.4s;
}

.series-cover-wrap:hover .series-cover-placeholder {
  transform: translateY(-8px) scale(1.35);
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  z-index: 10;
  position: relative;
}

.series-cover-placeholder::before {
  content: '';
  display: block;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-gold-dim);
  border-radius: 50%;
  opacity: 0.58;
}

.series-cover-placeholder-text {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold-dim);
  text-align: center;
  opacity: 0.85;
}

.cover-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-light);
}

.cover-label-img {
  max-width: none;
  width: auto;
  height: auto;
  max-height: 30px;
  display: block;
  margin: 0 auto;
  transform: scale(0.5);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.7));
  transition: filter 0.3s;
}

.series-cover-wrap:hover .cover-label-img {
  filter: drop-shadow(0 0 12px rgba(201,168,76,0.5)) drop-shadow(0 2px 8px rgba(0,0,0,0.7));
}

/* ---- Book One images ---- */
.book-one-images {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
  margin-top: 2rem;
  width: 100%;
}

.book-one-left-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 0 0 auto;
  height: 75vh;
  max-height: 75vh;
}

.book-one-right-stack {
  display: flex;
  align-items: flex-start;
  flex: 0 0 auto;
}

.book-one-cover-link {
  display: contents;
}

.book-one-stack-image {
  width: auto;
  height: calc((75vh - 1rem) / 2);
  max-height: calc((75vh - 1rem) / 2);
  object-fit: contain;
  border: none;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out-quart), box-shadow 0.4s;
}

.book-one-stack-image:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.book-one-blurb {
  height: 75vh;
  max-height: 75vh;
  width: auto;
  object-fit: contain;
  object-position: top center;
  align-self: flex-start;
  filter: drop-shadow(0 8px 40px rgba(0,0,0,0.7)) drop-shadow(0 0 30px rgba(201,168,76,0.12));
  transition: filter 0.4s;
}

.book-one-blurb:hover {
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.8));
}

@media (max-width: 1200px) {
  .book-one-images {
    flex-direction: column;
    align-items: center;
  }

  .book-one-stack-image {
    height: auto;
    max-height: none;
    width: 90%;
  }

  .book-one-left-stack {
    height: auto;
    max-height: none;
    width: 90%;
  }

  .book-one-right-stack {
    width: 90%;
  }

  .book-one-blurb {
    height: auto;
    max-height: none;
    width: 90%;
  }
}

/* ---- Book One sub-nav + panels ---- */
.section-book-one {
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding-top: calc(var(--nav-height) + 3rem);
}

.book-one-subnav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 0;
  margin-bottom: 2.5rem;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.book-one-subnav-btn {
  background: transparent;
  border: none;
  color: var(--color-muted);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.85rem 2.6rem;
  cursor: pointer;
  transition: color 0.3s, background 0.3s;
}

.book-one-subnav-btn:hover {
  color: var(--color-gold-light);
  background: rgba(201, 168, 76, 0.06);
}

.book-one-subnav-btn.active {
  color: var(--color-gold-light);
  background: rgba(201, 168, 76, 0.1);
  box-shadow: inset 0 -2px 0 var(--color-gold);
}

.book-one-subnav-divider {
  width: 1px;
  height: 36px;
  background: var(--color-border);
  flex-shrink: 0;
}

.book-one-panel {
  width: 100%;
  position: relative;
  z-index: 1;
  display: none;
  padding: 0 2rem 5rem;
}

.book-one-panel > .stub-content {
  margin-left: auto;
  margin-right: auto;
}

.book-one-panel.active {
  display: block;
}

/* ---- World of Indigo sub-nav + panels (same styling as book-one) ---- */
.section-world-of-indigo {
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: calc(var(--nav-height) + 1rem);
  padding-left: 0;
  padding-right: 0;
}

/* World of Indigo container with left nav and right content */
.world-container {
  display: flex;
  gap: 0.2rem;
  width: 100%;
  max-width: none;
  padding: 1rem 1rem 2rem 1rem;
  justify-content: flex-start;
}

.world-subnav {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  flex-shrink: 0;
  width: auto;
}

.world-subnav-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  display: inline-block;
  line-height: 0;
}

.world-subnav-btn img {
  display: block;
  width: auto;
  height: auto;
  transform: scale(0.38);
  transform-origin: left center;
  transition: opacity 0.3s ease;
}

/* Show inactive (silver/gunmetal) by default, hide active (gold) */
.world-subnav-btn .link-active {
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%) scale(0.38);
  transform-origin: left center;
}

.world-subnav-btn .link-inactive {
  opacity: 1;
}

/* On hover, start to show gold */
.world-subnav-btn:hover .link-active {
  opacity: 0.6;
}

.world-subnav-btn:hover .link-inactive {
  opacity: 0.4;
}

/* When active, show gold fully, hide silver/gunmetal */
.world-subnav-btn.active .link-active {
  opacity: 1;
}

.world-subnav-btn.active .link-inactive {
  opacity: 0;
}

.world-content {
  flex: 1;
  min-width: 0;
}

.world-panel {
  width: 100%;
  position: relative;
  z-index: 1;
  display: none;
  padding: 0 0 5rem 0;
}

.world-panel > .stub-content {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
  width: 100%;
  padding-left: 0;
  text-align: left;
}

.world-panel.active {
  display: block;
}

.warrior-hero-new {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: nowrap;
  margin-top: 0.5rem;
  margin-left: 0;
  padding-left: 0;
  max-height: none;
}

/* For the Scenes panel - need to contain the map background */
#panel-scenes-from-story {
  min-height: 100vh;
  padding: 0;
}

#panel-scenes-from-story .world-map-bg,
#panel-scenes-from-story .world-map-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#panel-scenes-from-story .world-gallery-wrapper {
  position: relative;
  z-index: 1;
  margin-top: 10vh;
}

/* Warrior panel - new 3-column layout */
.warrior-title-header {
  max-width: min(380px, 70vw);
  margin: 0 auto 0.3rem;
  filter: drop-shadow(0 0 25px rgba(201,168,76,0.45));
}

/* Left: Yona Canon portrait */
.warrior-left {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  margin-left: 0;
  padding-left: 0;
}

.warrior-canon-img {
  width: auto;
  height: 700px;
  max-height: none;
  object-fit: contain;
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.7), 0 0 30px rgba(201,168,76,0.12);
  border-radius: 2px;
}

/* Center: Blurb - full image, not cropped - DOMINANT SIZE */
.warrior-center {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
}

.warrior-blurb-full {
  width: auto;
  height: 700px;
  max-height: none;
  object-fit: contain;
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.7), 0 0 30px rgba(201,168,76,0.12);
  border-radius: 2px;
}

/* Right: 3 stacked images */
.warrior-right {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: flex-start;
  min-width: 0;
}

.warrior-stack-img {
  width: auto;
  height: calc((700px - 1rem) / 3);
  object-fit: contain;
  border: 1px solid var(--color-border);
  box-shadow: 0 6px 30px rgba(0,0,0,0.6);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out-quart), box-shadow 0.35s;
}

.warrior-stack-img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 50px rgba(0,0,0,0.8), 0 0 30px rgba(201,168,76,0.2);
}

@media (max-width: 1200px) {
  .warrior-hero-new {
    flex-wrap: wrap;
    max-height: none;
  }

  .warrior-canon-img,
  .warrior-blurb-full {
    max-height: 500px;
  }

  .warrior-stack-img {
    max-height: 160px;
  }
}

@media (max-width: 768px) {
  .warrior-hero-new {
    flex-direction: column;
    align-items: center;
  }

  .warrior-left,
  .warrior-center,
  .warrior-right {
    width: 100%;
    justify-content: center;
  }

  .warrior-canon-img,
  .warrior-blurb-full {
    max-width: 90vw;
    height: auto;
  }

  .warrior-right {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .warrior-stack-img {
    max-width: calc(33% - 1rem);
    height: auto;
  }
}

/* ---- Thumbnail grid ---- */
.warrior-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.9rem;
  margin-top: 2.5rem;
  width: 100%;
}

.warrior-thumb {
  position: relative;
  cursor: pointer;
  border: none;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.55);
  transition: transform 0.35s var(--ease-out-quart),
              box-shadow 0.35s var(--ease-out-quart);
}

.warrior-thumb:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 14px 40px rgba(0,0,0,0.75);
  border-color: var(--color-gold-dim);
}

.warrior-thumb img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: filter 0.35s;
}

.warrior-thumb:hover img {
  filter: brightness(1.12) saturate(1.1);
}

.warrior-thumb-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.55rem 0.5rem;
  background: linear-gradient(transparent, rgba(8,10,15,0.9));
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  text-align: center;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}

.warrior-thumb:hover .warrior-thumb-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Lightbox ---- */
.warrior-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out-quart);
}

.warrior-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.warrior-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.warrior-lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  max-width: min(820px, 92vw);
  width: 100%;
  padding: 1rem;
}

.warrior-lb-img {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  border: none;
  box-shadow: 0 20px 80px rgba(0,0,0,0.9);
  border-radius: 2px;
  transform: scale(0.92);
  transition: transform 0.35s var(--ease-out-quart);
}

.warrior-lightbox.open .warrior-lb-img {
  transform: scale(1);
}

.warrior-lb-caption {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold-light);
}

.warrior-lb-close {
  position: absolute;
  top: -0.6rem;
  right: -0.4rem;
  background: rgba(8,10,15,0.85);
  border: 1px solid var(--color-border);
  color: var(--color-gold);
  font-size: 1.6rem;
  line-height: 1;
  width: 36px; height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, color 0.25s;
  border-radius: 50%;
}
.warrior-lb-close:hover { background: rgba(201,168,76,0.2); color: var(--color-gold-light); }

.warrior-lb-prev,
.warrior-lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(8,10,15,0.7);
  border: 1px solid var(--color-border);
  color: var(--color-gold);
  font-size: 2.4rem;
  line-height: 1;
  width: 48px; height: 64px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, color 0.25s, transform 0.2s;
}
.warrior-lb-prev { left: -56px; }
.warrior-lb-next { right: -56px; }
.warrior-lb-prev:hover,
.warrior-lb-next:hover {
  background: rgba(201,168,76,0.15);
  color: var(--color-gold-light);
}

@media (max-width: 720px) {
  .warrior-lb-prev { left: 4px; }
  .warrior-lb-next { right: 4px; }
  .warrior-lb-prev,
  .warrior-lb-next { width: 38px; height: 52px; font-size: 1.8rem; }
}

/* ---- Character grid ---- */

/* Wider content container for 4-col character grid */
.stub-content--wide {
  max-width: 1140px;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem 1rem;
  margin-top: 2rem;
  max-width: 95vw;
  margin-left: auto;
  margin-right: auto;
}

.character-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
}

.character-card:hover {
  transform: scale(1.40);
  z-index: 100;
}

/* Portrait wrapper – uniform height, clipped */
.character-card-portrait {
  width: 100%;
  overflow: hidden;
  border: none;
  border-radius: 2px 2px 0 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.6);
  transition: box-shadow 0.4s var(--ease-out-quart);
  position: relative;
}

.character-canon-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s var(--ease-out-quart), filter 0.4s;
}

.character-card:hover .character-card-portrait {
  box-shadow: 0 20px 70px rgba(0,0,0,0.9);
}

.character-card:hover .character-canon-img {
  filter: brightness(1.08) saturate(1.1);
}

/* Title PNG sits flush below the portrait */
.character-title-img {
  width: auto;
  height: 24px;
  max-width: 150%;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.7));
  transition: filter 0.4s;
  margin-top: -0.3rem;
}

.character-card:hover .character-title-img {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.7));
}

@media (max-width: 900px) {
  .character-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .character-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem 0.8rem;
  }
}

/* ================================================================
   FOOTER
================================================================ */
.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  text-align: center;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.35em;
  color: var(--color-gold);
  text-shadow: 0 0 20px rgba(201,168,76,0.4);
}

.footer-tagline {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.footer-copy {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(232,224,208,0.3);
  text-transform: uppercase;
  margin-top: 0.4rem;
}

/* ================================================================
   RESPONSIVE
================================================================ */

/* ---- Gallery prev/next button offsets ---- */
@media (max-width: 900px) {
  .gallery-btn-prev { left: -12px; }
  .gallery-btn-next { right: -12px; }
}

/* ---- Tablet / large phone: ? 720px ---- */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(8,10,15,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    gap: 0;
    padding: 1.5rem 0 2rem;
    transform: translateY(-110%);
    transition: transform 0.4s var(--ease-out-quart);
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links.open { transform: translateY(0); }

  .nav-links li { width: 100%; text-align: center; }
  .nav-link { display: block; padding: 0.9rem 2rem; font-size: 0.88rem; }
  .nav-link::after { bottom: 2px; }

  .world-gallery-wrapper {
    width: min(440px, 94vw);
  }

  .gallery-btn {
    width: 36px; height: 46px;
    font-size: 1.5rem;
  }

  .gallery-btn-prev { left: -6px; }
  .gallery-btn-next { right: -6px; }
}

/* ---- Small phones: ? 480px ---- */
@media (max-width: 480px) {
  .series-covers { gap: 0.5rem; flex-wrap: nowrap; overflow-x: auto; }
  .series-cover { width: 120px; flex-shrink: 0; }
  .series-cover-placeholder { width: 120px; flex-shrink: 0; }

  .warrior-hero { flex-wrap: wrap; }
  .warrior-canon-wrap { width: min(320px, 88vw); }
  .warrior-portrait,
  .warrior-blurb {
    height: auto;
    width: min(320px, 88vw);
  }
  .warrior-canon-title { max-width: min(510px, 88vw); }
}

/* ================================================================
   MOBILE – single-column responsive overrides (? 768px)
================================================================ */
@media (max-width: 768px) {

  /* ---- Hero: fix iOS background-attachment: fixed ---- */
  .hero-bg-image {
    background-attachment: scroll;
  }

  .hero-content {
    top: auto !important;
    position: relative !important;
    left: auto !important;
    transform: none !important;
    padding: calc(var(--nav-height) + 3rem) 1.2rem 2rem !important;
    gap: 2rem !important;
    width: 100%;
  }

  img.hero-title-img {
    width: min(280px, 82vw) !important;
    max-width: min(280px, 82vw) !important;
    left: 0 !important;
    margin-bottom: 0 !important;
  }

  img.hero-subtitle-img {
    width: min(200px, 62vw) !important;
    max-width: min(200px, 62vw) !important;
  }

  img.hero-native-img {
    max-height: 28px !important;
  }

  .hero-subtitle,
  .hero-native-title {
    height: 28px !important;
    max-height: 28px !important;
    min-height: 28px !important;
  }

  .hero-native-title {
    margin-top: 0 !important;
  }

  .hero-tagline {
    bottom: 22% !important;
    transform: translateY(50%) !important;
  }

  .hero-tagline-img {
    max-width: min(320px, 90vw);
  }

  .hero-cta {
    bottom: 1.2rem !important;
  }

  /* ---- Book One ---- */
  #book-one {
    padding: calc(var(--nav-height) + 2rem) 1rem 3rem !important;
  }

  .book-one-header-img {
    max-width: min(200px, 75vw) !important;
    margin: 0 auto 1rem !important;
  }

  .book-one-images {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.2rem !important;
    flex-wrap: nowrap !important;
  }

  /* display:contents unwraps the left stack so its children become
     direct flex children of .book-one-images — enables order to work
     across the gallery and full-wrap independently */
  .book-one-left-stack {
    display: contents !important;
  }

  /* Mobile order: Full Wrap (1) ? Back Cover Blurb (2) ? Gallery (3) */
  .book-one-stack-image {
    order: 1 !important;
    width: 92vw !important;
    max-width: 92vw !important;
    height: auto !important;
    max-height: none !important;
  }

  .book-one-right-stack {
    order: 2 !important;
    width: 92vw !important;
    align-items: center !important;
  }

  .world-gallery-wrapper.book-one-gallery {
    order: 3 !important;
    width: min(520px, 92vw) !important;
  }

  .book-one-blurb {
    width: 92vw !important;
    max-width: 92vw !important;
    height: auto !important;
    max-height: none !important;
  }

  .book-one-links-row {
    flex-direction: column !important;
    gap: 4rem !important;
    margin-top: 2.5rem !important;
    align-items: center !important;
  }

  .book-one-link:first-child {
    margin-left: 0 !important;
  }

  .book-one-link-img {
    height: 32px !important;
  }

  /* ---- The Series ---- */
  #the-series {
    padding: calc(var(--nav-height) + 2rem) 0.8rem 2rem !important;
  }

  #the-series .stub-header-img {
    max-width: min(280px, 85vw) !important;
  }

  #the-series .series-covers {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1rem !important;
    overflow-x: visible !important;
    align-items: flex-start !important;
  }

  #the-series .series-cover-wrap {
    width: calc(45vw - 1rem) !important;
    max-width: 160px !important;
    align-items: center !important;
  }

  #the-series .series-cover,
  #the-series .series-cover-placeholder {
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
  }

  /* ---- World of Indigo ---- */
  #world-of-indigo {
    padding: calc(var(--nav-height) + 1.5rem) 0.8rem 2rem !important;
  }

  .world-header-img {
    max-width: min(280px, 85vw) !important;
  }

  .world-columns {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.2rem !important;
    flex-wrap: wrap !important;
    margin-bottom: 2rem !important;
  }

  .world-column-img {
    width: min(260px, 72vw) !important;
    max-height: none !important;
  }

  /* World panels – scrollable overlay on mobile */
  .world-panel {
    position: fixed !important;
    top: var(--nav-height) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: calc(100vh - var(--nav-height)) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 2rem 0.8rem 5rem 0.8rem !important;
    z-index: 100 !important;
    background: var(--color-bg);
  }

  /* Warrior panel – stack columns vertically */
  .warrior-hero-new {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
  }

  /* Warrior panel columns: single column on mobile */
  .warrior-columns {
    flex-direction: column !important;
    align-items: center !important;
    width: 90vw !important;
    max-width: 90vw !important;
    gap: 1.2rem !important;
  }

  .warrior-column {
    width: 90vw !important;
    max-width: 90vw !important;
  }

  .warrior-column-img {
    width: 90vw !important;
    max-width: 90vw !important;
    height: auto !important;
    max-height: none !important;
  }

  /* Third column: three images in a row, matching the width above */
  .warrior-stack {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    height: auto !important;
    width: 90vw !important;
    max-width: 90vw !important;
    gap: 0.5rem !important;
  }

  .warrior-stack-img {
    width: calc((90vw - 1rem) / 3) !important;
    height: auto !important;
    max-height: none !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
  }

  .warrior-left,
  .warrior-center,
  .warrior-right {
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .warrior-canon-img,
  .warrior-blurb-full {
    width: 90vw !important;
    height: auto !important;
    max-height: none !important;
  }

  .warrior-right {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .warrior-stack-img {
    width: calc(30vw - 0.5rem) !important;
    height: auto !important;
    max-height: none !important;
  }

  .warrior-title-header {
    max-width: min(260px, 80vw) !important;
  }

  /* Warrior thumb grid – 2 columns on mobile */
  .warrior-thumb-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Character grid – 2 columns */
  .character-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 0.6rem;
  }

  /* Panel back button */
  .panel-back-btn {
    font-size: 0.75rem;
    padding: 0.5rem 0.8rem;
    margin-bottom: 1rem;
  }

  /* World subnav buttons inside panels */
  .world-subnav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
  }

  /* Gallery caption font size */
  #gallery-caption,
  #book-one-gallery-caption {
    font-size: 1rem;
  }

  /* Gallery dots – larger tap targets */
  .gallery-dot {
    width: 10px;
    height: 10px;
  }

  /* Footer */
  .footer-monad-logo {
    max-width: 120px;
  }
}

/* ================================================================
   VERY SMALL PHONES – ? 390px (iPhone SE, older models)
================================================================ */
@media (max-width: 390px) {
  img.hero-title-img {
    width: 88vw !important;
    max-width: 88vw !important;
  }

  img.hero-subtitle-img {
    width: 58vw !important;
    max-width: 58vw !important;
  }

  .hero-tagline-img {
    max-width: 88vw;
  }

  #the-series .series-cover,
  #the-series .series-cover-placeholder {
    width: calc(44vw - 0.5rem) !important;
  }

  .world-column-img {
    width: 80vw !important;
  }

  .book-one-stack-image,
  .book-one-blurb {
    width: 96vw !important;
    max-width: 96vw !important;
  }

  .warrior-stack-img {
    width: calc(29vw - 0.3rem) !important;
  }
}

/* ================================================================
   TOUCH – disable hover transforms that require a mouse
================================================================ */
@media (hover: none) {
  .series-cover:hover,
  .series-cover-link:hover .series-cover,
  .series-cover-wrap:hover .series-cover-placeholder {
    transform: none;
    box-shadow: 0 8px 40px rgba(0,0,0,0.7);
  }

  .character-card:hover {
    transform: none;
  }

  .world-column-link:hover .world-column-img {
    transform: none !important;
    box-shadow: 0 8px 40px rgba(0,0,0,0.7) !important;
  }

  .book-one-stack-image:hover {
    transform: none !important;
    filter: none !important;
  }

  .book-one-blurb:hover {
    filter: none !important;
  }
}
