/* Childlike Media — site styles
   Face: Jost (brand). Palette: one green ramp drawn from the Grand Narrative covers —
   night, the brand's deep green, the first volume's charcoal forest, the second's grey
   sage, a pale sage, the third's oat linen, sand and cream — with CLM Gold as the one
   accent, as the foil is on the cloth. Photographs keep their own colour.
*/

:root {
  --black: #07110b;        /* night green: the only true dark; reads as black, belongs to the greens */
  --night: #07110b;
  --deep: #0c2215;         /* brand deep green (logo variant 06) */
  --forest: #33403a;       /* the first volume's cloth */
  --sage: #8a9a90;         /* the second volume's cloth */
  --sage-pale: #c3cdc5;    /* the same sage, lifted toward cream */
  --oat: #d3c7a9;          /* the third volume's linen */
  --white: #fff;
  --gold: #d1b389;         /* CLM Gold */
  --tan: #f2e8d2;        /* warm cream of the wordmark, sampled from the reference frame */
  --tan-soft: rgba(242, 232, 210, 0.82);
  --tan-dim: rgba(242, 232, 210, 0.7);
  --gutter: clamp(20px, 4.5vw, 72px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--tan);
  font-family: Jost, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

img { display: block; }

/* ---------- Side rays (ported from React Bits) ---------- */

.side-rays {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.side-rays__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- Navigation: the mark and the menu circle, always on screen ---------- */

.nav__mark,
.nav__menu {
  position: fixed;
  top: clamp(20px, 2.6vw, 40px);
  z-index: 101;
  opacity: 0;
  transition: opacity 1.2s ease 1.1s, transform 0.55s var(--ease-out);
}
/* stepping aside while the page is read (js/menu.js): up and out of the top of the screen */
.chrome-hidden .nav__mark,
.chrome-hidden .nav__menu { transform: translateY(-160%); pointer-events: none; }

.is-ready .nav__mark,
.is-ready .nav__menu { opacity: 1; }

.nav__mark {
  left: var(--gutter);
  display: block;
  width: 40px;
  height: 40px;
}

.nav__mark img {
  display: block;
  width: 40px;
  height: 40px;
  transition: filter 0.5s var(--ease-out);
}

/* over the tan ground the gold would be faint, so the mark goes to ink there (gold again on the menu) */
.nav__mark--ink img { filter: brightness(0.25) sepia(0.2); }

/* the menu button: a hairline ring with two short lines, the same frame language as the menu
   overlay; it fills with glass under the pointer and with cream when the menu is open. Ink
   while a light section is under it (the script toggles the class, as it does for the mark) */
.nav__menu {
  right: var(--gutter);
  z-index: 102;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--tan);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav__menu::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(242, 232, 210, 0.6);
  background: rgba(7, 17, 11, 0);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.14);
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  transition: background-color 0.5s var(--ease-out), border-color 0.5s var(--ease-out),
              transform 0.5s var(--ease-out), -webkit-backdrop-filter 0.5s, backdrop-filter 0.5s;
}

.nav__menu:hover::before {
  background: rgba(7, 17, 11, 0.28);
  border-color: rgba(242, 232, 210, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.nav__line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1px;
  margin: -0.5px 0 0 -8px;
  background: currentColor;
  pointer-events: none;
  transition: transform 0.5s var(--ease-out), background-color 0.5s var(--ease-out);
}

.nav__line:nth-child(1) { transform: translateY(-3.5px); }
.nav__line:nth-child(2) { transform: translateY(3.5px); }
.nav__menu:hover .nav__line:nth-child(1) { transform: translateY(-5px); }
.nav__menu:hover .nav__line:nth-child(2) { transform: translateY(5px); }

/* ink, over a light section */
.nav__menu--ink { color: var(--deep); }
.nav__menu--ink::before { border-color: rgba(12, 34, 21, 0.55); box-shadow: none; }
.nav__menu--ink:hover::before { background: rgba(242, 232, 210, 0.35); border-color: rgba(12, 34, 21, 0.85); }

/* open: the ring fills with cream and the lines cross in ink */
.nav__menu[aria-expanded="true"] { color: var(--deep); }
.nav__menu[aria-expanded="true"]::before,
.nav__menu[aria-expanded="true"]:hover::before { background: var(--tan); border-color: var(--tan); }
.nav__menu[aria-expanded="true"] .nav__line:nth-child(1) { transform: rotate(45deg); }
.nav__menu[aria-expanded="true"] .nav__line:nth-child(2) { transform: rotate(-45deg); }

/* the menu itself: the page's night ground, opening out of the circle; a frame on the left that
   follows the link under the pointer, the links on the right as a kind-line over a light title */
.menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background:
    radial-gradient(ellipse 70% 55% at 30% 40%, rgba(26, 42, 34, 0.32), rgba(7, 17, 11, 0) 70%),
    var(--night);
  color: var(--tan);
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 300;
  clip-path: circle(0px at calc(100% - var(--gutter) - 24px) calc(clamp(20px, 2.6vw, 40px) + 24px));
  visibility: hidden;
  transition: clip-path 0.85s cubic-bezier(0.65, 0, 0.2, 1), visibility 0s linear 0.85s;
}

.menu.is-open {
  visibility: visible;
  clip-path: circle(150% at calc(100% - var(--gutter) - 24px) calc(clamp(20px, 2.6vw, 40px) + 24px));
  transition: clip-path 1s cubic-bezier(0.65, 0, 0.2, 1), visibility 0s;
}

.menu__wrap {
  position: relative;
  z-index: 1; /* over the haze */
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  align-items: center;
  column-gap: clamp(32px, 6vw, 110px);
  height: 100%;
  padding: calc(clamp(20px, 2.6vw, 40px) + 72px) var(--gutter) calc(var(--gutter) + 56px);
  box-sizing: border-box;
}

/* the frame: the cards' 14 px frame and shadow; its picture is the one for the link under the pointer,
   crossfading, with a brief blur as it changes and a drift toward the pointer */
.menu__reel {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  --mx: 0;
  --my: 0;
  opacity: 0;
  transform: scale(0.84);
  transition: opacity 0.6s var(--ease-out), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.menu__plane {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #0a1a10;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.menu__plane img,
.menu__plane video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translate3d(calc(var(--mx) * 3%), calc(var(--my) * 3%), 0) scale(1.08);
  transition: opacity 0.9s ease, transform 1.1s cubic-bezier(0.2, 1, 0.3, 1), filter 0.5s ease-out;
}
.menu__plane .is-on { opacity: 1; }
.menu__plane.is-blur img,
.menu__plane.is-blur video { filter: blur(7px); transition: filter 0.08s ease-in, opacity 0.9s ease, transform 1.1s cubic-bezier(0.2, 1, 0.3, 1); }

/* the links */
.menu__links {
  display: flex;
  flex-direction: column;
}
/* the page names alone, a hairline between each (the small lines that described each page were cut
   2026-11-05: the user wanted only subtle rules there) */
.menu__links a {
  display: block;
  padding: clamp(12px, 2.2vh, 24px) 0;
  border-top: 1px solid rgba(242, 232, 210, 0.14);
  color: var(--tan);
  text-decoration: none;
  outline: none;
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.6s var(--ease-out), transform 0.9s var(--ease-out), border-color 0.4s ease;
}
.menu__links a:first-child { border-top: 0; padding-top: 0; }
.menu__links a:hover,
.menu__links a:focus-visible { border-top-color: rgba(209, 179, 137, 0.45); }
.menu__word {
  /* the page names in the hero titles' dress: light, wide-tracked capitals, at a reading size */
  position: relative;
  display: inline-block;
  font-weight: 200;
  font-size: clamp(18px, 2.2vw, 30px);
  line-height: 1.2;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1), color 0.4s ease;
}
.menu__arrow {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  opacity: 0;
  transform: translate3d(-1.2em, 0, 0);
  transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.3s ease;
}
.menu__links a:hover .menu__word,
.menu__links a:focus-visible .menu__word { transform: translate3d(1.1em, 0, 0); }
.menu__links a:hover .menu__arrow,
.menu__links a:focus-visible .menu__arrow { opacity: 1; transform: translate3d(-1.1em, 0, 0); }

/* the foot: the values, and the places to follow */
.menu__foot {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--tan-dim);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}
.menu__social { display: flex; flex-wrap: wrap; gap: 0 1.8em; }
.menu__social a { color: var(--tan-dim); text-decoration: none; transition: color 0.3s ease; }
.menu__social a:hover { color: var(--gold); }

/* open: the frame expands from inside, the links step in one after another, the foot last */
.menu.is-open .menu__reel { opacity: 1; transform: none; transition-delay: 0.3s; }
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(1) { transition-delay: 0.4s; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: 0.48s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: 0.56s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: 0.64s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: 0.72s; }
.menu.is-open .menu__foot { opacity: 1; transition-delay: 0.8s; }

.menu-open { overflow: hidden; }

@media (max-width: 760px) {
  .menu__wrap { grid-template-columns: 1fr; align-content: center; }
  .menu__reel { display: none; }
  .menu__links a { transform: none; }
  .menu__arrow { display: none; }
  .menu__links a:hover .menu__word { transform: none; }
  .menu__foot { flex-direction: column; gap: 10px; }
  .menu__values { display: none; } /* on a phone the menu's foot is the social links alone (2026-11-12, at the user's word) */
}
@media (prefers-reduced-motion: reduce) {
  .menu, .menu__reel, .menu__links a, .menu__word, .menu__arrow, .menu__plane img, .menu__plane video { transition: none; }
}

/* ---------- Hero ---------- */

/* ---------- The journey: one pinned stage ---------- */

.journey {
  position: relative;
  height: 100svh;
  background: var(--black);
}

.stage {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background: var(--night);
}

.hero {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: var(--black);
}

/* everything that flies past the viewer scales about the sun */
.hero__zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start; /* the lockup stands at the top of the screen (see .hero__content) */
  transform-origin: 50% 50%;
  will-change: transform;
}

/* Backdrop: B3-P3-C23-102 Palm Sunday, shown at its own colour. */
.hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  transform: scale(1.07);
  transition: transform 3.2s var(--ease-out);
}

.is-ready .hero__image img { transform: scale(1); }
.is-diving .hero__image img { transition: none; transform: none; }

/* the layered WebGL dive draws over the picture once the flight begins */
.hero__dive {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: none;
  pointer-events: none;
}
.is-layered-dive .hero__content { will-change: transform, opacity, filter; }

