/* ==========================================================================
   D.W. JONAH — STYLES
   Dark cinematic space-opera. Syne display + Newsreader body.
   Brand colors: ember sunset + signal cyan against deep void-black.
   The eclipse mark holds both — sunset on the bottom rim, cyan on the top.
   ========================================================================== */

:root {
  --void:        #06080d;
  --void-2:      #0b0f17;
  --void-3:      #11161f;
  --hull:        #1a2029;
  --ice:         #e8ecf1;
  --ice-dim:     #a7b0bd;
  --ice-ghost:   #5f6877;

  /* Brand: warm half (Solara) */
  --ember:       #ff6a1f;
  --ember-hot:   #ffb347;
  --ember-glow:  rgba(255, 106, 31, 0.35);

  /* Brand: cool half (Luna) — equal weight with ember */
  --signal:      #7fd4ff;
  --signal-hot:  #b8e7ff;
  --signal-glow: rgba(127, 212, 255, 0.35);

  --display:     'Syne', 'Helvetica Neue', sans-serif;
  --body:        'Newsreader', Georgia, serif;

  --max:         1280px;
  --gutter:      clamp(1.25rem, 4vw, 3rem);

  --ease:        cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background: var(--void);
  color: var(--ice);
  font-family: var(--body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
  min-height: 100vh;
  touch-action: pan-y;
  overscroll-behavior-x: none;
}

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

/* ---------- BACKGROUND ATMOSPHERE ---------- */
.bg-stars {
  position: fixed; inset: 0;
  background:
    radial-gradient(1px 1px at 23% 17%, #fff, transparent 50%),
    radial-gradient(1px 1px at 67% 42%, #fff, transparent 50%),
    radial-gradient(1px 1px at 11% 78%, #fff, transparent 50%),
    radial-gradient(1px 1px at 89% 23%, #fff, transparent 50%),
    radial-gradient(1px 1px at 44% 91%, #fff, transparent 50%),
    radial-gradient(1px 1px at 78% 66%, #fff, transparent 50%),
    radial-gradient(2px 2px at 34% 54%, rgba(255,255,255,.6), transparent 50%),
    radial-gradient(1px 1px at 55% 12%, rgba(255,255,255,.8), transparent 50%),
    radial-gradient(ellipse at 30% 20%, rgba(127,212,255,.08), transparent 60%),
    radial-gradient(ellipse at 75% 80%, rgba(255,106,31,.06), transparent 60%);
  background-size: 600px 600px, 500px 500px, 700px 700px, 550px 550px, 480px 480px, 620px 620px, 800px 800px, 400px 400px, 100% 100%, 100% 100%;
  z-index: -2;
  pointer-events: none;
}
.bg-grain {
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .5;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem var(--gutter);
  z-index: 100;
  backdrop-filter: blur(14px) saturate(120%);
  background: rgba(6,8,13,.55);
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .3s var(--ease);
}
.nav__brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ice);
  display: inline-flex;
  align-items: center;
  gap: .8rem;
}
.nav__mark {
  width: 26px;
  height: 26px;
  filter:
    drop-shadow(0 -1px 4px rgba(127, 212, 255, 0.4))
    drop-shadow(0 1px 4px rgba(255, 106, 31, 0.4));
  transition: transform .8s var(--ease), filter .5s var(--ease);
}
.nav__brand:hover .nav__mark {
  transform: rotate(180deg);
  filter:
    drop-shadow(0 -2px 8px rgba(127, 212, 255, 0.7))
    drop-shadow(0 2px 8px rgba(255, 106, 31, 0.7));
}
.nav__links { display: flex; gap: 2.25rem; }
.nav__links a {
  font-family: var(--display);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ice-dim);
  position: relative;
  transition: color .3s var(--ease);
}
.nav__links a:hover { color: var(--ice); }
.nav__links a::after {
  content: ""; position: absolute;
  left: 0; right: 100%; bottom: -6px;
  height: 1px; background: var(--ember);
  transition: right .4s var(--ease);
}
.nav__links a:hover::after { right: 0; }

.nav__toggle { display: none; background: none; border: 0; width: 32px; height: 32px; cursor: pointer; }
.nav__toggle span { display: block; height: 2px; background: var(--ice); margin: 6px 0; transition: .3s; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 8rem var(--gutter) 4rem;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: 75% center;
  filter: saturate(.95) contrast(1.08) brightness(1.05);
  transform: scale(1.02);
  animation: slowZoom 40s ease-in-out infinite alternate;
}
@keyframes slowZoom { to { transform: scale(1.06) translateX(-0.8%); } }

.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--void) 0%, rgba(6,8,13,.92) 30%, rgba(6,8,13,.55) 55%, rgba(6,8,13,.15) 80%, rgba(6,8,13,.35) 100%),
    linear-gradient(180deg, rgba(6,8,13,.55) 0%, transparent 35%, rgba(6,8,13,.85) 100%);
}
.hero__inner {
  position: relative;
  max-width: 780px;
  z-index: 2;
}
.hero__eyebrow {
  font-family: var(--display);
  font-size: .8rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: rise .9s .2s var(--ease) forwards;
}
.hero__eyebrow::before {
  content: "";
  display: inline-block;
  width: 40px; height: 1px;
  background: var(--ember);
  vertical-align: middle;
  margin-right: 1rem;
}
.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: .92;
  letter-spacing: -.02em;
  margin-bottom: 2rem;
}
.hero__line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: rise 1s var(--ease) forwards;
}
.hero__line--one {
  animation-delay: .35s;
  color: var(--ice);
  background: linear-gradient(180deg, var(--signal) 0%, var(--ice) 35%, var(--ember) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__line--two {
  animation-delay: .55s;
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(90deg, var(--ember) 0%, var(--ember-hot) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-left: .5em;
}
.hero__sub {
  font-family: var(--body);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-style: italic;
  color: var(--ice-dim);
  max-width: 620px;
  margin-bottom: 2.75rem;
  opacity: 0;
  animation: rise 1s .8s var(--ease) forwards;
  border-left: 2px solid;
  border-image: linear-gradient(180deg, var(--signal), var(--ember)) 1;
  padding-left: 1.25rem;
}
.hero__ctas {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0;
  animation: rise 1s 1s var(--ease) forwards;
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 1.1rem 2.25rem;
  cursor: pointer;
  transition: all .35s var(--ease);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--ember);
  color: var(--void);
  box-shadow: 0 0 0 0 var(--ember-glow);
}
.btn--primary:hover {
  background: var(--ember-hot);
  box-shadow: 0 0 40px 2px var(--ember-glow);
  transform: translateY(-2px);
}
.btn--secondary {
  background: transparent;
  color: var(--ice);
  border-color: rgba(255,255,255,.3);
}
.btn--secondary:hover {
  border-color: var(--ice);
  background: rgba(255,255,255,.05);
  transform: translateY(-2px);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem; left: var(--gutter);
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--display);
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ice-ghost);
}
.hero__scroll span {
  width: 60px; height: 1px; background: var(--ice-ghost);
  position: relative; overflow: hidden;
}
.hero__scroll span::after {
  content: ""; position: absolute;
  left: -60px; top: 0; width: 60px; height: 1px;
  background: var(--ember);
  animation: scrollLine 2.5s var(--ease) infinite;
}
@keyframes scrollLine { to { left: 60px; } }

