/* ==========================================================================
   B-4112: The Blue Diamonds — Design System
   Cinematic / film-noir / WWII historical drama / modern treasure hunt
   ========================================================================== */

/* ----- Design tokens ----- */
:root {
  /* Core palette (drawn from the cover: dark teal-black vault, icy sapphire glow) */
  --black:      #05070c;
  --charcoal:   #0b0f1c;
  --navy:       #0e1530;
  --navy-2:     #131d3f;
  --ink:        #1a2444;
  --sapphire:   #4ea8ff;   /* electric accent — used sparingly */
  --sapphire-d: #2c7be0;
  --ice:        #bfe2ff;   /* diamond highlight */
  --gold:       #c9a24b;   /* warm typographic accent */
  --gold-soft:  #e3c889;
  --silver:     #c5ccda;
  --ivory:      #f4efe4;
  --cream:      #e9e2d3;
  --muted:      #93a0bd;   /* secondary text on dark */
  --line:       rgba(197, 204, 218, 0.14);

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --serif: "Playfair Display", "Bodoni MT", "Didot", Georgia, serif;
  --body:  "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--body);
  font-size: clamp(1.02rem, 0.55vw + 0.9rem, 1.18rem);
  line-height: 1.75;
  color: var(--cream);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

/* ----- Typography ----- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: 0.01em; }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.1rem;
  display: inline-block;
}
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 1px; background: var(--gold); vertical-align: middle; margin-right: 0.7em; opacity: 0.7; }

/* ----- Layout helpers ----- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); color: var(--ivory); }
.lead { font-size: clamp(1.12rem, 0.6vw + 1rem, 1.32rem); color: var(--cream); }
.text-center { text-align: center; }
.muted { color: var(--muted); }

/* Section background variants — slightly translucent so the diamond field
   shows through faintly over the solid-dark body base. */
.bg-black    { background: rgba(5, 7, 12, 0.80); }
.bg-charcoal { background: rgba(11, 15, 28, 0.78); }
.bg-navy     { background: linear-gradient(180deg, rgba(11,15,28,0.80), rgba(14,21,48,0.72) 55%, rgba(11,15,28,0.80)); }

/* ----- Scroll-reactive diamond field (decorative, behind all content) ----- */
.diamond-field {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  color: var(--sapphire);                 /* diamonds stroke = currentColor */
  contain: strict;
}
.diamond {
  position: absolute; will-change: transform, opacity;
  transform: translate3d(0,0,0); transition: opacity 1.2s var(--ease);
}
.diamond svg { display: block; width: 100%; height: 100%; overflow: visible; }
.diamond .facet { stroke: currentColor; fill: none; vector-effect: non-scaling-stroke; }
.diamond .glint { fill: currentColor; }
/* Smaller, airier, fainter on phones/tablets */
@media (max-width: 1024px) { .diamond-field { opacity: 0.8; } .diamond svg { transform: scale(0.78); transform-origin: center; } }
@media (max-width: 760px)  { .diamond-field { opacity: 0.62; } .diamond svg { transform: scale(0.58); transform-origin: center; } }

/* Diamond divider */
.divider { display: flex; align-items: center; justify-content: center; gap: 0.9rem; color: var(--gold); opacity: 0.8; margin: 0 auto; }
.divider::before, .divider::after { content: ""; height: 1px; width: clamp(40px, 12vw, 120px); background: linear-gradient(90deg, transparent, var(--gold)); }
.divider::after { background: linear-gradient(90deg, var(--gold), transparent); }
.divider span { font-size: 0.7rem; transform: rotate(45deg); display: inline-block; }

/* ----- Buttons ----- */
.btn {
  --bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--sans); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.04em;
  padding: 0.95em 1.9em; border-radius: 2px; cursor: pointer;
  border: 1px solid transparent; transition: all 0.35s var(--ease); position: relative;
  text-align: center; line-height: 1;
}
.btn:focus-visible { outline: 2px solid var(--sapphire); outline-offset: 3px; }
.btn--primary {
  background: linear-gradient(135deg, var(--sapphire-d), var(--sapphire));
  color: #04101f; box-shadow: 0 10px 30px -12px rgba(78, 168, 255, 0.7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(78, 168, 255, 0.85); filter: brightness(1.06); }
.btn--ghost { background: transparent; color: var(--ivory); border-color: rgba(197, 204, 218, 0.4); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn--gold { background: linear-gradient(135deg, var(--gold), var(--gold-soft)); color: #1a1404; }
.btn--gold:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn--block { width: 100%; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5, 7, 12, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-family: var(--serif); font-size: 1.32rem; color: var(--ivory); letter-spacing: 0.06em; font-weight: 700; }
.brand b { color: var(--sapphire); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); list-style: none; padding: 0; }
.nav-links a {
  font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; position: relative; padding: 0.4em 0; transition: color 0.3s;
}
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold); transition: width 0.35s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--ivory); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: 0.5rem; }
/* The CTA must render as a button, not inherit the plain nav-link styles */
.nav-links .nav-cta a.btn {
  color: #04101f; padding: 0.72em 1.35em; font-size: 0.78rem; letter-spacing: 0.06em;
  border-radius: 2px; white-space: nowrap;
}
.nav-links .nav-cta a.btn::after { display: none; }
.nav-links .nav-cta a.btn:hover { color: #04101f; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: var(--ivory); }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px auto; transition: transform 0.35s var(--ease), opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(5, 7, 12, 0.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); padding: 0.5rem 0 1.5rem;
    clip-path: inset(0 0 100% 0); transition: clip-path 0.45s var(--ease); pointer-events: none;
  }
  .nav-links.open { clip-path: inset(0 0 0 0); pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 1rem var(--gutter); font-size: 0.95rem; }
  .nav-links .nav-cta { padding: 1rem var(--gutter); }
  .nav-links .btn { width: 100%; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero__bg {
  position: absolute; inset: -8% 0 0 0; z-index: -3;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(78, 168, 255, 0.16), transparent 55%),
    radial-gradient(90% 70% at 12% 90%, rgba(44, 123, 224, 0.10), transparent 60%),
    linear-gradient(160deg, #060912, #0a1020 45%, #05070c);
}
.hero__grain { position: absolute; inset: 0; z-index: -2; opacity: 0.5; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  mix-blend-mode: overlay;
}
/* Glowing diamond accent behind headline */
.hero__shimmer {
  position: absolute; z-index: -1; top: 50%; right: 8%; width: clamp(260px, 36vw, 540px); aspect-ratio: 1;
  transform: translateY(-50%);
  background: radial-gradient(circle at 50% 45%, rgba(191, 226, 255, 0.30), rgba(78, 168, 255, 0.14) 40%, transparent 68%);
  filter: blur(6px); animation: pulse 7s ease-in-out infinite; pointer-events: none;
}
@keyframes pulse { 0%, 100% { opacity: 0.65; transform: translateY(-50%) scale(1); } 50% { opacity: 1; transform: translateY(-50%) scale(1.06); } }

.hero__inner { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: 7rem 4rem; width: 100%; }
.hero__content { max-width: 680px; }
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 4rem); color: var(--ivory);
  line-height: 1.12; letter-spacing: 0.005em; margin-bottom: 1.6rem;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--ice); font-style: italic; }
