/* ============================================================
   THE THETIS ARCHIVE — Generations promotional site
   Design system: cinematic sci-fi political noir
   ============================================================ */

/* ---------- Fonts ---------- */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap");

/* ---------- Tokens ---------- */
:root {
  --void: #030609;
  --hull: #071317;
  --hull-2: #0a1b21;
  --teal: #0e3a40;
  --teal-deep: #082226;
  --cyan: #38d6df;
  --cyan-dim: #1f8d95;
  --orange: #f6891f;
  --orange-rust: #b95a22;
  --paper: #d8c9a8;
  --text: #f4faf8;
  --muted: #a9bab8;
  --muted-2: #6f8483;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);
  --panel: rgba(7, 19, 23, 0.72);
  --panel-solid: #081519;
  --danger: #ff6b5b;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-serif: Palatino, "Palatino Linotype", "Book Antiqua", "Iowan Old Style", Georgia, serif;

  --r-sm: 4px;
  --r-md: 8px;
  --maxw: 1240px;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --nav-h: 64px;
  --section-pad: clamp(2rem, 3.5vw, 3.25rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-cinematic: cubic-bezier(0.33, 0, 0.08, 1);
  --shadow: 0 24px 80px -20px rgba(0, 0, 0, 0.8);
}

/* ---------- Reset ---------- */
*,
*::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(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

::selection {
  background: var(--orange);
  color: #1a0c00;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-pad);
}

/* keep anchor/deck-rail jumps clear of the fixed header */
.hero[id],
.section[id],
.airlock[id],
.interlude[id] {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.skip-link {
  position: fixed;
  top: -200px;
  left: 12px;
  z-index: 200;
  background: var(--orange);
  color: #1a0c00;
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-md);
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Typographic atoms ---------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan-dim);
}

.section-title {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  margin-top: 1rem;
  max-width: 18ch;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  max-width: 60ch;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--orange);
  --btn-fg: #190b00;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
    box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
  position: relative;
  isolation: isolate;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--orange);
  color: #190b00;
  box-shadow: 0 0 0 1px rgba(246, 137, 31, 0.5), 0 12px 30px -12px rgba(246, 137, 31, 0.7);
}
.btn--primary:hover {
  background: #ffa642;
  color: #fff;
}

