/* ============================================================
   THE ALETHEAN LEGACY — promotional site
   Palette pulled from the book cover: deep navy, steel rim-light,
   hex-mesh holo overlay, warm-white title, amber threat accent.
   ============================================================ */

:root {
  /* base */
  --bg-0: #05080F;        /* near-black void */
  --bg-1: #0A1426;        /* deep navy (cover top) */
  --bg-2: #0F1E33;        /* mid navy */
  --bg-3: #16263F;        /* panel */

  /* foreground */
  --fg-0: #E8EEF5;        /* warm white */
  --fg-1: #B8C5D6;        /* dim */
  --fg-2: #6B7B92;        /* muted */
  --fg-3: #3A4A63;        /* very muted */

  /* accents */
  --steel: #7DB8D4;       /* rim-light cyan from cover */
  --steel-dim: #4A7A95;
  --steel-glow: rgba(125, 184, 212, 0.35);
  --amber: #E8A547;       /* threat / countdown */
  --amber-glow: rgba(232, 165, 71, 0.4);

  /* hex mesh */
  --mesh-color: rgba(125, 184, 212, 0.12);
  --mesh-color-strong: rgba(125, 184, 212, 0.22);

  /* type */
  --f-display: "Black Ops One", "Saira Stencil One", Impact, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background: var(--bg-0);
  color: var(--fg-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- shared ---------- */
.mono { font-family: var(--f-mono); letter-spacing: 0.04em; }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--steel);
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--steel);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
  box-shadow: 0 0 12px var(--steel-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.section-title {
  font-family: var(--f-display);
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin: 18px 0 28px;
}
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--fg-3), transparent);
}

main { position: relative; z-index: 1; }
section { padding: 120px 6vw; position: relative; }
.container { max-width: 1240px; margin: 0 auto; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6vw;
  background: linear-gradient(180deg, rgba(5,8,15,0.85), rgba(5,8,15,0));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled {
  border-bottom-color: rgba(125, 184, 212, 0.15);
  background: rgba(5,8,15,0.92);
}
.nav-brand {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-0);
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-brand .glyph {
  width: 24px; height: 24px;
  border: 1.5px solid var(--steel);
  position: relative;
  transform: rotate(45deg);
}
.nav-brand .glyph::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--steel);
  box-shadow: 0 0 12px var(--steel-glow);
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--fg-1);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--steel); }
.nav-cta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 10px 18px;
  background: var(--steel);
  color: var(--bg-0);
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.nav-cta:hover {
  background: var(--fg-0);
  box-shadow: 0 0 24px var(--steel-glow);
}
@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 140px 6vw 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.hero-bg::after {
  /* radial vignette to deepen edges */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(125,184,212,0.18), transparent 55%),
    radial-gradient(ellipse at 50% 50%, transparent 40%, var(--bg-0) 95%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero-eyebrow {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
}
.hero-eyebrow .tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-2);
  padding: 5px 10px;
  border: 1px solid var(--fg-3);
}
.hero-title {
  font-family: var(--f-display);
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.88;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
  color: var(--fg-0);
  text-shadow: 0 0 40px rgba(125, 184, 212, 0.18);
}
.hero-title .line2 {
  display: block;
  background: linear-gradient(180deg, #F2F6FB 0%, #8B9CB8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-byline {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-1);
  margin-bottom: 36px;
}
.hero-byline .author { color: var(--steel); }
.hero-pitch {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-1);
  max-width: 520px;
  margin-bottom: 44px;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.btn {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 16px 26px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--steel);
  color: var(--bg-0);
}
.btn-primary:hover {
  background: var(--fg-0);
  box-shadow: 0 0 32px var(--steel-glow);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--fg-0);
  border: 1px solid var(--fg-3);
}
.btn-ghost:hover {
  border-color: var(--steel);
  color: var(--steel);
}
.btn .arrow {
  width: 14px; height: 14px;
  transition: transform 0.2s;
}
.btn:hover .arrow { transform: translateX(3px); }