.hero__rays {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* the Jonah hero (html.hero-jonah; HERO_MODE in js/journey.js, ?hero=sun shows the sun dive instead):
   the clip full-bleed under the wordmark, a black veil that takes it the last of the way to black,
   and none of the sun's picture, rays or dive */
.hero__jonah {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  background: #000 url(../assets/poster/jonah.jpg?v=2) center / cover no-repeat; /* the first frame, until the frames are in */
}
.hero__jonah canvas { display: block; width: 100%; height: 100%; }
.hero__open {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  background: #000 url(../assets/poster/open.jpg?v=3) center / cover no-repeat;
}
.hero__open video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  background: #000;
  opacity: 0;
  pointer-events: none;
}
html.hero-jonah .hero__jonah,
html.hero-jonah .hero__open,
html.hero-jonah .hero__veil { display: block; }
html.hero-jonah .hero__content { z-index: 4; }
html.hero-jonah .hero__image,
html.hero-jonah .hero__dive,
html.hero-jonah .hero__fore,
html.hero-jonah .flare { display: none !important; }
html.hero-jonah .hero__rays { display: none !important; }
html.hero-jonah .hero { z-index: 4; will-change: -webkit-mask-image, mask-image; } /* over the ring scene (z 3): a hole opens in it to show the film */
/* the clip opening (html.hero-clip; the default since 2026-11-11, HERO_DEFAULT in js/journey.js): the
   montage under the wordmark, as with Jonah, but nothing of the whale: no canvas, no veil. Once the
   journey is built the video itself is in the head card beneath, so this layer is the wordmark alone
   on a clear ground, over the ring scene. */
html.hero-clip .hero__open { display: block; }
html.hero-clip .hero__content { z-index: 4; }
html.hero-clip .hero__image,
html.hero-clip .hero__dive,
html.hero-clip .hero__fore,
html.hero-clip .hero__rays,
html.hero-clip .flare { display: none !important; }
html.hero-clip .hero { z-index: 4; background: none; }
/* the nudge: a small arrow at the foot of the stage while the film fills the screen (opacity set by the journey) */
.nudge {
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 4vh, 44px);
  z-index: 46;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tan);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  -webkit-tap-highlight-color: transparent;
}
.nudge svg { display: block; margin: 0 auto; animation: nudge-bob 2.2s ease-in-out infinite; opacity: 0.9; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7)) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5)); } /* legible over bright frames of the film */
.nudge:hover svg { opacity: 1; }
@keyframes nudge-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}
@media (prefers-reduced-motion: reduce) { .nudge svg { animation: none; } }

/* hero plus (off; ?hero=plus shows it, HERO_PLUS in js/journey.js turns it on): a near, out-of-focus frond
   that waits at the lower-left corner and sweeps across the empty sky beneath the sun during the
   dive; the rays drawn over the dive instead of under it; and a pointer parallax at rest, all
   driven from js/journey.js. */
.hero__fore {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: min(60vw, 820px);
  aspect-ratio: 720 / 780;
  pointer-events: none;
  display: none;
  transform-origin: 15% 85%;
  will-change: transform, opacity, filter;
}
/* the frond tips cut from the 2880 still (mirrored): a small JPEG for the colour and a grey PNG for the edge */
.hero__fore img {
  display: block;
  width: 100%;
  height: 100%;
  -webkit-mask-image: url(../assets/img/palm-sunday-fore-mask.png?v=2);
  mask-image: url(../assets/img/palm-sunday-fore-mask.png?v=2);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
html.hero-plus .hero__fore { display: block; }
html.hero-plus .hero__rays { z-index: 3; }
html.hero-plus .hero__image,
html.hero-plus .hero__dive,
html.hero-plus .hero__rays { will-change: transform; }

.hero__content {
  position: relative;
  z-index: 3;
  will-change: opacity;
  width: 100%;
  /* below the fixed nav, at the upper left (2026-11-24, the user: "lets move it to top left. Keep the biblical
     accuracy, theological depth... text centered on top of the childlike media title"; the same day it had been
     tried at the lower left, and from 2026-11-18 it was at the top in the middle). The lockup as a whole stands at
     the left margin; inside it the three-phrase line and the wordmark are centred on each other (.hero__block).
     TO PUT IT IN THE MIDDLE AGAIN: text-align: center here and in the phone block below. FOR THE LOWER LEFT:
     align-items: flex-end in .hero__zoom and padding: 0 var(--gutter) clamp(72px, 12vh, 136px) here. */
  padding: clamp(112px, 17vh, 176px) var(--gutter) 0;
  text-align: left;
}

/* Headline and tagline share one column, centred on each other. */
.hero__block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}

/* Wordmark: thin, wide-tracked geometric capitals. */
.hero__title {
  margin: 0;
  font-weight: 200;
  font-size: clamp(1.4rem, 4.9vw, 5.2rem);
  line-height: 1.12;
  letter-spacing: 0.3em;
  color: var(--tan);
  /* a wide, faint shadow keeps the thin strokes legible on the bright sky without darkening the photo */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), 0 6px 30px rgba(0, 0, 0, 0.35);
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__title .line {
  display: block;
  overflow: hidden;
  padding: 0.08em 0 0.1em;
  margin: -0.08em 0 -0.1em;
  /* swallow the trailing tracking after the last letter so the block's right edge is the "A" */
  margin-right: -0.3em;
}

/* MEDIA centred under CHILDLIKE. The line keeps its trailing tracking and gets the same
   amount as indent, so the glyphs themselves (not the tracked box) are what's centred. */
.hero__title .line:nth-child(2) {
  margin-right: 0;
  text-align: center;
}

.hero__title .line:nth-child(2) .line__inner { text-indent: 0.3em; }

.hero__title .line__inner {
  display: block;
  transform: translate3d(0, 110%, 0);
  transition: transform 1.5s var(--ease-out);
}

.is-ready .hero__title .line__inner { transition-delay: 0.25s; transform: none; }
.is-ready .hero__title .line:nth-child(2) .line__inner { transition-delay: 0.4s; }

.hero__tagline {
  display: flex;
  align-items: center;
  margin: 0 0 clamp(14px, 1.5vw, 24px);
  padding: 0 0.06em; /* optical alignment with the headline's side bearings */
  font-weight: 300;
  /* 1.35 times what it was (2026-11-18, the user's choice from the tweak panel; it was clamp(0.95rem, 1.15vw, 1.2rem)).
     The 2.75vw cap only bites below about 760 px, where the larger line would otherwise be wider than the screen. */
  font-size: min(clamp(1.2825rem, 1.5525vw, 1.62rem), 2.75vw);
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--tan-soft);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* thin vertical rules between the three phrases */
.hero__tagline span {
  display: flex;
  align-items: center;
}

.hero__tagline span + span::before {
  content: "";
  display: block;
  width: 1px;
  height: 1.05em;
  margin: 0 1.35em;
  background: currentColor;
  opacity: 0.55;
}

.hero__tagline span {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 1.1s ease, transform 1.3s var(--ease-out);
}

.is-ready .hero__tagline span { opacity: 1; transform: none; }
.is-ready .hero__tagline span:nth-child(1) { transition-delay: 0.9s; }
.is-ready .hero__tagline span:nth-child(2) { transition-delay: 1.02s; }
.is-ready .hero__tagline span:nth-child(3) { transition-delay: 1.14s; }

/* On portrait screens the 3:4 crop is wider than the viewport; keep its left edge
   in frame so the sun (8 % in from the left of that crop) stays on screen. */
@media (orientation: portrait) {
  .hero__image img { object-position: 0% 40%; }
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  .nav__links { font-size: 14px; gap: 18px; }
  /* Two stacked lines (CHILDLIKE / MEDIA) on phones, as in the brand lockup. */
  .hero__title { font-size: clamp(1.35rem, 7.3vw, 1.85rem); white-space: normal; line-height: 1.2; }
  /* On a phone the lockup sits in the middle of the screen, centred (2026-11-12, at the user's word; it was at the
     upper left with the three phrases stacked). The three phrases keep to one line with the thin rules between
     them: the type is sized from the screen's width so the line always fits inside the margins. */
  .hero__zoom { align-items: flex-start; }
  /* raised from the exact middle (2026-11-12, the user: move it up): the space beneath is twice what the lockup
     rises by, so 44svh puts its centre 28% of the way down the screen (it was 24svh, 38%, before the user asked for higher
     still). Make the number smaller to lower it. */
  /* from 2026-11-24 the lockup is at the upper left on a phone too, under the mark (until then it was centred,
     28% of the way down: .hero__zoom align-items center, padding 0 var(--gutter) 44svh, text-align center, and
     the block display: flex). The block is as wide as the three-phrase line, the wordmark centred under it. */
  /* from 2026-11-25 it is centred at the top on a phone (the user: it looked slightly left of centre; at the left
     margin the block, nearly as wide as the screen, was neither at the left nor in the middle). The desktop's is
     still at the upper left. TO PUT IT BACK AT THE LEFT, change text-align to left. */
  .hero__content { padding: clamp(96px, 14svh, 132px) var(--gutter) 0; text-align: center; }
  .hero__block { display: inline-flex; align-items: center; position: relative; isolation: isolate; }
  /* the middle of the footage is busier and often brighter than its upper corner was, so a soft shade lies behind
     the lockup (it fades with the lockup as the page is scrolled) and the type is a step heavier */
  .hero__block::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -110px calc(-1 * var(--gutter));
    background: radial-gradient(closest-side, rgba(4, 10, 7, 0.46), rgba(4, 10, 7, 0.3) 45%, rgba(4, 10, 7, 0));
    pointer-events: none;
  }
  .hero__title { font-weight: 300; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 22px rgba(0, 0, 0, 0.5); }
  .hero__tagline { justify-content: center; white-space: nowrap; padding: 0; margin-bottom: 16px; font-weight: 400; font-size: clamp(9px, 3.1vw, 13px); letter-spacing: 0.05em; color: var(--tan); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 3px 14px rgba(0, 0, 0, 0.5); }
  .hero__tagline span + span::before { margin: 0 0.8em; opacity: 0.7; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .nav__mark, .nav__menu,
  .hero__image img,
  .hero__title .line__inner,
  .hero__tagline span { transition: none; }
  .hero__image img { transform: none; }
  .hero__title .line__inner { transform: none; }
  .hero__tagline span { opacity: 1; transform: none; }
  .nav__mark, .nav__menu { opacity: 1; }
  .chrome-hidden .nav__mark, .chrome-hidden .nav__menu { transform: none; opacity: 0; }
}

/* ---------- Flare: the sun's light filling the screen ---------- */

.flare {
  --sx: 50%;
  --sy: 50%;
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--sx) var(--sy), #fff7e6 0%, #fff7e6 22%, rgba(255, 247, 230, 0) 60%);
  transform-origin: var(--sx) var(--sy);
  transform: scale(0.15);
  will-change: transform, opacity;
}

/* ---------- Ring of the story ---------- */

.ring-scene {
  --card-w: clamp(150px, 19vw, 360px);
  position: absolute;
  inset: 0;
  z-index: 3;
  visibility: hidden;
  /* a faint forest wash, like the reference's dark stage, so the night is not flat */
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(26, 42, 34, 0.55), rgba(7, 17, 11, 0) 70%),
    var(--night);
}

.ring {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--card-w);
  aspect-ratio: 16 / 9;
  margin: calc(var(--card-w) * -0.28125) 0 0 calc(var(--card-w) * -0.5); /* centred on the ring's centre */
  border-radius: 6px;
  overflow: hidden;
  background: #0a0a0a;
  opacity: 0;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* keeps the radius clipping during transforms in WebKit */
}