.btn--buy {
  color: var(--text);
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.btn--buy:hover {
  background: #ffb45a;
  color: var(--text);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn--block {
  width: 100%;
}

.btn--reader {
  width: 100%;
  margin-top: 1rem;
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 0 1px rgba(246, 137, 31, 0.22),
    0 0 22px rgba(246, 137, 31, 0.22),
    inset 0 0 18px rgba(246, 137, 31, 0.06);
}
.btn--reader:hover {
  background: rgba(246, 137, 31, 0.08);
  color: #ffad5c;
  border-color: #ffad5c;
  box-shadow: 0 0 0 1px rgba(246, 137, 31, 0.4),
    0 0 30px rgba(246, 137, 31, 0.38),
    inset 0 0 22px rgba(246, 137, 31, 0.1);
}
.btn__external {
  font-size: 0.78em;
  line-height: 1;
  transform: translateY(-0.1em);
}

.btn--sm {
  min-height: 40px;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

/* ---------- Grain + scanlines ---------- */
.site-grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  transform: translate3d(0, calc(var(--grain-scroll, 0) * -1px), 0);
  animation: grain-flicker 460ms steps(4) infinite;
}
.site-scanlines {
  position: fixed;
  inset: 0;
  z-index: 79;
  pointer-events: none;
  opacity: 0.5;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.18) 3px,
    rgba(0, 0, 0, 0) 4px
  );
  mix-blend-mode: multiply;
}
.site-vignette {
  position: fixed;
  inset: 0;
  z-index: 78;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 30%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

@keyframes grain-flicker {
  0% { background-position: 0 0; }
  25% { background-position: -38px 22px; }
  50% { background-position: 31px -41px; }
  75% { background-position: -14px -18px; }
  100% { background-position: 44px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-grain {
    animation: none;
    transform: none;
  }
}

/* ---------- Intercept intro ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  background: var(--void);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
html.intro-active .intro {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.intro__inner {
  text-align: center;
  width: min(520px, 86vw);
}
.intro__ring {
  width: 86px;
  height: 86px;
  margin: 0 auto 1.6rem;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--cyan);
  border-right-color: var(--orange);
  animation: spin 1.1s linear infinite;
}
.intro__title {
  font-family: var(--font-mono);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--cyan);
}
.intro__sub {
  font-family: var(--font-mono);
  color: var(--muted-2);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  margin-top: 0.8rem;
  min-height: 1.2em;
}
.intro__bar {
  margin-top: 1.6rem;
  height: 2px;
  background: var(--line);
  overflow: hidden;
}
.intro__bar::after {
  content: "";
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  animation: load 1.3s var(--ease) forwards;
}
.intro__skip {
  margin-top: 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  background: none;
  border: none;
}
.intro__skip:hover {
  color: var(--text);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes load {
  to { width: 100%; }
}

/* ---------- Header / nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(3, 6, 9, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  margin-right: auto;
}
.nav__brand img,
.nav__logo {
  display: block;
  height: clamp(28px, 2.2vw, 34px);
  width: auto;
  transition: opacity 0.35s var(--ease);
}
.nav--hero .nav__logo {
  opacity: 0;
}
.nav--hero.is-stuck .nav__logo {
  opacity: 1;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav__links a:not(.btn) {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.22s var(--ease);
  position: relative;
  padding-block: 0.3rem;
}
.nav__links a:not(.btn):hover,
.nav__links a:not(.btn)[aria-current="page"] {
  color: var(--orange);
}
.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--orange);
  transition: width 0.22s var(--ease);
}
.nav__links a:not(.btn):hover::after,
.nav__links a:not(.btn)[aria-current="page"]::after {
  width: 100%;
}
.nav__cta {
  margin-left: 0.4rem;
  font-size: 0.74rem;
}
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  align-items: center;
  justify-content: center;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: transform 0.22s var(--ease), opacity 0.2s;
}
.nav__toggle span::before {
  content: "";
  position: absolute;
  top: -6px;
}
.nav__toggle span::after {
  content: "";
  position: absolute;
  top: 6px;
}
body.nav-open .nav__toggle span {
  background: transparent;
}
body.nav-open .nav__toggle span::before {
  transform: translateY(6px) rotate(45deg);
}
body.nav-open .nav__toggle span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Deck descent rail ---------- */
.deckrail {
  position: fixed;
  left: clamp(0.6rem, 1.4vw, 1.4rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: flex-start;
}
.deckrail__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: none;
  padding: 0.15rem 0;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  opacity: 0.55;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}
.deckrail__dot {
  width: 9px;
  height: 9px;
  border: 1px solid var(--muted-2);
  border-radius: 50%;
  transition: all 0.25s var(--ease);
  flex: none;
}
.deckrail__label {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
}
.deckrail__item:hover {
  opacity: 1;
  color: var(--text);
}
.deckrail__item:hover .deckrail__label {
  opacity: 1;
  transform: none;
}
.deckrail__item.is-active {
  opacity: 1;
  color: var(--cyan);
}
.deckrail__item.is-active .deckrail__dot {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.deckrail__item.is-active .deckrail__label {
  opacity: 1;
  transform: none;
}

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Panels ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  backdrop-filter: blur(8px);
}
.panel--tab {
  position: relative;
}
.panel--tab::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 22px;
  width: 64px;
  height: 3px;
  background: var(--orange);
}

/* corner ticks */
.ticked {
  position: relative;
}
.ticked::before,
.ticked::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--cyan-dim);
  opacity: 0.7;
}
.ticked::before {
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
}
.ticked::after {
  bottom: 8px;
  right: 8px;
  border-left: none;
  border-top: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  padding-bottom: clamp(1.75rem, 4vw, 3.25rem);
  padding-top: calc(var(--nav-h) + 0.65rem);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__media img {
  position: absolute;
  left: 0;
  right: 0;
  top: -12%;
  width: 100%;
  height: 124%;
  object-fit: cover;
  object-position: 72% center;
  max-width: none;
  will-change: transform;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(3, 6, 9, 0.95) 0%,
      rgba(3, 6, 9, 0.72) 24%,
      rgba(3, 6, 9, 0.38) 50%,
      rgba(3, 6, 9, 0.1) 72%,
      transparent 100%
    ),
    linear-gradient(
      90deg,
      rgba(3, 6, 9, 0.55) 0%,
      rgba(3, 6, 9, 0.2) 38%,
      transparent 65%
    );
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero__main {
  position: relative;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: none;
}
.hero__book {
  position: absolute;
  right: clamp(-10rem, -22vw, -3.5rem);
  top: 56%;
  margin: 0;
  z-index: 1;
  translate: 0 -42%;
  pointer-events: none;
}
.hero__book img {
  display: block;
  width: clamp(384px, 49.6vw, 704px);
  height: auto;
  transform: rotate(3deg);
  filter: drop-shadow(0 32px 60px rgba(0, 0, 0, 0.72));
  animation: hero-book-enter 1.15s var(--ease-cinematic) 0.45s both;
}
@keyframes hero-book-enter {
  0% {
    opacity: 0;
    transform: translateX(14vw) rotate(-14deg) scale(0.92);
  }
  70% {
    opacity: 1;
    transform: translateX(-1.5vw) rotate(5deg) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(3deg) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__book img {
    animation: none;
    transform: rotate(3deg);
  }
}
.hero__logo {
  height: clamp(48px, 7vw, 84px);
  width: auto;
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 1.3rem + 4.6vw, 5.2rem);
  max-width: 16ch;
  text-wrap: balance;
  position: relative;
  z-index: 2;
}
.accent {
  color: var(--orange);
}
.hero h1 .cursorblink {
  display: inline-block;
  margin-left: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.85em;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  vertical-align: middle;
  color: var(--text);
  transform: scaleX(2) translateY(-5%);
  transform-origin: center center;
  animation: blink 1s steps(2) infinite;
}
.hero__sub {
  margin-top: 1.3rem;
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.35rem);
  color: var(--muted);
  max-width: 46ch;
}
.hero__cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.hero__acclaim {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  align-items: stretch;
  gap: clamp(1.2rem, 2.5vw, 2.4rem);
  width: 100%;
  padding-top: clamp(1.4rem, 2.5vw, 2rem);
  border-top: 1px solid var(--line);
}
.hero__seals-block {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.hero__seals-title {
  margin: 0;
  width: 100%;
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 0.7rem + 0.35vw, 0.95rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  color: var(--orange);
}
.hero__seals {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 1.4vw, 1.3rem);
}
.hero__seals img {
  height: clamp(76px, 7.5vw, 96px);
  width: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.55));
  opacity: 0.95;
}
.hero__quotes {
  display: grid;
  flex: 1;
  align-items: center;
  min-width: 0;
  width: 100%;
}
.hero__quote {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  padding: 0;
  border: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1s var(--ease-cinematic),
    visibility 1s var(--ease-cinematic);
  pointer-events: none;
}
.hero__quote.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.hero__quote blockquote {
  margin: 0 0 0.7rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.2rem, 1.05rem + 0.75vw, 1.65rem);
  line-height: 1.42;
  color: var(--text);
  text-align: center;
  text-wrap: balance;
  max-width: 38ch;
}
.hero__quote figcaption {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  text-align: center;
}
@media (prefers-reduced-motion: reduce) {
  .hero__quote {
    transition: none;
  }
}
.hero__scroll {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 28px;
  background: linear-gradient(var(--cyan), transparent);
  animation: scrolldrop 1.8s var(--ease) infinite;
}
@keyframes scrolldrop {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

@media (max-width: 1024px) {
  .hero__main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero__content {
    display: contents;
  }
  .hero__logo {
    order: 1;
  }
  .hero .kicker {
    order: 2;
    align-self: center;
  }
  .hero__book {
    order: 3;
    position: relative;
    right: auto;
    top: auto;
    translate: none;
    display: flex;
    justify-content: center;
    margin-block: 0.25rem 1rem;
  }
  .hero h1 {
    order: 4;
    margin-inline: auto;
  }
  .hero__sub {
    order: 5;
    margin-inline: auto;
  }
  .hero__cta {
    order: 6;
    justify-content: center;
  }
  .hero__book img {
    width: min(74vw, 512px);
  }
  .hero__acclaim {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__seals {
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero__quotes {
    width: 100%;
  }
}

/* ============================================================
   PREMISE (case file)
   ============================================================ */
.premise {
  background: linear-gradient(180deg, var(--void), var(--hull) 60%, var(--void));
}
.premise__head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.records {
  display: grid;
  gap: 1.2rem;
}
.record {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  align-items: start;
}
.record__num {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--teal);
  line-height: 0.8;
  -webkit-text-stroke: 1px var(--cyan-dim);
}
.record__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 0.7rem;
}
.record h3 {
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem);
  margin-bottom: 0.7rem;
}
.record p {
  color: var(--muted);
  margin: 0;
}

