/* featherframe.app — a natural-history book: a cover, then chapters set on a
   twelve-column page, each opened by a small eyebrow. The desktop above 820px;
   a phone at 820px and under, with a tablet's two-column step from 701px. */

@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('fonts/EBGaramond.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 400 800; font-display: swap; src: url('fonts/EBGaramond-Italic.woff2') format('woff2'); }
@font-face { font-family: 'Pinyon Script'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/PinyonScript-Regular.woff2') format('woff2'); }
@font-face { font-family: 'IM Fell Double Pica SC'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/IMFellDoublePicaSC.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/Inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/Inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/Inter-600.woff2') format('woff2'); }

/* --night is a number, so it can be eased: the flip is a threshold (night.ts)
   and a 450 ms transition, whatever the scroll's speed */
@property --night { syntax: '<number>'; inherits: true; initial-value: 0; }
:root.night { --night: 1; }
:root {
  /* IV turns the page from day to night (night.ts: html.night, --night eased
     0–1) for the rest of the page: every colour is its day and its night mixed by it. */
  --night: 0;
  transition: --night .45s ease;
  --paper: color-mix(in srgb, #1a1a1a calc(var(--night) * 100%), #fff);
  --ink: color-mix(in srgb, #f2f1ec calc(var(--night) * 100%), #121212);
  --text: color-mix(in srgb, #d4d3cd calc(var(--night) * 100%), #3b3b39);
  --graphite: color-mix(in srgb, #9c9b95 calc(var(--night) * 100%), #6b6b69);
  --faint: color-mix(in srgb, #64635e calc(var(--night) * 100%), #a7a7a3);
  --hair: color-mix(in srgb, #33322f calc(var(--night) * 100%), #e4e4e1);
  --serif: 'EB Garamond', Garamond, serif;
  --script: 'Pinyon Script', cursive;
  --caps: 'IM Fell Double Pica SC', serif;
  --sans: 'Inter', system-ui, sans-serif;
  --m: 72px;       /* page margin */
  --max: 1296px;   /* the widest the page's content runs (1440 less its margins) */
  --flat: 0.79483;   /* the dead-on frame's width over height (choreo.ts's slots; the wall's stills) */
  --gutter: 28px;  /* column gap */
  --display: clamp(80px, 8.2vw, 118px);
  --shadow-print: 0 1px 1px rgba(0, 0, 0, .06), 0 16px 30px -22px rgba(0, 0, 0, .35);
  --shadow-floor: radial-gradient(closest-side, rgba(0, 0, 0, .09), rgba(0, 0, 0, .03) 60%, transparent);
  --nav: 78px;     /* the running head, which stays at the top */
}

*, *::before, *::after { box-sizing: border-box; }
html { font-kerning: normal; overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 19px/1.55 var(--serif); font-variant-numeric: oldstyle-nums proportional-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h2 { font-weight: 400; text-wrap: balance; }
.it { font-style: italic; }
.sc { font-family: var(--caps); text-transform: uppercase; letter-spacing: .22em; font-size: 11.5px; line-height: 1.35; }
.ul { border-bottom: 1px solid var(--hair); }
.ul:hover { border-color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; height: 48px; padding: 0 28px; white-space: nowrap;
  border-radius: 2px; background: var(--ink); color: var(--paper);
  font: 13px/1 var(--caps); letter-spacing: .18em; text-transform: uppercase;
}
.btn:hover { background: #000; }
.night .btn:hover { background: #fff; }

.page { padding: 0 var(--m); overflow-x: clip; } /* the cover's stage runs past the right edge */
.folio {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 96px;
}
/* each chapter's eyebrow: small capitals in graphite, no number, no rule;
   set right above its headline, as one unit with it */
.folio:has(+ h2) { margin-bottom: 16px; }
.eyebrow { font: 12px/1.35 var(--caps); letter-spacing: .22em; text-transform: uppercase; color: var(--graphite); }
.folio .n { font: italic 15px var(--serif); color: var(--graphite); }
.mega, .spread h2, .close .big { font-size: var(--display); line-height: .9; letter-spacing: -.035em; }
.lede { font-size: 24px; line-height: 1.42; margin: 0; }
.intro2 { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); margin-top: 40px; }
.intro2 .lede { grid-column: 7 / 13; }
/* the flight from the wall to the table passes down the right: the lede keeps to the left, as the closing one does */
#how .intro2 .lede { grid-column: 1 / 8; }
/* The soft floor under a frame standing on its kickstand. */
.floor { position: relative; }
.floor::after { content: ""; position: absolute; left: 2%; right: 0; bottom: -22px; height: 44px; background: var(--shadow-floor); pointer-events: none; }

/* Running head: it stays at the top, on paper that runs the window's width */
.head {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  height: var(--nav); border-bottom: 1px solid var(--hair);
  background: var(--paper); box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax -1px);
}
.head .brand { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.head .word { font: 32px/1 var(--script); }
.head .brand .by { color: var(--graphite); white-space: nowrap; }
.head nav { display: flex; gap: 30px; align-items: center; }
.head nav a.sc { color: var(--graphite); }
.head nav a.sc:hover { color: var(--ink); }
.head .btn { height: 36px; padding: 0 18px; }

/* Cover */
.cover { position: relative; height: calc(100vh - 78px); min-height: 780px; max-height: 1000px; }
.cover h1 {
  position: absolute; left: 0; top: 6vh; z-index: 2; width: 70%; margin: 0;
  font-weight: 400; font-size: clamp(120px, 14vw, 220px); line-height: .86; letter-spacing: -.035em;
}
.cover h1 .l1, .cover h1 .l2 { display: block; }
.cover h1 .l2 { font-style: italic; margin-left: .42em; }
/* The cover is a white room: a white wall darkening softly to the lightest
   gray just above the horizon, a crisp step there to the white table, whose
   top lightens a touch toward us; the frame's foot a little below the
   horizon, on the table (III's table is the same room). Behind the page's canvas. */
:root { --room-wall: #ececea; --room-table: #f7f7f5; }
.cover::before {
  content: ""; position: absolute; z-index: -2; left: calc(-1 * var(--m)); right: calc(-1 * var(--m)); top: 0; bottom: 0;
  --hz: calc(100% - 7vh - 0.12 * 1.2759 * min(600px, 60vh)); /* the horizon, a little above the frame's foot */
  background: linear-gradient(to bottom, #fff 0%, var(--room-wall) var(--hz), var(--room-table) var(--hz), #fff 100%);
  /* the room is behind the frame only: it fades to plain white across the text column */
  -webkit-mask-image: linear-gradient(to right, transparent 34%, #000 58%);
  mask-image: linear-gradient(to right, transparent 34%, #000 58%);
}
/* .frame is the frame itself; the stage around it is the poster's whole
   canvas (1200 × 1400, frame at 111,108 → 1086,1352), so the poster and the
   3D frame land exactly on it. */
.frame { position: absolute; right: 2%; bottom: 9%; z-index: 1; height: 78%; aspect-ratio: 975 / 1244; }
.stage { position: absolute; left: -11.385%; top: -8.682%; width: 123.077%; height: 112.54%; }
.stage .poster, .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.stage canvas { opacity: 0; transition: opacity .6s ease; touch-action: pan-y; cursor: grab; }
.stage canvas:active { cursor: grabbing; }
.stage.live canvas { opacity: 1; }
.stage.live .poster { opacity: 0; transition: opacity .6s ease; }
.cover .copy { position: absolute; left: 0; bottom: 6%; z-index: 2; width: 40%; }
.cover .copy p { font-size: 22px; line-height: 1.42; margin: 0 0 26px; text-wrap: pretty; }
.cta { display: flex; align-items: center; gap: 20px; }
.cta .it { color: var(--graphite); font-size: 18px; }

/* I. The art: a spread, the frame showing the flamingo in its left half,
   pinned there, centred below the running head, while the text scrolls past. */
.spread { display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(2 * var(--gutter)); align-items: start; margin-top: 110px; container-type: inline-size; }
.spread .plate {
  --h: calc(0.9 * min(calc((50cqw - var(--gutter)) / var(--flat)), calc(100vh - var(--nav) - 80px)));
  position: sticky; top: calc(var(--nav) + (100vh - var(--nav) - var(--h)) / 2); width: calc(var(--h) * var(--flat)); justify-self: center;
}
.spread .plate img { width: 100%; }
.spread .text { display: flex; flex-direction: column; justify-content: flex-end; padding: 16vh 0 14vh; }
.spread .text .folio { margin-bottom: 16px; }
.spread h2 { margin: 0 0 40px; font-size: min(var(--display), 8.4cqw); }
.spread h2 i { white-space: nowrap; }
.cols { display: flow-root; max-width: 36ch; font-size: 20px; line-height: 1.58; text-wrap: pretty; }
.cols p { margin: 0 0 .9em; }
.drop::first-letter { float: left; font-size: 88px; line-height: .8; margin: 6px 8px 0 -2px; font-weight: 400; }

/* The frame's journey (choreo.ts): one canvas behind the text; the stops are
   invisible slots with the frame's own aspect. */
.ff3d { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .6s ease; }
.ff3d.live { opacity: 1; }
/* ?wall= (scripts/wall.mjs): the frame alone, on nothing. */
.still-render, .still-render body { background: transparent; }
.still-render .page { display: none; }
.slot { aspect-ratio: var(--flat); }
.stop-centre { display: none; }
.choreo .stop-centre { display: block; height: 100vh; }
#centre-slot { width: min(100%, calc(min(90vh, 100vh - var(--nav) - 40px) * var(--flat))); margin: 0 auto; }
/* choreo.ts reads the pinned slots where they sit unpinned */
.measuring .pin { position: relative !important; top: auto !important; }
/* the two flights that cross the text: the frame over it (under the running head and the wall's sticky folio) */
.ff3d.over { z-index: 5; }
.choreo .cover .frame.floor::after { opacity: calc(1 - var(--away, 0)); }

/* The hand-offs: the art and the table's stills are the journey's to draw;
   the wall's first place stays empty until the frame lands in it, and its
   last print leaves when the frame tears off. */
.choreo .still { visibility: hidden; }
.choreo .wall:not(.landed) .cat figure:first-child img,
.choreo .wall.torn .cat figure:last-child img { visibility: hidden; }

/* Chapters */
.sec { margin-top: 190px; }
.mega { margin: 0 0 0 -.04em; max-width: 13ch; }

/* II. From the collection: a gallery wall of frames, seen dead-on */
.folio .r { display: flex; align-items: baseline; gap: 28px; }
.tone { display: inline-flex; align-self: center; border: 1px solid var(--hair); border-radius: 2px; }
.tone button { padding: 6px 12px 5px; border: 0; border-radius: 1px; background: none; color: var(--graphite); cursor: pointer; }
.tone button:hover { color: var(--ink); }
.tone button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.cat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 64px 36px; margin-top: 20px; }
.cat .im { position: relative; transform-origin: 50% 100%; cursor: zoom-in; }
.cat .im:focus-visible { outline-offset: 6px; }
/* a frame lifts a little under the pointer: it opens large */
.cat .im { transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
@media (hover: hover) {
  .cat .im:hover { transform: translateY(-4px); }
  [data-tone="10"] .cat .im:hover { transform: scale(0.7951) translateY(-5px); }
}
.cat .im img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
/* B&W is the 10-inch, drawn to scale beside the 13-inch: 295 mm tall to 371 */
[data-tone="10"] .cat .im { transform: scale(0.7951); }
.tone-anim .cat .im { transition: transform .7s cubic-bezier(.3, 0, .2, 1); }
/* the glass over each print (its wood inset: 13-inch 26 px of 604 × 760; 10-inch 32 of 596, pillarboxed) */
/* The glass's sheen (viewer.ts SHEEN / sheenAt, sheen.ts): a soft diagonal
   band at --c (0 top-left … 1 bottom-right), and a thin one just after it. */
.cat .im::after {
  content: ""; position: absolute; inset: 3.42% 4.3%; pointer-events: none;
  background: linear-gradient(122deg, rgba(255,255,255,0) calc(var(--c) * 100% - 26%), rgba(255,255,255,0.003) calc(var(--c) * 100% - 22%), rgba(255,255,255,0.011) calc(var(--c) * 100% - 18%), rgba(255,255,255,0.032) calc(var(--c) * 100% - 14%), rgba(255,255,255,0.070) calc(var(--c) * 100% - 10%), rgba(255,255,255,0.119) calc(var(--c) * 100% - 6%), rgba(255,255,255,0.155) calc(var(--c) * 100% - 2%), rgba(255,255,255,0.160) calc(var(--c) * 100%), rgba(255,255,255,0.155) calc(var(--c) * 100% + 2%), rgba(255,255,255,0.119) calc(var(--c) * 100% + 6%), rgba(255,255,255,0.070) calc(var(--c) * 100% + 10%), rgba(255,255,255,0.049) calc(var(--c) * 100% + 12%), rgba(255,255,255,0.035) calc(var(--c) * 100% + 14%), rgba(255,255,255,0.039) calc(var(--c) * 100% + 16%), rgba(255,255,255,0.063) calc(var(--c) * 100% + 18%), rgba(255,255,255,0.078) calc(var(--c) * 100% + 20%), rgba(255,255,255,0.055) calc(var(--c) * 100% + 22%), rgba(255,255,255,0.021) calc(var(--c) * 100% + 24%), rgba(255,255,255,0) calc(var(--c) * 100% + 28%));
}
.cat .im { --c: .5; }
[data-tone="10"] .cat .im::after { inset: 4.21% 6%; }
.wall:not(.landed) .cat figure:first-child .im::after, .wall.torn .cat figure:last-child .im::after { visibility: hidden; }
.cat figcaption { margin-top: 16px; border-top: 1px solid var(--hair); padding-top: 10px; }
.cat .nm { display: block; font-size: 19px; line-height: 1.2; }
.cat .la { display: block; font: italic 15px var(--serif); color: var(--graphite); }
/* the artist and the book, as a plate's imprint */
.cat .by { display: block; margin-top: 6px; font: 11px/1.4 var(--caps); letter-spacing: .16em; text-transform: uppercase; color: var(--graphite); }
.cat .by i { font: italic 13px/1 var(--serif); letter-spacing: 0; text-transform: none; }
/* the folio stays under the running head while the wall scrolls, and goes with the wall;
   its paper is painted only while it is stuck (main.ts .stuck), so the frame
   dropping into the wall's first place passes over bare paper, not under a bar */
.wall .folio { position: sticky; top: var(--nav); z-index: 10; padding: 14px 0 12px; margin-bottom: 84px;
               background: none; box-shadow: none; clip-path: inset(0 -100vmax); }
.wall .folio.stuck { background: var(--paper); box-shadow: 0 0 0 100vmax var(--paper); }

/* III. How it works: the frame on its table pinned on the right while the
   song and the photograph scroll past on the left. */
.trip { display: grid; grid-template-columns: 7fr 5fr; column-gap: var(--gutter); align-items: start; margin-top: 96px; container-type: inline-size; }
.lcol { padding: 8vh 0 12vh; }
/* The video of the species heard, with its song's spectrogram laid across
   its lower third: the ink turned bright white (inverted, lifted and
   contrasted, so a faint note still reads) over a dark scrim, a playhead
   crossing it. */
.ph { position: relative; }
.ph video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #d9d9d5;
            border-radius: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 18px 40px -18px rgba(0, 0, 0, .35); }
.spectro { position: absolute; left: 0; right: 0; bottom: 0; height: 33.4%; padding: 3% 4% 3.4%; border-radius: 0;
           background: linear-gradient(to top, rgba(0, 0, 0, .74), rgba(0, 0, 0, .56) 60%, rgba(0, 0, 0, 0)); }
.spectro .sg { height: 100%; }
.spectro img { width: 100%; height: 100%; object-fit: fill; filter: invert(1) brightness(2.6) contrast(1.3); mix-blend-mode: screen; }
/* the spectrogram itself is the song's switch: sound on, sound off */
.sg { position: relative; cursor: pointer; }
.sg:focus-visible { outline: 2px solid #fff; outline-offset: -2px; box-shadow: 0 0 0 4px rgba(0, 0, 0, .5); }
.playhead { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: #fff; box-shadow: 0 0 4px rgba(0, 0, 0, .4); pointer-events: none; }
.playhead[hidden] { display: none; }
/* Unmute, in the video's middle, plays the song again with sound; with sound on, a click on the video mutes it */
.unmute {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px 0 22px;
  border: 0; border-radius: 26px; background: var(--ink); color: #fff; cursor: pointer;
  font: 14px/1 var(--caps); letter-spacing: .2em; text-transform: uppercase;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45);
}
.unmute::before { content: ""; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--speaker) center / contain no-repeat; mask: var(--speaker) center / contain no-repeat; }
.unmute:hover { background: #000; }
.unmute[hidden] { display: none; }
.ph .unmute { z-index: 2; }
/* the video itself is the song's switch too: a click with sound on mutes it */
.ph video { cursor: pointer; }
:root { --speaker: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9h4l5-4v14l-5-4H3z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M18.5 5.5a9 9 0 0 1 0 13' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
/* A new detection: BirdNET's side of things, so an app's notification, not
   the book's type, pinned to the video's top-left corner. It slides in at the
   first detection and stays; at each one after, its name changes. */
.toast {
  position: absolute; left: 0; top: -22px; z-index: 3;
  display: flex; align-items: center; gap: 12px; min-width: 260px; padding: 10px 14px 10px 10px;
  background: #fff; border-radius: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 14px 34px -12px rgba(0, 0, 0, .3);
  font-family: var(--sans); font-variant-numeric: normal; color: #121212;
  opacity: 0; transform: translate(-12px, -6px); transition: opacity .4s ease, transform .5s cubic-bezier(.2, .8, .2, 1); pointer-events: none;
}
.toast.on { opacity: 1; transform: none; }
.toast.swap .nm { animation: ff-swap .5s cubic-bezier(.2, .8, .2, 1); }
.toast.swap .ic { animation: ff-ping .6s ease; }
@keyframes ff-swap { from { opacity: 0; transform: translateY(8px); } }
@keyframes ff-ping { 40% { transform: scale(1.12); } }
.toast .ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #121212; color: #fff; }
.toast .tx { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.toast .k { font: 500 12px/1.35 var(--sans); color: #6b6b69; }
.toast .nm { font: 600 16px/1.3 var(--sans); color: #121212; white-space: nowrap; }
.toast .when { align-self: flex-start; margin: 1px 0 0 14px; font: 400 12px/1.35 var(--sans); color: #6b6b69; white-space: nowrap; }
.t2 figcaption, .t3 figcaption { margin-top: 14px; color: var(--graphite); font-size: 15px; }
/* on a desktop the table stands beside the video; stacked on a phone, a line says what it is */
.t3 .then { display: none; }
/* the table's box is 1.1008 × its width (its padding and the slot's aspect) */
.t3 { --h: calc((100cqw - var(--gutter)) * 5 / 12 * 1.1008); position: sticky; top: max(var(--nav), calc(var(--nav) + (100vh - var(--nav) - var(--h)) / 2)); }
/* The frame on a white table against a white wall: the cover's room (the
   wall's soft fall to the lightest gray, a crisp step to the white table at
   the horizon, the table lightening toward us), the frame's foot a little
   below the horizon. Behind the page's canvas (z-index -2), so the frame
   stands in front of it. */
.table { position: relative; padding: 16% 17% 9%; }
.table::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(to bottom, #fff 0%, var(--room-wall) 82%, var(--room-table) 82%, #fff 100%);
  /* no edges of its own: full behind the frame, fading to plain white toward the text on its left */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 34%, #000 86%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 34%, #000 86%, transparent);
  opacity: calc(1 - var(--night));
}
#table-slot { position: relative; aspect-ratio: 0.77576; }
/* the still includes its own shadow: TABLE_PAD in choreo.ts */
#table-slot .still { position: absolute; left: -15%; top: -15%; width: 130%; height: 120%; max-width: none; }
/* where the frame's foot meets the table, soft and wide; it comes in only as
   the frame settles (--land, choreo.ts) */
.contact { position: absolute; left: -4%; right: 2%; bottom: -6%; height: 14%; z-index: -2; pointer-events: none;
           background: radial-gradient(closest-side, rgba(0, 0, 0, .07), rgba(0, 0, 0, .025) 55%, transparent); opacity: var(--land, 1); }
.intro2.closing { margin-top: 24px; }
.intro2.closing .lede { grid-column: 1 / 8; font-size: 19px; color: var(--text); }
.logos { grid-column: 1 / 8; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin: 18px 0 0; }
.logos .sc { color: var(--graphite); }
.logos a { display: inline-flex; align-items: center; gap: 9px; font-size: 17px; color: var(--ink); filter: grayscale(1); }
.logos a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.logos img { width: 28px; height: 28px; }
/* BirdWeather's mark is drawn in ink: at night, in the night's ink */
.logos img[src$=".svg"] { filter: invert(var(--night)); }

/* IV. The collage: a year of sheets, spring to winter. On a
   desktop the row is pinned and slides sideways as the page scrolls down
   (seasons.ts); on phones, and with reduced motion, the sheets stack. */
#collage .intro2 .key { grid-column: 7 / 13; }
#collage .sub { margin: 22px 0 0; font-size: 17px; color: var(--graphite); }
.seasons { margin-top: 80px; }
.row { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 72px; }
.season { display: flex; justify-content: center; width: 100%; }
.season figure { width: min(100%, 440px); }
.season img { width: 100%; }
.season figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 18px; border-top: 1px solid var(--hair); padding-top: 10px; }
.season figcaption .it { color: var(--graphite); font-size: 17px; }
.season figcaption .sc { margin-right: auto; }
/* each season's mark, drawn like an engraving's line */
.season .ico { flex: none; align-self: center; width: 22px; height: 22px; margin-right: 10px; color: var(--ink); }
#collage .note { margin: 40px 0 0; color: var(--graphite); font-size: 15px; }
.seasons-live .seasons { height: calc(100vh - var(--nav) + 165vh); margin-top: 40px;
  /* each sheet's frame: 72% of the window's height, unless the width runs out first */
  --sh: min(72vh, calc(100vh - var(--nav) - 120px), calc((100vw - 2 * var(--m)) * 1100 / 874));
  --sw: calc(var(--sh) * 874 / 1100); }
.seasons-live .stage-row {
  position: sticky; top: var(--nav); height: calc(100vh - var(--nav)); overflow: hidden;
  display: flex; align-items: center; margin: 0 calc(-1 * var(--m));
}
.seasons-live .row { flex-direction: row; align-items: flex-start; gap: max(64px, calc((100vw - var(--sw)) / 2 - 90px)); padding: 0 var(--m); will-change: transform; }
.seasons-live .season { width: auto; }
.seasons-live .season figure { width: auto; }
.seasons-live .season img { width: var(--sw); height: var(--sh); max-width: none; }
/* the timeline: one hairline through the year, under the frames, a season's mark on it at each */
.seasons-live .row { background: linear-gradient(var(--hair), var(--hair)) 0 calc(var(--sh) + 22px) / 100% 1px no-repeat; }
.seasons-live .season figcaption { border-top: 0; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 42px; position: relative; }
.seasons-live .season .ico { position: absolute; left: -6px; top: 10px; width: 24px; height: 24px; margin: 0; padding: 0 5px; box-sizing: content-box;
  background: var(--paper); opacity: .35; transition: opacity .4s ease; }
.seasons-live .season.now .ico { opacity: 1; }

/* V. Technical details: the two frames head-on, to scale, with their dimensions; then the facts. */
.headon { display: flex; justify-content: flex-start; align-items: flex-end; gap: 96px; padding: 0 0 0 calc((100% + var(--gutter)) / 12 * 4); }
.ho { margin: 0; }
.ho .box { position: relative; }
.ho img { display: block; height: auto; }
.ho { --w: min(260px, 18vw); }
.ho.s13 img { width: var(--w); }
.ho.s10 img { width: calc(var(--w) * 596 / 604 * 295 / 371); } /* the 10-inch at the 13-inch's scale */
/* the display's diagonal, corner to corner of the mat's opening (which is the
   picture: black on it whatever the page's light, like the frames themselves) */
.diag { position: absolute; left: var(--ol); right: var(--ol); top: 17%; bottom: 17.4%; display: grid; place-items: center; pointer-events: none; }
.ho.s13 .diag { --ol: 16.9%; --angle: -51.3deg; }
.ho.s10 .diag { --ol: 19%; --angle: -53.5deg; }
.diag svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.diag line { stroke: #121212; stroke-width: 1; vector-effect: non-scaling-stroke; }
.diag span { position: relative; transform: rotate(var(--angle)); padding: 1px 8px; background: #fff; color: #121212;
             font: italic 14px var(--serif); white-space: nowrap; }
.ho figcaption { margin-top: 24px; text-align: center; }
.ho figcaption b { display: block; font: italic 400 26px/1.1 var(--serif); }
.ho figcaption span { display: block; margin-top: 4px; font: italic 14px var(--serif); color: var(--graphite); }
.spec { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); margin: 90px 0 0; }
.spec dt, .spec dd { border-top: 1px solid var(--hair); padding: 14px 0 15px; margin: 0; }
.spec dt { grid-column: 1 / 5; font: 12px/1.9 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--graphite); }
.spec dd { grid-column: 5 / 13; font-size: 19px; line-height: 1.45; }
.spec dd span { display: block; }

/* VI. Questions */
#faq { margin-top: 150px; }
#faq .folio { margin-bottom: 56px; }
.qa { margin: 0 0 0 calc((100% + var(--gutter)) / 12 * 4); }
.qa dt { font: 400 28px/1.2 var(--serif); letter-spacing: -.01em; border-top: 1px solid var(--hair); padding-top: 26px; margin-top: 26px; }
.qa dt:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.qa dd { margin: 10px 0 0; max-width: 60ch; font-size: 19px; color: var(--text); }

/* Close */
.close { margin-top: 160px; text-align: center; }
.close .big { margin: 0; }
.close .big i { display: block; }
.close p { margin: 48px 0 32px; font-size: 22px; color: var(--graphite); }

/* Colophon */
.colophon {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter);
  margin-top: 180px; padding: 22px 0 70px; border-top: 1px solid var(--ink);
  color: var(--graphite); font-size: 15px;
}
.colophon .a { grid-column: 1 / 5; }
.colophon .b { grid-column: 5 / 9; }
.colophon .c { grid-column: 9 / 13; }
.colophon .d { grid-column: 1 / 13; margin-top: 34px; font-size: 13px; }
.colophon .sc { display: block; margin-bottom: 10px; color: var(--ink); }
.colophon .signin { display: table; margin-top: 10px; color: var(--ink); }
.field { display: flex; align-items: center; height: 46px; max-width: 360px; border-bottom: 1px solid var(--ink); }
.field input {
  flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: 0; background: none; outline: none;
  font: italic 18px var(--serif); color: var(--ink);
}
.field input::placeholder { color: var(--faint); opacity: 1; }
.field:focus-within { border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.field button { padding: 0; border: 0; background: none; font: 11.5px/1 var(--caps); letter-spacing: .22em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.field button:disabled { color: var(--faint); cursor: default; }
.form-why { margin: 0 0 4px; font: italic 15px/1.4 var(--serif); color: var(--graphite); }
.form-note { margin: 8px 0 0; font: italic 15px var(--serif); color: var(--graphite); }
.form-note:empty { display: none; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.field input:focus-visible { outline: none; }

/* The cover at every desktop width: the headline, then the sentence and the
   button right under it, with the frame beside them. The headline may run a
   little over the frame; the species name is the frame's caption. */
@media (min-width: 821px) {
  .cover { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto 1fr;
           height: calc(100svh - 78px); min-height: 640px; max-height: 1100px; padding: 4vh 0 0; }
  .cover h1 { position: relative; top: 0; grid-column: 1 / -1; grid-row: 1; width: auto; font-size: clamp(120px, 15.4vw, 290px); pointer-events: none; }
  /* The frame keeps its height and its place at the bottom right; a narrower
     window slides it further under the headline and the sentence. */
  .frame { right: calc(42px - var(--m)); bottom: 7vh; width: min(600px, 60vh); height: auto; }
  /* where the frame has slid under the sentence, a paper halo keeps it clear */
  .cover .copy p, .cover .cta .it { text-shadow: 0 0 3px var(--paper), 0 0 12px var(--paper), 0 0 24px var(--paper); }
  .cover .copy { position: relative; left: auto; bottom: auto; grid-column: 1; grid-row: 2; width: auto; max-width: 25em; align-self: center; margin: 0; }
}

/* narrow desktops: the running head's links close up so the wordmark keeps its room */
@media (min-width: 821px) and (max-width: 1100px) {
  .frame { width: min(520px, 54vh); }
  .cover .copy { max-width: 22em; }
  .head nav { gap: 18px; }
  .head nav a.sc { letter-spacing: .14em; }
}

@media (max-width: 820px) {
  :root { --m: 20px; --display: clamp(46px, 14.5vw, 92px); --nav: 56px; }
  .head nav a.sc { display: none; }
  /* a slimmer running head; its wordmark and its button still a thumb's size */
  .head .word { display: inline-flex; align-items: center; min-height: 44px; font-size: 26px; }
  .head .btn { height: 44px; padding: 0 14px; }
  .head .brand { gap: 8px; }
  .head .brand .by { font-size: 10px; letter-spacing: .16em; }

  /* the cover: the headline, then the sentence and the button, then the frame */
  .cover { display: flex; flex-direction: column; height: auto; min-height: 0; max-height: none; padding-top: 30px; }
  .cover h1 { position: static; width: auto; font-size: clamp(64px, 20vw, 112px); }
  .cover h1 .l2 { margin-left: 0; }
  .frame { display: flow-root; position: relative; right: auto; bottom: auto; height: auto; width: 78%; aspect-ratio: auto; margin: 40px 0 0 18%; order: 2; }
  .stage { position: relative; left: -11.385%; top: 0; width: 123.077%; height: auto; aspect-ratio: 6 / 7; margin: -11.077% 0 -4.923%; }
  /* the cover's white room on a phone too: the wall, a crisp horizon ~30% up
     the frame, the table top lightening toward us (the frame's box ends at its feet) */
  .frame::before {
    content: ""; position: absolute; z-index: -1; left: -100vw; right: -100vw; top: 0; bottom: -34px;
    --hz: calc(0.8758 * (100vw - 2 * var(--m))); /* 88% of the frame's height (its width, 78% of the page, × 1.2759) */
    background: linear-gradient(to bottom, #fff 0%, var(--room-wall) var(--hz), var(--room-table) var(--hz), #fff 100%);
  }
  .cover .copy { position: static; width: auto; margin-top: 28px; order: 1; }

  .spread { display: block; }
  .spread .plate { position: static; width: 86%; margin: 0 auto; }
  .spread .text { display: block; margin: 40px 0 0; padding: 0; }
  .spread h2 { font-size: var(--display); }
  .spread h2 i { white-space: normal; }
  .drop::first-letter { font-size: 64px; }

  .sec { margin-top: 120px; }
  .intro2 { display: block; }
  .lede { font-size: 20px; }
  .cat { grid-template-columns: 1fr 1fr; gap: 36px 16px; }
  /* the wall's folio goes with the page on a phone: the count and the switch are set once */
  .wall .folio, .wall .folio.stuck { position: static; flex-wrap: wrap; row-gap: 14px; padding: 0; margin-bottom: 28px; background: none; box-shadow: none; }
  .folio .r { gap: 16px; }
  .tone button { min-height: 44px; padding: 0 14px; }
  /* B&W keeps the frames' size here: with no 13-inch beside them, smaller only reads as smaller */
  [data-tone="10"] .cat .im, [data-tone="10"] .cat .im:hover { transform: none; }
  [data-tone="10"] .cat .im::after { inset: 3.42% 4.3%; }
  .trip { grid-template-columns: 1fr; row-gap: 12px; }
  .lcol { padding: 0; }
  /* the notification laid on the photograph, as a phone lays one on its lock screen */
  .toast { left: 10px; top: 10px; min-width: 0; max-width: calc(100% - 20px); transform: none; }
  .ph video { aspect-ratio: 4 / 3; }
  .t3 { position: static; }
  .t3 .then { display: block; margin-top: 4px; }
  /* sound on and off: a round speaker at the spectrogram's right end, so the picture is the picture */
  .ph .unmute {
    left: auto; top: auto; right: 10px; bottom: calc(33.4% / 2 - 22px); transform: none;
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0; gap: 0; border-radius: 50%;
    background: rgba(18, 18, 18, .82); color: #fff; font-size: 0; letter-spacing: 0; box-shadow: none;
  }
  .ph .unmute[hidden] { display: none; }
  .spectro { padding-right: 64px; }
  .cover::before { display: none; }
  .intro2.closing .lede { font-size: 18px; }
  .seasons { margin-top: 48px; }
  .row { gap: 40px; }
  .headon { gap: 44px; padding: 0; justify-content: center; }
  .diag span { padding: 0 4px; font-size: 11px; }
  .ho { --w: 34vw; }
  .spec { display: block; margin-top: 70px; }
  .spec dt { padding-bottom: 0; }
  .spec dd { border-top: 0; padding-top: 4px; font-size: 18px; }
  .qa { margin-left: 0; }
  .qa dt { font-size: 23px; }
  .close { margin-top: 140px; }
  .colophon { display: block; margin-top: 110px; }
  /* the small capitals, lifted a little for a phone in daylight */
  .sc, .eyebrow, .spec dt { font-size: 12.5px; }
  .cat .by { font-size: 11px; }
  .colophon .d { font-size: 14px; }
  /* tap targets: a thumb's size, the type as it was */
  .field { height: 46px; }
  .field button { height: 46px; padding: 0 0 0 16px; }
  .logos a { min-height: 44px; }
  .colophon .c .ul, .colophon .signin { display: inline-block; padding: 12px 0; margin: -12px 0; border-bottom: 0;
    text-decoration: underline; text-decoration-color: var(--hair); text-decoration-thickness: 1px; text-underline-offset: 3px; }
  .colophon .signin { display: table; margin: 0 0 -12px; }
  .colophon > * { margin-bottom: 28px; }
  .colophon .d { margin-top: 0; }
}

@media (max-width: 400px) {
  .head .brand .by { display: none; }
}

/* a phone held sideways: the headline must leave room for the rest of the screen */
@media (max-width: 820px) and (max-height: 500px) {
  .cover h1 { font-size: 56px; }
}

/* A phone: the wall is one row, walked along sideways, a frame at a time with
   the next peeking in; each caption names its book only where the book changes. */
@media (max-width: 700px) {
  .cat { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; margin: 20px calc(-1 * var(--m)) 0; padding: 6px var(--m) 4px;
         scrollbar-width: none; overscroll-behavior-x: contain; }
  .cat::-webkit-scrollbar { display: none; }
  .cat figure { flex: 0 0 76%; scroll-snap-align: center; }
}
@media (max-width: 520px) {
  .cat .by:not(.book) { display: none; }
}

/* A tablet, 701–820 px: the phone's order, set on two columns so the cover,
   the art and the wall are not the phone's page at twice the size. */
@media (min-width: 701px) and (max-width: 820px) {
  .cover { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gutter); align-items: end; }
  .cover h1 { grid-column: 1 / -1; grid-row: 1; }
  .cover .copy { grid-column: 1; grid-row: 2; margin: 0 0 40px; }
  .frame { grid-column: 2; grid-row: 2; width: 100%; margin: 40px 0 0; }
  .cat { grid-template-columns: repeat(3, 1fr); }
  .spread { display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(2 * var(--gutter)); align-items: center; }
  .spread .plate { width: 100%; }
  .spread .text { margin: 0; }
  .spread h2 { font-size: 8.4cqw; }
  .headon { gap: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { transition: none; }
  .stage canvas, .stage.live .poster, .ff3d, .tone-anim .cat .im, .toast, .season .ico { transition: none; }
  .toast.swap .nm, .toast.swap .ic { animation: none; }
  .cat .im { transition: none; }
}

/* A wall frame, opened large (lightbox.ts): as large as fits, its caption
   under it, over the page's paper at 96%. */
.lb-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 3vh 24px;
  background: color-mix(in srgb, var(--paper) 96%, transparent); cursor: zoom-out;
}
.lightbox figure { display: flex; flex-direction: column; align-items: center; cursor: auto; }
.lightbox img { height: min(calc(94vh - 110px), calc((100vw - 48px) / var(--flat))); width: auto; max-width: none; transform-origin: 0 0; }
.lightbox figcaption { width: 100%; max-width: 34em; margin-top: 18px; text-align: center; border-top: 1px solid var(--hair); padding-top: 10px; }
.lightbox .nm { display: block; font-size: 22px; line-height: 1.2; }
.lightbox .la { display: block; font: italic 16px var(--serif); color: var(--graphite); }
.lightbox .by { display: block; margin-top: 6px; font: 11px/1.4 var(--caps); letter-spacing: .16em; text-transform: uppercase; color: var(--graphite); }
.lightbox .by i { font: italic 13px/1 var(--serif); letter-spacing: 0; text-transform: none; }
.lb-close {
  position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer;
}
.lb-close:hover { background: var(--hair); }
/* Previous / Next: small, shown on hover or focus (always, where there is no hover) */
.lb-nav {
  position: absolute; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px;
  border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; opacity: 0; transition: opacity .2s ease;
}
.lb-nav.prev { left: 18px; }
.lb-nav.next { right: 18px; }
.lightbox:hover .lb-nav, .lb-nav:focus-visible { opacity: 1; }
.lb-nav:hover { background: var(--hair); }
@media (hover: none), (pointer: coarse) { .lb-nav { opacity: 1; } }
/* the running head never shows through the lightbox (its Close sat on the head's Pre-order) */
.lb-open .head { visibility: hidden; }
.lightbox { touch-action: pan-y pinch-zoom; }
.lightbox figure { grid-area: 1 / 1; } /* the outgoing and incoming frames cross-fade in one place */

/* a section's link lands its eyebrow just under the running head (main.ts does the same, and knows the journey) */
main section[id] { scroll-margin-top: calc(var(--nav) + 24px); }

/* The byline only where the nav has room beside it. */
@media (min-width: 821px) and (max-width: 1180px) {
  .brand .by { display: none; }
}