/* The two cards that fill the screen (Eden at the start, the crown of thorns at the end)
   are laid out at full-bleed size and scaled DOWN onto the ring, so they stay sharp. */
.card--full {
  width: var(--full-w);
  height: var(--full-h);
  aspect-ratio: auto;
  margin: calc(var(--full-h) * -0.5) 0 0 calc(var(--full-w) * -0.5);
  border-radius: 0;
}

.card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ring__title {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 10; /* between the far cards (behind) and the near cards (in front) */
  transform: translate(-50%, -50%);
  margin: 0;
  /* its size and measure are the desktop's own (2026-11-21, the user: keep the dim text that fills in, but go
     back to the previous font size and width; for a day it was set like the phone's, 2.05vw on a 15.5em measure) */
  width: min(27em, 78vw);
  text-align: center;
  text-wrap: balance;
  font-weight: 300;
  font-size: clamp(1.02rem, 1.55vw, 1.55rem);
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--tan);
  opacity: 0;
  pointer-events: none;
}

/* WORDS THAT LIGHT AS YOU READ, as on a phone: the sentence lies dim and each word is as bright as --read
   (written by js/journey.js from the chain's turn) is beyond its own number, --i: dim until its turn, full two
   and a half words later. It follows the scroll both ways. */
.ring__title .w {
  display: inline-block;
  opacity: clamp(0.17, calc(0.17 + (var(--read, 0) - var(--i, 0)) * 0.332), 1);
  transition: opacity 0.22s linear;
}

.ring__title em {
  font-style: normal;
}

/* the two emphasised phrases are the same cream as the rest; their only mark is a light that passes along each
   phrase, once, the first and then the second, when the last word has been lit (.is-read; the same light and
   the same keyframes as the phone's, wonder-light) */
.ring__title .w--em {
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image:
    linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(240, 216, 160, 0.6) 30%, #fff4dc 50%, rgba(240, 216, 160, 0.6) 70%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(var(--tan), var(--tan));
  background-size: 200px 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: -9999px 0, 0 0;
}
.ring__title.is-read .w--em { animation: wonder-light 2s ease-in-out calc(0.3s + var(--p, 0) * 1.6s) 1 both; }
@media (prefers-reduced-motion: reduce) {
  .ring__title .w { opacity: 1; transition: none; }
  .ring__title.is-read .w--em { animation: none; }
}

@media (max-width: 640px) {
  .ring-scene { --card-w: clamp(132px, 38vw, 180px); }
  .ring__title { width: 82vw; font-size: 1rem; line-height: 1.55; }
}

/* ---------- the verse under the crown of thorns ---------- */

.verse {
  position: absolute;
  left: 50%;
  top: 80%; /* set by the script, just under the settled card */
  z-index: 50;
  transform: translateX(-50%);
  width: min(var(--end-w, 74vw), 86vw); /* the card's width, centred under it */
  text-align: center;
  color: var(--tan);
  opacity: 0;
  pointer-events: none;
}

.verse p {
  margin: 0;
  will-change: opacity, transform, filter;
}

.verse__ref {
  font-weight: 300;
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--tan-dim);
  margin-top: 1.1em !important;
}

.verse__text {
  font-weight: 300;
  font-size: clamp(1.1rem, 1.55vw, 1.6rem);
  line-height: 1.55;
  letter-spacing: 0.015em;
}

.verse__text .w {
  display: inline-block;
  opacity: 0;
  will-change: opacity, transform, filter;
}

@media (max-width: 640px) {
  .verse__text { font-size: 1rem; line-height: 1.5; }
}

/* ---------- atmosphere behind the stage ---------- */

.atmosphere {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  mix-blend-mode: screen; /* only adds light to the stage beneath */
}

/* ---------- Ghost cursor (ported from React Bits) ---------- */

.ghost-cursor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ghost-cursor__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}


/* ====================================================================
   What we do — four cards on the night stage, after the featured-work grid on lusion.co.
   Each card is a large rounded picture, then a small line and a big title. Coming into view
   the picture settles flat out of a slight perspective tilt (scroll-linked, so it answers the
   scroll), the title's letters roll into place like a counter and the small line decodes from
   scrambled capitals; pointed at, the title slides aside for an arrow and the picture leans a
   little toward the pointer. Nothing else moves. */

:root {
  --mono: 'IBM Plex Mono', 'Courier New', Courier, monospace;
}

.what {
  position: relative;
  z-index: 2;
  /* (the lift over the foot of the journey's stage now belongs to whichever section follows the opening: .follows) */
  color: var(--tan);
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 300;
}
.what::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(26, 42, 34, 0.3), rgba(7, 17, 11, 0) 70%); /* over the page's ground (.ground) */
}

.what__inner {
  position: relative;
  z-index: 1; /* over the haze */
  /* the Grand Narrative's column above it (it was the crown of thorns' column, var(--end-w), while What we do
     followed the opening) */
  width: min(1320px, calc(100% - 2 * var(--gutter)));
  /* THE CARDS ARE AS WIDE AS THE ROW OF BOOKS ABOVE THEM (2026-11-25, the user: make the cards smaller, with the
     same margin as the mock-ups above): the grid's left edge is the first book's, its right edge the third's
     (--gn-row, set with the books in ON THE TABLE below). Phones keep the full column (the media rule after the grid).
     TO GO BACK TO THE WIDE CARDS, delete the next line. */
  width: min(var(--gn-row, 1320px), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding-top: clamp(72px, 10vh, 120px);
  padding: 0 0 clamp(96px, 14vh, 180px);
}

/* the grid */
.what__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5vh, 64px) clamp(20px, 2.4vw, 32px);
  /* one vanishing point for the whole grid, so a shared lean reads differently on the left and right */
  perspective: 1400px;
  perspective-origin: 50% 50%;
  --v: 0; /* the scroll's speed, in degrees of lean, written by the script */
}
.what__item { min-width: 0; opacity: 0; transition: opacity 0.6s ease; }
.what__item:not(.is-in) { pointer-events: none; }
.what__item.is-in { opacity: 1; }
.what__card {
  display: block;
  color: inherit;
  text-decoration: none;
  outline: none;
}

/* the picture: as the card comes in it expands outward from inside its box, quickly (the box
   from 84% and the picture inside it from 80%, both to full in 0.75 s); it also leans with the
   speed of the scroll (--v, degrees, shared by the grid) and lies flat again as the scroll
   settles. Pointed at, it blurs for a moment and drifts toward the pointer (--mx/--my). */
.what__media {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  --mx: 0;
  --my: 0;
}
.what__plane {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #0a1a10;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transform-origin: 50% 50%;
  transform: rotateX(calc(var(--v) * 1deg)) scale(0.84);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.what__item.is-in .what__plane { transform: rotateX(calc(var(--v) * 1deg)) scale(1); }
.what__plane img,
.what__plane video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(0.8);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.05s, opacity 1.4s ease, filter 0.5s ease-out;
}
.what__item.is-in .what__plane img,
.what__item.is-in .what__plane video { transform: scale(1); }
/* a portrait clip in the landscape card: the crop sits a little below centre, on the flame */
.what__plane .what__clip--tall { object-position: 50% 60%; }
/* pointed at: a short blur as the picture starts to move, then it follows the pointer a little */
.what__item.is-in .what__card:hover .what__plane img,
.what__item.is-in .what__card:hover .what__plane video {
  transform: translate3d(calc(var(--mx) * 3.5%), calc(var(--my) * 3.5%), 0) scale(1.1);
  transition: transform 1.1s cubic-bezier(0.2, 1, 0.3, 1), opacity 1.4s ease, filter 0.5s ease-out;
}
.what__plane.is-blur img,
.what__plane.is-blur video { filter: blur(7px); transition: filter 0.08s ease-in, transform 1.1s cubic-bezier(0.2, 1, 0.3, 1), opacity 1.4s ease; }
/* the book photographs take turns */
.what__plane img { opacity: 0; }
.what__plane img.is-on { opacity: 1; }
.what__card:focus-visible .what__plane { box-shadow: 0 0 0 2px var(--gold), 0 30px 70px rgba(0, 0, 0, 0.4); }

/* beneath: the title with its verb */
.what__foot { display: block; padding: 16px 4px 0; }
.what__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
/* the title: a row of letter columns, each five copies of its letter, held above the line
   until the card is in and then let down through the copies on to the first, each on its own
   small delay */
.what__name {
  position: relative;
  display: inline-flex;
  height: 1.12em;
  font-weight: 200;
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.12;
  letter-spacing: 0.01em;
  transform: translate3d(0, 0, 0);
  transition: transform 0.6s cubic-bezier(0.3, 0.9, 0.2, 1);
}
.what__word { display: inline-flex; overflow: hidden; height: 1.12em; } /* the arrow sits outside this clip */
.what__col {
  display: flex;
  flex-direction: column;
  transform: translate3d(0, -100%, 0); /* above the line, unseen; the roll brings the column down through its copies to the first */
  transition: transform var(--t, 0.8s) cubic-bezier(0.2, 1, 0.3, 1) var(--d, 0s);
  will-change: transform;
}
.what__col > i { display: block; height: 1.12em; font-style: normal; }
.what__item.is-in .what__col { transform: translate3d(0, 0, 0); }
.what__arrow {
  position: absolute;
  left: 0;
  top: 0;
  height: 1.12em;
  line-height: 1.12;
  color: var(--gold);
  opacity: 0;
  transform: translate3d(-2.4em, 0, 0);
  transition: opacity 0.4s var(--ease-out), transform 0.55s cubic-bezier(0.3, 0.9, 0.2, 1);
}
.what__card:hover .what__name { transform: translate3d(1.5em, 0, 0); }
.what__card:hover .what__arrow { opacity: 1; transform: translate3d(-1.5em, 0, 0); }
.what__verb {
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
  transition: opacity 0.5s var(--ease-out);
}
.what__card:hover .what__verb { opacity: 1; }

