/* ==========================================================================
   George Marrero | Willing to Change
   Core stylesheet. Breakpoint adjustments live in responsive.css.
   Palette is drawn from the book cover: charcoal typewriter, white-washed
   wood, and the dusty rosewood of the title and dried flowers.
   ========================================================================== */

/* Fonts (self-hosted, latin subset) ---------------------------------------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-normal.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: 300 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-normal.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("../fonts/courier-prime-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* Tokens ------------------------------------------------------------------- */
:root {
  --ink: #141517;
  --ink-2: #1b1d20;
  --black: #0e0f10;
  --paper: #fbf9f4;
  --ivory: #f7f4ed;
  --stone: #ece6db;
  --stone-2: #ddd4c4;
  --rose: #8a5e5c;
  --rose-deep: #634243;
  --rose-light: #c99f96;
  --error: #9b3b30;
  --success: #3f6b4f;

  --text: #1e2023;
  --muted: #655e57;
  --muted-light: #a9a29a;
  --line: rgba(20, 21, 23, 0.14);
  --line-light: rgba(247, 244, 237, 0.14);

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Courier Prime", "Courier New", Courier, monospace;

  --container: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(5rem, 4rem + 6vw, 10rem);
  --header-h: 84px;

  --ease: cubic-bezier(0.22, 0.75, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Reset -------------------------------------------------------------------- */
*, *::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) + 1rem);
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow-x: clip) {
  body { overflow-x: clip; }
}
html.is-preloading body, html.menu-open body { overflow: hidden; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
main:focus { outline: none; }
::selection { background: var(--rose); color: var(--ivory); }

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}
[data-theme="dark"] :focus-visible, .site-header :focus-visible, .mobile-menu :focus-visible {
  outline-color: var(--rose-light);
}

.visually-hidden {
  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; top: 0.75rem; left: 0.75rem; z-index: 2000;
  padding: 0.75rem 1.25rem;
  background: var(--ivory); color: var(--ink);
  font-size: 0.875rem; font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; }

/* Layout ------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { position: relative; padding-block: var(--section); }
[data-theme="dark"] { background: var(--ink); color: var(--ivory); }

/* Typography --------------------------------------------------------------- */
.display-1, .display-2, .hero__title, .page-hero__title {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.display-1 { font-size: clamp(2.75rem, 1.5rem + 5vw, 6rem); line-height: 0.98; }
.display-2 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.6rem); line-height: 1.02; }
.display-1 em, .display-2 em, .hero__title em, .page-hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--rose);
}
[data-theme="dark"] .display-1 em, [data-theme="dark"] .display-2 em,
.hero__title em, .page-hero__title em { color: var(--rose-light); }

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 34rem;
}
[data-theme="dark"] .lead { color: var(--muted-light); }
.lead em { font-style: italic; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.6rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
}
.eyebrow::before {
  content: "";
  width: 2.25rem; height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow--light, [data-theme="dark"] .eyebrow { color: var(--rose-light); }
.eyebrow .caret {
  display: inline-block;
  width: 0.55em; height: 1.05em;
  margin-left: 0.15em;
  background: currentColor;
  vertical-align: -0.15em;
  animation: caret 0.9s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  padding-bottom: 0.35rem;
  transition: background-size 0.5s var(--ease), color 0.3s;
}
.text-link .icon { width: 1.1rem; height: 1.1rem; transition: transform 0.4s var(--ease); }
.text-link:hover { background-size: 35% 1px; color: var(--rose); }
.text-link:hover .icon { transform: translateX(4px); }

/* Split text helpers (created by animations.js) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > span { display: inline-block; will-change: transform; }

/* Buttons ------------------------------------------------------------------ */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.btn {
  --btn-bg: var(--ivory);
  --btn-fg: var(--ink);
  --btn-hover: var(--rose-light);
  --btn-hover-fg: var(--ink);
  --btn-border: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 0 1.15rem 0 1.6rem;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--btn-hover);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.6s var(--ease);
}
.btn__icon {
  position: relative;
  display: inline-block;
  width: 1.25rem; height: 1.25rem;
  overflow: hidden;
  flex: none;
}
.btn__icon .icon {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transition: transform 0.55s var(--ease);
}
.btn__icon .icon + .icon { transform: translateX(-130%); }
.btn--light { --btn-bg: var(--ivory); --btn-fg: var(--ink); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--ivory); --btn-hover: var(--rose-deep); --btn-hover-fg: var(--ivory); }
.btn--ghost-light, .btn--outline-light {
  --btn-bg: transparent; --btn-fg: var(--ivory); --btn-border: rgba(247, 244, 237, 0.35);
  --btn-hover: var(--ivory); --btn-hover-fg: var(--ink);
}
.btn--ghost-dark {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: rgba(20, 21, 23, 0.3);
  --btn-hover: var(--ink); --btn-hover-fg: var(--ivory);
}
.btn--small { min-height: 2.75rem; padding: 0 0.9rem 0 1.15rem; gap: 0.75rem; font-size: 0.75rem; }
.btn--small .btn__icon { width: 1rem; height: 1rem; }

