:root {
  color-scheme: light;
  --paper: #faf7ef;
  --vellum: #f2eadc;
  --ink: #242019;
  --quiet: #5b5449;
  --line: #d6cebe;
  --copper: #b3592b;
  --bronze: #784621;
  --book-title-gold: #926322;
  --plate-paper: #f6f1e5;
  --serif: Baskerville, "Iowan Old Style", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  --gutter: clamp(20px, 5.1vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); }
body { margin: 0; font: 19px/1.48 var(--serif); }
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
img, video, canvas { display: block; max-width: 100%; }
figure, blockquote, h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-underline-offset: .26em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
section[id], #covers, #main { scroll-margin-top: 14px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.shell { width: min(1370px, 100%); padding-inline: var(--gutter); margin-inline: auto; }

.skip {
  position: fixed;
  left: 10px;
  top: 10px;
  z-index: 10;
  transform: translateY(-150%);
  padding: 10px 14px;
  color: var(--ink);
  background: var(--paper);
  font: 14px/1.45 var(--sans);
}
.skip:focus { transform: none; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 3px;
  text-align: center;
  text-decoration: none;
  font: 600 13px/1.4 var(--sans);
}
.primary { color: var(--paper); background: var(--ink); }
.primary:hover { background: #44382a; }
.outline { color: var(--ink); background: transparent; border-color: #b9af9c; }
.outline:hover { border-color: var(--ink); }
.text-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  font: 550 13px/1.45 var(--sans);
}
.text-action span[aria-hidden] { display: inline-block; text-decoration: none; }
.display {
  font: 400 clamp(44px, 5.6vw, 80px)/.98 var(--serif);
  letter-spacing: -.05em;
  text-wrap: balance;
}

.book-story {
  --hero-scale: 1.34;
  --reader-width: clamp(326px, min(46vw, 83svh), 674px);
  --reader-height: calc(var(--reader-width) * .75);
  --ending-top: clamp(26px, 5svh, 58px);
  --ending-gap: clamp(36px, 6svh, 68px);
  --reader-gap: clamp(24px, 4vw, 62px);
  --scene-top: clamp(34px, calc((100svh - var(--reader-height)) * .4), 170px);
  --scene-lead: clamp(70px, 17svh, 156px);
  overflow-x: clip;
}
.cover-journey {
  --jacket-width: min(84vw, 45svh);
  --jacket-top: calc(46svh - var(--jacket-width) * .75);
  --travel: 66svh;
  --credit-travel: 42svh;
  --arrival-travel: 0px;
  position: relative;
}
.cover-window {
  position: relative;
  height: 100svh;
  --arrival-duration: 2040ms;
  --cursor-gold: #a67527;
}
.cover-image-window { position: absolute; inset: 0; overflow: clip; pointer-events: none; }
.jacket-plane {
  position: absolute;
  left: 50%;
  top: var(--jacket-top);
  width: var(--jacket-width);
  aspect-ratio: 2 / 3;
  transform-origin: 50% 0;
  transform: translate(-50%, var(--macro-y, 0px)) scale(var(--macro-scale, 1));
}
.jacket-camera, .jacket-print, .cover-foil, .jacket-stock { position: absolute; inset: 0; }
.jacket-camera { transform-origin: 0 0; }
/* The original jacket paints over this title if it arrives after the opening times out. */
.jacket-inscription {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; padding: 22% 8% 11%; background: var(--vellum);
  color: var(--bronze); text-align: center; text-wrap: balance;
  font: 400 calc(var(--jacket-width) * .105)/1.06 var(--serif);
}
.jacket-inscription span:last-child { font-size: .62em; }
.cover-closeup.jacket-pending { opacity: 0; }
.cover-closeup {
  position: relative;
  width: 100%; height: 100%;
  box-shadow: 0 8px 26px -6px rgb(68 49 20 / calc(.21 * var(--cover-shade, 1)));
}
.cover-foil, .jacket-stock { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .arrival-ready :is(.arrival-status, .arrival-identity) { animation: prompt-word-out .28s ease-out both; }
  .arrival-ready .arrival-prompt {
    animation: prompt-into-ink var(--arrival-duration) linear both;
  }
  .arrival-ready .cover-window::before { animation: dark-to-ivory var(--arrival-duration) ease-in-out both; }
  .arrival-ready .jacket-print { animation: jacket-from-dark var(--arrival-duration) ease-in-out both; }
  .arrival-ready .cover-invitation { animation: uncover-navigation var(--arrival-duration) ease-out both; }
  .jacket-arrival .jacket-stock { display: block; }
  .jacket-arrival .jacket-stock > span {
    position: absolute;
    inset: 0;
    background: #faf4e6 url(assets/cover-2b/jacket-stock.webp) center / 100% 100%;
  }
  .stock-title { clip-path: inset(0 0 61%); --ink-delay: 0s; }
  .stock-hands { clip-path: inset(39% 0 17%); --ink-delay: .04s; }
  .stock-author { clip-path: inset(83% 0 11%); --ink-delay: .65s; }
  .stock-foreword { clip-path: inset(89% 0 0); --ink-delay: .83s; }
  .arrival-ready .jacket-stock > span { animation: print-arrives .62s ease-in-out var(--ink-delay) both; }
  .jacket-arrival .cover-foil { visibility: hidden; }
}
@keyframes cursor-blink {
  0%, 48%, 100% { opacity: 1; }
  53%, 94% { opacity: 0; }
}
@keyframes prompt-into-ink { 0%, 66% { opacity: 1; } 85%, 100% { opacity: 0; } }
@keyframes prompt-word-out { to { opacity: 0; } }
@keyframes jacket-from-dark { 0%, 11% { opacity: 0; } 38% { opacity: .62; } 62%, 100% { opacity: 1; } }
@keyframes dark-to-ivory { 0%, 30% { opacity: 1; } 75%, 100% { opacity: 0; } }
@keyframes uncover-navigation {
  0%, 69% { opacity: 0; visibility: hidden; }
  70% { opacity: 0; visibility: visible; }
  100% { opacity: 1; visibility: visible; }
}
@keyframes print-arrives { from { opacity: 1; } to { opacity: 0; } }
.foil-line { position: absolute; }
.foil-title {
  left: 9.94444%; top: 14.07407%;
  width: 80.11111%; height: 16.22222%;
  --letters: url(assets/cover-2b/foil-title.png);
  --glint-x: 76.04%; --glint-y: 34.13%;
}
.foil-author {
  left: 35.55556%; top: 85.51852%;
  width: 28.83333%; height: 2.37037%;
  --letters: url(assets/cover-2b/foil-author.png);
  --glint-x: 76.01%; --glint-y: 30.47%;
}
.foil-foreword {
  left: 19.22222%; top: 90.29630%;
  width: 61.44444%; height: 2.07407%;
  --letters: url(assets/cover-2b/foil-foreword.png);
  --glint-x: 76.08%; --glint-y: 29.46%;
}
@media (prefers-reduced-motion: no-preference) {
  .has-story-motion .cover-foil { display: block; }
  .foil-line { --foil-cycle: 6.5s; --delay: .22s; --star: calc(var(--jacket-width) * .025); }
  .foil-author { --delay: .03s; --star: calc(var(--jacket-width) * .013); }
  .foil-foreword { --delay: .55s; --star: calc(var(--jacket-width) * .015); }
  .foil-line::before, .foil-line::after { content: ""; position: absolute; opacity: 0; }
  .foil-line::before {
    inset: 0;
    mask: var(--letters) center / 100% 100% no-repeat;
    background: linear-gradient(106deg, transparent 40%, #f4bd6940 44%, #ffe7abbb 48%,
      #fff9e8 50%, #fff4cecc 51%, #f6bd6c55 54%, transparent 59%) 100% 50% / 250% 100% no-repeat;
  }
  .foil-line::after {
    left: var(--glint-x); top: var(--glint-y); width: var(--star); height: var(--star);
    background: radial-gradient(closest-side, white 12%, #fff5d2 38%, #eab56c 79%, transparent);
    clip-path: polygon(50% 0, 57% 42%, 100% 50%, 57% 56%, 50% 100%, 43% 57%, 0 50%, 43% 43%);
  }
  .foil-idle.light-title .foil-title::before, .light-credits:is(.foil-idle, .foil-arrival) :is(.foil-author, .foil-foreword)::before {
    animation: foil-wipe var(--foil-cycle) linear var(--delay) infinite both;
  }
  .foil-idle.light-title .foil-title::after, .light-credits:is(.foil-idle, .foil-arrival) :is(.foil-author, .foil-foreword)::after {
    animation: foil-spark var(--foil-cycle) linear var(--delay) infinite both;
  }
  /* Keep the first credit pass when the reader scrolls continuously through the close-up. */
  .light-credits.foil-arrival:not(.foil-idle) :is(.foil-author, .foil-foreword)::before,
  .light-credits.foil-arrival:not(.foil-idle) :is(.foil-author, .foil-foreword)::after {
    animation-iteration-count: 1;
  }
}
/* A 1.43s sweep followed by just over five seconds of plain lettering. */
@keyframes foil-wipe {
  0% { background-position-x: 100%; opacity: 0; }
  1.8%, 19.6% { opacity: 1; }
  22%, 100% { background-position-x: 0%; opacity: 0; }
}
@keyframes foil-spark {
  0%, 12.5%, 18.3%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.2); }
  15% { opacity: .98; transform: translate(-50%, -50%) scale(1); }
  16.5% { opacity: .32; transform: translate(-50%, -50%) scale(.55); }
}
.cover-controls {
  position: absolute;
  inset: 0 0 env(safe-area-inset-bottom, 0px);
  display: grid;
  grid-template-rows: var(--jacket-top) calc(var(--jacket-width) * 1.5) 1fr;
  place-items: center;
  pointer-events: none;
  color: var(--quiet);
  font: 500 14px/1.3 var(--sans);
  white-space: nowrap;
}
.cover-controls a { pointer-events: auto; }
.cover-toolbar {
  position: relative;
  grid-row: 1;
  align-self: start;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(10px, 1.15vw, 18px);
  padding-top: var(--masthead-row-top);
  padding-inline: max(var(--masthead-right), env(safe-area-inset-left, 0px));
}
.terminal-replay {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .36em;
  min-height: 44px;
  color: var(--quiet);
  text-decoration: none;
  font: 500 14px/1.2 ui-monospace, Menlo, Consolas, monospace;
}
.replay-word { text-decoration: underline; text-underline-offset: .23em; }
.terminal-replay:hover .replay-word { color: var(--ink); text-decoration-thickness: 2px; }
.terminal-cursor { height: .92em; aspect-ratio: 12 / 25; background: var(--cursor-gold); }
@media (prefers-reduced-motion: no-preference) {
  .terminal-cursor { animation: cursor-blink 1.12s linear infinite; }
}
.cover-toolbar .pill-nav { grid-column: 2; justify-self: center; }
.cover-availability {
  position: absolute;
  top: calc(var(--masthead-row-top) + var(--masthead-row-height) + 4px);
  right: var(--masthead-right);
  color: var(--quiet);
  font: 500 13px/1.4 var(--sans);
  text-align: right;
  white-space: normal;
}
.jacket-arrival:not(.arrival-ready) .cover-availability { color: #f4efe5; }
.book-cue {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.book-cue:hover { color: var(--bronze); }
.cover-invitation {
  grid-row: 3;
  display: grid;
  justify-items: center;
  padding-inline: var(--gutter);
  text-align: center;
}
.cover-invitation p {
  color: var(--ink);
  font: 400 clamp(20px, 3.2svh, 30px)/1.22 var(--serif);
  white-space: normal;
  text-wrap: balance;
}
.book-cue { gap: 8px; color: var(--ink); font-size: 14px; font-weight: 650; }
.book-cue {
  justify-content: center;
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--sans);
  line-height: 1.2;
}
.book-cue [aria-hidden] {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid #a97c434f;
  border-radius: 50%;
  color: var(--bronze);
  font: 400 18px/1 var(--sans);
}
.book-cue:hover [aria-hidden], .book-cue:focus-visible [aria-hidden] { background: #b08a4b1c; }
.scene-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  width: max-content;
  gap: 2px;
}
.step-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  text-decoration: none;
  color: var(--bronze);
  border-radius: 50%;
}
.step-arrow span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #a97c4366;
  border-radius: 50%;
  background: var(--cue-paper, var(--paper));
  font: 400 21px/1 var(--sans);
}
.step-arrow:is(:hover, :focus-visible) span {
  border-color: var(--bronze);
  background: #f3ebdc;
}
.still-cover, .archetype-spread { position: relative; }
.still-cover > .scene-controls, .archetype-spread > .scene-controls {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
}
.book-story:not(.has-story-motion) :is(.still-cover, .archetype-spread) { margin-block-end: 56px; }
.has-story-motion :is(.still-cover, .archetype-spread) > .scene-controls { display: none; }
.dock-cue {
  position: fixed;
  z-index: 4;
  top: var(--cue-top);
  left: var(--cue-centre);
  transform: translateX(-50%);
}
/* Only the printed jacket or leaves receive a tap. The ivory margins remain free to scroll. */
.book-step {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bronze);
  pointer-events: auto;
  border-radius: 2px;
}
.book-step.dock-book-step { position: fixed; z-index: 3; inset: auto; }
.has-story-motion :is(.archetype-spread, .still-cover) > .book-step,
.jacket-arrival .book-step { display: none; }
.dock-cue[data-at="foreword"] { --cue-paper: #f8f4e9; }
/* Keep keyboard focus when a browser scrolls a newly focused arrow into view. */
main.cues-moving .scene-controls { opacity: 0; pointer-events: none; }
main:has(.has-story-motion) .scene-controls:not(.cue-current) {
  visibility: hidden;
  pointer-events: none;
}
.ending-step { margin-block-start: clamp(12px, 2svh, 24px); }
.cover-waypoint { position: absolute; width: 1px; height: 1px; pointer-events: none; scroll-margin: 0; }
#full-jacket, #cover-credits { top: 0; }
#cover-detail { bottom: 0; }
.has-story-motion .cover-journey { height: calc(100svh + var(--arrival-travel) + var(--travel) + var(--credit-travel)); }
.has-story-motion .cover-window { position: sticky; top: 0; }
.has-story-motion .cover-controls { opacity: var(--imprint-ink, 1); }
.has-story-motion .past-imprint .cover-controls { visibility: hidden; }
.has-story-motion #cover-detail { top: calc(var(--arrival-travel) + var(--travel) * .39); bottom: auto; }
.has-story-motion #cover-credits { top: calc(var(--arrival-travel) + var(--travel) * .39 + var(--credit-travel) * .85); }
.has-story-motion #full-jacket { top: calc(var(--arrival-travel) + var(--travel) * .94 + var(--credit-travel)); }
.has-story-motion .past-closeup .cover-image-window { visibility: hidden; }
.cover-chapter-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--reader-width);
  gap: var(--reader-gap);
  align-items: center;
}
.era-dates li[id] { scroll-margin-block-start: clamp(80px, 20svh, 190px); }