@media (max-width: 760px) { .what__inner { width: min(1320px, calc(100% - 2 * var(--gutter))); } }
@media (max-width: 640px) {
  .what__grid { grid-template-columns: 1fr; gap: 44px; }
  .what__plane { border-radius: 10px; }
  .what__foot { padding-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .what__plane, .what__plane img, .what__plane video, .what__col, .what__name, .what__arrow { transition: none; }
  .what__col { transform: none; }
  .what__plane, .what__plane img, .what__plane video { transform: none; }
}

/* ====================================================================
   The Grand Narrative — on the same night ground as What we do, with the same small capitals,
   light titles and rounded frames. The story plays once in pictures as the section arrives;
   then the offer; then the first volume to open on the left and the film on the right. */

.gn {
  position: relative;
  z-index: 2;
  color: var(--tan);
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 300;
}

/* the section's contents in one wrapper (the home page; it is what stays still behind the opening's last picture) */
.gn__inner {
  position: relative;
  background: radial-gradient(ellipse 70% 40% at 50% 18%, rgba(26, 42, 34, 0.3), rgba(7, 17, 11, 0) 70%); /* over the page's ground (.ground) */
}
/* the reader takes the whole screen: over the opening's sections too, which lie above this one */
html.reading .gn { z-index: 50; }

.gn__intro {
  max-width: 1320px;
  margin: 0 auto;
  /* little beneath it: the offer's photograph follows closely (2026-11-24, the user: too much space between the
     subtitle and the image; the foot here was clamp(28px, 5vh, 56px) and the offer's head clamp(72px, 10vh, 120px),
     186 px in all on a desktop; it is about 83 px now) */
  padding: clamp(72px, 10vh, 120px) var(--gutter) 12px;
}

/* the series title as it is set on the cover, three words stacked at the left, but in the site's own
   voice: the wordmark's light, wide-tracked capitals (Jost is the brand's one face), so the two title
   moments of the page rhyme; the line beneath it as the hero's tagline is set */
.gn__title {
  margin: 0;
  font-weight: 200;
  font-size: clamp(1.9rem, 5.8vw, 5.8rem);
  line-height: 1.12;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--tan);
}
.gn__title span { display: block; margin-right: -0.3em; } /* swallow the trailing tracking */
.gn__sub {
  max-width: 44em;
  margin: clamp(18px, 2.6vh, 30px) 0 0;
  font-weight: 300;
  font-size: clamp(0.95rem, 1.15vw, 1.2rem);
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tan-soft);
}

.gn__lede {
  max-width: 34em;
  margin: 26px auto 0;
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.55;
  color: var(--tan-soft);
}

/* ---------- the show: the story in pictures, playing itself, in the cards' language ---------- */
/* 1. a wall of rounded pictures bleeding past the screen, under a slow pass of gold light;
   2. a wave of light running through the wall in story order;
   3. the wall rearranging itself: the cross tile grows to the middle and becomes the clip, the
      twelve scenes that pointed to him gather round it, and each is named once as it settles. */
.gn__show {
  position: relative;
  height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  /* the lines sit at the top, under the fixed mark and menu circle; the board fills the rest */
  padding: calc(clamp(20px, 2.6vw, 40px) + 60px) var(--gutter) clamp(28px, 5vh, 56px);
  box-sizing: border-box;
  overflow: hidden;
}
.gn__show.is-gone { pointer-events: none; }
.gn__show[hidden] { display: none; } /* js/show.js puts it away for good on a phone, so turning the phone on its side does not bring back an empty stage */

/* the wall */
.gn__wall {
  position: absolute;
  inset: -7svh -7vw;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-auto-rows: calc(114svh / 7);
  grid-auto-flow: dense;
  gap: 4px;
}
.gn__wall figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #0a1a10;
  opacity: 0;
  will-change: opacity, transform;
}
.gn__wall img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); filter: saturate(0.85) contrast(1.04) brightness(0.9); }
.gn__wall figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 17, 11, 0.35), rgba(7, 17, 11, 0.04) 60%); }
.gn__wall .w2 { grid-column: span 2; }
.gn__wall .h2 { grid-row: span 2; }
.gn__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 62% 58% at 50% 44%, transparent 30%, rgba(7, 17, 11, 0.5) 68%, rgba(7, 17, 11, 0.96) 100%);
}

/* the board: the region between the top of the show and the lines, measured by the script */
.gn__board { position: relative; z-index: 3; min-height: 0; pointer-events: none; }

/* the rearrangement: copies of the echo tiles, placed over their wall positions and moved to a
   ring about the frame; and the frame itself, which grows out of the cross tile's place */
.gn__ring { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.gn__echo {
  position: absolute;
  overflow: hidden;
  border-radius: 8px;
  background: #0a1a10;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
  will-change: transform, opacity;
}
.gn__echo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) contrast(1.04) brightness(0.9); }
.gn__frame {
  position: absolute;
  z-index: 5;
  overflow: hidden;
  border-radius: 14px;
  background: var(--night);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  opacity: 0;
  will-change: transform, opacity;
}
.gn__frame-still,
.gn__clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gn__frame-still { filter: saturate(0.85) contrast(1.04) brightness(0.9); }
.gn__clip { opacity: 0; }
.gn__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(7, 17, 11, 0.5), transparent 38%); }
/* the three lines, at the top: a caption for the pictures, not a headline over them, in the
   wordmark's spaced capitals and one colour */
.gn__lines {
  position: relative;
  z-index: 3;
  height: 1.4em;
  margin: 0 0 clamp(16px, 2.6vh, 30px);
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(242, 232, 210, 0.88);
  text-align: right;
}
.gn__line { position: absolute; left: 0; right: -0.34em; top: 0; margin: 0; opacity: 0; }
.gn__line em { font-style: normal; color: inherit; }

@media (max-width: 900px) {
}

/* ---------- beneath the offer: the book to open, the film to watch ---------- */



/* the stage: the reader. It waits unseen; See inside shows it and grows it out of the link.
   Reading, it is the screen, laid out as a shop's book page: the open book at the left in a
   slight three-quarter view, and at the right a panel that names the volume and the chapter,
   describes the volume, lists its particulars, turns the pages and carries the pre-order */

.gn__stage {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(280px, 28vw, 420px);
  column-gap: clamp(32px, 5vw, 84px);
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
}

/* reading: the stage is the screen, the chrome of the reader appears, the page's own hides */
.gn__stage.is-reading {
  visibility: visible;
  opacity: 1;
  background: var(--night);
  /* the top band holds the series name and the close disc, where the mark and menu circle sit */
  padding: calc(clamp(20px, 2.6vw, 40px) + 72px) var(--gutter) clamp(24px, 4vh, 48px);
}
.reading { overflow: hidden; }
.reading .nav__mark,
.reading .nav__menu { opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }

/* the chrome waits until the stage has grown, then comes in: the head and the close first, the
   panel's lines one after another, the hint last */
.gn__head,
.gn__hint,
.gn__close,
.gn__panel > * {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.gn__panel > * { transform: translate3d(0, 10px, 0); }
.is-reading .gn__head,
.is-reading .gn__close { opacity: 1; pointer-events: auto; transition-delay: 0.5s; }
.is-reading .gn__hint { opacity: 1; transition-delay: 1.5s; }
.is-reading .gn__panel > * { opacity: 1; transform: none; pointer-events: auto; }
.is-reading .gn__panel > :nth-child(1) { transition-delay: 0.7s; }
.is-reading .gn__panel > :nth-child(2) { transition-delay: 0.8s; }
.is-reading .gn__panel > :nth-child(3) { transition-delay: 0.9s; }
.is-reading .gn__panel > :nth-child(4) { transition-delay: 1s; }
.is-reading .gn__panel > :nth-child(5) { transition-delay: 1.1s; }
.is-settled .gn__panel > * { transition: none; }

/* the head: the series in the hero's capitals, a line beneath, where the mark sits on the page */
.gn__head {
  position: absolute;
  top: clamp(20px, 2.6vw, 40px);
  left: var(--gutter);
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 48px;
  margin: 0;
}
.gn__head-name {
  font-weight: 200;
  font-size: clamp(0.82rem, 1.05vw, 0.98rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.gn__head-line { font-weight: 300; font-size: 0.82rem; color: var(--tan-dim); }

/* the close: a cream disc with a cross, where the menu circle sits on the page */
.gn__close {
  position: absolute;
  top: clamp(20px, 2.6vw, 40px);
  right: var(--gutter);
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--tan);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.5s var(--ease-out), transform 0.45s var(--ease-out);
}
.gn__close:hover { transform: scale(1.08); }
.gn__close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.5px;
  margin: -0.75px 0 0 -8px;
  background: var(--deep);
  transform: rotate(45deg);
}
.gn__close span:last-child { transform: rotate(-45deg); }

/* the book's column: the book in the middle, the hint beneath. The book stands in a slight
   three-quarter view (.gn__hold turns it so the far page recedes a little), tipped 9° away at
   the top by the script, so it reads as an object on a table and not a flat picture */
.gn__book-wrap {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  row-gap: clamp(16px, 2.4vh, 28px);
  min-height: 0;
  perspective: 2200px;
  perspective-origin: 50% 50%;
}
.gn__hold {
  width: 100%;
  transform-style: preserve-3d;
  transform: rotateY(14deg);
}
.is-reading .gn__hold { width: min(100%, calc(68svh * 13 / 9), 1180px); }
.gn__hint {
  margin: 0;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--tan-dim);
}

/* the book: two pages wide (each 6.5 × 9); the leaves pivot on the gutter */
.gn__book {
  position: relative;
  width: 100%;
  aspect-ratio: 13 / 9;
  transform-style: preserve-3d;
  will-change: transform;
  cursor: pointer;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.is-reading .gn__book { touch-action: none; }

/* the panel: the volume's number, its name in the hero's capitals, the chapter in the book's
   own italic, the description, the particulars as hairline rows, the page controls, the ask */
.gn__panel {
  display: grid;
  align-content: center;
  min-height: 0;
  max-height: 100%;
  overflow: hidden auto; /* no sideways room, so focusing the ask at the right cannot drag the panel over */
  overscroll-behavior: contain;
  scrollbar-width: none;
  color: var(--tan);
}
.gn__panel::-webkit-scrollbar { display: none; }
.gn__vol {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-weight: 300;
  font-size: 0.86rem;
  color: var(--tan-soft);
}
.gn__vol::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.gn__name {
  margin: 0 0 10px;
  font-weight: 200;
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.gn__chapter {
  margin: 0;
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.1rem, 1.35vw, 1.3rem);
  color: var(--tan-soft);
}
.gn__about { margin: 0 0 clamp(16px, 2.4vh, 24px); }
.gn__desc {
  margin: 0 0 clamp(18px, 3vh, 28px);
  font-weight: 300;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--tan-soft);
}
.gn__specs {
  margin: 0 0 clamp(20px, 3.2vh, 32px);
  border-bottom: 1px solid rgba(242, 232, 210, 0.16);
}
.gn__spec {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: baseline;
  margin: 0;
  padding: 11px 0;
  border-top: 1px solid rgba(242, 232, 210, 0.16);
  font-size: 0.88rem;
  font-weight: 300;
}
.gn__spec dt { color: var(--tan-dim); }
.gn__spec dd { margin: 0; text-align: right; }

/* the page controls: an arrow either side of the count */
.gn__nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 clamp(18px, 3vh, 28px);
}
.gn__count {
  flex: 1;
  text-align: center;
  font-weight: 300;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}
.gn__arrow {
  flex: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(242, 232, 210, 0.35);
  border-radius: 50%;
  background: transparent;
  color: var(--tan);
  font: inherit;
  font-size: 19px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.4s ease, border-color 0.4s ease, background-color 0.4s ease;
}
.gn__arrow:hover { border-color: var(--tan); background: rgba(242, 232, 210, 0.08); }
.gn__arrow:disabled { opacity: 0.25; pointer-events: none; }
.gn__arrow span { display: block; transition: transform 0.4s var(--ease-out); }
.gn__arrow--next:hover span { transform: translateX(3px); }
.gn__arrow--prev:hover span { transform: translateX(-3px); }

