/* =========================================================
   A.C. WRAITHE · Author Site
   Palette & type drawn from the NULL cover art:
   deep teal-charcoal, cyan data-glow, warm gold nameplate.
   ========================================================= */

:root {
  /* Surfaces */
  --bg:        #090d11;
  --bg-1:      #0b1218;
  --bg-2:      #0f1a22;
  --panel:     #111c25;
  --line:      rgba(120, 160, 175, 0.14);
  --line-soft: rgba(120, 160, 175, 0.08);

  /* Ink */
  --ink:       #eef4f6;
  --ink-dim:   #b7c6cd;
  --muted:     #8296a0;

  /* Accents */
  --cyan:      #5fd0e0;
  --cyan-deep: #2f9fb4;
  --cyan-glow: rgba(95, 208, 224, 0.35);
  --gold:      #e2b473;
  --gold-deep: #c8944e;

  /* Type */
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --disp:  "Space Grotesk", var(--sans);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  /* Metrics */
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* Ambient page grain / vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 700px at 78% -8%, rgba(95,208,224,0.10), transparent 60%),
    radial-gradient(900px 600px at 8% 108%, rgba(226,180,115,0.06), transparent 60%);
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ---------- Shared type ---------- */
.eyebrow {
  font-family: var(--disp);
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 500;
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.section-title {
  font-family: var(--disp);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}

.lede { color: var(--ink-dim); font-size: 1.12rem; max-width: 60ch; }

.section { position: relative; z-index: 1; padding: clamp(80px, 11vw, 150px) 0; }
.section--alt { background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-1) 12%, var(--bg-1) 88%, var(--bg) 100%); }

/* ---------- Buttons ---------- */
.btn {
  --_bg: transparent;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--disp);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 15px 28px;
  border-radius: 2px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--_bg);
  cursor: pointer;
  transition: transform .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  border-color: rgba(95,208,224,0.55);
  color: #06121a;
  background: linear-gradient(180deg, #7fdcea, var(--cyan));
  box-shadow: 0 0 0 rgba(95,208,224,0);
}
.btn--primary:hover { box-shadow: 0 14px 40px -12px var(--cyan-glow); }
.btn--ghost:hover { border-color: rgba(226,180,115,0.55); color: var(--gold); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 48px);
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(9, 13, 17, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  padding-top: 14px; padding-bottom: 14px;
}
.nav__brand {
  font-family: var(--disp);
  font-weight: 500;
  letter-spacing: 0.34em;
  font-size: 0.86rem;
  text-transform: uppercase;
  color: var(--ink);
}
.nav__brand b { color: var(--gold); font-weight: 500; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  font-family: var(--disp);
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); position: relative; transition: color .3s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--cyan); transition: width .35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { color: var(--cyan) !important; }
.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 130px 0 70px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 85% 30%, rgba(47,159,180,0.16), transparent 55%),
    linear-gradient(180deg, #0a1319 0%, #0b1218 45%, #090d11 100%);
}
/* light-trail streaks echoing the cover's motion lines */
.hero__bg::before,
.hero__bg::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: 0.5;
}
.hero__bg::before {
  width: 620px; height: 620px; right: -120px; top: 8%;
  background: radial-gradient(circle, rgba(95,208,224,0.22), transparent 68%);
}
.hero__bg::after {
  width: 460px; height: 460px; left: -140px; bottom: -60px;
  background: radial-gradient(circle, rgba(226,180,115,0.12), transparent 70%);
}

.hero__grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}

.hero__eyebrow {
  font-family: var(--disp);
  letter-spacing: 0.5em; text-transform: uppercase;
  font-size: 0.74rem; color: var(--ink-dim); font-weight: 500;
  margin: 0 0 26px;
}
.hero__eyebrow b { color: var(--gold); font-weight: 600; letter-spacing: 0.5em; }

