/* ==========================================================================
   Leigha Acosta — The Fire Chronicles
   Palette drawn from the cover: abyssal navy, cavern-light teal, dragon-egg gold.
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink-950: #04070c;
  --ink-900: #070d16;
  --ink-850: #0a1420;
  --ink-800: #0d1a29;
  --ink-700: #142638;
  --tide-600: #1d4a6b;
  --tide-400: #3f88b0;
  --glow: #7fd6ea;
  --gold-200: #fbe9b4;
  --gold-300: #f3d98b;
  --gold-400: #e6bd5a;
  --gold-500: #c9962f;
  --gold-700: #8a6420;
  --bone: #efe7d6;
  --text: #c5ccd4;
  --muted: #8f9aa6;
  --line: rgba(230, 189, 90, 0.26);
  --line-soft: rgba(239, 231, 214, 0.1);
  --success: #8fd6a8;
  --danger: #f19a8c;

  --gold-text: linear-gradient(176deg, #fff3c9 0%, #f3d27a 34%, #d6a43c 64%, #f5dc93 100%);
  --gold-fill: linear-gradient(180deg, #f6d987 0%, #e3b44c 55%, #c9962f 100%);

  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --wrap: 1240px;
  --header-h: 72px;
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 4px;
}

/* ------------------------------------------------------------------ base */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--ink-900);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--gold-300);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.25s var(--ease);
}
a:hover { color: var(--gold-200); }

cite { font-style: italic; }
em { font-style: italic; }

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

::selection { background: rgba(230, 189, 90, 0.35); color: #fff; }

main:focus { outline: none; }

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem; top: -4rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--gold-400);
  color: var(--ink-950);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; color: var(--ink-950); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.legacy-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

/* ------------------------------------------------------------------ type */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.1rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow__num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--bone);
}

.section-title {
  font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.4rem);
  margin-bottom: 1.25rem;
}
.section-title em { color: var(--gold-300); }
.section-title--center { text-align: center; }
.section-title__sub {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-body);
  font-size: clamp(0.78rem, 0.7rem + 0.3vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.8rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--bone);
}

.ornament {
  width: 200px;
  height: 20px;
  margin: 0.25rem auto 1.75rem;
  color: var(--gold-400);
  opacity: 0.85;
}
.ornament--left { margin-left: 0; }

.caption {
  margin-top: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--bone);
  text-decoration: none;
}
.link-arrow .icon { width: 1.1em; height: 1.1em; color: var(--gold-400); transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--gold-300); }
.link-arrow:hover .icon { transform: translateX(4px); }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ------------------------------------------------------------------ buttons */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.25rem;
  margin-top: 2rem;
}
.btn-row--center { justify-content: center; }