/* HUD card */
.hud {
  position: relative;
  padding: 22px 24px;
  background: rgba(15, 30, 51, 0.55);
  border: 1px solid rgba(125, 184, 212, 0.25);
  backdrop-filter: blur(6px);
  max-width: 420px;
}
.hud::before, .hud::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--steel);
}
.hud::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.hud::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.hud-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hud-label .blip {
  width: 5px; height: 5px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--amber-glow);
  animation: pulse 1.6s ease-in-out infinite;
}
.hud-readout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.hud-cell {
  text-align: center;
}
.hud-num {
  font-family: var(--f-display);
  font-size: 36px;
  color: var(--fg-0);
  line-height: 1;
  letter-spacing: 0.04em;
}
.hud-tick {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-top: 6px;
}
.hud-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(125, 184, 212, 0.2);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
  display: flex;
  justify-content: space-between;
}

/* book cover float */
.cover-stage {
  position: relative;
  display: flex;
  justify-content: center;
}
.cover-frame {
  position: relative;
  perspective: 1200px;
}
.cover-img {
  width: clamp(260px, 34vw, 420px);
  display: block;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(125,184,212,0.15),
    inset 0 0 0 1px rgba(125,184,212,0.1);
  transform: rotateY(-8deg) rotateX(2deg);
  transition: transform 0.6s ease;
}
.cover-frame:hover .cover-img {
  transform: rotateY(0deg) rotateX(0deg);
}
.cover-corners span {
  position: absolute;
  width: 24px; height: 24px;
  border: 1px solid var(--steel);
  pointer-events: none;
}
.cover-corners .tl { top: -12px; left: -12px; border-right: none; border-bottom: none; }
.cover-corners .tr { top: -12px; right: -12px; border-left: none; border-bottom: none; }
.cover-corners .bl { bottom: -12px; left: -12px; border-right: none; border-top: none; }
.cover-corners .br { bottom: -12px; right: -12px; border-left: none; border-top: none; }

.cover-ticks {
  position: absolute;
  top: 50%;
  left: -50px;
  transform: translateY(-50%);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--fg-2);
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: right;
}
@media (max-width: 960px) { .cover-ticks { display: none; } }

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-cue .line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--steel), transparent);
  animation: drop 2.2s ease-in-out infinite;
}
@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- synopsis ---------- */
.synopsis {
  background: var(--bg-0);
  position: relative;
}
.synopsis-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .synopsis-grid { grid-template-columns: 1fr; gap: 32px; }
}
.synopsis-aside .stat {
  border-left: 1px solid rgba(125,184,212,0.25);
  padding: 6px 0 6px 18px;
  margin-bottom: 28px;
}
.synopsis-aside .stat-key {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 6px;
}
.synopsis-aside .stat-val {
  font-family: var(--f-display);
  font-size: 28px;
  letter-spacing: 0.02em;
  color: var(--fg-0);
}
.synopsis-aside .stat-sub {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-2);
  margin-top: 4px;
}
.synopsis-body p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--fg-1);
  margin-bottom: 20px;
  text-wrap: pretty;
}
.synopsis-body p.lead {
  font-size: 22px;
  color: var(--fg-0);
}
.synopsis-body p.lead::first-letter {
  font-family: var(--f-display);
  font-size: 64px;
  float: left;
  line-height: 0.85;
  padding-right: 14px;
  padding-top: 4px;
  color: var(--steel);
}

/* ---------- crew ---------- */
.crew {
  background: linear-gradient(180deg, var(--bg-0), var(--bg-1) 50%, var(--bg-0));
}
.crew-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 24px;
}
.crew-head .stamp {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 8px 14px;
  border: 1px solid var(--amber);
}
.crew-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
@media (max-width: 1280px) { .crew-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .crew-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .crew-grid { grid-template-columns: 1fr; } }