@media (hover: hover) {
  .btn:hover { color: var(--btn-hover-fg); border-color: var(--btn-hover); }
  .btn:hover::before { transform: scaleX(1); transform-origin: left center; }
  .btn:hover .btn__icon .icon:first-child { transform: translateX(130%); }
  .btn:hover .btn__icon .icon + .icon { transform: translateX(0); }
  .btn--outline-light .icon--external, .btn--ghost-light .icon--external { transition: transform 0.55s var(--ease); }
}
.btn:active { transform: translateY(1px); }

.round-btn {
  display: grid; place-items: center;
  width: 3.25rem; height: 3.25rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.round-btn .icon { width: 1.15rem; height: 1.15rem; transition: transform 0.4s var(--ease); }
@media (hover: hover) {
  .round-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
  .round-btn[data-next]:hover .icon { transform: translateX(3px); }
  .round-btn[data-prev]:hover .icon { transform: translateX(-3px); }
}

/* Preloader ---------------------------------------------------------------- */
.preloader { display: none; }
html.is-preloading .preloader {
  display: block;
  position: fixed; inset: 0; z-index: 1000;
  pointer-events: all;
}
.preloader__panel {
  position: absolute; top: 0; bottom: 0;
  width: 50.5%;
  background: var(--black);
}
.preloader__panel--left { left: 0; }
.preloader__panel--right { right: 0; }
.preloader__stage {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  color: var(--ivory);
}
.preloader__book { width: 9.5rem; height: auto; overflow: visible; margin-bottom: 1.75rem; }
.preloader__book path, .preloader__book line {
  stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke;
}
.pl-spine { stroke: var(--rose-light) !important; stroke-dasharray: 124; stroke-dashoffset: 124; }
.pl-page { opacity: 0; }
.pl-page--left { transform-origin: 110px 76px; }
.pl-page--right { transform-origin: 110px 76px; }
.pl-lines { opacity: 0; stroke-opacity: 0.4; }
.preloader__title {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
}
.preloader__title em { font-weight: 400; color: var(--rose-light); }
.pl-word { display: inline-block; opacity: 0; }
.preloader__author {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted-light);
  overflow: hidden;
}
.preloader__author span { display: inline-block; transform: translateY(110%); }