.btn {
  --pad-y: 0.95rem;
  --pad-x: 1.6rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: var(--pad-y) var(--pad-x);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn .icon { transition: transform 0.35s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(4px); }
.btn:hover .icon--external { transform: translate(2px, -2px); }

.btn--gold {
  background: var(--gold-fill);
  color: #1b1307;
  box-shadow: 0 10px 30px -12px rgba(230, 189, 90, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn--gold::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}
.btn--gold:hover { color: #1b1307; box-shadow: 0 16px 40px -14px rgba(230, 189, 90, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn--gold:hover::before { transform: translateX(120%); }

.btn--ghost {
  background: rgba(239, 231, 214, 0.02);
  border-color: var(--line);
  color: var(--bone);
}
.btn--ghost:hover { border-color: var(--gold-400); color: var(--gold-200); background: rgba(230, 189, 90, 0.06); }

.btn--sm { --pad-y: 0.6rem; --pad-x: 1.1rem; min-height: 40px; font-size: 0.72rem; }
.btn--lg { --pad-y: 1.1rem; --pad-x: 1.9rem; min-height: 54px; }

.btn[aria-busy="true"] { pointer-events: none; opacity: 0.85; }
.btn[aria-busy="true"] .btn__label::after {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.6em;
  vertical-align: -0.1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.round-btn {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--bone);
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.round-btn .icon { width: 20px; height: 20px; }
.round-btn:hover:not(:disabled) { background: var(--gold-400); border-color: var(--gold-400); color: var(--ink-950); }
.round-btn:disabled { opacity: 0.35; cursor: default; }

/* ------------------------------------------------------------------ header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(6, 11, 19, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 12px 30px -20px rgba(0, 0, 0, 0.8);
}
.site-header.is-scrolled::after { opacity: 1; }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  margin-right: auto;
  line-height: 1;
  text-decoration: none;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--bone);
  transition: color 0.3s var(--ease);
}
.brand__tag {
  margin-top: 0.3rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.brand:hover .brand__name { color: var(--gold-200); }
.brand--lg .brand__name { font-size: 2.2rem; }

.site-nav { display: none; }
.site-nav__list {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 0.6rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0.85rem; right: 0.85rem; bottom: 0.3rem;
  height: 1px;
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.site-nav__link:hover { color: var(--bone); }
.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.site-nav__link[aria-current="page"] { color: var(--gold-300); }

.site-header__cta { display: none; }

.nav-toggle {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-right: -8px;
  border: 0;
  background: transparent;
  color: var(--bone);
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 26px; height: 12px; }
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.45s var(--ease), width 0.45s var(--ease), top 0.45s var(--ease);
}
.nav-toggle__bars span:first-child { top: 0; width: 100%; }
.nav-toggle__bars span:last-child { top: 10px; width: 65%; right: 0; left: auto; }
.nav-toggle:hover .nav-toggle__bars span:last-child { width: 100%; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child { top: 5px; width: 100%; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow-y: auto;
  background:
    radial-gradient(120% 60% at 80% 0%, rgba(29, 74, 107, 0.45), transparent 60%),
    var(--ink-950);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: 2rem;
}
.mobile-menu__list { margin: 0; padding: 0; list-style: none; }
.mobile-menu__item { border-bottom: 1px solid var(--line-soft); }
.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.4rem + 2.6vw, 2.8rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--bone);
  text-decoration: none;
}
.mobile-menu__link[aria-current="page"] { color: var(--gold-300); }
.mobile-menu__num {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-400);
}
.mobile-menu__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.mobile-menu__mail { color: var(--muted); font-size: 0.95rem; }

body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.menu-open .site-header::after { opacity: 0; }
.site-header__inner > .brand,
.site-header__inner > .nav-toggle { position: relative; z-index: 2; }

@media (min-width: 640px) {
  .site-header__cta { display: inline-flex; }
}

@media (min-width: 1100px) {
  :root { --header-h: 84px; }
  .site-nav { display: block; }
  .nav-toggle,
  .mobile-menu { display: none !important; }
  .site-header__inner { gap: 1.25rem; }
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + 2.5rem) 0 5.5rem;
  overflow: hidden;
  background: var(--ink-950);
  isolation: isolate;
}

.hero__bg,
.page-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.hero__ambient {
  position: absolute;
  inset: -8%;
  background-image: url("../images/cover-ambient.jpg");
  background-image: image-set(url("../images/cover-ambient.webp") type("image/webp"), url("../images/cover-ambient.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: 70% 40%;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(70% 70% at 68% 45%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 70% at 68% 45%, #000 0%, transparent 75%);
}

.hero__shaft {
  position: absolute;
  top: -12%;
  left: 50%;
  width: min(900px, 95vw);
  height: 115%;
  background: linear-gradient(180deg, rgba(127, 214, 234, 0.26) 0%, rgba(63, 136, 176, 0.1) 45%, transparent 80%);
  clip-path: polygon(42% 0, 58% 0, 88% 100%, 12% 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 38%, #000 62%, transparent 92%);
  mask-image: linear-gradient(90deg, transparent 8%, #000 38%, #000 62%, transparent 92%);
  transform: translateX(-50%);
  mix-blend-mode: screen;
}

.hero__fade {
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, var(--ink-900));
}

.hero__embers { position: absolute; inset: 0; }
.ember {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-300);
  box-shadow: 0 0 8px 2px rgba(243, 217, 139, 0.55);
  opacity: 0;
}

.hero__grid {
  display: grid;
  grid-template-areas:
    "eyebrow"
    "title"
    "subtitle"
    "visual"
    "hook"
    "ctas";
  justify-items: center;
  text-align: center;
}
.hero__copy { display: contents; }
.hero__eyebrow { grid-area: eyebrow; }
.hero__title { grid-area: title; }
.hero__subtitle { grid-area: subtitle; }
.hero__visual { grid-area: visual; }
.hero__hook { grid-area: hook; }
.hero__ctas { grid-area: ctas; justify-content: center; }

.hero__title {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-size: clamp(3.4rem, 1.9rem + 5.6vw, 7.6rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.hero__line { display: block; overflow: hidden; padding: 0.04em 0.04em 0.08em; }
.hero__line > span {
  display: inline-block;
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin: 1.1rem 0 0;
  font-size: clamp(0.8rem, 0.7rem + 0.45vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--bone);
}

.hero__hook { margin: 0 0 0; max-width: 32rem; }
.hero__hook blockquote { margin: 0; }
.hero__hook p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  color: var(--bone);
}
.hero__hook figcaption {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  margin: 2.5rem 0 2.25rem;
  perspective: 1600px;
}

.hero__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(118vw, 470px);
  aspect-ratio: 1;
  color: var(--gold-400);
  opacity: 0.22;
  transform: translate(-50%, -50%);
}

.hero__glow {
  position: absolute;
  left: 50%;
  bottom: -26px;
  width: 85%;
  height: 70px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(230, 189, 90, 0.42), rgba(230, 189, 90, 0.08) 55%, transparent 75%);
  transform: translateX(-50%);
  z-index: -1;
}

.book3d {
  position: relative;
  width: min(64vw, 300px);
  aspect-ratio: 1080 / 1614;
  border-radius: 2px 5px 5px 2px;
  transform: rotateY(-10deg) rotateX(2deg);
  transform-style: preserve-3d;
  box-shadow:
    -1px 0 0 rgba(255, 255, 255, 0.06),
    24px 36px 60px -12px rgba(0, 0, 0, 0.85),
    0 0 90px -20px rgba(127, 214, 234, 0.35);
  will-change: transform;
}
.book3d picture,
.book3d__img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.book3d__spine {
  position: absolute;
  inset: 0 auto 0 0;
  width: 7%;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(255, 255, 255, 0.16) 45%, rgba(0, 0, 0, 0.25) 70%, transparent);
  pointer-events: none;
}
.book3d__shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.14) 48%, transparent 60%) 50% 50% / 220% 100% no-repeat;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transform: translateX(-50%);
}
.hero__scroll-line {
  position: relative;
  width: 1px;
  height: 46px;
  overflow: hidden;
  background: var(--line-soft);
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-400);
  animation: scrollcue 2.4s var(--ease) infinite;
}
@keyframes scrollcue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

@media (min-width: 600px) {
  .book3d { width: 340px; }
  .hero__ring { width: 560px; }
}

@media (min-width: 960px) {
  .hero { padding-bottom: 6rem; }
  .hero__grid {
    grid-template-areas: none;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: center;
    justify-items: stretch;
    gap: 2rem;
    text-align: left;
  }
  .hero__copy { display: block; grid-area: auto; }
  .hero__visual { grid-area: auto; }
  .hero__ctas { justify-content: flex-start; }
  .hero__hook {
    margin-top: 2.25rem;
    padding-left: 1.4rem;
    border-left: 1px solid var(--line);
  }
  .hero__visual { margin: 0; }
  .book3d {
    width: min(36vw, 440px, calc((100svh - var(--header-h) - 150px) * 0.67));
    min-width: 280px;
    transform: rotateY(-16deg) rotateX(3deg);
  }
  .hero__ring { width: min(48vw, 640px); }
  .hero__shaft { left: 70%; width: 60vw; }
  .hero__scroll { display: flex; }
}

@media (min-width: 960px) and (max-height: 760px) {
  .hero__title { font-size: clamp(3.4rem, 1.4rem + 5vw, 6.2rem); }
}

/* ------------------------------------------------------------------ trailer */

.trailer {
  position: relative;
  padding: var(--section) 0;
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(29, 74, 107, 0.28), transparent 70%),
    var(--ink-900);
}
.trailer__head { text-align: center; }
.trailer__head .eyebrow { justify-content: center; }
.trailer__head .eyebrow::after {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.trailer__frame {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(6px, 1vw, 12px);
  border: 1px solid var(--line-soft);
  background: rgba(4, 7, 12, 0.6);
}
.trailer__video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: cover;
}
.corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: var(--gold-400);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
}
.corner--tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.corner--tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.corner--bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.corner--br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

/* ------------------------------------------------------------------ author */

.author {
  position: relative;
  padding: var(--section) 0;
  background:
    radial-gradient(50% 60% at 15% 40%, rgba(29, 74, 107, 0.22), transparent 70%),
    var(--ink-950);
  overflow: hidden;
}

.author__grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

.author__media {
  position: relative;
  width: min(100%, 460px);
  margin-inline: auto;
}

.arch {
  position: relative;
  aspect-ratio: 8 / 11;
  border-radius: 999px 999px 3px 3px;
  overflow: hidden;
  background: var(--ink-800);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.arch picture,
.arch img,
.arch__img { width: 100%; height: 100%; object-fit: cover; }
.author__media::before,
.arch--main::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid var(--line);
  border-radius: 999px 999px 6px 6px;
  pointer-events: none;
}
.author__media::before { z-index: 1; }

.author__orbit {
  position: absolute;
  top: -6%;
  right: -14%;
  width: 44%;
  color: var(--gold-400);
  opacity: 0.4;
  pointer-events: none;
}

.author__copy { max-width: 36rem; }
.author__copy .lead { margin-bottom: 1.25rem; }

@media (min-width: 960px) {
  .author__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(4rem, 7vw, 7.5rem); }
  .author__media { margin: 0; }
}

/* ------------------------------------------------------------------ book feature */

.book-feature {
  position: relative;
  padding: var(--section) 0;
  overflow: hidden;
  background: var(--ink-950);
  isolation: isolate;
}
.book-feature__bg { position: absolute; inset: 0; z-index: -1; }
.book-feature__bg-img { position: absolute; inset: -12% 0; }
.book-feature__bg-img picture,
.book-feature__bg-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; }
.book-feature__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--ink-950) 0%, rgba(4, 7, 12, 0.6) 18%, rgba(4, 7, 12, 0.6) 82%, var(--ink-950) 100%),
    linear-gradient(90deg, rgba(4, 7, 12, 0.95) 0%, rgba(4, 7, 12, 0.75) 55%, rgba(4, 7, 12, 0.55) 100%);
}