.cover-chapter { position: relative; }
#foreword { background: #f8f4e9; }
#foreword, #timeline, #covers { scroll-margin-block-start: var(--scene-lead); }
.cover-chapter-inner { padding-block: clamp(42px, 8svh, 90px); }
.cover-copy { min-inline-size: 0; padding-inline-end: clamp(0px, 2vw, 26px); }
.foreword-feature blockquote {
  font: 400 clamp(33px, 3.45vw, 49px)/1.06 var(--serif);
  letter-spacing: -.044em;
  text-wrap: pretty;
}
.foreword-feature figcaption { margin-top: clamp(17px, 2.5vw, 27px); }
.foreword-feature figcaption strong {
  display: block;
  font: 600 clamp(32px, 3.35vw, 51px)/1.1 var(--sans);
  letter-spacing: -.024em;
}
.foreword-feature figcaption span { display: block; margin-top: 4px; color: var(--quiet); font: 15px/1.5 var(--sans); }
.cover-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 0 17px;
  margin-top: 16px;
}
.reader-jacket summary {
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding-block: 11px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  font: 550 13px/1.55 var(--sans);
}
.still-cover {
  justify-self: center;
  width: min(100%, 335px);
  box-shadow: 0 12px 28px #3d2d1a25;
}
.still-cover img { width: 100%; height: auto; }
.timeline-intro .display { max-width: 17ch; font-size: clamp(35px, 5.05vw, 73px); text-wrap: pretty; }
.timeline-intro .cover-copy > p { margin-top: 14px; color: var(--quiet); font-size: clamp(17px, 1.8vw, 24px); }
.timeline-intro .cover-copy > .promise-invitation { color: var(--ink); }
.timeline-era:first-of-type { position: relative; }
.journey-waypoint { position: absolute; block-size: 0; }
#turn { inset-block-start: -64svh; }
#opening { inset-block-start: -47svh; }
#punch-cards { top: -62svh; }