.hero__sub { font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.6rem); color: var(--gold-soft); letter-spacing: 0.02em; margin-bottom: 0.5rem; }
.hero__by { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 2.4rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__cover { justify-self: center; position: relative; }
.hero__cover img {
  width: clamp(220px, 26vw, 360px); border-radius: 4px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.9), 0 0 60px -20px rgba(78,168,255,0.35);
  border: 1px solid rgba(197,204,218,0.12);
}
.hero__cover::after { content: ""; position: absolute; inset: -30px; z-index: -1; background: radial-gradient(circle, rgba(78,168,255,0.22), transparent 70%); filter: blur(20px); }

.scroll-cue { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--muted); font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase; }
.scroll-cue .mouse { width: 22px; height: 36px; border: 1px solid var(--muted); border-radius: 12px; position: relative; }
.scroll-cue .mouse::after { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 3px; height: 7px; border-radius: 2px; background: var(--sapphire); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 10px); } }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; padding-block: 6.5rem 5rem; }
  .hero__content { max-width: 100%; margin-inline: auto; }
  .eyebrow { }
  .hero__cta { justify-content: center; }
  .hero__cover { order: -1; margin-bottom: 1rem; }
  .hero__shimmer { right: 50%; transform: translate(50%, -50%); top: 38%; }
  .scroll-cue { display: none; }   /* redundant + overlaps stacked hero content on small screens */
  @keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.8; } }
}