.book-feature__grid { display: grid; gap: 3.5rem; align-items: center; }

.manuscript {
  position: relative;
  margin-top: 0.5rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.4rem);
  border: 1px solid var(--line-soft);
  background: linear-gradient(170deg, rgba(239, 231, 214, 0.05), rgba(239, 231, 214, 0.01));
}
.manuscript::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 38%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-400), transparent);
}
.manuscript__label {
  margin-bottom: 0.9rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.manuscript__text {
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 1.06rem + 0.45vw, 1.42rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--bone);
}
.dropcap::first-letter {
  float: left;
  margin: 0.06em 0.12em 0 0;
  font-size: 4.3em;
  font-weight: 600;
  line-height: 0.78;
  color: var(--gold-400);
}

.jacket {
  position: relative;
  border: 1px solid var(--line-soft);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.95), 0 0 120px -40px rgba(127, 214, 234, 0.25);
}
.jacket img { width: 100%; }
.book-feature__visual { margin: 0; }

@media (min-width: 960px) {
  .book-feature__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(3rem, 6vw, 6rem); }
}

/* ------------------------------------------------------------------ reviews */

.reviews {
  position: relative;
  padding: var(--section) 0;
  background:
    radial-gradient(40% 50% at 90% 10%, rgba(127, 214, 234, 0.08), transparent 70%),
    var(--ink-900);
  overflow: hidden;
}