/* Header ------------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  color: var(--ivory);
  transition: transform 0.6s var(--ease), background-color 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(20, 21, 23, 0.94);
  border-bottom-color: var(--line-light);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header.is-scrolled { background: rgba(20, 21, 23, 0.86); backdrop-filter: saturate(1.2) blur(12px); }
}
.site-header.is-hidden { transform: translateY(-100%); }
html.menu-open .site-header { transform: none; background: transparent; border-bottom-color: transparent; backdrop-filter: none; }

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  height: var(--header-h);
  max-width: calc(1480px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  transition: height 0.5s var(--ease);
}
.site-header.is-scrolled .site-header__inner { height: 70px; }

.brand { display: flex; flex-direction: column; line-height: 1; position: relative; z-index: 2; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.005em;
}
.brand__tag {
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--muted-light);
}
.brand__tag em { font-style: normal; color: var(--rose-light); }

.site-nav__list { display: flex; gap: clamp(1.25rem, 2.2vw, 2.4rem); }
.site-nav__link {
  position: relative;
  display: block;
  padding-block: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(247, 244, 237, 0.82);
  transition: color 0.3s;
}
.site-nav__link > span {
  position: relative; display: block; overflow: hidden;
  line-height: 1.4;
}
.site-nav__link > span::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 100%;
  color: var(--rose-light);
}
.site-nav__link > span, .site-nav__link > span::after { transition: transform 0.5s var(--ease); }
.site-nav__link::after {
  content: "";
  position: absolute; left: 50%; bottom: -0.1rem;
  width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%;
  background: var(--rose-light);
  transform: scale(0);
  transition: transform 0.4s var(--ease);
}
.site-nav__link[aria-current="page"] { color: var(--ivory); }
.site-nav__link[aria-current="page"]::after { transform: scale(1); }
@media (hover: hover) {
  .site-nav__link:hover > span { color: transparent; }
  .site-nav__link:hover > span::after { transform: translateY(-100%); }
  .site-nav__link > span { transition: color 0.25s; }
}

.site-header__actions { display: flex; align-items: center; gap: 1rem; position: relative; z-index: 2; }

.menu-toggle {
  display: none;
  align-items: center; gap: 0.8rem;
  height: 2.75rem;
  padding-left: 0.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.menu-toggle__lines { position: relative; width: 1.75rem; height: 0.7rem; }
.menu-toggle__lines i {
  position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform 0.5s var(--ease), top 0.5s var(--ease), width 0.5s var(--ease);
}
.menu-toggle__lines i:first-child { top: 0; }
.menu-toggle__lines i:last-child { top: 100%; width: 70%; left: auto; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines i:first-child { top: 50%; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines i:last-child { top: 50%; width: 100%; transform: rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  color: var(--ivory);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__bg { position: absolute; inset: 0; background: var(--ink); }
.mobile-menu__inner {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  height: 100%;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2.5rem;
  overflow-y: auto;
}
.mobile-menu__item { border-bottom: 1px solid var(--line-light); overflow: hidden; }
.mobile-menu__item a {
  display: flex; align-items: baseline; gap: 1.25rem;
  padding-block: 1rem;
}
.mobile-menu__num { font-family: var(--mono); font-size: 0.75rem; color: var(--rose-light); }
.mobile-menu__label {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.4rem + 4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.05;
}
.mobile-menu__item a[aria-current="page"] .mobile-menu__label { font-style: italic; color: var(--rose-light); }
.mobile-menu__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; padding-top: 2.5rem; }
.mobile-menu__mail { font-family: var(--mono); font-size: 0.875rem; color: var(--muted-light); }

/* Hero --------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 2rem);
  overflow: hidden;
  background: var(--ink);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__light {
  position: absolute; inset: 0;
  background:
    radial-gradient(42rem 32rem at 72% 46%, rgba(201, 159, 150, 0.16), transparent 70%),
    radial-gradient(60rem 40rem at 10% 110%, rgba(247, 244, 237, 0.05), transparent 70%);
}
.hero__ghost {
  position: absolute; right: -2vw; bottom: -0.18em;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(9rem, 26vw, 28rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 244, 237, 0.07);
  white-space: nowrap;
  user-select: none;
}
.hero__grid {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  padding-block: 2rem 3rem;
}
.hero__title {
  font-size: clamp(2.5rem, 1.3rem + 3.5vw, 5rem);
  line-height: 1;
  margin-bottom: 1.5rem;
  max-width: 12ch;
}
.hero__lead {
  max-width: 33rem;
  margin-bottom: 2.5rem;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem);
  color: var(--muted-light);
}
.hero__lead em { color: var(--ivory); }
.hero__author {
  display: inline-flex; align-items: center; gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
  min-width: min(22rem, 100%);
}
.hero__author-img {
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
}
.hero__author-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter 0.6s; }
.hero__author:hover .hero__author-img img { filter: grayscale(0.2); }
.hero__author-text { display: flex; flex-direction: column; line-height: 1.2; }
.hero__author-label { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-light); }
.hero__author-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }

.hero__visual {
  position: relative;
  display: grid; place-items: center;
  min-height: 34rem;
}
.hero__plate {
  position: absolute;
  top: 50%; left: 50%;
  width: min(100%, 26rem);
  height: 112%;
  max-height: 44rem;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line-light);
  background: linear-gradient(180deg, rgba(247, 244, 237, 0.04), rgba(247, 244, 237, 0));
}
.hero__foot {
  position: relative;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line-light);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.hero__themes span { color: var(--rose-light); margin-inline: 0.4rem; }
.hero__scroll { display: inline-flex; align-items: center; gap: 0.9rem; transition: color 0.3s; }
.hero__scroll i { position: relative; width: 1px; height: 2.75rem; background: var(--line-light); overflow: hidden; }
.hero__scroll i::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 45%;
  background: var(--rose-light);
  animation: scrollcue 2.2s var(--ease-in-out) infinite;
}
.hero__scroll:hover { color: var(--ivory); }
@keyframes scrollcue { 0% { transform: translateY(-100%); } 100% { transform: translateY(230%); } }

/* Hero intro states: hidden until the intro timeline runs (motion only). */
html.motion:not(.motion-failsafe) [data-hero],
html.motion:not(.motion-failsafe) [data-hero-title],
html.motion:not(.motion-failsafe) .book3d--hero,
html.motion:not(.motion-failsafe) .book3d--page { opacity: 0; }