/* ==========================================================================
   About the Book + Specs badge
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about-grid p + p { margin-top: 1.2rem; }
.about-grid .drop::first-letter { font-family: var(--serif); font-size: 3.4em; float: left; line-height: 0.8; padding: 0.05em 0.12em 0 0; color: var(--gold); }
.three-wars { border-left: 2px solid var(--gold); padding-left: 1.1rem; margin-top: 1.5rem; color: var(--cream); }
.three-wars strong { display: block; font-family: var(--serif); color: var(--gold-soft); font-size: 1.1rem; letter-spacing: 0.02em; margin-bottom: 0.3rem; }

.specs {
  background: linear-gradient(165deg, rgba(19,29,63,0.7), rgba(11,15,28,0.7));
  border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.6rem, 3vw, 2.4rem);
  position: sticky; top: 96px; box-shadow: var(--shadow);
}
.specs h3 { font-size: 1.1rem; color: var(--gold-soft); letter-spacing: 0.18em; text-transform: uppercase; font-family: var(--sans); font-weight: 600; margin-bottom: 1.4rem; }
.specs dl { display: grid; grid-template-columns: auto 1fr; gap: 0.55rem 1rem; margin: 0; font-family: var(--sans); font-size: 0.92rem; }
.specs dt { color: var(--muted); letter-spacing: 0.03em; }
.specs dd { color: var(--ivory); margin: 0; text-align: right; font-weight: 500; }
.specs .soon { color: var(--gold); font-style: italic; }

@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } .specs { position: static; } }

/* ==========================================================================
   Five Acts — Timeline
   ========================================================================== */