.reviews__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.75rem;
}
.reviews__head .section-title { margin-bottom: 0; }

.reviews__controls { display: flex; align-items: center; gap: 0.75rem; }
.reviews__count {
  margin: 0 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.reviews__count span { color: var(--gold-300); }

.reviews__viewport {
  --edge: max(var(--gutter), (100% - var(--wrap)) / 2);
}
.reviews__track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  margin: 0;
  padding: 0.5rem var(--edge) 1.5rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track:focus-visible { outline-offset: -2px; }

.review {
  flex: 0 0 min(86%, 460px);
  scroll-snap-align: start;
}
.review__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem);
  border: 1px solid var(--line-soft);
  background: linear-gradient(165deg, rgba(29, 74, 107, 0.22), rgba(7, 13, 22, 0.2) 60%);
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.review__inner::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 64px;
  height: 2px;
  background: var(--gold-400);
}
.review.is-current .review__inner { border-color: var(--line); }
.review__inner > .icon--quote { width: 36px; height: 36px; color: var(--gold-400); margin-bottom: 1.25rem; }
.review__title {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.85rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--bone);
}
.review__text { margin: 0 0 1.75rem; flex: 1; }
.review__text p { font-size: 1.02rem; line-height: 1.7; color: var(--text); }
.review__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
}
.review__name { font-weight: 700; color: var(--bone); }
.review__badge {
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.review__date { flex-basis: 100%; font-size: 0.8rem; color: var(--muted); }

.reviews__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}
.reviews__dots { display: flex; gap: 0.5rem; }
.reviews__dot {
  width: 8px;
  height: 2px;
  background: var(--line-soft);
  transition: width 0.5s var(--ease), background 0.5s var(--ease);
}
.reviews__dot.is-active { width: 28px; background: var(--gold-400); }

