/* ── BASE / RESET ── */
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
::selection { background: rgba(200,146,42,0.4); color: #fff; }

/* Thin scroll-progress indicator at the very top of the viewport.
   Powered by the scroll-driven-animations CSS spec (Chromium 115+, Edge 115+). */
@supports (animation-timeline: scroll()) {
  body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 100%;
    transform-origin: 0 50%;
    background: linear-gradient(90deg, #c8922a 0%, #ff6030 50%, #00bfff 100%);
    box-shadow: 0 0 12px rgba(200,146,42,0.6);
    z-index: 1000;
    pointer-events: none;
    animation: scrollProgress linear;
    animation-timeline: scroll(root);
  }
  @keyframes scrollProgress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; }
body {
  background: #080808;
  color: #d8d0c0;
  font-family: 'Lora', Georgia, serif;
  line-height: 1.6;
}

/* ── NAV ── */
.site-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(5,5,5,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1a1a1a;
  padding: 0 36px;
  display: flex; justify-content: space-between; align-items: center;
  height: 72px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1;
}
.nav-logo span { color: #c8320a; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: #b0a898;
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  letter-spacing: 1.5px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: #c8320a;
  color: #fff !important;
  padding: 10px 22px;
  font-weight: 700;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 8px 100%);
}

/* ── Hamburger toggle (hidden on desktop, shown ≤768px) ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 210;
  flex-shrink: 0;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #d8d0c0;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) {
  .nav-toggle-bar { transition: none; }
}

/* ── HERO ── */
.hero {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 64px 36px;
  background: #060606;
  min-height: 0;
  gap: 56px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 78% 50%, rgba(200,40,10,0.22) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 22% 30%, rgba(200,146,42,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(100,10,10,0.35) 0%, transparent 70%);
  pointer-events: none;
  animation: heroAura 12s ease-in-out infinite alternate;
}
@keyframes heroAura {
  from { opacity: 0.85; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}
.hero-left { flex: 1; position: relative; z-index: 2; max-width: 640px; }

.hero-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c8922a;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 14px;
  font-weight: 700;
}
.hero-eyebrow::before {
  content: ''; display: block;
  width: 36px; height: 2px; background: #c8922a;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  margin-bottom: 22px;
}
.hero-title em { font-style: italic; color: #c8922a; display: block; }
.hero-desc {
  font-family: 'Lora', serif;
  font-size: 21px;
  color: #c0b8a8;
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 540px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero-primary {
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  background: #c8320a;
  color: #fff;
  padding: 16px 32px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 12px 100%);
  cursor: pointer;
}
.btn-hero-primary:hover { background: #e03a10; }
.btn-hero-secondary {
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border: 2px solid #555;
  color: #c0b8a8;
  padding: 14px 28px;
  cursor: pointer;
  font-weight: 500;
}
.btn-hero-secondary:hover { border-color: #c8922a; color: #fff; }

.hero-right { position: relative; z-index: 2; flex-shrink: 0; }
.hero-book-wrap { position: relative; }
.hero-book {
  width: 280px; height: 408px;
  background: linear-gradient(160deg, #3d1200, #1a0800);
  border: 2px solid #c8922a;
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  color: #c8922a;
  font-size: 17px;
  text-align: center;
  padding: 0;
  box-shadow: 0 0 0 1px rgba(200,146,42,0.2), 0 20px 60px rgba(200,50,10,0.4), 0 40px 100px rgba(0,0,0,0.8);
  line-height: 1.5;
  overflow: hidden;
}
.hero-book img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-book-badge {
  position: absolute;
  top: -16px; right: -22px;
  background: #c8320a;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 16px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 8px 100%);
}

/* ───────────────────────────────────────────────
   TABS — premium glowing buttons at top of page
   ─────────────────────────────────────────────── */
.tabs-bar {
  display: flex;
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(255,255,255,0.025), transparent 75%),
    #050505;
  padding: 14px 36px;
  gap: 14px;
  border-bottom: 1px solid #1a1a1a;
  position: relative;
  /* Anchor offset so #tabs jump-link doesn't get hidden behind the sticky nav (72px) */
  scroll-margin-top: 80px;
}
.tabs-bar::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
}

.tab-btn {
  flex: 1;
  min-height: 56px;
  padding: 10px 18px;
  cursor: pointer;
  text-align: left;
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  font-family: 'Oswald', sans-serif;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
  overflow: visible;
  isolation: isolate;
  opacity: 0.42;
}

/* Top satin highlight */
.tab-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.06) 22%, transparent 50%),
    linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

/* Crisp 1px rim with two-tone (light top, dark bottom) for depth */
.tab-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  pointer-events: none;
  z-index: 2;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.25);
}

.tab-btn > * { position: relative; z-index: 3; }

.tab-btn:hover {
  opacity: 0.78;
  transform: translateY(-2px);
}
.tab-btn.active {
  opacity: 1;
  transform: translateY(-4px);
}

/* Connecting bar that ties active tab to the panel below */
.tab-btn.active::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0.08) 22%, transparent 50%),
    linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.22) 100%);
}