/* the ask: the pre-order at the left (the offer's own button), the next volume at the right */
.gn__act {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}
.gn__jump {
  display: grid;
  justify-items: end;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tan);
  font: inherit;
  text-align: right;
  cursor: pointer;
}
.gn__jump-k { font-weight: 300; font-size: 0.78rem; color: var(--tan-dim); }
.gn__jump-n {
  font-weight: 400;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-color: rgba(242, 232, 210, 0.35);
  transition: text-decoration-color 0.4s ease;
}
.gn__jump:hover .gn__jump-n { text-decoration-color: var(--gold); }

.gn__face,
.gn__base {
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: #f5f2ea;
  background-size: 200% 100%;
  background-repeat: no-repeat;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* the right-hand stack beneath the leaves: the last spread's right page, with page edges */
.gn__base {
  left: 50%;
  width: 50%;
  background-position: right center;
}

/* the stack that builds on the left as pages land */
.gn__stack {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: #f5f2ea;
  opacity: 0;
}

/* The book as an object (2026-11-10). Under the pages lies the open case, a little larger than
   they are, so its cloth shows all round them; under that a soft shadow, and a pool of light on
   the surface so the shadow can be seen against the night. The pages themselves are cut at head
   and foot to the line an open page's curve would show (js/book.js: outline()). */
.gn__pool,
.gn__shadow,
.gn__case,
.gn__fan,
.gn__gut,
.gn__spine,
.gn__foot { position: absolute; pointer-events: none; }
.gn__gut { opacity: 0; }
.gn__pool {
  inset: -38% -24% -34% -24%;
  background: radial-gradient(ellipse 50% 50% at 46% 46%, rgba(86, 104, 92, 0.34), rgba(48, 64, 54, 0.16) 45%, rgba(7, 17, 11, 0) 72%);
  transform: translateZ(-10px);
}
.gn__shadow {
  inset: 1% -4.5% -7% -1%; /* the light is from the upper left: the shadow falls down and to the right */
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.62);
  filter: blur(26px);
  transform: translateZ(-6px);
}
.gn__case {
  inset: -2.1% -1.5%;
  border-radius: 4px;
  background-color: var(--cloth, var(--forest));
  background-image:
    /* the hollow of the spine */
    linear-gradient(to right, rgba(0, 0, 0, 0) 47.6%, rgba(0, 0, 0, 0.3) 49.2%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 50.8%, rgba(0, 0, 0, 0) 52.4%),
    linear-gradient(105deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, 0.22));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 -2px 3px rgba(0, 0, 0, 0.35);
  transform: translateZ(0);
  transition: background-color 0.7s ease;
}
.gn__case::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url("../assets/img/gn/cloth.png") 0 0 / 256px 256px repeat;
}
/* a block's page edges fanning out at the fore-edge */
.gn__fan {
  top: 0.24%;
  bottom: 0.96%;
  opacity: 1;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3)),
    repeating-linear-gradient(to right, #f3eee2 0 1px, #cfc6b2 1px 2px, #e8e1d2 2px 3px);
}
.gn__fan--l {
  background:
    linear-gradient(to left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.34)),
    repeating-linear-gradient(to right, #f3eee2 0 1px, #cfc6b2 1px 2px, #e8e1d2 2px 3px);
}
/* where the thicker block's pages go down into the gutter beside the thinner one */
.gn__gut {
  left: 50%;
  top: 1.2%;
  bottom: 0;
  width: var(--thick, 16px);
  transform-origin: left center;
  background: linear-gradient(to right, #57534a, #b9b2a2 60%, #e6e0d2);
}

.gn__leaf {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  transform-origin: left center;
  transform-style: preserve-3d;
  will-change: transform;
}

/* a leaf is a chain of narrow segments, each hinged on the last, so the page can bend as it
   turns; every segment carries its own slice of the two page faces */
.gn__seg {
  position: absolute;
  top: 0;
  left: var(--step, 100%); /* one slice along from its parent; set in px by the script so nothing compounds */
  width: var(--segw, 100%); /* a slice plus a hair of overlap, which hides the seams */
  height: 100%;
  transform-origin: left center;
  transform-style: preserve-3d;
  will-change: transform;
}
.gn__seg--first { left: 0; }
.gn__leaf--cover .gn__seg { width: 100%; }
.gn__seg .gn__face { box-shadow: none; }
/* on sliced pages the gutter shading is carried slice by slice (see ::after), not by ::before */
.gn__seg .gn__face::before { display: none; }
/* a paper leaf's whole pages, shown while it lies flat; the slices take over only while it
   bends, so a resting spread has no seams */
.gn__flat { width: var(--page, 100%); }
.gn__seg .gn__flat::before { display: block; }
.gn__leaf--paper:not(.is-bent) .gn__seg > .gn__face:not(.gn__flat) { visibility: hidden; }
.gn__leaf--paper.is-bent .gn__flat { visibility: hidden; }

.gn__face--front { background-position: right center; }
.gn__face--back { background-position: left center; transform: rotateY(180deg); }

/* the foot of each block of pages: its page edges, seen because the book is tipped a little. A band
   in the page's own plane just beneath it, placed and sized by the script: it shows below the
   page's foot and through the curve cut into it, so it is deepest at the crest of the page */
.gn__edge {
  position: absolute;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.34)),
    repeating-linear-gradient(to bottom, #f3eee2 0 1px, #d2c9b5 1px 2px, #e8e1d2 2px 3px);
}
.gn__edge--r { box-shadow: inset 14px 0 12px -8px rgba(0, 0, 0, 0.45); } /* darker toward the gutter */
.gn__edge--l { box-shadow: inset -14px 0 12px -8px rgba(0, 0, 0, 0.5); }

/* the shadow a turning leaf throws on the pages beneath it, either side of the gutter */
.gn__base::after,
.gn__stack::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--cast, 0);
  transition: none;
}
.gn__base::after { background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.12) 30%, rgba(0, 0, 0, 0) 55%); }
.gn__stack::after { background: linear-gradient(to left, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1) 30%, rgba(0, 0, 0, 0) 55%); }

/* gutter shading on every page, and a travelling shade while a leaf turns (--turn 0..1) */
.gn__face::before,
.gn__base::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* the right page (its spine at the left). The light is from the left, so the slope by which it
     climbs out of the gutter faces the light: a dark crease, then a soft brightness on the rise,
     and a little falling away toward the fore-edge */
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0) 86%, rgba(0, 0, 0, 0.07)),
    linear-gradient(to right, rgba(255, 255, 255, 0) 2.5%, rgba(255, 255, 255, 0.13) 7%, rgba(255, 255, 255, 0) 17%),
    linear-gradient(to right, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.12) 2.2%, rgba(0, 0, 0, 0) 6%);
}
/* the left page (its spine at the right): its slope into the gutter is turned from the light, and shades broadly */
.gn__face--back::before {
  background:
    linear-gradient(to left, rgba(0, 0, 0, 0) 86%, rgba(0, 0, 0, 0.05)),
    linear-gradient(to left, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.22) 3%, rgba(0, 0, 0, 0.09) 9%, rgba(0, 0, 0, 0) 24%);
}
/* the last right page is not a face, so its paper tone is laid here */
.gn__base::before {
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0) 86%, rgba(0, 0, 0, 0.07)),
    linear-gradient(to right, rgba(255, 255, 255, 0) 2.5%, rgba(255, 255, 255, 0.13) 7%, rgba(255, 255, 255, 0) 17%),
    linear-gradient(to right, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.12) 2.2%, rgba(0, 0, 0, 0) 6%),
    linear-gradient(rgba(46, 34, 12, 0.05), rgba(46, 34, 12, 0.05));
}
/* lighting: each slice darkens as it turns from the light, graded from its own angle (--s0)
   to the next slice's (--s1) so the curl shades smoothly, with a soft sheen (--h0/--h1) where
   a slice faces the light; under that, the slice's share of the gutter shade (--g0/--g1) */
.gn__face::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(255, 255, 255, var(--h0, 0)), rgba(255, 255, 255, var(--h1, 0))),
    linear-gradient(to right, rgba(0, 0, 0, var(--s0, 0)), rgba(0, 0, 0, var(--s1, 0))),
    linear-gradient(to right, rgba(0, 0, 0, var(--g0, 0)), rgba(0, 0, 0, var(--g1, 0))),
    /* paper, not a screen: a breath of warm tone over the whole page, so white reads as a sheet and the rise by the gutter can be brighter than it */
    linear-gradient(rgba(46, 34, 12, 0.05), rgba(46, 34, 12, 0.05));
}
/* The closed book (2026-11-10: it read as a rectangle). The front board is larger than the pages,
   as a case binding's is, with its corners eased; beside the spine runs the joint, the groove
   the board hinges on. The spine itself stands at the gutter and the foot shows the two boards
   with the block of pages set back between them: both are real faces in the 3D scene, seen
   because the book is turned and tipped a little. */