/* ------------------------------------------------------------------ footer */

.site-footer { position: relative; background: var(--ink-950); }

.footer-cta {
  position: relative;
  padding: var(--section) 0;
  overflow: hidden;
  background:
    radial-gradient(50% 80% at 20% 50%, rgba(127, 214, 234, 0.12), transparent 70%),
    radial-gradient(30% 50% at 22% 85%, rgba(230, 189, 90, 0.12), transparent 70%),
    var(--ink-950);
  border-top: 1px solid var(--line-soft);
}
.footer-cta__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  justify-items: center;
  text-align: center;
}
.footer-cta__book { perspective: 1200px; }
.footer-cta__book picture {
  width: 160px;
  transform: rotateY(18deg) rotateZ(-3deg);
  box-shadow: -20px 30px 50px -10px rgba(0, 0, 0, 0.9);
}
.footer-cta__title { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem); margin-bottom: 1rem; }
.footer-cta__title em { color: var(--gold-300); }
.footer-cta__text { max-width: 34rem; margin-inline: auto; }
.footer-cta__copy .btn-row { justify-content: center; }
.footer-cta__copy .eyebrow { justify-content: center; }

@media (min-width: 768px) {
  .footer-cta__inner { grid-template-columns: auto 1fr; justify-items: start; text-align: left; gap: clamp(3rem, 6vw, 6rem); }
  .footer-cta__book picture { width: 220px; }
  .footer-cta__copy .btn-row,
  .footer-cta__copy .eyebrow { justify-content: flex-start; }
  .footer-cta__text { margin-inline: 0; }
}

