/* Caleb Maupin: the city he's building, at sunrise */
:root {
  --ink: #17130F; --night: #132131; --red: #B3361F; --flame: #DA5A2A; --ochre: #D6A23A;
  --parchment: #EFE4CC; --paper: #F7F1E4; --green: #3D7A4E; --muted: #5D4F40; --muted-night: #C8BFAE;
  --sky-blue: #A9CBE0; --sky-pale: #E3EEF2; --sky-gold: #F6D9A8; --sun: #FFE3A3; --haze: #B8C4C8; --glass: #DCE6EC;
  --display: "Big Shoulders Display", "Oswald", "Arial Narrow", sans-serif;
  --text: "Newsreader", Georgia, serif;
  --bar: 56px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shelf: 0 10px 24px rgba(23, 19, 15, .22), 0 2px 4px rgba(23, 19, 15, .18);

  --sc-canvas: #F7F1E4; --sc-ink: #17130F; --sc-ink-soft: #5D4F40; --sc-accent: #D6A23A; --sc-accent-ink: #17130F;
  --sc-font-text: var(--text); --sc-font-display: var(--display);
}
@media (min-width: 900px) { :root { --bar: 64px; } }

html { scroll-padding-top: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.55; letter-spacing: 0; }
@media (min-width: 900px) { body { font-size: 18px; } }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); line-height: 1; text-wrap: balance; }
p, figure, blockquote, ul { margin: 0; padding: 0; text-wrap: pretty; }
ul { list-style: none; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; border-radius: 3px; }
[hidden] { display: none !important; }
main > section, .journey > section { position: relative; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 900px) { .wrap { max-width: 1304px; padding: 0 32px; } }
@media (min-width: 1360px) { .wrap { max-width: min(1384px, calc(100% - 96px)); padding: 0 32px; } }
.grain { background-image: url(assets/grain.png); background-size: 128px 128px; }
.wide-only { display: none; }
.nw { white-space: nowrap; }
@media (min-width: 900px) { .wide-only { display: inline; } }