.timeline { position: relative; max-width: 940px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; left: clamp(14px, 4vw, 50%); top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, var(--line) 8%, var(--line) 92%, transparent); transform: translateX(-0.5px); }
.act { position: relative; padding-left: clamp(48px, 10vw, 0); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.act__inner {
  background: linear-gradient(160deg, rgba(19,29,63,0.55), rgba(11,15,28,0.65));
  border: 1px solid var(--line); border-radius: 8px; padding: clamp(1.5rem, 3vw, 2.3rem);
  box-shadow: var(--shadow); position: relative; width: calc(50% - 2.5rem);
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
/* Static node = a quiet anchor on the line; the traveling runner is the hero */
.act__node { position: absolute; left: clamp(14px, 4vw, 50%); top: 1.8rem; width: 13px; height: 13px; transform: translateX(-50%) rotate(45deg); background: var(--ink); border: 1px solid rgba(78,168,255,0.5); box-shadow: 0 0 0 4px rgba(5,7,12,0.9); z-index: 2; transition: background 0.5s, box-shadow 0.5s, border-color 0.5s; }

/* Traveling diamond + progress trail (added by JS; absent without JS) */
.timeline__fill { position: absolute; left: clamp(14px, 4vw, 50%); top: 0; width: 2px; height: 0; transform: translateX(-50%); background: linear-gradient(180deg, rgba(78,168,255,0.15), var(--sapphire)); box-shadow: 0 0 10px rgba(78,168,255,0.55); z-index: 1; transition: height 0.12s ease-out; pointer-events: none; }
.timeline__runner { position: absolute; left: clamp(14px, 4vw, 50%); top: 0; opacity: 0; width: 22px; height: 22px; transform: translate(-50%, -50%) rotate(45deg); border-radius: 4px; background: linear-gradient(135deg, var(--ice), var(--sapphire) 70%); box-shadow: 0 0 0 5px rgba(78,168,255,0.16), 0 0 26px 6px rgba(78,168,255,0.7); z-index: 4; pointer-events: none; transition: top 0.12s ease-out, opacity 0.4s ease; will-change: top; }
.timeline__runner::after { content: ""; position: absolute; inset: 0; border-radius: 4px; box-shadow: 0 0 0 2px rgba(191,226,255,0.5); animation: runnerPulse 2.2s ease-out infinite; }
@keyframes runnerPulse { 0% { transform: scale(0.7); opacity: 0.85; } 100% { transform: scale(1.7); opacity: 0; } }

/* Highlight the card the diamond is currently passing */
.act.is-active .act__inner { border-color: rgba(78,168,255,0.6); box-shadow: 0 0 0 1px rgba(78,168,255,0.35), 0 26px 60px -24px rgba(0,0,0,0.85), 0 0 46px -8px rgba(78,168,255,0.4); transform: translateY(-3px); }
.act.is-active .act__node { background: var(--ice); border-color: var(--ice); box-shadow: 0 0 0 5px rgba(78,168,255,0.22), 0 0 24px rgba(78,168,255,0.9); }

/* ---- Desktop accordion morph: inactive acts collapse to diamond + title;
        the act the diamond reaches blooms into the full card ---- */
.act__panel { display: block; }
.act__body { min-height: 0; }
@media (min-width: 861px) {
  .timeline.morph .act__inner { transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease), background 0.5s var(--ease), padding 0.5s var(--ease); }
  .timeline.morph .act__panel { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.55s var(--ease), opacity 0.4s var(--ease); }
  .timeline.morph .act__body { overflow: hidden; }
  /* Opened cards stay open (is-open is sticky); the diamond's current card gets the glow (is-active) */
  .timeline.morph .act.is-open .act__panel { grid-template-rows: 1fr; opacity: 1; }
  .timeline.morph .act:not(.is-open) .act__inner { padding-block: 1.15rem; background: linear-gradient(160deg, rgba(19,29,63,0.4), rgba(11,15,28,0.5)); cursor: default; }
  /* Left (odd) cards sit on the rail — indent their content so the diamond passes in a clean gutter */
  .timeline.morph .act:nth-child(odd) .act__inner { padding-left: 4.4rem; }
  .timeline.morph .act:not(.is-open) h3 { font-size: 1.35rem; transition: font-size 0.5s var(--ease); }
  .timeline.morph .act:not(.is-open) .act__num { color: var(--gold-soft); }
  .timeline.morph .act.is-active .act__node { opacity: 0; }
}
.act__num { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--sapphire); font-weight: 700; }
.act h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--ivory); margin: 0.4rem 0 0.3rem; }
.act__era { font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.06em; color: var(--gold-soft); font-style: italic; margin-bottom: 1.1rem; }
.act blockquote { border-left: 2px solid var(--gold); padding-left: 1.1rem; margin: 1rem 0 0; font-style: italic; color: var(--cream); }
.act p { margin-top: 0.9rem; color: var(--muted); }
.act p.recap { color: var(--cream); font-style: normal; }
.act cite { display: block; margin-top: 0.7rem; font-style: normal; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.04em; color: var(--gold-soft); }

/* alternate sides on desktop */
@media (min-width: 861px) {
  .act:nth-child(even) { display: flex; justify-content: flex-end; }
  .act:nth-child(even) .act__inner { }
  .act:nth-child(odd) .act__inner { margin-right: auto; }
}
@media (max-width: 860px) {
  .act__inner { width: 100%; }
  .act { padding-left: 48px; }
}

/* ==========================================================================
   Pull-Quotes (rotator)
   ========================================================================== */
.quotes { position: relative; text-align: center; overflow: hidden; }
.quotes::before { content: "\201C"; position: absolute; top: -0.1em; left: 50%; transform: translateX(-50%); font-family: var(--serif); font-size: clamp(8rem, 22vw, 18rem); color: rgba(78,168,255,0.08); line-height: 1; pointer-events: none; }
.quote-stage { position: relative; min-height: 14rem; max-width: 900px; margin-inline: auto; }
.quote {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); pointer-events: none;
}
.quote.active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 3vw, 2.4rem); line-height: 1.4; color: var(--ivory); text-wrap: balance; }
.quote cite { display: block; margin-top: 1.4rem; font-style: normal; font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-soft); }
.quote-dots { display: flex; gap: 0.7rem; justify-content: center; margin-top: 2.5rem; }
.quote-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid var(--muted); background: transparent; cursor: pointer; transition: all 0.3s; }
.quote-dots button[aria-selected="true"] { background: var(--sapphire); border-color: var(--sapphire); box-shadow: 0 0 12px rgba(78,168,255,0.7); }