/* Author wordmark with pixel-dissolve (a name fraying into static) */
.hero__mark { display: inline-flex; flex-direction: column; align-items: flex-start; }
.hero__ac {
  font-family: var(--disp); font-weight: 500;
  font-size: clamp(0.8rem, 2vw, 1.05rem);
  letter-spacing: 0.62em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 6px 4px;
}
.wordmark {
  display: flex; align-items: center; gap: 0.02em;
  font-family: var(--disp);
  font-weight: 500;
  font-size: clamp(3rem, 9.6vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0.05em;
  margin: 0;
  color: #f3f8fa;
  position: relative;
}
.wordmark > span { display: inline-block; position: relative; }
.wordmark .dis, .wordmark .dis-anchor { display: inline-block; position: relative; }

/* Letters that crumble: an oversized directional mask whose transparent
   tail sweeps across the glyph's trailing edge, eroding it into the blocks. */
/* --edge is the crumbling frontier; animating it sweeps the dissolve
   in and out so real square holes open in the letter, showing the bg. */
@property --edge {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 110%;
}
.wordmark .dis {
  /* 4 mask layers, composited:  SOLID  ∪  ( COLUMNS ∩ ROWS ∩ FADE-ZONE )
     - SOLID keeps everything left of the frontier fully opaque
     - COLUMNS ∩ ROWS = a grid of square tiles (the "pixels")
     - FADE-ZONE lets those tiles show only around the frontier, thinning
       to nothing past it -> the letter breaks into blocks that wink out. */
  --edge: 110%;
  -webkit-mask-image:
    linear-gradient(100deg, #000 0 calc(var(--edge) - 40%), transparent calc(var(--edge) - 8%)),
    repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 10px),
    repeating-linear-gradient(0deg,  #000 0 7px, transparent 7px 10px),
    linear-gradient(100deg, transparent calc(var(--edge) - 44%), #000 calc(var(--edge) - 22%), transparent calc(var(--edge) + 10%));
          mask-image:
    linear-gradient(100deg, #000 0 calc(var(--edge) - 40%), transparent calc(var(--edge) - 8%)),
    repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 10px),
    repeating-linear-gradient(0deg,  #000 0 7px, transparent 7px 10px),
    linear-gradient(100deg, transparent calc(var(--edge) - 44%), #000 calc(var(--edge) - 22%), transparent calc(var(--edge) + 10%));
  -webkit-mask-composite: source-over, source-in, source-in;
          mask-composite: add, intersect, intersect;
  mask-repeat: repeat; -webkit-mask-repeat: repeat;
}
.wordmark .dis--1 { animation: erode1 6.6s var(--ease) infinite .4s; }
.wordmark .dis--2 { animation: erode2 5.2s var(--ease) infinite;   }

/* second-to-last L: lighter erosion (trailing edge only) */
@keyframes erode1 { 0%, 100% { --edge: 122%; } 50% { --edge: 94%; } }
/* last L: deeper erosion (bites into the stem) */
@keyframes erode2 { 0%, 100% { --edge: 108%; } 50% { --edge: 64%; } }

/* Blocks shed from the letters and drift up-right, then fade. */
.wordmark .px {
  position: absolute;
  background: #eef6f8;
  border-radius: 1px;
  opacity: 0;
  will-change: transform, opacity;
  box-shadow: 0 0 8px rgba(160, 228, 240, 0.5);
  animation: pxFly var(--dur, 5s) var(--ease) infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes pxFly {
  0%   { opacity: 0; transform: translate(0, 0) scale(1); }
  14%  { opacity: 1; }
  70%  { opacity: .85; }
  100% { opacity: 0; transform: translate(var(--tx, 30px), var(--ty, -20px)) scale(.5); }
}
@media (prefers-reduced-motion: reduce) {
  .wordmark .dis { animation: none; --edge: 98%; }
  .wordmark .px { animation: none; opacity: .7; transform: none; }
}

.hero__sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  color: var(--ink-dim);
  margin: 26px 0 10px;
  letter-spacing: 0.01em;
}
.hero__meta {
  font-family: var(--disp);
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 30px;
}
.hero__meta span { color: var(--cyan); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }

/* Cover art */
.cover {
  position: relative;
  justify-self: center;
  perspective: 1400px;
}
.cover__img {
  width: min(360px, 78vw);
  border-radius: 4px;
  box-shadow:
    0 2px 0 rgba(255,255,255,0.05) inset,
    0 40px 80px -30px rgba(0,0,0,0.85),
    0 0 60px -18px var(--cyan-glow);
  transform: rotateY(-8deg) rotateX(2deg);
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
  will-change: transform;
}
.cover:hover .cover__img {
  transform: rotateY(-3deg) rotateX(1deg) translateY(-6px);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.06) inset,
    0 55px 95px -32px rgba(0,0,0,0.9),
    0 0 80px -14px var(--cyan-glow);
}
.cover__glow {
  position: absolute; inset: -8% -12%;
  background: radial-gradient(circle at 50% 55%, var(--cyan-glow), transparent 62%);
  filter: blur(24px); z-index: -1; opacity: 0.7;
}
.cover__badge {
  position: absolute; left: -18px; bottom: 26px;
  background: rgba(9,13,17,0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(226,180,115,0.4);
  color: var(--gold);
  font-family: var(--disp);
  font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 2px;
}

/* Scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--disp); font-size: 0.6rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--muted);
}
.scroll-cue .line { width: 1px; height: 42px; background: linear-gradient(var(--cyan), transparent); animation: cueMove 2.4s var(--ease) infinite; }
@keyframes cueMove { 0%,100% { opacity:.3; transform: scaleY(.5); transform-origin: top; } 50% { opacity:1; transform: scaleY(1); } }

/* ---------- Quote band ---------- */
.band {
  position: relative; z-index: 1;
  padding: clamp(70px, 10vw, 130px) 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, #0a141a 50%, var(--bg) 100%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
}
.band__q {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4.2vw, 3rem);
  line-height: 1.28;
  font-weight: 400;
  color: var(--ink);
  max-width: 22ch;
  margin: 0 auto;
}
.band__q em { font-style: italic; color: var(--cyan); }
.band__cite {
  font-family: var(--disp);
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted); margin-top: 30px;
}

/* ---------- The Book ---------- */
.book__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
}
.book__cover-wrap { position: relative; }
.book__cover {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 40px 80px -34px rgba(0,0,0,0.85), 0 0 50px -20px var(--cyan-glow);
}
.book__meta {
  margin-top: 26px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 4px; overflow: hidden;
}
.book__meta dt {
  font-family: var(--disp); font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); margin: 0;
}
.book__meta dd { margin: 6px 0 0; font-size: 0.92rem; color: var(--ink); }
.book__meta .cell { background: var(--bg-1); padding: 18px 20px; }

.prose p { color: var(--ink-dim); margin: 0 0 22px; }
.prose p.first::first-letter {
  font-family: var(--serif);
  float: left; font-size: 3.6em; line-height: 0.78; padding: 6px 12px 0 0;
  color: var(--cyan); font-weight: 500;
}
.prose strong { color: var(--ink); font-weight: 600; }

.comps {
  margin-top: 30px; padding: 22px 24px;
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(226,180,115,0.06), transparent);
}
.comps span {
  font-family: var(--disp); font-size: 0.64rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 8px;
}
.comps p { margin: 0; color: var(--ink-dim); font-size: 0.98rem; }
.comps em { color: var(--ink); font-style: italic; }