.dossier {
  position: relative;
  background:
    linear-gradient(180deg, rgba(15,30,51,0.4), rgba(10,20,38,0.7)),
    var(--bg-1);
  border: 1px solid rgba(125,184,212,0.18);
  padding: 22px;
  transition: border-color 0.3s, transform 0.3s;
  cursor: pointer;
}
.dossier:hover {
  border-color: var(--steel);
  transform: translateY(-3px);
}
.dossier-portrait {
  position: relative;
  aspect-ratio: 3/4;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(125,184,212,0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg-0));
  margin-bottom: 18px;
  overflow: hidden;
}
.dossier-portrait::before {
  /* hex mesh overlay */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 50%, var(--mesh-color) 1px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: 0.6;
}
.dossier-portrait::after {
  /* scanlines */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(125,184,212,0.04) 3px,
    rgba(125,184,212,0.04) 4px
  );
  pointer-events: none;
}
.dossier-silhouette {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 88%;
  z-index: 1;
}
.dossier-callsign {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--steel);
  z-index: 2;
}
.dossier-classified {
  position: absolute;
  top: 12px; right: 12px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--amber);
  z-index: 2;
}
.dossier-id {
  position: absolute;
  bottom: 12px; left: 12px; right: 12px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--fg-2);
  display: flex;
  justify-content: space-between;
  z-index: 2;
}
.dossier-name {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--fg-0);
  margin-bottom: 4px;
}
.dossier-role {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 14px;
}
.dossier-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-1);
  margin-bottom: 12px;
}
.dossier-meta dt {
  color: var(--fg-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 9px;
  align-self: center;
}
.dossier-bio {
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg-1);
  border-top: 1px dashed rgba(125,184,212,0.15);
  padding-top: 12px;
  text-wrap: pretty;
}

/* ---------- lore ---------- */
.lore {
  background: var(--bg-0);
  position: relative;
  overflow: hidden;
}
.lore-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .lore-grid { grid-template-columns: 1fr; } }
.lore-visual {
  aspect-ratio: 1/1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lore-visual svg { width: 100%; height: 100%; overflow: visible; }
.lore-card-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.lore-card {
  border: 1px solid rgba(125,184,212,0.18);
  background: rgba(15,30,51,0.4);
  padding: 22px 24px;
  position: relative;
}
.lore-card-key {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}
.lore-card-key .num { color: var(--fg-3); }
.lore-card h3 {
  font-family: var(--f-display);
  font-size: 26px;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  color: var(--fg-0);
}
.lore-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--fg-1);
  text-wrap: pretty;
}

/* ---------- buy ---------- */
.buy {
  background: linear-gradient(180deg, var(--bg-0), var(--bg-1));
  text-align: center;
  position: relative;
}
.buy-inner {
  max-width: 820px;
  margin: 0 auto;
}
.buy-title {
  font-family: var(--f-display);
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  margin: 18px 0 24px;
  background: linear-gradient(180deg, #F2F6FB 0%, var(--steel) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.buy-sub {
  font-size: 17px;
  color: var(--fg-1);
  max-width: 540px;
  margin: 0 auto 48px;
  text-wrap: pretty;
}
.buy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
@media (max-width: 900px) { .buy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .buy-grid { grid-template-columns: 1fr; } }
.buy-card--featured {
  background: rgba(125,184,212,0.08);
  border-color: var(--steel);
}
.buy-card--featured .vendor { color: var(--steel); }

/* ---------- direct order form ---------- */
.order {
  margin: 56px auto 0;
  max-width: 720px;
  text-align: left;
  border: 1px solid rgba(125,184,212,0.2);
  background: rgba(15,30,51,0.4);
  padding: 36px 36px 32px;
  position: relative;
}
.order::before, .order::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--steel);
}
.order::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.order::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.order-head { text-align: center; margin-bottom: 28px; }
.order-title {
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.02em;
  margin: 14px 0 10px;
  color: var(--fg-0);
}
.order-sub {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-1);
  max-width: 520px;
  margin: 0 auto;
}