/* ==========================================================================
   About the Author
   ========================================================================== */
.author-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.author-photo { position: relative; }
.author-photo img, .author-photo .ph {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: linear-gradient(160deg, var(--navy-2), var(--charcoal));
}
.author-photo .ph { display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.1em; padding: 2rem; }
.author-photo figcaption { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 0.9rem; text-align: center; }

/* Transparent cutout portrait (figure floats on the dark backdrop) */
.author-photo--cutout { background: none; }
.author-photo--cutout picture { position: relative; display: block; }
.author-photo--cutout picture::before {
  content: ""; position: absolute; inset: 6% 4% 10%; z-index: -1; border-radius: 50%;
  background: radial-gradient(60% 55% at 50% 45%, rgba(78,168,255,0.22), rgba(44,123,224,0.10) 45%, transparent 72%);
  filter: blur(14px);
}
.author-photo--cutout img {
  width: 100%; height: auto; aspect-ratio: auto; object-fit: contain;
  border: 0; border-radius: 0; box-shadow: none; background: none;
  filter: drop-shadow(0 18px 32px rgba(0,0,0,0.5));
  /* dissolve the cropped shirt edge softly into the dark background */
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
}
.author-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }
.author-links a { font-family: var(--sans); font-size: 0.88rem; letter-spacing: 0.04em; color: var(--sapphire); border-bottom: 1px solid rgba(78,168,255,0.3); padding-bottom: 2px; transition: color 0.3s, border-color 0.3s; }
.author-links a:hover { color: var(--ice); border-color: var(--ice); }
@media (max-width: 760px) {
  .author-grid { grid-template-columns: 1fr; }
  .author-photo { max-width: 320px; margin-inline: auto; }
  .author-photo--cutout { max-width: 460px; }
}

/* ==========================================================================
   The Real Story
   ========================================================================== */
.truth { text-align: center; }
.truth .lead { max-width: 820px; margin-inline: auto; }
.truth blockquote { max-width: 760px; margin: 2.5rem auto 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.7rem); color: var(--ice); line-height: 1.5; }
.truth cite { display: block; margin-top: 1.2rem; font-style: normal; font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-soft); }
.truth-tags { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 2.5rem; }
.truth-tags span { font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.1em; color: var(--cream); border: 1px solid var(--line); border-radius: 100px; padding: 0.5em 1.2em; background: rgba(255,255,255,0.02); }
.truth-tags b { color: var(--sapphire); }

/* Historical photo gallery — bento layout, natural aspect ratios (no face-cropping) */
.gallery { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.2rem, 3vw, 2.2rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); text-align: left; align-items: start; }
.gallery__col { display: flex; flex-direction: column; gap: clamp(1.2rem, 3vw, 2.2rem); }
.gallery figure { margin: 0; display: flex; flex-direction: column; }
@media (max-width: 760px) { .gallery__col { gap: clamp(1.2rem, 5vw, 2rem); } }
.gallery .frame {
  position: relative; border-radius: 6px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); background: var(--charcoal);
}
.gallery .frame img { width: 100%; height: auto; display: block; transition: transform 0.8s var(--ease), filter 0.6s; filter: saturate(0.94) contrast(1.02); }
.gallery figure:hover .frame img { transform: scale(1.03); filter: saturate(1) contrast(1.04); }
.gallery .frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -40px 60px -34px rgba(5,7,12,0.85); pointer-events: none; }
.gallery figcaption { font-family: var(--sans); font-size: 0.82rem; line-height: 1.55; color: var(--muted); margin-top: 0.9rem; }
.gallery figcaption b { color: var(--cream); font-weight: 600; display: block; letter-spacing: 0.04em; margin-bottom: 0.15rem; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; } }