/* 3D book ------------------------------------------------------------------ */
.book3d {
  --w: 300px;
  --h: calc(var(--w) * 1.507);
  --t: calc(var(--w) * 0.064);
  --ry: 26deg;
  --rx: 3deg;
  position: relative;
  width: var(--w);
  margin-inline: auto;
  perspective: 2000px;
}
.book3d__stage {
  position: relative;
  width: var(--w);
  height: var(--h);
  transform-style: preserve-3d;
  will-change: transform;
}
.book3d__body {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 1.3s var(--ease);
}
.book3d.is-turned .book3d__body { transform: rotateX(var(--rx)) rotateY(calc(var(--ry) + 180deg)); }
.book3d__face { position: absolute; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.book3d__front, .book3d__back { inset: 0; overflow: hidden; background: #e9e6e0; }
.book3d__front { transform: translateZ(calc(var(--t) / 2)); border-radius: 0 3px 3px 0; }
.book3d__back { transform: rotateY(180deg) translateZ(calc(var(--t) / 2)); border-radius: 3px 0 0 3px; background: #000; }
.book3d__front img, .book3d__back img { width: 100%; height: 100%; object-fit: cover; }
.book3d__front::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0, rgba(255, 255, 255, 0.18) 1.2%, rgba(0, 0, 0, 0.06) 3%, transparent 7%);
}
.book3d__sheen {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.22) 48%, transparent 62%);
  background-size: 250% 100%;
  background-position: var(--sheen, 85%) 0;
  mix-blend-mode: soft-light;
}
.book3d__spine {
  top: 0; left: calc(50% - var(--t) / 2);
  width: var(--t); height: 100%;
  transform: rotateY(-90deg) translateZ(calc(var(--w) / 2));
  background: #111;
}
.book3d__spine img { width: 100%; height: 100%; object-fit: fill; }
.book3d__spine::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(255, 255, 255, 0.08) 50%, rgba(0, 0, 0, 0.3));
}
.book3d__pages {
  top: 3px; left: calc(50% - var(--t) / 2);
  width: var(--t); height: calc(100% - 6px);
  transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 3px));
  background: repeating-linear-gradient(90deg, #f4efe5 0 1px, #d9d0c1 1px 2px);
}
.book3d__top, .book3d__bottom {
  left: 0; top: calc(50% - var(--t) / 2);
  width: calc(100% - 3px); height: var(--t);
  background: repeating-linear-gradient(0deg, #f4efe5 0 1px, #d9d0c1 1px 2px);
}
.book3d__top { transform: rotateX(90deg) translateZ(calc(var(--h) / 2 - 2px)); }
.book3d__bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2 - 2px)); }
.book3d__shadow {
  position: absolute; left: 4%; right: -6%; top: calc(var(--h) - 1.5rem);
  height: 3rem;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.55), transparent 75%);
  filter: blur(8px);
  z-index: -1;
}
.book3d--hero { --w: clamp(230px, 24vw, 370px); }
.book3d--showcase { --w: clamp(230px, 25vw, 360px); --ry: -24deg; }
.book3d--page { --w: clamp(220px, 23vw, 350px); }
.book3d__turn {
  display: inline-flex; align-items: center; gap: 0.65rem;
  margin: 3.25rem auto 0;
  padding: 0.6rem 0.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
  border-bottom: 1px solid var(--line-light);
  transition: color 0.3s, border-color 0.3s;
  position: relative; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
}
.book3d__turn .icon { width: 1rem; height: 1rem; transition: transform 0.8s var(--ease); }
.book3d__turn:hover { color: var(--ivory); border-color: var(--rose-light); }
.book3d.is-turned .book3d__turn .icon { transform: rotate(-180deg); }

/* Intro -------------------------------------------------------------------- */
.intro { background: var(--ivory); }
.intro__head { max-width: 62rem; }
.intro__head .display-1 { max-width: 17ch; }
.intro__body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: end;
  margin-top: clamp(3rem, 6vw, 5.5rem);
}
.intro__lead {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem);
  line-height: 1.35;
  font-weight: 500;
  color: var(--ink);
}
.dropcap::first-letter {
  float: left;
  font-size: 4.6em;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  font-style: normal;
  color: var(--rose);
}
.intro__aside p { color: var(--muted); margin-bottom: 1.75rem; }

.themes {
  margin-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
  counter-reset: theme;
}
.themes__row {
  position: relative;
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: baseline;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.themes__num { font-family: var(--mono); font-size: 0.8125rem; color: var(--rose); }
.themes__name {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.6rem);
  font-weight: 500;
  line-height: 1.1;
  transition: transform 0.6s var(--ease), color 0.4s;
}
.themes__text { color: var(--muted); max-width: 30rem; }
@media (hover: hover) {
  .themes__row:hover .themes__name { transform: translateX(0.75rem); color: var(--rose); font-style: italic; }
}

