/* CTO 001, Mamuto AB: the drop's own world. Paper, plum and rust; engraved line and contour.
   The house appears only as the corner box and the footer. Italic is for the drop's title (and
   the house motto in the footer), nowhere else. */
:root {
  --paper: #EDE4D3;
  --paper-hi: #F4EEE2;
  --card: #FBF8F1;
  --ink: #3E1428;
  --line: #4A1830;
  --rust: #B4592A;
  --deep: #2A0C1A;
  --muted: #76585F;
  --rule: #D6C8B0;
  --vermilion: #E2432A;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --num: "Imbue", "Didot", "Bodoni 72", serif;
  --gutter: clamp(16px, 3.2vw, 48px);
  --top: clamp(16px, 2.4vw, 32px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --box: 52px;
}
* { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: var(--gutter); top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: calc(var(--box) + var(--top) + 10px); }

/* ---------- the corner box: the house's disc and the issue number, in this drop's plum ---------- */
.cbox {
  position: fixed; z-index: 40; top: var(--top); left: var(--gutter);
  width: var(--box); height: var(--box); display: grid; justify-items: center; align-content: center; gap: 5px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  transition: transform .5s var(--ease);
}
.cbox svg { width: 53%; height: auto; fill: currentColor; display: block; }
.cbox b { font: 500 11px/1 "Fragment Mono", ui-monospace, monospace; letter-spacing: .06em; }   /* the mono, as the house box that lifted off: same disc/number proportions as brand/r5-issue's .cv-box */
.cbox:hover { transform: translateY(-2px); }
.notify-link {
  position: fixed; z-index: 40; top: calc(var(--top) + 8px); right: calc(var(--gutter) - 12px);
  font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
  padding: 7px 12px; border-radius: 999px; transition: opacity .4s ease, background-color .4s ease;
}
.notify-link { text-shadow: 0 0 6px var(--paper), 0 0 12px var(--paper); }
/* once the descent has scrolled away, a band of this page's paper sits under the corner box and the
   link, so headings pass beneath them cleanly instead of colliding. Never over the descent itself. */
.topfade { position: fixed; z-index: 39; left: 0; right: 0; top: 0; height: calc(var(--top) + var(--box) + 22px); pointer-events: none;
  background: linear-gradient(var(--paper) 0, var(--paper) calc(100% - 26px), color-mix(in srgb, var(--paper) 0%, transparent) 100%);
  opacity: 0; transition: opacity .35s ease; }
.past-scene .topfade { opacity: 1; }
.notify-link.away { opacity: 0; pointer-events: none; }

/* masked lines: they rise out of their own line box, a tenth of a second apart */
.ln { display: block; overflow: hidden; padding: 0 .06em .16em; margin: 0 -.06em -.16em; }
.ln > span { display: inline-block; transform: translate3d(0, 140%, 0); transition: transform 1s var(--ease); }
.ln:nth-child(2) > span { transition-delay: .09s; }
.ln:nth-child(3) > span { transition-delay: .18s; }
.ln:nth-child(4) > span { transition-delay: .27s; }
.farm-credit .ln > span, .opening .by .ln > span { transition-delay: .3s; }
.in .ln > span { transform: none; }

/* ---------- the descent: one pinned scene ---------- */
/* lvh throughout (not vh): vh tracks whichever viewport iOS's address bar leaves at the moment, so a
   mixed unit here would resize the whole pinned scene under the reader's thumb as the bar shows or
   hides mid-scroll. lvh stays fixed at the large viewport, so the scene's height never moves. */
.scene { position: relative; height: calc(100lvh + 420lvh); }
.pin { position: sticky; top: 0; height: 100lvh; overflow: hidden; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.poster { display: none; }
.no-gl .poster { display: block; position: absolute; inset: 0; }
.no-gl .poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.no-gl .poster img.on { opacity: 1; }
.stage { position: absolute; left: 0; right: 0; top: 0; height: 100svh; pointer-events: none; }
.stage a, .stage button { pointer-events: auto; }
.veil { position: absolute; inset: 0; background: var(--paper); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.veil.on { opacity: 1; transition: none; }
body.on-ground .pin { cursor: crosshair; }

.opening { position: absolute; left: var(--gutter); bottom: calc(var(--top) + 118px); max-width: 60vw; }
.opening::before { content: ""; position: absolute; z-index: -1; left: -40vw; right: -12vw; top: -18vh; bottom: -30vh;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--paper) 78%, transparent), transparent); pointer-events: none; }
.opening .no { font-weight: 600; font-size: 15px; letter-spacing: .02em; font-feature-settings: "tnum" 1; margin-bottom: 14px; opacity: 0; transition: opacity 1s ease .5s; }
.title { font-family: var(--serif); font-style: italic; font-weight: 330; font-variation-settings: "opsz" 72; font-size: clamp(40px, min(8.6vw, 15.5vh), 156px); line-height: .92; letter-spacing: -.028em; color: var(--ink); }
.title .ln { display: inline-block; vertical-align: top; padding-top: .18em; margin-top: -.18em; }   /* room in the mask for the italic caps' tops (the B), without moving the line */
.opening .by { font-family: var(--serif); font-weight: 400; font-variation-settings: "opsz" 24; font-size: clamp(19px, 1.6vw, 26px); margin-top: 18px; }
.opening.in .no { opacity: 1; }

