html, body { margin: 0; background: #1a110b; }
/* Desktop-only: everything is laid out on a fixed 1440x900 design frame, which main.js scales to fill the window
   (cropping at most a few per cent at the edges; beyond that the frame is letterboxed). */
#track { position: relative; }
#stage { position: sticky; top: 0; width: 100vw; height: 100vh; overflow: hidden; }
#frame { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; transform-origin: 0 0; }
#scene { width: 1440px; height: 900px; display: block; }
#overlay { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; pointer-events: none; }
.block { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; }
.label { font: 500 13px/1 "Newsreader", serif; letter-spacing: .22em; text-transform: uppercase; color: #42524f; }
.zh { font-family: "Noto Serif SC", serif; letter-spacing: .1em; margin-left: .4em; text-transform: none; }
h1 { margin: 14px 0 0; font: 600 84px/0.95 "Fraunces", serif; color: #24312f; letter-spacing: -0.01em; }
h2 { margin: 12px 0 0; font: 600 52px/1.0 "Fraunces", serif; color: #1f3340; }
.lede { margin: 16px 0 0; max-width: 520px; font: 400 21px/1.5 "Newsreader", serif; color: #33423f; }
.card { width: 340px; padding: 22px 26px 20px; background: rgba(250, 248, 240, 0.9); border-radius: 4px; color: #23302d; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.card .label { font-size: 11px; color: #5d6b66; }
.card h3 { margin: 8px 0 0; font: 600 25px/1.15 "Fraunces", serif; }
.card p { margin: 10px 0 0; font: 400 16px/1.5 "Newsreader", serif; color: #34413d; }
.card .meta { margin-top: 12px; font: 500 12px/1 "Newsreader", serif; letter-spacing: .12em; text-transform: uppercase; color: #2e6f6a; }
.dark { background: rgba(22, 14, 9, 0.62); color: #EDE3D3; width: 460px; padding: 28px 32px; }
.dark h3 { font-size: 36px; color: #EDE3D3; }
.dark p { color: #D9CCB8; font-size: 18px; }
.dark .label { color: #CDB89A; }
.node { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #F4EFE1; box-shadow: 0 0 0 4px rgba(244, 239, 225, .35); }
#hint { position: absolute; left: 96px; bottom: 70px; font: italic 400 16px/1 "Newsreader", serif; color: #f4ead6; letter-spacing: .04em; }
/* season rail: the water line down the left edge; the four characters jump to their season */
#season-rail { position: absolute; left: 36px; top: 210px; height: 480px; width: 2px; background: rgba(255,255,255,.35); pointer-events: auto; }
#season-dot { position: absolute; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.25); }
#season-rail .stop { position: absolute; left: 12px; margin-top: -10px; font: 500 15px/20px "Noto Serif SC", serif; color: rgba(255,255,255,.8); text-decoration: none; text-shadow: 0 0 3px rgba(0,0,0,.55), 0 1px 6px rgba(0,0,0,.4); transition: color .3s; }
#season-rail .stop:hover, #season-rail .stop.on { color: #fff; }
#season-rail .stop::before { content: ""; position: absolute; left: -15px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.75); }
/* loading screen and the ?debug readout */
#loader { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: #1a110b; transition: opacity .6s; z-index: 10; }
#loader .name { font: 600 30px/1 "Fraunces", serif; color: #E9DFCC; letter-spacing: .02em; }
#loader .bar { width: 220px; height: 2px; background: rgba(233,223,204,.18); }
#loader-fill { width: 0; height: 100%; background: #E9DFCC; transition: width .2s; }
#debug { position: fixed; right: 12px; top: 12px; z-index: 11; padding: 6px 10px; font: 12px/1.4 ui-monospace, Consolas, monospace; color: #fff; background: rgba(0,0,0,.6); border-radius: 3px; white-space: pre; }
#leaders { position: absolute; left: 0; top: 0; overflow: visible; }
#leaders .halo { stroke: rgba(18, 38, 34, .16); stroke-width: 2.6; fill: none; }
#leaders .line { stroke: #FBF8EE; stroke-width: 1.3; fill: none; }
#leaders .ring { stroke: #FBF8EE; stroke-width: 1.4; fill: none; }
#leaders .end { fill: #FBF8EE; }
/* autumn: result cards laid on the grain beds */
.harvest { width: 262px; box-sizing: border-box; padding: 16px 18px 14px; background: rgba(251, 246, 232, 0.95); border: 1px solid rgba(138, 90, 30, .28); border-radius: 3px; box-shadow: 0 8px 18px rgba(70, 45, 10, .28); color: #2B2418; }
.harvest .label { font-size: 10px; letter-spacing: .18em; color: #8A5A1E; }
.harvest h3 { margin: 6px 0 0; font: 600 20px/1.15 "Fraunces", serif; }
.harvest p { margin: 8px 0 0; font: 400 14px/1.42 "Newsreader", serif; color: #3A3122; }
.harvest .meta { margin-top: 9px; font: 500 10.5px/1.25 "Newsreader", serif; letter-spacing: .12em; text-transform: uppercase; color: #8A5A1E; }
.harvest.title { background: rgba(28, 18, 10, 0.74); border-color: rgba(231, 198, 111, .35); color: #F1E6D2; }
.harvest.title h3 { font-size: 34px; color: #F1E6D2; }
.harvest.title p { color: #E2D3BA; font-size: 15px; }
.harvest.title .label { color: #E7C66F; }
#winter-hero .label { color: #E9CDA8; }
#winter-hero h2 { color: #F4F1EA; }
#winter-hero .lede { color: #DCE3EC; max-width: 470px; }
/* V2: status tags on the research cards */
.status { display: inline-block; margin-left: 8px; padding: 3px 7px 2px; border: 1px solid currentColor; border-radius: 999px; font-size: 10px; letter-spacing: .12em; color: #8A5A1E; vertical-align: 1px; }
.status.done { color: #2e6f6a; }
/* V2: winter archive cards, a print with a white mat over the evening village */
.archive { width: 360px; padding: 14px 16px 18px; background: rgba(247, 245, 240, 0.95); box-shadow: 0 12px 28px rgba(10, 16, 34, .45); }
.archive img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 14px; }
.archive h3 { font-size: 23px; }
.archive p { font-size: 15px; }
.archive .meta { color: #6b4a8a; }
#w5 { padding-top: 22px; }
#ending h2 { color: #F4F1EA; max-width: 640px; }
#ending .label { color: #E9CDA8; }
#ending .lede { color: #DCE3EC; }
/* ---- card styles chosen 2026-10-22 (one material per season; see site-build/card-demos/four-season-cards.html) ---- */
.plate { position: relative; overflow: hidden; margin: 0; }
.plate img { display: block; width: 100%; height: 100%; object-fit: cover; }
.plate .demo { position: absolute; right: 7px; top: 7px; padding: 3px 7px 2px; border-radius: 999px; background: rgba(12, 14, 20, .62); color: #fff; font: 500 10.5px/1.2 "Noto Serif SC", serif; letter-spacing: .08em; }
/* spring: the painting rises out of the soil; --p (0..1, set from the scroll in text.js) is how far it has come up */
#roots-card { width: 470px; box-sizing: border-box; padding: 18px 18px 24px; background: rgba(22, 14, 9, 0.8); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); --p: 1; }
#roots-card .plate { height: 325px; -webkit-mask-image: linear-gradient(to top, #000 calc(var(--p) * 100%), transparent calc(var(--p) * 100% + 16%)); mask-image: linear-gradient(to top, #000 calc(var(--p) * 100%), transparent calc(var(--p) * 100% + 16%)); }
#roots-card .plate::after { content: ""; position: absolute; inset: 0; background: rgba(22, 14, 9, calc((1 - var(--p)) * .75)); }
#roots-card .cap { margin-top: 8px; font: italic 400 13px/1.4 "Newsreader", serif; color: #bfae93; }
#roots-card .label { margin-top: 16px; }
#roots-card h3 { font-size: 30px; }
#roots-card p { font-size: 16.5px; }
/* summer: a figure on top of each research card; the figure plays when the card is fully in (class .on, text.js) */
.card.fig-card { width: 400px; box-sizing: border-box; padding: 16px 16px 20px; background: rgba(250, 248, 240, .95); box-shadow: 0 14px 32px rgba(10, 30, 60, .3); }
.fig-card .plate { height: 276px; background: #0b1220; }
.fig-card .figcap { margin: 8px 0 12px; font: 400 12px/1.4 ui-monospace, Consolas, monospace; color: #5d6b66; }
.fig-card h3 { font-size: 23px; }
.fig-card p { font-size: 15px; }
#card-a02 .ir, #card-a02 .mask { position: absolute; inset: 0; }
#card-a02 .ir { opacity: 0; transition: opacity .9s ease .4s; }
#card-a02 .mask { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s linear 1.3s; }
#card-a02.on .ir { opacity: 1; }
#card-a02.on .mask { clip-path: inset(0 0 0 0); }
#card-a02 .scan { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: #ff5c8a; box-shadow: 0 0 12px #ff5c8a; opacity: 0; }
#card-a02.on .scan { animation: a02scan 1.4s linear 1.3s both; }
@keyframes a02scan { 0% { left: 0; opacity: 1; } 95% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
#card-a02 .legend { position: absolute; left: 9px; bottom: 9px; padding: 5px 8px; background: rgba(8, 12, 22, .62); color: #e8edf2; font: 400 11px/1 ui-monospace, Consolas, monospace; }
#card-a02 .legend i { display: inline-block; width: 14px; height: 4px; margin-right: 5px; background: #ff5c8a; vertical-align: 2px; }
@property --x { syntax: "<percentage>"; inherits: true; initial-value: 100%; }
.cmp { --x: 100%; }
.cmp .after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x)); }
.cmp .after img { filter: grayscale(.9) brightness(.7) contrast(1.1); }
.cmp .heat { position: absolute; inset: 0; background:
  radial-gradient(ellipse 9% 8% at 62% 40%, rgba(200, 24, 36, .95), transparent 72%),
  radial-gradient(ellipse 20% 13% at 70% 50%, rgba(232, 80, 36, .8), transparent 74%),
  radial-gradient(ellipse 32% 18% at 80% 62%, rgba(246, 170, 56, .7), transparent 76%),
  radial-gradient(ellipse 44% 22% at 90% 76%, rgba(250, 226, 130, .55), transparent 78%); }
.cmp .grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px); background-size: 34px 34px; }
.cmp .bar { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.4); }
.cmp .bar::after { content: "⟷"; position: absolute; top: 50%; left: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; background: #fff; color: #23302d; display: grid; place-items: center; font: 600 14px/1 "Newsreader", serif; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.cmp .tag { position: absolute; top: 9px; padding: 4px 7px 3px; background: rgba(8, 12, 22, .6); color: #fff; font: 400 11px/1 ui-monospace, Consolas, monospace; }
.cmp .tag.l { left: 9px; } .cmp .tag.r { right: 9px; }
.cmp .demo { top: 9px; }
.cmp .scale { position: absolute; right: 9px; bottom: 9px; width: 140px; padding: 6px 8px; background: rgba(8, 12, 22, .6); color: #e8edf2; font: 400 10.5px/1 ui-monospace, Consolas, monospace; }
.cmp .scale i { display: block; height: 6px; margin: 5px 0 4px; background: linear-gradient(90deg, #fae68c, #f6b840, #e86028, #c41e28); }
.cmp .scale span { display: flex; justify-content: space-between; }
.cmp .scale b { font-weight: 400; }
.cmp input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; pointer-events: auto; }
#card-a01.on .cmp { animation: cmpwipe 3.4s cubic-bezier(.45, 0, .3, 1) .5s both; }
#card-a01 .cmp.manual { animation: none; }
@keyframes cmpwipe { 0% { --x: 100%; } 45% { --x: 22%; } 75% { --x: 62%; } 100% { --x: 55%; } }
/* autumn: grain coupons */
.harvest.ticket { width: 304px; padding: 0; display: flex; background: none; border: 0; border-radius: 0; box-shadow: none; filter: drop-shadow(0 10px 14px rgba(70, 45, 10, .38)); }
.ticket .stub, .ticket .tb { background: #f6ecd2; }
.ticket .stub { flex: none; width: 30px; display: grid; place-items: center; border-right: 2px dashed rgba(138, 90, 30, .55);
  -webkit-mask: radial-gradient(circle 4px at 0 50%, transparent 98%, #000) 0 0 / 100% 16px; mask: radial-gradient(circle 4px at 0 50%, transparent 98%, #000) 0 0 / 100% 16px; }
.ticket .stub span { writing-mode: vertical-rl; font: 500 11px/1 "Noto Serif SC", serif; letter-spacing: .3em; color: #8A5A1E; }
.ticket .tb { position: relative; flex: 1; min-width: 0; padding: 15px 17px 14px; outline: 1px solid rgba(138, 90, 30, .5); outline-offset: -6px; }
.ticket .tb::before { content: ""; position: absolute; inset: 3px; border: 3px double rgba(138, 90, 30, .3); pointer-events: none; }
.ticket .plate { height: 120px; margin-bottom: 10px; border: 1px solid rgba(138, 90, 30, .5); }
.ticket .no { font: 500 10.5px/1 ui-monospace, Consolas, monospace; color: #b3342a; }
.ticket .label { margin-top: 7px; }
.ticket h3 { font-size: 19px; }
.ticket p { font-size: 13.5px; line-height: 1.4; }
.ticket .seal { position: absolute; right: -12px; top: -16px; width: 58px; height: 58px; border-radius: 50%; border: 2.5px solid #c2392c; box-shadow: inset 0 0 0 3px #f6ecd2, inset 0 0 0 4px #c2392c; color: #c2392c; display: grid; place-items: center; font: 500 24px/1 "Noto Serif SC", serif; transform: rotate(-14deg); opacity: 0; }
.ticket.on .seal { animation: tkstamp .35s cubic-bezier(.3, 1.4, .5, 1) .5s both; }
.ticket.on .stub { animation: tktear .8s cubic-bezier(.5, 0, .7, .4) 1.3s both; }
@keyframes tkstamp { from { opacity: 0; transform: rotate(-14deg) scale(1.9); } to { opacity: .88; transform: rotate(-14deg) scale(1); } }
@keyframes tktear { to { opacity: 0; transform: translate(-22px, 36px) rotate(-12deg); } }
@media (prefers-reduced-motion: reduce) {
  #card-a02 .ir { opacity: 1; } #card-a02 .mask { clip-path: none; } .cmp { --x: 55%; }
  #card-a01.on .cmp, .ticket.on .seal, .ticket.on .stub, #card-a02.on .scan { animation: none; }
  .ticket .seal { opacity: .88; }
}
/* autumn coupons: the stub text is English now */
.ticket .stub span { font: 500 10px/1 "Newsreader", serif; letter-spacing: .22em; text-transform: uppercase; }
/* ---- two layers (2026-10-22): the core projects keep a short card and open a detail sheet ("Read more") ---- */
.more { pointer-events: auto; display: inline-block; margin-top: 12px; padding: 0 0 2px; border: 0; border-bottom: 1px solid currentColor; background: none; font: 500 12px/1.2 "Newsreader", serif; letter-spacing: .14em; text-transform: uppercase; color: #2e6f6a; cursor: pointer; }
.more::after { content: " →"; }
.more:hover { color: #1f4f4b; }
.more:focus-visible, .sheet .x:focus-visible { outline: 2px solid #2e6f6a; outline-offset: 3px; }
.ticket .more { margin-top: 10px; color: #8A5A1E; }
#detail { position: absolute; inset: 0; z-index: 5; pointer-events: auto; }
#detail[hidden] { display: none; }
#detail .scrim { position: absolute; inset: 0; background: rgba(10, 14, 20, .5); opacity: 0; transition: opacity .3s; }
#detail .sheet { position: absolute; right: 40px; top: 36px; bottom: 36px; width: 600px; background: #f8f5ec; color: #23302d; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); opacity: 0; transform: translateX(40px); transition: opacity .35s, transform .35s cubic-bezier(.2, .7, .2, 1); }
#detail.open .scrim, #detail.open .sheet { opacity: 1; }
#detail.open .sheet { transform: none; }
.sheet .body { position: absolute; inset: 0; overflow: auto; padding: 40px 48px 44px; overscroll-behavior: contain; }
.sheet .x { position: absolute; right: 14px; top: 8px; z-index: 1; width: 40px; height: 40px; border: 0; background: none; font: 400 32px/1 "Fraunces", serif; color: #23302d; cursor: pointer; }
.sheet .draft { margin: 0 0 20px; padding: 7px 10px; background: #fff3cf; border-left: 3px solid #d9a520; font: 400 13px/1.4 "Newsreader", serif; color: #5a4a1a; }
.sheet .label { font-size: 11px; color: #5d6b66; }
.sheet h2 { margin: 10px 0 0; font: 600 34px/1.1 "Fraunces", serif; color: #1f2a27; }
.sheet .meta { margin-top: 10px; font: 500 12px/1.4 "Newsreader", serif; letter-spacing: .12em; text-transform: uppercase; color: #2e6f6a; }
.sheet .fig { margin: 22px 0 4px; }
.sheet .fig .plate { aspect-ratio: 4 / 3; background: #0b1220; }
.sheet .fig .over { position: absolute; inset: 0; }
.sheet figcaption { margin-top: 6px; font: italic 400 13px/1.4 "Newsreader", serif; color: #5d6b66; }
.sheet h4 { margin: 24px 0 6px; font: 500 12px/1 "Newsreader", serif; letter-spacing: .2em; text-transform: uppercase; color: #8A5A1E; }
.sheet p { margin: 0; font: 400 17px/1.6 "Newsreader", serif; color: #2c3734; }
.tbc { background: #fff0b8; box-shadow: 0 0 0 2px #fff0b8; border-bottom: 1px dotted #b8860b; cursor: help; }
@media (prefers-reduced-motion: reduce) { #detail .scrim, #detail .sheet { transition: none; } }
#ending a { pointer-events: auto; color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