/* About teaser ------------------------------------------------------------- */
.about-teaser { background: var(--stone); }
.about-teaser__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
}
.about-teaser__text .display-2 { max-width: 12ch; margin-bottom: 1.75rem; }
.about-teaser__text .lead { margin-bottom: 2.5rem; }
.about-teaser__home {
  display: flex; align-items: center; gap: 0.6rem;
  margin: 1.75rem 0 2.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
.about-teaser__home .icon { width: 1.1rem; height: 1.1rem; color: var(--rose); flex: none; }

.portrait { --ratio: 4 / 5; position: relative; }
.portrait__frame {
  position: relative;
  aspect-ratio: var(--ratio);
  overflow: hidden;
  background: var(--stone-2);
}
.portrait::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  aspect-ratio: var(--ratio);
  border: 1px solid var(--rose);
  transform: translate(1.25rem, 1.25rem);
  opacity: 0.45;
  pointer-events: none;
}
.portrait__img { position: absolute; inset: -8% 0; }
.portrait__img picture, .portrait__img img { width: 100%; height: 100%; }
.portrait__img img {
  object-fit: cover;
  object-position: 52% 40%;
  filter: grayscale(1) contrast(1.06) brightness(0.98);
  transition: filter 1.4s var(--ease);
}
@media (hover: hover) {
  .portrait:hover .portrait__img img { filter: grayscale(0.15) contrast(1.02); }
}
.portrait__caption {
  display: flex; justify-content: space-between;
  margin-top: 2.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.credentials { border-top: 1px solid var(--line); }
.credentials__row {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1.5rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.credentials dt {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  padding-top: 0.35rem;
}
.credentials dd strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.2;
}
.credentials dd span { display: block; font-size: 0.9375rem; color: var(--muted); }

/* Book showcase ------------------------------------------------------------ */
.showcase { overflow: hidden; }
.showcase::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(36rem 30rem at 22% 50%, rgba(201, 159, 150, 0.12), transparent 70%);
  pointer-events: none;
}
.showcase__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
}
.showcase__visual { padding-block: 2rem; }
.showcase__text .display-1 { margin-bottom: 2.25rem; }
.showcase__synopsis p { color: var(--muted-light); margin-bottom: 1.1rem; max-width: 36rem; }
.pullquote {
  margin: 2.5rem 0 2.75rem;
  padding: 0.25rem 0 0.25rem 1.75rem;
  border-left: 1px solid var(--rose-light);
  max-width: 36rem;
}
.pullquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.45rem, 1.1rem + 1vw, 2rem);
  line-height: 1.3;
  color: var(--ivory);
}
.pullquote cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-light);
}

/* Journey timeline --------------------------------------------------------- */
.journey { background: var(--paper); }
.journey__head { max-width: 50rem; margin-bottom: clamp(4rem, 8vw, 7rem); }
.journey__head .display-1 { margin-bottom: 1.75rem; }
.timeline { position: relative; }
.timeline__track {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: var(--line);
}
.timeline__fill {
  position: absolute; inset: 0;
  background: var(--rose);
  transform-origin: top center;
}
html.motion .timeline__fill { transform: scaleY(0); }
html.motion-failsafe .timeline__fill { transform: none; }
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(4rem, 9vw, 9rem);
  align-items: center;
  padding-block: clamp(2rem, 4vw, 3.5rem);
}
.timeline__dot {
  position: absolute; left: 50%; top: 50%;
  width: 0.9rem; height: 0.9rem;
  margin: -0.45rem 0 0 -0.45rem;
  border: 1px solid var(--rose);
  border-radius: 50%;
  background: var(--paper);
  transition: background 0.5s, transform 0.5s var(--ease);
}
.timeline__item.is-active .timeline__dot { background: var(--rose); transform: scale(1.25); }
.timeline__num {
  font-family: var(--serif);
  font-size: clamp(5rem, 3rem + 7vw, 10rem);
  line-height: 0.8;
  font-weight: 400;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px var(--stone-2);
  transition: -webkit-text-stroke-color 0.6s;
}
.timeline__item.is-active .timeline__num { -webkit-text-stroke-color: var(--rose-light); }
.timeline__item:nth-child(odd) .timeline__num { grid-column: 2; grid-row: 1; }
.timeline__item:nth-child(odd) .timeline__card { grid-column: 1; grid-row: 1; text-align: right; justify-self: end; }
.timeline__item:nth-child(even) .timeline__num { grid-column: 1; grid-row: 1; text-align: right; }
.timeline__item:nth-child(even) .timeline__card { grid-column: 2; grid-row: 1; }
.timeline__card { max-width: 30rem; }
.timeline__label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.9rem;
}
.timeline__label span { display: block; color: var(--muted); letter-spacing: 0.08em; margin-top: 0.25rem; }
.timeline__title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.timeline__text { color: var(--muted); }

/* Why it matters ----------------------------------------------------------- */
.why { background: var(--black); }
.why__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: start;
}
.why__intro { position: sticky; top: calc(var(--header-h) + 3rem); }
.why__intro .display-2 { margin-bottom: 1.75rem; max-width: 11ch; }
.why__kicker {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 1rem;
}
.places { border-top: 1px solid var(--line-light); }
.places__item {
  position: relative;
  display: flex; align-items: baseline; gap: 1.5rem;
  padding-block: clamp(0.9rem, 1.6vw, 1.4rem);
  border-bottom: 1px solid var(--line-light);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 1.3rem + 4.6vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  transition: color 0.5s, padding-left 0.6s var(--ease);
}
.places__num {
  min-width: 2.5rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--rose-light);
}
@media (hover: hover) {
  .places__item:hover { color: var(--rose-light); font-style: italic; padding-left: 1rem; }
}
.why__statement {
  margin-top: 2.25rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 1.15rem + 1vw, 2.1rem);
  color: var(--rose-light);
}
.reflections {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: clamp(4.5rem, 9vw, 8rem);
  border-top: 1px solid var(--line-light);
}
.reflections li {
  padding: 2rem 1.75rem 0 0;
  margin-right: 1.75rem;
}
.reflections li + li { padding-left: 1.75rem; margin-right: 0; border-left: 1px solid var(--line-light); }
.reflections h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.reflections p { font-size: 0.9375rem; color: var(--muted-light); }