.newsletter {
  position: relative;
  padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0;
  background: linear-gradient(180deg, var(--ink-850), var(--ink-900));
  border-block: 1px solid var(--line-soft);
}
.newsletter::before {
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  width: min(420px, 60%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
  transform: translateX(-50%);
}
.newsletter__inner { display: grid; gap: 1.75rem; align-items: center; }
.newsletter__title { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.8rem); margin-bottom: 0.4rem; }
.newsletter__text { color: var(--muted); }

.newsletter__field {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.newsletter__input,
.field input,
.field textarea {
  width: 100%;
  min-height: 54px;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(239, 231, 214, 0.03);
  color: var(--bone);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.newsletter__input::placeholder,
.field input::placeholder,
.field textarea::placeholder { color: #6f7a86; }
.newsletter__input:hover,
.field input:hover,
.field textarea:hover { border-color: rgba(239, 231, 214, 0.22); }
.newsletter__input:focus,
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-400);
  background: rgba(239, 231, 214, 0.05);
  box-shadow: 0 0 0 3px rgba(230, 189, 90, 0.18);
}
.has-error .newsletter__input,
.field.has-error input,
.field.has-error textarea { border-color: var(--danger); }

.form-status {
  min-height: 1.6em;
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
}
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--danger); }

@media (min-width: 560px) {
  .newsletter__field { flex-direction: row; }
  .newsletter__btn { flex: none; }
}
@media (min-width: 960px) {
  .newsletter__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 4rem; }
}

.footer-main { padding: clamp(3.5rem, 2.5rem + 3vw, 5rem) 0 3rem; }
.footer-main__grid { display: grid; gap: 2.75rem; }
.footer-brand__text { max-width: 26rem; margin-top: 1.25rem; color: var(--muted); font-size: 0.95rem; }
.footer-brand .ornament { margin: 1.5rem 0 0; width: 160px; opacity: 0.6; }

.footer-col__title {
  margin-bottom: 1.1rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li + li { margin-top: 0.15rem; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(var(--gold-400), var(--gold-400)) 0 calc(100% - 8px) / 0 1px no-repeat;
  transition: color 0.3s var(--ease), background-size 0.45s var(--ease);
}
.footer-col a:hover { color: var(--bone); background-size: 100% 1px; }
.footer-col .icon { width: 1em; height: 1em; color: var(--gold-400); }
.footer-mail { word-break: break-all; }
.footer-mail .icon { width: 1.2em; height: 1.2em; }

@media (min-width: 600px) {
  .footer-main__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .footer-main__grid { grid-template-columns: 1.7fr 1fr 1fr 1.25fr; gap: 3rem; }
  .footer-brand { grid-column: auto; }
}

.footer-bar { border-top: 1px solid var(--line-soft); }
.footer-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding: 1.5rem 0 calc(1.5rem + env(safe-area-inset-bottom));
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-bar p { margin: 0; }
.footer-bar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-bar a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
  color: var(--muted);
  text-decoration: none;
}
.footer-bar a:hover,
.footer-bar a[aria-current="page"] { color: var(--gold-300); }
.to-top .icon { width: 1em; height: 1em; }

/* ------------------------------------------------------------------ inner pages */

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(2.5rem, 2rem + 3vw, 5rem)) 0 clamp(4rem, 3rem + 4vw, 6.5rem);
  overflow: hidden;
  background: var(--ink-950);
  isolation: isolate;
}
.page-hero .hero__ambient { opacity: 0.3; }
.page-hero--compact { padding-bottom: clamp(3rem, 2rem + 3vw, 4.5rem); }
.page-hero--compact .page-title { max-width: 18ch; }
.page-hero__lead { max-width: 40rem; margin-top: 1.25rem; color: var(--muted); }
.page-hero__lead.lead { color: var(--bone); }

.page-title {
  font-size: clamp(2.8rem, 1.7rem + 4.2vw, 5.4rem);
  line-height: 1;
}

.page-hero__grid { display: grid; gap: 3rem; align-items: center; }
.page-hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1600px;
}
.page-hero__visual .book3d { width: min(64vw, 320px); }