/* ---------- SECTION SCAFFOLDING ---------- */
section { position: relative; padding: 7rem var(--gutter); max-width: var(--max); margin: 0 auto; }

.section-label {
  font-family: var(--display);
  font-size: .75rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ice-ghost);
  margin-bottom: 2rem;
  display: flex; align-items: center; gap: 1rem;
}
.section-label span {
  color: var(--ember);
  font-weight: 700;
}
.section-label::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--signal-glow), var(--ember-glow), transparent);
  max-width: 200px;
}
.section-heading {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -.015em;
  margin-bottom: 4rem;
  max-width: 900px;
}

/* ---------- BOOK ---------- */
.book__item {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 4rem;
  align-items: start;
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,.08);
  transition: border-color .5s var(--ease);
}
.book__item:hover {
  border-top-color: rgba(255,106,31,.3);
}
.book__cover {
  position: relative;
  box-shadow:
    0 40px 80px -20px rgba(0,0,0,.7),
    0 0 60px -15px var(--ember-glow);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.book__item:hover .book__cover {
  transform: translateY(-6px) rotate(-.5deg);
  box-shadow:
    0 50px 100px -20px rgba(0,0,0,.8),
    0 0 120px -10px rgba(255,106,31,.55);
}
.book__cover::before {
  content: ""; position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border: 1px solid rgba(255,255,255,.1);
  pointer-events: none;
  transition: border-color .5s var(--ease);
}
.book__item:hover .book__cover::before {
  border-color: rgba(255,106,31,.5);
}
.book__cover img { width: 100%; }

.book__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: 1.75rem;
  transition: text-shadow .5s var(--ease), color .5s var(--ease);
}
.book__item:hover .book__title {
  color: #fff;
  text-shadow:
    0 0 30px rgba(255,106,31,.5),
    0 0 60px rgba(255,106,31,.2);
}
.book__item:hover .book__status {
  background: rgba(255,106,31,.1);
}