/* Reviews ------------------------------------------------------------------ */
.reviews--stone { background: var(--stone); }
.reviews--ivory { background: var(--ivory); }
.reviews__head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.reviews__carousel { position: relative; max-width: 66rem; margin-left: auto; }
.reviews__mark {
  position: absolute;
  left: clamp(-5.5rem, -6vw, -1rem); top: -0.3em;
  font-family: var(--serif);
  font-size: clamp(9rem, 16vw, 16rem);
  line-height: 1;
  color: var(--rose);
  opacity: 0.22;
  pointer-events: none;
  user-select: none;
}
.reviews__viewport { position: relative; display: grid; }
.review { grid-area: 1 / 1; }
.reviews__viewport.is-enhanced .review { visibility: hidden; }
.reviews__viewport.is-enhanced .review.is-active { visibility: visible; }
.review__quote p {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 1.05rem + 1.75vw, 2.6rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-wrap: pretty;
}
.review__by { display: flex; align-items: center; gap: 1rem; margin-top: 2.25rem; }
.review__rule { width: 3rem; height: 1px; background: var(--rose); }
.review__name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.review__role { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.reviews__controls {
  display: flex; align-items: center; gap: 2rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.reviews__count {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--muted);
}
.reviews__count [data-current] { color: var(--ink); }
.reviews__sep { width: 1.5rem; height: 1px; background: var(--line); }
.reviews__progress { flex: 1; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.reviews__progress span { position: absolute; inset: 0; background: var(--rose); transform: scaleX(0); transform-origin: left; }
.reviews__buttons { display: flex; gap: 0.75rem; }

/* Book CTA ----------------------------------------------------------------- */
.cta-book { background: var(--ink-2); overflow: hidden; }
.cta-book__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40rem 30rem at 75% 50%, rgba(201, 159, 150, 0.14), transparent 70%);
}
.cta-book__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}
.cta-book__text .display-1 { margin-bottom: 1.75rem; max-width: 12ch; }
.cta-book__text .lead { margin-bottom: 2.5rem; }
.cta-book__jacket { perspective: 1600px; }
.cta-book__jacket-frame {
  position: relative;
  box-shadow: 0 2.5rem 5rem rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(247, 244, 237, 0.06);
  transform-origin: center bottom;
  overflow: hidden;
}
.cta-book__jacket-frame img { width: 100%; }
.cta-book__jacket figcaption {
  margin-top: 1.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
  text-align: right;
}

/* Contact ------------------------------------------------------------------ */
.contact { background: var(--ivory); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: start;
}
.contact__intro .display-2 { margin-bottom: 1.5rem; max-width: 11ch; }
.contact__details { margin-top: 3rem; }
.contact__label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.5rem;
}
.contact__email {
  display: inline-block;
  margin-bottom: 2.25rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.25rem);
  font-weight: 500;
  word-break: break-word;
  background: linear-gradient(var(--rose), var(--rose)) left bottom / 0 1px no-repeat;
  transition: background-size 0.6s var(--ease), color 0.3s;
}
.contact__email:hover { background-size: 100% 1px; color: var(--rose); }
.social { display: flex; gap: 0.75rem; }
.social a {
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 0.4s var(--ease), color 0.4s, border-color 0.4s;
}
.social .icon { width: 1.15rem; height: 1.15rem; }
.social a:hover { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

/* Form */
.contact-form { position: relative; }
.contact-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 2rem; }
.contact-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { position: relative; padding-top: 1.4rem; }
.field--wide { grid-column: 1 / -1; }
.field__input {
  display: block;
  width: 100%;
  padding: 0.65rem 0 0.75rem;
  border: 0;
  border-bottom: 1px solid rgba(20, 21, 23, 0.25);
  border-radius: 0;
  background: linear-gradient(var(--ink), var(--ink)) left bottom / 0 1px no-repeat transparent;
  transition: background-size 0.6s var(--ease), border-color 0.3s;
  font-size: 1.0625rem;
  color: var(--ink);
  outline: none;
  appearance: none;
}
.field--textarea .field__input { resize: vertical; min-height: 9rem; line-height: 1.6; }
.field__label {
  position: absolute; left: 0; top: 2.05rem;
  font-size: 1rem;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.45s var(--ease), color 0.3s;
}
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label {
  transform: translateY(-1.6rem) scale(0.78);
  color: var(--rose);
  letter-spacing: 0.02em;
}
.field__line { display: none; }
.field__input:focus { background-size: 100% 1px; }
.field__error {
  min-height: 1.6rem;
  padding-top: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--error);
}
.field.has-error .field__input { border-bottom-color: var(--error); }
.field.has-error .field__label { color: var(--error); }
.field.has-error .field__input { background-image: linear-gradient(var(--error), var(--error)); }