/* Books library */
.books__head { max-width: 60ch; margin-bottom: clamp(46px, 6vw, 78px); }
.book--featured { display: block; }
.book__tag, .book-card__series {
  font-family: var(--disp); font-size: 0.64rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--cyan); margin: 0 0 16px;
}
.book__tagline {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--gold);
  margin: -8px 0 24px;
}
.book__text h3.section-title { font-size: clamp(2.2rem, 5vw, 3.4rem); }

.books__more {
  margin-top: clamp(60px, 8vw, 100px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line-soft);
}
.books__more-title {
  font-family: var(--disp); font-weight: 500; font-size: 1.15rem;
  letter-spacing: 0.02em; margin: 0 0 34px; color: var(--ink);
}
.book-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 22px; }

.book-card {
  display: flex; gap: 20px; align-items: stretch;
  padding: 20px;
  background: linear-gradient(180deg, var(--panel), var(--bg-1));
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.book-card:hover { transform: translateY(-5px); border-color: var(--line); box-shadow: 0 28px 56px -34px rgba(0,0,0,0.8); }
.book-card__cover {
  flex: 0 0 96px; width: 96px; align-self: flex-start;
  border-radius: 3px; overflow: hidden;
  box-shadow: 0 16px 34px -18px rgba(0,0,0,0.85), 0 0 26px -14px var(--cyan-glow);
}
.book-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.book-card__cover--placeholder {
  aspect-ratio: 1694 / 2528;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 60% 25%, rgba(95,208,224,0.14), transparent 55%),
    linear-gradient(160deg, #101d26, #0a1015);
  border: 1px solid var(--line-soft);
}
.book-card__glyph {
  font-family: var(--disp); font-weight: 500; font-size: 1.9rem;
  color: rgba(226,180,115,0.85); letter-spacing: 0.1em;
}
.book-card__body { display: flex; flex-direction: column; }
.book-card__series { margin-bottom: 10px; }
.book-card__title { font-family: var(--disp); font-weight: 500; font-size: 1.3rem; margin: 0 0 8px; letter-spacing: -0.01em; }
.book-card__desc { margin: 0 0 16px; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.book-card__link {
  margin-top: auto;
  font-family: var(--disp); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); display: inline-flex; align-items: center; gap: 8px;
}
.book-card__link .arrow { transition: transform .35s var(--ease); }
.book-card__link:hover .arrow { transform: translateX(4px); }
.book-card__badge {
  margin-top: auto; align-self: flex-start;
  font-family: var(--disp); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(226,180,115,0.4); border-radius: 2px;
  padding: 6px 12px;
}
.book-card--soon { opacity: 0.92; }

/* ---------- Themes ---------- */
.themes__head { max-width: 62ch; margin-bottom: 60px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative;
  padding: 34px 30px 36px;
  background: linear-gradient(180deg, var(--panel), var(--bg-1));
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: 0 30px 60px -34px rgba(0,0,0,0.8); }
.card:hover::before { transform: scaleX(1); }
.card__num {
  font-family: var(--disp); font-size: 0.72rem; letter-spacing: 0.2em;
  color: var(--cyan-deep); margin-bottom: 18px;
}
.card h3 { font-family: var(--disp); font-weight: 500; font-size: 1.22rem; margin: 0 0 12px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; line-height: 1.65; }

/* ---------- About ---------- */
.about__grid {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.about__portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 60% 20%, rgba(95,208,224,0.18), transparent 55%),
    linear-gradient(160deg, #0f1a22, #0a1015);
  display: grid; place-items: center;
}
.about__glyph {
  font-family: var(--disp); font-weight: 500;
  font-size: clamp(3rem, 8vw, 5.5rem); letter-spacing: 0.08em;
  color: rgba(238,246,248,0.9);
  text-shadow: 0 0 40px var(--cyan-glow);
}
.about__glyph small { display: block; text-align: center; font-size: 0.2em; letter-spacing: 0.5em; color: var(--gold); margin-top: 14px; }
.about__portrait .corner { position: absolute; width: 22px; height: 22px; border: 1px solid rgba(226,180,115,0.5); }
.about__portrait .corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.about__portrait .corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

.about__body p { color: var(--ink-dim); margin: 0 0 22px; }
.about__body p:first-of-type { font-size: 1.12rem; color: var(--ink); font-family: var(--serif); font-style: italic; line-height: 1.5; }
.about__sig {
  font-family: var(--serif); font-style: italic; font-size: 1.7rem;
  color: var(--gold); margin-top: 8px;
}

/* ---------- Newsletter ---------- */
.signup {
  position: relative; z-index: 1;
  text-align: center;
  padding: clamp(80px, 11vw, 150px) 0;
  background:
    radial-gradient(120% 130% at 50% 0%, rgba(47,159,180,0.14), transparent 55%),
    linear-gradient(180deg, var(--bg-1), var(--bg));
  border-top: 1px solid var(--line-soft);
}
.signup__inner { max-width: 640px; margin: 0 auto; }
.signup .lede { margin: 0 auto 36px; }
.form {
  display: flex; gap: 12px; max-width: 500px; margin: 0 auto;
}
.form input[type="email"] {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--sans); font-size: 1rem;
  padding: 15px 18px; border-radius: 2px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.form input::placeholder { color: var(--muted); }
.form input:focus {
  outline: none; border-color: rgba(95,208,224,0.6);
  box-shadow: 0 0 0 3px rgba(95,208,224,0.12);
}
.form__note { font-size: 0.8rem; color: var(--muted); margin-top: 18px; }
.form__msg { font-family: var(--disp); letter-spacing: 0.06em; color: var(--cyan); margin-top: 22px; min-height: 1.2em; }

/* ---------- Footer ---------- */
.footer {
  position: relative; z-index: 1;
  padding: 60px 0 46px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
}
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__brand { font-family: var(--disp); letter-spacing: 0.3em; text-transform: uppercase; font-size: 0.8rem; }
.footer__brand b { color: var(--gold); font-weight: 500; }
.footer__links { display: flex; gap: 26px; }
.footer__links a { font-family: var(--disp); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); transition: color .3s var(--ease); }
.footer__links a:hover { color: var(--cyan); }
.footer__fine { margin-top: 30px; font-size: 0.76rem; color: var(--muted); max-width: 60ch; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { min-height: auto; align-items: start; padding: 104px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; text-align: left; }
  .term { width: 100%; justify-self: stretch; margin-top: 10px; }
  .scroll-cue { display: none; }
  .book__grid { grid-template-columns: 1fr; }
  .book__cover-wrap { max-width: 340px; }
  .cards { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .redact { max-width: 360px; }
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex; position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; align-items: flex-start; gap: 20px;
    padding: 26px clamp(20px,4vw,48px);
    background: rgba(9,13,17,0.96); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav__toggle {
    display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px;
  }
  .nav__toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s var(--ease); }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .section { padding: 72px 0; }
  .signup, .band { padding-top: 74px; padding-bottom: 74px; }
  .form { flex-direction: column; }
  .form input[type="email"], .form .btn { width: 100%; }
  .btn { justify-content: center; }
  .hero__actions { gap: 12px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .nav { padding-left: 20px; padding-right: 20px; }
  .book__meta { grid-template-columns: 1fr; }
  .footer__row { flex-direction: column; align-items: flex-start; }
  .footer__links { flex-wrap: wrap; gap: 16px 22px; }
}

/* =========================================================
   AUTHOR-BRAND ADDITIONS (ghost in the machine)
   ========================================================= */

/* Hero kicker */
.hero__kicker {
  font-family: var(--disp); font-size: 0.72rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--cyan);
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 28px;
}
.hero__kicker .tick {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan-glow);
  animation: blink 1.6s steps(1) infinite;
}