.book__cover--placeholder {
  aspect-ratio: 2 / 3;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,106,31,.18), transparent 60%),
    linear-gradient(180deg, var(--void-3), var(--void));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem;
  text-align: center;
}
.book__cover-mono {
  font-family: var(--display);
  font-weight: 800;
  font-size: 4.5rem;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ember);
  opacity: .85;
}
.book__cover-label {
  font-family: var(--display);
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ice-ghost);
  line-height: 1.6;
}

/* ---------- TRAILER ---------- */
.trailer { max-width: 1100px; }
.trailer__frame {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  background: var(--void-2);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow:
    0 50px 100px -30px rgba(0,0,0,.8),
    0 0 80px -20px var(--ember-glow);
  overflow: hidden;
}
.trailer__frame::before,
.trailer__frame::after {
  content: ""; position: absolute;
  width: 24px; height: 24px;
  border: 1px solid var(--ember);
  z-index: 2; pointer-events: none;
}
.trailer__frame::before { top: -1px; left: -1px;  border-right: 0; border-bottom: 0; }
.trailer__frame::after  { bottom: -1px; right: -1px; border-left: 0;  border-top: 0;  }
.trailer__frame video,
.trailer__frame iframe {
  width: 100%; height: 100%; display: block; border: 0;
  background: #000;
}

/* ---------- AUDIO ---------- */
.audio { max-width: 900px; }
.audio__frame {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(180deg, var(--void-2), var(--void));
  position: relative;
}
.audio__frame::before {
  content: ""; position: absolute;
  top: 0; left: 0; width: 3px; height: 100%;
  background: var(--ember);
  box-shadow: 0 0 20px var(--ember-glow);
}
.audio__frame iframe { display: block; border-radius: 2px; }
.audio__frame audio   { width: 100%; margin-top: .75rem; }
.audio__title {
  font-family: var(--display);
  font-size: .9rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: .5rem;
}