.contact-form__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  margin-top: 1.5rem;
}
.contact-form__note { font-size: 0.875rem; color: var(--muted); max-width: 20rem; line-height: 1.55; }
.contact-form__note a { text-decoration: underline; text-underline-offset: 3px; }
.contact-form__submit { min-width: 13rem; }
.btn__spinner {
  position: absolute; right: 1.15rem; top: 50%;
  width: 1.1rem; height: 1.1rem;
  margin-top: -0.55rem;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  opacity: 0;
}
.contact-form.is-busy .btn__spinner { opacity: 1; animation: spin 0.8s linear infinite; }
.contact-form.is-busy .btn__icon { opacity: 0; }
.contact-form.is-busy .contact-form__submit { pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-alert {
  display: none;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid currentColor;
  background: rgba(20, 21, 23, 0.04);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.form-alert.is-visible { display: block; }
.form-alert.is-error { color: var(--error); }
.form-alert.is-success { color: var(--success); }
.form-alert a { text-decoration: underline; }

/* Inner page hero ---------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(4rem, 9vw, 8rem)) 0 clamp(4.5rem, 8vw, 7.5rem);
  background: var(--ink);
  color: var(--ivory);
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40rem 30rem at 78% 40%, rgba(201, 159, 150, 0.13), transparent 70%);
}
.page-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}
.page-hero__grid--single { grid-template-columns: minmax(0, 1fr); max-width: 60rem; }
.page-hero__title {
  font-size: clamp(2.5rem, 1.3rem + 3.4vw, 4.75rem);
  line-height: 1;
  margin-bottom: 1.75rem;
}
.page-hero__lead { max-width: 36rem; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); color: var(--muted-light); }
.page-hero .btn-row { margin-top: 2.5rem; }
.page-hero__media { position: relative; }
.page-hero__portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 30rem;
  margin-left: auto;
  overflow: hidden;
}
.page-hero__portrait img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 52% 40%;
  filter: grayscale(1) contrast(1.06);
}
.page-hero__portrait::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(20, 21, 23, 0.45));
}
.breadcrumb {
  display: flex; gap: 0.6rem;
  margin-bottom: 2rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.breadcrumb a:hover { color: var(--ivory); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.6rem; color: var(--rose-light); }

/* Long-form chapters (About page) ------------------------------------------ */
.chapters { background: var(--ivory); }
.chapter {
  display: grid;
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 7rem);
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}
.chapter:first-child { border-top: 0; padding-top: 0; }
.chapter__aside { position: relative; }
.chapter__sticky { position: sticky; top: calc(var(--header-h) + 2rem); }
.chapter__num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(3.5rem, 2rem + 4vw, 6rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px var(--rose);
  margin-bottom: 1rem;
}
.chapter__label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
}
.chapter__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.4rem);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 1.75rem;
  max-width: 18ch;
  text-wrap: balance;
}
.chapter__title em { font-style: italic; font-weight: 400; color: var(--rose); }
.chapter__body p { color: var(--muted); max-width: 40rem; margin-bottom: 1.25rem; }
.chapter__body p.big {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.9rem);
  line-height: 1.4;
  color: var(--ink);
  font-weight: 500;
}
.chapter__body .credentials { margin-top: 2rem; max-width: 44rem; }
.chapter__body .pullquote { border-color: var(--rose); }
.chapter__body .pullquote p { color: var(--ink); }
.chapter__body .pullquote cite { color: var(--rose); }

/* Band CTA ----------------------------------------------------------------- */
.band { background: var(--ink-2); color: var(--ivory); }
.band__inner {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 3rem;
}
.band .display-2 { max-width: 14ch; }
.band .lead { margin-top: 1.25rem; }

/* Book page ---------------------------------------------------------------- */
.book-hero .page-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); }
.book-hero .page-hero__media { padding-block: 1rem 0; }
.facts {
  display: flex; flex-wrap: wrap; gap: 0 2.5rem;
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
}
.facts div { padding-block: 0.4rem; }
.facts dt { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-light); }
.facts dd { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }

.synopsis { background: var(--ivory); }
.synopsis__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 7vw, 8rem);
}
.synopsis__head { position: sticky; top: calc(var(--header-h) + 3rem); align-self: start; }
.synopsis__body p { color: var(--muted); margin-bottom: 1.4rem; max-width: 40rem; }
.synopsis__body p.big {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 1.1rem + 1vw, 2rem);
  line-height: 1.4;
  color: var(--ink);
  font-weight: 500;
}
.synopsis__body .pullquote { border-color: var(--rose); margin-block: 3rem; }
.synopsis__body .pullquote p { color: var(--ink); }
.synopsis__body .pullquote cite { color: var(--rose); }

