/* ───────────────────────── Tokens ───────────────────────── */
:root {
  --bg: #0a0a0a;
  --bg-2: #121212;
  --fg: #f3f1ec;
  --mute: #8c8a86;
  --dim: #3a3937;
  --line: rgba(243, 241, 236, 0.14);
  --sans: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --pad: clamp(16px, 2.6vw, 44px);
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

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

html { background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; font-weight: 500; }
::selection { background: var(--fg); color: var(--bg); }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.label { color: var(--mute); }
.label::before { content: '( '; }
.label::after { content: ' )'; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* ───────────────────────── Split text ───────────────────────── */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.wi { display: inline-block; will-change: transform; }
.js [data-split] .wi { transform: translateY(110%); }
.js [data-fade] { opacity: 0; transform: translateY(24px); }

/* ───────────────────────── Pill button ───────────────────────── */
.pill {
  --h: 44px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: var(--h);
  padding: 0 22px;
  border: 1px solid var(--fg);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease);
  white-space: nowrap;
}
.pill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--fg);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.pill:hover { color: var(--bg); }
.pill:hover::before { transform: translateY(0); }
.pill--solid { background: var(--fg); color: var(--bg); }
.pill--solid::before { background: var(--bg); }
.pill--solid:hover { color: var(--fg); }
.pill--lg { --h: 64px; padding: 0 34px; font-size: 12px; }
.pill .arrow { display: inline-block; transition: transform 0.5s var(--ease); }
.arrow { font-variant-emoji: text; }
.pill:hover .arrow { transform: translateX(4px) rotate(-45deg); }

/* ───────────────────────── Loader ───────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #000;
  color: var(--fg);
}
html:not(.js) .loader, html.no-loader .loader { display: none; }
.loader__mark {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  font-weight: 700;
  font-size: clamp(80px, 11vw, 170px);
  line-height: 0.8;
  letter-spacing: -0.05em;
}
.loader__slot {
  position: relative;
  width: clamp(110px, 13vw, 200px);
  aspect-ratio: 0.68;
  perspective: 900px;
}
.loader__slot .cover {
  position: absolute;
  inset: 0;
  opacity: 0;
  border-radius: 3px;
}
.loader__slot .cover.is-on { opacity: 1; }
.loader__apos { font-family: var(--sans); align-self: flex-start; margin-top: 0.02em; }
.loader__count {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.loader__caption {
  position: absolute;
  left: var(--pad);
  bottom: 44px;
  color: var(--mute);
}

/* ───────────────────────── Page wipe ───────────────────────── */
.wipe {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--fg);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}

/* ───────────────────────── Cursor ───────────────────────── */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--fg);
  pointer-events: none;
  mix-blend-mode: difference;
  display: grid;
  place-items: center;
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), margin 0.4s var(--ease-out);
}
.cursor span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000;
  opacity: 0;
  transition: opacity 0.25s;
}
.cursor.is-big { width: 88px; height: 88px; margin: -44px 0 0 -44px; }
.cursor.is-big span { opacity: 1; }
@media (hover: none) { .cursor { display: none; } }