/* redaction reveal */
.redact {
  background: var(--text);
  color: transparent;
  border-radius: 2px;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.is-in .redact {
  background: transparent;
  color: inherit;
  transition-delay: 0.35s;
}
@media (prefers-reduced-motion: reduce) {
  .redact {
    background: transparent;
    color: inherit;
  }
}

/* ============================================================
   STORY MAP
   ============================================================ */
.map__layout {
  display: grid;
  gap: clamp(2rem, 4vw, 3.4rem);
  grid-template-columns: 1fr;
}
.map__figure {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--teal-deep);
}
.map__figure img {
  width: 100%;
  height: auto;
  filter: saturate(1.1) contrast(1.05);
}
.map__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.25;
  mix-blend-mode: overlay;
}
.map__callouts {
  display: grid;
  gap: 0.8rem;
}
.map__callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1rem 1.1rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.map__callout:hover,
.map__callout.is-active {
  border-color: var(--cyan);
  transform: translateX(4px);
}
.map__callout-id {
  font-family: var(--font-mono);
  color: var(--orange);
  font-size: 0.8rem;
}
.map__callout h4 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  margin: 0 0 0.2rem;
}
.map__callout p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews {
  background: linear-gradient(180deg, var(--void), var(--hull-2) 50%, var(--void));
}
.sealstrip-wrap {
  padding-block: var(--section-pad) 0;
}
.sealstrip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.4rem;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  border-block: 1px solid var(--line);
}
.sealstrip figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 120px;
  text-align: center;
}
.sealstrip img {
  height: 78px;
  width: auto;
}
.sealstrip figcaption {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.reviewwall {
  columns: 3 260px;
  column-gap: 1.1rem;
}
.reviewwall--featured {
  margin-top: 0;
}
.reviewwall--featured .reviewwall__item.evcard {
  border-color: rgba(246, 137, 31, 0.45);
  background:
    linear-gradient(135deg, rgba(246, 137, 31, 0.11), transparent 52%),
    linear-gradient(225deg, rgba(246, 137, 31, 0.04), transparent 40%),
    rgba(7, 19, 23, 0.58);
  box-shadow: 0 0 0 1px rgba(246, 137, 31, 0.1);
}
.reviewwall--featured .evcard__type:not([data-type="Reader Review"]) {
  color: var(--orange);
  border-color: rgba(246, 137, 31, 0.45);
}
.evcard__type {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--cyan-dim);
  border-radius: var(--r-sm);
  padding: 0.25rem 0.55rem;
}
.evcard__type[data-type="Reader Review"] {
  color: var(--paper);
  border-color: rgba(216, 201, 168, 0.4);
}
.evcard__src {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.evcard__src cite {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  font-style: normal;
}
.evcard__src a {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.evcard__src a:hover {
  text-decoration: underline;
}
.reviewwall__item {
  break-inside: avoid;
  margin-bottom: 1.1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(7, 19, 23, 0.5);
}
.reviewwall__item p {
  margin: 0 0 0.6rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
}
.reviewwall__item.evcard p {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.38;
}
.reviewwall__item cite {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  font-style: normal;
}
.reviewwall__toggle {
  margin-top: 1.6rem;
  display: flex;
  justify-content: center;
}
.reviewwall.is-collapsed {
  max-height: 420px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent);
  mask-image: linear-gradient(to bottom, black 65%, transparent);
}

/* ============================================================
   READER QUOTE INTERLUDE
   ============================================================ */
.interlude {
  position: relative;
  padding-block: clamp(2rem, 4vw, 3.25rem);
  text-align: center;
  background: radial-gradient(80% 120% at 50% 0%, var(--teal-deep), var(--void) 70%);
  border-block: 1px solid var(--line);
}
.interlude__tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.4rem;
}
.interlude blockquote {
  margin: 0 auto;
  max-width: 22ch;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 1rem + 2.8vw, 3rem);
  line-height: 1.22;
  text-wrap: balance;
}
.interlude blockquote .cursorblink {
  display: inline-block;
  margin-left: 0.7em;
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  vertical-align: middle;
  color: var(--orange);
  transform: scaleX(2);
  transform-origin: center center;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* ============================================================
   BUY
   ============================================================ */
.buy {
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(246, 137, 31, 0.1), transparent 68%),
    radial-gradient(ellipse 55% 45% at 100% 100%, rgba(56, 214, 223, 0.07), transparent 70%),
    linear-gradient(180deg, var(--void), var(--hull) 45%, var(--void));
}
.buy__showcase {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.4rem, 3.5vw, 2.8rem);
  align-items: center;
  justify-items: center;
  text-align: center;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid rgba(246, 137, 31, 0.38);
  border-radius: var(--r-md);
  background:
    linear-gradient(135deg, rgba(246, 137, 31, 0.09), transparent 42%),
    linear-gradient(225deg, rgba(56, 214, 223, 0.06), transparent 38%),
    var(--panel);
  box-shadow:
    0 0 0 1px rgba(56, 214, 223, 0.14),
    0 28px 72px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.buy__showcase::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange), var(--cyan), transparent);
}
.buy__visual img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 52px rgba(0, 0, 0, 0.62));
}
.buy__visual {
  width: min(100%, 280px);
}
.buy__shop {
  min-width: 0;
  width: 100%;
}
.buy__stores-label {
  margin: 0 0 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--muted-2);
}
.buy__stores {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem 1rem;
  width: 100%;
  align-items: stretch;
}
.buy__stores > li {
  min-width: 0;
}
.buy__stores > li:nth-child(1) { grid-column: 1 / 3; }
.buy__stores > li:nth-child(2) { grid-column: 3 / 5; }
.buy__stores > li:nth-child(3) { grid-column: 5 / 7; }
.buy__stores > li:nth-child(4) { grid-column: 2 / 4; }
.buy__stores > li:nth-child(5) { grid-column: 4 / 6; }
.buy__store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.7rem 1.15rem;
  min-height: 3.25rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease), background 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.buy__store:hover {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(14, 58, 64, 0.35);
  transform: translateY(-1px);
}
.buy__store--has-logo {
  width: 100%;
  padding: 0.8rem 0.9rem;
  min-width: 0;
  min-height: 4rem;
}
.buy__store--has-logo span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.buy__store--primary {
  border-color: rgba(246, 137, 31, 0.55);
  background: rgba(246, 137, 31, 0.1);
  color: var(--text);
  box-shadow: 0 0 24px rgba(246, 137, 31, 0.12);
}
.buy__store--primary.buy__store--has-logo {
  background: #000;
  border-color: rgba(255, 153, 0, 0.5);
  box-shadow: 0 0 28px rgba(255, 153, 0, 0.18);
}
.buy__store--primary.buy__store--has-logo:hover {
  background: #0a0a0a;
  border-color: rgba(255, 153, 0, 0.75);
  box-shadow: 0 0 32px rgba(255, 153, 0, 0.28);
}
.buy__store-logo {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
  flex: none;
}
.buy__stores > li:nth-child(-n+3) .buy__store-logo {
  max-height: 3.25rem;
}
.buy__stores > li:nth-child(n+4) .buy__store-logo {
  max-height: 2.85rem;
}
.buy__store--logo-invert .buy__store-logo {
  filter: brightness(0) invert(1);
}
.buy__note {
  margin: 1rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--muted-2);
}
.buy__ku-logo {
  display: block;
  width: min(100%, 16rem);
  height: auto;
  margin: 0.65rem auto 0;
}
.buy__meta {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.8rem;
}
.isbn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted-2);
}
.isbn-row span b {
  color: var(--muted);
  font-weight: 500;
}
.intl {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}
.intl__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
  color: var(--text);
}
.intl__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.intl a,
.intl__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--cyan);
  border: 1px solid var(--cyan-dim);
  border-radius: var(--r-sm);
  padding: 0.3rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.intl__item--soon {
  color: var(--muted);
  border-color: var(--line);
}
.intl__flag {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.intl__flag svg {
  display: block;
}
.intl__lang {
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* ============================================================
   EXTRAS
   ============================================================ */
.extras__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}
.extra {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--panel);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.extra:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
}
.extra__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.extra__link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}
.extra__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--teal-deep);
  position: relative;
}
.extra__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.5s var(--ease);
}
.extra:hover .extra__media img {
  transform: scale(1.05);
}
.extra__badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(3, 6, 9, 0.78);
  border: 1px solid var(--cyan-dim);
  border-radius: var(--r-sm);
  padding: 0.25rem 0.5rem;
}
.extra__body {
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.extra__body h3 {
  font-size: 1.2rem;
}
.extra__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}
.extra__cta {
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--orange);
  font-family: var(--font-display);
  font-weight: 600;
}
.extra:hover .extra__cta {
  color: #ffa642;
}