.byline { margin: 1rem 0 0; font-size: 1.05rem; color: var(--muted); }
.byline a { color: var(--bone); }

.breadcrumbs { margin-bottom: 1.75rem; font-size: 0.8rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--gold-700); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-300); }
.breadcrumbs [aria-current] { color: var(--bone); }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 2rem 0 0;
  border-top: 1px solid var(--line-soft);
}
.facts > div { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line-soft); }
.facts dt { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-500); }
.facts dd { margin: 0.3rem 0 0; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; line-height: 1.2; color: var(--bone); }

@media (min-width: 960px) {
  .page-hero__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(3rem, 7vw, 7rem); }
  .page-hero__grid--about { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .page-hero__visual .book3d {
    width: min(30vw, 400px, calc((100svh - var(--header-h) - 170px) * 0.67));
    min-width: 260px;
    transform: rotateY(14deg) rotateX(3deg);
  }
}

/* book page */

.back-cover { padding: var(--section) 0; background: var(--ink-900); }
.back-cover__grid { display: grid; gap: 2rem; }
.manuscript--long .manuscript__text + .manuscript__text { margin-top: 1.1em; }
.manuscript__sign {
  margin-top: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: right;
  color: var(--gold-400);
}
@media (min-width: 960px) {
  .back-cover__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .back-cover__head { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.gallery { padding: var(--section) 0; background: var(--ink-950); }
.gallery__head { margin-bottom: 2.5rem; }
.gallery__grid { display: grid; gap: 1rem; }
.gallery__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--ink-800);
}
.gallery__item picture,
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1.25rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(4, 7, 12, 0.88));
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
}
@media (min-width: 960px) {
  .gallery__grid { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .gallery__item--wide { grid-row: span 2; }
}

.author-strip { padding: 0 0 var(--section); background: var(--ink-900); }
.author-strip__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  max-width: 900px;
  padding: clamp(1.75rem, 1rem + 3vw, 3rem);
  border: 1px solid var(--line-soft);
  background: linear-gradient(160deg, rgba(29, 74, 107, 0.16), transparent 70%);
}
.author-strip__img { width: 140px; aspect-ratio: 480 / 689; border-radius: 999px 999px 3px 3px; overflow: hidden; }
.author-strip__img img { width: 100%; height: 100%; object-fit: cover; }
.author-strip__title { font-size: 2.2rem; margin-bottom: 0.75rem; }
@media (min-width: 640px) {
  .author-strip__inner { grid-template-columns: 150px 1fr; align-items: center; gap: 2.5rem; }
  .author-strip__img { width: 150px; }
}

/* about page */

.portrait-duo {
  position: relative;
  width: min(100%, 440px);
  margin: 1rem auto 0;
  padding-bottom: 2rem;
}
.arch--main { overflow: visible; background: none; box-shadow: none; aspect-ratio: 800 / 1148; }
.arch--main picture {
  height: 100%;
  border-radius: 999px 999px 3px 3px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.portrait-duo__small {
  position: absolute;
  left: -8%;
  bottom: 0;
  width: 38%;
  aspect-ratio: 480 / 660;
  overflow: hidden;
  border: 6px solid var(--ink-950);
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.9);
}
.portrait-duo__small img { width: 100%; height: 100%; object-fit: cover; }
.portrait-duo .caption { text-align: right; }
@media (max-width: 599px) {
  .portrait-duo__small { left: -2%; width: 34%; }
}

.pursuits { padding: var(--section) 0; background: var(--ink-900); }
.pursuits__head { text-align: center; }
.pursuits__head .eyebrow { justify-content: center; }
.pursuits__lead {
  max-width: 44rem;
  margin: 0 auto 3rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  color: var(--bone);
}
.pursuits__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-soft);
}
.pursuits__list li {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.pursuits__num { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; color: var(--gold-400); }
.pursuits__label {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem);
  font-weight: 600;
  line-height: 1;
  color: var(--bone);
}
@media (min-width: 768px) {
  .pursuits__list { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 0; }
  .pursuits__list li {
    flex-direction: column;
    gap: 0.9rem;
    padding: 2rem 2rem 2rem 0;
    border-top: 1px solid var(--line-soft);
    border-bottom: 0;
  }
  .pursuits__list li + li { padding-left: 2rem; border-left: 1px solid var(--line-soft); }
}