.gn__cover,
.gn__cover-in {
  top: -2.1%;
  height: 104.2%;
  width: 103%;
}
.gn__cover { overflow: hidden; border-radius: 0 4px 4px 0; background-size: 100% 100%; background-position: 0 0; /* a face's picture is two pages wide; the cover's cloth is its own width */ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset -1px -1px 0 rgba(0, 0, 0, 0.3); }
.gn__cover-in {
  position: absolute;
  left: 0;
  border-radius: 4px 0 0 4px; /* turned over, its left is the outer edge */
  background: var(--cloth, var(--forest)) url("../assets/img/gn/cloth.png") 0 0 / 256px 256px repeat;
  transform: rotateY(180deg) translateZ(-0.6px); /* just behind the first left page */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.gn__spine {
  left: 50%;
  top: -2.1%;
  bottom: -2.1%;
  transform-origin: left center;
  border-radius: 2px;
  /* across it from the table (left) to the front board (right): rounded, so it catches the light near the top and falls into shadow below */
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.16) 45%, rgba(255, 255, 255, 0.12) 82%, rgba(0, 0, 0, 0.08)),
    var(--cloth, var(--forest)) url("../assets/img/gn/cloth.png") 0 0 / 256px 256px repeat;
}
.gn__foot {
  left: 50%;
  width: 51.5%;
  top: 102.1%;
  transform-origin: top center;
  /* from the front board (top) to the table: board, the pages set back in its shadow, board */
  background:
    linear-gradient(to bottom, var(--cloth, var(--forest)) 0 3px, rgba(0, 0, 0, 0) 3px calc(100% - 3px), var(--cloth, var(--forest)) calc(100% - 3px)),
    linear-gradient(to right, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 6%, rgba(0, 0, 0, 0) 93.6%, #0b0f0c 94.4%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.42) 3px, rgba(0, 0, 0, 0.04) 45%, rgba(0, 0, 0, 0.2)),
    repeating-linear-gradient(to bottom, #f3eee2 0 1px, #d2c9b5 1px 2px);
}

/* the front board: the cloth and its foil, the first volume's unless the reader is on another's */
.gn__cover {
  /* set as the real cover is, and as the three covers on the series page are (css/page.css, .vol__cover):
     the title in serif capitals at the upper left, a rule, the volume's name beneath it, the mark
     at the foot, all in the foil's gold */
  display: block;
  padding: 11% 9% 9%;
  box-sizing: border-box;
  background-color: var(--cloth, var(--forest)); /* the volume's own cloth (js/book.js sets --cloth and --cover-ink) */
  background-image:
    /* the joint: the groove beside the spine that the board hinges on, a shadow with light on its far lip */
    linear-gradient(to right, rgba(0, 0, 0, 0) 3.6%, rgba(0, 0, 0, 0.36) 4.5%, rgba(0, 0, 0, 0.14) 5.2%, rgba(255, 255, 255, 0.09) 6%, rgba(255, 255, 255, 0) 7.2%),
    /* the cloth rolling over into the spine */
    linear-gradient(to right, rgba(0, 0, 0, 0.34), rgba(255, 255, 255, 0.06) 1.6%, rgba(0, 0, 0, 0) 3.4%),
    radial-gradient(ellipse 120% 90% at 30% 20%, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 60%),
    radial-gradient(ellipse 90% 70% at 80% 100%, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0) 60%);
  color: var(--cover-ink, var(--gold));
  font-family: 'EB Garamond', Georgia, serif;
  text-align: left;
}
/* the weave: a noise tile on its own layer (tiled straight on the 3D face, Chrome paints one
   tile twice and it shows as a lighter square) */
.gn__cover::before {
  display: block;
  inset: 0;
  background: url("../assets/img/gn/cloth.png") 0 0 / 256px 256px repeat;
}
.gn__cover-title {
  position: relative;
  margin: 0;
  font-weight: 500;
  font-size: 10.2cqw;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.12);
}
.gn__cover-rule {
  position: relative;
  display: block;
  width: 88%;
  height: 1px;
  margin: 5.5% 0 4.5%;
  background: currentColor;
  opacity: 0.85;
}
.gn__cover-sub {
  position: relative;
  margin: 0;
  font-weight: 500;
  font-size: 4.2cqw;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.gn__cover-mark {
  position: absolute;
  left: 9%;
  bottom: 4.5%;
  display: grid;
  justify-items: center;
  gap: 1.8cqw;
  font-family: Jost, system-ui, sans-serif;
  font-size: 2.1cqw;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}
.gn__cover-mark img { width: 11cqw; height: 11cqw; display: block; }
.gn__leaf--cover { container-type: inline-size; }

/* the offer */
.gn__offer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px var(--gutter) clamp(64px, 9vh, 112px); /* (the head: see .gn__intro) */
}


.gn__offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.gn__slipcase {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4; /* square-cornered and unshadowed, like a printed plate */
}
.gn__slipcase img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* the offer, in the cover's language: the heading in the same heavy capitals, the three volumes as
   hairline-separated rows with their spans, the price plain, the actions as capitals */
.gn__offer-title {
  margin: 0;
  font-weight: 200;
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  line-height: 1.3;
  letter-spacing: 0.26em;
  text-transform: uppercase; /* sized to sit on one line in the copy column from laptop widths up; it wraps on its own below */
}
.gn__offer-title em { font-style: italic; }
.gn__volumes {
  list-style: none;
  margin: clamp(26px, 3.6vh, 40px) 0 clamp(26px, 3.6vh, 40px);
  padding: 0;
  border-top: 1px solid rgba(242, 232, 210, 0.16);
}
.gn__volumes li {
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr);
  column-gap: 0.8em;
  padding: 16px 0 17px;
  border-bottom: 1px solid rgba(242, 232, 210, 0.16);
}
.gn__vol-n {
  padding-top: 0.2em;
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--tan-dim);
}
.gn__vol-name {
  font-weight: 400; /* the brand's regular */
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.gn__vol-span {
  grid-column: 2;
  margin-top: 5px;
  font-weight: 300;
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.45;
  color: var(--tan-dim);
}

/* THE VOLUMES OPEN UNDER THE POINTER (.gn__volumes--open on the list, and .is-armed once js/volumes.js has
   put a book in each row; 2026-11-21, the user's idea). Pointing at a row grows it by --grow, half above its
   text and half below, and that volume's book (css/books.css) stands at its right, turning in from the side.
   So that nothing else moves, the copy column already holds that much room: --grow of padding, half above
   and half below, which it gives up, at the same pace, while a row is open. The rows keep the book's width
   free at their right always, so their text does not re-wrap as one opens.
   Only where there is a pointer that hovers and the offer is in two columns; everywhere else, and without
   the two classes, the list is the plain list above. */
@media (hover: hover) and (min-width: 901px) {
  .gn__offer-copy:has(.gn__volumes--open.is-armed) {
    --book-w: clamp(112px, 10.4vw, 150px);
    --grow: calc(var(--book-w) * 1.1);
    padding-block: calc(var(--grow) / 2);
    transition: padding 0.7s cubic-bezier(0.3, 0.7, 0.2, 1);
  }
  .gn__offer-copy:has(.gn__volumes--open.is-armed li.is-open) { padding-block: 0; }
  .gn__volumes--open.is-armed li {
    position: relative;
    padding-right: calc(var(--book-w) + 44px);
    transition: padding 0.7s cubic-bezier(0.3, 0.7, 0.2, 1);
  }
  .gn__volumes--open.is-armed li.is-open { padding-top: calc(16px + var(--grow) / 2); padding-bottom: calc(17px + var(--grow) / 2); }
  .gn__volumes--open.is-armed .gn__vol-name,
  .gn__volumes--open.is-armed .gn__vol-n { transition: color 0.4s ease; }
  .gn__volumes--open.is-armed li.is-open .gn__vol-name { color: var(--gold); }
  .gn__vol-book {
    position: absolute;
    right: 20px;
    top: 50%;
    width: var(--book-w);
    opacity: 0;
    transform: translate3d(14px, -50%, 0) scale(0.9);
    transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.3, 0.7, 0.2, 1);
    pointer-events: none;
  }
  li.is-open > .gn__vol-book {
    pointer-events: auto; /* the stills play while the pointer is on the book; a click opens See inside on its chapter */
    cursor: pointer;
    opacity: 1;
    transform: translate3d(0, -50%, 0) scale(1);
    transition: opacity 0.5s ease 0.18s, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.12s;
  }
  .gn__vol-book.vols--books .vol__book { width: 100%; } /* (the Grand Narrative page's books are 68% of their columns) */
  /* it turns in toward the reader as it arrives */
  .gn__vol-book.vols--books .vol__obj { transform: rotateY(34deg); transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s; }
  li.is-open > .gn__vol-book.vols--books .vol__obj { transform: rotateY(15deg); }
  li.is-open > .gn__vol-book.vols--books .vol__book:hover .vol__obj { transform: rotateY(8deg); transition-delay: 0s; } /* and it comes round a little more under the pointer, as on the Grand Narrative page */
  /* on the night ground the book's cast shadow is a darker pool under it, not the warm shade it throws on bone */
  .gn__vol-book.vols--books .vol__shade { opacity: 0.7; }
}
@media (hover: hover) and (min-width: 901px) and (prefers-reduced-motion: reduce) {
  .gn__offer-copy:has(.gn__volumes--open.is-armed),
  .gn__volumes--open.is-armed li,
  .gn__vol-book,
  li.is-open > .gn__vol-book,
  .gn__vol-book.vols--books .vol__obj { transition: none; }
}
/* the books are only ever shown by the rules above */
@media not ((hover: hover) and (min-width: 901px)) { .gn__vol-book { display: none; } }