/* ============================================================
   AUTHOR
   ============================================================ */
.author {
  background: linear-gradient(180deg, var(--void), var(--teal-deep) 120%);
}
.author__layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.author__portrait {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--teal), var(--void));
  display: grid;
  place-items: center;
}
.author__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author__portrait .placeholder {
  text-align: center;
  padding: 2rem;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}
.author__portrait .placeholder svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  opacity: 0.5;
}
.author__bio p {
  color: var(--muted);
}
.author__bio p:first-of-type {
  color: var(--text);
  font-size: 1.1rem;
}
.author__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}
.author__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.55rem 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.author__links a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ============================================================
   FINAL CTA / AIRLOCK
   ============================================================ */
.airlock {
  position: relative;
  text-align: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}
.airlock__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("/media/img/hero-bg-1800.jpg") center 42% / cover no-repeat;
  opacity: 0.4;
}
.airlock::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(70% 90% at 50% 50%, transparent, var(--void) 78%);
}
.airlock__inner {
  position: relative;
  z-index: 2;
}
.airlock h2 {
  font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.4rem);
  margin-bottom: 1.2rem;
}
.airlock p {
  color: var(--muted);
  max-width: 48ch;
  margin: 0 auto 2.2rem;
  font-size: 1.1rem;
}
.airlock__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