/* ── Icon disc — refined, semi-transparent dark with colored glyph ── */
.tab-btn .tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.15) 35%, rgba(0,0,0,0.25) 100%);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.5),
    inset 0 -2px 4px rgba(0,0,0,0.35),
    0 2px 6px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.18);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease, box-shadow 0.35s ease;
}
.tab-btn .tab-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
  transition: stroke 0.3s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  color: #ffffff;
  stroke: currentColor;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.35));
}
.tab-btn.active .tab-icon {
  transform: scale(1.08);
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,1) 0%, rgba(255,255,255,0.92) 60%, rgba(255,255,255,0.82) 100%);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.95),
    inset 0 -2px 4px rgba(0,0,0,0.1),
    0 4px 14px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.7);
  animation: tabIconPulse 3.2s ease-in-out infinite;
}
.tab-btn:hover:not(.active) .tab-icon { transform: scale(1.04); }
.tab-btn:hover:not(.active) .tab-icon svg { color: #ffffff; }

/* ── Typography ── */
.tab-btn .tab-name {
  font-size: 17px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  font-weight: 700;
  line-height: 1.05;
  color: currentColor;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.tab-btn .tab-sub {
  font-family: 'Lora', serif;
  font-size: 12px;
  display: block;
  margin-top: 3px;
  letter-spacing: 0.3px;
  color: currentColor;
  opacity: 0.92;
  font-style: italic;
}

/* ─── STANDALONE / NEW RELEASE — molten orange, black text ─── */
.tab-standalone {
  background: linear-gradient(140deg, #ffb95c 0%, #ff8520 50%, #e85d00 100%);
  color: #1a0a00;
  font-family: 'DM Serif Display', 'Playfair Display', serif;
  box-shadow:
    0 4px 14px rgba(232,93,0,0.28),
    0 0 24px rgba(255,140,30,0.18),
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -8px 24px rgba(120,30,0,0.25);
}
.tab-standalone .tab-name {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  letter-spacing: 0.5px;
  font-weight: 900;
  text-transform: none;
  color: #1a0a00;
  text-shadow: 0 1px 0 rgba(255,255,255,0.25);
  line-height: 1.05;
}
.tab-standalone:not(.active) .tab-icon svg { color: #fff; }
.tab-standalone.active .tab-icon svg { color: #b04200; stroke: #b04200; filter: drop-shadow(0 0 2px rgba(255,140,0,0.6)); }
.tab-standalone:hover {
  box-shadow:
    0 8px 28px rgba(255,140,30,0.5),
    0 0 50px rgba(255,140,30,0.3),
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -8px 24px rgba(120,30,0,0.25);
}
.tab-standalone.active {
  background: linear-gradient(140deg, #ffd089 0%, #ffa540 50%, #ff7510 100%);
  box-shadow:
    0 0 0 1px rgba(255,200,100,0.7),
    0 0 18px rgba(255,180,80,0.85),
    0 0 50px rgba(255,140,30,0.65),
    0 0 110px rgba(255,100,20,0.4),
    0 12px 40px rgba(180,60,0,0.55),
    inset 0 2px 1px rgba(255,255,255,0.7),
    inset 0 -10px 28px rgba(120,30,0,0.35),
    inset 0 0 60px rgba(255,200,140,0.25);
  animation: tabBreathStandalone 4.5s ease-in-out infinite;
}
@keyframes tabBreathStandalone {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,200,100,0.7), 0 0 18px rgba(255,180,80,0.85), 0 0 50px rgba(255,140,30,0.65), 0 0 110px rgba(255,100,20,0.4),  0 12px 40px rgba(180,60,0,0.55), inset 0 2px 1px rgba(255,255,255,0.7), inset 0 -10px 28px rgba(120,30,0,0.35), inset 0 0 60px rgba(255,200,140,0.25); }
  50%      { box-shadow: 0 0 0 1px rgba(255,200,100,0.8), 0 0 28px rgba(255,180,80,1),    0 0 70px rgba(255,140,30,0.85), 0 0 140px rgba(255,100,20,0.55), 0 12px 40px rgba(180,60,0,0.55), inset 0 2px 1px rgba(255,255,255,0.8), inset 0 -10px 28px rgba(120,30,0,0.35), inset 0 0 60px rgba(255,200,140,0.35); }
}

/* ─── WSI — electric cyan-blue ─── */
.tab-wsi {
  background: linear-gradient(140deg, #2a9eff 0%, #0070e8 50%, #0048b0 100%);
  color: #d8fff5;
  font-family: 'Orbitron', sans-serif;
  box-shadow:
    0 4px 14px rgba(0,80,200,0.35),
    0 0 24px rgba(0,140,255,0.18),
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -8px 24px rgba(0,30,90,0.3);
}
.tab-wsi .tab-name { font-family: 'Orbitron', sans-serif; letter-spacing: 2.5px; }
.tab-wsi:not(.active) .tab-icon svg { color: #fff; }
.tab-wsi.active .tab-icon svg { color: #003a85; stroke: #003a85; filter: drop-shadow(0 0 2px rgba(0,140,255,0.6)); }
.tab-wsi:hover {
  box-shadow:
    0 8px 28px rgba(40,140,255,0.55),
    0 0 50px rgba(0,160,255,0.3),
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -8px 24px rgba(0,30,90,0.3);
}
.tab-wsi.active {
  background: linear-gradient(140deg, #5cc0ff 0%, #1885ff 50%, #0058d0 100%);
  color: #e8fff8;
  box-shadow:
    0 0 0 1px rgba(120,200,255,0.7),
    0 0 18px rgba(140,210,255,0.85),
    0 0 50px rgba(0,160,255,0.7),
    0 0 110px rgba(0,120,255,0.4),
    0 12px 40px rgba(0,50,150,0.6),
    inset 0 2px 1px rgba(255,255,255,0.7),
    inset 0 -10px 28px rgba(0,30,90,0.4),
    inset 0 0 60px rgba(140,200,255,0.22);
  animation: tabBreathWsi 4.5s ease-in-out infinite;
}
@keyframes tabBreathWsi {
  0%, 100% { box-shadow: 0 0 0 1px rgba(120,200,255,0.7), 0 0 18px rgba(140,210,255,0.85), 0 0 50px rgba(0,160,255,0.7), 0 0 110px rgba(0,120,255,0.4),  0 12px 40px rgba(0,50,150,0.6), inset 0 2px 1px rgba(255,255,255,0.7), inset 0 -10px 28px rgba(0,30,90,0.4), inset 0 0 60px rgba(140,200,255,0.22); }
  50%      { box-shadow: 0 0 0 1px rgba(120,200,255,0.85), 0 0 28px rgba(140,210,255,1), 0 0 70px rgba(0,160,255,0.9), 0 0 140px rgba(0,120,255,0.55), 0 12px 40px rgba(0,50,150,0.6), inset 0 2px 1px rgba(255,255,255,0.8), inset 0 -10px 28px rgba(0,30,90,0.4), inset 0 0 60px rgba(140,200,255,0.32); }
}
.tab-wsi.active .tab-name { text-shadow: 0 0 18px rgba(216,255,245,0.85), 0 1px 3px rgba(0,40,100,0.6); }

/* ─── JAB BOONE — bloody crimson, typewriter detective ─── */
.tab-jab {
  background: linear-gradient(140deg, #e85020 0%, #c8200a 50%, #800800 100%);
  color: #ffffff;
  font-family: 'Special Elite', 'Courier New', monospace;
  box-shadow:
    0 4px 14px rgba(160,20,5,0.35),
    0 0 24px rgba(220,40,10,0.18),
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -8px 24px rgba(60,8,0,0.35);
}
.tab-jab .tab-name {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-style: normal;
  letter-spacing: 1.5px;
  font-weight: 400;
  font-size: 16px;
  text-transform: uppercase;
}
.tab-jab .tab-sub { font-family: 'Special Elite', 'Courier New', monospace; font-style: normal; }
.tab-jab:not(.active) .tab-icon svg { color: #fff; }
.tab-jab.active .tab-icon svg { color: #5a0a00; stroke: #5a0a00; filter: drop-shadow(0 0 2px rgba(255,80,40,0.6)); }
.tab-jab:hover {
  box-shadow:
    0 8px 28px rgba(220,60,15,0.55),
    0 0 50px rgba(220,40,10,0.3),
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -8px 24px rgba(60,8,0,0.35);
}
.tab-jab.active {
  background: linear-gradient(140deg, #ff7548 0%, #e02a10 50%, #9a0c00 100%);
  box-shadow:
    0 0 0 1px rgba(255,120,90,0.7),
    0 0 18px rgba(255,140,100,0.85),
    0 0 50px rgba(220,40,10,0.7),
    0 0 110px rgba(180,30,0,0.4),
    0 12px 40px rgba(100,15,0,0.6),
    inset 0 2px 1px rgba(255,255,255,0.65),
    inset 0 -10px 28px rgba(60,8,0,0.4),
    inset 0 0 60px rgba(255,140,100,0.22);
  animation: tabBreathJab 4.5s ease-in-out infinite;
}
@keyframes tabBreathJab {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,120,90,0.7), 0 0 18px rgba(255,140,100,0.85), 0 0 50px rgba(220,40,10,0.7), 0 0 110px rgba(180,30,0,0.4),  0 12px 40px rgba(100,15,0,0.6), inset 0 2px 1px rgba(255,255,255,0.65), inset 0 -10px 28px rgba(60,8,0,0.4), inset 0 0 60px rgba(255,140,100,0.22); }
  50%      { box-shadow: 0 0 0 1px rgba(255,120,90,0.85), 0 0 28px rgba(255,140,100,1), 0 0 70px rgba(220,40,10,0.9), 0 0 140px rgba(180,30,0,0.55), 0 12px 40px rgba(100,15,0,0.6), inset 0 2px 1px rgba(255,255,255,0.75), inset 0 -10px 28px rgba(60,8,0,0.4), inset 0 0 60px rgba(255,140,100,0.32); }
}
.tab-jab.active .tab-name { text-shadow: 0 0 18px rgba(255,180,150,0.55), 0 1px 3px rgba(80,10,0,0.6); }

/* ── Pulse animation for active icon ── */
@keyframes tabIconPulse {
  0%, 100% { box-shadow: inset 0 1px 2px rgba(255,255,255,0.9), inset 0 -2px 4px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.4), 0 0 0 rgba(255,255,255,0); }
  50%      { box-shadow: inset 0 1px 2px rgba(255,255,255,0.9), inset 0 -2px 4px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.4), 0 0 24px rgba(255,255,255,0.4); }
}

/* ── Travelling orb light along the active tab's border ── */
/* Diffuse moving glow — no hard edge, pure light */
.tab-orb {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255,255,255,0.55) 0%,
    rgba(255,255,255,0.22) 28%,
    rgba(255,255,255,0.08) 55%,
    transparent 75%
  );
  filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  offset-anchor: center;
  offset-distance: 0%;
  offset-path: inset(0 round 12px);
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
}
.tab-btn.active .tab-orb {
  opacity: 1;
  animation: tabOrbTravel 12s linear infinite;
}
@keyframes tabOrbTravel {
  from { offset-distance: 0%; }
  to   { offset-distance: 100%; }
}

/* Tab-specific tinted glow */
.tab-standalone.active .tab-orb {
  background: radial-gradient(
    circle,
    rgba(255,245,220,0.6) 0%,
    rgba(255,210,160,0.25) 30%,
    rgba(255,170,80,0.08) 55%,
    transparent 75%
  );
}
.tab-wsi.active .tab-orb {
  background: radial-gradient(
    circle,
    rgba(230,250,255,0.6) 0%,
    rgba(170,220,255,0.25) 30%,
    rgba(80,170,255,0.08) 55%,
    transparent 75%
  );
}
.tab-jab.active .tab-orb {
  background: radial-gradient(
    circle,
    rgba(255,235,225,0.6) 0%,
    rgba(255,200,180,0.25) 30%,
    rgba(255,120,80,0.08) 55%,
    transparent 75%
  );
}

@media (prefers-reduced-motion: reduce) {
  .tab-btn.active .tab-orb { animation: none; opacity: 0; }
}

/* ── PANELS ── */
.tab-panel { display: none; }
.tab-panel.active { display: block; }
/* Anchor offset so #panel-* jump-links don't get hidden behind the sticky nav (72px) */
.tab-panel { scroll-margin-top: 80px; }

.panel-header {
  padding: 28px 36px 20px;
  border-bottom: 1px solid #1a1a1a;
}
.panel-header h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.panel-header p {
  font-family: 'Lora', serif;
  font-size: 19px;
  line-height: 1.5;
  max-width: 720px;
}

.panel-standalone { background: #080808; }
.panel-standalone .panel-header h2 { color: #c8922a; font-family: 'Playfair Display', serif; }
.panel-standalone .panel-header p { color: #a8a098; }

.panel-wsi {
  background: #04080f;
  position: relative; overflow: hidden;
}
.stars-bg { position: absolute; inset: 0; pointer-events: none; }
.star {
  position: absolute;
  border-radius: 50%;
  background: white;
  animation: starTwinkle 4s ease-in-out infinite;
}
.star:nth-child(3n)   { animation-duration: 6s; animation-delay: -1.2s; }
.star:nth-child(5n)   { animation-duration: 5s; animation-delay: -2.8s; }
.star:nth-child(7n+1) { animation-duration: 7s; animation-delay: -0.7s; }
@keyframes starTwinkle {
  0%, 100% { opacity: var(--star-base, 0.4); transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.3); }
}
@media (prefers-reduced-motion: reduce) {
  .star { animation: none; }
}
.panel-wsi .panel-header h2 { color: #00bfff; font-family: 'Orbitron', sans-serif; font-size: 14px; letter-spacing: 4px; }
.panel-wsi .panel-header p { color: #6090b0; font-family: 'Orbitron', sans-serif; font-size: 16px; }

.panel-jab {
  background: #060606;
  position: relative;
  overflow: hidden;
}
/* Atmospheric watermarks — fedora top-right, magnifier bottom-left */
.panel-jab::before,
.panel-jab::after {
  content: '';
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
  opacity: 0.035;
  filter: invert(1);
  z-index: 0;
}
.panel-jab::before {
  top: 60px;
  right: -20px;
  width: 280px;
  height: 280px;
  background-image: url('/assets/img/ui/fedora.png');
  transform: rotate(8deg);
}
.panel-jab::after {
  bottom: 100px;
  left: -40px;
  width: 320px;
  height: 320px;
  background-image: url('/assets/img/ui/magnifyingglass.png');
  transform: rotate(-12deg);
}
.panel-jab > * { position: relative; z-index: 1; }
.panel-jab .panel-header h2 { color: #c8320a; font-family: 'Playfair Display', serif; font-style: italic; font-size: 18px; }
.panel-jab .panel-header p { color: #a89890; }

/* ───────────────────────────────────────────────
   NEWSLETTER PAGE
   ─────────────────────────────────────────────── */
.newsletter-page { padding: 60px 32px 80px; }
.newsletter-inner {
  max-width: 640px;
  margin: 0 auto;
}
.newsletter-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c8922a;
  margin-bottom: 14px;
  font-weight: 700;
}
.newsletter-title {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.05;
}
.newsletter-lede {
  font-family: 'Lora', serif;
  font-size: 19px;
  line-height: 1.65;
  color: #c0b8a8;
  margin-bottom: 36px;
}
.newsletter-form {
  background: linear-gradient(160deg, #161616, #0c0c0c);
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 32px;
  position: relative;
}
.newsletter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}
.newsletter-field { display: block; }
.newsletter-label {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
  font-weight: 700;
}
.newsletter-label em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  color: #555;
  font-weight: 400;
  margin-left: 6px;
  font-size: 11px;
}
.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
  width: 100%;
  background: #050505;
  border: 1px solid #333;
  border-radius: 4px;
  color: #fff;
  font-family: 'Lora', serif;
  font-size: 17px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.newsletter-form input:focus {
  outline: none;
  border-color: #c8922a;
  box-shadow: 0 0 0 3px rgba(200,146,42,0.18);
}
.newsletter-submit {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  background: #c8320a;
  color: #fff;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 12px 100%);
  transition: background 0.2s ease;
}
.newsletter-submit:hover { background: #e03a10; }
.newsletter-fineprint {
  margin-top: 18px;
  font-family: 'Lora', serif;
  font-size: 14px;
  color: #666;
  font-style: italic;
}

/* Thank-you variant */
.newsletter-thanks { text-align: left; }
.newsletter-thanks-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.newsletter-back-cta,
.newsletter-amazon-cta {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 28px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.newsletter-back-cta {
  background: #c8320a;
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%);
}
.newsletter-back-cta:hover { background: #e03a10; }
.newsletter-amazon-cta {
  background: transparent;
  color: #c8922a;
  border: 2px solid #c8922a;
}
.newsletter-amazon-cta:hover { background: #c8922a; color: #1a0a00; }

@media (max-width: 600px) {
  .newsletter-row { grid-template-columns: 1fr; }
  .newsletter-title { font-size: 36px; }
  .newsletter-lede { font-size: 17px; }
}

/* ───────────────────────────────────────────────
   ABOUT PAGE
   ─────────────────────────────────────────────── */
.about-page { padding: 60px 32px 80px; }
.about-inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
}
.about-photo-wrap {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
}
.about-photo {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.95) contrast(1.05);
}
.about-photo-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(200,146,42,0.25), transparent 65%);
  filter: blur(24px);
  z-index: -1;
  pointer-events: none;
}
.about-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c8922a;
  margin-bottom: 14px;
  font-weight: 700;
}
.about-name {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 28px;
  line-height: 1.05;
}
.about-bio {
  font-family: 'Lora', serif;
  font-size: 19px;
  line-height: 1.75;
  color: #c0b8a8;
}
.about-bio p { margin-bottom: 20px; }
.about-cta {
  display: inline-block;
  margin-top: 12px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: #c8320a;
  color: #fff;
  padding: 14px 28px;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%);
  transition: background 0.2s ease;
}
.about-cta:hover { background: #e03a10; }

@media (max-width: 768px) {
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-photo-wrap { max-width: 280px; margin: 0 auto; }
  .about-name { font-size: 40px; }
  .about-bio { font-size: 17px; }
}

/* ── About: Selected Works featured trio ── */
.about-featured {
  max-width: 1100px;
  margin: 80px auto 0;
  padding: 0 32px;
}
.about-featured-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 36px;
}
.about-featured-eyebrow .line {
  flex: 1;
  max-width: 240px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,146,42,0.45), transparent);
}
.about-featured-eyebrow .text {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #c8922a;
  font-weight: 700;
}
.about-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.about-feat-card {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  color: #fff !important;          /* break inheritance from .card-* dim glow color */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.about-feat-card:focus-visible { outline: 2px solid #c8922a; outline-offset: 8px; border-radius: 4px; }
/* Cancel any decorative pseudo-elements from .book-card sibling rules */
.about-feat-card::before, .about-feat-card::after { display: none !important; }
.about-feat-card:hover { transform: translateY(-6px); }
.about-feat-card img {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.55);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.about-feat-card.card-standalone:hover img { box-shadow: 0 18px 44px rgba(0,0,0,0.7), 0 0 32px rgba(200,146,42,0.25); }
.about-feat-card.card-wsi:hover img        { box-shadow: 0 18px 44px rgba(0,0,0,0.7), 0 0 32px rgba(0,191,255,0.22); }
.about-feat-card.card-jab:hover img        { box-shadow: 0 18px 44px rgba(0,0,0,0.7), 0 0 32px rgba(200,50,10,0.25); }
.about-feat-meta { display: flex; flex-direction: column; gap: 6px; }
.about-feat-series {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
}
.about-feat-card.card-standalone .about-feat-series { color: #c8922a; }
.about-feat-card.card-wsi .about-feat-series        { color: #00bfff; font-family: 'Orbitron', sans-serif; }
.about-feat-card.card-jab .about-feat-series        { color: #ff6030; }
.about-feat-title {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.about-feat-card.card-standalone .about-feat-title { font-family: 'Playfair Display', serif; }
.about-feat-card.card-wsi .about-feat-title        { font-family: 'Orbitron', sans-serif; font-size: 16px; color: #d8eeff; }
.about-feat-card.card-jab .about-feat-title        { font-family: 'Playfair Display', serif; }

@media (max-width: 768px) {
  .about-featured-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-feat-card img { max-width: 200px; }
}

/* ───────────────────────────────────────────────
   LIBRARY SHOWCASE — wide, low-height blink-refresh strip
   ─────────────────────────────────────────────── */
.library-showcase {
  background: linear-gradient(180deg, #050505 0%, #080808 100%);
  border-bottom: 1px solid #1a1a1a;
  padding: 18px 24px;
  position: relative;
  overflow: hidden;
}
.library-showcase::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}
.library-showcase-track {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
  align-items: stretch;
  min-height: 130px;
}
.library-cover {
  display: block;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.06);
  background: #0a0a0a;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 2 / 3;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.35s ease,
    border-color 0.25s ease,
    filter 0.35s ease;
  filter: saturate(0.85) brightness(0.92);
}
.library-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.library-cover:hover {
  transform: translateY(-4px) scale(1.05);
  filter: saturate(1.1) brightness(1.05);
  z-index: 5;
  box-shadow: 0 14px 28px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.18);
}
.library-cover:focus-visible {
  outline: 2px solid rgba(255,255,255,0.7);
  outline-offset: 2px;
}

/* Per-series accent border on hover */
.library-standalone:hover { border-color: rgba(200,146,42,0.7); box-shadow: 0 14px 28px rgba(0,0,0,0.7), 0 0 22px rgba(200,146,42,0.45); }
.library-wsi:hover        { border-color: rgba(0,191,255,0.7);  box-shadow: 0 14px 28px rgba(0,0,0,0.7), 0 0 22px rgba(0,191,255,0.4); }
.library-jab:hover        { border-color: rgba(200,50,10,0.7);  box-shadow: 0 14px 28px rgba(0,0,0,0.7), 0 0 22px rgba(200,50,10,0.45); }

/* Blink animation: fade out, swap, fade in (driven by JS toggling .is-blinking) */
.library-showcase.is-blinking .library-cover {
  opacity: 0;
  transform: scale(0.96);
}

@media (max-width: 1100px) {
  .library-showcase-track { grid-template-columns: repeat(8, 1fr); }
  .library-cover:nth-child(n+9) { display: none; }
}
@media (max-width: 768px) {
  /* Fewer, wider covers so the 2:3 ratio holds and names aren't side-cropped.
     align-items:start + min-height:0 stops narrow covers stretching tall
     (which made object-fit:cover slice off the edges of the author name). */
  .library-showcase-track { grid-template-columns: repeat(4, 1fr); align-items: start; min-height: 0; }
  .library-cover:nth-child(n+5) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .library-cover, .library-showcase.is-blinking .library-cover { transition: none; opacity: 1; transform: none; }
}

/* ───────────────────────────────────────────────
   RELEASE MARQUEE — animated, continuously scrolling
   ─────────────────────────────────────────────── */
.release-marquee {
  padding: 48px 0 64px;
  position: relative;
}
.marquee-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 40px;
  padding: 0 48px;
}
.marquee-eyebrow .line {
  flex: 1;
  max-width: 280px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,180,80,0.5), transparent);
}
.marquee-eyebrow .text {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #c8922a;
  font-weight: 700;
  white-space: nowrap;
}

.marquee-track-wrap {
  position: relative;
  overflow: hidden;
  padding: 12px 0;
  /* Soft fade at edges for an "infinite" feel */
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marqueeScroll 38s linear infinite;
  padding: 24px 24px;
  align-items: center;
}
.marquee-track-wrap:hover .marquee-track,
.marquee-track:focus-within {
  animation-play-state: paused;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  /* The list is rendered twice — translating by half the total returns to start seamlessly */
  to   { transform: translateX(-50%); }
}

/* ── Marquee slide (clickable book card) ── */
.marquee-slide {
  flex: 0 0 auto;
  width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  text-align: center;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.marquee-slide:hover { transform: translateY(-8px) scale(1.03); }
.marquee-slide:hover .marquee-cover-wrap {
  box-shadow:
    0 26px 64px rgba(0,0,0,0.75),
    0 10px 22px rgba(0,0,0,0.5);
}
.marquee-slide:focus-visible {
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: 8px;
  border-radius: 6px;
}

.marquee-cover-wrap {
  width: 260px;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 18px 50px rgba(0,0,0,0.65),
    0 6px 18px rgba(0,0,0,0.4);
  transition: box-shadow 0.5s ease, transform 0.5s ease;
}
.marquee-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.marquee-glow {
  position: absolute;
  inset: -12px;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
  filter: blur(18px);
}
.marquee-slide:hover .marquee-glow { opacity: 0.85; }
.marquee-slide:hover .marquee-cover-wrap img { transform: scale(1.04); }

/* Per-series glow color */
.marquee-standalone .marquee-glow { background: radial-gradient(circle, rgba(255,140,40,0.7), transparent 65%); }
.marquee-wsi .marquee-glow        { background: radial-gradient(circle, rgba(0,180,255,0.6),  transparent 65%); }
.marquee-jab .marquee-glow        { background: radial-gradient(circle, rgba(220,40,10,0.6),  transparent 65%); }

/* Info block under each cover */
.marquee-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 280px;
}
.marquee-series {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
}
.marquee-standalone .marquee-series { color: #c8922a; }
.marquee-wsi        .marquee-series { color: #00bfff; font-family: 'Orbitron', sans-serif; letter-spacing: 2px; }
.marquee-jab        .marquee-series { color: #ff6030; }

.marquee-title {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
}
.marquee-standalone .marquee-title { font-family: 'Playfair Display', serif; }
.marquee-wsi        .marquee-title { font-family: 'Orbitron', sans-serif; font-size: 22px; letter-spacing: 0.5px; color: #d8eeff; }
.marquee-jab        .marquee-title { font-family: 'Playfair Display', serif; color: #f5e8e0; }

.marquee-cta {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: 6px;
  transition: color 0.25s ease, transform 0.25s ease;
}
.marquee-slide:hover .marquee-cta { color: #fff; transform: translateX(2px); }

/* Reduced motion: stop the scroll */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* Mobile: smaller covers + stronger edge fade so scrolling covers fade out
   gracefully instead of getting hard-chopped at the screen edges */
@media (max-width: 768px) {
  .marquee-track { gap: 20px; padding: 12px 0; }
  .marquee-slide { width: 168px; gap: 12px; }
  .marquee-cover-wrap { width: 150px; }
  .marquee-info { max-width: 168px; }
  .marquee-title { font-size: 18px; }
  .marquee-track-wrap {
    mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 74%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 74%, transparent 100%);
  }
}

/* ── BOOK GRID — three columns, vertical cards, cover-first ── */
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  padding: 44px 48px 72px;
  position: relative;
}
@media (max-width: 1180px) {
  .book-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .book-grid { grid-template-columns: 1fr; }
}

/* ── BOOK CARD — vertical, sophisticated glowing frame ── */
.book-card {
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  padding: 26px 26px 28px;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  isolation: isolate;
}

/* Sophisticated frame: subtle gradient ring, no harsh borders */
.book-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.02) 35%, rgba(0,0,0,0.0) 60%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
  z-index: 0;
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1px;
}
.book-card::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, currentColor, transparent 70%);
  opacity: 0;
  filter: blur(18px);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.4s ease;
}
.book-card:hover::after { opacity: 0.5; }
.book-card > * { position: relative; z-index: 1; }

.book-card:hover {
  transform: translateY(-6px);
}
.book-card:hover .book-cover {
  transform: translateY(-4px) rotate(-0.6deg);
  box-shadow:
    0 22px 50px rgba(0,0,0,0.75),
    0 10px 22px rgba(0,0,0,0.55);
}
.card-standalone:hover .book-cover { box-shadow: 0 22px 50px rgba(0,0,0,0.75), 0 10px 22px rgba(0,0,0,0.55), 0 0 32px rgba(200,146,42,0.18); }
.card-wsi:hover .book-cover        { box-shadow: 0 22px 50px rgba(0,0,0,0.75), 0 10px 22px rgba(0,0,0,0.55), 0 0 32px rgba(0,191,255,0.16); }
.card-jab:hover .book-cover        { box-shadow: 0 22px 50px rgba(0,0,0,0.75), 0 10px 22px rgba(0,0,0,0.55), 0 0 32px rgba(200,50,10,0.18); }

/* Background variation — alternating dark gradients per card position */
.book-card:nth-child(3n+1) { background: radial-gradient(ellipse at 30% 0%, #1c1c1c 0%, #0a0a0a 70%); }
.book-card:nth-child(3n+2) { background: radial-gradient(ellipse at 70% 0%, #181818 0%, #080808 70%); }
.book-card:nth-child(3n+3) { background: radial-gradient(ellipse at 50% 0%, #1a1817 0%, #0c0a08 70%); }

/* ── COVER — the focal point ── */
.book-cover-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 22px;
}
.book-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  text-align: center;
  padding: 14px;
  line-height: 1.4;
  position: relative;
  box-shadow:
    0 12px 32px rgba(0,0,0,0.55),
    0 6px 14px rgba(0,0,0,0.4),
    0 0 1px rgba(255,255,255,0.1);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}
.book-card:hover .book-cover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(0,0,0,0.7), 0 8px 18px rgba(0,0,0,0.5); }
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.book-num-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 11px;
  font-weight: 700;
  border-radius: 3px;
  z-index: 3;
  backdrop-filter: blur(8px);
  background: rgba(0,0,0,0.7);
}

/* ── INFO BLOCK — below cover ── */
.book-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.book-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}
.book-teaser {
  font-family: 'Lora', serif;
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}
.book-btns {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  margin-top: auto;
}
.btn-buy {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 2px;
  font-weight: 700;
}
.btn-more {
  font-family: 'Lora', serif;
  font-size: 14px;
  font-style: italic;
  cursor: pointer;
  margin-left: auto;
  padding: 4px 0;
}

/* ── Per-series card theming (currentColor drives the hover halo) ── */

/* Standalone — molten gold */
.card-standalone { color: rgba(200,146,42,0.45); }
.card-standalone .book-cover { background: linear-gradient(160deg,#1a0e00,#080400); color: #c8922a; }
.card-standalone .book-num-badge { background: rgba(200,146,42,0.92); color: #1a0a00; }
.card-standalone .book-title { font-family: 'Playfair Display',serif; color: #fff; }
.card-standalone .book-teaser { color: #b0a898; }
.card-standalone .btn-buy.primary { background: #c8922a; color: #1a0a00; }
.card-standalone .btn-buy.secondary { border: 1px solid rgba(200,146,42,0.4); color: #c8922a; background: transparent; }
.card-standalone .btn-more { color: #c8922a; }

/* WSI — electric blue */
.card-wsi { color: rgba(0,191,255,0.45); }
.card-wsi .book-cover { background: linear-gradient(160deg,#040d1a,#020608); color: #00bfff; font-family: 'Orbitron',sans-serif; }
.card-wsi .book-num-badge { background: rgba(0,191,255,0.92); color: #002040; }
.card-wsi .book-title { font-family: 'Orbitron',sans-serif; color: #d8eeff; font-size: 22px; letter-spacing: 0.5px; }
.card-wsi .book-teaser { color: #6090b0; }
.card-wsi .btn-buy.primary { background: #00bfff; color: #001a30; }
.card-wsi .btn-buy.secondary { border: 1px solid rgba(0,191,255,0.4); color: #00bfff; background: transparent; }
.card-wsi .btn-more { color: #00bfff; }

/* Jab Boone — bloody crimson */
.card-jab { color: rgba(200,50,10,0.5); }
.card-jab .book-cover { background: linear-gradient(160deg,#1a0505,#060606); color: #c8320a; }
.card-jab .book-num-badge { background: rgba(200,50,10,0.92); color: #fff; }
.card-jab .book-title { font-family: 'Playfair Display',serif; color: #f5e8e0; }
.card-jab .book-teaser { color: #a89890; }
.card-jab .btn-buy.primary { background: #c8320a; color: #fff; }
.card-jab .btn-buy.secondary { border: 1px solid rgba(200,50,10,0.45); color: #ff6030; background: transparent; }
.card-jab .btn-more { color: #ff6030; }

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 500;
  align-items: center; justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  position: relative;
  max-width: 1000px;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  animation: modalIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: 94vh;
  overflow-y: auto;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.94); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.modal-overlay.open .modal-cover {
  animation: modalCoverIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes modalCoverIn {
  from { opacity: 0; transform: translateX(-24px) rotate(-2deg) scale(0.92); }
  to   { opacity: 1; transform: translateX(0) rotate(0) scale(1); }
}
.modal-overlay.open .modal-content > * {
  animation: modalContentIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.modal-overlay.open .modal-content > *:nth-child(1) { animation-delay: 0.10s; }
.modal-overlay.open .modal-content > *:nth-child(2) { animation-delay: 0.16s; }
.modal-overlay.open .modal-content > *:nth-child(3) { animation-delay: 0.22s; }
.modal-overlay.open .modal-content > *:nth-child(4) { animation-delay: 0.28s; }
.modal-overlay.open .modal-content > *:nth-child(5) { animation-delay: 0.34s; }
@keyframes modalContentIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .modal-overlay.open .modal-cover,
  .modal-overlay.open .modal-content > * { animation: none; }
}
.modal-accent-bar { height: 5px; }
.modal-jab .modal-accent-bar { background: linear-gradient(90deg, #c8320a, #ff6030); }
.modal-wsi .modal-accent-bar { background: linear-gradient(90deg, #00bfff, #0080ff); }
.modal-standalone .modal-accent-bar { background: linear-gradient(90deg, #c8922a, #e0b060); }

.modal-inner { display: flex; gap: 44px; padding: 48px; }
.modal-jab .modal-inner { background: #100808; }
.modal-wsi .modal-inner { background: #050a14; }
.modal-standalone .modal-inner { background: #100c05; }

/* Big modal cover — the "click to see large cover" experience */
.modal-cover {
  width: 320px;
  min-height: 460px;
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-align: center;
  padding: 18px;
  line-height: 1.5;
  align-self: flex-start;
  overflow: hidden;
}
.modal-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 3px;
}
.modal-jab .modal-cover { background: linear-gradient(160deg,#2a0808,#0d0505); border: 1px solid #3a1010; color: #c8320a; font-family: 'Playfair Display',serif; box-shadow: 0 12px 48px rgba(200,50,10,0.4), 0 0 80px rgba(200,50,10,0.15); }
.modal-wsi .modal-cover { background: linear-gradient(160deg,#050f20,#020810); border: 1px solid #0a2040; color: #00bfff; font-family: 'Orbitron',sans-serif; font-size: 14px; box-shadow: 0 12px 48px rgba(0,191,255,0.3), 0 0 80px rgba(0,191,255,0.12); }
.modal-standalone .modal-cover { background: linear-gradient(160deg,#2a1500,#0d0a05); border: 2px solid #c8922a; color: #c8922a; font-family: 'Playfair Display',serif; box-shadow: 0 12px 48px rgba(200,146,42,0.35), 0 0 80px rgba(200,146,42,0.15); }

.modal-content { flex: 1; min-width: 0; }
.modal-series-label {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 700;
}
.modal-jab .modal-series-label { color: #ff6030; }
.modal-wsi .modal-series-label { color: #00bfff; }
.modal-standalone .modal-series-label { color: #c8922a; }

.modal-title-text {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 8px;
  color: #fff;
}
.modal-jab .modal-title-text { font-family: 'Playfair Display',serif; }
.modal-wsi .modal-title-text { font-family: 'Orbitron',sans-serif; color: #d0e8ff; font-size: 32px; }
.modal-standalone .modal-title-text { font-family: 'Playfair Display',serif; }

.modal-book-num {
  font-family: 'Lora',serif;
  font-size: 17px;
  margin-bottom: 24px;
  color: #888;
  font-style: italic;
}
.modal-description {
  font-family: 'Lora', serif;
  font-size: 18px;
  line-height: 1.75;
  color: #c8c0b0;
  margin-bottom: 30px;
  border-top: 1px solid #2a2a2a;
  padding-top: 22px;
  white-space: pre-line;
}
.modal-description p { margin-bottom: 14px; }
.modal-description p:last-child { margin-bottom: 0; }
.modal-buy-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-btn {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 22px;
  cursor: pointer;
  border-radius: 2px;
  font-weight: 700;
}
.modal-jab .modal-btn.primary { background: #c8320a; color: #fff; }
.modal-wsi .modal-btn.primary { background: #00bfff; color: #000; }
.modal-standalone .modal-btn.primary { background: #c8922a; color: #000; }
.modal-btn.secondary { border: 2px solid #444; color: #c0b8a8; background: transparent; font-weight: 500; }
.modal-close-btn {
  position: absolute;
  top: 14px; right: 20px;
  color: #888;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  font-weight: 300;
  z-index: 10;
}
.modal-close-btn:hover { color: #fff; }

/* ───────────────────────────────────────────────
   FOOTER — branded, multi-column
   ─────────────────────────────────────────────── */
.site-footer {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(200,146,42,0.04), transparent 70%),
    #030303;
  border-top: 1px solid #1a1a1a;
  margin-top: 60px;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,146,42,0.35), transparent);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 40px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: start;
}
.footer-brand .footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-brand .footer-tagline {
  font-family: 'Lora', serif;
  font-size: 16px;
  color: #888;
  line-height: 1.5;
  max-width: 420px;
  font-style: italic;
}
.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-title {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c8922a;
  font-weight: 700;
  margin-bottom: 6px;
}
.footer-col a {
  font-family: 'Lora', serif;
  font-size: 15px;
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-col a:hover { color: #fff; transform: translateX(2px); }
.footer-base {
  border-top: 1px solid #1a1a1a;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.footer-copy { color: #555; }
.footer-meta { color: #444; }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 36px; padding: 36px 24px 24px; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-base { flex-direction: column; gap: 8px; padding: 18px 24px; }
}

/* ───────────────────────────────────────────────
   PANEL HEADERS — premium series dividers
   ─────────────────────────────────────────────── */
.panel-header {
  padding: 48px 40px 28px !important;
  border-bottom: 1px solid #181818 !important;
  text-align: center;
  position: relative;
}
.panel-header::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 80px;
  height: 2px;
  transform: translateX(-50%);
}
.panel-standalone .panel-header::after { background: linear-gradient(90deg, transparent, #c8922a, transparent); }
.panel-wsi .panel-header::after        { background: linear-gradient(90deg, transparent, #00bfff, transparent); box-shadow: 0 0 12px #00bfff; }
.panel-jab .panel-header::after        { background: linear-gradient(90deg, transparent, #c8320a, transparent); }

.panel-header h2 {
  font-size: 13px !important;
  letter-spacing: 5px !important;
  margin-bottom: 14px !important;
  text-transform: uppercase;
  font-weight: 700;
}
.panel-header p {
  font-size: 22px !important;
  line-height: 1.4 !important;
  max-width: 720px !important;
  margin: 0 auto !important;
}
.panel-standalone .panel-header p { color: #c0b8a8 !important; font-family: 'Playfair Display', serif !important; font-style: italic; }
.panel-wsi .panel-header p        { color: #6090b0 !important; }
.panel-jab .panel-header p        { color: #b8a89a !important; font-family: 'Playfair Display', serif !important; font-style: italic; }

/* ───────────────────────────────────────────────
   ENTRANCE ANIMATIONS — subtle fade-up on load
   ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tabs-bar { animation: fadeUp 0.5s ease-out 0.1s both; }
.library-showcase { animation: fadeUp 0.6s ease-out 0.2s both; }
.tab-panel.active > * { animation: fadeUp 0.5s ease-out 0.35s both; }

@media (prefers-reduced-motion: reduce) {
  .tabs-bar, .library-showcase, .tab-panel.active > * { animation: none; }
}

/* ───────────────────────────────────────────────
   FOCUS STATES — visible keyboard nav rings
   ─────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid #c8922a;
  outline-offset: 3px;
  border-radius: 3px;
}
.tab-btn:focus-visible { outline-offset: 4px; }
.btn-buy:focus-visible,
.btn-hero-primary:focus-visible,
.btn-hero-secondary:focus-visible,
.modal-btn:focus-visible {
  outline-offset: 3px;
  outline-color: #fff;
}

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { flex-direction: column; gap: 28px; padding: 32px 20px; }
  .hero-right { margin: 0 auto; }
  .hero-book { width: 200px; height: 290px; }
  .site-nav, .panel-header, .book-grid, .tabs-bar, .site-footer { padding-left: 20px; padding-right: 20px; }

  /* Nav collapses to a hamburger + dropdown panel */
  .nav-logo { font-size: 22px; letter-spacing: 0.5px; min-width: 0; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(5,5,5,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #1a1a1a;
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 17px;
    padding: 16px 24px;
    border-bottom: 1px solid #141414;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta {
    margin: 12px 24px 6px;
    text-align: center;
    clip-path: none;
    border-radius: 3px;
  }

  /* Book cards: compact horizontal layout (cover left, info right) */
  .book-grid { grid-template-columns: 1fr; gap: 20px; }
  .book-card { flex-direction: row; gap: 18px; padding: 16px; align-items: flex-start; }
  .book-cover-wrap { width: 120px; flex-shrink: 0; margin-bottom: 0; }
  .book-info { flex: 1; min-width: 0; }
  .book-title { font-size: 22px; }
  .card-wsi .book-title { font-size: 18px; }

  /* Tabs stack vertically on mobile — full width, no horizontal scrolling */
  .tabs-bar { flex-direction: column; gap: 10px; padding-top: 14px; padding-bottom: 14px; }
  .tab-btn { width: 100%; min-width: 0; padding: 14px 18px; }
  .tab-btn .tab-name { font-size: 15px; letter-spacing: 1px; }
  .tab-standalone .tab-name { font-size: 16px; }
  .tab-wsi .tab-name { font-size: 14px; letter-spacing: 1px; }
  .tab-jab .tab-name { font-size: 14px; }

  .modal-inner { flex-direction: column; padding: 24px; gap: 20px; }
  .modal-cover { margin: 0 auto; width: 220px; min-height: 320px; }
  .modal-title-text { font-size: 28px; }
  .modal-wsi .modal-title-text { font-size: 22px; }
  .book-num-badge { font-size: 10px; }
}
