/* ---------- Type ---------- */
@font-face { font-family: "Playfair Display"; src: url(/fonts/playfair-display-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url(/fonts/playfair-display-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url(/fonts/playfair-display-latin-900-normal.woff2) format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url(/fonts/playfair-display-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url(/fonts/playfair-display-latin-700-italic.woff2) format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(/fonts/source-serif-4-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(/fonts/source-serif-4-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(/fonts/source-serif-4-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink: #1b1813;
  --ink-2: #4a4337;
  --ink-3: #7a7062;
  --paper: #f3ede1;
  --paper-2: #ebe3d3;
  --rule: #1b1813;
  --night: #0c0b09;
  --ivory: #efe6d2;
  --ivory-2: rgba(239, 230, 210, .62);
  --accent: #8a2b1d; /* oxblood, used sparingly */
  --display: "Playfair Display", "Times New Roman", serif;
  --text: "Source Serif 4", Georgia, serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
  --ease: cubic-bezier(.22, .61, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; background: var(--night); color: var(--ivory); }
body { font-family: var(--text); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100svh; }
a { color: inherit; }
button, input { font: inherit; color: inherit; border-radius: 0; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }

/* ---------- Portal canvas ---------- */
#portal { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; transition: opacity 1.2s var(--ease); }
.vignette { position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(120% 90% at 50% 45%, rgba(12,11,9,0) 40%, rgba(12,11,9,.75) 100%); }
body.is-list #portal, body.is-list .vignette { opacity: 0; visibility: hidden; }

/* ---------- Sound toggle ---------- */
.sound { position: fixed; z-index: 30; top: calc(var(--s4) + var(--safe-t)); right: calc(var(--s4) + var(--safe-r));
  height: 44px; min-width: 44px; padding: 0 var(--s3); display: inline-flex; align-items: center; gap: var(--s2);
  background: transparent; border: 1px solid rgba(239,230,210,.35); color: var(--ivory); cursor: pointer;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; transition: border-color .3s, color .3s, opacity .6s; }
.sound:hover { border-color: var(--ivory); }
.sound .x { display: none; }
.sound[aria-pressed="false"] .w1, .sound[aria-pressed="false"] .w2 { display: none; }
.sound[aria-pressed="false"] .x { display: block; }
body.is-day .sound, body.is-list .sound { opacity: 0; pointer-events: none; }

/* ---------- Intro: the machine ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s3); min-height: 48px; padding: 0 var(--s5);
  border: 1px solid currentColor; background: transparent; cursor: pointer; font-family: var(--text); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; transition: background .3s var(--ease), color .3s var(--ease); }
.btn svg { transform: scaleX(-1); }

.intro { position: relative; z-index: 2; isolation: isolate; min-height: 100svh;
  padding: calc(var(--s5) + var(--safe-t)) calc(var(--s5) + var(--safe-r)) calc(var(--s7) + var(--safe-b)) calc(var(--s5) + var(--safe-l));
  transition: opacity .9s var(--ease), transform 1.2s var(--ease), filter .9s var(--ease); }
body:not(.is-intro) .intro { opacity: 0; transform: scale(1.04); filter: blur(6px); pointer-events: none; position: fixed; inset: 0; overflow: hidden; }
body.is-travel .intro { transition-duration: .55s, .9s, .55s; }
.intro-scrim { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,11,9,.86) 0%, rgba(12,11,9,.72) 22%, rgba(12,11,9,.22) 36%, rgba(12,11,9,.18) 50%, rgba(12,11,9,.78) 64%, rgba(12,11,9,.94) 100%); }
.still { position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease); }
.still.on { opacity: .42; }
.still img { width: 100%; height: 100%; object-fit: cover; display: block; }

.machine { position: relative; min-width: 0; width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "kick" "title" "face" "year" "md" "fields" "go" "show" "lede" "foot"; align-content: start; }
.kicker { grid-area: kick; margin: 0; padding-right: 140px; white-space: nowrap; min-height: 44px; display: flex; align-items: center; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--ivory-2); }
.intro-title { grid-area: title; margin: var(--s3) 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(38px, 10.4vw, 104px); line-height: .96; letter-spacing: -.02em; color: var(--ivory); overflow-wrap: anywhere; }
.intro-title em { font-style: italic; }
.intro-lede { grid-area: lede; max-width: 34em; margin: var(--s6) 0 0; font-size: 15px; line-height: 1.55; color: var(--ivory-2); }

/* the face: destination readout, the odometer year, the decade's line */
.face { grid-area: face; margin-top: var(--s5); text-align: center; }
.readout { margin: 0; display: flex; justify-content: center; align-items: baseline; gap: var(--s3); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.ro-label { color: var(--ivory-2); }
.ro-val { color: var(--ivory); letter-spacing: .14em; }
.odo { display: flex; justify-content: center; margin: 20px 0 18px; height: 1em; overflow: hidden; font-family: var(--display); font-weight: 400;
  font-size: clamp(96px, 28vw, 210px); line-height: 1; letter-spacing: 0; font-variant-numeric: lining-nums tabular-nums; color: var(--ivory); text-shadow: 0 0 48px rgba(12,11,9,.85); }
.odo-col { display: block; height: 1em; overflow: hidden; width: .6em; text-align: center; }
.odo-strip { display: block; line-height: 1; transition: transform .75s cubic-bezier(.3, 1.25, .45, 1); will-change: transform; }
.epithet { margin: 0; min-height: 1.5em; font-family: var(--display); font-style: italic; font-size: 17px; color: var(--ivory-2); }
.epithet.in { animation: epi-in .9s var(--ease) both; }
@keyframes epi-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* dials: native scroll-snap rails with a fixed needle */
.yeardial { grid-area: year; margin-top: var(--s3); }
.md { grid-area: md; margin-top: var(--s3); }
.dial-wrap { position: relative; min-width: 0; }
.intro [hidden] { display: none !important; }
.dial { display: block; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; cursor: grab; outline-offset: 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 8%, #000 32%, #000 68%, transparent 92%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, transparent 8%, #000 32%, #000 68%, transparent 92%, transparent 100%); }
.dial-month, .dial-day { -webkit-mask-image: none; mask-image: none; }
.dial-month .tick[data-d="1"], .dial-day .tick[data-d="1"] { opacity: .5; }
.dial-day .tick[data-d="2"] { opacity: .2; }
.dial-month .tick[data-d="2"], .dial-month .tick[data-d="3"], .dial-day .tick[data-d="3"] { opacity: 0; }
.dial-month .tick.off, .dial-day .tick.off { opacity: .12; }
.dial-year { -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 11%, #000 32%, #000 68%, transparent 89%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, transparent 11%, #000 32%, #000 68%, transparent 89%, transparent 100%); }
.dial::-webkit-scrollbar { display: none; }
.dial.dragging { scroll-snap-type: none; cursor: grabbing; }
.dial-track { display: flex; width: max-content; user-select: none; -webkit-user-select: none; }
.tick { flex: 0 0 auto; scroll-snap-align: center; position: relative; display: flex; align-items: flex-end; justify-content: center; color: var(--ivory-2); transition: color .3s var(--ease), opacity .3s var(--ease); }
.tick.off { opacity: .18; pointer-events: none; }
.needle { position: absolute; left: 50%; bottom: 0; width: 2px; margin-left: -1px; background: #d4553a; pointer-events: none; }

.dial-year .dial-track { padding: 0 calc(50% - 7px); }
.dial-year .tick { width: 14px; height: 68px; }
.dial-year .tick::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 12px; background: rgba(239,230,210,.38); }
.dial-year .tick:has(i)::after { height: 20px; background: rgba(239,230,210,.6); }
.dial-year .tick:has(b)::after { height: 28px; background: var(--ivory); }
.dial-year .tick b { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); font-weight: 400; font-family: var(--display); font-size: 17px; color: var(--ivory); white-space: nowrap; }
.dial-year .tick.on::after { background: #d4553a; height: 36px; }
.dial-wrap:has(.dial-year) .needle { height: 40px; }
.dial-wrap:has(.dial-year)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(239,230,210,.2); pointer-events: none; }

.dial-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); }
.dial-cap { display: block; text-align: center; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--ivory-2); margin-bottom: var(--s1); }
/* whole items only: month shows exactly 3, day exactly 5, so nothing is cut mid-word at the edges */
.dial-row .dial-wrap { container-type: inline-size; }
.dial-month .dial-track { padding: 0 calc(50cqw - 16.6667cqw); }
.dial-day .dial-track { padding: 0 40cqw; }
.dial-month .tick { width: 33.3333cqw; }
.dial-day .tick { width: 20cqw; }
.dial-month .tick, .dial-day .tick { height: 46px; align-items: center; font-family: var(--display); font-size: 19px; font-variant-numeric: lining-nums tabular-nums; }
.dial-month .tick { font-family: var(--text); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.dial-month .tick.on, .dial-day .tick.on { color: var(--ivory); }
.dial-day .tick.on { font-size: 24px; }
.dial-month .tick.on { font-weight: 600; }
.dial-row .needle { height: 3px; width: 22px; margin-left: -11px; bottom: 0; }
.dial-row .dial-wrap { border-bottom: 1px solid rgba(239,230,210,.2); }

.dial-help { display: flex; justify-content: center; align-items: center; gap: var(--s2); margin: 0; font-size: 12px; letter-spacing: .08em; color: var(--ivory-2); }
.linkish { min-height: 44px; padding: 0; background: none; border: 0; border-bottom: 1px solid transparent; font-size: 12px; letter-spacing: .08em; color: var(--ivory); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(239,230,210,.45); }
.linkish:hover { text-decoration-color: currentColor; }

.fields { grid-area: fields; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s5); margin-top: var(--s2); }
.field { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-height: 62px; padding: var(--s2) 0; border-bottom: 1px solid rgba(239,230,210,.28); transition: border-color .3s var(--ease); }
.field:focus-within { border-bottom-color: var(--ivory); }
.field span { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ivory-2); }
.field span i { font-style: normal; letter-spacing: .06em; text-transform: none; opacity: .75; }
.field input { width: 100%; min-height: 36px; padding: 0; background: transparent; border: 0; font-family: var(--display); font-size: 21px; color: var(--ivory); -webkit-appearance: none; appearance: none; }
.field input::placeholder { color: rgba(239,230,210,.3); }
.field input[type="date"] { color-scheme: dark; }
.field input:focus { outline: none; }
.field-date { margin: var(--s2) auto 0; max-width: 320px; }

.go { grid-area: go; margin-top: var(--s5); }
.btn.btn-travel { position: relative; overflow: hidden; width: 100%; min-height: 60px; background: var(--ivory); color: var(--night); border-color: var(--ivory); font-size: 13px; letter-spacing: .2em; }
.btn.btn-travel:hover { background: #fff8e8; }
.btn-travel > * { position: relative; z-index: 1; }
.btn-travel .btn-fill { position: absolute; inset: 0; z-index: 0; background: #d4553a; transform: scaleX(0); transform-origin: left center; }
.btn-lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.is-engaging .btn.btn-travel { color: var(--ivory); }
body.is-engaging .btn-travel .btn-fill { transform: scaleX(1); transition: transform .7s cubic-bezier(.6, 0, .4, 1); }
.gap { margin: var(--s3) 0 0; text-align: center; font-family: var(--display); font-style: italic; font-size: 15px; color: var(--ivory-2); }
.form-note { min-height: 0; margin: var(--s2) 0 0; text-align: center; font-size: 15px; color: #e7b9a3; }
.form-note:empty { display: none; }

/* engage: the dials lock and the year swells before the dive */
body.is-engaging .odo { transform: scale(1.06); transition: transform .7s var(--ease); }
body.is-engaging .yeardial, body.is-engaging .md, body.is-engaging .fields, body.is-engaging .showcase, body.is-engaging .intro-lede { opacity: .25; transition: opacity .5s var(--ease); }

.showcase { grid-area: show; display: grid; margin-top: var(--s6); border-bottom: 1px solid rgba(239,230,210,.16); }
.showcase-label { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--ivory-2); padding-bottom: var(--s2); }
.showcase a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-top: 1px solid rgba(239,230,210,.16); font-family: var(--display); font-style: italic; font-size: 18px; color: var(--ivory); text-decoration: none; transition: padding .4s var(--ease), color .3s; }
.showcase a i { font-style: normal; font-family: var(--text); color: var(--ivory-2); transition: transform .4s var(--ease); }
.showcase a:hover { padding-left: var(--s2); }
.showcase a:hover i { transform: translateX(4px); color: var(--ivory); }

@media (min-width: 1000px) {
  .odo { margin: 34px 0 32px; }
  .intro { display: flex; align-items: center; padding-top: calc(var(--s7) + var(--safe-t)); padding-bottom: calc(var(--s6) + var(--safe-b)); }
  .intro-scrim { background: linear-gradient(90deg, rgba(12,11,9,.9) 0%, rgba(12,11,9,.82) 38%, rgba(12,11,9,.3) 54%, rgba(12,11,9,.12) 66%, rgba(12,11,9,.5) 100%), linear-gradient(0deg, rgba(12,11,9,.85) 0%, rgba(12,11,9,0) 30%); }
  .machine { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: var(--s9);
    grid-template-areas: "kick kick" "title face" "lede face" "fields md" "go md" "year year" "show show" "foot foot"; }
  .kicker { position: absolute; top: calc(-1 * var(--s6)); left: 0; }
  .intro-title { margin-top: 0; font-size: clamp(64px, 6.4vw, 100px); align-self: end; }
  .intro-lede { margin-top: var(--s5); font-size: 17px; }
  .face { margin-top: 0; align-self: center; }
  .fields { margin-top: var(--s6); }
  .md { margin-top: var(--s6); align-self: start; }
  .go { margin-top: var(--s5); }
  .btn-travel { width: auto; min-width: 360px; padding: 0 var(--s6); }
  .gap { text-align: left; }
  .yeardial { margin-top: var(--s7); }
  .dial-year .track, .dial-year .dial-track { padding: 0 calc(50% - 9px); }
  .dial-year .tick { width: 18px; height: 76px; }
  .showcase { display: flex; align-items: center; gap: 0 var(--s6); margin-top: var(--s4); border: 0; }
  .showcase-label { padding: 0; }
  .showcase a { border: 0; min-height: 44px; gap: var(--s3); font-size: 17px; }
}
@media (max-width: 360px) { .fields { grid-template-columns: 1fr; } .k-no { display: none; } }
@media (max-height: 700px) and (max-width: 999px) { .odo { font-size: clamp(88px, 26vw, 160px); } .face { margin-top: var(--s5); } }

/* ---------- Travel ---------- */
.travel::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(120vw, 900px); height: min(60vw, 420px); transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(12,11,9,.72), rgba(12,11,9,0)); z-index: -1; }
.travel { isolation: isolate; position: fixed; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; opacity: 0; transition: opacity .8s var(--ease); }
body.is-travel .travel { opacity: 1; transition-delay: .3s; }
.travel-year { font-family: var(--display); font-weight: 400; font-size: clamp(88px, 24vw, 260px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; color: var(--ivory); text-shadow: 0 0 40px rgba(12,11,9,.9); }
.travel-sub { margin-top: var(--s4); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ivory-2); text-shadow: 0 0 20px rgba(12,11,9,.9); min-height: 18px; text-align: center; padding: 0 var(--s5); }

/* ---------- Arrival flash ---------- */
.flash { position: fixed; inset: 0; z-index: 4; background: radial-gradient(60% 50% at 50% 50%, rgba(239,230,210,.9), rgba(239,230,210,0) 70%); opacity: 0; pointer-events: none; transition: opacity 1.1s var(--ease); }
body.is-arriving .flash { opacity: .85; }

/* ---------- Inside the day ---------- */
.day { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.day > * { pointer-events: auto; }
.day-head { position: absolute; left: 0; right: 0; top: 0; padding: calc(var(--s5) + var(--safe-t)) calc(var(--s5) + var(--safe-r)) 0 calc(var(--s5) + var(--safe-l)); text-align: center; pointer-events: none;
  opacity: 0; transform: translateY(-8px); transition: opacity 1.2s var(--ease) .4s, transform 1.2s var(--ease) .4s; }
body.is-day .day-head { opacity: 1; transform: none; }
.day-kicker { margin: 0; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ivory-2); }
.day-date { margin: var(--s2) 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.02; letter-spacing: -.01em; color: var(--ivory); }
.day-date em { font-style: italic; }
.day-for { margin: var(--s1) 0 0; min-height: 0; font-family: var(--display); font-style: italic; font-size: 17px; color: var(--ivory-2); }
.day-for:empty { display: none; }
.day-hint { position: absolute; left: 0; right: 0; bottom: calc(var(--s8) + var(--s5) + var(--safe-b)); margin: 0; text-align: center; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ivory-2);
  opacity: 0; transition: opacity 1s var(--ease); pointer-events: none; }
body.is-day .day-hint.show { opacity: 1; }
.day-cap { position: absolute; left: 50%; bottom: calc(62px + var(--safe-b)); transform: translateX(-50%); width: max-content; max-width: min(58em, calc(100% - 2 * var(--s5))); margin: 0;
  padding: 7px 16px; background: rgba(10, 9, 8, .82); border-top: 1px solid rgba(239, 230, 214, .22); color: var(--ivory); text-align: center;
  font-family: "Source Serif 4", Georgia, serif; font-style: italic; font-size: 16px; line-height: 1.4; opacity: 0; transition: opacity .45s var(--ease); pointer-events: none; z-index: 3; }
.day-cap.show { opacity: 1; }
.day-cap:empty { display: none; }
.day-bar { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s3);
  padding: var(--s4) calc(var(--s5) + var(--safe-r)) calc(var(--s4) + var(--safe-b)) calc(var(--s5) + var(--safe-l));
  opacity: 0; transform: translateY(8px); transition: opacity 1.2s var(--ease) .7s, transform 1.2s var(--ease) .7s; }
body.is-day .day-bar { opacity: 1; transform: none; }
.day-actions { display: flex; justify-content: flex-end; gap: var(--s2); }
.day-bar #again { justify-self: start; }
.day-step { display: flex; align-items: center; gap: var(--s2); }
.day-count, .detail-count { min-width: 64px; text-align: center; font-size: 12px; letter-spacing: .2em; font-variant-numeric: tabular-nums; color: var(--ivory-2); }
.btn { color: var(--ivory); }
.btn-ghost { background: rgba(12,11,9,.35); border-color: rgba(239,230,210,.4); }
.btn-ghost:hover { border-color: var(--ivory); }
.btn-solid { background: var(--ivory); color: var(--night); border-color: var(--ivory); }
.btn-solid:hover { background: transparent; color: var(--ivory); }
.btn-icon { width: 48px; min-width: 48px; padding: 0; font-size: 18px; letter-spacing: 0; background: rgba(12,11,9,.35); border-color: rgba(239,230,210,.4); }
.btn-icon:hover { border-color: var(--ivory); }
#portal.is-grab { cursor: grab; } #portal.is-grab:active { cursor: grabbing; }

/* ---------- Detail ---------- */
.detail { position: fixed; inset: 0; z-index: 20; display: grid; grid-template-rows: auto 1fr auto; background: #0c0b09; color: var(--ivory);
  padding: calc(var(--s4) + var(--safe-t)) calc(var(--s5) + var(--safe-r)) calc(var(--s4) + var(--safe-b)) calc(var(--s5) + var(--safe-l));
  opacity: 0; transition: opacity .45s var(--ease); touch-action: pan-y; }
.detail.open { opacity: 1; }
.detail[hidden] { display: none; }
.detail-top, .detail-bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.detail-bottom { justify-content: center; gap: var(--s4); }
.detail-stage { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: var(--s5) 0; display: flex; }
.d-card { width: min(760px, 100%); margin: auto; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.d-card.leave-l { opacity: 0; transform: translateX(-24px); } .d-card.leave-r { opacity: 0; transform: translateX(24px); }
.d-kicker { margin: 0 0 var(--s4); padding-bottom: var(--s3); border-bottom: 1px solid rgba(239,230,210,.35); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--ivory-2); }
.d-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(28px, 4.6vw, 52px); line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.d-title.big { font-style: italic; font-size: clamp(44px, 9vw, 96px); line-height: 1; }
.d-sub { margin: var(--s4) 0 0; font-size: 19px; color: var(--ivory); }
.d-note { margin: var(--s2) 0 0; font-size: 15px; color: var(--ivory-2); }
.d-lines { list-style: none; margin: var(--s5) 0 0; padding: 0; }
.d-lines li { padding: var(--s3) 0; border-top: 1px solid rgba(239,230,210,.18); font-size: 17px; line-height: 1.45; }
.d-facts { display: grid; grid-template-columns: 1fr auto; margin: var(--s5) 0 0; font-size: 16px; }
.d-facts dt, .d-facts dd { margin: 0; padding: var(--s2) 0; border-top: 1px solid rgba(239,230,210,.18); }
.d-facts dt { color: var(--ivory-2); } .d-facts dd { text-align: right; font-variant-numeric: tabular-nums; }
.d-img { display: block; width: 100%; max-height: 58svh; object-fit: contain; background: #000; margin: 0 0 var(--s4); }
.d-source { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid rgba(239,230,210,.35); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); }
.d-license { font-size: 13px; line-height: 1.45; color: var(--ivory-2); max-width: 46ch; }
.d-license a { color: var(--ivory-2); }

/* ---------- List (reduced motion / no WebGL) ---------- */
.list { position: relative; z-index: 5; width: min(820px, 100%); margin: 0 auto; padding: calc(var(--s7) + var(--safe-t)) calc(var(--s5) + var(--safe-r)) calc(var(--s8) + var(--safe-b)) calc(var(--s5) + var(--safe-l)); }
.list[hidden] { display: none; }
.list .day-head { position: static; opacity: 1; transform: none; padding: 0 0 var(--s6); }
.list-item { padding: var(--s6) 0; border-top: 1px solid rgba(239,230,210,.25); }
.list-bar { display: flex; flex-wrap: wrap; gap: var(--s2); padding: var(--s6) 0 calc(var(--s4) + var(--safe-b)); border-top: 1px solid rgba(239,230,210,.25); }
.list-bar .btn { flex: 1 1 auto; }

@media (max-width: 640px) {
  .day-head { padding-top: calc(var(--s4) + var(--safe-t)); padding-right: calc(var(--s8) + var(--s3) + var(--safe-r)); padding-left: calc(var(--s8) + var(--s3) + var(--safe-l)); }
  .day-date { font-size: 30px; }
  .day-bar { grid-template-columns: auto 1fr; grid-template-rows: auto auto; padding-left: calc(var(--s4) + var(--safe-l)); padding-right: calc(var(--s4) + var(--safe-r)); gap: var(--s2); }
  .day-bar #again { grid-column: 1; grid-row: 2; width: 48px; padding: 0; }
  .day-bar #again .lbl { display: none; }
  .day-step { grid-column: 1 / -1; grid-row: 1; justify-content: center; }
  .day-actions { grid-column: 2; grid-row: 2; }
  .day-actions .btn { flex: 1 1 0; padding: 0 var(--s3); font-size: 12px; letter-spacing: .12em; }
  .day-hint { bottom: calc(132px + var(--safe-b)); }
  .day-cap { bottom: calc(124px + var(--safe-b)); font-size: 15.5px; padding: 8px 12px; width: calc(100% - 2 * var(--s4)); max-width: none; }
  .detail { padding-left: calc(var(--s4) + var(--safe-l)); padding-right: calc(var(--s4) + var(--safe-r)); }
  .d-source { flex-direction: column; align-items: stretch; }
  .d-source .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .day-head, .day-bar, .detail, .d-card { transition: none !important; }
}

/* ---------- Intro responsive ---------- */
@media (max-width: 1020px) {
  .form { grid-template-columns: 1fr 1fr; }
  .field:nth-child(2) { border-right: 0; }
  .field:nth-child(3) { padding-left: 0; border-top: 1px solid rgba(239,230,210,.18); }
  .btn.btn-primary { margin: var(--s3) 0 var(--s3) var(--s4); align-self: center; }
}
@media (max-width: 640px) {
  .intro { justify-content: flex-end; padding-top: calc(var(--s8) + var(--safe-t) + 20px); }
  .intro-lede { margin: var(--s5) 0 var(--s6); }
  .form { grid-template-columns: 1fr; border-bottom: 0; }
  .field { padding: var(--s3) 0; border-right: 0; border-bottom: 1px solid rgba(239,230,210,.18); min-height: 72px; }
  .field:nth-child(3) { border-top: 0; }
  .field input { font-size: 20px; min-height: 44px; }
  .btn.btn-primary { margin: var(--s4) 0 0; width: 100%; min-height: 52px; }
  .showcase { flex-direction: column; align-items: flex-start; gap: 0; }
  .showcase-label { margin: 0 0 var(--s1); }
}
@media (prefers-reduced-motion: reduce) { .intro, .travel, .flash, #portal { transition-duration: .01s !important; } }

/* ---------- Era-specific arrival: each decade lands differently (calm, no strobe) ---------- */
.flash[data-era] { background: none; transition: none; z-index: 9; overflow: hidden; }
.flash[data-era]::before, .flash[data-era]::after { content: ""; position: absolute; inset: 0; opacity: 0; }
body.is-landing .flash[data-era] { opacity: 1; }
body.is-landing .flash[data-era]::before { animation: land-cover 2.6s var(--ease) both; }
@keyframes land-cover { 0% { opacity: 0; } 25% { opacity: 1; } 62% { opacity: 1; } 100% { opacity: 0; } }
/* 1940s: a sepia film leader that irises out */
.flash[data-era="40s"]::before { background: repeating-radial-gradient(circle at 50% 50%, transparent 0 58px, rgba(239,230,210,.5) 59px 60px), linear-gradient(#e7dcc5, #e7dcc5) 50% 0/1px 100% no-repeat, linear-gradient(#e7dcc5, #e7dcc5) 0 50%/100% 1px no-repeat, #2a2015; }
body.is-landing .flash[data-era="40s"]::before { animation: land-iris 2.8s var(--ease) both; }
@keyframes land-iris { 0% { opacity: 0; clip-path: circle(150% at 50% 50%); } 22% { opacity: 1; clip-path: circle(150% at 50% 50%); } 60% { opacity: 1; clip-path: circle(150% at 50% 50%); } 100% { opacity: 1; clip-path: circle(0% at 50% 50%); } }
/* 1950s: diner stripes that slide away like a curtain */
.flash[data-era="50s"]::before { background: repeating-linear-gradient(90deg, #b3262d 0 48px, #f2ead8 48px 96px); }
body.is-landing .flash[data-era="50s"]::before { animation: land-curtain 2.6s var(--ease) both; }
@keyframes land-curtain { 0% { opacity: 0; transform: translateY(0); } 25% { opacity: .92; transform: translateY(0); } 55% { opacity: .92; transform: translateY(0); } 100% { opacity: .92; transform: translateY(-101%); } }
/* 1960s & 1970s: a television warming up, the picture opening from a line */
.flash[data-era="60s"]::before, .flash[data-era="70s"]::before { background: #0c0b09; }
.flash[data-era="60s"]::after, .flash[data-era="70s"]::after { background: #efe6d2; transform: scaleY(.004); }
.flash[data-era="70s"]::after { background: #f0b46a; }
body.is-landing .flash[data-era="60s"]::before, body.is-landing .flash[data-era="70s"]::before { animation: land-cover 2.6s var(--ease) both; }
body.is-landing .flash[data-era="60s"]::after, body.is-landing .flash[data-era="70s"]::after { animation: land-tv 2.6s var(--ease) both; }
@keyframes land-tv { 0%, 30% { opacity: 0; transform: scaleY(.004); } 42% { opacity: .9; transform: scaleY(.004); } 70% { opacity: .35; transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(1); } }
/* 1980s: neon scanlines that roll up the screen */
.flash[data-era="80s"]::before { background: repeating-linear-gradient(0deg, #0c0b09 0 6px, #ff3ec8 6px 8px, #0c0b09 8px 14px, #2de2e6 14px 16px); }
body.is-landing .flash[data-era="80s"]::before { animation: land-roll 2.6s var(--ease) both; }
@keyframes land-roll { 0% { opacity: 0; transform: translateY(0); } 25% { opacity: .85; } 60% { opacity: .85; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-40%); } }
/* 1990s: a teal desktop with a dial-up progress bar */
.flash[data-era="90s"]::before { background: #0f6f6c; }
.flash[data-era="90s"]::after { inset: auto 22% 48% 22%; height: 18px; background: linear-gradient(#efe6d2, #efe6d2) 0 0/0% 100% no-repeat; border: 2px solid #efe6d2; }
body.is-landing .flash[data-era="90s"]::before { animation: land-cover 2.8s var(--ease) both; }
body.is-landing .flash[data-era="90s"]::after { animation: land-bar 2.8s steps(12) both; }
@keyframes land-bar { 0%, 18% { opacity: 0; background-size: 0% 100%; } 25% { opacity: 1; } 62% { opacity: 1; background-size: 100% 100%; } 100% { opacity: 0; background-size: 100% 100%; } }
/* 2000s: a silver shutter */
.flash[data-era="00s"]::before { background: linear-gradient(#c9ccd1, #c9ccd1) top/100% 50% no-repeat, linear-gradient(#aeb2b8, #aeb2b8) bottom/100% 50% no-repeat; }
body.is-landing .flash[data-era="00s"]::before { animation: land-shutter 2.6s var(--ease) both; }
@keyframes land-shutter { 0% { opacity: 0; clip-path: inset(0 0 0 0); } 25% { opacity: .95; clip-path: inset(0 0 0 0); } 58% { opacity: .95; clip-path: inset(0 0 0 0); } 100% { opacity: .95; clip-path: inset(50% 0 50% 0); } }
/* 2010s: a camera pulling focus */
.flash[data-era="10s"]::before { background: rgba(12,11,9,.35); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
body.is-landing .flash[data-era="10s"]::before { animation: land-focus 2.6s var(--ease) both; }
@keyframes land-focus { 0% { opacity: 0; } 25%, 60% { opacity: 1; } 100% { opacity: 0; } }
/* 2020s: a clean, quiet dissolve */
.flash[data-era="20s"]::before { background: #0c0b09; }
@media (prefers-reduced-motion: reduce) { body.is-landing .flash[data-era]::before, body.is-landing .flash[data-era]::after { animation-duration: .01s !important; } }

/* ---------- Radio credit: the song playing, and whose preview it is ---------- */
.radio-credit { position: fixed; z-index: 40; left: calc(var(--s4) + var(--safe-l)); bottom: calc(var(--s4) + var(--safe-b)); max-width: min(360px, calc(100% - 2 * var(--s4) - var(--safe-l) - var(--safe-r)));
  margin: 0; padding: 8px 12px; display: grid; gap: 2px; background: rgba(12,11,9,.92); border: 1px solid rgba(239,230,210,.22); border-radius: 0;
  font-family: var(--text); font-size: 11px; line-height: 1.35; color: var(--ivory-2); opacity: 0; transform: translateY(6px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.radio-credit.on { opacity: 1; transform: none; pointer-events: auto; }
.radio-credit .rc-k { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; }
.radio-credit .rc-t { font-family: var(--display); font-style: italic; font-size: 14px; color: var(--ivory); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-credit a { color: var(--ivory-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(239,230,210,.35); }
/* in the room it docks into the control bar as a one-line strip (the bar's height feeds --bar-h, so the room scrolls above it) */
.day-bar .radio-credit.in-bar { position: static; grid-column: 1 / -1; max-width: none; display: flex; align-items: baseline; gap: var(--s3); flex-wrap: nowrap; min-width: 0;
  padding: 0 0 var(--s2); background: none; border: 0; border-bottom: 1px solid rgba(239,230,210,.16); transform: none; }
.day-bar .radio-credit.in-bar .rc-k { flex: 0 0 auto; }
.day-bar .radio-credit.in-bar .rc-t { flex: 1 1 auto; min-width: 0; font-size: 13px; }
.day-bar .radio-credit.in-bar a, .day-bar .radio-credit.in-bar > span:last-child { flex: 0 0 auto; }
@media (max-width: 520px) { .day-bar .radio-credit.in-bar .rc-k { display: none; } .day-bar .radio-credit.in-bar a { font-size: 10px; } }

/* site footer on the intro (SEO + wayfinding) */
.intro-foot { grid-area: foot; display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: var(--s6); }
.intro-foot a { display: inline-flex; align-items: center; min-height: 44px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-2); text-decoration: none; }
.intro-foot a:hover { color: var(--ivory); }