.book__status {
  display: inline-block;
  font-family: var(--display);
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ember);
  padding: .4rem .9rem;
  border: 1px solid var(--ember);
  margin-bottom: 1.25rem;
}
.book__series {
  font-family: var(--display);
  font-size: .85rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ice-dim);
  margin-bottom: .75rem;
}
.book__blurb {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ice-dim);
  margin-bottom: 2rem;
  max-width: 620px;
}
.book__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem 1.25rem;
}
.book__prologue {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  background: transparent;
  color: var(--signal);
  border: 1px solid rgba(127, 212, 255, 0.4);
  padding: 1rem 1.6rem;
  font-family: var(--display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .35s var(--ease);
}
.book__prologue:hover {
  background: rgba(127, 212, 255, 0.08);
  border-color: var(--signal);
  color: var(--signal-hot);
  box-shadow: 0 0 24px rgba(127, 212, 255, 0.25);
  transform: translateY(-2px);
}
.book__prologue svg {
  flex-shrink: 0;
}

.book__buy {
  display: flex; flex-wrap: wrap; gap: .6rem;
}
.book__buy a {
  font-family: var(--display);
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .7rem 1.3rem;
  border: 1px solid rgba(255,255,255,.2);
  color: var(--ice);
  transition: all .3s var(--ease);
}
.book__buy a:hover {
  border-color: var(--ember);
  color: var(--ember);
  background: rgba(255,106,31,.05);
}
/* When there's only one buy link (e.g. Amazon-only under KDP Select),
   promote it to a prominent ember-filled button. */
.book__buy:has(> a:only-child) a {
  background: var(--ember);
  color: var(--void);
  border-color: var(--ember);
  padding: 1rem 2.25rem;
  font-size: .82rem;
  letter-spacing: .2em;
  font-weight: 700;
}
.book__buy:has(> a:only-child) a:hover {
  background: var(--ember-hot);
  border-color: var(--ember-hot);
  color: var(--void);
  box-shadow: 0 0 30px var(--ember-glow);
  transform: translateY(-2px);
}

/* ---------- CHARACTERS ---------- */
.characters__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.character {
  position: relative;
  background: linear-gradient(180deg, var(--void-2), var(--void));
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  transition: all .5s var(--ease);
  display: flex; flex-direction: column;
}
.character::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--ember);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
  z-index: 2;
}
.character:hover {
  border-color: rgba(255,106,31,.3);
  transform: translateY(-4px);
}
.character:hover::before { transform: scaleX(1); }

.character__image {
  position: relative;
  overflow: hidden;
}
.character__image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6,8,13,.85) 100%);
  pointer-events: none;
}
.character__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.9) contrast(1.05);
  transition: transform .8s var(--ease);
}
.character:hover .character__image img { transform: scale(1.04); }

.character__body {
  padding: 1.75rem 1.75rem 2rem;
  flex: 1;
}
.character--text-only .character__body { padding-top: 2.25rem; }

.character__initial {
  font-family: var(--display);
  font-weight: 800;
  font-size: 5rem;
  line-height: 1;
  color: rgba(255,255,255,.08);
  margin: 2rem 1.75rem .5rem;
  letter-spacing: -.05em;
}
.character:hover .character__initial { color: var(--ember-glow); }
.character__name {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: .4rem;
}
.character__role {
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1.25rem;
}
.character__bio {
  font-size: .97rem;
  color: var(--ice-dim);
  line-height: 1.65;
}

/* ---------- AUTHOR ---------- */
.author { max-width: 1100px; }
.author__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}
.author__portrait {
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--void-3), var(--void));
  border: 1px solid rgba(255,255,255,.08);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.author__portrait::before {
  content: ""; position: absolute;
  inset: 12px;
  border: 1px solid rgba(255,106,31,.25);
  pointer-events: none;
}
.author__monogram {
  font-family: var(--display);
  font-weight: 800;
  font-size: 6rem;
  color: var(--ember);
  letter-spacing: -.05em;
  opacity: .7;
}
.author__portrait img {
  width: 100%; height: 100%; object-fit: cover;
}
.author__name {
  font-family: var(--display);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: .5rem;
}
.author__short {
  font-style: italic;
  color: var(--ember);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}
.author__bio p {
  margin-bottom: 1.25rem;
  color: var(--ice-dim);
  font-size: 1.05rem;
}
.author__bio p:first-child::first-letter {
  font-family: var(--display);
  font-weight: 800;
  font-size: 3.5rem;
  float: left;
  line-height: .9;
  padding: .25rem .5rem 0 0;
  color: var(--ember);
}