.book-story.has-story-motion { display: grid; isolation: isolate; }
.has-story-motion .story-content,
.has-story-motion .story-book-rail { grid-area: 1 / 1; min-inline-size: 0; }
.has-story-motion .story-book-rail {
  z-index: 1;
  pointer-events: none;
  overflow-anchor: none;
}

.has-story-motion .still-cover { display: none; }
.has-story-motion .cover-chapter-inner { align-items: start; }
/* Let the next section scroll into the cover scene during the pullback. */
.has-story-motion #foreword { margin-block-start: -55svh; }
.has-story-motion #foreword .cover-chapter-inner {
  min-block-size: clamp(505px, 73svh, 735px);
  padding-block: clamp(68px, 13svh, 130px) 42px;
}
.has-story-motion #covers .cover-chapter-inner {
  min-block-size: clamp(385px, 63svh, 640px);
  padding-block: clamp(72px, 14svh, 146px) 42px;
}

.book-ending { background: var(--plate-paper); }
#what-comes-next { scroll-margin-block-start: 0; }
.book-ending-layout {
  display: grid;
  justify-items: center;
  padding-block: var(--ending-top) var(--ending-gap);
}
.book-ending-page {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 86svh, 860px);
  aspect-ratio: 4 / 3;
  border-radius: 2px;
  box-shadow: 0 2px 0 #ddd2bd, 0 4px 0 #eee5d5, 0 10px 22px #3b2b1b25;
}
.closing-leaf {
  position: relative;
  height: 100%;
  container-type: inline-size;
  overflow: hidden;
  color: var(--ink);
  background: var(--plate-paper);
}
.book-ending-page .closing-left { background: linear-gradient(90deg, var(--plate-paper) 88%, #e7decc); }
.book-ending-page .closing-right { background: linear-gradient(90deg, #e1d7c5, var(--plate-paper) 12%); }
.closing-question {
  position: absolute;
  inset: 12% 0 auto;
}
.closing-leaf .closing-ribbon {
  position: absolute;
  left: 10%;
  width: 80%;
  height: 60.5%;
  bottom: 6.5%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.closing-progression {
  position: absolute;
  inset: 0 6% 0 10%;
  display: grid;
  align-content: center;
  gap: .32em;
  color: #20373a;
  font: 400 10.4cqi/1.15 var(--serif);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.closing-progression p > span { color: var(--book-title-gold); }
.has-story-motion:not(.ending-landed) :is(.book-ending-page, .ending-step) { visibility: hidden; }
.has-story-motion.ending-landed .story-book-position { visibility: hidden; }

.promise-section {
  position: relative;
  isolation: isolate;
  background: var(--paper);
  overflow: clip;
  text-align: center;
  padding-block: clamp(8px, 1.5svh, 18px) clamp(22px, 3.4vw, 46px);
}
#promise { scroll-margin-block-start: 24svh; }
.promise-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: url(assets/cover-binary-2x.webp) repeat center / 240px 144px;
  opacity: .49;
  mask-image: radial-gradient(ellipse 68% 64% at 50% 48%, #000 13%, #0009 52%, transparent 94%);
}
.hand-stage {
  --arrival: 19.5%;
  --hands-progress: 1;
  container-type: inline-size;
  position: relative;
  overflow: clip;
  width: min(96%, 1000px, max(425px, 85svh));
  aspect-ratio: 1800 / 1118;
  margin: 0 auto;
}
.hand-art {
  position: absolute;
  inset: 0;
  overflow: clip;
  mask-image: linear-gradient(90deg, transparent, #000 5% 95%, transparent);
}
/* The two matched halves meet at the centre. Only the wrappers slide during the approach. */
.hand {
  position: absolute;
  inset: 0;
  opacity: calc(.7 + .3 * var(--hands-progress));
}
.hand img {
  position: absolute;
  top: 50%;
  width: 50%;
  max-width: none;
  height: auto;
  transform: translateY(-50%);
}
.hand-human {
  transform: translateX(calc((var(--hands-progress) - 1) * var(--arrival)));
}
.hand-neural {
  transform: translateX(calc((1 - var(--hands-progress)) * var(--arrival)));
}
.hand-human img { right: 50%; }
.hand-neural img { left: 50%; }
.promise {
  position: absolute;
  top: 39.5%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  text-align: center;
  font: 400 5.5cqi/1.03 var(--serif);
  letter-spacing: -.035em;
}
.promise span, .promise em { display: block; white-space: nowrap; font-weight: 400; }
@media (prefers-reduced-motion: no-preference) {
  .hand-stage.awaits-contact .promise { opacity: var(--hands-progress); }
  .hand-stage.awaits-contact.has-met .promise { opacity: 1; }
  .is-playing :is(.hand, .promise) { animation: 1.6s cubic-bezier(.42,0,.24,1) both; }
  .is-playing .hand-human { animation-name: arrive-left; }
  .is-playing .hand-neural { animation-name: arrive-right; }
  .is-playing .promise { animation-name: reveal-promise; }
}
@keyframes reveal-promise { from { opacity: var(--hands-progress); } to { opacity: 1; } }
@keyframes arrive-left {
  from { transform: translateX(calc((var(--hands-progress) - 1) * var(--arrival))); }
  to { transform: none; opacity: 1; }
}
@keyframes arrive-right {
  from { transform: translateX(calc((1 - var(--hands-progress)) * var(--arrival))); }
  to { transform: none; opacity: 1; }
}
.promise-caption {
  display: grid;
  justify-items: center;
  row-gap: 2px;
  margin-top: clamp(4px, .8svh, 9px);
  padding: 0 14px;
}
.replay { color: var(--quiet); font-size: 12px; font-weight: 450; }
.replay:not([data-ready]) { visibility: hidden; }

/* One impression sits in the paper margin at each date, including without scripting. */
.timeline {
  position: relative;
  isolation: isolate;
  background: var(--paper);
}
.timeline-impressions {
  position: absolute;
  z-index: -1;
  inset: var(--paper-start, 0px) 0 0;
  overflow: clip;
  pointer-events: none;
}
.year-copy { display: contents; }
.year-ink-wide { display: none; }
.year-ink-print {
  display: block;
  width: min(200px, 100%);
  height: auto;
  pointer-events: none;
}
.era-dates :is(time, p) { text-shadow: 0 0 3px var(--paper), 0 0 6px var(--paper); }
.timeline-ink {
  display: block;
  position: sticky;
  top: 0;
  width: 100%;
  height: min(100%, 100lvh);
  visibility: hidden;
}
/* The margin ink shares the native scroll transform of the printed date column. */
.timeline-margin-ink, .timeline-ink.paper-registered {
  position: absolute;
  top: 0;
  left: 0;
  height: min(100%, 150lvh);
}
.timeline-margin-ink { visibility: hidden; }
@media screen and (prefers-reduced-motion: no-preference) {
  .has-story-motion .timeline-margin-ink { visibility: visible; }
  .has-story-motion .timeline:has(.timeline-ink.is-drawn) .year-ink-print { display: none; }
  .has-story-motion .timeline-ink.is-drawn { visibility: visible; }
}
@media (max-width: 960px) {
  /* The dock normally masks passing text with paper. In the timeline, reveal the
     actual printed background and clip only the text that has passed behind the dock. */
  .texture-at-dock .story-book-position::before {
    mask-image: linear-gradient(black var(--print-start), transparent var(--print-start),
      transparent var(--print-end), black var(--print-end));
  }
  .texture-at-dock .timeline-flow { clip-path: inset(var(--text-cut) 0 0); }
}
.timeline-eras {
  --era-gap: clamp(23px, 4.5vw, 40px);
}
.timeline-era + .timeline-era { border-block-start: 1px solid #e4dccd; }
.era-spread {
  --era-columns: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--era-gap);
  padding-block: clamp(43px, 8vw, 70px);
}
.archetype-spread {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 680px);
  aspect-ratio: 4 / 3;
  margin-inline: auto;
  background: #f6f1e5;
  box-shadow: 0 8px 24px #45351b20;
}
.archetype-spread::after {
  content: "";
  position: absolute;
  inset: 0 48% 0 47%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, #55472f18 60%, transparent);
}
.archetype-leaf {
  container-type: inline-size;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  background: #f6f1e5;
}
.art-leaf {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
}
.art-leaf h3, .closing-question {
  padding-inline: 9%;
  color: var(--book-title-gold);
  font: 600 11.7cqi/1.03 var(--sans);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.art-leaf h3 span {
  display: block;
  margin-top: .35em;
  font: 400 6.9cqi/1.12 var(--serif);
  letter-spacing: -.01em;
}
.art-leaf img, .bound-book .art-leaf img {
  display: block;
  width: 94%;
  height: auto;
  margin: 0 auto 5%;
}
.quote-leaf { display: grid; align-items: center; }
.quote-leaf blockquote {
  padding: 0 9% 3% 12%;
  color: #20373a;
  font: 400 13.6cqi/1.06 var(--serif);
  letter-spacing: -.042em;
  text-wrap: balance;
}
.quote-leaf em { color: #704626; }
.era-dates { width: min(100%, 540px); margin-inline: auto; }
.excerpt-link { gap: .48em; color: var(--ink); font: 650 15px/1.4 var(--sans); text-decoration: none; }
.excerpt-link span:first-child { text-decoration: underline; text-underline-offset: .25em; }
.excerpt-link:hover span:first-child { text-decoration-thickness: 2px; }
.excerpt-link [aria-hidden] { color: var(--bronze); }
#year-1950:focus { outline: none; }
#year-1950:focus-visible time { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
/* The flowing copy supplies the accessible spread when its visual twin is turning. */
.has-story-motion .archetype-spread {
  position: absolute;
  inline-size: 1px; block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.story-book-position {
  position: sticky;
  top: var(--scene-top);
}
.story-book-frame { display: flex; justify-content: end; }
.bound-book {
  --opening-yaw: -15deg;
  --depth-to-spread: 0.102841333;
  --book-depth: calc(var(--reader-width) * var(--depth-to-spread));
  --half-depth: calc(var(--book-depth) / 2);
  position: relative;
  width: var(--reader-width);
  aspect-ratio: 4 / 3;
  perspective: calc(var(--reader-width) * 3.45);
  perspective-origin: var(--book-eye, 75%) 49%;
  transform: translate(calc(var(--book-x, -25%) + var(--ending-shift, 0px)), var(--book-y, 0px)) scale(var(--book-scale, 1));
}
.bound-book::before, .bound-book::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.bound-book::before {
  inset: -7% -8% -7%;
  background: radial-gradient(ellipse 28% 48% at 68% 53%, #b99a744d, #dfcba749 53%, transparent 100%);
  opacity: var(--closed-glow, .8);
}
.bound-book::after {
  inset: -12% -15%;
  background: url(assets/cover-binary-2x.webp) repeat center / 240px 144px;
  mask-image: radial-gradient(ellipse 30% 48% at 68% 49%, #000 8%, transparent 100%);
  opacity: var(--binary-ink, .48);
}
.book-platform {
  position: absolute;
  z-index: 1;
  inset: 0;
  transform: rotateY(var(--book-yaw, var(--opening-yaw))) rotateX(var(--book-tilt, 0deg));
  transform-origin: 75% center;
  transform-style: preserve-3d;
}
.paperback-back, .paperback-spine, .paperback-edge, .paperback-top, .paperback-bottom {
  position: absolute;
  backface-visibility: hidden;
  background-color: #e9dfc8;
}
.paperback-back {
  inset: 0 0 0 50%;
  transform: rotateY(180deg) translateZ(var(--half-depth));
  box-shadow: 0 8px 27px #49362236;
}
.paperback-spine, .paperback-edge { inset-block: 0; width: var(--book-depth); }
.paperback-spine {
  right: 50%;
  transform-origin: right center;
  transform: translateZ(var(--half-depth)) rotateY(-90deg);
  box-shadow: inset -3px 0 5px #63482034;
  filter: brightness(.91);
}
.paperback-edge {
  left: 100%;
  transform-origin: left center;
  transform: translateZ(var(--half-depth)) rotateY(90deg);
  background-image: repeating-linear-gradient(90deg, #f5edda 0 2px, #d5cbb480 3px 4px);
  box-shadow: inset 0 0 16px #735d3e59;
}
.paperback-top, .paperback-bottom {
  inset-inline: 50% 0;
  height: var(--book-depth);
  background-image: repeating-linear-gradient(0deg, #eee6d4 0 2px, #b7aa9166 3px 4px);
  box-shadow: inset 0 0 15px #715e4438;
}
.paperback-top {
  bottom: 100%;
  transform-origin: center bottom;
  transform: translateZ(var(--half-depth)) rotateX(90deg);
}
.paperback-bottom {
  top: 100%;
  transform-origin: center top;
  transform: translateZ(var(--half-depth)) rotateX(-90deg);
}
.bound-book[data-pose="front"] .leaf-front,
.bound-book[data-pose="back"] .leaf-front,
.bound-book[data-pose="turning"] .leaf-front { box-shadow: 0 6px 26px #47341d39; }
.book-folio, .page-turn-leaf {
  position: absolute;
  top: 0;
  block-size: 100%;
  inline-size: 50%;
}
.book-folio { background: var(--vellum); transform: translateZ(calc(var(--half-depth) - 1.5px)); }
.base-left {
  left: 0;
  border-radius: 2px 0 0 2px;
  box-shadow: -2px 3px 0 #ddd2bd, -3px 5px 0 #eee5d5, -5px 9px 21px #3b2b1b32;
}
.base-right {
  right: 0;
  border-radius: 0 2px 2px 0;
  box-shadow: 2px 3px 0 #e1d6c3, 3px 5px 0 #eee5d5, 5px 9px 21px #3b2b1b28;
}
/* A settled page can use the browser’s normal text rasterization between turns. */
.bound-book[data-pose="spread"] .book-platform {
  transform: scale(var(--folio-projection));
  transform-origin: 50% 49%;
  transform-style: flat;
}
.bound-book[data-pose="spread"] .book-folio { transform: none; }
.bound-book[data-pose="spread"] :is(.paperback-back, .paperback-spine, .paperback-edge, .paperback-top, .paperback-bottom) { visibility: hidden; }
.bound-book img { width: 100%; height: 100%; object-fit: cover; }
.base-left::after, .base-right::after, .leaf-side::after {
  content: "";
  position: absolute;
  inset: 0;
}
.base-left::after { background: linear-gradient(90deg, transparent 88%, #4b371819); }
.base-right::after { background: linear-gradient(90deg, #4b371820, transparent 12%); }
.page-turn-leaf {
  left: 50%;
  transform-style: preserve-3d;
  transform-origin: left center;
  transform: translateZ(var(--half-depth)) rotateY(var(--leaf-angle, 0deg));
  z-index: 2;
}
.leaf-side {
  position: absolute;
  inset: 0;
  background: var(--vellum);
  backface-visibility: hidden;
}
.leaf-back { transform: rotateY(180deg); }
.leaf-side::after {
  background: linear-gradient(90deg, #4b371820, transparent 35%, #4b371846);
  opacity: var(--leaf-shadow, 0);
}


.era-dates {
  display: grid;
  gap: clamp(16px, 1.9vw, 26px);
  margin-block: 0;
  padding: 0;
  list-style: none;
}
.era-dates li {
  display: grid;
  grid-template-columns: clamp(72px, 22vw, 96px) minmax(0, 1fr);
  align-items: start;
  gap: 3px clamp(12px, 1.5vw, 22px);
}
.era-dates li + li { border-block-start: 1px solid #dcd2c1; padding-top: clamp(15px, 1.8vw, 24px); }
.era-dates time {
  grid-column: 2;
  color: var(--bronze);
  font: 400 clamp(23px, 2.25vw, 31px)/1.1 var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -.03em;
}
.timeline-symbols { --minor-icon-ratio: .92; }
.timeline-symbols img { display: block; object-fit: contain; }
.era-dates p {
  grid-column: 2;
  color: var(--quiet);
  font-size: clamp(17px, 1.52vw, 20px);
  line-height: 1.35;
  text-wrap: pretty;
}

@media (min-width: 961px) {
  .has-story-motion .timeline { padding-block-end: var(--wrap-tail, 0px); }
  .timeline-eras {
    --timeline-icon-size: clamp(48px, 5.1vw, 72px);
    --spread-height: clamp(640px, 82svh, 880px);
    --year-row: 44px;
    --tick-center: calc(var(--year-row) / 2);
    --tick-size: 7px;
    display: grid;
    grid-auto-rows: 1fr;
    padding-block: clamp(34px, 4.4vw, 62px) clamp(30px, 3.5vw, 52px);
  }
  .timeline-era { display: grid; }
  #year-1975, #year-2050 { scroll-margin-block-start: calc(64svh - var(--spread-height) * .15); }
  #year-2000 { scroll-margin-block-start: calc(var(--spread-height) * .41 + 24px); }
  .timeline-era + .timeline-era { border: 0; }
  .era-spread {
    --era-columns: 2;
    grid-template-areas: "dates spread";
    grid-template-columns: clamp(235px, 24vw, 325px) minmax(0, 1fr);
    gap: 0 clamp(40px, 4.8vw, 74px);
    min-block-size: var(--spread-height);
    padding-block: 0;
  }
  .archetype-spread { grid-area: spread; align-self: start; margin-block-start: calc(var(--spread-height) * .07); }
  .era-dates { width: 100%; }
  /* These tracks place each 25-year step 68% of an Archetype row apart. */
  #trailblazers .era-dates { --year-tracks: minmax(0, 5fr) minmax(0, 68fr) minmax(0, 27fr); }
  #rockstars .era-dates { --year-tracks: minmax(0, 41fr) minmax(0, 59fr); }
  #artificial-engineers .era-dates { --year-tracks: minmax(0, 9fr) minmax(0, 68fr) minmax(0, 23fr); }
  .era-dates {
    grid-area: dates;
    contain: size;
    padding-inline-start: calc(var(--timeline-icon-size) + 10px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--year-tracks);
    gap: 0;
  }
  .era-dates::before {
    content: "";
    grid-area: 1 / 1 / -1 / 2;
    justify-self: start;
    inline-size: 1px;
    margin-inline-start: calc((var(--tick-size) - 1px) / 2);
    background: #aa9d88;
  }
  .timeline-era:first-of-type .era-dates::before { grid-row-start: 2; margin-block-start: var(--tick-center); }
  .timeline-era:last-of-type .era-dates::before { grid-row-end: 3; margin-block-end: calc(-1 * var(--tick-center)); }
  .era-dates li {
    position: relative;
    grid-area: 2 / 1;
    align-self: start;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--year-row) auto;
    align-items: center;
    gap: 5px 13px;
    padding-inline: clamp(14px, 1.25vw, 22px) 0;
  }
  .era-dates li + li { grid-row: 3; border: 0; padding-block: 0; }
  .era-dates li::before {
    content: "";
    position: absolute;
    inset-block-start: calc(var(--tick-center) - var(--tick-size) / 2);
    inset-inline-start: 0;
    inline-size: var(--tick-size);
    block-size: var(--tick-size);
    border-radius: 50%;
    background: var(--bronze);
  }
  .year-ink-print {
    position: absolute;
    inset-block-start: calc(100% + 12px);
    inset-inline-start: clamp(14px, 1.25vw, 22px);
    width: min(205px, calc(100% - 22px));
  }
  #year-2050 .year-ink-print {
    inset-block-start: auto;
    inset-block-end: calc(100% + 12px);
  }
  .era-dates time { grid-area: 1 / 1; font-size: clamp(32px, 2.85vw, 40px); }
  .timeline-symbols { display: contents; }
  .timeline-symbols img {
    --size: var(--timeline-icon-size);
    position: absolute;
    right: calc(100% + 9px + (var(--timeline-icon-size) - var(--size)) / 2);
    top: var(--tick-center);
    width: var(--size);
    height: var(--size);
    transform: translateY(-50%);
  }
  .timeline-symbols .timeline-minor {
    --size: calc(var(--timeline-icon-size) * var(--minor-icon-ratio));
    --third: calc(var(--year-step, var(--spread-height) * .68) / 3);
    top: calc(var(--tick-center) + var(--third));
  }
  .timeline-minor + .timeline-minor { top: calc(var(--tick-center) + 2 * var(--third)); }
  .era-dates p { grid-area: 2 / 1 / auto / -1; font-size: clamp(17px, 1.45vw, 20px); }

  /* In the flat reading layout each year owns a full engraving. The opening
     year of a chapter sets it below the actual spread; the second follows its caption. */
  .book-story:not(.has-story-motion) {
    .timeline-eras, .timeline-era { display: block; }
    .era-spread {
      --date-column: clamp(235px, 24vw, 325px);
      --column-gap: clamp(40px, 4.8vw, 74px);
      grid-template-columns: var(--date-column) minmax(0, 1fr);
      align-items: start;
      min-block-size: 0;
      container-type: inline-size;
    }
    .archetype-spread { margin-block-start: 0; }
    .era-dates {
      --print-width: min(800px, calc(100cqw - var(--timeline-icon-size) - 38px));
      --print-height: calc(var(--print-width) * 178 / 800);
      --after-date: clamp(38px, 7vh, 76px);
      contain: none;
      display: flex;
      flex-direction: column;
      align-self: stretch;
    }
    .era-dates::before { content: none; }
    .era-dates li {
      --copy-height: auto;
      grid-template-rows: auto auto;
      gap: 18px;
      align-self: stretch;
      padding-block-end: var(--after-date);
    }
    :is(#year-1950, #year-1975, #year-2000, #year-2025, #year-2050) {
      scroll-margin-block-start: clamp(14px, 4svh, 32px);
    }
    .era-dates li:first-child {
      /* Allow for the spread's 4:3 page and the navigation beneath it. */
      --copy-height: calc(min(680px, 100cqw - var(--date-column) - var(--column-gap)) * .75 + 56px);
    }
    .era-dates li::before { z-index: 1; }
    .era-dates li::after {
      content: "";
      position: absolute;
      inset: var(--tick-center) auto calc(-1 * var(--tick-center)) calc((var(--tick-size) - 1px) / 2);
      width: 1px;
      background: #aa9d88;
    }
    #year-2050::after { content: none; }
    .timeline-symbols .timeline-minor {
      --third: calc((100% - var(--after-date) + 12px) / 3);
    }
    .year-copy {
      display: grid;
      grid-area: 1 / 1;
      align-content: start;
      grid-template-rows: var(--year-row) auto;
      gap: 5px;
      min-block-size: var(--copy-height);
    }
    .year-ink-print { display: none; }
    .year-ink-wide {
      display: block;
      grid-area: 2 / 1;
      width: var(--print-width);
      height: var(--print-height);
      background: url(assets/impressions/languages.webp?v=f1e38cc401) 0 var(--ink-row) / 100% 500% no-repeat;
      print-color-adjust: exact;
      pointer-events: none;
    }
  }

}

.purchase {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: clamp(26px, 4.5svh, 48px) var(--gutter);
  background: var(--vellum);
}
.purchase-reading { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 22px; }
#get-the-book { scroll-margin-block-start: 52svh; }

.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 23px; padding-block: 18px; color: var(--quiet); font: 12px/1.5 var(--sans); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 5px 20px; }
.site-footer a { display: inline-flex; min-height: 44px; align-items: center; }
.is-embedded .review-link { display: none; }

.reading-dialog, .reader-page main {
  width: min(690px, 100%);
  padding: 0;
  color: var(--ink);
  background: var(--paper);
}
.reader-page main { margin-inline: auto; }
.reading-dialog {
  width: min(690px, calc(100% - 24px));
  max-height: calc(100dvh - 28px);
  border: 0;
  border-radius: 4px;
  box-shadow: 0 16px 65px #23190d33;
  overscroll-behavior: contain;
}
.reading-dialog::backdrop { background: #29241bd1; }
.reading-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 7px clamp(20px, 5vw, 56px);
  background: var(--paper);
}
.reading-bar .text-action { color: var(--quiet); }
.reading-dialog .reading-bar {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  height: 0;
  padding: 0 8px;
  pointer-events: none;
}
.reading-dialog .reading-bar button {
  width: 44px;
  margin-top: 4px;
  pointer-events: auto;
  background: #f8f3e7;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  font: 400 28px/1 var(--sans);
  text-decoration: none;
}
.reading-dialog .reading-bar button:is(:hover, :focus-visible) { background: var(--vellum); }
.reading-dialog .reading-leaf { padding-block-start: clamp(16px, 2.5vw, 28px); }
.reading-dialog .reading-leaf > :first-child { padding-inline-end: 36px; }
.reading-leaf { margin-inline: auto; padding: clamp(12px, 2.5svh, 30px) clamp(22px, 5vw, 56px) clamp(25px, 5svh, 54px); }
.reading-kicker { color: var(--bronze); font: 600 13px/1.45 var(--sans); }
.reading-leaf h1 {
  margin-block: 11px 8px;
  color: var(--ink);
  font: 400 clamp(34px, 4.7vw, 52px)/1.05 var(--serif);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.reading-byline { color: var(--quiet); font: 500 14px/1.5 var(--sans); }
.reading-prose { margin-block-start: clamp(21px, 3.2svh, 32px); font: 400 clamp(19px, 1.65vw, 22px)/1.52 var(--serif); }
.reading-prose p + p { margin-top: .85em; }
.reading-extra { margin-top: 18px; color: var(--quiet); }
.reader-jacket > a { display: block; width: min(200px, 65%); margin-top: 12px; }
.reader-jacket img { width: 100%; height: auto; }
.reading-content[aria-busy] { padding: 24px clamp(22px, 5vw, 56px); }

@media (max-width: 960px) {
  .closing-progression { inset-inline: 6% 4%; font-size: 12cqi; }
  .cover-journey { --credit-travel: 30svh; }
  .timeline-eras {
    --icon-step: clamp(54px, 14vw, 68px);
    --still-width: min(calc(100vw - 2 * var(--gutter) - var(--icon-step) - 16px), 390px, 58svh);
    --still-height: calc(var(--still-width) * .75);
    --date-step: calc(max(12rem, 23svh) + var(--still-height) + 78px);
    padding-block-start: 27px;
  }
  .timeline-era + .timeline-era { border: 0; }
  .era-spread {
    width: min(100%, calc(540px + 2 * var(--gutter)));
    grid-template-areas: "dates";
    gap: 0;
    padding-block: 0;
  }
  .era-dates { grid-area: dates; gap: 0; }
  .year-ink-print {
    grid-area: 3 / 2;
    align-self: start;
    margin-block-start: 8px;
    width: min(190px, 100%);
  }
  .book-story:not(.has-story-motion) .timeline-eras {
    /* Move the printed spread below the date, its caption and the impression. */
    --date-step: calc(max(12rem, 23svh) + 130px + var(--still-height) + 78px);
  }
  /* Without a dock, each chapter's art sits beneath its opening date, beside the icon rail. */
  .book-story:not(.has-story-motion) .archetype-spread {
    grid-area: dates;
    align-self: start;
    justify-self: end;
    width: var(--still-width);
    margin: calc(var(--date-step) - var(--still-height) - 78px) 0 0;
    z-index: 1;
  }
  .has-story-motion .timeline-eras {
    --date-step: clamp(240px, 40svh, 360px);
    padding-block-start: calc(var(--reader-clearance) * .5);
  }
  .era-dates li {
    grid-template-columns: var(--icon-step) minmax(0, 1fr);
    grid-template-rows: var(--icon-step) auto 1fr;
    column-gap: 16px;
    min-block-size: var(--date-step);
    padding-block: 0;
    align-items: start;
  }
  .era-dates li + li { border: 0; padding-block: 0; }
  .has-story-motion :is(.timeline-era, .era-dates li)[id] { scroll-margin-block-start: var(--year-lead); }
  .era-dates time { grid-area: 1 / 2; align-self: center; font-size: clamp(29px, 6.8vw, 37px); }
  .era-dates p { grid-area: 2 / 2; }
  .timeline-symbols {
    grid-area: 1 / 1 / -1 / 2;
    display: grid;
    grid-auto-rows: calc(var(--date-step) / 3);
    justify-items: center;
    align-items: start;
  }
  .timeline-symbols img { width: var(--icon-step); height: var(--icon-step); }
  .book-story:not(.has-story-motion) .era-dates li {
    position: relative;
    isolation: isolate;
    scroll-margin-block-start: clamp(32px, 8svh, 78px);
  }
  .book-story:not(.has-story-motion) .era-dates li::before {
    content: "";
    position: absolute;
    grid-area: 1 / 1 / -2 / -1;
    inset: -6px calc(-1 * var(--gutter));
    z-index: -1;
    pointer-events: none;
    background: var(--paper);
    box-shadow: 0 0 12px 5px var(--paper);
  }
  .timeline-symbols .timeline-minor {
    width: calc(var(--icon-step) * var(--minor-icon-ratio));
    height: auto;
    aspect-ratio: 1;
    margin-top: calc(var(--icon-step) * (1 - var(--minor-icon-ratio)) / 2);
  }
  #year-2050 { min-block-size: max(10rem, var(--date-step) * .65); }
  #year-2050 .timeline-symbols { grid-auto-rows: var(--icon-step); }
  .book-story {
    --hero-scale: 1.56;
    --reader-width: min(calc(100vw - 2 * var(--gutter)), 484px, 60svh);
    --scene-lead: clamp(48px, 9svh, 86px);
    --dock-padding: clamp(22px, 3.8svh, 36px);
    --reader-clearance: calc(var(--reader-height) + var(--dock-padding) + 64px);
    --year-lead: calc(var(--reader-clearance) + 12px);
  }
  .cover-chapter-inner { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .cover-chapter-inner { gap: 25px; }
  .cover-copy { width: min(100%, 560px); padding: 0; }
  .story-book-position {
    top: 0;
    padding-block: var(--dock-padding) 17px;
  }
  .story-book-position::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 -9px;
    opacity: var(--reader-paper-opacity, 0);
    background: linear-gradient(var(--reader-paper, var(--paper)) 94%, transparent);
  }
  .story-book-frame { justify-content: center; }
  .has-story-motion #foreword { margin-block-start: -67svh; }
  .has-story-motion #foreword .cover-chapter-inner,
  .has-story-motion #covers .cover-chapter-inner {
    min-block-size: max(55svh, calc(var(--reader-clearance) + 222px));
    padding-block: var(--reader-clearance) 31px;
  }
  .has-story-motion .cover-actions :is(a, button, summary) {
    scroll-margin-block: var(--reader-clearance) 14px;
  }
  .foreword-feature blockquote { font-size: clamp(35px, 7.65vw, 49px); }
  .foreword-feature figcaption { margin-block-start: 15px; }
  .foreword-feature figcaption strong { font-size: clamp(31px, 7.2vw, 42px); }
  .timeline-intro .display { font-size: clamp(42px, 7.5vw, 63px); }
  #opening { inset-block-start: calc(-1 * (var(--year-lead) + min(11svh, 75px))); }
}

@media (max-width: 755px) {
  .cover-journey { --travel: 70svh; }
  .cover-actions { gap: 0 13px; }
  .hand-stage {
    --arrival: 35%;
    width: clamp(425px, min(108%, 85svh), 590px);
    margin-inline: 0;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (min-width: 961px) and (min-aspect-ratio: 8/5) and (max-height: 800px) {
  .hand-stage { width: min(96%, max(425px, 76svh)); }
}

@media (max-height: 510px) and (orientation: landscape) {
  /* Arrive with both hands in view and room for Replay beneath them. */
  #promise { scroll-margin-block-start: 6svh; }
  .hand-stage { max-width: calc((94svh - 106px) * 1800 / 1118); }
}

@media (max-height: 510px) and (min-width: 525px) {
  .cover-journey { --invitation-room: 60px; }
  .cover-invitation { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 16px; }
}
@media (max-height: 510px) and (max-width: 524px) {
  .cover-journey { --jacket-width: min(80vw, 38svh); }
}
@media (max-height: 510px) and (min-width: 525px) {
  .cover-journey { --jacket-width: min(84vw, 42svh); --jacket-top: max(calc(60px + env(safe-area-inset-top, 0px)), 16svh); }
}

@media (max-height: 510px) and (max-width: 960px) and (orientation: landscape) {
  .has-story-motion #foreword { margin-block-start: -79svh; }
  .has-story-motion #foreword .cover-chapter-inner {
    padding-block-start: calc(var(--reader-clearance) - 5svh);
  }
}

@media (max-width: 960px) {
  .cover-toolbar {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "replay availability order" "navigation navigation navigation";
    gap: 12px;
    padding: max(14px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px));
  }
  .cover-toolbar .terminal-replay { grid-area: replay; }
  .cover-availability { position: static; grid-area: availability; justify-self: end; text-wrap: balance; }
  .cover-toolbar .pill-nav { grid-area: navigation; }
  .cover-controls .cover-toolbar > .preorder-button { grid-area: order; position: static; justify-self: end; }
  .cover-journey {
    --header-room: calc(126px + env(safe-area-inset-top, 0px));
    --jacket-width: min(84vw, 45svh, max(80px, calc((100svh - var(--header-room) - var(--invitation-room, 96px) - env(safe-area-inset-bottom, 0px)) / 1.5)));
    --jacket-top: max(calc(46svh - var(--jacket-width) * .75), var(--header-room));
  }
}
@media (max-width: 719px) {
  .cover-toolbar {
    gap: 8px;
    padding: max(12px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  }
  .cover-journey { --header-room: calc(118px + env(safe-area-inset-top, 0px)); }
}
@media (max-width: 719px) and (orientation: portrait) {
  /* Leave room for two lines of pitch, the 44px link and air around both. */
  .cover-journey { --invitation-room: calc(2 * clamp(20px, 3.2svh, 30px) * 1.22 + 68px); }
}
@media (max-width: 365px) {
  :root { --gutter: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .is-playing .hand { animation: none; }
  .hand { transform: none; opacity: 1; }
  .hand-stage .promise { opacity: 1; transition: none; }
}