/* ==========================================================================
   Documentary videos
   ========================================================================== */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.4rem, 3vw, 2.4rem); }
.video { margin: 0; }
.video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #000; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { font-family: var(--sans); font-size: 0.9rem; color: var(--cream); margin-top: 0.9rem; letter-spacing: 0.03em; }
.video figcaption span { display: block; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 0.25rem; }
@media (max-width: 760px) { .video-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Media / Rights
   ========================================================================== */
.media-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.media blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 2rem); color: var(--ivory); line-height: 1.4; border-left: 2px solid var(--gold); padding-left: 1.4rem; margin: 0 0 1.6rem; }
.media cite { display: block; font-style: normal; font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.08em; color: var(--gold-soft); margin-top: 0.8rem; }
.reg-card { background: linear-gradient(165deg, rgba(19,29,63,0.7), rgba(11,15,28,0.8)); border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.6rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.reg-card h3 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1.2rem; }
.reg-card dl { font-family: var(--sans); font-size: 0.9rem; margin: 0; }
.reg-card dt { color: var(--muted); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; }
.reg-card dd { color: var(--ivory); margin: 0 0 1rem; font-weight: 500; letter-spacing: 0.02em; }
.reg-card dd:last-child { margin-bottom: 0; }
@media (max-width: 820px) { .media-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Where to Buy
   ========================================================================== */
.buy { text-align: center; }
.buy__cover { width: clamp(180px, 22vw, 240px); margin: 0 auto 2.4rem; border-radius: 4px; box-shadow: 0 30px 70px -28px rgba(0,0,0,0.9), 0 0 50px -22px rgba(78,168,255,0.3); border: 1px solid var(--line); }
.formats { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.formats span { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream); border: 1px solid var(--gold); border-radius: 2px; padding: 0.5em 1.1em; }
.buy__btns { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; max-width: 640px; margin: 0 auto; }
.buy__btns .btn { flex: 1 1 200px; }
.buy__note { margin-top: 2rem; font-size: 0.9rem; color: var(--muted); font-family: var(--sans); }
.coming-soon { display: inline-block; margin-top: 0.4rem; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }

/* ==========================================================================
   Trailer
   ========================================================================== */
.trailer { text-align: center; }
.trailer__frame { max-width: 880px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 8px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, rgba(78,168,255,0.12), transparent 60%), var(--charcoal); color: var(--muted); }
.trailer__frame .play { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; margin-bottom: 1rem; color: var(--gold); }
.trailer__frame iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; }

/* ==========================================================================
   Also by the Author
   ========================================================================== */