.book-card-section { padding: 0 0 var(--section); background: var(--ink-900); }
.book-card {
  display: grid;
  gap: 2rem;
  justify-items: center;
  padding: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 80% at 15% 50%, rgba(127, 214, 234, 0.1), transparent 70%),
    var(--ink-950);
  text-align: center;
}
.book-card__cover picture { width: 180px; box-shadow: 20px 30px 50px -15px rgba(0, 0, 0, 0.9); }
.book-card__quote {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-style: italic;
  color: var(--bone);
}
.book-card .btn-row { justify-content: center; }
.book-card .eyebrow { justify-content: center; }
@media (min-width: 768px) {
  .book-card { grid-template-columns: 240px 1fr; justify-items: start; text-align: left; gap: 4rem; align-items: center; }
  .book-card__cover picture { width: 240px; }
  .book-card .btn-row,
  .book-card .eyebrow { justify-content: flex-start; }
}

/* contact page */

.contact { padding: clamp(3rem, 2rem + 3vw, 5rem) 0 var(--section); background: var(--ink-900); }
.contact__grid { display: grid; gap: 3rem; }
.contact__aside-title { font-size: 2rem; margin-bottom: 1rem; }
.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  word-break: break-all;
}
.contact__mail .icon { width: 1.4em; height: 1.4em; }
.contact__small { font-size: 0.85rem; color: var(--muted); }

.contact-form {
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  border: 1px solid var(--line-soft);
  background: linear-gradient(170deg, rgba(29, 74, 107, 0.14), rgba(7, 13, 22, 0.3) 70%);
}
.contact-form__row { display: grid; gap: 0 1.25rem; }
.field { margin-bottom: 1.1rem; }
.field__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone);
}
.field__req { color: var(--gold-400); }
.field textarea { min-height: 180px; resize: vertical; line-height: 1.6; }
.field__error { min-height: 1.2em; margin: 0.4rem 0 0; font-size: 0.82rem; color: var(--danger); }
.contact-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; margin-top: 0.5rem; }
.contact-form__foot .form-status { margin: 0; flex: 1 1 14rem; }

@media (min-width: 700px) {
  .contact-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .contact__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
}

/* legal pages */

.prose-section { padding: clamp(3rem, 2rem + 3vw, 5rem) 0 var(--section); background: var(--ink-900); }
.prose { max-width: 760px; }
.prose h2 { margin: 2.75rem 0 1rem; font-size: clamp(1.8rem, 1.5rem + 1vw, 2.3rem); }
.prose h3 {
  margin: 1.75rem 0 0.6rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.75rem; }
.prose li::marker { color: var(--gold-400); }
.prose strong { color: var(--bone); }
.prose code { font-size: 0.9em; color: var(--gold-300); }

/* 404 */

.not-found {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 88vh;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
  background: var(--ink-950);
  isolation: isolate;
  text-align: center;
}
.not-found .hero__ambient { opacity: 0.35; }
.not-found__inner { max-width: 44rem; }
.not-found__code {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(6rem, 4rem + 10vw, 12rem);
  font-weight: 600;
  line-height: 0.9;
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.not-found .lead { margin-top: 1.25rem; }

/* ------------------------------------------------------------------ motion
   Hero items start hidden only when JS + motion are available (class set inline in <head>);
   the inline script removes .motion if GSAP fails to load, so content is never lost.
   LCP-critical content (book cover, headings, lead copy) is never hidden. */

.motion [data-hero],
.motion .hero__ring,
.motion .hero__glow { opacity: 0; }
.motion .book3d__shine { background-position: 120% 50%; }
.motion [data-hero-line] { transform: translateY(105%); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__embers { display: none; }
}