.gn__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 22px;
  margin: 0 0 26px;
}
.gn__price-num {
  font-weight: 300;
  font-size: clamp(26px, 2.6vw, 36px);
  letter-spacing: 0.02em;
}
.gn__price-note {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.gn__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.gn__buy {
  display: inline-flex;
  align-items: center;
  padding: 14px 24px;
  border: 1px solid var(--tan);
  background: transparent;
  color: var(--tan);
  font-weight: 400;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.gn__buy span { transition: transform 0.4s var(--ease-out); }
.gn__buy:hover { background: var(--tan); color: var(--deep); }
.gn__more {
  position: relative;
  color: var(--tan);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 0;
}
.gn__more::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.gn__more:hover::after { transform: scaleX(1); }

@media (max-width: 760px) {
  /* one column: the book above, the panel beneath, the stage scrolling */
  .gn__stage { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: start; align-items: start; row-gap: 28px; }
  .gn__stage.is-reading { overflow-y: auto; padding: calc(clamp(20px, 2.6vw, 40px) + 64px) 16px 36px; }
  .gn__head-line { display: none; }
  .gn__hold { transform: none; }
  .is-reading .gn__hold { width: 100%; }
  /* the rows are taller than the screen, so each auto row keeps only its minimum: the columns'
     min-height 0 (needed for the one-screen layout) would fold the book's row away */
  .gn__book-wrap { min-height: auto; }
  .gn__panel { min-height: auto; max-height: none; overflow: visible; }
  .gn__offer-grid { grid-template-columns: 1fr; }
  .gn__slipcase { max-width: 320px; }
  /* the photograph of the books follows the title and its line closely (2026-11-20, the user: too much space
     between them on a phone; the two blocks' own paddings left 122 px there, now 32) */
  .gn__intro { padding-bottom: 0; }
  .gn__offer { padding-top: 32px; }
  /* ON A PHONE THERE IS NO SHOW (2026-11-12): the section goes straight from its title to the offer and See inside.
     To bring it back, delete the next line and set PHONE to false in js/show.js; the phone rules after it are the show's. */
  .gn__show { display: none; }
  .gn__show { padding-bottom: clamp(20px, 4vh, 40px); }
  .gn__wall { grid-template-columns: repeat(5, 1fr); grid-auto-rows: calc(114svh / 9); }
  .gn__lines { font-size: 11px; letter-spacing: 0.26em; height: 2.9em; }
  .gn__line { right: -0.26em; }
  .gn__frame { border-radius: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .gn__head, .gn__hint, .gn__close, .gn__panel > *, .gn__stage { transition: none; }
}

/* the Grand Narrative's small lines in the site's own capitals, as the cards' are */
.gn__price-note {
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 300;
  letter-spacing: 0.26em;
  font-size: 0.72rem;
}

/* ====================================================================
   The opening as a plain page (html.journey-static, set by js/journey.js once the opening
   has been scrolled through): nothing is pinned; the hero, the chain and the crown of
   thorns are three sections one screen tall, in the page's flow, over the page's ground.
   ==================================================================== */
.fin { display: none; }
html.journey-static .journey { height: auto; background: none; }
html.journey-static .stage { height: auto; overflow: visible; background: none; }
html.journey-static .hero {
  position: relative;
  inset: auto;
  height: 100svh;
  visibility: visible !important; /* the script's render still writes these for the pinned stage */
  opacity: 1 !important;
}
html.journey-static .ring-scene {
  position: relative;
  inset: auto;
  height: 100svh;
  overflow-x: clip; /* a card leaving at the near end fades over the section's edge, not against a cut */
  /* the forest wash alone: the night beneath it is the page's ground, which runs on under what follows */
  background: radial-gradient(ellipse 70% 55% at 50% 50%, rgba(26, 42, 34, 0.55), rgba(7, 17, 11, 0) 70%);
}
html.journey-static .ring-scene > .atmosphere,
html.journey-static .ring-scene > .ghost-cursor,
html.journey-static .nudge,
html.journey-static .flare { display: none !important; }
html.journey-static .fin { display: block; position: relative; height: 100svh; }
.fin__card {
  position: absolute;
  left: 50%;
  top: var(--end-top, 12vh);
  width: var(--end-w, 74vw);
  aspect-ratio: 16 / 9;
  transform: translateX(-50%);
  border-radius: 10px;
  overflow: hidden;
  background: #0a0a0a;
}
.fin__card video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ====================================================================
   ON THE TABLE, THEN THE THREE VOLUMES (2026-11-25; index.html .gn__open; js/table.js). How the Grand Narrative
   section opens on the home page: the set standing on a table in a room, the title large at its left; then,
   scrolled on, the three volumes in a row rising over the photograph. The script moves things; without it
   everything here is simply shown.
   ==================================================================== */
/* the row of books' measures, on the page itself because What we do's cards are set to the same width (.what__inner) */
:root {
  --gn-book: clamp(150px, min(17.4vw, 30vh), 270px); /* THE BOOKS' SIZE (250 px on a 1440 px screen) */
  --gn-gap: clamp(40px, 8.2vw, 130px);               /* the room between them */
  --gn-row: calc(3 * var(--gn-book) + 2 * var(--gn-gap));
}
.gn__open { position: relative; }
/* the photograph holds still at the top of the screen while the row beneath it rises over it */
.gn__table {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--night);
}
.gn__table-fx, .gn__table-scrim, .gn__table-lock, .gn__table-flash, .gn__table-dim { position: absolute; inset: 0; }
.gn__table-fx { will-change: transform; }
/* the photograph, set to the right so the set stands clear of the title, its left edge melting into the night.
   TO MOVE THE SET, change the 26% (how far in from the left the photograph begins). */
.gn__table-ph {
  position: absolute;
  inset: -5% -5% -5% 26%;
  background: url(../assets/img/gn/shot-set-2400.jpg) 50% 50% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0), #000 26%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0), #000 26%);
  will-change: transform, filter;
}
.gn__table-scrim {
  background:
    linear-gradient(to right, rgba(7, 17, 11, 0.88), rgba(7, 17, 11, 0.5) 34%, rgba(7, 17, 11, 0) 56%),
    linear-gradient(to top, rgba(7, 17, 11, 0.5), rgba(7, 17, 11, 0) 34%);
}
/* the light the viewer comes through into, which settles into the room's own */
.gn__table-flash {
  background: radial-gradient(circle at 70% 46%, rgba(255, 244, 220, 0.95), rgba(255, 226, 170, 0.5) 22%, rgba(255, 226, 170, 0) 58%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}
.gn__table-dim { background: var(--night); opacity: 0; pointer-events: none; }
.gn__table-copy {
  position: absolute;
  left: clamp(24px, 6.1vw, 104px);
  bottom: clamp(56px, 10vh, 104px);
  width: min(49vw, 760px);
}
/* THE TITLE'S SIZE: the 5.55vw (80 px on a 1440 px screen; it was 64 in the first mock-up) */
.gn__table-title { font-size: min(5.55vw, 11vh, 6rem); line-height: 1.1; }
.gn__table-title span { overflow: hidden; padding: 0.06em 0; } /* each word rises out of its own line */
.gn__table-title i { display: block; font-style: normal; }
.gn__table-sub {
  max-width: 31em;
  margin-top: clamp(16px, 2.6vh, 24px);
  font-size: clamp(0.8rem, 1.01vw, 1rem);
  line-height: 1.75;
  letter-spacing: 0.14em;
  color: var(--tan-dim);
}
.gn__table-cta { margin-top: clamp(20px, 3.3vh, 30px); }
.gn__table-price { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tan-dim); white-space: nowrap; }
.gn__table-down { position: absolute; left: 50%; bottom: 26px; width: 22px; height: 22px; margin-left: -11px; opacity: 0.8; }

/* the three volumes: a screen of their own, rising over the photograph */
.gn__trio {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  /* HOW LONG THE PHOTOGRAPH HOLDS before the row begins to rise over it, in scroll: time for the title to arrive */
  margin-top: var(--gn-hold, 40svh);
  min-height: 100svh; /* at least a screen, so the photograph is wholly covered before it lets go */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(96px, 15vh, 150px) var(--gutter) clamp(80px, 13vh, 130px);
  background: var(--night);
  box-shadow: 0 -60px 80px rgba(7, 17, 11, 0.9);
  text-align: center;
}
.gn__trio-title {
  margin: 0;
  padding-left: 0.22em; /* the last letter's tracking, so the lines sit centred */
  font-weight: 200;
  font-size: clamp(1.2rem, 2.7vw, 2.7rem);
  line-height: 1.32;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tan);
}
.gn__trio-title span { display: block; }
.gn__trio-row {
  display: flex;
  justify-content: center;
  gap: var(--gn-gap);
  margin: clamp(56px, 9vh, 92px) 0 0;
  padding: 0;
  list-style: none;
}
/* (the books' size: --gn-book above) */
.gn__trio-vol { display: flex; flex-direction: column; align-items: center; width: var(--gn-book); } /* (and by the screen's height, so the row and its buttons fit a short one) */
.gn__trio-book { width: 100%; aspect-ratio: 3 / 4; } /* the room is held before the script has built the book */
.gn__trio-book.vols--books .vol__book { width: 100%; cursor: pointer; }
.gn__trio-book .vol__book:focus-visible { outline: 1px solid var(--gold); outline-offset: 12px; }
html.gn-table-on .gn__trio-book.vols--books .vol__obj { transition: none; } /* the script turns it */
/* the row's foot melts into the page's ground, so there is no edge where What we do begins (the script has put the
   photograph away by then: it lies under this, covered) */
html.gn-table-on .gn__trio { background: linear-gradient(to bottom, var(--night) calc(100% - 200px), rgba(7, 17, 11, 0)); }
.gn__trio-text { display: flex; flex-direction: column; align-items: center; margin-top: clamp(34px, 5.4vh, 50px); }
.gn__trio-name { margin: 0; font-size: 0.8rem; letter-spacing: 0.26em; text-transform: uppercase; white-space: nowrap; }
.gn__trio-span { margin: 9px 0 0; font-family: 'EB Garamond', Georgia, serif; font-style: italic; font-size: 1.06rem; color: var(--tan-soft); white-space: nowrap; }
.gn__trio-avail { margin: 16px 0 0; font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--tan-dim); }
.gn__trio-actions { justify-content: center; margin-top: clamp(48px, 7.5vh, 70px); }

@media (max-width: 760px) {
  /* a phone: nothing holds still. The photograph fills the upper part of the screen and fades into the night,
     the title and its lines stand beneath it; then the volumes as a list, each book beside its name. */
  .gn__table { position: relative; height: auto; padding-top: 52svh; }
  .gn__table-fx, .gn__table-flash { inset: 0 0 auto; height: 56svh; } /* (the set's foot ends just above the title, which begins at 52svh) */
  .gn__table-ph {
    inset: 0;
    background-image: url(../assets/img/gn/shot-set-1400.jpg);
    background-position: 50% 50%;
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, rgba(0, 0, 0, 0));
    mask-image: linear-gradient(to bottom, #000 72%, rgba(0, 0, 0, 0));
  }
  .gn__table-scrim { inset: 0 0 auto; height: 56svh; background: linear-gradient(to top, rgba(7, 17, 11, 0.7), rgba(7, 17, 11, 0) 40%); }
  .gn__table-lock { position: relative; inset: auto; }
  .gn__table-copy { position: relative; left: auto; bottom: auto; width: auto; padding: 0 var(--gutter) 48px; }
  .gn__table-title { font-size: clamp(1.8rem, 9.4vw, 3rem); }
  .gn__table-sub { font-size: 0.76rem; letter-spacing: 0.12em; }
  .gn__table-down { display: none; }
  /* CUT ON A PHONE (2026-11-25, the user, of a screenshot of them: "on mobile, cut all of this"): the buttons and
     price under the title, and the heading over the volumes. The title and its line are followed directly by the
     three volumes; Pre-order, About the series and See inside are still under them. TO BRING THEM BACK, delete the
     next two lines (and give .gn__trio-row its 44px top margin again). */
  .gn__table-cta, .gn__trio-title { display: none; }
  .gn__table-copy { padding-bottom: 20px; }
  html .gn__trio { background: none; }
  .gn__trio { display: block; min-height: 0; margin-top: 0; padding: 56px var(--gutter) 72px; box-shadow: none; text-align: left; }
  .gn__trio-title { padding-left: 0; font-size: 1.12rem; letter-spacing: 0.2em; line-height: 1.5; text-wrap: balance; }
  .gn__trio-title span { display: inline; }
  .gn__trio-row { display: block; margin-top: 0; }
  .gn__trio-vol { flex-direction: row; gap: 30px; width: auto; }
  .gn__trio-vol + .gn__trio-vol { margin-top: 40px; }
  .gn__trio-book { flex: none; width: 34%; }
  .gn__trio-text { align-items: flex-start; margin-top: 0; }
  .gn__trio-name { white-space: normal; line-height: 1.5; }
  .gn__trio-span { white-space: normal; }
  .gn__trio-actions { justify-content: flex-start; margin-top: 52px; }
}

/* ====================================================================
   The opening's other ending (html.ending-through; ENDING in js/journey.js; 2026-11-18, the user's idea,
   built as an alternative to try): the viewer is carried through the crown of thorns, which dissolves, and
   What we do is behind it. To be rid of it, set ENDING_DEFAULT to 'rest' there; these rules then do nothing.
   ==================================================================== */
/* FOLLOWS THE OPENING. The section that comes straight after the opening carries the class "follows", and the
   wrapper of its contents "follows__inner" (index.html): the Grand Narrative since 2026-11-24, What we do before.
   The stage lies over it, so that it can be behind the stage. */
html.ending-through .journey { z-index: 3; pointer-events: auto; }
/* (the pin's own wrapper lies over it too and must not take its clicks; the script switches the stage's
   own off once it has dissolved) */
html.ending-through .pin-spacer { pointer-events: none; }
/* In the other ending (the crown of thorns comes to rest) the section is lifted over the stage's foot by the room
   left under the card; in this one, by two screens (--next-lift, written by js/journey.js). */
.follows { margin-top: calc(-1 * var(--next-lift, 0px)); }
/* While the opening is pinned: the section is lifted two screens over the stage's foot and has one screen of room
   at its own foot, and its contents are sticky, so they arrive at the top of the screen a full screen of scroll
   before the pin lets go and wait there, still, behind the stage. (Once the pin has let go the contents lie at the
   foot of their section and the screen of room is above them, under the stage that has gone.) The section's empty
   parts let the pointer through. */