/* Scanline ambiance */
.hero__scan {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.45;
  background: repeating-linear-gradient(0deg, rgba(95,208,224,0.035) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
  animation: scan 9s linear infinite;
}
@keyframes scan  { to { background-position: 0 60px; } }
@keyframes blink { 50% { opacity: 0; } }

/* Terminal card: the hero "pop" */
.term {
  position: relative; z-index: 2;
  justify-self: center; width: min(440px, 100%);
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, Menlo, monospace;
  background: linear-gradient(180deg, rgba(11,18,24,0.94), rgba(9,13,17,0.97));
  border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 44px 90px -42px rgba(0,0,0,0.85), 0 0 70px -34px var(--cyan-glow);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.term__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px; border-bottom: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.02);
}
.term__bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #2a3942; }
.term__bar .dot:nth-child(1) { background: #e05b5b; }
.term__bar .dot:nth-child(2) { background: #e2b473; }
.term__bar .dot:nth-child(3) { background: #4fae6a; }
.term__title { margin-left: 10px; font-size: 0.7rem; letter-spacing: 0.06em; color: var(--muted); }
.term__body { padding: 22px 22px 26px; font-size: 0.9rem; line-height: 1.95; }
.term__line {
  margin: 0; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(5px);
  animation: termLine 0.5s var(--ease) forwards;
}
.term__line:nth-child(1) { animation-delay: 0.25s; }
.term__line:nth-child(2) { animation-delay: 0.55s; }
.term__line:nth-child(3) { animation-delay: 0.85s; }
.term__line:nth-child(4) { animation-delay: 1.10s; }
.term__line:nth-child(5) { animation-delay: 1.40s; }
.term__line:nth-child(6) { animation-delay: 1.65s; }
.term__line:nth-child(7) { animation-delay: 1.95s; }
.term__line:nth-child(8) { animation-delay: 2.20s; }
.term__line:nth-child(9) { animation-delay: 2.55s; }
.term__line .p { color: var(--cyan); margin-right: 8px; }
.term__line.out { color: var(--muted); padding-left: 6px; }
.term__line .ok   { color: #6fe0a0; }
.term__line .warn { color: var(--gold); }
.cursor {
  display: inline-block; width: 10px; height: 1.05em; vertical-align: -2px;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan-glow);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes termLine { to { opacity: 1; transform: none; } }

/* Redacted author panel */
.redact {
  position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 60% 12%, rgba(95,208,224,0.16), transparent 55%),
    linear-gradient(160deg, #0f1a22, #0a1015);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 28px;
}
.redact__scan {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 4px);
  animation: scan 7s linear infinite;
}
.redact .corner { position: absolute; width: 20px; height: 20px; border: 1px solid rgba(226,180,115,0.5); z-index: 2; }
.redact .corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.redact .corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.redact__face { position: relative; z-index: 1; margin: auto 0; text-align: center; }
.redact__glyph {
  display: block; font-family: var(--disp); font-weight: 500;
  font-size: clamp(3rem, 8vw, 5rem); letter-spacing: 0.06em;
  color: rgba(238,246,248,0.92); text-shadow: 0 0 46px var(--cyan-glow);
  animation: flicker 5s steps(1) infinite;
}
@keyframes flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.4; } 94% { opacity: 1; } 96% { opacity: 0.6; } 97% { opacity: 1; }
}
.redact__tag {
  display: block; margin-top: 16px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.64rem; letter-spacing: 0.12em; color: var(--muted);
}
.redact__meta {
  position: relative; z-index: 1; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px;
  font-family: ui-monospace, Consolas, monospace;
}
.redact__meta dt { font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0; }
.redact__meta dd { margin: 3px 0 0; font-size: 0.82rem; color: var(--ink); }
.redact__meta .ok   { color: #6fe0a0; }
.redact__meta .warn { color: var(--gold); }

/* 4-up range grid */
.cards--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cards--4 { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .hero__scan, .redact__scan, .redact__glyph { animation: none; }
  .hero__kicker .tick, .cursor { animation: none; }
  .term__line { opacity: 1; transform: none; animation: none; }
}

/* =========================================================
   REDACT PANEL: glitch-out → hacker terminal sequence
   ========================================================= */
.redact__glyph { position: relative; }
.redact__glyph::before, .redact__glyph::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
}
.redact__face { transition: opacity .25s var(--ease); }

/* --- glitch burst --- */
.redact.is-glitch .redact__glyph { animation: glMain .3s steps(3) infinite; }
.redact.is-glitch .redact__glyph::before {
  color: #ff3b6b; opacity: .85; text-shadow: -2px 0 #ff3b6b;
  animation: glMove1 .28s steps(2) infinite;
}
.redact.is-glitch .redact__glyph::after {
  color: #3bd6ff; opacity: .85; text-shadow: 2px 0 #3bd6ff;
  animation: glMove2 .32s steps(2) infinite;
}
@keyframes glMain {
  0%   { clip-path: inset(0 0 72% 0); transform: translate(0,0); }
  20%  { clip-path: inset(42% 0 20% 0); transform: translate(-4px,0); }
  40%  { clip-path: inset(10% 0 60% 0); transform: translate(4px,0); }
  60%  { clip-path: inset(62% 0 4% 0); transform: translate(-3px,0); }
  80%  { clip-path: inset(26% 0 36% 0); transform: translate(3px,0); }
  100% { clip-path: inset(0 0 0 0); transform: none; }
}
@keyframes glMove1 { 0%{transform:translate(0,0)} 50%{transform:translate(-5px,2px)} 100%{transform:translate(3px,-1px)} }
@keyframes glMove2 { 0%{transform:translate(0,0)} 50%{transform:translate(5px,-2px)} 100%{transform:translate(-3px,1px)} }

/* --- collapse into static --- */
.redact.is-out .redact__glyph { animation: glOut .36s var(--ease) forwards; }
.redact.is-out .redact__tag { opacity: 0; }
@keyframes glOut {
  0%   { opacity: 1; transform: none; filter: none; }
  40%  { opacity: 1; transform: scaleY(1.4) skewX(10deg); filter: blur(1px); }
  70%  { opacity: .6; transform: scaleY(.06); filter: blur(2px); }
  100% { opacity: 0; transform: scaleY(0); filter: blur(7px); }
}

/* --- static overlay --- */
.redact__static {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  mix-blend-mode: screen;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.09) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, rgba(120,230,200,0.06) 0 1px, transparent 1px 3px);
  transition: opacity .15s linear;
}
.redact.is-glitch .redact__static { opacity: .5; animation: staticJit .1s steps(2) infinite; }
.redact.is-out .redact__static { opacity: .92; }
@keyframes staticJit { 0%{background-position:0 0,0 0} 100%{background-position:3px 2px,-2px 1px} }