.order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  margin-bottom: 24px;
}
.order-field { display: flex; flex-direction: column; gap: 6px; }
.order-field--full { grid-column: 1 / -1; }
.order-field > span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--steel);
}
.order-field input,
.order-field select,
.order-field textarea {
  background: rgba(5, 8, 15, 0.5);
  border: 1px solid rgba(125, 184, 212, 0.2);
  color: var(--fg-0);
  font-family: var(--f-body);
  font-size: 14px;
  padding: 11px 13px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  border-radius: 0;
  resize: vertical;
}
.order-field input:focus,
.order-field select:focus,
.order-field textarea:focus {
  border-color: var(--steel);
  background: rgba(5, 8, 15, 0.7);
}
.order-field select { appearance: none; cursor: pointer; }
.order-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-1);
  cursor: pointer;
  padding: 6px 0;
}
.order-check input {
  width: 16px; height: 16px;
  accent-color: var(--steel);
}
.order-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px dashed rgba(125, 184, 212, 0.15);
}
.order-note {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-2);
}
@media (max-width: 540px) {
  .order { padding: 28px 22px 24px; }
  .order-grid { grid-template-columns: 1fr; }
}
.buy-card {
  border: 1px solid rgba(125,184,212,0.2);
  background: rgba(15,30,51,0.35);
  padding: 22px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  transition: all 0.2s;
  text-align: left;
  color: inherit;
}
.buy-card:hover {
  border-color: var(--steel);
  background: rgba(15,30,51,0.6);
  transform: translateY(-2px);
}
.buy-card .vendor {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--fg-0);
  letter-spacing: 0.02em;
}
.buy-card .format {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--steel);
}
.buy-card .price {
  margin-top: 6px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--fg-1);
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding-top: 10px;
  border-top: 1px dashed rgba(125,184,212,0.15);
}
.buy-card .price .arr { color: var(--steel); }
.buy-formats {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-top: 16px;
}

/* ---------- author ---------- */
.author {
  background: var(--bg-0);
}
.author-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 800px) { .author-grid { grid-template-columns: 1fr; } }
.author-portrait {
  aspect-ratio: 1/1;
  border: 1px solid rgba(125,184,212,0.2);
  background:
    radial-gradient(ellipse at 50% 30%, rgba(125,184,212,0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg-0));
  position: relative;
  overflow: hidden;
  max-width: 320px;
}
.author-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 50%, var(--mesh-color) 1px, transparent 1.5px);
  background-size: 14px 14px;
}
.author-portrait .silhouette {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 88%;
}
.author-portrait .stamp {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--steel);
}
.author-name {
  font-family: var(--f-display);
  font-size: clamp(36px, 5vw, 56px);
  margin: 12px 0 18px;
}
.author-bio p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-1);
  margin-bottom: 16px;
  text-wrap: pretty;
}
.author-links {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.author-link {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-1);
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid rgba(125,184,212,0.25);
  transition: all 0.2s;
}
.author-link:hover {
  border-color: var(--steel);
  color: var(--steel);
}

/* ---------- footer ---------- */
.foot {
  background: var(--bg-0);
  border-top: 1px solid rgba(125,184,212,0.12);
  padding: 40px 6vw 32px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-2);
}
.foot-row {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.foot a { color: var(--fg-1); text-decoration: none; }
.foot a:hover { color: var(--steel); }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5,8,15,0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg-1);
  border: 1px solid var(--steel);
  max-width: 640px;
  width: 100%;
  position: relative;
  padding: 36px;
  transform: translateY(12px);
  transition: transform 0.25s;
}
.modal-backdrop.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: transparent;
  border: 1px solid var(--fg-3);
  width: 32px; height: 32px;
  color: var(--fg-1);
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 14px;
}
.modal-close:hover { border-color: var(--steel); color: var(--steel); }
.modal h3 {
  font-family: var(--f-display);
  font-size: 32px;
  margin-bottom: 6px;
}
.modal .role {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 20px;
}
.modal p {
  color: var(--fg-1);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}
.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed rgba(125,184,212,0.2);
  font-family: var(--f-mono);
  font-size: 11px;
}
.modal-grid dt {
  color: var(--fg-2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 9px;
}
.modal-grid dd { color: var(--fg-0); margin-bottom: 6px; }

/* ---------- text variant for amber threat panel ---------- */
.threat-stripe {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(232,165,71,0.08) 0,
      rgba(232,165,71,0.08) 8px,
      transparent 8px,
      transparent 16px
    );
}