/* ============================================================
   FORMS / BOARDING PASS
   ============================================================ */
.pass {
  position: relative;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
}
.pass__stub {
  position: relative;
  border-left: 2px dashed var(--line-strong);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: linear-gradient(160deg, var(--teal-deep), var(--void));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
}
.pass__stub::before,
.pass__stub::after {
  content: "";
  position: absolute;
  left: -9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--void);
}
.pass__stub::before {
  top: -8px;
}
.pass__stub::after {
  bottom: -8px;
}
.pass__main {
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.pass__stub-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}
.pass__stub-big {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem);
  line-height: 1;
}
.pass__stub-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted-2);
  letter-spacing: 0.1em;
}
.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.field label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  background: var(--void);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--text);
  font: inherit;
  transition: border-color 0.18s var(--ease);
}
.field input:focus {
  border-color: var(--cyan);
  outline: none;
}
.field input::placeholder {
  color: var(--muted-2);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__status {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  min-height: 1.2em;
}
.form__status.is-error {
  color: var(--danger);
}
.form__status.is-success {
  color: var(--cyan);
}
.form__note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--muted-2);
}

/* ============================================================
   SECONDARY PAGE SHELL
   ============================================================ */
.subpage {
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 7vw, 6rem));
}
.subpage__head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 70ch;
}
.subpage__head h1 {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.6rem);
}
.subpage__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.subpage__visual {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--teal-deep);
}
.subpage__visual img {
  width: 100%;
  height: auto;
}