/* ---------- NEWSLETTER ---------- */
.newsletter {
  text-align: center;
  max-width: 760px;
  padding-top: 5rem;
  padding-bottom: 8rem;
}
.newsletter__inner { padding: 4rem 2rem; border: 1px solid rgba(255,255,255,.1); position: relative; }
.newsletter__inner::before,
.newsletter__inner::after {
  content: ""; position: absolute;
  width: 20px; height: 20px;
  border: 1px solid var(--ember);
}
.newsletter__inner::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.newsletter__inner::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.newsletter .section-label { justify-content: center; }
.newsletter .section-label::after { display: none; }
.newsletter__heading {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.01em;
  margin-bottom: 1rem;
}
.newsletter__pitch {
  color: var(--ice-dim);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto; margin-right: auto;
  font-size: 1.05rem;
}
.newsletter__form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,.2);
  transition: border-color .3s var(--ease);
}
.newsletter__form:focus-within { border-color: var(--ember); }
.newsletter__form input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 1.1rem 1.3rem;
  color: var(--ice);
  font-family: var(--body);
  font-size: 1rem;
  outline: none;
}
.newsletter__form input::placeholder { color: var(--ice-ghost); }
.newsletter__form button {
  background: var(--ember);
  color: var(--void);
  border: 0;
  padding: 0 1.8rem;
  font-family: var(--display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s var(--ease);
}
.newsletter__form button:hover { background: var(--ember-hot); }
.newsletter__beta {
  display: inline-flex;
  align-items: flex-start;
  gap: .6rem;
  margin-top: 1.25rem;
  font-family: var(--body);
  font-size: .88rem;
  color: var(--ice-dim);
  cursor: pointer;
  text-align: left;
  max-width: 460px;
  user-select: none;
}
.newsletter__beta input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border: 1px solid rgba(255,255,255,.3);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: .25rem;
  transition: all .2s var(--ease);
  position: relative;
}
.newsletter__beta input[type="checkbox"]:hover {
  border-color: var(--ember);
}
.newsletter__beta input[type="checkbox"]:checked {
  background: var(--ember);
  border-color: var(--ember);
}
.newsletter__beta input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px; top: 0px;
  width: 5px; height: 10px;
  border: solid var(--void);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.newsletter__beta span {
  line-height: 1.5;
  font-style: italic;
}

.newsletter__note {
  margin-top: 1.5rem;
  font-size: .9rem;
  color: var(--ice-dim);
  min-height: 1.2em;
  font-style: italic;
  transition: color .3s var(--ease);
}

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 3rem var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}
.footer__brand {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-size: .9rem;
}
.footer__social {
  display: flex; gap: 1.75rem;
  justify-self: center;
}
.footer__social a {
  font-family: var(--display);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ice-dim);
  transition: color .3s var(--ease);
}
.footer__social a:hover { color: var(--ember); }
.footer__meta {
  display: flex; flex-direction: column;
  align-items: flex-end;
  gap: .25rem;
  font-size: .75rem;
  color: var(--ice-ghost);
  font-style: italic;
}

/* ---------- VIDEOS ---------- */
.videos { max-width: 1100px; }
.videos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.video {
  cursor: pointer;
  transition: transform .5s var(--ease);
}
.video:hover { transform: translateY(-4px); }

.video__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--void-2);
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .5s var(--ease);
}
.video:hover .video__thumb {
  border-color: rgba(255,106,31,.4);
  box-shadow: 0 20px 60px -15px rgba(0,0,0,.7), 0 0 40px -10px var(--ember-glow);
}
.video__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease), filter .3s var(--ease);
  filter: saturate(.85);
}
.video:hover .video__thumb img {
  transform: scale(1.05);
  filter: saturate(1);
}
.video__thumb iframe {
  width: 100%; height: 100%; border: 0; display: block;
}
.video__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border: 1px solid var(--ember);
  background: rgba(6,8,13,.75);
  backdrop-filter: blur(4px);
  color: var(--ember);
  cursor: pointer;
  display: flex;
  align-items: center; justify-content: center;
  transition: all .3s var(--ease);
  padding-left: 4px; /* optical centering of triangle */
}
.video:hover .video__play {
  background: var(--ember);
  color: var(--void);
  box-shadow: 0 0 30px var(--ember-glow);
  transform: translate(-50%, -50%) scale(1.08);
}
.video__title {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.005em;
  margin-top: 1.1rem;
  color: var(--ice);
  line-height: 1.3;
}
.videos__channel {
  display: inline-block;
  font-family: var(--display);
  font-size: .82rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ember);
  padding: 1rem 2rem;
  border: 1px solid var(--ember);
  transition: all .3s var(--ease);
}
.videos__channel:hover {
  background: var(--ember);
  color: var(--void);
  box-shadow: 0 0 30px var(--ember-glow);
}