/* --- hacker terminal --- */
.redact__term {
  position: absolute; left: 24px; right: 24px; top: 24px; bottom: 94px;
  z-index: 2; overflow: hidden;
  font-family: ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;
  font-size: 0.64rem; line-height: 1.55; letter-spacing: 0.01em;
  color: #79e6c0; text-shadow: 0 0 8px rgba(90,230,180,0.35);
  opacity: 0; transition: opacity .2s var(--ease);
}
.redact.is-term .redact__term { opacity: 1; }
.redact.is-term .redact__face { opacity: 0; visibility: hidden; }
.redact__term .l { margin: 0; white-space: pre-wrap; word-break: break-word; }
.redact__term .l .c   { color: #3bd6ff; }
.redact__term .l.dim  { color: #4f6f68; }
.redact__term .l.warn { color: var(--gold); }
.redact__term .l.bad  { color: #ff5d73; text-shadow: 0 0 10px rgba(255,93,115,0.4); }
.redact__term .l.say  { color: #cfeee6; font-style: italic; }
.redact__term .ok     { color: #79e6c0; }
.redact__term .cur {
  display: inline-block; width: 7px; height: 1em; vertical-align: -2px;
  background: #79e6c0; box-shadow: 0 0 8px rgba(90,230,180,0.5);
  animation: blink 1s steps(1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .redact.is-glitch .redact__glyph,
  .redact.is-glitch .redact__glyph::before,
  .redact.is-glitch .redact__glyph::after,
  .redact.is-out .redact__glyph,
  .redact.is-glitch .redact__static,
  .redact__term .cur { animation: none; }
}

/* =========================================================
   TAGLINE WORD GLITCH ("...being [loved → seen → ...]")
   ========================================================= */
#glitchWord {
  position: relative; display: inline-block;
  color: var(--gold); font-style: italic;
  min-width: 3.2em;              /* steadies the trailing period against reflow */
}
#glitchWord::before, #glitchWord::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0;
  opacity: 0; pointer-events: none; white-space: nowrap;
}
#glitchWord.is-glitch { animation: gwMain 0.09s steps(2) infinite; }
#glitchWord.is-glitch::before {
  color: var(--cyan); opacity: 0.85; text-shadow: -1px 0 var(--cyan);
  animation: gwA 0.11s steps(2) infinite;
}
#glitchWord.is-glitch::after {
  color: #ff5d8a; opacity: 0.85; text-shadow: 1px 0 #ff5d8a;
  animation: gwB 0.13s steps(2) infinite;
}
@keyframes gwMain { 0% { transform: translate(0,0); } 50% { transform: translate(-1px,1px); } 100% { transform: translate(1px,-1px); } }
@keyframes gwA    { 0% { transform: translate(0,0); } 100% { transform: translate(-2px,1px); } }
@keyframes gwB    { 0% { transform: translate(0,0); } 100% { transform: translate(2px,-1px); } }

@media (prefers-reduced-motion: reduce) {
  #glitchWord.is-glitch, #glitchWord.is-glitch::before, #glitchWord.is-glitch::after { animation: none; }
}

/* =========================================================
   TAGLINE OMEN — random full-sentence corruption
   "A trap designed to consume you" (Consolas, red glow)
   ========================================================= */
.book__tagline { position: relative; }
.tagline__normal { transition: opacity .12s linear; }
.book__tagline.is-omen .tagline__normal { opacity: 0; visibility: hidden; }

.tagline__omen {
  position: absolute; left: 0; top: 0; right: 0;
  font-family: Consolas, "Cascadia Mono", ui-monospace, "Courier New", monospace;
  font-style: normal; font-weight: 600; letter-spacing: 0.01em;
  color: #ff4d5e;
  text-shadow: 0 0 10px rgba(255,60,80,0.6), 0 0 26px rgba(255,40,60,0.4);
  opacity: 0; visibility: hidden;
}
.book__tagline.is-omen .tagline__omen {
  opacity: 1; visibility: visible;
  animation: omenPulse 1.7s ease-in-out infinite;
}
.tagline__omen::before, .tagline__omen::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0; right: 0;
  opacity: 0; pointer-events: none;
}
.tagline__omen.is-glitch::before { color: #ff9aa2; opacity: .7; animation: gwA .10s steps(2) infinite; }
.tagline__omen.is-glitch::after  { color: #7a0010; opacity: .7; animation: gwB .12s steps(2) infinite; }
@keyframes omenPulse {
  0%, 100% { text-shadow: 0 0 8px rgba(255,60,80,0.5), 0 0 22px rgba(255,40,60,0.32); }
  50%      { text-shadow: 0 0 16px rgba(255,70,90,0.9), 0 0 44px rgba(255,40,60,0.62); }
}
@media (prefers-reduced-motion: reduce) {
  .book__tagline.is-omen .tagline__omen,
  .tagline__omen.is-glitch::before,
  .tagline__omen.is-glitch::after { animation: none; }
}