.alsoby__wrap {
  display: grid; grid-template-columns: 0.85fr 1.3fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  border: 1px solid var(--line); border-radius: 10px; padding: clamp(2rem, 4vw, 3.4rem);
  background: linear-gradient(160deg, rgba(19,29,63,0.5), rgba(5,7,12,0.6));
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.alsoby__wrap::before { content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: linear-gradient(180deg, var(--sapphire), transparent); opacity: 0.7; }
.alsoby__cover { position: relative; justify-self: center; }
.alsoby__cover img { width: clamp(180px, 22vw, 280px); height: auto; filter: drop-shadow(0 26px 40px rgba(0,0,0,0.6)); }
.alsoby__cover::after { content: ""; position: absolute; inset: 6% 8% 4%; z-index: -1; background: radial-gradient(60% 55% at 50% 45%, rgba(78,168,255,0.22), transparent 70%); filter: blur(18px); }
.alsoby h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--ivory); }
.alsoby h2 .reg { font-size: 0.5em; vertical-align: super; color: var(--muted); }
.alsoby__sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: var(--gold-soft); margin: 0.5rem 0 1.3rem; }
.alsoby p { color: var(--cream); }
.alsoby__topics { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.5rem 0; list-style: none; padding: 0; }
.alsoby__topics li { font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.06em; color: var(--muted); border: 1px solid var(--line); border-radius: 100px; padding: 0.45em 1em; }
.alsoby__quote { font-family: var(--serif); font-style: italic; color: var(--ice); border-left: 2px solid var(--gold); padding-left: 1rem; margin: 1.5rem 0; }
.alsoby__cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.6rem; }
.alsoby__link { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.04em; color: var(--sapphire); border-bottom: 1px solid rgba(78,168,255,0.3); padding-bottom: 2px; transition: color 0.3s, border-color 0.3s; }
.alsoby__link:hover { color: var(--ice); border-color: var(--ice); }
@media (max-width: 820px) { .alsoby__wrap { grid-template-columns: 1fr; text-align: center; } .alsoby__quote { text-align: left; } .alsoby__topics { justify-content: center; } .alsoby__cta { justify-content: center; } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(165deg, rgba(19,29,63,0.45), rgba(11,15,28,0.55)); margin-bottom: 0.9rem; overflow: hidden; transition: border-color 0.3s; }
.faq__item[open] { border-color: rgba(78,168,255,0.4); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.4rem; font-family: var(--serif); font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--ivory); font-weight: 600;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline: 2px solid var(--sapphire); outline-offset: -2px; }
.faq__item summary:hover { color: var(--gold-soft); }
.faq__icon { position: relative; flex: 0 0 18px; width: 18px; height: 18px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; background: var(--sapphire); transform: translate(-50%, -50%); transition: transform 0.3s var(--ease); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq__a { padding: 0 1.4rem 1.3rem; color: var(--cream); }
.faq__a p { margin: 0; color: var(--muted); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.form { background: linear-gradient(165deg, rgba(19,29,63,0.6), rgba(11,15,28,0.7)); border: 1px solid var(--line); border-radius: 8px; padding: clamp(1.6rem, 3.5vw, 2.6rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 0.5rem; }
.field label .req { color: var(--sapphire); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ivory);
  background: rgba(5,7,12,0.6); border: 1px solid var(--line); border-radius: 4px; padding: 0.85em 1em;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) center, calc(100% - 15px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--sapphire); box-shadow: 0 0 0 3px rgba(78,168,255,0.15); }
.field input::placeholder, .field textarea::placeholder { color: rgba(147,160,189,0.6); }
.field .error-msg { display: block; color: #ff9b8a; font-family: var(--sans); font-size: 0.78rem; margin-top: 0.4rem; min-height: 1em; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #ff7a66; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-alert { border-radius: 4px; padding: 1em 1.2em; margin-bottom: 1.5rem; font-family: var(--sans); font-size: 0.92rem; }
.form-alert--ok { background: rgba(78,168,255,0.12); border: 1px solid var(--sapphire); color: var(--ice); }
.form-alert--err { background: rgba(255,122,102,0.1); border: 1px solid #ff7a66; color: #ffb3a6; }

.contact-aside h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--ivory); }
.contact-aside .lead { margin-top: 1.2rem; }
.contact-aside .note { margin-top: 1.5rem; font-family: var(--sans); font-size: 0.85rem; color: var(--muted); border-left: 2px solid var(--gold); padding-left: 1rem; }
.isbn-card { margin: 2rem 0 0; padding: 0.9rem 1rem; background: #fff; border-radius: 8px; box-shadow: var(--shadow); width: fit-content; max-width: 260px; }
.isbn-card img { width: 100%; height: auto; display: block; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--black); border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.footer-brand { font-family: var(--serif); font-size: 1.4rem; color: var(--ivory); letter-spacing: 0.05em; }
.footer-brand b { color: var(--sapphire); }
.footer-brand p { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); margin-top: 0.6rem; max-width: 320px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem 1.8rem; list-style: none; padding: 0; }
.footer-nav a { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.05em; color: var(--muted); transition: color 0.3s; }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.8rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-family: var(--sans); font-size: 0.78rem; color: var(--muted); }
.footer-bottom a { color: var(--gold-soft); }
.footer-legal { max-width: 600px; font-style: italic; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

/* Skip link */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--sapphire); color: #04101f; padding: 0.8em 1.4em; font-family: var(--sans); font-weight: 600; border-radius: 0 0 4px 0; }
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--sapphire); outline-offset: 2px; }
::selection { background: rgba(78,168,255,0.32); color: var(--ivory); }