.caption { position: absolute; left: var(--gutter); top: calc(var(--top) + var(--box) + 34px); font-family: var(--serif); font-weight: 380; font-variation-settings: "opsz" 36;
  font-size: clamp(22px, 2.1vw, 34px); line-height: 1.16; letter-spacing: -.01em; max-width: 21em; text-wrap: balance; }
.caption .rust { color: var(--rust); }
/* the captions sit on the drawing, so a little of this paper lifts the lines away behind the words */
.caption::before, .farm-text::before { content: ""; position: absolute; z-index: -1; inset: -34px -60px -40px -40vw; pointer-events: none;
  background: radial-gradient(farthest-side at 30% 50%, color-mix(in srgb, var(--paper) 88%, transparent) 55%, transparent); }
.caption, .farm-text { isolation: isolate; }
/* main.js only sets visibility inline once its first scroll-position tick runs (after fonts and the
   CDN scripts are ready); on a cold load that can lag behind first paint, so without this default
   both captions and the farm heading show at once, stacked on the opening title. Hidden until then. */
.caption, .farm-text { visibility: hidden; }

.farm-text { position: absolute; left: var(--gutter); top: calc(var(--top) + var(--box) + 30px); max-width: min(46vw, 640px); }
.farm-line { font-family: var(--serif); font-weight: 360; font-variation-settings: "opsz" 60; font-size: clamp(36px, 4vw, 66px); line-height: 1.0; letter-spacing: -.022em; text-wrap: balance; }
.farm-credit { margin-top: 14px; font-size: 15px; color: var(--muted); }

.alt-big { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; opacity: 0; visibility: hidden; color: var(--ink); }
.alt-big .n { font-family: var(--num); font-weight: 200; font-variation-settings: "opsz" 100; font-size: clamp(104px, 17vw, 300px); line-height: .9; letter-spacing: -.01em; }
.alt-big .n i { font-style: normal; display: inline-block; width: .37em; text-align: center; }
.alt-big .n i.c { width: .16em; }
.alt-big .u { font-size: 15px; font-weight: 500; margin-left: .4em; vertical-align: 1.2em; }
.alt-big .sub { display: block; margin-top: 14px; font-size: 14px; color: var(--muted); opacity: 0; transition: opacity .6s ease; }
.alt-big.locked .sub { opacity: 1; }

.hud { position: absolute; left: var(--gutter); bottom: var(--top); display: grid; gap: 2px; font-size: 13px; line-height: 1.35; transition: opacity .4s ease;
  text-shadow: 0 0 6px var(--paper), 0 0 14px var(--paper); }