.crumb {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.8rem;
}
.crumb a {
  color: var(--cyan);
}

/* embed */
.embed-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--void);
  aspect-ratio: 3 / 4;
  width: 100%;
}
.embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sticky-cta {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0;
  display: grid;
  gap: 0.7rem;
}
.feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  color: var(--muted);
}
.feature-list li::before {
  content: "▹";
  color: var(--orange);
}

/* ============================================================
   MEDIA KIT (/art)
   ============================================================ */
.kit__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
}
.kit__filter {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.18s var(--ease);
}
.kit__filter[aria-pressed="true"] {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(246, 137, 31, 0.08);
}
.kit__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.kit__item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--panel);
  display: flex;
  flex-direction: column;
}
.kit__thumb {
  aspect-ratio: 4 / 3;
  background: var(--teal-deep);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0.6rem;
}
.kit__thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.kit__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--line);
}
.kit__foot span {
  font-size: 0.8rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kit__foot a {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  flex: none;
}
.kit__foot a:hover {
  text-decoration: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  background: var(--void);
  padding-block: var(--section-pad) 1.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer__brand img {
  height: 30px;
  margin-bottom: 1rem;
}
.footer__brand p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 36ch;
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 1rem;
}
.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.footer__col a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.18s var(--ease);
}
.footer__col a:hover {
  color: var(--cyan);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted-2);
  letter-spacing: 0.06em;
}

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  display: none;
  gap: 0.6rem;
  padding: 0.7rem;
  background: rgba(3, 6, 9, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.mobile-cta .btn {
  flex: 1;
  font-size: 0.875rem;
  padding: 0.65rem 0.85rem;
  min-height: 44px;
}
.mobile-cta .btn--primary {
  color: #fff;
}
.mobile-cta .btn--primary:hover {
  color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .deckrail {
    display: none;
  }
  .author__layout {
    grid-template-columns: 1fr;
  }
  .author__portrait {
    max-width: 360px;
    margin-inline: auto;
  }
  .reviewwall {
    columns: 2 240px;
  }
}

@media (min-width: 861px) {
  .buy__showcase {
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    justify-items: stretch;
    align-items: center;
    text-align: left;
    padding-left: clamp(0.85rem, 1.5vw, 1.2rem);
  }
  .buy__visual {
    width: auto;
    max-width: 300px;
    overflow: hidden;
    justify-self: start;
  }
  .buy__visual img {
    width: 350px;
    max-width: none;
    margin-left: -2.75rem;
  }
  .buy__note,
  .buy__ku-logo {
    text-align: center;
    margin-inline: auto;
  }
}

@media (max-width: 860px) {
  .buy__showcase {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .buy__visual {
    max-width: 240px;
  }
  .buy__store {
    white-space: normal;
  }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 1.2rem var(--gutter) 1.6rem;
    background: rgba(3, 6, 9, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 0.3s var(--ease);
    backdrop-filter: blur(14px);
  }
  body.nav-open .nav__links {
    transform: none;
  }
  .nav__links a:not(.btn) {
    font-size: 0.9rem;
    padding-block: 0.6rem;
  }
  .nav__cta {
    display: none;
  }
  .nav__toggle {
    display: flex;
  }
  .subpage__layout {
    grid-template-columns: 1fr;
  }
  .pass {
    grid-template-columns: 1fr;
  }
  .pass__stub {
    border-left: none;
    border-top: 2px dashed var(--line-strong);
    order: -1;
  }
  .pass__stub::before {
    top: -8px;
    left: calc(50% - 8px);
  }
  .pass__stub::after {
    bottom: auto;
    top: -8px;
    left: auto;
    right: calc(50% - 8px);
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
  .mobile-cta {
    display: flex;
  }
  .author__portrait {
    max-width: 220px;
    aspect-ratio: 1 / 1;
  }
  .author__portrait img {
    object-position: center 18%;
  }
  .reviewwall {
    columns: 1;
  }
  .reviewwall.is-collapsed {
    max-height: unset;
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 1.5rem), transparent);
    mask-image: linear-gradient(to bottom, black calc(100% - 1.5rem), transparent);
  }
  .reviewwall__toggle {
    margin-top: 0.8rem;
  }
  body.has-mobile-cta {
    padding-bottom: 72px;
  }
  .hero__scroll {
    display: none;
  }
  .hero {
    padding-bottom: clamp(3.5rem, 8vw, 5rem);
  }
}

@media (max-width: 560px) {
  .record {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .hero__seals img {
    height: 64px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
}