/* ───────────────────────── Nav ───────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px var(--pad);
  mix-blend-mode: difference;
  color: #fff;
}
.nav__logo {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
  justify-self: start;
}
.nav__links { display: flex; gap: 28px; }
.nav__links a, .nav__meta a { position: relative; }
.nav__links a::after, .link-u::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav__links a:hover::after, .link-u:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__meta { justify-self: end; display: flex; gap: 22px; align-items: center; }
.nav .pill { --h: 36px; border-color: #fff; padding: 0 16px; }
.nav .pill::before { background: #fff; }
.nav .pill:hover { color: #000; }
/* "Where to buy": the header pill opens a column of store pills */
.buy { position: relative; }
.buy summary { list-style: none; cursor: pointer; user-select: none; }
.buy summary::-webkit-details-marker { display: none; }
.buy summary .arrow, .buy summary:hover .arrow { transform: none; }
.buy[open] summary .arrow { transform: rotate(180deg); }
.buy[open] summary, .buy__menu .pill { color: #000; }
.buy[open] summary::before, .buy__menu .pill::before { transform: translateY(0); }
.buy__menu .pill:hover { color: #fff; }
.buy__menu .pill:hover::before { transform: translateY(-101%); }
.buy__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: grid;
  min-width: 100%;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.buy__menu .pill { width: 100%; justify-content: space-between; }
.buy__menu .pill .arrow { font-size: 1.1em; }
.buy[open] .buy__menu li { animation: buy-in 0.6s var(--ease) both; }
.buy[open] .buy__menu li:nth-child(2) { animation-delay: 0.05s; }
.buy[open] .buy__menu li:nth-child(3) { animation-delay: 0.1s; }
.buy[open] .buy__menu li:nth-child(4) { animation-delay: 0.15s; }
@keyframes buy-in { from { opacity: 0; transform: translateY(-10px); } }
@media (hover: none) { .buy__menu .pill { --h: 44px; } }
@media (prefers-reduced-motion: reduce) { .buy[open] .buy__menu li { animation: none; } }
/* book pages: Home / Books / title, tucked under the logo */
.nav__crumbs { position: absolute; left: var(--pad); top: calc(100% - 14px); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.nav__crumbs a { position: relative; opacity: 0.7; transition: opacity 0.3s; }
.nav__crumbs a:hover { opacity: 1; }
.nav__crumbs span[aria-hidden] { opacity: 0.4; }

/* ───────────────────────── Hero ───────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px var(--pad) 36px;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}
/* three portraits of him, cut out; the necks sink behind the name */
.hero__heads {
  position: absolute;
  z-index: 1;
  top: 92px;
  bottom: clamp(70px, 8.5vw, 150px);
  right: calc(var(--pad) + 3vw);
  aspect-ratio: 1233 / 1250;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 97%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 97%);
}
.hero__heads img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* optimised images arrive wrapped in <picture> (see images.js); it adds no box, so layout and selectors behave as if the <img> stood alone */
picture { display: contents; }
/* text for search engines and screen readers only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero__intro {
  align-self: center;
  justify-self: start;
  text-align: left;
  position: relative;
  z-index: 2;
  max-width: min(34vw, 540px);
}
.hero__intro .label { display: block; margin-bottom: 26px; }
.hero__lede {
  font-size: clamp(30px, 3.4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero__lede .serif { font-size: 1.1em; }
.hero__cta { margin-top: 36px; display: flex; gap: 10px; justify-content: flex-start; }
.hero__name {
  position: relative;
  z-index: 2;
  font-weight: 700;
  font-size: clamp(64px, 13.6vw, 230px);
  line-height: 0.8;
  letter-spacing: -0.065em;
  white-space: nowrap;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-left: -0.04em;
}
.hero__name .apos { font-weight: 700; }
.hero__foot {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 22px;
  color: var(--mute);
}

/* ───────────────────────── Statement ───────────────────────── */
.statement {
  padding: clamp(110px, 16vw, 240px) var(--pad) clamp(80px, 10vw, 160px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 20px;
}
.statement h2 {
  grid-column: 1 / -1;
  font-size: clamp(44px, 6.4vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 500;
}
.statement h2 .indent { display: inline-block; width: 2.6em; }
.statement h2 .serif { letter-spacing: -0.03em; }
.statement__side {
  grid-column: 7 / span 5;
  margin-top: clamp(60px, 8vw, 120px);
}
.statement__side .label { display: block; margin-bottom: 22px; }
.statement__side p {
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

/* ───────────────────────── Books list ───────────────────────── */
.books {
  position: relative;
  padding: 40px var(--pad) clamp(100px, 12vw, 180px);
  display: grid;
  grid-template-columns: clamp(70px, 9vw, 150px) 1fr;
  column-gap: clamp(20px, 3vw, 56px);
}
.stack {
  position: sticky;
  top: 90px;
  align-self: start;
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: clamp(56px, 8vw, 132px);
  line-height: 0.78;
  letter-spacing: -0.05em;
}
.stack span { display: block; }
.books__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 28px;
}
.books__head h2 {
  font-size: clamp(30px, 3.4vw, 54px);
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 14ch;
}
/* the store name flips backwards through every place that sells the books */
.flip { display: inline-grid; perspective: 700px; }
.flip__word {
  grid-area: 1 / 1;
  backface-visibility: hidden;
  opacity: 0;
  transform: rotateX(-90deg);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
}
.flip__word.is-on { opacity: 1; transform: none; }
/* only the name showing can be clicked; it opens that store */
a.flip__word { pointer-events: none; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }
a.flip__word.is-on { pointer-events: auto; }
a.flip__word:hover { text-decoration-color: currentColor; }
.flip__word.is-off { transform: rotateX(90deg); }
@media (prefers-reduced-motion: reduce) { .flip__word { transition: none; } }
.books__count { display: flex; gap: 6px; align-items: baseline; color: var(--mute); }
.books__count b { color: var(--fg); font-weight: 500; font-size: 15px; }

.row {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1.5fr) minmax(0, 1fr) 140px auto;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.row:last-child { border-bottom: 1px solid var(--line); }
.row__i { color: var(--mute); }
.row__title {
  font-size: clamp(28px, 3.3vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  transition: transform 0.7s var(--ease-out);
}
.row__title small {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.42em;
  letter-spacing: -0.01em;
  color: var(--mute);
}
.row__tag { color: var(--mute); font-size: 14px; line-height: 1.35; max-width: 34ch; transition: color 0.4s; }
.row__genre { color: var(--mute); }
.row__go { opacity: 0.0; transform: translateX(-10px); transition: opacity 0.4s, transform 0.6s var(--ease-out); }
.row::before {
  content: '';
  position: absolute;
  inset: -1px calc(var(--pad) * -1);
  background: var(--bg-2);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
}
.rows { position: relative; z-index: 0; }
.row:hover::before { opacity: 1; }
.row:hover .row__title { transform: translateX(18px); }
.row:hover .row__tag { color: var(--fg); }
.row:hover .row__go { opacity: 1; transform: none; }
.rows:hover .row:not(:hover) .row__title { color: var(--dim); }
.row__title { transition: transform 0.7s var(--ease-out), color 0.4s; }

/* hover preview that follows the cursor */
.preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 220px;
  pointer-events: none;
  opacity: 0;
  perspective: 900px;
}
.preview .cover { position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s; }
.preview .cover.is-on { opacity: 1; }
.preview__box { position: relative; aspect-ratio: 0.68; }
@media (hover: none) { .preview { display: none; } }

/* ───────────────────────── Cover + 3D book ───────────────────────── */
.cover {
  position: relative;
  aspect-ratio: 0.68;
  background: var(--c-bg);
  color: var(--c-ink);
  border-radius: 2px 5px 5px 2px;
  padding: 9% 9% 10%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  container-type: inline-size;
  box-shadow: inset 4px 0 0 rgba(0,0,0,0.12), inset 7px 0 6px -4px rgba(255,255,255,0.18);
}
.cover.has-border { outline: 1px solid rgba(255,255,255,0.18); outline-offset: -1px; }
.cover::after {
  /* subtle paper sheen */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 38%, rgba(0,0,0,0.12) 100%);
  pointer-events: none;
}
.cover__author { font-family: var(--mono); font-size: 5.4cqi; letter-spacing: 0.08em; text-transform: uppercase; }
.cover__glyph {
  font-size: 46cqi;
  line-height: 0.8;
  letter-spacing: -0.06em;
  font-weight: 700;
  align-self: flex-start;
  margin-left: -0.03em;
}
.cover__glyph.is-serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.02em; }
.cover__glyph.is-long { font-size: 30cqi; }
.cover__title { font-weight: 600; font-size: 10cqi; line-height: 0.95; letter-spacing: -0.04em; }
.cover__sub { display: block; margin-top: 4px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 0.62em; letter-spacing: -0.01em; opacity: 0.75; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.book3d {
  position: relative;
  transform-style: preserve-3d;
  aspect-ratio: 0.68;
  --depth: 26px;
}
.book3d .cover { position: absolute; inset: 0; transform: translateZ(calc(var(--depth) / 2)); backface-visibility: hidden; }
.book3d__pages {
  position: absolute;
  top: 1.5%;
  bottom: 1.5%;
  right: 0;
  width: var(--depth);
  transform-origin: right center;
  transform: translateX(calc(var(--depth) / 2 - 2px)) rotateY(90deg);
  background: repeating-linear-gradient(90deg, #f4f0e6 0 1px, #d9d4c7 1px 2px);
}
.book3d__back {
  position: absolute;
  inset: 0;
  transform: translateZ(calc(var(--depth) / -2)) rotateY(180deg);
  background: var(--c-bg);
  filter: brightness(0.7);
  border-radius: 5px 2px 2px 5px;
}
.book3d__spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--depth);
  transform-origin: left center;
  transform: translateX(calc(var(--depth) / -2)) rotateY(-90deg);
  background: var(--c-bg);
  filter: brightness(0.82);
}
.book3d__shadow {
  position: absolute;
  left: 6%;
  right: -4%;
  bottom: -9%;
  height: 10%;
  background: radial-gradient(closest-side, rgba(0,0,0,0.7), transparent);
  filter: blur(8px);
  transform: translateZ(-60px);
}

/* ───────────────────────── Featured ───────────────────────── */
.featured {
  position: relative;
  padding: clamp(100px, 12vw, 180px) var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 90px);
  align-items: center;
  border-top: 1px solid var(--line);
}
.featured__stage {
  display: grid;
  place-items: center;
  perspective: 1400px;
  min-height: 70vh;
}
.featured__stage .book3d { width: min(30vw, 420px); --depth: 38px; }
.featured__text .label { display: block; margin-bottom: 24px; }
.featured__title {
  font-size: clamp(48px, 6vw, 104px);
  line-height: 0.88;
  letter-spacing: -0.06em;
  font-weight: 600;
}
.featured__tag { margin-top: 26px; font-size: clamp(22px, 2vw, 30px); line-height: 1.1; max-width: 22ch; }
.featured__desc { margin-top: 26px; color: var(--mute); max-width: 46ch; font-size: 16px; line-height: 1.5; }
.featured__meta { margin-top: 34px; display: flex; gap: 28px; color: var(--mute); }
.featured__meta b { display: block; color: var(--fg); font-family: var(--sans); font-weight: 500; font-size: 15px; text-transform: none; letter-spacing: 0; margin-top: 4px; }
.featured__cta { margin-top: 40px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ───────────────────────── About ───────────────────────── */
.about {
  padding: clamp(100px, 12vw, 200px) var(--pad);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 20px;
  border-top: 1px solid var(--line);
}
.about__label { grid-column: 1 / span 3; }
.about__big {
  grid-column: 4 / -1;
  font-size: clamp(30px, 3.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.about__big .wd { color: var(--dim); transition: color 0.2s; }
.about__big .wd.on { color: var(--fg); }
.about__grid {
  grid-column: 4 / -1;
  margin-top: clamp(60px, 7vw, 110px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.about__grid .label { display: block; margin-bottom: 16px; }
.about__grid ul { list-style: none; margin: 0; padding: 0; }
.about__grid li { font-size: 22px; letter-spacing: -0.03em; line-height: 1.25; }
.about__grid p { color: var(--mute); max-width: 32ch; }
.about__care ul { margin: 18px 0 26px; }
.about__grid .about__quals { margin-top: 18px; }
.about__quals span { color: var(--mute); }
.about__mail { position: relative; display: inline-block; font-size: 18px; letter-spacing: -0.02em; color: var(--fg); padding: 6px 0; }
.about__grid .about__reg { margin-top: 18px; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.7; }

/* ───────────────────────── Marquee ───────────────────────── */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  white-space: nowrap;
}
.marquee__track { display: inline-flex; animation: marquee 32s linear infinite; }
.marquee__track span {
  font-weight: 600;
  font-size: clamp(54px, 8vw, 136px);
  line-height: 1;
  letter-spacing: -0.055em;
  padding-right: 0.4em;
}
.marquee__track .serif { font-weight: 400; color: var(--mute); }
.marquee__track .glyph { color: var(--mute); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────────────────────── FAQ ───────────────────────── */
.faq {
  padding: clamp(100px, 12vw, 180px) var(--pad);
  display: grid;
  grid-template-columns: clamp(70px, 9vw, 150px) 1fr;
  column-gap: clamp(20px, 3vw, 56px);
}
.faq__head { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 28px; }
.faq__head a { color: var(--mute); }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa button {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 28px 0;
  font-size: clamp(22px, 2.2vw, 36px);
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.qa__plus { position: relative; flex: none; width: 18px; height: 18px; }
.qa__plus::before, .qa__plus::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transition: transform 0.5s var(--ease);
}
.qa__plus::after { transform: rotate(90deg); }
.qa.open .qa__plus::after { transform: rotate(0); }
.qa__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.qa.open .qa__body { grid-template-rows: 1fr; }
.qa__body > div { overflow: hidden; }
.qa__body p { padding: 0 0 30px; color: var(--mute); max-width: 62ch; font-size: 16px; line-height: 1.55; }

/* ───────────────────────── Contact / footer ───────────────────────── */
.contact {
  padding: clamp(100px, 12vw, 180px) var(--pad) 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.contact .label { display: block; margin-bottom: 30px; }
.contact h2 {
  font-size: clamp(54px, 9vw, 160px);
  line-height: 0.86;
  letter-spacing: -0.065em;
  font-weight: 600;
}
.contact h2 .serif { font-weight: 400; }
.contact__cta { margin-top: 46px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.pill__tag { opacity: 0.55; margin-right: 4px; }

.foot {
  margin-top: clamp(100px, 12vw, 180px);
  padding: 0 var(--pad) 24px;
}
.foot__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding-bottom: 20px;
  color: var(--mute);
}
.foot__row nav { display: flex; gap: 22px; }
.foot__row a:hover { color: var(--fg); }
.foot__word {
  font-weight: 700;
  font-size: 23.2vw;
  line-height: 0.74;
  letter-spacing: -0.075em;
  margin: 0 -0.02em -0.04em -0.04em;
  white-space: nowrap;
  overflow: hidden;
}
.foot__word span { display: inline-block; }

/* ───────────────────────── Book page ───────────────────────── */
.bk-hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px var(--pad) 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 90px);
  align-items: center;
}
.bk-stage { display: grid; place-items: center; perspective: 1400px; height: 100%; min-height: 60vh; }
.bk-stage .book3d { width: min(28vw, 400px); --depth: 36px; }
.bk-crumbs { display: flex; gap: 14px; color: var(--mute); margin-bottom: 30px; }
.bk-crumbs a:hover { color: var(--fg); }
.bk-title {
  font-size: clamp(52px, 6.6vw, 116px);
  line-height: 0.86;
  letter-spacing: -0.06em;
  font-weight: 600;
}
.bk-sub { margin-top: 14px; font-size: clamp(22px, 2.2vw, 34px); color: var(--mute); }
.bk-tag { margin-top: 30px; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.15; letter-spacing: -0.02em; max-width: 26ch; }
.bk-meta {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 36px;
  color: var(--mute);
}
.bk-meta b { display: block; color: var(--fg); font-family: var(--sans); text-transform: none; letter-spacing: -0.01em; font-weight: 500; font-size: 15px; margin-top: 6px; }
.bk-cta { margin-top: 40px; display: flex; gap: 10px; flex-wrap: wrap; }

.bk-body {
  padding: clamp(90px, 10vw, 160px) var(--pad);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 20px;
  border-top: 1px solid var(--line);
}
.bk-body > .label { grid-column: 1 / span 3; }
.bk-desc { grid-column: 4 / span 8; }
.bk-desc p:first-child {
  font-size: clamp(26px, 2.8vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin-bottom: 40px;
}
.bk-desc p + p { color: var(--mute); font-size: 18px; line-height: 1.5; max-width: 56ch; margin-top: 18px; }
.bk-themes { grid-column: 4 / span 8; margin-top: 60px; display: flex; flex-wrap: wrap; gap: 8px; }
.bk-themes span {
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 10px 18px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bk-more { padding: 0 var(--pad) clamp(90px, 10vw, 160px); }
.bk-more__head { display: flex; justify-content: space-between; padding-bottom: 24px; }
.bk-more__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mini { display: block; }
.mini .mini__cover { perspective: 900px; }
.mini .cover { transition: transform 0.8s var(--ease-out); }
.mini:hover .cover { transform: translateY(-10px) rotate(-1.5deg); }
.mini__t { margin-top: 16px; font-size: 18px; letter-spacing: -0.03em; }
.mini__g { color: var(--mute); margin-top: 4px; }

.bk-next {
  display: block;
  border-top: 1px solid var(--line);
  padding: clamp(80px, 9vw, 140px) var(--pad);
  text-align: center;
  overflow: hidden;
}
.bk-next .label { display: block; margin-bottom: 24px; }
.bk-next__t {
  display: inline-block;
  font-size: clamp(56px, 10vw, 180px);
  line-height: 0.86;
  letter-spacing: -0.065em;
  font-weight: 600;
  transition: transform 0.9s var(--ease-out), letter-spacing 0.9s var(--ease-out);
}
.bk-next:hover .bk-next__t { transform: scale(0.96); letter-spacing: -0.04em; }

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 1000px) {
  .row { grid-template-columns: 40px 1fr auto; }
  .row__tag, .row__genre { display: none; }
  .row__go { opacity: 1; transform: none; }
  .featured, .bk-hero { grid-template-columns: 1fr; }
  .featured__stage .book3d, .bk-stage .book3d { width: min(60vw, 360px); }
  .statement__side { grid-column: 1 / -1; }
  .about__label, .about__big, .about__grid, .bk-body > .label, .bk-desc, .bk-themes { grid-column: 1 / -1; }
  .about__label, .bk-body > .label { margin-bottom: 30px; }
  .about__grid { grid-template-columns: 1fr; }
  .bk-more__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .nav__links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .books, .faq { grid-template-columns: 1fr; }
  .stack { position: static; flex-direction: row; gap: 0.06em; margin-bottom: 30px; font-size: 64px; }
  .hero__name { font-size: 15vw; }
  .hero { grid-template-rows: auto auto auto; grid-template-columns: minmax(0, 1fr); }
  .hero__heads { position: relative; top: auto; bottom: auto; right: auto; width: 86vw; justify-self: center; margin-bottom: -6vw; }
  .hero__intro { max-width: none; justify-self: stretch; margin-bottom: 40px; }
  .foot__row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .js [data-split] .wi, .js [data-fade] { transform: none; opacity: 1; }
}

/* ───────────────────────── Colour blocks (from Home · Showreel) ───────────────────────── */
/* the author section in the showreel's blue; text and dim words re-tinted through the tokens */
.about {
  --fg: #ffffff;
  --mute: rgba(255, 255, 255, 0.72);
  --dim: rgba(255, 255, 255, 0.3);
  --line: transparent;
  background: #2f45ff;
  color: var(--fg);
}
/* the closing "hard things" section in the showreel's pink, ink text, buttons inverted to match */
.contact {
  --fg: #0b0b0b;
  --bg: #ff5fa2;
  --mute: rgba(11, 11, 11, 0.62);
  --line: transparent;
  background: #ff5fa2;
  color: var(--fg);
  padding-bottom: clamp(100px, 12vw, 180px);
}

/* the pink runs straight into the footer shelf: no black band between them */
body[data-page="home"] .foot { margin-top: 0; }
body[data-page="home"] .shelf { border-top: 0; }

/* Latest: the cloth-bound book from the Dear Sam paper page, at the old featured size */
.nb { --w: min(30vw, 420px); --t: calc(var(--w) * .085); position: relative; width: var(--w); perspective: 1400px;
  --scuff: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 3.2 -2.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.nb::before { content: ""; position: absolute; left: 4%; right: -4%; bottom: -3%; height: 10%; border-radius: 50%; background: rgba(0, 0, 0, .7); filter: blur(16px); }
.nb__book { position: relative; aspect-ratio: 611 / 851; transform-style: preserve-3d; transform: rotateY(-20deg); }
.nb__back { position: absolute; inset: 0; border-radius: 3px 12px 12px 3px; background: #0a2128; transform: translateZ(calc(var(--t) * -.5)); }
.nb__pages { position: absolute; top: 1.4%; bottom: 1.4%; left: calc(100% - var(--t) * .5 - 2px); width: var(--t); transform: rotateY(90deg);
  background: linear-gradient(90deg, rgba(0, 0, 0, .18), transparent 30%, transparent 70%, rgba(0, 0, 0, .14)), repeating-linear-gradient(90deg, #f4f0e7 0 1px, #d8d1c3 1px 2px); }
.nb__cover { position: absolute; inset: 0; overflow: hidden; border-radius: 3px 14px 14px 3px; background: #0b2a33; transform: translateZ(calc(var(--t) * .5));
  box-shadow: 0 30px 40px -16px rgba(0, 0, 0, .6); }
.nb__cover img { position: absolute; left: 9%; top: 0; display: block; width: 91%; height: 100%; object-fit: cover; object-position: 0% 50%; filter: saturate(.9) contrast(1.05) brightness(.96); }
.nb__cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22), inset 0 0 22px rgba(0, 0, 0, .4); }
.nb__wear { position: absolute; inset: 0; mix-blend-mode: screen; opacity: .5; pointer-events: none;
  background: var(--scuff), radial-gradient(60% 40% at 100% 0%, rgba(255, 255, 255, .22), transparent 60%), radial-gradient(50% 30% at 100% 100%, rgba(255, 255, 255, .18), transparent 60%); }
.nb__spine { position: absolute; top: 0; bottom: 0; left: 0; width: 10%; border-radius: 3px 0 0 3px;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px), linear-gradient(90deg, #08191e, #133139 55%, #0c2228);
  box-shadow: 3px 0 5px -1px rgba(0, 0, 0, .55), inset -1px 0 0 rgba(255, 255, 255, .1); }
.nb__spine::after { content: ""; position: absolute; inset: 0; background: var(--scuff); background-size: 140px; opacity: .35; mix-blend-mode: screen; }
@media (max-width: 900px) { .nb { --w: min(60vw, 320px); } }

/* ───────────────────────── No italics, site-wide ───────────────────────── */
/* the old italic serif accents, set like Kwanele: the heavy upright sans with tight tracking */
.serif:not([data-type] .serif) { font-family: var(--sans); font-style: normal; font-weight: 700; letter-spacing: -0.05em; }
blockquote.serif:not([data-type] .serif) { font-weight: 500; letter-spacing: -0.035em; }
.row__title small, .cover__sub { font-family: var(--sans); font-style: normal; font-weight: 500; letter-spacing: -0.02em; }
.cover__glyph.is-serif { font-family: var(--sans); font-style: normal; font-weight: 700; letter-spacing: -0.05em; }

/* ───────────────────────── Phones ───────────────────────── */
@media (max-width: 700px) {
  /* type floor: no label under 12px */
  .mono, .pill { font-size: 12px; }
  /* tap targets: 44px tall hit areas, layout unchanged */
  .nav__crumbs a { padding: 14px 4px; margin: -14px -4px; }
  .foot__row a { display: inline-block; padding: 16px 0; margin: -16px 0; }
  /* the breadcrumb has no backing, so it steps aside once the page scrolls */
  .nav__crumbs { transition: opacity .3s, visibility .3s; }
  body.is-scrolled .nav__crumbs { opacity: 0; visibility: hidden; }
  /* Home: the statement in three lines, not four */
  .statement h2 { font-size: clamp(30px, 8.6vw, 40px); }
  .statement h2 .indent { width: 1em; }
  /* Home: book titles get the full row; the whole row is already the link */
  .row { grid-template-columns: 28px minmax(0, 1fr); gap: 14px; }
  .row__go { display: none; }
  .row__title { font-size: clamp(26px, 7.4vw, 32px); }
}