/* ---------- PRAISE / REVIEWS ---------- */
.praise { max-width: 1100px; }
.praise__blurbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
}
.blurb {
  padding: 2.5rem 2rem 2rem;
  background: linear-gradient(180deg, var(--void-2), var(--void));
  border: 1px solid rgba(255,255,255,.08);
  position: relative;
}
.blurb::before {
  content: "“";
  position: absolute;
  top: .25rem; left: 1rem;
  font-family: var(--display);
  font-size: 5rem;
  line-height: 1;
  color: var(--ember);
  opacity: .4;
}
.blurb__quote {
  font-family: var(--body);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ice);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.blurb__cite {
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.blurb__attribution { color: var(--ember); font-weight: 700; }
.blurb__source      { color: var(--ice-ghost); font-weight: 400; }

.blurb:nth-child(even)::before { color: var(--signal); }
.blurb:nth-child(even) .blurb__attribution { color: var(--signal); }

.praise__reviews-label {
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ice-ghost);
  margin-bottom: 1rem;
  text-align: center;
}
.praise__reviews {
  display: flex; flex-wrap: wrap; gap: .75rem;
  justify-content: center;
}
.praise__reviews a {
  font-family: var(--display);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .9rem 1.7rem;
  border: 1px solid rgba(255,255,255,.2);
  color: var(--ice);
  transition: all .3s var(--ease);
}
.praise__reviews a:hover {
  border-color: var(--ember);
  color: var(--ember);
  background: rgba(255,106,31,.05);
}