html.ending-through:not(.journey-static) .follows { pointer-events: none; }
/* (the room is an empty block, not padding: a sticky thing can only travel inside its parent's content) */
html.ending-through:not(.journey-static) .follows::after { content: ""; display: block; height: var(--through-vh, 100svh); }
html.ending-through:not(.journey-static) .follows__inner { position: sticky; top: 0; pointer-events: auto; }
/* the section opens a screen of its own: room above its title for the mark and the menu */
html.ending-through .follows .gn__intro { padding-top: clamp(104px, 15vh, 168px); }
html.ending-through .verse { display: none; } /* its words are the chain's statement in this ending (js/journey.js) */
/* as a plain page the crown of thorns has no section of its own: the chain, then What we do */
html.ending-through.journey-static .fin { display: none; }

/* ====================================================================
   The opening on a phone (html.journey-phone, set in the page's head when it loads 760 px wide or
   narrower; 2026-11-18, at the user's word: the cycle of clips was too noisy and clunky on a phone).
   No chain, no statement, no crown of thorns: the hero one screen tall, then one sentence (.wonder-line),
   then What we do. Nothing is pinned and nothing but the hero's own clip plays.
   ==================================================================== */
.wonder-line { display: none; }
html.journey-phone .journey { height: auto; }
html.journey-phone .ring-scene,
html.journey-phone .fin,
html.journey-phone .flare { display: none !important; }
/* the arrow at the hero's foot stays, as the invitation to scroll, until the page is moved */
html.journey-phone .nudge { opacity: 1; pointer-events: auto; transition: opacity 0.4s ease; }
html.journey-phone .nudge.is-gone { opacity: 0; pointer-events: none; }
html.journey-phone .wonder-line {
  display: block;
  margin: 0 auto;
  max-width: 14em;
  box-sizing: content-box;
  padding: clamp(88px, 16svh, 148px) var(--gutter) clamp(84px, 15svh, 140px);
  text-align: center;
  text-wrap: balance;
  color: var(--tan);
  font-weight: 300;
  font-size: clamp(1.6rem, 7.3vw, 2.05rem);
  line-height: 1.36;
  letter-spacing: 0.01em;
}
.wonder-line .w { display: inline-block; }
.wonder-line em { font-style: normal; }
/* WORDS THAT LIGHT AS YOU READ (2026-11-20, the user; the script splits the sentence into words and numbers
   them, --i). The sentence lies dim. As the page is scrolled through it the script moves one number, --read,
   from 0 to a little past the last word's, and each word is as bright as --read is beyond its own number:
   dim until its turn, full two and a half words later. It follows the scroll both ways and never moves on its
   own. Without the script (or with reduced motion) the sentence is simply there, fully lit. */
.wonder-line--read .w {
  opacity: clamp(0.17, calc(0.17 + (var(--read, 0) - var(--i, 0)) * 0.332), 1);
  transition: opacity 0.22s linear;
}
/* the two emphasised phrases are the same cream as the rest; their only mark is a light that passes along each
   phrase, once, the first phrase and then the second, when the last word has been lit (--x0 and --span, written
   by the script, place each word within its phrase so the light is one light; --p is the phrase's number and
   1.6s the wait between one phrase's start and the next's). (2026-11-18, the user: no thread, no gold, the
   light alone, only once, and never on both phrases together.) */
.wonder-line .w--em {
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image:
    linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(240, 216, 160, 0.6) 30%, #fff4dc 50%, rgba(240, 216, 160, 0.6) 70%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(var(--tan), var(--tan));
  background-size: 200px 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: -9999px 0, 0 0;
}
.wonder-line--read.is-read .w--em { animation: wonder-light 2s ease-in-out calc(0.3s + var(--p, 0) * 1.6s) 1 both; }
@keyframes wonder-light {
  from { background-position: calc(-200px - var(--x0, 0px)) 0, 0 0; }
  to { background-position: calc(var(--span, 200px) + 40px - var(--x0, 0px)) 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wonder-line--read .w { opacity: 1; transition: none; }
  .wonder-line--read.is-read .w--em { animation: none; }
}

/* ====================================================================
   The ground: the stage's haze and ghost cursor carried under the rest of the page
   (js/ground.js), one fixed layer behind every section after the journey.
   ==================================================================== */
.ground {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--night);
}
.ground:not(.is-on) { display: none; }

/* ====================================================================
   Footer
   ==================================================================== */
.foot {
  position: relative;
  z-index: 1; /* over the ground, under the Grand Narrative's stacking context, where the reader lives */
  color: var(--tan);
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 300;
  padding: clamp(72px, 10vh, 120px) var(--gutter) clamp(28px, 4vh, 44px);
}
.foot__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 80px);
  padding-top: clamp(40px, 5vh, 56px);
  border-top: 1px solid rgba(242, 232, 210, 0.12);
}
.foot__mark { display: block; margin-top: 5px; } /* the logo files are trimmed to their artwork; 5px puts the mark's top on the column heads' cap line */
/* the full logo, mark and wordmark (the horizontal file from the brand kit: gold on white text on
   the night, the black version on the light pages, as the kit directs; never recoloured) */
.foot__mark img { display: block; width: min(100%, 185px); height: auto; } /* 185 px since 2026-11-18 (the user's choice from the tweak panel; it was 210) */
.foot__line {
  margin: 20px 0 0;
  font-weight: 200;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.foot__values,
.foot__head {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.6;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--tan-dim);
}
.foot__values { margin-top: 20px; }
.foot__head { margin-bottom: 18px; }
.foot__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.foot__col a {
  color: var(--tan);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.3s ease;
}
.foot__col a:hover { color: var(--gold); }
.foot__base {
  max-width: 1320px;
  margin: clamp(48px, 7vh, 80px) auto 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--tan-dim);
}
.foot__base a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
.foot__base a:hover { color: var(--gold); }
.foot__legal { margin-left: auto; } /* Privacy & terms: at the right, beside Back to top */
@media (max-width: 760px) {
  .foot__inner { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
  .foot__base { flex-direction: column; gap: 12px; }
}

/* ====================================================================
   The shop: the cart drawer (js/shop.js). Night dress here; the light pages reset the
   colours in page.css. The panel slides in from the right over a scrim; a tab at the foot of
   the screen reopens it while it holds something.
   ==================================================================== */
.cart {
  --cart-bg: #0b1a11;
  --cart-ink: var(--tan);
  --cart-soft: var(--tan-soft);
  --cart-dim: var(--tan-dim);
  --cart-rule: rgba(242, 232, 210, 0.16);
  --cart-btn: var(--tan);
  --cart-btn-ink: var(--deep);
  position: fixed;
  inset: 0;
  z-index: 120; /* over the menu and the reader, where a pre-order button also lives */
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 300;
  color: var(--cart-ink);
}
.cart-open { overflow: hidden; }
.cart__scrim {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 11, 0.55);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.cart__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  display: grid;
  grid-template-rows: auto 1fr auto;
  box-sizing: border-box;
  background: var(--cart-bg);
  transform: translate3d(100%, 0, 0);
  transition: transform 0.5s var(--ease-out);
  outline: none;
}
.cart.is-open .cart__scrim { opacity: 1; }
.cart.is-open .cart__panel { transform: none; }
.cart.is-busy .cart__body { opacity: 0.55; pointer-events: none; }
.cart__body { transition: opacity 0.25s ease; }

.cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(24px, 4vh, 40px) 32px 0;
}
.cart__title {
  margin: 0;
  font-weight: 200;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.cart__close {
  position: relative;
  width: 40px;
  height: 40px;
  margin-right: -10px;
  padding: 0;
  border: 1px solid var(--cart-rule);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.3s ease;
}
.cart__close:hover { border-color: var(--cart-ink); }
.cart__close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1px;
  margin: 0 0 0 -7px;
  background: var(--cart-ink);
  transform: rotate(45deg);
}
.cart__close span:last-child { transform: rotate(-45deg); }

.cart__body { padding: clamp(20px, 3vh, 32px) 32px; overflow-y: auto; min-height: 0; }
.cart__empty, .cart__error { margin: 0; color: var(--cart-dim); }
.cart__error { margin-top: 14px; color: #b86b5a; }
.cart__lines { list-style: none; margin: 0; padding: 0; }
.cart__line {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--cart-rule);
  border-bottom: 1px solid var(--cart-rule);
}
.cart__img { display: block; width: 96px; height: 96px; object-fit: cover; }
.cart__name { margin: 0 0 4px; font-weight: 400; font-size: 1rem; }
.cart__detail { margin: 0 0 14px; font-size: 0.82rem; line-height: 1.5; color: var(--cart-dim); }
.cart__price { margin: 0; font-size: 1rem; font-variant-numeric: tabular-nums; }
.cart__qty { display: inline-flex; align-items: center; border: 1px solid var(--cart-rule); border-radius: 999px; }
.cart__qty button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cart-ink);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}
.cart__qty span { min-width: 1.6em; text-align: center; font-size: 0.9rem; font-variant-numeric: tabular-nums; }

.cart__foot { padding: 0 32px clamp(24px, 4vh, 40px); }
.cart__sub {
  display: flex;
  justify-content: space-between;
  margin: 0 0 10px;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.cart__note { margin: 0 0 22px; font-size: 0.8rem; line-height: 1.5; color: var(--cart-dim); }
.cart__checkout {
  display: block;
  padding: 16px 24px;
  border: 1px solid var(--cart-btn);
  border-radius: 999px;
  background: var(--cart-btn);
  color: var(--cart-btn-ink);
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.cart__checkout:hover { background: transparent; color: var(--cart-ink); }
.cart__checkout.is-off { opacity: 0.35; pointer-events: none; }
.cart__continue {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 10px 0;
  border: 0;
  background: none;
  color: var(--cart-dim);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--cart-rule);
}
.cart__continue:hover { color: var(--cart-ink); }

/* the tab: at the foot of the screen, right, while the cart holds something and is closed */
.cart[hidden],
.cart__tab[hidden] { display: none; }
.cart__tab {
  position: fixed;
  right: var(--gutter);
  bottom: clamp(18px, 3vh, 32px);
  z-index: 105;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid rgba(242, 232, 210, 0.4);
  border-radius: 999px;
  background: rgba(7, 17, 11, 0.6);
  color: var(--tan);
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, transform 0.5s var(--ease-out);
}
.cart__tab:hover { border-color: var(--tan); }
.cart__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--deep);
  font-size: 11px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.reading .cart__tab, .menu-open .cart__tab { opacity: 0; pointer-events: none; }

/* a pre-order link while the cart is being made */
.shop__add.is-busy { opacity: 0.6; pointer-events: none; }

@media (max-width: 760px) {
  .cart__head, .cart__body, .cart__foot { padding-left: 20px; padding-right: 20px; }
  .cart__line { grid-template-columns: 72px minmax(0, 1fr); }
  .cart__img { width: 72px; height: 72px; }
  .cart__price { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .cart__scrim, .cart__panel { transition: none; }
}