.hud .k { color: var(--muted); }
.hud .v { font-weight: 500; font-size: 24px; line-height: 1.15; letter-spacing: -.01em; }
.hud .v small { font-size: 13px; font-weight: 500; margin-left: 5px; }
.hud .sub { color: var(--muted); min-height: 1.35em; }
.hud.reading .v { color: var(--rust); }
.hud.bare .v { display: none; }
.hint { position: absolute; right: var(--gutter); bottom: var(--top); display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); transition: opacity .35s ease; }
.hint b { display: inline-block; width: 1px; height: 26px; background: currentColor; transform-origin: top; animation: drip 2.2s cubic-bezier(.6, 0, .2, 1) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- sections on paper ---------- */
.eyebrow { font-size: 15px; font-weight: 500; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.dialing { font-weight: 500; font-size: 13px; color: var(--rust); display: inline-flex; align-items: center; gap: 7px; }
.dialing::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.honest { max-width: 44em; font-size: 14px; line-height: 1.55; color: var(--muted); }
h2 { font-family: var(--serif); font-weight: 360; font-variation-settings: "opsz" 60; letter-spacing: -.02em; text-wrap: balance; }

/* the family */
.family { position: relative; padding: clamp(80px, 14vh, 160px) var(--gutter) clamp(90px, 14vh, 170px); }
.name { position: relative; max-width: 1200px; margin: 0 auto; }
.parts { display: grid; gap: clamp(4px, .8vw, 12px); }
.part { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: clamp(18px, 3vw, 48px);
  font-family: var(--serif); font-weight: 340; font-variation-settings: "opsz" 72; font-size: clamp(46px, 7.4vw, 124px); line-height: 1; letter-spacing: -.025em; }
.part .w { white-space: nowrap; }
.part b { font-weight: inherit; color: var(--ink); }
.part .rest { color: color-mix(in srgb, var(--ink) 30%, transparent); transition: color 1.2s ease; }
.name.built .part .rest { color: color-mix(in srgb, var(--ink) 16%, transparent); }
.part .gloss { grid-column: 2; font-family: var(--sans); font-size: clamp(14px, 1.2vw, 17px); letter-spacing: 0; color: var(--muted); }
.whole { font-family: var(--serif); font-weight: 340; font-variation-settings: "opsz" 72; font-size: clamp(46px, 7.4vw, 124px); line-height: 1; letter-spacing: -.025em;
  margin-top: clamp(26px, 4vw, 56px); padding-top: clamp(18px, 2.4vw, 30px); border-top: 1px solid var(--rule); }
.whole span { display: inline-block; }
.name.pre .whole span { opacity: 0; }
.fly { position: fixed; z-index: 30; margin: 0; pointer-events: none; font-family: var(--serif); font-weight: 340; font-variation-settings: "opsz" 72; letter-spacing: -.025em; line-height: 1; color: var(--ink); will-change: transform; }

.facts { position: relative; max-width: 1200px; margin: clamp(56px, 9vw, 120px) auto 0; display: grid; grid-template-columns: 1fr minmax(0, 760px) 1fr; column-gap: 32px; align-items: start; }
.facts dl { grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 30px 44px; }
.facts dl > div { border-top: 1px solid var(--rule); padding-top: 12px; }
.facts dt { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.facts dd { font-family: var(--serif); font-weight: 400; font-variation-settings: "opsz" 20; font-size: 19px; line-height: 1.42; }
.facts .source { grid-column: 2; margin-top: 26px; font-size: 13px; color: var(--muted); }
.spec { grid-row: 1; transition: transform .8s var(--ease); }
.spec-split { grid-column: 1; width: min(180px, 100%); justify-self: end; margin-top: 30px; transform: rotate(-8deg); }
.scrub-note { display: none; }
.spec-bean { grid-column: 3; width: min(120px, 100%); margin-top: 220px; transform: rotate(14deg); }
.spec:hover { transform: rotate(0deg) scale(1.05); }

/* the roaster: spare on the surface, the rest one tap away */
.roaster { max-width: 1440px; margin: 0 auto; padding: clamp(70px, 11vh, 130px) var(--gutter) clamp(80px, 12vh, 140px); border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px clamp(28px, 5vw, 80px); align-items: start; }
.roaster h2 { font-size: clamp(38px, 4.2vw, 70px); line-height: 1.02; margin-top: 16px; }
.r-by { margin-top: 14px; font-size: 15px; color: var(--muted); }
.r-body { display: grid; gap: 18px; }
.roaster .source a { text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.r-facts { display: grid; gap: 22px; }
.r-facts > div, .r-more li { border-top: 1px solid var(--rule); padding-top: 12px; }
.r-facts dt { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.r-facts dd { font-family: var(--serif); font-weight: 400; font-variation-settings: "opsz" 20; font-size: 19px; line-height: 1.42; }
.r-more-btn { justify-self: start; appearance: none; background: none; border: 0; padding: 10px 0; cursor: pointer; display: inline-flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 500; }
.r-more-btn i { position: relative; width: 17px; height: 17px; border: 1px solid currentColor; border-radius: 50%; }
.r-more-btn i::before, .r-more-btn i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 1px; background: currentColor; transform: translate(-50%, -50%); transition: transform .4s var(--ease); }
.r-more-btn i::after { transform: translate(-50%, -50%) rotate(90deg); }
.r-more-btn[aria-expanded="true"] i::after { transform: translate(-50%, -50%) rotate(0deg); }
.r-more-btn span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.r-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.r-more > div { overflow: hidden; }
.r-more.open { grid-template-rows: 1fr; }
.r-more ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 14px; }
.r-more li { font-size: 16px; line-height: 1.5; }
.roaster .source { grid-column: 2; font-size: 13px; color: var(--muted); }

/* the comic's slot: comic-001's chapter mounts here and keeps its own styles */
.comic-slot { padding: clamp(40px, 8vh, 90px) 0 clamp(60px, 10vh, 120px); border-top: 1px solid var(--rule); }
.comic-slot:empty { display: none; }

/* ---------- the shot ---------- */
.shot { position: relative; padding: clamp(80px, 12vh, 150px) var(--gutter) clamp(60px, 10vh, 120px); border-top: 1px solid var(--rule); }
.shot-head { display: grid; grid-template-columns: minmax(200px, 30%) 1fr; gap: clamp(24px, 4vw, 64px); align-items: end; max-width: 1340px; margin: 0 auto; }
.machine img { width: 100%; mix-blend-mode: multiply; }
.shot-words h2 { font-size: clamp(42px, 5.4vw, 92px); line-height: .98; margin-top: 18px; }
.shot-sub { margin-top: 22px; font-size: 17px; max-width: 30em; }
.shot-scrub { position: relative; }
.shot-pin { max-width: 1340px; margin: clamp(36px, 6vh, 64px) auto 0; }
.plot { position: relative; padding-left: 26px; }
.plot-area { position: relative; height: clamp(280px, 44vh, 470px); touch-action: pan-y; cursor: col-resize; }
.plot-area svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* the plot: pressure as a hillside of contours, flow dotted, the cup filling in rust */
#plotSvg .hl { stroke: var(--line); stroke-opacity: .2; stroke-width: .7; }
#plotSvg .hx { stroke: var(--line); stroke-opacity: .5; stroke-width: 1; }
#plotSvg .ph { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 4; }
#plotSvg .pn { font: 400 14px var(--serif); fill: var(--muted); }
#plotSvg .ax { font: 500 12px var(--sans); fill: var(--muted); font-feature-settings: "tnum" 1; }
#plotSvg .base { stroke: var(--ink); stroke-width: 1; }
#plotSvg .pressure { fill: none; stroke: var(--line); stroke-width: 2.2; stroke-linejoin: round; }
#plotSvg .flow { fill: none; stroke: var(--rust); stroke-opacity: .75; stroke-width: 1.4; stroke-dasharray: 1 3.5; stroke-linecap: round; }
#plotSvg .weight { fill: none; stroke: var(--rust); stroke-width: 1.8; stroke-linejoin: round; }
#plotSvg .wl { font: 500 13px var(--sans); fill: var(--rust); font-feature-settings: "tnum" 1; }
#plotSvg .drop line { stroke: var(--rust); stroke-width: 1.2; }
#plotSvg .drop text { font: 500 12px var(--sans); fill: var(--rust); }
.plot-key { display: flex; gap: 6px 22px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--muted); }
.plot-note { font-size: 13px; color: var(--muted); text-align: right; margin: 0 0 18px; }
.plot-key span { display: inline-flex; align-items: center; gap: 8px; }
.plot-key i { display: inline-block; width: 22px; height: 0; border-top: 2px solid var(--line); }
.plot-key .k-w i { border-top-color: var(--rust); }
.plot-key .k-f i { border-top: 2px dotted var(--rust); }
.plot-x { position: relative; height: 22px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.plot-x span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.plot-x span.end { transform: translateX(-100%); }
.head { position: absolute; top: 0; bottom: 0; width: 0; margin-left: -.5px; border-left: 1px solid var(--rust); pointer-events: none; opacity: 0; transition: opacity .3s ease; }
.head.on { opacity: 1; }
.head i { position: absolute; left: -5px; width: 10px; height: 10px; margin-bottom: -5px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); }
.head i.dot-w { border-color: var(--rust); }
.plot-range { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.plot-range:focus-visible + * { outline: none; }
.plot:focus-within .plot-area { outline: 2px solid var(--rust); outline-offset: 6px; }

.shot-foot { display: grid; grid-template-columns: auto auto 1fr auto; gap: clamp(20px, 3vw, 48px); align-items: start; margin-top: 28px; }
.glass { width: 62px; height: auto; overflow: visible; margin-top: -6px; }
.glass .rim { fill: none; stroke: var(--line); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.glass .lvl { stroke: var(--rust); stroke-width: 1; }
.glass .top { stroke: var(--rust); stroke-width: 1.6; }
.glass .crema { stroke: var(--line); stroke-opacity: .55; stroke-width: 1; }
.read { display: grid; grid-template-columns: repeat(4, minmax(4.6em, auto)); gap: 8px clamp(18px, 2.4vw, 36px); }
.read dt { font-size: 13px; color: var(--muted); }
.read dd { font-weight: 500; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.1; letter-spacing: -.01em; white-space: nowrap; }
.read dd small { font-size: 13px; margin-left: 4px; font-weight: 500; }
.read dd.hot { color: var(--rust); }
.phase { max-width: 30em; min-height: 5.4em; }
.phase-name { font-family: var(--serif); font-weight: 400; font-variation-settings: "opsz" 36; font-size: 26px; line-height: 1.1; }
.phase-text { margin-top: 6px; font-size: 16px; line-height: 1.45; }
.shot-ctl { display: grid; gap: 10px; justify-items: start; }
.shot-ctl button, .clock-ctl button, .notify button {
  appearance: none; border: 1px solid var(--ink); background: transparent; border-radius: 999px; padding: 11px 18px; min-height: 44px;
  font-size: 15px; font-weight: 500; cursor: pointer; transition: background .3s ease, color .3s ease;
}
.shot-ctl button:hover, .clock-ctl button:hover, .notify button:hover, .shot-ctl button[aria-pressed="true"], .clock-ctl button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.scrub-hint { font-size: 13px; color: var(--muted); }
.shot .honest { max-width: 1340px; margin: 34px auto 0; }

/* ---------- the Switch ---------- */
.switch { position: relative; padding: clamp(80px, 12vh, 150px) var(--gutter); border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "head frames" "clock frames" "steps frames" "note note"; column-gap: clamp(28px, 5vw, 90px); max-width: 1440px; margin: 0 auto; }
.sw-head { grid-area: head; }
.sw-head h2 { font-size: clamp(40px, 4.6vw, 80px); line-height: 1; margin-top: 18px; }
.sw-ratio { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; margin-top: 26px; }
.sw-ratio .big { font-family: var(--num); font-weight: 220; font-variation-settings: "opsz" 100; font-size: clamp(72px, 7vw, 124px); line-height: .9; }
.sw-ratio small { font-size: 14px; color: var(--muted); margin-right: 8px; }
.sw-ratio .arr { color: var(--rust); font-size: 30px; margin: 0 6px; }
.sw-sub { margin-top: 12px; font-size: 16px; }
.sw-frames { grid-area: frames; position: sticky; top: 90px; align-self: start; margin-top: 40px; }
.frames { display: grid; background: var(--paper); }
.frame { grid-area: 1 / 1; width: 100%; mix-blend-mode: multiply; opacity: 0; transition: opacity .7s ease; }
.frame.on { opacity: 1; }
.moments { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; }
.moment { appearance: none; background: none; border: 0; padding: 10px 0; font-size: 14.5px; color: var(--muted); cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: color .4s ease, text-decoration-color .4s ease; }
.moment.on { color: var(--ink); text-decoration-color: var(--rust); }
.clock { grid-area: clock; margin-top: 40px; }
.clock .time { font-family: var(--num); font-weight: 200; font-variation-settings: "opsz" 100; font-size: clamp(96px, 10vw, 170px); line-height: .9; }
.clock .time i { font-style: normal; display: inline-block; width: .38em; text-align: center; }
.clock .time i.c { width: .17em; }
.track { position: relative; height: 44px; margin-top: 10px; touch-action: pan-y; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 1px; background: var(--rule); }
.track .fill { position: absolute; left: 0; top: 20px; height: 3px; width: 0; background: var(--ink); }
.track .mark { position: absolute; left: calc(var(--at) * 100%); top: 30px; transform: translateX(-50%); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.track .mark.m-done { transform: translateX(-100%); }
.track .mark i { position: absolute; left: 50%; top: -14px; width: 1px; height: 11px; background: currentColor; }
.track .mark.m-done i { left: 100%; }
.track .mark.m-open { color: var(--rust); }
.track input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; touch-action: pan-y; }
.clock-ctl { display: flex; gap: 10px; margin-top: 18px; }
.steps { grid-area: steps; list-style: none; padding: 0; margin-top: 36px; display: grid; }
.steps li { display: grid; grid-template-columns: 3.4em 1fr; gap: 14px; padding: 11px 0; border-top: 1px solid var(--rule); font-size: 17px; line-height: 1.4; color: var(--muted); transition: color .4s ease; }
.steps li time { font-weight: 500; }
.steps li.on { color: var(--ink); }
.steps li.on time { color: var(--rust); }
.switch .honest { grid-area: note; margin-top: 30px; }

/* ---------- the bag ---------- */
.bag { position: relative; padding: clamp(80px, 12vh, 150px) var(--gutter); border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 90px); align-items: center; max-width: 1440px; margin: 0 auto; }
.bag-words h2 { font-size: clamp(40px, 4.6vw, 80px); line-height: 1; }
.bag-words p { margin-top: 22px; font-size: 18px; line-height: 1.5; max-width: 30em; }
.bag-stage { position: relative; justify-self: center; width: min(100%, 520px); }
.bag-art { position: relative; aspect-ratio: 870 / 1099; container-type: inline-size; }
.bag-img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the paper under the bag (the box is the bag's body in bag.webp): a soft shadow while it's still in the air,
   a tight one once it's down. Each is a box-shadow round an empty core that stays hidden under the bag,
   so it's painted once and only its transform and opacity move. */
.bag-shade { position: absolute; left: 16.7%; top: 6.9%; width: 79%; height: 86.1%; }
.bag-shade::before, .bag-shade::after { content: ""; position: absolute; }
.bag-shade::before { inset: 10cqw; box-shadow: 0 0 14cqw 9cqw rgb(42 12 26 / .28); opacity: 0; }
.bag-shade::after { inset: 3.4cqw; box-shadow: -.6cqw .9cqw 2.4cqw 2.6cqw rgb(42 12 26 / .16); }
/* the disc, and its own two shadows on the paper: soft and further off while it's lifted, tight once it's pressed on */
.bag-sticker { position: absolute; left: 84%; top: 19.5%; width: 13.5%; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(-7deg);
  padding: 0; border: 0; background: none; border-radius: 50%; cursor: zoom-in; transition: transform .7s var(--ease); }
.bag-sticker img { width: 100%; height: 100%; }
.bag-sticker::before, .bag-sticker::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; pointer-events: none; transition: opacity .5s ease, transform .7s var(--ease); }
.bag-sticker::before { inset: 6%; background: rgb(42 12 26 / .24); box-shadow: 0 0 2.8cqw 1cqw rgb(42 12 26 / .24); opacity: 0; transform: translate3d(-12%, 16%, 0); }
.bag-sticker::after { box-shadow: 0 1px 1.5px rgb(42 12 26 / .34); }
.bag-sticker[aria-expanded="true"] { transform: translate(-50%, -50%) rotate(0deg) scale(2.6); cursor: zoom-out; z-index: 3; }
.bag-sticker[aria-expanded="true"]::before { opacity: 1; }
.bag-sticker[aria-expanded="true"]::after { opacity: 0; }
/* played once as the bag comes into view (page.js); without that, this is simply the finished state.
   Their bag arrives whole and settles; the only thing that moves onto it is ours. */
.bag-art.pre { opacity: 0; }
/* the fade is on the whole group, so the shadows never show through a half-faded bag */
.bag-art.play { animation: bag-arrive .3s ease-out backwards; }
.bag-art.play .bag-img { animation: bag-land 1s cubic-bezier(.22, .61, .24, 1) backwards; }
/* the soft shadow closes in with the bag but lingers a little longer than the lift, so the landing reads */
.bag-art.play .bag-shade::before { animation: bag-shade-far 1s cubic-bezier(.22, .61, .24, 1) backwards, bag-shade-fade 1s cubic-bezier(.45, 0, .55, 1) backwards; }
.bag-art.play .bag-shade::after { animation: bag-shade-near 1s ease-out backwards; }
.bag-art.play .bag-sticker { animation: bag-disc .85s .9s backwards; }
.bag-art.play .bag-sticker::before { animation: bag-disc-lift .85s .9s backwards; }
.bag-art.play .bag-sticker::after { animation: bag-disc-press .85s .9s backwards; }
@keyframes bag-arrive { from { opacity: 0; } }
@keyframes bag-land { from { transform: translate3d(1.2%, -2.4%, 0) scale(1.03); } }
@keyframes bag-shade-far { from { transform: translate3d(-4%, 4.5%, 0) scale(1.05); } }
@keyframes bag-shade-fade { from { opacity: 1; } }
@keyframes bag-shade-near {
  from, 45% { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: none; }
}
/* in from the right, a touch large and turned; a beat just above its spot; pressed on; a tiny settle */
@keyframes bag-disc {
  0% { opacity: 0; transform: translate(-50%, -50%) translate(45%, -60%) rotate(-20deg) scale(1.3); animation-timing-function: cubic-bezier(.25, .7, .3, 1); }
  18% { opacity: 1; }
  56% { transform: translate(-50%, -50%) translate(0, 0) rotate(-9deg) scale(1.13); animation-timing-function: cubic-bezier(.55, 0, .9, .45); }
  74% { transform: translate(-50%, -50%) translate(0, 0) rotate(-7deg) scale(.975); animation-timing-function: cubic-bezier(.3, .6, .4, 1); }
  100% { opacity: 1; transform: translate(-50%, -50%) translate(0, 0) rotate(-7deg) scale(1); }
}
@keyframes bag-disc-lift {
  0% { opacity: 0; transform: translate3d(-24%, 30%, 0); animation-timing-function: cubic-bezier(.25, .7, .3, 1); }
  18% { opacity: 1; }
  56% { opacity: 1; transform: translate3d(-12%, 16%, 0); animation-timing-function: cubic-bezier(.55, 0, .9, .45); }
  74%, 100% { opacity: 0; transform: none; }
}
@keyframes bag-disc-press {
  0%, 70% { opacity: 0; }
  76%, 100% { opacity: 1; }
}
.sticker-note { margin-top: 18px; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 30em; opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .6s var(--ease); }
.sticker-note.on { opacity: 1; transform: none; }

/* ---------- drop merch ---------- */
.merch { padding: clamp(80px, 12vh, 150px) 0; border-top: 1px solid var(--rule); }
.merch-head { padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.merch-head h2 { font-size: clamp(40px, 4.6vw, 80px); line-height: 1; }
.merch-head p { font-size: 17px; color: var(--muted); text-wrap: pretty; }
.merch-list { list-style: none; margin: 44px auto 0; padding: 0 var(--gutter); max-width: 1440px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 44px 24px; }
.merch-list li { grid-column: span 2; }
.merch-list li:nth-child(-n+2) { grid-column: span 3; }
.merch-list .pic { position: relative; aspect-ratio: 4 / 5; background: var(--paper); overflow: hidden; }
/* each piece's backdrop is colour-matched to this paper in the file itself; the photo's own grain then
   fades out at its edges, so no piece sits in a visible box */
.merch-list .pic img {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 7%, #000 93%, transparent);
  mask-composite: intersect;
}
.merch-list li:nth-child(-n+2) .pic { aspect-ratio: 5 / 4; }
.merch-list .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.merch-list li:hover .pic img { transform: scale(1.03); }
.merch-list h3 { margin-top: 14px; font-family: var(--serif); font-weight: 420; font-variation-settings: "opsz" 30; font-size: 23px; line-height: 1.15; }
.merch-list .mat { margin-top: 6px; font-size: 14.5px; line-height: 1.45; }
.merch-list .quip { margin-top: 6px; font-size: 14.5px; color: var(--muted); }

/* ---------- the offer ---------- */
.offer { padding: clamp(90px, 14vh, 170px) var(--gutter) clamp(80px, 12vh, 140px); border-top: 1px solid var(--rule); max-width: 1440px; margin: 0 auto; }
.offer h2 { font-size: clamp(42px, 6vw, 104px); line-height: .98; max-width: 11em; }
.notify { margin-top: 38px; max-width: 560px; }
.notify label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.notify .field { display: flex; gap: 10px; }
.notify input { flex: 1; min-width: 0; min-height: 50px; padding: 12px 16px; font: inherit; font-size: 17px; color: var(--ink); background: var(--paper-hi); border: 1px solid var(--rule); border-radius: 999px; }
.notify input:focus { outline: 2px solid var(--rust); outline-offset: 2px; }
.notify input[aria-invalid="true"] { border-color: var(--rust); }
.notify button { background: var(--ink); color: var(--paper); min-height: 50px; padding: 12px 24px; }
.notify button:hover { background: var(--deep); }
.notify .fine { margin-top: 10px; font-size: 14px; color: var(--muted); }
.notify.done .field { display: none; }
.box { margin-top: clamp(64px, 10vh, 110px); }
.box h3 { font-family: var(--serif); font-weight: 400; font-variation-settings: "opsz" 30; font-size: 26px; }
.box-list { list-style: none; padding: 0; margin-top: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: end; }
.box-list li { display: grid; gap: 12px; justify-items: center; text-align: center; font-size: 14.5px; }
.box-list li > img, .box-list .card { height: clamp(150px, 16vw, 230px); width: auto; object-fit: contain; }
.bx-bag img { filter: drop-shadow(0 12px 18px rgba(42, 12, 26, .18)); }
.bx-sticker img { height: clamp(96px, 9vw, 140px) !important; }
.bx-book[hidden] { display: none; }
.card { container-type: inline-size; aspect-ratio: 5 / 7; background: var(--card); box-shadow: 0 1px 0 var(--rule), 0 18px 30px -22px rgba(42, 12, 26, .45); overflow: hidden; text-align: left; transform: rotate(-3deg); }
.card-in { padding: 9cqw 8cqw; display: grid; align-content: start; gap: 4cqw; }
.card .c-t { font-family: var(--serif); font-size: 8.6cqw; line-height: 1.1; }
.card .c-l { font-size: 5.4cqw; line-height: 1.35; color: var(--ink); }
.card svg { width: 100%; height: auto; margin-top: 2cqw; }

/* ---------- the house footer ---------- */
.house { border-top: 1px solid var(--rule); padding: 44px var(--gutter) calc(40px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: auto 1fr; gap: 10px 40px; align-items: baseline; max-width: 1440px; margin: 0 auto; }
.house-mark svg { height: 13px; width: auto; display: block; }
.house-mark .wm-l { fill: var(--ink); }
.house-mark .wm-1 { fill: var(--vermilion); }
/* the house's one gesture here: the carried 1 comes up out of the O, once, as the footer arrives */
.house.wait .wm-1 { transform: translate(117px, 1150px); opacity: 0; }
.house.carried .wm-1 { transform: none; opacity: 1; transition: transform 1.1s cubic-bezier(.3, 0, .1, 1) .2s, opacity .25s ease .2s; }
.house .motto { font-family: var(--serif); font-style: italic; font-weight: 380; font-size: 19px; }
.house .next { grid-column: 1; font-size: 14px; color: var(--muted); }
.house .credits { grid-column: 2; font-size: 12.5px; line-height: 1.5; color: var(--muted); max-width: 70em; }

/* ---------- intro (skipped under reduced motion) ---------- */
/* Nothing above the paper (the opening title included) shows until main.js has swapped .intro for
   .ready/.settled, which it only does once fonts are in and the descent is measured. Without this,
   a slow cold load paints the opening's pieces as JS reaches them instead of all together: the byline
   alone, the title still masked out, captions and the farm heading loose (see .caption/.farm-text
   below) — a half-built screen instead of paper, then the opening arriving as designed. */
.intro .cbox, .intro .notify-link, .intro .hud, .intro .hint, .intro .opening { opacity: 0; }
.intro .opening { visibility: hidden; }
.ready .cbox, .ready .notify-link { animation: fade 1.2s .9s ease backwards; }
.from-house .intro .cbox, .from-house .ready .cbox { opacity: 1; animation: none; }
.ready .hud, .ready .hint { animation: fade 1.2s 1.5s ease backwards; }
/* Failsafe: if main.js or a CDN script (gsap, three, lenis) never arrives, .intro never gets removed.
   Reveal everything after a few seconds rather than leave the page blank. This animation only exists
   on elements still matching .intro — the instant JS removes that class in the ordinary case, the
   selector stops matching and the animation is gone with it, so it never fights JS's own control. */
@keyframes intro-failsafe { to { opacity: 1; visibility: visible; } }
.intro .cbox, .intro .notify-link, .intro .hud, .intro .hint, .intro .opening { animation: intro-failsafe 0s 3s forwards; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- phones: a different page, not a smaller one ---------- */
@media (max-width: 760px) {
  :root { --box: 44px; }
  .cbox { gap: 4px; }
  .cbox b { font-size: 9.5px; }
  .notify-link { top: calc(var(--top) + 5px); font-size: 15px; }
  .scene { height: calc(100lvh + 360lvh); }
  .opening { left: var(--gutter); right: var(--gutter); bottom: calc(var(--top) + 96px); max-width: none; }
  .title { font-size: clamp(50px, 15.4vw, 72px); line-height: .95; }
  .title .ln { display: block; }
  .opening .by { font-size: 19px; margin-top: 12px; }
  .opening .no { font-size: 14px; margin-bottom: 10px; }
  .caption { top: calc(var(--top) + var(--box) + 22px); right: var(--gutter); font-size: 22px; }
  .farm-text { top: calc(var(--top) + var(--box) + 20px); right: var(--gutter); max-width: none; }
  .farm-line { font-size: 34px; }
  .farm-credit { font-size: 14px; max-width: 22em; }
  .hud .v { font-size: 21px; }
  .hud { font-size: 12.5px; }
  /* barely there: no word, just a short line, bottom centre, that breathes twice then holds still
     (it also vanishes outright on the first touch; see main.js) rather than dripping indefinitely */
  .hint { left: 50%; right: auto; bottom: calc(var(--top) - 2px); transform: translateX(-50%); gap: 0; }
  .hint span { display: none; }
  .hint b { width: 1px; height: 15px; animation: drip 2.4s cubic-bezier(.6, 0, .2, 1) 2 forwards; }

  .part { grid-template-columns: 1fr; font-size: clamp(44px, 13.6vw, 64px); }
  .part .gloss { grid-column: 1; grid-row: 2; margin-top: 4px; margin-bottom: 10px; }
  .whole { font-size: clamp(44px, 13.6vw, 64px); }
  .facts { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .facts dl { grid-column: 1 / -1; grid-row: 2; grid-template-columns: 1fr; gap: 22px; margin-top: 10px; }
  .facts .source { grid-column: 1 / -1; grid-row: 3; }
  .spec-split { grid-column: 1; width: 120px; justify-self: end; margin: 0 10px 0 0; }
  .spec-bean { grid-column: 2; width: 74px; justify-self: start; margin: 40px 0 0 10px; }
  .facts dd { font-size: 18px; }

  .roaster { grid-template-columns: 1fr; }
  .roaster .source { grid-column: 1; }
  .shot-head { grid-template-columns: 1fr; gap: 8px; }
  .machine { width: 62%; margin: 0 auto; }
  .shot-words h2 { font-size: 44px; }
  .shot-sub { font-size: 16px; }
  /* on a phone the page's own scroll pulls the shot: the plot holds still while you scroll */
  .scrolly .shot-scrub { height: 260svh; }
  .scrolly .shot-pin { position: sticky; top: 0; height: 100svh; margin-top: 0; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--box) + var(--top) + 8px); }
  .plot { padding-left: 22px; }
  .plot-note { text-align: left; margin: 0 0 26px -22px; max-width: 26em; }
  .plot-key { gap: 4px 16px; font-size: 12.5px; }
  .plot-area { height: clamp(170px, 38svh, 360px); cursor: default; }
  .scrolly .scrub-note { display: block; position: absolute; left: 22px; right: 0; top: 42%; text-align: center; font-family: var(--serif); font-size: 19px; color: var(--muted); transition: opacity .5s ease; pointer-events: none; }
  .scrolly .scrub-note.gone { opacity: 0; }
  .shot-foot { grid-template-columns: 1fr auto; grid-template-areas: "read read" "phase glass" "ctl ctl"; gap: 14px; margin-top: 16px; }
  .shot-foot .read { grid-area: read; } .shot-foot .phase { grid-area: phase; } .shot-foot .glass { grid-area: glass; width: 52px; margin-top: 4px; } .shot-foot .shot-ctl { grid-area: ctl; }
  .read { grid-template-columns: repeat(4, auto); gap: 2px 12px; justify-content: space-between; }
  .read dd { font-size: 22px; }
  .read dd small { font-size: 11px; margin-left: 2px; }
  .read dt { font-size: 12px; }
  .phase { min-height: 7.6em; }
  .phase-name { font-size: 22px; }
  .phase-text { font-size: 15px; }
  .shot-ctl { grid-auto-flow: column; justify-content: start; }
  .shot-ctl button { padding: 9px 14px; font-size: 14px; }
  .scrolly .shot-ctl { display: none; }
  .scrub-hint { display: none; }

  .switch { grid-template-columns: 1fr; grid-template-areas: "head" "frames" "clock" "steps" "note"; }
  .sw-frames { margin-top: 30px; position: relative; top: auto; }
  .clock { margin-top: 10px; }
  .clock .time { font-size: 104px; }
  .clock-ctl button { flex: 1; }
  .steps li { font-size: 16px; }

  .bag { grid-template-columns: 1fr; }
  .bag-stage { width: min(84vw, 420px); }
  .bag-words p { font-size: 17px; }

  .merch-head { display: block; }
  .merch-head p { margin-top: 12px; }
  .merch-list { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; padding-bottom: 8px; }
  .merch-list::-webkit-scrollbar { display: none; }
  .merch-list li { flex: 0 0 80%; scroll-snap-align: start; }
  .merch-list li:nth-child(-n+2) { flex-basis: 88%; }

  .offer h2 { font-size: 44px; }
  .notify .field { flex-direction: column; }
  .notify button { width: 100%; }
  .box-list { grid-template-columns: 1fr 1fr; gap: 34px 16px; }
  .box-list li > img { height: 150px; }
  .box-list .card { height: 196px; }

  .house { grid-template-columns: 1fr; gap: 12px; }
  .house .credits { grid-column: 1; }
}

/* short screens (a phone on its side): everything in the descent sits lower and smaller */
@media (max-height: 520px) and (min-width: 761px) {
  .opening { bottom: calc(var(--top) + 76px); }
  .opening .no { margin-bottom: 6px; }
  .opening .by { margin-top: 10px; font-size: 17px; }
  .caption, .farm-text { top: calc(var(--top) + 6px); left: calc(var(--gutter) + var(--box) + 24px); }
  .farm-line { font-size: 30px; }
  .hud .v { font-size: 19px; }
  .plot-area { height: 62vh; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hint b, .dialing::before { animation: none; }
  .ln > span, .spec, .frame, .moment, .r-more, .bag-sticker, .bag-sticker::before, .bag-sticker::after, .sticker-note, .part .rest, .merch-list .pic img { transition: none !important; }
  .ln > span { transform: none; }
  .ready .cbox, .ready .notify-link, .ready .hud, .ready .hint { animation: none; }
}