.themes-section { background: var(--paper); }
.themes-section .themes { margin-top: clamp(3rem, 6vw, 5rem); }

.author-mini { background: var(--stone); }
.author-mini--ivory { background: var(--ivory); }
.author-mini__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.author-mini .portrait { --ratio: 1; }
.author-mini .display-2 { margin-bottom: 1.5rem; max-width: 14ch; }
.author-mini .lead { margin-bottom: 2.25rem; max-width: 38rem; }

/* Contact page ------------------------------------------------------------- */
.contact-page { background: var(--ivory); }
.contact-page .contact__grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); }
.contact-page__title { margin-bottom: 2.5rem; }
.contact-card { border-top: 1px solid var(--line); }
.contact-card__row { padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.contact-card__row .contact__email { margin-bottom: 0; font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.8rem); }
.contact-card__row p { color: var(--muted); font-size: 0.9375rem; }
.contact-card__book { display: flex; gap: 1.25rem; align-items: center; }
.contact-card__book picture { width: 4.5rem; flex: none; box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.18); }
.contact-card__book strong { display: block; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1.2; }

/* Thank you / 404 ---------------------------------------------------------- */
.confirm {
  position: relative;
  display: grid; place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 3rem) 0 5rem;
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
  overflow: hidden;
}
.confirm::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(38rem 28rem at 50% 42%, rgba(201, 159, 150, 0.16), transparent 70%);
}
.confirm__inner { position: relative; max-width: 46rem; margin-inline: auto; }
.confirm__mark { width: 7.5rem; height: 7.5rem; margin: 0 auto 2.5rem; color: var(--rose-light); }
.confirm__mark circle, .confirm__mark path { stroke: currentColor; stroke-width: 1.25; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.confirm .page-hero__title { margin-bottom: 1.5rem; }
.confirm .page-hero__lead { margin-inline: auto; }
.confirm .btn-row { justify-content: center; margin-top: 2.75rem; }
.confirm__note { margin-top: 2.5rem; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-light); }
.confirm__code {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(7rem, 20vw, 14rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px var(--rose-light);
  margin-bottom: 1rem;
}

/* Legal / prose ------------------------------------------------------------ */
.prose-section { background: var(--ivory); }
.prose { max-width: 46rem; }
.prose h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.3rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 3rem 0 1rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose p { margin-bottom: 1.1rem; }
.prose ul { margin: 0 0 1.25rem; padding-left: 1.25rem; list-style: disc; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--rose); }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.draft-note {
  display: flex; gap: 0.85rem;
  max-width: 46rem;
  margin-bottom: 3rem;
  padding: 1.1rem 1.25rem;
  border: 1px dashed var(--rose);
  font-size: 0.9375rem;
  color: var(--rose-deep);
  background: rgba(138, 94, 92, 0.05);
}
.prose-meta { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-light); margin-top: 1.5rem; }

/* Footer ------------------------------------------------------------------- */
.site-footer {
  position: relative;
  padding-top: clamp(4.5rem, 8vw, 7rem);
  background: var(--black);
  color: var(--ivory);
  overflow: hidden;
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.5fr) minmax(0, 0.7fr);
  gap: 3rem;
}
.site-footer__eyebrow { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rose-light); margin-bottom: 1rem; }
.site-footer__title {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.75rem, 1.8rem + 3.5vw, 4.75rem);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 2rem;
  transition: color 0.4s;
}
.site-footer__title em { font-weight: 400; color: var(--rose-light); }
.site-footer__title:hover { color: var(--rose-light); }
.site-footer__heading {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 1.25rem;
}
.site-footer__col li + li { margin-top: 0.6rem; }
.site-footer__col a {
  font-size: 0.9375rem;
  color: rgba(247, 244, 237, 0.85);
  background: linear-gradient(var(--rose-light), var(--rose-light)) left bottom / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease), color 0.3s;
  word-break: break-word;
}
.site-footer__col a:hover { color: var(--ivory); background-size: 100% 1px; }
.site-footer__wordmark {
  margin: clamp(3.5rem, 7vw, 6rem) 0 0;
  padding-bottom: 0.22em;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 13.4vw, 13.5rem);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 244, 237, 0.13);
  text-align: center;
  user-select: none;
}
.site-footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding-block: 1.75rem 2rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.8125rem;
  color: var(--muted-light);
}
.site-footer__legal { display: flex; gap: 1.75rem; }
.site-footer__legal a:hover { color: var(--ivory); }

/* Fail-safe: if scripts never initialise, show everything ------------------ */
html.motion-failsafe [data-hero],
html.motion-failsafe [data-hero-title],
html.motion-failsafe [data-reveal],
html.motion-failsafe .book3d { opacity: 1 !important; transform: none !important; clip-path: none !important; }
html.motion-failsafe .preloader { display: none !important; }

/* Reduced motion ----------------------------------------------------------- */
@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;
  }
  .book3d__body { transition-duration: 0.01ms !important; }
}