/* ---------- shared parts ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 6px 20px; border-radius: 3px; border: 0;
  font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; text-align: center; line-height: 1.1; cursor: pointer; transition: transform 120ms var(--ease); }
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-red { background: var(--red); color: var(--paper); }
.btn-ochre { background: var(--ochre); color: var(--ink); }
.btn-green { border: 2px solid var(--green); color: var(--green); }
.btn-line { border: 2px solid var(--ink); color: var(--ink); }
.textbtn { font: 500 17px/1.3 var(--text); color: inherit; text-decoration: underline; text-underline-offset: .22em; min-height: 44px; padding: 8px 0; }
.linkbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px; border: 1.5px solid currentColor; border-radius: 3px;
  font: 700 16px/1.1 var(--display); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.linkbtn::after { content: "\2192"; font-family: var(--text); }
.linkbtn[download]::after { content: "\2193"; }
.linkbtn.on-dark { color: var(--paper); }
.stop { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--muted); }
.stop-n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: var(--paper); font: 800 14px/24px var(--display); text-align: center; }
.stop-t { font: 700 14px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.joinline { font: italic 400 20px/1.35 var(--text); color: var(--muted); }
.h-big { font-weight: 900; font-size: 52px; }
@media (min-width: 900px) { .h-big { font-size: 88px; } }
.lede { margin-top: 14px; font-size: 18px; color: var(--muted); max-width: 60ch; }
.rule2 { height: 6px; border-top: 2px solid; border-bottom: 1px solid; }
.rays { position: absolute; border-radius: 50%; --c: var(--sun);
  background: repeating-conic-gradient(from 0deg, var(--c) 0 7.5deg, transparent 7.5deg 15deg);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%); mask-image: radial-gradient(circle, #000 20%, transparent 70%); }
.sweep { width: 100%; height: 100%; background: var(--green); clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%); }
.shelfbook { display: block; position: relative; }
.shelfbook img, .book-img { border-radius: 2px 4px 4px 2px; box-shadow: var(--shelf); }
.play { position: absolute; right: 12px; bottom: 12px; width: 56px; height: 56px; border-radius: 50%; background: var(--red); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.play::after { content: ""; position: absolute; left: 22px; top: 17px; border-left: 17px solid var(--paper); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.close { position: absolute; width: 44px; height: 44px; border-radius: 50%; }
.close::before, .close::after { content: ""; position: absolute; left: 11px; top: 21px; width: 22px; height: 2px; background: currentColor; transform: rotate(45deg); }
.close::after { transform: rotate(-45deg); }

/* ---------- top bar, menu, route ---------- */
.bar { position: fixed; z-index: 70; top: 0; left: 0; right: 0; height: var(--bar); display: flex; align-items: center; gap: 8px; padding: 0 16px; background: var(--parchment); }
.bar-name { margin-right: auto; font: 800 22px/1 var(--display); letter-spacing: .03em; color: var(--ink); text-decoration: none; white-space: nowrap; display: flex; align-items: center; min-height: 44px; }
.bar-invite { display: flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 3px; background: var(--red); color: var(--paper); font: 700 16px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.bar-menu { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; }
.bar-menu span { width: 22px; height: 2px; background: var(--ink); }
.bar-nav { display: none; }
@media (max-width: 359px) { .bar { padding: 0 10px; gap: 4px; } .bar-name { font-size: 19px; } .bar-invite { font-size: 14px; padding: 0 10px; } }
@media (min-width: 900px) {
  .bar { padding: 0 28px; gap: 28px; }
  .bar-name { font-size: 26px; }
  .bar-menu { display: none; }
  .bar-nav { display: flex; gap: 28px; }
  .bar-nav a { font: 500 16px/1 var(--text); color: var(--ink); text-decoration: none; padding: 14px 0; white-space: nowrap; }
  .bar-nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
}
.menu { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; border: 0; padding: 72px 24px 24px; background: var(--parchment); color: var(--ink); overflow-y: auto; }
.menu-close { top: 6px; right: 10px; }
.menu-links { display: flex; flex-direction: column; }
.menu-links a { font: 800 44px/1.2 var(--display); text-transform: uppercase; color: var(--ink); text-decoration: none; padding: 4px 0; }
.menu-follow { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 24px; padding-top: 12px; border-top: 2px solid rgba(23, 19, 15, .35); }
.menu-follow a { font: 500 18px/1 var(--text); color: var(--ink); padding: 14px 0; }

/* ---------- 1. hero ---------- */
.hero { height: 100vh; height: 100svh; min-height: 560px; overflow: hidden;
  background: linear-gradient(to bottom, #72BBF0 0%, #8ECAF1 12%, #B3DDF3 30%, #E7EBE1 50%, #FCEDC8 62%, #FDEFC0 80%); }
.scene { position: absolute; inset: 0; }
.world { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; }
.world img { max-width: none; }
.world > .city { position: absolute; left: 0; top: 0; width: 1280px; height: 720px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 30%, #000 44%); mask-image: linear-gradient(to bottom, transparent 0%, transparent 30%, #000 44%); }
.hero-rays { left: -70px; top: -268px; width: 1400px; height: 1400px; opacity: .3; will-change: transform; }
.sun { position: absolute; left: 280px; top: 82px; width: 700px; height: 700px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle closest-side, rgba(255, 240, 200, .95) 0, rgba(255, 227, 163, .55) 14%, rgba(255, 227, 163, 0) 55%); }
.wash { position: absolute; inset: 0; background: var(--sky-gold); opacity: 0; pointer-events: none; }
.hero-text { position: absolute; z-index: 5; }
.hero-name { font-weight: 900; line-height: .86; letter-spacing: -.005em; color: var(--ink); }
.hero-name .line { display: block; overflow: hidden; line-height: .98; height: .98em; margin-bottom: -.12em; padding-top: 0; }
.hero-name .line > span { display: block; }
.hero-name .line:last-child { margin-bottom: 0; }
.hero-roles { font: italic 500 16px/1.4 var(--text); color: var(--muted); }
.hero-roles span { white-space: nowrap; }
.hero-buttons { position: absolute; z-index: 5; display: flex; gap: 10px; }
.hero-buttons .btn { min-height: 52px; }
.portrait-move { position: absolute; z-index: 5; }
.portrait { width: 100%; height: 100%; border: 3px solid var(--ink); border-radius: 999px 999px 0 0; overflow: hidden; box-shadow: 0 18px 40px rgba(19, 33, 49, .25); background: var(--night); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }

/* stacked layout: phones, tablets, narrow windows */
.stacked .world > .city { -webkit-mask-image: linear-gradient(to bottom, transparent 26%, #000 39%); mask-image: linear-gradient(to bottom, transparent 26%, #000 39%); }
.stacked .hero-text { left: 16px; top: 68px; right: calc(16px + var(--pw) + 12px); }
.stacked .hero-name { font-size: clamp(48px, min(15vw, 12.5vh), 168px); }
.stacked .hero-roles { margin-top: 8px; }
.stacked .portrait-move { right: 16px; top: 68px; width: var(--pw); height: var(--ph); }
.stacked { --pw: 132px; --ph: 178px; }
.stacked .hero-buttons { left: 16px; right: 16px; bottom: 14px; max-width: 560px; margin: 0 auto; }
.stacked .hero-buttons .btn { flex: 1; padding: 4px 8px; }
.stacked .wide-only { display: none; }
@media (max-width: 359px) { .stacked { --pw: 104px; --ph: 140px; } .stacked .hero-roles { font-size: 14px; } .hero-buttons .btn { font-size: 16px; } }
@media (min-width: 600px) { .stacked { --pw: 180px; --ph: 243px; } .stacked .hero-roles { font-size: 20px; } }
@media (max-height: 599px) { .stacked .hero-buttons .btn { min-height: 48px; } }

@media (min-width: 900px) { .stacked .hero-text { left: 28px; top: 88px; } .stacked .portrait-move { right: 28px; top: 88px; } }

/* wide layout */
.hero:not(.stacked) .hero-text { left: max(40px, calc(50% - 640px)); top: 118px; }
.hero:not(.stacked) .hero-name { font-size: min(168px, 15vh); }
.hero:not(.stacked) .hero-roles { margin-top: 16px; font-size: clamp(18px, 2.7vh, 24px); }
.hero:not(.stacked) .hero-buttons { left: max(40px, calc(50% - 640px)); gap: 12px; }
.hero:not(.stacked) .hero-buttons .btn { width: var(--bw, 220px); padding: 6px 8px; }
.hero:not(.stacked) .portrait-move { right: max(40px, calc(50% - 640px)); top: 92px; width: 270px; height: 365px; }
@media (max-height: 760px) { .hero:not(.stacked) .portrait-move { width: 200px; height: 270px; } }
@media (min-width: 1360px) { .hero:not(.stacked) .hero-text, .hero:not(.stacked) .hero-buttons { left: max(80px, calc(50% - 640px)); } }

/* load motion */
.js .hero-name .line > span { opacity: 0; transform: translateY(70%); }
.js.go .hero-name .line > span { opacity: 1; transform: none; transition: transform 600ms var(--ease) 400ms, opacity 400ms ease 400ms; }
.js.go .hero-name .line + .line > span { transition-delay: 520ms, 520ms; }
.js .hero-roles, .js .hero-buttons .btn { opacity: 0; transform: translateY(14px); }
.js.go .hero-roles, .js.go .hero-buttons .btn { opacity: 1; transform: none; transition: opacity 400ms ease 1100ms, transform 400ms var(--ease) 1100ms; }
.js.go .hero-buttons .btn { transition-delay: 1180ms; }
.js.go .hero-buttons .btn + .btn { transition-delay: 1260ms; }
.js.go.loaded .hero-buttons .btn { transition: transform 120ms var(--ease); }
.js .portrait { opacity: 0; transform: translateY(24px); }
.js.go .portrait { opacity: 1; transform: none; transition: opacity 700ms ease 150ms, transform 700ms var(--ease) 150ms; }
.js .wash { opacity: .7; }
.js.go .wash { opacity: 0; transition: opacity 1500ms cubic-bezier(.65, 0, .75, .6) 150ms; }
.js .hero .sun { transform: translateY(30px) scale(.8); opacity: .35; }
.js.go .hero .sun { transform: none; opacity: 1; transition: transform 1900ms cubic-bezier(.45, .05, .35, 1) 150ms, opacity 1900ms ease-in-out 150ms; }
.js .hero-rays { opacity: 0; }
.js.go .hero-rays { opacity: .3; transition: opacity 1400ms ease; }

/* ---------- towers (hero and close) ---------- */
.towers { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 630px 500px; pointer-events: none; z-index: 2; }
.tw { position: absolute; bottom: 220px; pointer-events: none; display: block; text-align: left; }
.tw:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.tw > .lift { position: absolute; inset: 0; transform-origin: 50% 100%; transition: transform 240ms var(--ease), filter 240ms; }
.tw .front, .tw .side, .tw .crown, .tw .wins, .tw .band { position: absolute; display: block; }
.tw .front, .tw .side, .tw .crown { pointer-events: auto; }
button.tw .front, button.tw .side, button.tw .crown { cursor: pointer; }
.tw .front { bottom: 0; overflow: hidden; border-radius: 2.5px 1px 0 0; background-color: var(--spine);
  background-image: linear-gradient(90deg, rgba(0, 0, 0, .34) 0, rgba(255, 255, 255, .2) 13%, rgba(255, 255, 255, 0) 34%, rgba(0, 0, 0, 0) 76%, rgba(0, 0, 0, .28) 100%);
  box-shadow: inset 0 0 0 .7px rgba(255, 246, 225, .4), 0 0 0 .5px rgba(23, 19, 15, .5); }
.tw .side { bottom: 0; overflow: hidden; background: var(--spine); clip-path: polygon(0 0, 100% var(--drop), 100% 100%, 0 100%); }
.tw .side img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: fill; filter: brightness(.9); }
.tw .side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 22%); }
/* the page block, showing between the two boards */
.tw .pages { position: absolute; z-index: 1; left: 0; right: 1.2px; top: 0; height: 100%;
  background: repeating-linear-gradient(180deg, #FFF8E6 0 1px, #D9CBA9 1px 1.6px); clip-path: polygon(0 1.2px, 100% calc(var(--drop) + 1.2px), 100% calc(var(--drop) + 6px), 0 6px); }
.tw .band { left: 0; right: 0; height: 4.6px; border-top: 1.5px solid var(--gilt); border-bottom: .8px solid var(--gilt); }
.tw .band.up { top: 24px; }
.tw .band.low { bottom: 32px; }
.tw .title { position: absolute; z-index: 2; left: 50%; top: 31px; height: calc(100% - 70px); transform: translateX(-50%); writing-mode: vertical-rl; text-align: center;
  font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; line-height: 1.04; white-space: nowrap; color: var(--ink-on); }
.tw .author { position: absolute; z-index: 2; left: 0; right: 0; bottom: 21px; font: 800 7px/1 var(--display); letter-spacing: .08em; text-align: center; color: var(--gilt); }
.tw.low .band.low, .tw.low .author { display: none; }
.tw.low .title { height: calc(100% - 50px); }
.tw .wins { display: flex; justify-content: center; gap: 3px; }
.tw .wins i { display: block; background: linear-gradient(160deg, #F4FBFF, #9FCBE6); }
.tw .wins.top { left: 0; right: 0; top: 8px; }
.tw .wins.top i { width: 6px; height: 11px; border-radius: 3px 3px 0 0; box-shadow: 0 0 0 .8px var(--gilt); }
.tw .wins.door { left: 0; right: 0; bottom: 0; height: 17px; align-items: flex-end; }
.tw .wins.door i { width: 7px; height: 12px; margin-bottom: 2px; box-shadow: 0 0 0 .8px var(--gilt); }
.tw .wins.door i:nth-child(2) { width: 10px; height: 16px; margin-bottom: 0; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #FFF0BF, #F2B84B); }
.tw .step { background: var(--spine) linear-gradient(90deg, rgba(0, 0, 0, .3), rgba(255, 255, 255, .22) 20%, rgba(0, 0, 0, .22)); border-top: 1.5px solid var(--gilt); }
.tw .wins.roofline { left: 0; right: 0; bottom: 2px; gap: 2.5px; }
.tw .wins.roofline i { width: 4px; height: 6px; }
.tw .ledge { background: var(--gilt); border-radius: 1px; }
.tw .mast { background: linear-gradient(90deg, #E9BC5E, #8A6420); }
.tw .light { border-radius: 50%; background: #D8442A; box-shadow: 0 0 6px #FF6A3A; }
/* a picked tower steps forward and glows; the others step back */
@media (hover: hover) { button.tw:hover > .lift { transform: translateY(-5px); filter: drop-shadow(0 0 5px #FFE9AE); } }
.tw.spot { z-index: 3; }
button.tw.spot > .lift, .tw.spot > .lift { transform: translateY(-10px) scale(1.07); filter: drop-shadow(0 0 2px #FFF) drop-shadow(0 0 5px #FFC23D) drop-shadow(0 0 14px #FFB01F); }
.hero.picked .tw:not(.spot) > .lift { filter: saturate(.55) brightness(.82); }

.hint { position: absolute; z-index: 5; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: var(--paper); box-shadow: 0 3px 10px rgba(19, 33, 49, .25);
  font: italic 500 14px/1.3 var(--text); color: var(--ink); white-space: nowrap; pointer-events: none; transition: opacity 200ms; }
.js .hint { opacity: 0; }
.js.go.loaded .hint, .reduced .hint { opacity: 1; }
.hero.picked .hint { opacity: 0 !important; }
.tcard { position: absolute; z-index: 9; width: min(440px, calc(100% - 24px)); display: grid; grid-template-columns: 96px 1fr; column-gap: 14px; row-gap: 10px; align-items: start;
  padding: 14px; border-radius: 8px; background: var(--paper); box-shadow: 0 18px 44px rgba(19, 33, 49, .35), 0 0 0 2px var(--ochre); }
.tcard img { width: 96px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px 4px 4px 2px; box-shadow: var(--shelf); }
.tcard h2 { padding-right: 34px; font-weight: 800; font-size: 23px; line-height: 1.05; }
.tc-meta { margin-top: 4px; font-size: 14px; color: var(--muted); }
.tc-blurb { margin-top: 6px; font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tc-buttons { grid-column: 1 / -1; display: flex; gap: 8px; }
.tc-buttons .btn { flex: 1; min-height: 44px; padding: 4px 8px; font-size: 16px; }
.tc-close { top: 2px; right: 2px; color: var(--ink); }
.tcard.snug .tc-blurb { -webkit-line-clamp: 2; }
.tcard.compact { grid-template-columns: 62px 1fr; padding: 10px; row-gap: 8px; }
.tcard.compact img { width: 62px; }
.tcard.compact h2 { font-size: 19px; }
.tcard.compact .tc-blurb { display: none; }
@media (prefers-reduced-motion: reduce) { .js .hint { opacity: 1; } }
.hero .away { opacity: 0 !important; visibility: hidden; transition: opacity 200ms, visibility 200ms !important; }
@media (min-width: 900px) { .tcard { grid-template-columns: 116px 1fr; padding: 18px; } .tcard img { width: 116px; } }
/* at night the windows come on */
.night .tw .front, .night .tw .step { filter: brightness(.68) saturate(.85); }
.night .tw .side img { filter: brightness(.42); }
.night .tw .pages { opacity: .35; }
.night .tw .title { filter: brightness(1.35); }
.night .tw .wins i { background: #1D2D45; transition: background-color 300ms, box-shadow 300ms; }
.night.lit .tw .wins i { background: #FFD77A; box-shadow: 0 0 6px 1px rgba(255, 200, 90, .75); }
.night .tw .light { box-shadow: none; opacity: .35; transition: opacity 600ms, box-shadow 600ms; }
.night.lit .tw .light { opacity: 1; box-shadow: 0 0 8px 2px #FF6A3A; }
.train { position: absolute; left: 0; top: 489px; height: 11px; width: 92px; z-index: 4; pointer-events: none; will-change: transform; }
.train img { display: block; width: 92px; height: 11px; }
.night .train::after { content: ""; position: absolute; left: 11px; right: 11px; top: 2.8px; height: 2.6px; background: repeating-linear-gradient(90deg, #FFD15C 0 3.4px, transparent 3.4px 4.6px); filter: drop-shadow(0 0 2px #FFE3A3); }


.intro { padding: 40px 24px; text-align: center; font-size: 18px; color: var(--muted); background: var(--paper); }
@media (min-width: 900px) { .intro { font-size: 22px; } }

/* ---------- 2. the new collection ---------- */
.new-act { background: linear-gradient(to bottom, var(--sky-pale), var(--paper)); }
.new-stage { display: flex; flex-direction: column; align-items: center; padding: 80px 16px 0; --bh: clamp(195px, calc(100svh - 440px), 300px); }
.new-copy { width: 100%; max-width: 560px; }
.new-copy .stop { margin-bottom: 12px; }
.new-copy { position: relative; z-index: 5; }
.new-copy h2 { font-weight: 800; font-size: 34px; line-height: .95; }
.book-area { pointer-events: none; position: relative; width: 100%; height: var(--bh); margin-top: 16px; flex: none; }
.book-anchor { --bw: calc(var(--bh) * 2 / 3); --bd: calc(var(--bh) * .1133); position: absolute; left: 50%; top: 0; width: 0; height: var(--bh); }
.book3d { position: absolute; z-index: 3; left: calc(var(--bw) / -2); top: 0; width: var(--bw); height: var(--bh); perspective: 1400px; }
.book { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: translateY(30px) rotateY(84deg); }
.face { position: absolute; left: 50%; top: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; height: var(--bh); margin-top: calc(var(--bh) / -2); }
.face-front, .face-back { width: var(--bw); margin-left: calc(var(--bw) / -2); transform: translateZ(calc(var(--bd) / 2)); }
.face-back { transform: rotateY(180deg) translateZ(calc(var(--bd) / 2)); background: #bfbebe; }
.face-front img { width: 100%; height: 100%; object-fit: cover; }
.face-spine { width: var(--bd); margin-left: calc(var(--bd) / -2); transform: rotateY(-90deg) translateZ(calc(var(--bw) / 2)); background: #bfbebe; color: #15110e; overflow: hidden; }
.face-edge { width: var(--bd); margin-left: calc(var(--bd) / -2); transform: rotateY(90deg) translateZ(calc(var(--bw) / 2)); background: repeating-linear-gradient(90deg, var(--paper) 0 2px, #E2D6BD 2px 3px); }
.spine-title { position: absolute; left: 50%; top: calc(var(--bh) * .065); transform: translateX(-50%); writing-mode: vertical-rl; font: 800 calc(var(--bh) * .052)/1 var(--display); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.spine-author { position: absolute; left: 0; right: 0; bottom: calc(var(--bh) * .035); text-align: center; font: 800 calc(var(--bd) * .29)/1 var(--display); letter-spacing: .04em; }
.spine-glass { position: absolute; inset: 0; background:
    repeating-linear-gradient(90deg, transparent 0 7px, rgba(255, 250, 235, .35) 7px 8px),
    repeating-linear-gradient(180deg, transparent 0 10px, rgba(255, 250, 235, .35) 10px 11px),
    linear-gradient(to bottom, rgba(190, 225, 245, .45) 0%, rgba(190, 225, 245, 0) 38%, rgba(253, 236, 200, 0) 62%, rgba(253, 236, 200, .75) 100%),
    rgba(220, 230, 236, .38); }
.spine-crown { position: absolute; z-index: 4; width: 0; height: 0; }
.spine-crown i { position: absolute; display: block; }
.spine-crown .cap { left: calc(var(--bd) * -.32); width: calc(var(--bd) * .64); bottom: 0; height: calc(var(--bh) * .03); background: #B9C7D1; }
.spine-crown .mast { left: -1.5px; width: 3px; bottom: calc(var(--bh) * .03); height: calc(var(--bh) * .11); background: #8A95A0; }
.spine-crown .light { left: -3.5px; width: 7px; height: 7px; bottom: calc(var(--bh) * .14 - 1px); border-radius: 50%; background: #D8442A; box-shadow: 0 0 10px #FF6A3A; }
.book-shadow { position: absolute; z-index: 2; left: calc(var(--bw) * -.5); top: calc(var(--bh) + 14px); width: var(--bw); height: 18px; border-radius: 50%; background: rgba(23, 19, 15, .45); filter: blur(9px); opacity: 0; }
.ground { position: absolute; z-index: 1; left: -50vw; width: 100vw; top: calc(var(--bh) * 1.036 + 30px); color: rgba(19, 33, 49, .5); }
.faint { position: absolute; z-index: 1; left: 0; top: calc(var(--bh) * 1.036 + 30px); width: 0; height: 0; }
.faint-clip { position: absolute; left: -50vw; bottom: 0; width: 100vw; height: calc(var(--bh) * 1.5); overflow: hidden; }
.faint-world { position: absolute; left: 50%; bottom: 0; width: 0; height: 0; transform-origin: 0 100%; opacity: .22; }
.faint-world .tw { bottom: 0; pointer-events: none; }
.faint-world .tw * { pointer-events: none !important; }
/* the book that turns wears the same bands and windows as its tower */
.face-spine::before { content: ""; position: absolute; z-index: 2; left: 0; right: 0; top: 3%; bottom: 9%; border-top: 3px double #7A5312; border-bottom: 3px double #7A5312; pointer-events: none; }
@media (max-width: 899px) { .spine-crown .mast, .spine-crown .light { display: none; } }
.sweep-wrap { position: absolute; }
.book-area .sweep-wrap { z-index: 0; left: calc(var(--bw) * -.7); top: calc(var(--bh) * .3); width: calc(var(--bw) * 1.4); height: calc(var(--bh) * .4); }
.book-area .sweep { opacity: .3; transform: rotate(-8deg); }
.new-area { position: relative; flex: 1; width: 100%; max-width: 560px; margin-top: 62px; min-height: 0; }
.inside, .details { position: absolute; left: 0; right: 0; top: 0; }
.inside-h { font: 700 15px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.inside li { position: relative; padding-left: 20px; font: italic 500 19px/1.38 var(--text); }
.inside li::before { content: ""; position: absolute; left: 0; top: calc(.5lh - 4px - .15em); width: 8px; height: 8px; background: var(--ochre); }
.details { text-align: center; }
.details h3 { font: 600 clamp(21px, 6.2vw, 26px)/1.12 var(--text); }
.det-sub { font: italic 400 18px/1.35 var(--text); }
.det-meta { margin-top: 4px; font-size: 15px; line-height: 1.35; color: var(--muted); }
.det-buttons { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 18px; margin-top: 10px; }
.det-rec { margin-top: 12px; padding-left: 10px; border-left: 3px solid var(--ochre); text-align: left; }
.det-rec p { font: italic 400 16px/1.3 var(--text); }
.det-rec footer { margin-top: 3px; font: 700 12px/1.3 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 359px) { .new-copy h2 { font-size: 28px; } }
@media (max-width: 899px) and (max-height: 799px) {
  .new-stage { --bh: clamp(195px, calc(100svh - 468px), 300px); }
  .inside li { font-size: 16px; line-height: 1.3; }
  .new-area { margin-top: 48px; }
  .det-sub { font-size: 16px; } .det-meta { font-size: 13px; } .det-buttons { margin-top: 6px; } .det-buttons .btn { min-height: 42px; font-size: 16px; }
  .det-rec { margin-top: 6px; } .det-rec p { font-size: 14px; line-height: 1.22; }
}
@media (max-width: 899px) and (max-height: 600px) {
  .new-stage { --bh: 180px; }
  .new-stage .stop { display: none; }
  .new-area { margin-top: 44px; }
  .inside li { font-size: 14.5px; line-height: 1.24; padding-left: 16px; }
  .inside li::before { width: 8px; height: 8px; top: calc(.5lh - 3.5px - .15em); width: 7px; height: 7px; }
  .inside-h { font-size: 13px; margin-bottom: 2px; }
  .det-buttons { column-gap: 12px; } .det-buttons .btn { padding: 4px 12px; font-size: 15px; } .det-buttons .textbtn { font-size: 15px; }
  .details h3 { font-size: 18.5px; }
  .det-rec { display: none; }
}
@media (min-width: 900px) {
  .new-stage { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: 1fr auto auto 1fr; column-gap: 24px; align-items: center; padding: 88px max(32px, calc(50% - 620px)) 24px; --bh: clamp(300px, calc(100svh - 250px), 480px); }
  @supports (height: 100svh) { .new-stage { --bh: clamp(300px, calc(100svh - 250px), 480px); } }
  .book-area { grid-column: 2 / 7; grid-row: 2 / 4; margin: 0; }
  .new-copy { grid-column: 8 / 13; grid-row: 2; max-width: none; align-self: end; }
  .new-copy h2 { font-size: clamp(40px, 4.2vw, 60px); }
  .new-area { grid-column: 8 / 13; grid-row: 3; height: 330px; margin-top: 24px; max-width: none; align-self: start; }
  .inside li { font-size: 21px; line-height: 1.55; }
  .details { text-align: left; }
  .details h3 { font-size: clamp(23px, 2.3vw, 30px); }
  .det-buttons { justify-content: flex-start; margin-top: 16px; }
  .det-rec { margin-top: 20px; }
  .det-rec p { font-size: 18px; }
}

.alsonew { padding-top: 48px; padding-bottom: 56px; }
.alsonew h2 { font-weight: 800; font-size: 30px; margin-bottom: 20px; }
.also-list { display: grid; gap: 32px; }
.also { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: start; }
.also-cover img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.also h3 { font: 600 20px/1.15 var(--text); }
.also-sub { font: italic 400 16px/1.35 var(--text); margin-top: 2px; }
.also-meta { font-size: 14px; color: var(--muted); margin-top: 6px; }
.also-blurb { font-size: 16px; line-height: 1.45; margin-top: 8px; }
.also .btn { margin-top: 12px; min-height: 44px; font-size: 16px; }
@media (max-width: 359px) { .also > div { display: contents; } .also { row-gap: 0; column-gap: 12px; } .also-cover { grid-row: span 3; } .also { grid-template-columns: 88px 1fr; } .also h3 { font-size: 16px; } .also-blurb, .also .btn { grid-column: 1 / -1; } .also .btn { justify-self: start; } }
@media (max-width: 899px) { .also h3 { font-size: 18px; } .also h3.one-line { white-space: nowrap; } }
@media (max-width: 374px) { .also h3 { font-size: 17px; } }
@media (min-width: 900px) and (max-width: 1199px) { .also-list .also { grid-template-columns: 130px 1fr; gap: 18px; } .also-list .also h3 { font-size: 21px; } }
@media (min-width: 900px) { .also-list { grid-template-columns: 1fr 1fr; gap: 48px; } .also { grid-template-columns: 180px 1fr; gap: 24px; } .also h3 { font-size: 24px; } }
.one-of { margin-top: 56px; text-align: center; }
.down { display: flex; justify-content: center; width: 48px; margin: 8px auto 0; padding: 6px 0; color: var(--red); }

/* ---------- 3. library ---------- */
#library { background-color: var(--paper); padding-top: 64px; padding-bottom: 72px; }
@media (min-width: 900px) { #library { padding-top: 120px; } }
.shelf { position: relative; display: flex; align-items: flex-end; gap: 3px; margin-top: 24px; padding: 18px 2px 0; overflow-x: auto; overscroll-behavior-x: contain; border-bottom: 8px solid var(--ink); scrollbar-width: thin; }
.shelf-year { flex: none; align-self: stretch; display: flex; align-items: flex-end; padding: 0 4px 8px 10px; writing-mode: vertical-rl; transform: rotate(180deg); font: 800 20px/1 var(--display); letter-spacing: .08em; color: var(--red); }
.shelf-year:first-child { padding-left: 0; }
.spine { flex: none; position: relative; width: var(--w); height: var(--h); display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 3px 3px 0 0; cursor: pointer;
  background: var(--spine) linear-gradient(90deg, rgba(0, 0, 0, .3), rgba(255, 255, 255, .18) 16%, rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, .26)); transition: transform 180ms var(--ease), opacity 250ms; }
.spine::before, .spine::after { content: ""; position: absolute; left: 0; right: 0; height: 5px; border-top: 1.5px solid #D6A23A; border-bottom: 1px solid #D6A23A; }
.spine::before { top: 9px; } .spine::after { bottom: 9px; }
.spine span { height: calc(100% - 36px); overflow: hidden; writing-mode: vertical-rl; text-align: center; text-wrap: balance; font: 800 14px/1.08 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--ink-on); }
@media (hover: hover) { .spine:hover { transform: translateY(-8px); } }
.spine:focus-visible { outline-offset: -3px; }
.spine.off { opacity: .22; }
.spine.found { transform: translateY(-14px); box-shadow: 0 0 0 3px var(--ochre), 0 0 18px var(--ochre); }
.shelf-cap { margin-top: 8px; font: italic 400 15px/1.4 var(--text); color: var(--muted); }
.filters { margin-top: 30px; border: 1.5px solid rgba(23, 19, 15, .3); border-radius: 8px; background: var(--paper); }
.frow { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.frow + .frow { border-top: 1.5px solid rgba(23, 19, 15, .3); background: rgba(214, 162, 58, .14); }
.flabel { font: 800 15px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
@media (min-width: 900px) { .frow { flex-direction: row; align-items: center; gap: 16px; } .flabel { flex: 0 0 76px; } }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 8px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 999px; font: 700 16px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.chip::before { content: ""; position: absolute; inset: -4px 0; }
.chip small { font: 400 14px/1 var(--text); letter-spacing: 0; }
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--paper); }
.chip:disabled { opacity: .35; cursor: default; }
.fromcity { margin-top: 10px; padding: 8px 14px; border-left: 4px solid var(--ochre); background: rgba(214, 162, 58, .16); font-size: 16px; }
.fromcity .textbtn { display: inline-block; }
.card.found { outline: 4px solid var(--ochre); outline-offset: 6px; border-radius: 4px; box-shadow: 0 0 0 10px rgba(214, 162, 58, .22); }
.viewline { margin-top: 18px; font: italic 400 16px/1.4 var(--text); color: var(--muted); min-height: 1.4em; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; margin-top: 16px; align-content: start; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 28px; max-width: 1040px; margin-left: auto; margin-right: auto; } }
.card { display: flex; flex-direction: column; align-items: stretch; text-align: left; color: var(--ink); min-width: 0; }
.card-box { display: flex; align-items: flex-end; justify-content: center; width: 100%; aspect-ratio: 2 / 3; min-height: 0; }
.card-book { position: relative; display: block; width: 100%; max-height: 100%; transition: transform 200ms var(--ease); }
.card-book img { width: 100%; height: auto; }
.card-book::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 2px 0 0 2px; background: linear-gradient(90deg, rgba(0, 0, 0, .12) 0 3px, rgba(255, 255, 255, .25) 3px 4px); }
@media (hover: hover) { .card:hover .card-book { transform: translateY(-6px); } }
.card-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 12px; font: 600 16px/1.25 var(--text); }
.card-meta { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.card-tags { display: flex; flex-wrap: wrap; gap: 3px 10px; margin-top: 6px; }
.tag { font: 700 12px/1.25 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tag-kind { color: var(--ink); } .tag-red { color: var(--red); } .tag-green { color: var(--green); }
.more-row { display: flex; justify-content: center; margin-top: 32px; }
.fly-ghost { position: absolute; z-index: 2; margin: 0; pointer-events: none; }

/* ---------- the platform and the track ---------- */
.journey { position: relative; overflow: clip; }
.platform { background: var(--paper) url(assets/grain.png); padding-top: 8px; }
.platform-line { max-width: 28ch; padding-left: 40px; }
.platform-yard { position: relative; height: 144px; margin-top: 24px; }
.sign { position: absolute; left: 56px; top: 56px; margin: 0; padding: 8px 14px 8px 8px; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); background: var(--paper); }
.track { position: absolute; z-index: 2; width: 14px; margin-left: -7px; left: 24px; top: 0; height: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 2px, var(--ink) 2px 4px, transparent 4px 10px, var(--ink) 10px 12px, transparent 12px), repeating-linear-gradient(180deg, var(--ink) 0 1px, transparent 1px 12px); }
.toptrain { position: absolute; z-index: 4; left: 24px; top: 0; margin-left: -15px; width: 30px; height: 152px; pointer-events: none; will-change: transform; filter: drop-shadow(3px 4px 4px rgba(23, 19, 15, .35)); }
.toptrain svg { display: block; width: 100%; height: 100%; }
@media (min-width: 900px) {
  .platform-line { margin: 0 auto; padding: 0; text-align: center; }
  .track { left: 50%; }
  .toptrain { left: 50%; margin-left: -19px; width: 38px; height: 192px; }
  .platform-yard { height: 156px; }
  .sign { left: calc(50% + 40px); }
}

/* ---------- 4. life ---------- */
#life { background-color: var(--parchment); border-top: 2px solid var(--ink); padding-bottom: 96px; }
#life::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 1px; background: var(--ink); }
.life-wrap { padding-left: 56px; }
#life h2 { padding-top: 48px; font-weight: 900; font-size: 48px; line-height: .95; }
.station { position: relative; margin-top: 56px; }
.marker { position: absolute; z-index: 3; left: -40px; top: 22px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); transition: background-color 200ms, border-color 200ms; }
.station.reached .marker { background: var(--red); }
.st-time { font: 700 15px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.station h3 { margin: 4px 0 10px; font-weight: 800; font-size: 30px; }
.st-text > p:not(.st-time) { font-size: 18px; max-width: 60ch; }
.st-text > p + p:last-child { margin-top: 12px; }
.st-text blockquote { margin-top: 18px; padding-left: 14px; border-left: 3px solid var(--red); }
.st-text blockquote p { font: italic 500 19px/1.4 var(--text); }
.st-text blockquote footer { margin-top: 6px; font: 700 12px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.st-media { margin-top: 20px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.st-pic { width: 100%; }
.st-pic img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.st-pic .vcard { display: block; position: relative; width: 100%; }
.st-pic figcaption { margin-top: 8px; font: italic 400 15px/1.35 var(--text); color: var(--muted); }
.st-pic figcaption .textbtn { font-style: italic; font-size: 15px; color: var(--ink); padding: 4px 0; }
.vcard { display: block; position: relative; width: 100%; }
.st-cover { width: 190px; }
.st-cover button { display: block; text-align: left; width: 100%; }
.st-cover img { width: 96px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.st-cover button > span { display: block; margin-top: 10px; font: italic 400 14px/1.3 var(--text); color: var(--ink); text-decoration: underline; text-underline-offset: .22em; }
.js .station .st-text, .js .station .st-media > figure { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.st-cover img { transform: rotate(3deg); }
.js .station .st-cover { opacity: 0; transform: translateY(20px); transition: opacity 500ms var(--ease) 150ms, transform 500ms var(--ease) 150ms; }
.js .station .st-cover img { transform: rotate(8deg); transition: transform 500ms var(--ease) 150ms; }
.js .station.shown .st-text, .js .station.shown .st-media > figure { opacity: 1; transform: none; }
.js .station.shown .st-cover { opacity: 1; transform: none; }
.js .station.shown .st-cover img { transform: rotate(3deg); }
.station-last { isolation: isolate; }
.last-sweep { z-index: -1; left: -10%; top: 20%; width: 120%; height: 60%; transition: clip-path 800ms var(--ease); }
.last-sweep .sweep { opacity: .22; transform: rotate(-6deg); }
.js .last-sweep { clip-path: inset(-30% 100% -30% 0); }
.js .station-last.reached .last-sweep { clip-path: inset(-30% -10% -30% 0); }
.track-end { position: relative; height: 56px; }
.track-end::after { content: ""; position: absolute; left: -43px; bottom: 0; width: 22px; height: 7px; background: var(--ink); }
@media (max-width: 359px) { .st-text > p:not(.st-time) { font-size: 16.5px; } }
.creed { margin: 96px 0 0 -40px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.creed blockquote { font: 800 clamp(32px, 8.5vw, 72px)/1 var(--display); max-width: 100%; text-wrap: balance; }
.creed-by { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 20px; font: italic 400 17px/1.4 var(--text); color: var(--muted); }
.creed-by::before { content: ""; width: 24px; height: 2px; background: var(--red); }
.word { display: inline-block; }
.js .creed .word { opacity: 0; transform: translateY(.35em); transition: opacity 420ms var(--ease), transform 420ms var(--ease); }
.js .creed.shown .word { opacity: 1; transform: none; }
@media (min-width: 900px) {
  .life-wrap { padding-left: 32px; }
  #life h2 { width: calc(50% - 56px); font-size: 80px; }
  .station { display: grid; grid-template-columns: 1fr 1fr; column-gap: 112px; align-items: start; margin-top: 88px; }
  .station > .st-text { grid-column: 2; grid-row: 1; }
  .station > .st-media { grid-column: 1; grid-row: 1; margin-top: 0; flex-direction: row; justify-content: flex-end; }
  .station:nth-of-type(even) > .st-text { grid-column: 1; }
  .station:nth-of-type(even) > .st-media { grid-column: 2; flex-direction: row-reverse; justify-content: flex-end; }
  .station h3 { font-size: 40px; }
  .marker { left: 50%; margin-left: -8px; }
  /* the same width at every stop, whether or not a book stands beside it */
  .st-pic { flex: 0 0 min(400px, calc(100% - 144px)); min-width: 0; }
  .st-cover { flex: 0 0 120px; width: 120px; }
  .st-cover img { width: 120px; }
  .last-sweep { left: 0; width: 100%; }
  .track-end::after { left: 50%; margin-left: -11px; }
  .creed { margin-left: 0; }
  .creed blockquote { max-width: 20ch; }
}

/* ---------- 5. talks ---------- */
#talks { background: var(--ink); color: var(--paper); }
.talks-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 16px 12px; background: var(--ink); --dw: min(100vw - 32px, 640px, (100svh - 390px) * 16 / 9); }
.talks-head { width: var(--dw); }
.talks-head .stop, #praise .stop { color: var(--muted-night); }
.talks-head .stop { margin-bottom: 10px; }
.talks-head h2 { font-weight: 900; font-size: 52px; }
.talks-line { font: italic 400 18px/1.35 var(--text); color: var(--muted-night); margin-top: 4px; }
.deck { position: relative; width: var(--dw); aspect-ratio: 16 / 9; margin-top: 20px; flex: none; }
.dcard { position: absolute; inset: 0; width: 100%; border-radius: 6px; overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, .45); background: #000; transform-origin: 50% 100%; will-change: transform, opacity; }
.dcard .dimg { width: 100%; height: 100%; object-fit: cover; }
.dcard .inset { position: absolute; left: 3%; top: 5%; width: 34%; height: auto; border: 2px solid var(--paper); border-radius: 3px; box-shadow: 0 6px 14px rgba(0, 0, 0, .5); }
.dcard .shade { position: absolute; inset: 0; background: var(--ink); opacity: 0; pointer-events: none; }
.tabs { display: flex; gap: 8px; margin-top: 36px; }
.tabs button { position: relative; width: 36px; height: 36px; border: 1.5px solid var(--muted-night); color: var(--paper); font: 800 16px/1 var(--display); }
.tabs button::before { content: ""; position: absolute; inset: -4px -3px; }
.tabs button[aria-current="true"] { background: var(--red); border-color: var(--red); }
.caps { position: relative; width: var(--dw); height: 118px; margin-top: 14px; text-align: center; }
.caps > div { position: absolute; left: 0; right: 0; top: 0; }
.caps h3 { font-weight: 800; font-size: 24px; line-height: 1.04; }
.caps p { margin-top: 6px; font-size: 16px; line-height: 1.35; color: var(--muted-night); }
@media (max-width: 359px) { .caps h3 { font-size: 21px; } .caps p { font-size: 14px; } }
@media (max-width: 899px) and (max-height: 600px) { .talks-stage .stop { display: none; } .talks-head h2 { font-size: 44px; } .talks-line { font-size: 16px; } .deck { margin-top: 14px; } .tabs { margin-top: 30px; } .caps { margin-top: 12px; } .talks-stage { --dw: min(100vw - 32px, (100svh - 350px) * 16 / 9); } }
@media (min-width: 900px) {
  .talks-stage { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: 1fr auto auto auto 1fr; column-gap: 24px; align-items: start; padding: 88px max(32px, calc(50% - 620px)) 24px; }
  .deck { grid-column: 1 / 9; grid-row: 2 / 5; width: 100%; max-width: min(720px, (100svh - 160px) * 16 / 9); margin: 0; align-self: center; justify-self: end; }
  .talks-head { grid-column: 9 / 13; grid-row: 2; width: auto; }
  .talks-head h2 { font-size: clamp(52px, 5vw, 72px); }
  .tabs { grid-column: 9 / 13; grid-row: 3; margin-top: 28px; }
  .caps { grid-column: 9 / 13; grid-row: 4; width: auto; height: 190px; margin-top: 24px; text-align: left; }
  .caps h3 { font-size: clamp(24px, 2.3vw, 32px); }
}
.talks-more { padding-top: 24px; padding-bottom: 80px; }
.more-h { font-weight: 800; font-size: 30px; margin-bottom: 16px; }
.minis { display: grid; gap: 16px; margin-bottom: 40px; }
.mini { display: grid; grid-template-columns: 160px 1fr; gap: 14px; align-items: center; text-align: left; color: var(--paper); }
.mini-pic { position: relative; display: block; width: 160px; height: 90px; }
.mini-pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.dcard[data-video="hNreMm_QIVk"] .play { right: auto; left: 12px; }
.mini .play { width: 32px; height: 32px; right: 6px; bottom: 6px; }
.mini .play::after { left: 12px; top: 9px; border-left-width: 11px; border-top-width: 7px; border-bottom-width: 7px; }
.mini-t { font: 600 16px/1.3 var(--text); }
@media (max-width: 359px) { .mini { grid-template-columns: 128px 1fr; gap: 12px; } .mini-pic { width: 128px; height: 72px; } .mini-t { font-size: 14px; } }
.heard-h { font-weight: 800; font-size: 20px; color: var(--ochre); text-transform: uppercase; letter-spacing: .05em; }
.heard { margin-top: 6px; font-size: 17px; color: var(--parchment); max-width: 62ch; }
.films-h { margin-top: 28px; }
.films { margin: 0; font-size: 17px; line-height: 2.2; color: var(--parchment); max-width: 62ch; }
.films a { color: var(--paper); text-decoration-color: var(--ochre); text-underline-offset: .22em; }
.mini-t small { display: block; margin-top: 4px; font: 400 14px/1.3 var(--text); color: var(--muted-night); }
@media (min-width: 900px) {
  .minis { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .mini { grid-template-columns: 1fr; align-content: start; gap: 10px; }
  .mini-pic { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}

/* ---------- 6. praise ---------- */
#praise { background: var(--red); color: var(--paper); padding: 96px 0; }
.praise-rays { position: absolute; inset: 0; overflow: clip; pointer-events: none; }
.praise-rays > .rays { position: sticky; display: block; top: calc(50vh - 450px); margin-left: calc(50% - 450px); width: 900px; height: 900px; --c: var(--flame); opacity: .35; will-change: transform; }
.praise-body { position: relative; }
#praise .stop { color: var(--parchment); margin-bottom: 48px; }
#praise .stop-n { box-shadow: 0 0 0 1.5px var(--parchment); }
.quote { display: flex; align-items: center; min-height: 55vh; min-height: 55svh; padding: 20px 0; }
.quote > div { width: 100%; }
.quote blockquote { font: 800 clamp(28px, 8.4vw, 64px)/1 var(--display); text-wrap: balance; }
.quote figcaption { position: relative; margin-top: 20px; padding-top: 16px; font: italic 500 18px/1.35 var(--text); color: var(--parchment); }
.quote figcaption::before { content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 2px; background: var(--ochre); }
.quote figcaption.who { display: flex; align-items: center; gap: 14px; }
.quote .who img { flex: none; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--ochre); }
@media (min-width: 900px) { .quote .who img { width: 80px; height: 80px; } }
.js .quote .word { opacity: 0; transform: scale(1.12); transition: opacity 220ms var(--ease), transform 220ms var(--ease); }
.js .quote .shown .word { opacity: 1; transform: none; }
.js .quote figcaption { opacity: 0; transform: translateX(-12px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.js .quote .shown figcaption { opacity: 1; transform: none; }
@media (min-width: 900px) { .praise-body { padding-left: max(96px, calc(50% - 250px)); } .quote blockquote { font-size: 64px; max-width: 18ch; } .quote figcaption { max-width: 34em; } }

/* ---------- 7. booking ---------- */
#booking { background: var(--sky-pale); padding: 96px 0 40px; }
#booking > .wrap > .joinline, #press > .wrap > .joinline { margin-bottom: 16px; }
.map { position: relative; width: 100%; max-width: 1100px; margin: 32px auto 0; aspect-ratio: 358 / 200; }
.map .land { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .land path { fill: #B9CBB0; stroke: none; }
.routes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.routes .rail { fill: none; stroke: var(--red); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.routes .ties { fill: none; stroke: var(--paper); stroke-width: 1; stroke-dasharray: 6 6; }
.routes .leader { stroke: rgba(23, 19, 15, .4); stroke-width: 1; fill: none; transition: opacity 200ms; }
.routes .stopdot circle { transition: transform 200ms var(--ease); }
.routes .stopdot:not(.on) circle { transform: scale(0); }
.routes .leader:not(.on) { opacity: 0; }
.map-labels span { position: absolute; font: 700 13px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); white-space: nowrap; transition: opacity 200ms; text-shadow: 0 0 4px var(--sky-pale), 0 0 4px var(--sky-pale), 0 0 2px var(--sky-pale); }
.map-labels span:not(.on) { opacity: 0; }
.map-cap { margin-top: 20px; font: italic 400 15px/1.45 var(--text); color: var(--muted); max-width: 70ch; }
@media (min-width: 900px) {
  .map { aspect-ratio: 1100 / 560; }
  .map-labels span { font-size: 16px; }
  .map-cap { text-align: center; margin-left: auto; margin-right: auto; }
  #booking > .wrap > .joinline, #booking > .wrap > .h-big { text-align: center; }
  #booking .stop { justify-content: center; }
  #booking .lede { text-align: center; margin-left: auto; margin-right: auto; }
  .topics h3 { text-align: center; }
}
.booking-cols { display: grid; gap: 40px; margin-top: 48px; }
.topics h3 { font-weight: 800; font-size: 28px; margin-bottom: 12px; }
.topics li { position: relative; padding: 6px 0 6px 24px; font-size: 18px; line-height: 1.4; }
.topics li::before { content: ""; position: absolute; left: 0; top: calc(6px + .5lh - 4px - .15em); width: 8px; height: 8px; background: var(--red); }
.invite { background: var(--paper); border-radius: 6px; padding: 24px; box-shadow: 0 24px 48px rgba(19, 33, 49, .18); width: 100%; max-width: 720px; display: grid; gap: 16px; }
.invite h3 { font-weight: 800; font-size: 30px; }
.field label { display: block; font: 600 15px/1.3 var(--text); margin-bottom: 5px; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-width: 0; height: 48px; padding: 0 12px; border: 1.5px solid var(--muted); border-radius: 4px; background: #FFFCF5; color: var(--ink); font: 400 17px/1.4 var(--text); }
.field textarea { height: auto; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--ochre); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--red); }
.err { margin-top: 4px; color: var(--red); font: 500 15px/1.3 var(--text); }
.err:empty { display: none; }
.form-note { font-size: 15px; line-height: 1.45; color: var(--muted); }
.form-note span { display: block; margin-top: 4px; }
.form-note a { display: block; color: var(--ink); font-weight: 600; white-space: nowrap; }
@media (min-width: 900px) { .booking-cols { max-width: 720px; margin-left: auto; margin-right: auto; gap: 48px; } .topics ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; align-items: start; } .invite { padding: 40px; grid-template-columns: 1fr 1fr; } .invite h3, .invite .form-note, .invite .btn, .invite .field:nth-of-type(7) { grid-column: 1 / -1; } .invite .btn { justify-self: start; min-width: 280px; } }

/* ---------- 8. press ---------- */
#press { background-color: var(--paper); padding: 96px 0 80px; }
#press h2 { font-weight: 900; font-size: 48px; line-height: .95; }
@media (min-width: 900px) { #press h2 { font-size: 80px; } }
.bio { margin-top: 28px; max-width: 760px; }
.bio-tabs { display: flex; gap: 24px; border-bottom: 1px solid rgba(23, 19, 15, .25); }
.bio-tabs button { min-height: 44px; font: 700 18px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.bio-tabs button[aria-selected="true"] { border-bottom-color: var(--red); }
.bio-panel { margin-top: 18px; font-size: 18px; transition: opacity 200ms; }
.bio-panel.out { opacity: 0; transition-duration: 120ms; }
.copybio { margin-top: 18px; min-width: 190px; }
@media (min-width: 600px) { .media-mail a, .form-note a { display: inline; } .form-note span { display: block; } }
.prints { display: grid; gap: 32px; margin: 48px 0 36px; }
.print { max-width: 560px; }
.print-tall { max-width: 300px; }
.develop { padding: 10px; background: var(--paper); border-radius: 4px; box-shadow: var(--shelf); }
.develop img { width: 100%; height: auto; border-radius: 2px; }
.js .develop img { filter: sepia(1) saturate(.6) brightness(1.15); opacity: .6; transition: filter 1000ms ease, opacity 1000ms ease; }
.js .develop.shown img { filter: none; opacity: 1; }
.print figcaption { flex-wrap: wrap; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; font: italic 400 16px/1.3 var(--text); }
.print figcaption .linkbtn { font-style: normal; }
.media-mail { margin-top: 18px; font-size: 18px; }
.media-mail a { display: block; width: fit-content; font-weight: 600; white-space: nowrap; padding: 4px 0; }
@media (min-width: 900px) { .prints { grid-template-columns: .445fr 1fr 1fr; align-items: start; } .print, .print-tall { max-width: none; } }

/* ---------- 9. follow ---------- */
#follow { background: var(--night); color: var(--paper); padding-top: 96px; }
#follow .stop { color: var(--muted-night); }
#follow h2 { font-weight: 900; font-size: clamp(56px, 17vw, 168px); line-height: .9; }
#follow h2 span { display: block; }
@media (min-width: 900px) { #follow h2 { font-size: min(168px, 12vw); white-space: nowrap; } #follow h2 span { display: inline; } }
.follow-sub { margin-top: 16px; font: 800 24px/1.1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--ochre); }
.follow-list { margin-top: 16px; max-width: 760px; }
.follow-list li { border-bottom: 1px solid rgba(200, 191, 174, .3); }
.follow-list a { display: flex; flex-wrap: wrap; align-items: baseline; align-content: center; gap: 0 14px; min-height: 52px; padding: 8px 0; color: var(--paper); text-decoration: none; }
.follow-list b { font: 600 18px/1.35 var(--text); }
.follow-list span { font-size: 16px; line-height: 1.35; color: var(--muted-night); }
.follow-list a:hover b { text-decoration: underline; text-underline-offset: .22em; }
.night { position: relative; height: clamp(320px, 56svh, 560px); margin-top: 8px; overflow: hidden;
  background: linear-gradient(to bottom, #021636 0%, #102C52 50%, #21395A 70%, #3F4059 85%); }
.night::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 90px; background: linear-gradient(to bottom, var(--night), transparent); pointer-events: none; }
.night .scene { z-index: 0; }
.foot { background: var(--ink); color: var(--muted-night); padding: 24px 16px; text-align: center; font-size: 14px; line-height: 1.5; }
.foot p span { display: inline-block; }
.foot-preview { margin-top: 4px; }

/* ---------- dialogs ---------- */
.sheet, .video { position: fixed; inset: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; color: var(--ink); }
.sheet::backdrop, .video::backdrop { background: transparent; }
.sheet .dim { position: absolute; inset: 0; background: rgba(23, 19, 15, .55); }
.panel { position: absolute; left: 0; right: 0; bottom: 0; height: 92%; display: flex; flex-direction: column; background: var(--paper); border-radius: 14px 14px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, .3); }
.grab { flex: none; height: 44px; display: flex; justify-content: center; align-items: flex-start; padding-top: 10px; touch-action: none; cursor: grab; }
.grab span { width: 40px; height: 5px; border-radius: 3px; background: rgba(23, 19, 15, .3); }
.sheet-close { right: 6px; top: 4px; z-index: 2; color: var(--ink); background: var(--paper); }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 8px 20px 32px; }
.sh-cover { display: flex; justify-content: center; }
.sh-cover img { width: 220px; height: 330px; object-fit: contain; object-position: bottom; border-radius: 2px 4px 4px 2px; filter: drop-shadow(0 10px 14px rgba(23, 19, 15, .28)); }
.sh-cover.is-small img { max-width: 216px; width: 216px; height: 333px; }
.sh-info h2 { margin-top: 20px; font: 600 26px/1.15 var(--text); }
.sh-sub { margin-top: 4px; font: italic 400 18px/1.35 var(--text); }
.sh-meta { margin-top: 8px; font-size: 15px; color: var(--muted); }
.sh-blurb { margin-top: 14px; font-size: 18px; line-height: 1.5; }
.sh-from { margin-top: 14px; font-size: 17px; }
.sh-link { font: italic 500 17px/1.4 var(--text); color: var(--ink); text-decoration: underline; text-underline-offset: .22em; text-align: left; padding: 6px 0; }
.sh-parts li { line-height: 1.3; }
.sh-buttons { display: grid; gap: 10px; margin-top: 22px; }
.sh-copy { justify-self: center; }
@media (min-width: 900px) {
  .panel { left: 50%; right: auto; bottom: auto; top: 50%; width: 880px; height: auto; max-height: min(720px, 90%); translate: -50% -50%; border-radius: 10px; }
  .grab { display: none; }
  .sheet-body { display: grid; grid-template-columns: 300px 1fr; gap: 36px; padding: 40px; }
  .sh-cover { align-items: flex-start; }
  .sh-cover img { width: 300px; height: 450px; position: sticky; top: 0; object-position: top; }
  .sh-info h2 { margin-top: 0; padding-right: 40px; }
  .sh-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sh-copy { grid-column: 1 / -1; justify-self: start; }
  .sh-buttons .wide-row { grid-column: 1 / -1; }
}
.fly { position: fixed; z-index: 5; margin: 0; pointer-events: none; object-fit: cover; border-radius: 3px; box-shadow: var(--shelf); transform-origin: 0 0; }
.video { background: rgba(23, 19, 15, .92); }
.video[open] { display: flex; align-items: center; justify-content: center; }
.video-close { right: 10px; top: max(10px, calc(50% - min(100vw - 16px, 1100px, 150svh) * .28125 - 52px)); color: var(--paper); background: var(--ink); }
.video .frame { width: min(100% - 16px, 1100px, 150svh); aspect-ratio: 16 / 9; }
.video iframe { width: 100%; height: 100%; border: 0; }
html.locked, html.locked body { overflow: hidden; }
.noscript { padding: 24px; text-align: center; }

/* ---------- reduced motion: every section in its end state ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .hero-name .line > span, .js .hero-roles, .js .hero-buttons .btn, .js .portrait, .js .hero .sun,
  .js .station .st-text, .js .station .st-media > figure, .js .creed .word, .js .quote .word, .js .quote figcaption { opacity: 1; transform: none; transition: none; }
  .js .station .st-cover { opacity: 1; transform: none; transition: none; }
  .js .station .st-cover img { transform: rotate(3deg); transition: none; }
  .js .wash { opacity: 0; }
  .js .hero .sun { opacity: 1; }
  .js .hero-rays { opacity: .3; }
  .js .develop img { filter: none; opacity: 1; }
  .js .last-sweep { clip-path: none; }
  .tw > .lift { transition: none; }
}
.static .new-stage, .static .talks-stage { height: auto; padding-bottom: 48px; }
.static .inside, .static .details, .static .caps > div { position: static; }
.static .new-area { flex: none; height: auto; }
.static .details { margin-top: 28px; }
.static .caps { display: none; }
.static .deck > div { text-align: center; margin-bottom: 20px; }
.static .deck h3 { font-weight: 800; font-size: 24px; line-height: 1.04; }
.static .deck p { margin-top: 6px; font-size: 16px; line-height: 1.35; color: var(--muted-night); }
.static .deck { aspect-ratio: auto; display: grid; gap: 16px; }
.static .dcard { position: relative; inset: auto; aspect-ratio: 16 / 9; }
@media (min-width: 900px) { .static .talks-stage { grid-template-rows: auto; align-content: start; } .static .deck { grid-row: 1 / 6; align-self: start; } .static .talks-head { grid-row: 1; } }
.static .tabs { display: none; }

/* A phone's browser bar slides away on scroll and the screen grows. A held scene follows the screen's
   current height, so the page never shows beneath it and nothing in it is cut off. */
@supports (height:100dvh){ :where([data-sc-act]:not([data-sc-act="flow"])) .sc-stage{height:100dvh} }