/* ---------- CONTACT ---------- */
.contact { max-width: 780px; }
.contact__pitch {
  color: var(--ice-dim);
  font-size: 1.05rem;
  margin-bottom: 2.75rem;
  max-width: 620px;
}
.newsletter__alt {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .92rem;
  color: var(--ice-ghost);
  font-style: italic;
}
.newsletter__alt-link {
  background: none;
  border: 0;
  color: var(--signal);
  font-family: var(--body);
  font-style: italic;
  font-size: .92rem;
  cursor: pointer;
  padding: 0;
  margin-left: .25rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 0.5px;
  text-decoration-color: rgba(127, 212, 255, 0.4);
  transition: color .3s var(--ease), text-decoration-color .3s var(--ease);
}
.newsletter__alt-link:hover {
  color: var(--signal-hot);
  text-decoration-color: var(--signal-hot);
}
.newsletter__contact[hidden] { display: none; }
.newsletter__contact {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: left;
  animation: revealDown .5s var(--ease);
}
@keyframes revealDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.contact__field {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.contact__field > span {
  font-family: var(--display);
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ice-ghost);
}
.contact__field input,
.contact__field textarea {
  background: var(--void-2);
  border: 1px solid rgba(255,255,255,.12);
  padding: 1rem 1.2rem;
  color: var(--ice);
  font-family: var(--body);
  font-size: 1rem;
  outline: none;
  transition: border-color .3s var(--ease), background .3s var(--ease);
  resize: vertical;
}
.contact__field input:focus,
.contact__field textarea:focus {
  border-color: var(--ember);
  background: var(--void-3);
}
.contact__field textarea { min-height: 140px; font-family: var(--body); line-height: 1.6; }
.contact__form button {
  align-self: flex-start;
  background: var(--ember);
  color: var(--void);
  border: 0;
  padding: 1.1rem 2.5rem;
  font-family: var(--display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .3s var(--ease);
  margin-top: .5rem;
}
.contact__form button:hover:not(:disabled) {
  background: var(--ember-hot);
  box-shadow: 0 0 30px var(--ember-glow);
  transform: translateY(-2px);
}
.contact__form button:disabled { opacity: .6; cursor: wait; }
.contact__note {
  margin-top: 1.25rem;
  font-size: .9rem;
  font-style: italic;
  color: var(--ice-dim);
  min-height: 1.2em;
}

/* ---------- FIRST LINES (inline prologue tease) ---------- */
.first-lines {
  max-width: 820px;
}
.first-lines__panel {
  position: relative;
  padding: 3.5rem 3rem 2rem;
  background:
    linear-gradient(180deg, var(--void-2) 0%, var(--void) 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-left: 2px solid;
  border-image: linear-gradient(180deg, var(--signal), var(--ember)) 1;
}
.first-lines__meta {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.first-lines__pov {
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: .5rem;
}
.first-lines__chapter {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ice);
  margin-bottom: .35rem;
}
.first-lines__where {
  font-family: var(--display);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ice-ghost);
}
.first-lines__prose {
  font-family: var(--body);
  font-size: 1.12rem;
  line-height: 1.85;
  color: rgba(232, 236, 241, 0.92);
  position: relative;
}
.first-lines__prose p {
  margin: 0 0 1.3rem;
}
.first-lines__prose p:first-child::first-letter {
  font-family: var(--display);
  font-weight: 800;
  font-size: 4rem;
  float: left;
  line-height: .85;
  padding: .3rem .5rem 0 0;
  background: linear-gradient(180deg, var(--signal) 0%, var(--ember) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.first-lines__fade {
  position: absolute;
  bottom: 5.5rem;
  left: 0; right: 0;
  height: 100px;
  background: linear-gradient(180deg, transparent 0%, var(--void) 90%);
  pointer-events: none;
}
.first-lines__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1rem;
  background: var(--ember);
  color: var(--void);
  border: 0;
  padding: 1.1rem 2.25rem;
  font-family: var(--display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .35s var(--ease);
}
.first-lines__cta:hover {
  background: var(--ember-hot);
  box-shadow: 0 0 36px var(--ember-glow);
  transform: translateY(-2px);
}
.first-lines__cta svg {
  transition: transform .3s var(--ease);
}
.first-lines__cta:hover svg {
  transform: translateX(4px);
}

@media (max-width: 860px) {
  .first-lines__panel { padding: 2.5rem 1.5rem 2rem; }
  .first-lines__prose { font-size: 1rem; line-height: 1.78; }
  .first-lines__prose p:first-child::first-letter { font-size: 3rem; }
  .first-lines__fade  { bottom: 5rem; }
}

/* ---------- PROLOGUE READER (full-screen overlay) ---------- */
.prologue {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6, 8, 13, 0.96);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  animation: prologueFadeIn .5s var(--ease);
}
.prologue[hidden] { display: none; }

@keyframes prologueFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.prologue__return {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 1002;
  background: rgba(6, 8, 13, 0.85);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--ice);
  min-height: 48px;
  padding: 0 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  cursor: pointer;
  transition: all .3s var(--ease);
  backdrop-filter: blur(8px);
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.prologue__return:hover {
  border-color: var(--signal);
  color: var(--signal-hot);
  background: rgba(127, 212, 255, 0.08);
}

.prologue__close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1002;
  background: rgba(6, 8, 13, 0.85);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--ice);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .3s var(--ease);
  backdrop-filter: blur(8px);
}
.prologue__close:hover {
  border-color: var(--ember);
  color: var(--ember);
  background: rgba(255, 106, 31, 0.1);
}

.prologue__progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,.05);
  z-index: 1001;
}
.prologue__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--signal), var(--ember));
  transition: width .12s linear;
  box-shadow: 0 0 12px rgba(255, 106, 31, 0.5);
}

.prologue__scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.prologue__inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 6rem 2rem 8rem;
  font-family: var(--body);
  color: var(--ice);
}

.prologue__header {
  text-align: center;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.prologue__mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 2rem;
  display: block;
  filter:
    drop-shadow(0 -2px 12px rgba(127, 212, 255, 0.5))
    drop-shadow(0 2px 12px rgba(255, 106, 31, 0.5));
  transition: transform .25s linear;
  will-change: transform;
}
.prologue__pov {
  font-family: var(--display);
  font-size: .75rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1.25rem;
}
.prologue__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin-bottom: 1rem;
  color: var(--ice);
}
.prologue__meta {
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ice-ghost);
  font-style: normal;
}

.prologue__body {
  font-size: 1.18rem;
  line-height: 1.85;
  font-weight: 400;
  color: rgba(232, 236, 241, 0.92);
}
.prologue__body p {
  margin: 0 0 1.4rem;
  text-indent: 0;
}
.prologue__body p + p {
  margin-top: 0;
}
/* First paragraph after a break or after the header — drop cap */
.prologue__body > p:first-of-type::first-letter {
  font-family: var(--display);
  font-weight: 800;
  font-size: 4.5rem;
  float: left;
  line-height: .85;
  padding: .35rem .55rem 0 0;
  color: var(--ember);
  background: linear-gradient(180deg, var(--signal) 0%, var(--ember) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.prologue__break {
  text-align: center;
  margin: 3rem 0;
  color: var(--ember);
  font-size: 1.1rem;
  letter-spacing: 1em;
  padding-left: 1em; /* optical centering for letter-spacing */
  opacity: 0.5;
}

.prologue__footer {
  margin-top: 5rem;
  padding-top: 3rem;
  text-align: center;
}
.prologue__rule {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  margin: 0 auto 2.5rem;
}
.prologue__end {
  font-family: var(--display);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ice-ghost);
  margin-bottom: 2.5rem;
  font-style: normal;
}

/* Custom scrollbar for the prologue reader */
.prologue__scroll::-webkit-scrollbar {
  width: 8px;
}
.prologue__scroll::-webkit-scrollbar-track {
  background: rgba(255,255,255,.02);
}
.prologue__scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--signal), var(--ember));
  border-radius: 0;
}

/* ---------- REVEAL ON SCROLL ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .hero__bg {
    animation: none;
    transform: none;
    background-position: center center;
  }

  .nav__links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 70%; max-width: 320px;
    background: var(--void-2);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    border-left: 1px solid rgba(255,255,255,.08);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__toggle { display: block; position: relative; z-index: 101; }

  .book__item { grid-template-columns: 1fr; gap: 2.5rem; }
  .book__cover { max-width: 280px; }
  .author__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .author__portrait { max-width: 240px; }
  .contact__row { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; text-align: center; }

  /* Prologue reader on mobile */
  .prologue__inner { padding: 5rem 1.25rem 6rem; }
  .prologue__body  { font-size: 1.08rem; line-height: 1.78; }
  .prologue__return { top: 1rem; left: 1rem; min-height: 42px; padding: 0 .8rem; font-size: .65rem; }
  .prologue__close { top: 1rem; right: 1rem; width: 42px; height: 42px; }
  .prologue__body > p:first-of-type::first-letter { font-size: 3.5rem; }
  .footer__social { justify-self: center; }
  .footer__meta { align-items: center; }
  section { padding: 5rem var(--gutter); }
  .hero { padding-top: 7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- SIGNALS (audio tracks) ---------- */
.audio__track { margin-bottom: 2.25rem; }
.audio__track:last-child { margin-bottom: 0; }
.audio__track .audio__title {
  font-family: var(--display); font-size: 1rem; font-weight: 700;
  letter-spacing: .05em; color: var(--ice); margin-bottom: .35rem;
}
.audio__note {
  font-family: var(--body); font-style: italic; font-size: .92rem;
  color: var(--ice-ghost); margin-bottom: .75rem;
}
.audio__track audio {
  width: 100%; display: block;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.8);
  border-radius: 2px;
}
