/*
 * Freehold — consumer site prototype · the story page
 *
 * One fixed Estate scene behind the whole story. Each chapter is a frame: its words keep to one narrow
 * column at the side of the window and the world gets the rest (story.js measures the column; the scene
 * composes the chapter's subject into what is left). The variety lives in the world, in its camera, its
 * light and what happens in it. The column stays quiet, compact and in one voice; glass is kept for the
 * few things you hold or use.
 */

:root {
  /* the narrative column: about a quarter of the window, never so narrow that lines break badly */
  --col: clamp(400px, 27vw, 40rem);
  --col-wide: clamp(440px, 34vw, 46rem);
  --col-hero: clamp(440px, 46vw, 58rem);
  /* from the window's edge to the words, and from the words to the world */
  --edge: clamp(28px, 3.4vw, 76px);
  --edge-in: clamp(16px, 2vw, 40px);
  --measure: 30rem;
  --frame-pad: clamp(22px, 7vh, 88px);
}

/* ================================================================ stage */
.stage { position: fixed; inset: 0; z-index: 0; background: var(--ink); }
.stage canvas { width: 100%; height: 100%; display: block; }
.stage__labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
/* the lens: a faint falloff toward the window's rim */
.stage::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(140% 110% at 55% 50%, transparent 60%, rgba(3, 6, 9, 0.38) 100%);
}
/* the column's side of the frame falls into shade, as a set is lit for the words; the world's side stays clear */
.stage__shade { position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 1; transition: opacity 900ms var(--ease); }
.stage__shade--l { background: linear-gradient(90deg, rgba(4, 7, 11, 0.86) 0, rgba(4, 7, 11, 0.74) calc(var(--col) * 0.62), rgba(4, 7, 11, 0.36) calc(var(--col) * 1.02), rgba(4, 7, 11, 0) calc(var(--col) + 12vw)); }
.stage__shade--r { background: linear-gradient(270deg, rgba(4, 7, 11, 0.86) 0, rgba(4, 7, 11, 0.74) calc(var(--col) * 0.62), rgba(4, 7, 11, 0.36) calc(var(--col) * 1.02), rgba(4, 7, 11, 0) calc(var(--col) + 12vw)); }
.stage__shade--b { background: linear-gradient(0deg, rgba(4, 7, 11, 0.62) 0, rgba(4, 7, 11, 0) 34%); }
body[data-side='left'] .stage__shade--l, body[data-side='right'] .stage__shade--r { opacity: 1; }
body[data-side='hero'] .stage__shade--l { opacity: 0.85; }
body[data-side='time'] .stage__shade--r, body[data-side='time'] .stage__shade--b { opacity: 1; }
.stage__cut { position: absolute; inset: 0; z-index: 4; background: var(--ink); opacity: 0; pointer-events: none; }
.stage.is-cut .stage__cut { animation: stage-cut 520ms linear; }
@keyframes stage-cut { 0% { opacity: 0.85; } 100% { opacity: 0; } }

.stage__fallback { display: none; position: absolute; inset: 0; }
.no-webgl .stage canvas, .no-webgl .stage__labels { display: none; }
.no-webgl .stage__fallback { display: block; }
.no-js .stage canvas, .no-js .stage__labels, .no-js .scene-pause { display: none; }
.no-js .stage__fallback { display: block; opacity: 0; animation: fh-show 0.8s var(--ease) 2.2s forwards; }
.stage__fallback { overflow: hidden; background: radial-gradient(90% 80% at 70% 45%, #0e1a25 0%, var(--ink) 70%); }
/* The drawn plan sits in the world's part of the frame; each shot pans its subject to the middle and leans in. */
.plan-view {
  position: absolute; top: 0; bottom: 0; right: 0; width: 64vw; overflow: hidden; container-type: size;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%); mask-image: linear-gradient(90deg, transparent 0, #000 12%);
}
body[data-side='right'] .plan-view, body[data-side='time'] .plan-view { right: auto; left: 0; -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 12%); mask-image: linear-gradient(270deg, transparent 0, #000 12%); }
@media (min-width: 881px) {
  .stage[style*='--plan-l'] .plan-view { left: var(--plan-l); right: var(--plan-r); width: auto; }
}
.plan {
  position: absolute; top: 50%; left: 50%; width: min(78vh, 46vw); width: min(84cqh, 96cqw); height: auto;
  --z: 1; --ox: 50%; --oy: 50%;
  transform: translate(-50%, -50%) translate(calc(50% - var(--ox)), calc(50% - var(--oy))) scale(var(--z)); transform-origin: var(--ox) var(--oy);
  transition: opacity 600ms, transform 1400ms var(--ease), transform-origin 1400ms var(--ease);
}
.reduce-motion .plan { transition: opacity 300ms; }
@media (max-width: 880px) {
  .plan-view, body[data-side='right'] .plan-view, body[data-side='time'] .plan-view { left: 0; right: 0; width: auto; top: var(--nav-h); bottom: auto; height: 46vh; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
  .plan { width: min(88vw, 42vh); }
}
/* The plan's camera: each shot leans in toward what the chapter is about. */
.plan[data-shot='wake'] { --z: 1.45; --ox: 64%; --oy: 52%; }
.plan[data-shot='debate'] { --z: 1.6; --ox: 51%; --oy: 51%; }
.plan[data-shot='door'], .plan[data-shot='pantry'], .plan[data-shot='fix'], .plan[data-shot='work'] { --z: 1.7; --ox: 76%; --oy: 38%; }
.plan[data-shot='tomb'] { --z: 1.8; --ox: 69%; --oy: 67%; }
.plan[data-shot='chronicle'] { --z: 1.7; --ox: 33%; --oy: 55%; }
.plan[data-shot='threads'] { --z: 1.45; --ox: 66%; --oy: 62%; }
.plan[data-shot='time'][data-stop='3'] { --z: 1.5; --ox: 51%; --oy: 51%; }
.plan[data-shot='time'][data-stop='13'] { --z: 1.5; --ox: 76%; --oy: 38%; }
.plan[data-shot='time'][data-stop='19'] { --z: 1.6; --ox: 69%; --oy: 67%; }
.plan[data-shot='time'][data-stop='30'] { --z: 1.6; --ox: 33%; --oy: 55%; }
.plan[data-shot='time'][data-stop='47'] { --z: 1.5; --ox: 56%; --oy: 62%; }
.plan__lbl { opacity: 0; transition: opacity 600ms var(--ease); paint-order: stroke; stroke: #070c12; stroke-width: calc(4px * var(--lbl-k, 1)); }
/* Counter-scaled against the plan's zoom and size (story.js sets --lbl-k), so names stay legible. */
.plan__lbls .plan__lbl { font-size: calc(13px * var(--lbl-k, 1)); }
.plan__lbl--others { font-size: calc(27px * var(--lbl-k2, 1)); stroke-width: calc(5px * var(--lbl-k2, 1)); }
.plan__lbl--plot { font-size: calc(24px * var(--lbl-k2, 1)); stroke-width: calc(5px * var(--lbl-k2, 1)); }
.plan[data-shot='debate'] .plan__lbl--forum, .plan[data-shot='time'][data-stop='3'] .plan__lbl--forum,
.plan[data-shot='wake'] .plan__lbl--homes, .plan[data-shot='threads'] .plan__lbl--homes, .plan[data-shot='threads'] .plan__lbl--contact,
.plan[data-shot='door'] .plan__lbl--publish, .plan[data-shot='door'] .plan__lbl--pantry, .plan[data-shot='pantry'] .plan__lbl--pantry, .plan[data-shot='pantry'] .plan__lbl--publish, .plan[data-shot='work'] .plan__lbl--pantry, .plan[data-shot='fix'] .plan__lbl--pantry,
.plan[data-shot='time'][data-stop='13'] .plan__lbl--pantry, .plan[data-shot='time'][data-stop='13'] .plan__lbl--publish,
.plan[data-shot='tomb'] .plan__lbl--grave, .plan[data-shot='time'][data-stop='19'] .plan__lbl--grave,
.plan[data-shot='chronicle'] .plan__lbl--library, .plan[data-shot='time'][data-stop='30'] .plan__lbl--library,
.plan[data-shot='steward'] .plan__lbl--publish, .plan[data-shot='steward'] .plan__lbl--contact { opacity: 0.92; }
.plan[data-day='-1'] .plan__lbl { opacity: 0; }
.plan { overflow: visible; }
.plan__others { opacity: 0; transition: opacity 900ms var(--ease); }
.plan[data-shot='world'] .plan__others, .plan[data-shot='gallery'] .plan__others, .plan[data-shot='yours'] .plan__others, .plan[data-shot='get'] .plan__others { opacity: 1; }
.plan[data-shot='world'] .plan__lbl--others, .plan[data-shot='gallery'] .plan__lbl--others, .plan[data-shot='yours'] .plan__lbl--plot, .plan[data-shot='get'] .plan__lbl--plot { opacity: 0.92; }
.plan[data-shot='world'], .plan[data-shot='gallery'] { --z: 0.5; }
.plan[data-shot='yours'], .plan[data-shot='get'] { --z: 0.62; --ox: 10%; --oy: 66%; }
.plan[data-plot] .plan__plot circle:first-child { stroke-dasharray: none; stroke-width: 4; }
.plan .plan__survey { opacity: 0; transition: opacity 600ms; }
.plan[data-day='-1'] .plan__survey { opacity: 1; }
.plan[data-day='-1'] .plan__ring, .plan[data-day='-1'] .plan__built, .plan[data-day='-1'] .plan__doors, .plan[data-day='-1'] .plan__grave { opacity: 0; }
.plan__ring, .plan__built, .plan__doors, .plan__grave, .plan__odile, .plan__pantry, .plan__tidemark, .plan__stele, .plan__door { transition: opacity 600ms; }
.plan:not([data-odile]) .plan__odile, .plan:not([data-pantry]) .plan__pantry, .plan:not([data-tidemark]) .plan__tidemark, .plan:not([data-stele]) .plan__stele { opacity: 0; }
.plan__door { opacity: 0; }
.plan[data-door-web='open'] .plan__door--web, .plan[data-door-publish='open'] .plan__door--publish, .plan[data-door-contact='open'] .plan__door--contact, .plan[data-door-payments='open'] .plan__door--payments, .plan[data-door-accounts='open'] .plan__door--accounts { opacity: 1; }
.plan[data-door-web='requested'] .plan__door--web, .plan[data-door-publish='requested'] .plan__door--publish, .plan[data-door-contact='requested'] .plan__door--contact, .plan[data-door-payments='requested'] .plan__door--payments, .plan[data-door-accounts='requested'] .plan__door--accounts { opacity: 1; stroke: var(--amber); stroke-dasharray: 6 6; }
.plan[data-paused] { opacity: 0.45; }

/* ---------------------------------------------------------------- names in the world
 * Small, plain and crisp: a dot on the thing, its name beside it on a dark slip. They never sit on the
 * page's own words (the scene keeps them clear of the column). */
.scene-label { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity 500ms var(--ease); will-change: transform; }
.scene-label.is-on { opacity: 1; }
.scene-label__dot { position: absolute; left: -2.5px; top: -2.5px; width: 5px; height: 5px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 3px rgba(236, 230, 217, 0.12); }
.scene-label__text {
  position: absolute; left: 9px; top: -27px; white-space: nowrap; font-size: var(--fs-micro); font-weight: 500; letter-spacing: 0.01em; line-height: 1.3; color: var(--paper);
  padding: 4px 8px; border-radius: 4px; background: rgba(6, 10, 15, 0.66); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.scene-label__text::before { content: ''; position: absolute; left: -6px; top: 100%; width: 9px; height: 1px; background: rgba(236, 230, 217, 0.36); transform: rotate(-58deg); transform-origin: right; }
/* something a citizen says or does in the world, in its own words */
.scene-label--say .scene-label__text { font-size: var(--fs-label); padding: 5px 9px; background: rgba(6, 10, 15, 0.74); box-shadow: inset 0 0 0 1px rgba(227, 199, 126, 0.22); }
.scene-label--say .scene-label__dot { background: #bff3dc; box-shadow: 0 0 0 3px rgba(63, 209, 151, 0.22); }
.scene-label--mark .scene-label__text { color: var(--brass-hi); }

/* ---------------------------------------------------------------- the one control the scene needs: pause */
.scene-pause {
  position: fixed; right: 14px; bottom: 14px; z-index: 70; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--radius);
  display: grid; place-items: center; cursor: pointer; color: rgba(241, 238, 232, 0.8);
  background: rgba(6, 10, 15, 0.38); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  opacity: 0.62; transition: opacity var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease);
}
.scene-pause:hover, .scene-pause:focus-visible { opacity: 1; background: rgba(6, 10, 15, 0.7); }
.scene-pause__icon { display: block; width: 9px; height: 10px; border-left: 2.5px solid currentColor; border-right: 2.5px solid currentColor; }
.scene-pause[aria-pressed='true'] .scene-pause__icon { width: 0; height: 0; border: 0; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; border-left: 9px solid currentColor; margin-left: 2px; }
.no-webgl .scene-pause { display: none; }
/* words passing beneath it (story.js): it steps aside until they have gone by, unless it has focus */
html.pause-covered .scene-pause:not(:focus) { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--dur-2) var(--ease), visibility 0s linear var(--dur-2); }
html.ws-open .scene-pause { visibility: hidden; }
body[data-shot='work'] .scene-pause { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------------------------------------------------------------- chapter rail: there while you move, gone once you settle */
/* Only a thin strip at the window's edge takes the pointer, so the rail never sits on a column's words, even unseen. */
.rail { position: fixed; right: 8px; top: 50%; transform: translateY(-50%); z-index: 60; opacity: 0; transition: opacity 600ms var(--ease), visibility 600ms; }
html.is-scrolling .rail, .rail:hover, .rail:focus-within { opacity: 1; transition-duration: 200ms; }
.rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rail a { position: relative; display: flex; align-items: center; justify-content: flex-end; width: 34px; height: 18px; text-decoration: none; color: rgba(236, 230, 217, 0.3); }
.rail a::after { content: ''; width: 12px; height: 1px; background: currentColor; transition: width var(--dur-2) var(--ease), background-color var(--dur-2); }
.rail span { position: absolute; right: 100%; top: 50%; margin-right: 6px; translate: 0 -50%; white-space: nowrap; pointer-events: none; font-size: var(--fs-micro); font-weight: 500; color: var(--paper); opacity: 0; transform: translateX(6px); transition: opacity var(--dur-2), transform var(--dur-2) var(--ease); background: rgba(6, 10, 15, 0.8); padding: 2px 7px; border-radius: 4px; }
.rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: none; }
.rail a:hover, .rail a.is-active { color: var(--paper); }
.rail a.is-active::after { width: 24px; }
@media (max-height: 760px) { .rail a { height: 14px; } }
html.ws-open .rail { visibility: hidden; }
body[data-shot='work'] .rail { opacity: 0; visibility: hidden; pointer-events: none; }
.progress { display: none; }
@media (max-width: 1180px) {
  .rail { display: none; }
  .progress { display: block; position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 81; }
  .progress span { display: block; height: 100%; width: 100%; background: var(--brass); transform-origin: left; transform: scaleX(0); }
}
html.ws-open .progress { visibility: hidden; }

/* ================================================================ frames
 * The page's rules, in one place:
 *   - A frame fills the window. Its words keep to one column at the side (.frame__col); the rest of the
 *     window belongs to the world, which composes the chapter's subject there. Nothing sits on the world.
 *   - In the column: a mark (where we are in Leo's life), a heading, a short paragraph, and at most one
 *     thing to read closely or use. Detail waits one click away.
 *   - Glass only for things you hold or use: a charter, a request, the app. Words never sit on slabs.
 *   - On wide windows the page settles onto whole frames, and a frame's words arrive with its shot.
 * ============================================================================================== */
main { position: relative; z-index: 10; }
.chapter { position: relative; }
.frame { position: relative; display: flex; align-items: stretch; min-height: 100vh; min-height: 100svh; }
.frame__col {
  position: relative; z-index: 2; flex: none; width: var(--col); min-width: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: max(var(--frame-pad), calc(var(--nav-h) + 6px)) var(--edge-in) var(--frame-pad) var(--edge);
}
.frame--right .frame__col { margin-left: auto; padding-left: var(--edge-in); padding-right: calc(var(--edge) + 18px); }
.frame--wide .frame__col { width: var(--col-wide); }
.frame--wide .frame__col > * { max-width: 38rem; }
.frame__col > * { max-width: var(--measure); }
/* the column decides its own inner layout from its own width (two columns of short items when it can) */
.frame__col { container-type: inline-size; container-name: col; }
.frame__col > :last-child, .frame__end { margin-bottom: 0; }
/* words set straight on the world carry a shadow of their own */
.frame__col { text-shadow: 0 1px 2px rgba(3, 6, 10, 0.5); }
.frame__col .glass { text-shadow: 0 1px 1px rgba(3, 6, 10, 0.3); }

/* the column's voice */
.frame__col .eyebrow { margin-bottom: clamp(10px, 1.8vh, 16px); }
.eyebrow--day { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; font-size: var(--fs-label); }
.eyebrow__day { color: var(--paper); font-weight: 500; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; }
.eyebrow__day::after { content: ''; width: 22px; height: 1px; margin: 0 10px; background: linear-gradient(90deg, rgba(227, 199, 126, 0.9), rgba(227, 199, 126, 0.2)); }
.eyebrow__name { color: var(--muted); font-weight: 400; }
.frame__col .h2 { margin-bottom: 0.5em; }
.frame__col .lede { color: rgba(241, 238, 232, 0.9); margin-bottom: 0.9em; }
.frame__col .body { margin-bottom: 0.9em; }
.frame__col .body p:last-child { margin-bottom: 0; }
.frame__col .h2 em, .frame__col .display em { color: rgba(241, 238, 232, 0.58); }
.frame__link { margin: 14px 0 0; }
.footnote { font-size: var(--fs-small); color: var(--faint); max-width: 34em; margin: 14px 0 0; line-height: 1.5; }
.note { font-size: var(--fs-small); color: var(--faint); }
/* a thing in the column that answers to something in the world: pointing at it lights the place */
[data-world] { transition: color var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease); }

/* ---------------------------------------------------------------- arrival
 * Wide windows settle onto whole frames (story.js). There, a frame's words arrive with its shot, one
 * after another, and step aside when the next frame takes the screen. Lines that the world acts out
 * (data-cue) arrive when it does (--at). Elsewhere everything simply shows. */
html.has-settle:not(.reduce-motion) [data-scene] .frame__col > *,
html.has-settle:not(.reduce-motion) [data-scene] [data-cue] {
  opacity: 0; transform: translate3d(0, 8px, 0);
  transition: opacity 260ms var(--ease), transform 420ms var(--ease);
}
html.has-settle:not(.reduce-motion) [data-scene].is-current .frame__col > * {
  opacity: 1; transform: none;
  transition: opacity 900ms var(--ease), transform 700ms var(--ease);
  transition-delay: calc(200ms + var(--i, 0) * 100ms);
}
html.has-settle:not(.reduce-motion) [data-scene].is-current [data-cue] {
  opacity: 1; transform: none;
  transition: opacity 800ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--at, 0ms);
}
html.has-settle:not(.reduce-motion) [data-scene] .frame__col:focus-within > *,
html.has-settle:not(.reduce-motion) [data-scene] .frame__col:focus-within [data-cue] { opacity: 1; transform: none; transition-delay: 0ms; }
.frame__col > :nth-child(2) { --i: 1; } .frame__col > :nth-child(3) { --i: 2; } .frame__col > :nth-child(4) { --i: 3; }
.frame__col > :nth-child(5) { --i: 4; } .frame__col > :nth-child(6) { --i: 5; } .frame__col > :nth-child(7) { --i: 6; } .frame__col > :nth-child(8) { --i: 7; }
/* phones and other windows that scroll freely: a frame's words fade in once, the first time they are seen */
html.js:not(.has-settle):not(.reduce-motion) [data-scene]:not(.is-seen) .frame__col > * { opacity: 0; transform: translate3d(0, 14px, 0); }
html.js:not(.has-settle):not(.reduce-motion) [data-scene] .frame__col > * { transition: opacity 900ms var(--ease), transform 1100ms var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }

/* ================================================================ hero: Leo whole, the promise beside it */
.frame--hero .frame__col { width: var(--col-hero); padding-right: var(--edge-in); }
.frame--hero .frame__col > * { max-width: none; }
.hero__title { font-size: clamp(2.6rem, min(1.2rem + 2.9vw, 0.4rem + 8.4vh), 4.75rem); margin-bottom: clamp(14px, 2.8vh, 26px); font-weight: 500; text-shadow: 0 1px 2px rgba(3, 6, 10, 0.4), 0 6px 40px rgba(3, 6, 10, 0.55); }
.hero__title em { color: rgba(241, 238, 232, 0.62); }
.hero__eyebrow { color: var(--muted); font-weight: 500; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line > span { display: block; transform: translateY(105%); transition: transform 1400ms var(--ease); }
.hero__title .line:nth-child(2) > span { transition-delay: 160ms; }
.is-loaded .hero__title .line > span, .reduce-motion .hero__title .line > span { transform: none; }
.reduce-motion .hero__title .line > span { transition: none; }
.frame--hero .hero__eyebrow, .frame--hero .hero__lede, .frame--hero .hero__actions, .hero__facts { opacity: 0; transition: opacity 1200ms var(--ease) 500ms; }
.is-loaded .frame--hero .hero__eyebrow, .is-loaded .frame--hero .hero__lede, .is-loaded .frame--hero .hero__actions, .is-loaded .hero__facts { opacity: 1; }
.no-js .hero__title .line > span { animation: fh-unshift 0.8s var(--ease) 2.2s forwards; }
.no-js .frame--hero .hero__eyebrow, .no-js .frame--hero .hero__lede, .no-js .frame--hero .hero__actions, .no-js .hero__facts { animation: fh-show 0.8s var(--ease) 2.2s forwards; }
@keyframes fh-unshift { to { transform: none; } }
@keyframes fh-show { to { opacity: 1; } }
.hero__lede { max-width: 31em; color: rgba(241, 238, 232, 0.86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(16px, 3vh, 28px); }
.arrow--down { display: inline-block; }
.btn:hover .arrow--down { transform: translateY(2px); }
/* Leo's readout: a museum label under the model, not a dashboard */
.hero__facts { position: absolute; z-index: 2; right: calc(var(--edge) + 18px); bottom: max(18px, 4vh); display: flex; flex-wrap: wrap; margin: 0; padding: 0; text-shadow: 0 1px 2px rgba(3, 6, 10, 0.7); }
.hero__facts > div { display: flex; align-items: baseline; gap: 6px; padding: 0 14px; }
.hero__facts > div + div { box-shadow: -1px 0 0 rgba(255, 255, 255, 0.14); }
.hero__facts > div:last-child { padding-right: 0; }
.hero__facts dt { font-size: var(--fs-label); color: var(--faint); font-weight: 400; }
.hero__facts dd { margin: 0; font-size: var(--fs-label); font-weight: 500; color: var(--paper); white-space: nowrap; }
.hero__facts-key dd { color: var(--brass-hi); }
/* the hero keeps its own arrival (above), whatever the settling rules say */
html.has-settle:not(.reduce-motion) .frame--hero .frame__col > * { opacity: 1; transform: none; transition: none; }
html.has-settle:not(.reduce-motion) .frame--hero .frame__col > .hero__eyebrow, html.has-settle:not(.reduce-motion) .frame--hero .frame__col > .hero__lede, html.has-settle:not(.reduce-motion) .frame--hero .frame__col > .hero__actions { opacity: 0; transition: opacity 1200ms var(--ease) 500ms; }
html.has-settle:not(.reduce-motion).is-loaded .frame--hero .frame__col > .hero__eyebrow, html.has-settle:not(.reduce-motion).is-loaded .frame--hero .frame__col > .hero__lede, html.has-settle:not(.reduce-motion).is-loaded .frame--hero .frame__col > .hero__actions { opacity: 1; }

/* ================================================================ what it is: three contrasts, each acted out in the world */
.contrasts { list-style: none; padding: 0; margin: 6px 0 16px; }
.contrasts li { font-size: clamp(1.0625rem, min(0.92rem + 0.5vw, 0.78rem + 1.4vh), 1.375rem); line-height: 1.32; padding: 10px 0 10px 14px; font-weight: 500; letter-spacing: -0.014em; border-left: 1px solid rgba(236, 228, 212, 0.14); }
.contrasts li + li { margin-top: 2px; }
.contrasts em { color: var(--muted); }
.contrasts li:hover, .contrasts li.is-lit { border-left-color: var(--brass-hi); }

/* ================================================================ the founding: the charter in your hand, the land waiting */
.chapter--group { display: block; }
.charter { margin: 0; text-align: left; }
.charter--deed { padding: clamp(14px, 2.4vh, 22px) clamp(16px, 1.5vw, 22px); margin: 4px 0 0; --glass-tint: rgba(14, 18, 24, 0.34); }
.charter__frame { position: absolute; inset: 6px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(227, 199, 126, 0.13); pointer-events: none; }
.charter__k { margin: 0 0 6px; font-size: var(--fs-micro); color: var(--faint); font-weight: 500; display: flex; align-items: center; gap: 10px; }
.charter__k::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(227, 199, 126, 0.5), rgba(227, 199, 126, 0)); }
.charter__name { margin: 0; font-size: clamp(1.75rem, min(1.2rem + 1vw, 0.7rem + 3.4vh), 2.25rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; color: #fffaf0; }
.charter__motto { margin: 6px 0 0; font-size: var(--fs-body); color: var(--muted); }
.charter__citizens { list-style: none; margin: clamp(10px, 1.8vh, 14px) 0 0; padding: clamp(8px, 1.4vh, 12px) 0 0; border-top: 1px solid rgba(255, 255, 255, 0.08); display: grid; gap: 4px; font-size: var(--fs-small); color: var(--muted); line-height: 1.45; }
.charter__citizens b { color: var(--paper); font-weight: 600; margin-right: 2px; }
.charter__citizens li { padding: 2px 0; }
.charter__citizens li:hover b { color: var(--brass-hi); }
.charter__more { margin-top: 10px; }
.charter__more > summary { font-size: var(--fs-small); padding: 4px 0; }
.charter__law { margin: 8px 0 0; display: grid; gap: 8px; }
.charter__law div { display: grid; grid-template-columns: 5.6rem 1fr; gap: 10px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.charter__law dt { font-size: var(--fs-label); color: var(--faint); }
.charter__law dd { margin: 0; font-size: var(--fs-small); color: var(--paper); }
.charter__more[open] .charter__law { max-height: 34vh; overflow: auto; scrollbar-width: thin; padding-right: 4px; }

/* the seal: the stamp comes down as the ring closes in the world */
.seal-moment__stamp { width: clamp(56px, 9vh, 76px); height: clamp(56px, 9vh, 76px); color: var(--brass); margin-bottom: clamp(14px, 2.4vh, 22px); filter: drop-shadow(0 4px 18px rgba(200, 162, 74, 0.3)); }
.seal-moment__stamp svg { width: 100%; height: 100%; }
html.has-settle:not(.reduce-motion) .seal-moment .frame__col > .seal-moment__stamp { opacity: 0; transform: scale(1.5) rotate(-14deg); transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
html.has-settle:not(.reduce-motion) .seal-moment.is-current .frame__col > .seal-moment__stamp { opacity: 1; transform: none; transition: opacity 500ms var(--ease) 450ms, transform 760ms cubic-bezier(0.3, 1.5, 0.5, 1) 450ms; }

/* ================================================================ first light: who woke, and what each did first */
.cast { list-style: none; margin: 6px 0 16px; padding: 0; display: grid; gap: 2px; }
.cast__one { padding: 8px 0 8px 14px; border-left: 1px solid rgba(236, 228, 212, 0.14); }
.cast__one:hover, .cast__one.is-lit { border-left-color: var(--emerald); }
.cast__one p { margin: 0; }
.cast__name { font-size: var(--fs-body); font-weight: 600; color: var(--paper); letter-spacing: -0.01em; }
.cast__doing { font-weight: 400; color: var(--muted); margin-left: 4px; }
.cast__note { margin-top: 2px !important; font-size: var(--fs-small); color: var(--faint); line-height: 1.45; }

/* ================================================================ the argument: the exchange, line by line, while the Forum acts it out */
.exchange { margin: 4px 0 0; }
.voice { margin: 0; padding: 7px 0 7px 14px; border-left: 1px solid rgba(236, 228, 212, 0.14); }
.voice + .voice { margin-top: 4px; }
.voice p { margin: 0; font-size: clamp(1rem, min(0.9rem + 0.3vw, 0.74rem + 1.1vh), 1.1875rem); line-height: 1.38; font-weight: 500; letter-spacing: -0.012em; color: var(--paper); text-wrap: pretty; }
.voice footer { margin-top: 3px; font-size: var(--fs-label); color: var(--faint); }
.voice footer b { color: var(--paper); font-weight: 600; margin-right: 5px; }
.voice:hover, .voice.is-lit { border-left-color: var(--emerald); }
.exchange__result { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.exchange__vote { display: flex; align-items: baseline; gap: 12px; font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }
.exchange__vote b { color: var(--paper); font-weight: 600; }
.tally { flex: none; display: inline-flex; gap: 3px; transform: translateY(-2px); }
.tally i { width: 14px; height: 3px; border-radius: 2px; background: rgba(241, 238, 232, 0.2); }
.tally .tally__for { background: var(--brass-hi); box-shadow: 0 0 8px rgba(227, 199, 126, 0.4); }
html.has-settle:not(.reduce-motion) [data-scene].is-current .exchange__result .tally i { animation: tally-in 700ms var(--ease) both; }
html.has-settle:not(.reduce-motion) [data-scene].is-current .exchange__result .tally i:nth-child(1) { animation-delay: calc(var(--at) + 300ms); }
html.has-settle:not(.reduce-motion) [data-scene].is-current .exchange__result .tally i:nth-child(2) { animation-delay: calc(var(--at) + 440ms); }
html.has-settle:not(.reduce-motion) [data-scene].is-current .exchange__result .tally i:nth-child(3) { animation-delay: calc(var(--at) + 580ms); }
@keyframes tally-in { from { transform: scaleX(0); opacity: 0; } }
.exchange__result .more { margin-top: 6px; }
.exchange__result .more > summary { font-size: var(--fs-small); padding: 4px 0; }
.exchange__result .more[open] .debate__turns { max-height: 38vh; overflow: auto; scrollbar-width: thin; padding-right: 6px; }
.exchange__aside { margin: 6px 0 0; font-size: var(--fs-label); color: var(--faint); }
.debate__turns { list-style: none; margin: 6px 0 0; padding: 0; }
.turn { display: grid; grid-template-columns: 4.6rem 1fr; grid-template-areas: 'who stance' 'who text'; column-gap: 12px; padding: 8px 0; }
.turn + .turn { border-top: 1px solid var(--line); }
.turn__who { grid-area: who; font-size: var(--fs-small); font-weight: 600; line-height: 1.4; }
.turn__stance { grid-area: stance; font-size: var(--fs-micro); color: var(--faint); }
.turn p { grid-area: text; margin: 2px 0 0; color: var(--paper); font-size: var(--fs-small); line-height: 1.45; }
.turn--vote .turn__who, .turn--vote .turn__stance { color: var(--brass-hi); }
.turn--vote p { color: var(--muted); }

/* ================================================================ the door: a request waits on you */
.request { margin: 4px 0 16px; }
.request.glass { --glass-tint: rgba(16, 17, 18, 0.34); box-shadow: inset 0 0 0 1px rgba(227, 199, 126, 0.16), inset 0 1px 0 rgba(227, 199, 126, 0.22), 0 0 1px rgba(255, 255, 255, 0.05), 0 24px 48px -32px rgba(0, 0, 0, 0.55); }
.request.is-decided.glass { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 24px 48px -32px rgba(0, 0, 0, 0.55); }
.request__from { font-size: var(--fs-micro); color: var(--brass-hi); font-weight: 500; margin: 0 0 6px; }
.request__title { font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.25rem); line-height: 1.25; margin: 0 0 8px; font-weight: 500; letter-spacing: -0.012em; }
.request__title strong { font-weight: 600; }
.request__reason { margin: 0 0 6px; color: var(--paper); font-size: var(--fs-small); line-height: 1.5; }
.request__terms { margin: 0 0 14px; color: var(--faint); font-size: var(--fs-label); }
.request__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.request__actions .btn { min-height: 40px; font-size: var(--fs-small); }
.request.is-decided .request__actions { display: none; }
.perspective { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-top: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.perspective[hidden] { display: none; }
.perspective__k { font-size: var(--fs-micro); color: var(--faint); font-weight: 500; margin: 0 0 3px; }
.perspective__v { margin: 0; font-size: var(--fs-small); }
.perspective__next { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: var(--fs-label); }
.perspective__reset { grid-column: 1 / -1; justify-self: start; border: 0; cursor: pointer; color: var(--muted); font-size: var(--fs-label); padding: 0; }
.perspective__reset:hover { color: var(--paper); }
.weather { font-size: var(--fs-small); color: var(--muted); line-height: 1.55; margin: 0; }
.weather__line { display: block; font-size: var(--fs-body); color: var(--paper); font-weight: 500; margin-bottom: 2px; }
.weather__line em { color: var(--brass-hi); }

/* ================================================================ 120 days: the Estate gets the window; the day is told beside it, the time along the foot */
.chapter--time { display: block; }
.time__track { position: relative; height: calc(7 * 80vh); }
.time__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }
.timecard__clock { margin: 0 0 clamp(10px, 2vh, 18px); display: flex; align-items: baseline; gap: 10px; color: var(--paper); pointer-events: none; }
.timecard__clock-k { font-size: var(--fs-label); color: var(--faint); font-weight: 500; }
.timecard__clock [data-clock-day] { font-size: clamp(2.75rem, min(1.6rem + 2.4vw, 1rem + 6vh), 4.25rem); line-height: 0.9; font-weight: 300; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; min-width: 2.2ch; }
.stops { min-height: 0; }
.stop[hidden] { display: none; }
.stop { animation: stop-in 700ms var(--ease); }
.reduce-motion .stop { animation: none; }
@keyframes stop-in { from { opacity: 0; transform: translateY(8px); } }
.stop .h3 { margin-bottom: 0.4em; }
.stop p { color: var(--muted); margin-bottom: 8px; font-size: var(--fs-body); }
.stop p:last-child { margin-bottom: 0; }
.stop__aside { color: var(--paper) !important; font-size: var(--fs-small) !important; }
.bonds { font-size: var(--fs-label) !important; color: var(--faint) !important; }
/* the chronology: one line from day 0 to today along the foot of the frame, each stop where it fell in time */
.dial { position: absolute; z-index: 3; left: var(--edge); right: calc(var(--edge) + 40px); bottom: max(12px, 2.4vh); height: 56px; margin: 0; text-shadow: 0 1px 2px rgba(3, 6, 10, 0.85), 0 0 12px rgba(3, 6, 10, 0.9); }
.dial__rail { position: absolute; left: 0; right: 0; top: 26px; height: 1px; background: rgba(236, 230, 217, 0.24); }
.dial__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, rgba(200, 162, 74, 0.55), var(--brass-hi)); box-shadow: 0 0 10px rgba(227, 199, 126, 0.4); }
.dial__stop { position: absolute; left: var(--at); top: 0; translate: -50% 0; width: 60px; height: 56px; padding: 0; display: block; background: transparent; border: 0; cursor: pointer; color: var(--faint); }
.dial__day { position: absolute; left: 0; right: 0; top: 2px; text-align: center; font-size: var(--fs-label); font-weight: 500; font-variant-numeric: tabular-nums; color: rgba(241, 238, 232, 0.66); transition: color var(--dur-2); }
.dial__stop::before { content: ''; position: absolute; left: calc(50% - 0.5px); top: 21px; width: 1px; height: 11px; background: rgba(236, 230, 217, 0.3); transition: background-color var(--dur-2), height var(--dur-2) var(--ease); }
.dial__name { position: absolute; left: 50%; top: 38px; translate: -50% 0; white-space: nowrap; font-size: var(--fs-micro); opacity: 0; transition: opacity var(--dur-2), color var(--dur-2); }
.dial__stop:hover, .dial__stop:hover .dial__day { color: var(--paper); }
.dial__stop:hover .dial__name, .dial__stop:focus-visible .dial__name, .dial__stop[aria-current='step'] .dial__name { opacity: 1; }
.dial__stop.is-past::before { background: var(--brass); }
.dial__stop[aria-current='step'] { color: var(--paper); }
.dial__stop[aria-current='step']::before { left: calc(50% - 1.5px); top: 18px; width: 3px; height: 17px; border-radius: 2px; background: var(--brass-hi); }
.dial__stop[aria-current='step'] .dial__day { color: var(--brass-hi); }
.dial__stop[data-stop='0'] .dial__name { translate: -22% 0; }
.dial__stop[data-stop='6'] .dial__name { translate: -78% 0; }

/* ================================================================ failure: the stone in the world, its words beside it */
.tomb { margin: 4px 0 18px; padding: 12px 0 2px; border-top: 1px solid rgba(236, 228, 212, 0.16); }
.tomb__name { margin: 0; font-size: clamp(1.375rem, 1.1rem + 0.7vw, 1.75rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; }
.tomb__here { font-size: var(--fs-label); font-weight: 400; color: var(--faint); letter-spacing: 0; margin-right: 4px; vertical-align: 0.15em; }
.tomb__what { color: var(--muted); margin: 2px 0 10px; font-size: var(--fs-small); }
.tomb__rows { margin: 0; display: grid; gap: 7px; }
.tomb__rows div { display: grid; grid-template-columns: 6.4rem 1fr; gap: 12px; }
.tomb__rows dt { font-size: var(--fs-label); color: var(--faint); font-weight: 500; padding-top: 1px; }
.tomb__rows dd { margin: 0; font-size: var(--fs-small); color: var(--paper); line-height: 1.45; }
.forecast { display: grid; gap: 6px; max-width: var(--measure); }
.forecast .h3 { margin: 0; font-size: var(--fs-body); font-weight: 600; letter-spacing: -0.01em; }
.forecast .body { margin: 0 0 6px; font-size: var(--fs-small); }
.forecast__claim { margin: 0; font-size: var(--fs-small); font-weight: 500; }
.forecast__k { font-size: var(--fs-micro); color: var(--faint); font-weight: 400; margin-left: 6px; }
.forecast__meter { position: relative; height: 3px; border-radius: 2px; background: rgba(236, 230, 217, 0.1); overflow: hidden; }
.forecast__meter span { position: absolute; inset: 0 auto 0 0; width: var(--v); background: linear-gradient(90deg, rgba(226, 115, 92, 0.5), var(--ember)); }
.forecast__row { margin: 0; display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-label); color: var(--muted); }
.forecast__res { color: #e9a594; font-weight: 500; }

/* ================================================================ the chronicle: every sentence points back to a place in the world */
.chronicle { margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(236, 228, 212, 0.16); }
.chronicle__kicker { color: var(--faint); font-size: var(--fs-micro); font-weight: 500; margin: 0 0 4px; }
.chronicle__title { font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem); font-weight: 500; margin: 0 0 8px; letter-spacing: -0.018em; }
.chronicle__text { font-size: var(--fs-body); line-height: 1.6; color: var(--paper); margin: 0 0 12px; }
.fn {
  display: inline-block; min-width: 1.15em; margin: 0 1px 0 2px; padding: 0 2px; vertical-align: 0.42em; line-height: 1.2;
  border: 0; border-radius: 3px; background: transparent; color: var(--brass-hi); font-size: 0.66em; font-weight: 600; cursor: pointer;
  font-variant-numeric: tabular-nums; transition: background-color var(--dur-1), color var(--dur-1);
}
.fn { position: relative; }
/* a source mark is small in the sentence but easy to hit: its target reaches a little beyond the numeral */
.fn::after { content: ''; position: absolute; inset: -7px -6px; }
.fn:hover, .fn[aria-expanded='true'] { background: rgba(200, 162, 74, 0.22); color: #fff; }
.chronicle__notes { list-style: none; counter-reset: fn; margin: 0; padding: 8px 0 0; border-top: 1px solid var(--line); display: grid; gap: 1px; }
.chronicle__notes li { counter-increment: fn; display: grid; grid-template-columns: 1rem 4.6rem 1fr; gap: 6px; font-size: var(--fs-label); line-height: 1.4; color: var(--muted); padding: 3px 6px; margin: 0 -6px; border-radius: 3px; transition: background-color var(--dur-2), color var(--dur-2); cursor: default; }
.chronicle__notes li::before { content: attr(data-n); color: var(--faint); font-variant-numeric: tabular-nums; }
.chronicle__notes li .mono { color: var(--faint); }
.chronicle__notes li.is-active, .chronicle__notes li:hover { background: rgba(236, 230, 217, 0.07); color: var(--paper); }
@media (max-width: 560px) { .chronicle__notes li { display: block; } .chronicle__notes li::before { margin-right: 8px; } .chronicle__notes li .mono { margin-right: 8px; } }

/* ================================================================ what they made */
.chapter--made { display: block; }
.made__lead .stop__aside { margin: 0 0 14px; }
.made__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 8px; }
.made__note { margin: 0; max-width: 22em; font-size: var(--fs-label); color: var(--faint); line-height: 1.45; }
/* the correction: what it said when it went public, beside what it says now */
.turn-about { margin: 6px 0 0; }
.turn-about__side { padding: 10px 0 12px 14px; border-left: 1px solid rgba(236, 228, 212, 0.14); }
.turn-about__side--now { border-left-color: var(--brass-hi); margin-top: 6px; }
.turn-about__when { font-size: var(--fs-micro); color: var(--faint); font-weight: 500; margin: 0 0 4px; }
.turn-about__lead { margin: 0 0 4px; font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; color: var(--paper); }
.turn-about__lead span { display: block; margin-top: 3px; font-size: var(--fs-small); font-weight: 400; letter-spacing: 0; color: var(--muted); }
.turn-about__lead s { color: var(--muted); text-decoration-thickness: 2px; text-decoration-color: rgba(226, 115, 92, 0.75); }
.turn-about__why { margin: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }
.turn-about__side--now .turn-about__why { color: var(--paper); }
.turn-about__end { margin: 14px 0 0; font-size: var(--fs-small); line-height: 1.55; color: var(--muted); }
/* still open */
.threads { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 4px 18px; }
.thread { padding: 7px 0 7px 14px; border-left: 1px solid rgba(236, 228, 212, 0.14); }
.thread:hover, .thread.is-lit { border-left-color: var(--paper); }
.thread.is-waiting { border-left-color: rgba(240, 179, 73, 0.7); }
.thread__k { display: block; font-size: var(--fs-micro); color: var(--faint); font-weight: 500; }
.thread.is-waiting .thread__k { color: var(--amber); }
.thread__t { font-weight: 600; font-size: var(--fs-body); margin: 1px 0 1px; line-height: 1.3; letter-spacing: -0.01em; }
.thread p { margin: 0; color: var(--muted); font-size: var(--fs-small); line-height: 1.45; }
.threads__end { font-size: var(--fs-body); line-height: 1.4; margin: 0; font-weight: 500; color: var(--muted); }

/* ================================================================ mornings: the app, small enough to sit beside the place it describes */
.app { padding: 0; overflow: hidden; margin: 4px 0 0; --glass-tint: rgba(12, 16, 22, 0.42); }
.app__bar { display: flex; align-items: center; gap: 12px; height: 32px; padding: 0 12px; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06); }
.app__lights { display: flex; gap: 6px; }
.app__lights i { width: 9px; height: 9px; border-radius: 50%; background: rgba(236, 230, 217, 0.13); }
.app__title { flex: 1; font-size: var(--fs-label); color: var(--paper); font-weight: 500; }
.app__estate { font-size: var(--fs-micro); color: var(--faint); }
.app__tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px 8px; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06); }
.app__tabs [role='tab'] {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border-radius: 4px; border: 0; background: transparent; cursor: pointer;
  color: var(--muted); font-size: var(--fs-label); transition: background-color var(--dur-1), color var(--dur-1);
}
.app__tabs [role='tab']:hover { color: var(--paper); }
.app__tabs [role='tab'][aria-selected='true'] { background: rgba(236, 230, 217, 0.09); color: var(--paper); font-weight: 500; }
.app__badge { font-size: 0.6875rem; font-weight: 600; min-width: 18px; padding: 0 5px; border-radius: 4px; background: var(--brass); color: #120d03; text-align: center; font-variant-numeric: tabular-nums; line-height: 16px; }
.app__main { padding: 12px 14px 12px; max-height: clamp(220px, calc(100svh - 300px), 420px); overflow: auto; scrollbar-width: thin; }
.pane:focus-visible { outline-offset: 4px; }
.pane__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 6px; }
.pane__head h3 { font-weight: 600; font-size: var(--fs-body); margin: 0; letter-spacing: -0.01em; }
.pane__head p { margin: 0; color: var(--faint); font-size: var(--fs-micro); }
.pane__foot { margin: 8px 0 0; font-size: var(--fs-micro); color: var(--faint); }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 3.9rem 1fr; gap: 10px; align-items: baseline; padding: 7px 4px; margin: 0 -4px; border-top: 1px solid rgba(255, 255, 255, 0.06); border-radius: 3px; }
.feed li:hover { background: rgba(236, 230, 217, 0.05); }
.feed p { margin: 0; color: var(--muted); font-size: var(--fs-label); line-height: 1.45; }
.feed strong { color: var(--paper); font-weight: 500; }
.feed__when { color: var(--faint); font-size: var(--fs-micro); font-variant-numeric: tabular-nums; }
.feed__req strong { color: var(--brass-hi); }
.roster, .chapters, .doorlist, .receipts { list-style: none; margin: 0; padding: 0; }
.roster li, .chapters li { padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.roster p, .chapters p { margin: 0; color: var(--muted); font-size: var(--fs-label); line-height: 1.45; }
.roster__name, .chapters__t { font-size: var(--fs-small); color: var(--paper) !important; font-weight: 600; }
.roster__name span { font-size: var(--fs-micro); color: var(--faint); font-weight: 400; margin-left: 6px; }
.balance { font-size: 1.75rem; margin: 2px 0 6px; line-height: 1; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.receipts li { display: grid; grid-template-columns: 3.9rem 1fr auto; gap: 10px; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: var(--fs-label); color: var(--muted); font-variant-numeric: tabular-nums; }
.receipts li span:first-child { color: var(--faint); font-size: var(--fs-micro); }
.doorlist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: var(--fs-label); }
.doorlist__scope { color: var(--faint); font-size: var(--fs-micro); margin-left: 6px; }
.mornings__note { margin-top: 10px; font-size: var(--fs-label); }

/* ================================================================ stewardship: the doors in your hand */
.keys { margin: 4px 0 12px; }
.keys__k { margin: 0 0 4px; font-size: var(--fs-label); color: var(--muted); }
.switches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); column-gap: 22px; }
.switches--compact { grid-template-columns: 1fr; }
[role='switch'] {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 40px; padding: 0; text-align: left;
  border: 0; background: transparent; cursor: pointer; font-size: var(--fs-small); color: var(--muted); transition: color var(--dur-1);
}
[role='switch']:hover, [role='switch'][aria-checked='true'] { color: var(--paper); }
.switch { position: relative; width: 32px; height: 18px; border-radius: 9px; background: rgba(236, 230, 217, 0.16); flex: none; transition: background-color var(--dur-2) var(--ease); }
.switch::after { content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); transition: transform var(--dur-2) var(--ease); }
[role='switch'][aria-checked='true'] .switch { background: var(--brass); }
[role='switch'][aria-checked='true'] .switch::after { transform: translateX(14px); }
.switch__label { display: grid; gap: 0; color: inherit; line-height: 1.3; }
.switch__label small { font-size: var(--fs-micro); color: var(--faint); font-weight: 400; }
.switches--keys li { border-top: 1px solid var(--line); }
.switches--keys [role='switch'] { min-height: 46px; }
.desk__k { margin: 0; font-size: var(--fs-micro); color: var(--faint); font-weight: 500; }
.desk__out { padding: 10px 0 0; border-top: 1px solid var(--line-strong); font-size: var(--fs-small); }
.desk__out p { margin: 0; }
.desk__them { margin-top: 3px !important; color: var(--muted); }
.desk__them .desk__k { display: inline; margin-right: 6px; }
.steward__why { font-size: var(--fs-small); line-height: 1.55; color: var(--muted); margin: 14px 0 0; }
.steward__why em { color: var(--paper); }

/* ================================================================ the walls: six promises, each kept at a place on the ring */
.walls { list-style: none; margin: 6px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 0 20px; }
.walls li { padding: 9px 0 9px; border-top: 1px solid var(--line); }
.walls li:hover h3 { color: var(--brass-hi); }
.walls h3 { font-weight: 600; font-size: var(--fs-small); margin: 0 0 2px; line-height: 1.3; letter-spacing: -0.005em; transition: color var(--dur-2); }
.walls p { margin: 0; color: var(--muted); font-size: var(--fs-label); line-height: 1.45; }
.walls__link { margin: 4px 0 0; font-size: var(--fs-small); }

/* ================================================================ the wider world */
.chapter--world { display: block; }
.earned { margin: 6px 0 0; padding-top: 12px; border-top: 1px solid rgba(236, 228, 212, 0.16); }
.earned__k { margin: 0 0 4px; font-size: var(--fs-micro); font-weight: 500; color: var(--faint); }
.earned__t { font-weight: 600; font-size: var(--fs-body); line-height: 1.3; margin: 0 0 6px; letter-spacing: -0.01em; }
.earned p { color: var(--muted); font-size: var(--fs-small); margin: 0 0 8px; line-height: 1.55; }
.earned .earned__note { color: var(--faint); font-size: var(--fs-label); }
.earned .text-link { font-size: var(--fs-small); }
/* four other charters, visited one at a time in the world */
.estates { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin: 4px 0 12px; }
.estates [role='tab'] {
  position: relative; display: grid; gap: 0; width: 100%; padding: 7px 0 7px 12px; text-align: left; cursor: pointer;
  border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--muted); transition: color var(--dur-1);
}
.estates [role='tab']::before { content: ''; position: absolute; left: 0; top: 50%; width: 2px; height: 0; border-radius: 1px; background: var(--brass-hi); transform: translateY(-50%); transition: height var(--dur-2) var(--ease); }
.estates [role='tab']:hover { color: var(--paper); }
.estates [role='tab'][aria-selected='true'] { color: var(--paper); }
.estates [role='tab'][aria-selected='true']::before { height: 20px; }
.estates__n { font-size: var(--fs-small); line-height: 1.3; font-weight: 600; letter-spacing: -0.005em; }
.estates__k { font-size: var(--fs-micro); color: var(--faint); }
.gallery__note { margin-top: 10px; font-size: var(--fs-label); }
.estory { animation: pane-in 500ms var(--ease); }
.reduce-motion .estory { animation: none; }
@keyframes pane-in { from { opacity: 0; transform: translateY(6px); } }
.estory:focus-visible { outline-offset: 6px; }
.estory__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; margin-bottom: 6px; }
.estory__head p { margin: 0; }
.estory__name { font-size: var(--fs-h3); line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; }
.estory__motto { color: var(--muted); font-size: var(--fs-small); }
.chain { list-style: none; margin: 0 0 10px; padding: 0; }
.chain li { padding: 5px 0; display: grid; grid-template-columns: 4.4rem 1fr; gap: 10px; }
.chain li + li { border-top: 1px solid var(--line); }
.chain__k { color: var(--faint); font-size: var(--fs-micro); font-weight: 500; padding-top: 2px; }
.chain p { margin: 0; font-size: var(--fs-label); color: var(--paper); line-height: 1.45; }
.estory__open { margin: 8px 0 0; font-size: var(--fs-label); color: var(--muted); }
.estory__open span { color: var(--paper); font-weight: 500; margin-right: 6px; }
/* the thing each Estate made: a page of its own, set in the column */
.artifact { margin: 0; padding: 10px 12px 9px; border-radius: 4px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.artifact__k { margin: 0 0 3px; color: var(--faint); font-size: var(--fs-micro); }
.artifact__t { margin: 0 0 6px; font-size: var(--fs-small); line-height: 1.3; font-weight: 600; }
.artifact__rows { list-style: none; margin: 0; padding: 0; }
.artifact__rows li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-top: 1px solid var(--line); font-size: var(--fs-label); color: var(--muted); }
.artifact__rows b { color: var(--paper); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.artifact__rows li.is-marked b { color: var(--faint); }
.artifact__q { margin: 3px 0 1px; font-weight: 500; font-size: var(--fs-label); }
.artifact__a { margin: 0 0 6px; font-size: var(--fs-label); color: var(--muted); }
.artifact__q--gone s { color: var(--faint); text-decoration-color: rgba(236, 230, 217, 0.5); }
.artifact__a--gone { color: var(--faint); }
.artifact__cap { margin-top: 5px; padding-top: 6px; border-top: 1px solid var(--line); font-size: var(--fs-micro); color: var(--muted); }

/* ================================================================ yours */
.yours__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 4px 0 14px; }
.beat.is-sealed .yours__actions { display: none; }
.charter--draft { transition: opacity var(--dur-2); }
.charter--draft .charter__citizens:empty { display: none; }
.charter__motto.is-empty, .charter__empty { color: var(--faint); }
.charter__empty { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: var(--fs-small); }
.charter--draft.is-blank .charter__name { color: var(--muted); }
.sealed { margin: 0; padding: 18px 20px 16px; }
.sealed:focus { outline: none; }
.sealed__stamp { width: 64px; height: 64px; margin: 0 0 10px; color: var(--brass); filter: drop-shadow(0 4px 16px rgba(200, 162, 74, 0.3)); }
.sealed__stamp svg { width: 100%; height: 100%; }
.sealed.is-stamping .sealed__stamp { animation: stamp 900ms cubic-bezier(0.3, 1.4, 0.5, 1) both; }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.8) rotate(-18deg); } 55% { opacity: 1; transform: scale(0.94) rotate(2deg); } 100% { transform: none; } }
.reduce-motion .sealed.is-stamping .sealed__stamp { animation: none; }
.sealed__k { margin: 0 0 2px; font-size: var(--fs-micro); color: var(--brass-hi); font-weight: 500; }
.sealed .h3 { font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.875rem); margin-bottom: 2px; font-weight: 500; letter-spacing: -0.03em; }
.sealed__motto { color: var(--muted); font-size: var(--fs-small); margin-bottom: 8px; }
.sealed__citizens { list-style: none; padding: 0; margin: 8px 0 10px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-small); font-weight: 600; }
.sealed .body { margin: 0 0 12px; font-size: var(--fs-small); }
.sealed__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.sealed .footnote { margin: 0; font-size: var(--fs-label); }

/* ================================================================ begin */
.begin__title { font-size: clamp(2.25rem, min(1.2rem + 2vw, 0.6rem + 5.6vh), 3.5rem); margin-bottom: clamp(12px, 2.4vh, 20px); }
.begin .hero__actions { margin-top: 4px; }
.begin__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: clamp(18px, 3.4vh, 30px) 0 0; padding-top: 14px; border-top: 1px solid rgba(236, 228, 212, 0.14); }
.begin__facts dt { font-size: var(--fs-micro); color: var(--faint); font-weight: 500; }
.begin__facts dd { margin: 1px 0 0; font-size: var(--fs-small); font-weight: 500; }

/* ================================================================ more: depth on request (in the column, small) */
.frame__col .more > summary { font-size: var(--fs-small); }

/* ================================================================ short windows: the column says a little less at once */
@media (min-width: 881px) and (max-height: 800px) {
  :root { --frame-pad: clamp(16px, 4.2vh, 40px); }
  .lede__more, .weather__more, .exchange__aside, .chronicle__hint { display: none; }
  .forecast .body { display: none; }
  .voice footer { display: inline; margin-left: 6px; }
  .voice p { display: inline; }
  .frame__col .eyebrow { margin-bottom: 8px; }
  .keys__k, .gallery__note, .estory__open { display: none; }
  .app__main { max-height: calc(100svh - 370px); }
  .app__tabs { padding: 4px 6px; }
  .app__tabs [role='tab'] { min-height: 28px; padding: 0 8px; font-size: var(--fs-micro); }
  .walls { margin: 4px 0 8px; }
  .walls li { padding: 6px 0; }
  .estates { margin-bottom: 8px; }
  .estates [role='tab'] { padding-block: 5px; }
  .chronicle__text { line-height: 1.52; }
  .switches--keys [role='switch'] { min-height: 42px; }
}
@media (min-width: 881px) and (max-height: 760px) {
  :root { --frame-pad: 18px; }
  .contrasts li { font-size: var(--fs-body); padding-block: 7px; }
  .request__title { font-size: var(--fs-body); margin-bottom: 6px; }
  .request__reason { font-size: var(--fs-label); }
  .chronicle__text { line-height: 1.46; }
  .chronicle__title { margin-bottom: 4px; }
  #mornings .body { display: none; }
  .switches--keys [role='switch'] { min-height: 40px; }
  .steward__why { margin-top: 10px; }
  .frame__col .h2 { margin-bottom: 0.42em; }
  .walls p, .chain p { font-size: var(--fs-micro); }
  .earned p { line-height: 1.5; }
}
@media (min-width: 881px) and (max-height: 700px) {
  .frame__col .eyebrow { margin-bottom: 8px; }
  .frame__col .h2 { margin-bottom: 0.4em; }
  .frame__col .lede { margin-bottom: 0.7em; }
  .exchange__aside, .cast__note { display: none; }
  .voice { padding-block: 5px; }
  .charter__citizens { gap: 1px; }
  .tomb__rows { gap: 4px; }
  .forecast .body { display: none; }
  .switches--keys [role='switch'] { min-height: 40px; }
  .walls li { padding: 7px 0; }
  .chain li { padding: 4px 0; }
  .app__main { max-height: calc(100svh - 268px); }
}
@media (min-width: 881px) and (max-height: 620px) {
  .switch__label small, .estory__open, .artifact__cap { display: none; }
  .turn-about__why { font-size: var(--fs-label); }
}
/* tall, narrow desktop windows (and portrait tablets): the world above, the words below */
@media (min-width: 881px) and (max-aspect-ratio: 1/1) {
  .frame { flex-direction: column; justify-content: flex-end; }
  .frame__col, .frame--right .frame__col, .frame--wide .frame__col, .frame--hero .frame__col { width: auto; margin: 0; min-height: 0; padding: 0 var(--edge) 6vh; justify-content: flex-end; }
  .stage__shade--l, .stage__shade--r { display: none; }
  body[data-side] .stage__shade--b { opacity: 1; }
  .stage__shade--b { background: linear-gradient(0deg, rgba(4, 7, 11, 0.82) 0, rgba(4, 7, 11, 0.6) 34%, rgba(4, 7, 11, 0) 56%); }
  .hero__facts { position: static; margin: 18px var(--edge) 6vh; }
}

/* ================================================================ the sheets: the steward's desk and your charter
 * Where you go to change things in depth. A sheet slides in beside the Estate (site.css) so you can watch
 * what your changes do; the scene recomposes into the part of the window the sheet leaves free. */
.desk-sheet { padding: 22px 24px 26px; }
.desk-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.desk-sheet__title { margin: 0; font-size: 1.375rem; font-weight: 500; letter-spacing: -0.025em; }
.desk-sheet__intro { margin: 0 0 6px; color: var(--muted); font-size: var(--fs-small); }
.desk-sheet__group { padding: 14px 0 12px; border-top: 1px solid var(--line); }
.desk-sheet__group:first-of-type { margin-top: 12px; }
.desk-sheet__k { margin: 0 0 4px; font-size: var(--fs-label); font-weight: 500; color: var(--faint); }
.desk-sheet__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.desk-sheet__big { margin: 0; font-size: 1.5rem; font-weight: 500; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.desk-sheet__label { display: flex; justify-content: space-between; margin: 12px 0 4px; font-size: var(--fs-small); color: var(--paper); }
.desk-sheet__label span { font-weight: 600; font-variant-numeric: tabular-nums; }
.desk-sheet .range { max-width: none; }
.desk-sheet .switches--keys { grid-template-columns: 1fr; }
.desk-sheet .desk__out { padding: 12px 0 0; border-top: 1px solid var(--line-strong); }
.desk-sheet .footnote { margin-top: 14px; font-size: var(--fs-label); }
.workspace--charter .workspace__panel { width: min(36rem, 100%); }
.charter-sheet { padding: 22px 24px 28px; }
.draft { display: grid; gap: 18px; }
.draft__intro { margin: 0; color: var(--muted); font-size: var(--fs-small); }
.draft__intro .text-link { margin-left: 8px; }
.draft__clear { background: transparent; border: 0; cursor: pointer; color: var(--muted); font-size: var(--fs-label); }
.draft__cols, .draft__col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.draft__grid, .draft__list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.draft__set { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.draft__set legend { font-size: var(--fs-small); font-weight: 500; padding: 0; margin-bottom: 6px; display: flex; gap: 10px; align-items: baseline; width: 100%; }
.draft__set .hint, .field__hint { font-size: var(--fs-micro); color: var(--faint); font-weight: 400; margin: 0; }
.draft__list .field { position: relative; }
.draft__list .count { position: absolute; right: 12px; top: 14px; pointer-events: none; }
.draft__list .input { padding-right: 84px; }
.draft__funds { font-weight: 600; font-variant-numeric: tabular-nums; }
.draft .input { min-height: 42px; font-size: var(--fs-small); }
.draft textarea.input { height: auto; min-height: 60px; resize: vertical; }
.draft__col--start { display: grid; grid-template-columns: 1fr; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.draft__grid--start { display: grid; }
.ctabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.ctabs [role='tab'] {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 11px; border: 0; background: transparent; cursor: pointer;
  color: var(--muted); font-size: var(--fs-small); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.ctabs [role='tab']:hover { color: var(--paper); }
.ctabs [role='tab'][aria-selected='true'] { color: var(--paper); border-bottom-color: var(--brass-hi); font-weight: 500; }
.ctabs [role='tab'].has-error { color: var(--ember); }
.cpane { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 8px; }
.cpane[hidden] { display: none; }
.cpane .field--full { grid-column: 1 / -1; }
.ctabs__actions { display: flex; gap: 20px; }
.ctabs__actions .text-link { background-color: transparent; border: 0; cursor: pointer; color: var(--muted); font-size: var(--fs-label); }
.ctabs__actions .text-link:hover { color: var(--paper); }
.ctabs__actions .text-link[disabled] { opacity: 0.4; cursor: not-allowed; }
.switches--compact li + li { border-top: 1px solid var(--line); }
.switches--compact [role='switch'] { min-height: 42px; white-space: normal; }
.draft__seal { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 2px; }
.draft__seal .btn { min-width: 12rem; }
@media (max-width: 560px) { .cpane { grid-template-columns: 1fr; } .stool__id { flex: 1 1 0; } .stool__head { flex-wrap: nowrap; } }

/* ================================================================ Soundings: one workbench, one screen
 * A single product surface sized to the window. What you're looking at (its history and the cancer),
 * what you can do (choose, compare, add a finding) and what changed (the leads and their evidence) stay
 * in view together. Two panes side by side on wide windows; one at a time, behind tabs, on phones.
 * ============================================================================================== */
.ptool { position: relative; display: flex; flex-direction: column; padding: clamp(18px, 3.2vh, 32px) clamp(16px, 2.8vw, 40px) clamp(18px, 3vh, 30px); }
.ptool:focus { outline: none; }
.workspace .scroll-region { overflow: visible; }
.workspace .sleads__wrap, .workspace .pout__scroll { flex: none; }
.stool__head { flex: none; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 28px; }
.stool__id { flex: 1 1 22rem; min-width: 0; }
.stool__title { font-weight: 600; font-size: clamp(1.6rem, 1.1rem + 1.4vh, 2.2rem); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 4px; }
.stool__sub { margin: 0; color: var(--muted); font-size: 1.05rem; }
.stool__note { flex: none; margin: 8px 0 0; max-width: 22rem; font-size: var(--fs-label); font-weight: 500; color: var(--faint); }
/* its history: a segmented control of four named stages */
.pver { flex: none; border: 0; margin: 18px 0 0; padding: 0; min-width: 0; }
.pver__legend { padding: 0; margin-bottom: 8px; font-size: var(--fs-label); color: var(--faint); font-weight: 500; }
.pver__opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding: 3px; border-radius: var(--radius); background: rgba(236, 230, 217, 0.06); max-width: 46rem; }
.pver__opt {
  position: relative; display: grid; justify-items: center; gap: 0; padding: 9px 8px; border-radius: 4px; cursor: pointer; text-align: center;
  transition: background-color var(--dur-2), color var(--dur-2);
}
.pver__opt:hover { background: rgba(236, 230, 217, 0.06); }
.pver__opt input { position: absolute; opacity: 0; pointer-events: none; }
.pver__s { font-size: 1rem; font-weight: 500; color: var(--muted); line-height: 1.25; }
.pver__d { font-size: var(--fs-micro); color: var(--faint); }
.pver__opt:has(input:checked) { background: var(--paper); }
.pver__opt:has(input:checked) .pver__s { color: var(--ink); font-weight: 600; }
.pver__opt:has(input:checked) .pver__d { color: #4c4a45; }
.pver__opt:has(input:focus-visible) { outline: 2px solid var(--brass-hi); outline-offset: 2px; }
.pver__change { flex: none; margin: 14px 0 20px; color: var(--muted); font-size: 1.02rem; line-height: 1.5; max-width: 52rem; min-height: 3em; }
.pver__change b { color: var(--paper); font-weight: 600; }

/* views: tabs appear only where the two panes can't sit side by side */
.ptool__tabs { flex: none; display: none; gap: 4px; margin: 0 0 12px; border-bottom: 1px solid var(--line); }
.ptool__tabs [role='tab'] {
  display: inline-flex; align-items: baseline; gap: 8px; min-height: 42px; padding: 0 12px; border: 0; background: transparent; cursor: pointer;
  color: var(--muted); font-size: 0.95rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.ptool__tabs [role='tab'][aria-selected='true'] { color: var(--paper); border-bottom-color: var(--brass-hi); font-weight: 500; }
.ptool__tab-k { font-size: var(--fs-label); color: var(--faint); font-weight: 400; }

.ptool__panes { flex: 1 1 auto; min-height: 0; display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); padding-top: 16px; border-top: 1px solid var(--line); }
.ppane { min-height: 0; min-width: 0; display: flex; flex-direction: column; }
.pin__samples { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-bottom: 12px; }
.pin__label { font-size: var(--fs-label); color: var(--faint); font-weight: 500; margin-right: 6px; }
.chip {
  min-height: 36px; padding: 0 12px; border-radius: var(--radius); border: 0; background: transparent; color: var(--muted);
  font-size: 0.97rem; cursor: pointer; transition: background-color var(--dur-1), color var(--dur-1);
}
.chip:hover { color: var(--paper); background: rgba(236, 230, 217, 0.06); }
.chip[aria-pressed='true'] { background: rgba(236, 230, 217, 0.12); color: var(--paper); font-weight: 500; }
.pin__foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.pin__status { margin: 0; color: var(--faint); font-size: var(--fs-small); flex: 1 1 100%; }
.pout__scroll { flex: 1 1 auto; min-height: 0; padding: 0 8px 4px 0; margin-right: -8px; }
.sleads__wrap { flex: 1 1 auto; min-height: 0; padding: 0 8px 4px 0; margin-right: -8px; }
.sleads { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sleads__k { margin: 16px 0 4px; color: var(--faint); font-size: var(--fs-label); font-weight: 500; }
.sleads--un .slead__name { color: var(--muted); }
.slead {
  display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: 8px; align-items: start; width: 100%; padding: 10px 10px 11px 8px; text-align: left; cursor: pointer;
  border: 0; border-radius: var(--radius); background: transparent; color: var(--paper); transition: background-color var(--dur-1);
}
.slead:hover { background: rgba(236, 230, 217, 0.04); }
.slead.is-on { background: rgba(236, 230, 217, 0.08); }
.slead__n { color: var(--faint); font-size: var(--fs-small); font-weight: 500; padding-top: 1px; font-variant-numeric: tabular-nums; }
.slead.is-on .slead__n { color: var(--brass-hi); }
.slead__main { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 7px; align-items: baseline; min-width: 0; }
.slead__name { font-size: 1.1rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.slead__use { font-size: var(--fs-small); color: var(--faint); font-weight: 400; letter-spacing: 0; }
.slead__val { font-size: var(--fs-small); color: var(--muted); white-space: nowrap; }
.slead__val--promising { color: var(--brass-hi); font-weight: 500; }
.slead__val--closer, .slead__val--early { color: var(--paper); }
.slead__val--mixed, .slead__val--thin, .slead__val--none, .slead__val--against { color: var(--faint); }
.slead .sbar { grid-column: 1 / -1; }
/* the bar: how much weight each kind of evidence carries — one hue, stronger evidence brighter, patterns for the weakest */
.sbar { display: flex; height: 4px; border-radius: 2px; overflow: hidden; min-width: 6px; gap: 1px; transition: width 600ms var(--ease); }
.reduce-motion .sbar { transition: none; }
.sbar__seg { display: block; min-width: 3px; height: 100%; }
.sbar__seg--count { background: rgba(236, 228, 212, 0.5); }
.sbar__seg--trial { background: var(--brass-hi); }
.sbar__seg--records { background: rgba(227, 199, 126, 0.62); }
.sbar__seg--animal { background: rgba(227, 199, 126, 0.34); }
.sbar__seg--cell { background: repeating-linear-gradient(90deg, rgba(236, 228, 212, 0.4) 0 2px, transparent 2px 4px); }
.sbar__seg--neg { background: repeating-linear-gradient(90deg, rgba(226, 115, 92, 0.75) 0 2px, transparent 2px 4px); }
.slegend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 12px; font-size: var(--fs-label); color: var(--faint); }
.slegend span { display: inline-flex; align-items: center; gap: 6px; }
.slegend i { width: 14px; height: 4px; border-radius: 2px; }
.srefuse { margin: 0 0 12px; padding: 2px 0 14px; border-bottom: 1px solid var(--line); }
.srefuse p { margin: 0 0 6px; font-size: 1rem; color: var(--muted); }
.srefuse p:last-child { margin: 0; }
.srefuse strong { color: var(--paper); font-weight: 500; }
.srefuse__t { font-size: 1.3rem !important; line-height: 1.3; color: var(--paper) !important; font-weight: 600; letter-spacing: -0.015em; }
.stable { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.stable th, .stable td { text-align: left; vertical-align: top; padding: 8px 8px; border-bottom: 1px solid var(--line); color: var(--muted); }
.stable thead th { font-size: var(--fs-label); color: var(--faint); font-weight: 500; }
.stable tbody th { font-weight: 400; }
.stable tr.is-on td, .stable tr.is-on th { background: rgba(236, 230, 217, 0.06); }
.stable__pick { border: 0; background: none; padding: 0; color: var(--paper); font-size: 0.97rem; cursor: pointer; text-align: left; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(236, 230, 217, 0.3); text-underline-offset: 0.2em; }
.sadd { flex: 1 1 auto; }
.sadd[open] { flex-basis: 100%; }
.sadd summary { cursor: pointer; font-size: 0.97rem; color: var(--paper); padding: 6px 0; list-style-position: inside; }
.sadd summary:hover { color: #fff; }
.sadd__form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 8px 0 4px; }
.sadd__f { display: grid; gap: 3px; font-size: var(--fs-label); color: var(--faint); }
.sadd__f .input { min-height: 36px; padding: 5px 8px; font-size: 0.88rem; }
.sadd__go { grid-column: 1 / -1; display: flex; gap: 6px; }
@media (max-width: 640px) { .sadd__form { grid-template-columns: 1fr; } }
.pactions { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.pactions .btn--quiet, .sadd__go .btn--quiet { min-height: 32px; padding: 0 12px; font-size: 0.86rem; }
.ptoggle[aria-pressed='true'] { background: rgba(236, 230, 217, 0.16); color: var(--paper); }
.pflash { position: absolute; right: 28px; top: 22px; padding: 6px 12px; border-radius: var(--radius); background: var(--paper); color: var(--ink); font-size: var(--fs-label); font-weight: 600; opacity: 0; pointer-events: none; }
.pflash.is-on { animation: pflash 1.8s var(--ease); }
@keyframes pflash { 0% { opacity: 0; transform: translateY(6px); } 12%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* the evidence for one lead */
.sdetail { animation: sheet-in-soft 420ms var(--ease); }
.reduce-motion .sdetail { animation: none; }
@keyframes sheet-in-soft { from { opacity: 0; transform: translateY(6px); } }
.sdetail__k { margin: 0 0 4px; color: var(--faint); font-size: var(--fs-label); font-weight: 500; }
.sdetail__t { margin: 0 0 12px; font-weight: 600; font-size: clamp(1.7rem, 1.3rem + 1vw, 2.3rem); line-height: 1.1; letter-spacing: -0.03em; }
.sdetail__use { display: block; margin-top: 4px; font-weight: 400; font-size: 0.93rem; color: var(--muted); letter-spacing: 0; }
.sdetail__tier { margin: 0 0 8px; font-size: 1.02rem; color: var(--muted); }
.sdetail__tier b { color: var(--paper); font-weight: 600; }
.sdetail__tier--promising b { color: var(--brass-hi); }
.sdetail__why { margin: 0 0 8px; font-size: 1.05rem; line-height: 1.5; color: var(--paper); }
.sdetail__next { margin: 0 0 16px; font-size: 1rem; color: var(--muted); }
.sstudies { list-style: none; margin: 0; padding: 0; }
.sstudy { display: grid; grid-template-columns: 8.4rem minmax(0, 1fr); gap: 2px 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.4; }
.sstudy__lv { grid-row: span 3; color: var(--faint); font-size: var(--fs-small); padding-top: 1px; }
.sstudy__t { color: var(--paper); }
.sstudy__m { font-size: var(--fs-small); color: var(--faint); }
.sstudy__m--worse { color: var(--muted); }
.sstudy__flag { font-size: var(--fs-small); color: #d9917f; }
.sstudy__flag--mine { color: var(--brass-hi); }
.sstudy.is-aside .sstudy__t { text-decoration: line-through; text-decoration-color: rgba(236, 230, 217, 0.45); color: var(--muted); }
.sdetail__foot { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--faint); }
.paside { margin-top: 18px; }
.paside__t { margin: 0 0 6px; font-size: 1rem; color: var(--muted); }
.paside__t strong { color: var(--paper); font-weight: 600; }
.paside__cats { list-style: none; margin: 0 0 8px; padding: 0; }
.paside__cats li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 0.97rem; color: var(--muted); }
.paside__cats b { color: var(--faint); font-weight: 400; font-variant-numeric: tabular-nums; }
.paside__note { margin: 8px 0 0; font-size: var(--fs-small); color: var(--faint); line-height: 1.5; }

/* one pane at a time on phones and narrow tablets */
@media (max-width: 1020px) {
  .ptool__tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .ptool__panes { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); padding-top: 0; border-top: 0; }
  .ppane { display: none; grid-row: 1; grid-column: 1; }
  .ptool[data-tab='leads'] .ppane--page, .ptool[data-tab='evidence'] .ppane--card { display: flex; }
}
@media (max-width: 880px) {
  .stool__note { display: none; }
  .pver { margin-top: 12px; }
  .pver__s { font-size: 0.82rem; }
  .pver__change { font-size: 0.88rem; margin: 10px 0 12px; }
  .pflash { right: 14px; top: 14px; }
}
/* Phones (and short landscape phones): the workbench grows with its content instead of scrolling inside
   itself, so a thumb only ever scrolls the page; the view tabs stay pinned while you read. */
@media (max-width: 560px), (max-width: 1020px) and (max-height: 600px) {
  .ptool__panes { flex: none; grid-template-rows: auto; }
  .ptool .scroll-region { overflow: visible; max-height: none; }
  .ptool .sleads__wrap, .ptool .pout__scroll { flex: none; }
  .ptool__tabs { position: sticky; top: 0; z-index: 3; background: var(--ws-bg); margin-left: -16px; margin-right: -16px; padding: 0 16px; }
  .pver__legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pver__d { display: none; }
  .stool__title { font-size: 1.6rem; }
}

/* ================================================================ phones and narrow tablets
 * Purpose-made, not the desktop frame shrunk: each frame opens with a window onto the world (the scene
 * composes its subject into the top of the screen), and its words follow below on the night itself, with
 * no slab behind them. As you read on, the words rise over the world; the next frame opens a new window. */
@media (max-width: 880px) {
  :root { --edge: 20px; --edge-in: 20px; }
  .frame { display: block; min-height: 0; }
  .frame__col, .frame--right .frame__col, .frame--wide .frame__col, .frame--hero .frame__col {
    width: auto; margin: 0; display: block; padding: 49svh var(--edge) 12svh;
  }
  /* the words read on the night: a soft fall into darkness begins just above them */
  .frame__col::before, .frame--hero::before {
    content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: calc(49svh - 80px); bottom: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(7, 12, 18, 0) 0, rgba(7, 12, 18, 0.86) 80px, rgba(7, 12, 18, 0.9) calc(100% - 60px), rgba(7, 12, 18, 0) 100%);
  }
  .frame__col > * { max-width: 36rem; }
  .stage__shade--l, .stage__shade--r, .stage__shade--b { display: none; }
  /* the pause belongs to the world: the lower corner of its window, just above where the words begin */
  .scene-pause { right: 10px; bottom: auto; top: calc(47svh - 46px); width: 40px; height: 40px; }

  /* One full-width fade carries the opening copy and facts together. */
  .frame--hero::before { z-index: 0; }
  .frame--hero .frame__col::before { content: none; }
  /* the opening: Leo in the upper half, the promise beneath */
  .frame--hero .frame__col { padding-top: 54svh; padding-bottom: 6svh; }
  .hero__title { font-size: clamp(2.2rem, min(9.6vw, 6.2vh), 3.4rem); }
  .hero__lede { font-size: var(--fs-body); }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__facts { position: relative; right: auto; bottom: auto; margin: 0 var(--edge); padding: 14px 0 max(60px, 12svh); display: grid; grid-template-columns: 1fr 1fr; gap: 10px 0; }
  .hero__facts > div { padding: 0; box-shadow: none !important; flex-direction: column; gap: 0; }

  /* 120 days: the window above, the chronology and the day's story below it */
  .time__track { height: calc(7 * 72svh); }
  .time__sticky { display: flex; flex-direction: column; justify-content: flex-end; }
  .time__sticky .frame__col { padding: 0 var(--edge) 18px; }
  .time__sticky .frame__col::before { top: -110px; }
  .timecard__clock [data-clock-day] { font-size: 2.5rem; }
  .stops { min-height: 9.5rem; }
  .stop p { font-size: var(--fs-small); margin-bottom: 4px; }
  .bonds { display: none; }
  /* the stops share the width evenly, so each is a full-size target; the playhead runs between them */
  .dial { position: relative; left: auto; right: auto; bottom: auto; margin: 0 var(--edge) 4px; order: -1; height: 46px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .dial__rail { left: calc(100% / 14); right: calc(100% / 14); top: 26px; }
  .dial__name { display: none; }
  .dial__stop { position: relative; left: auto; translate: none; width: auto; height: 46px; }

  .tomb__rows div, .charter__law div { grid-template-columns: 1fr; gap: 0; }
  .perspective { grid-template-columns: 1fr; }
  .app__main { max-height: none; }
  .estates { grid-template-columns: 1fr 1fr; }
  .chain li { grid-template-columns: 1fr; gap: 0; }
  .walls { grid-template-columns: 1fr; }
}
/* reduced transparency: the night behind the words is all but solid, and still begins with a soft fall, not an edge */
@media (max-width: 880px) and (prefers-reduced-transparency: reduce) {
  .frame__col::before, .frame--hero::before { background: linear-gradient(180deg, rgba(7, 12, 18, 0) 0, rgba(7, 12, 18, 0.96) 80px, rgba(7, 12, 18, 0.96) calc(100% - 60px), rgba(7, 12, 18, 0) 100%); }
}

/* ================================================================ housekeeping */
html.has-settle { scroll-padding-top: 0; }
/* a tiny, all-but-invisible pane painted at load so the glass shaders exist before the first glide (story.js) */
.glass-primer { position: fixed; left: 8px; bottom: 8px; width: 220px; height: 150px; padding: 20px; opacity: 0.01; pointer-events: none; z-index: 1; font-size: 1.4rem; font-weight: 600; }
.glass-primer p { margin: 0; width: auto; padding: 0; display: block; }
.glass-primer .seal-moment__stamp { display: block; width: 96px; height: 96px; margin: 0; }

/* ================================================================ density: what waits until there is room
 * Short windows keep each frame to its essentials; the rest is a click (or a little more height) away. */
.chronicle__hint { margin: 0 0 6px; font-size: var(--fs-micro); color: var(--faint); }
.estory__more { margin: 0 0 6px; }
.estory__more > summary { font-size: var(--fs-label); padding: 2px 0 4px; }
.estory__more[open] .artifact { margin-top: 4px; }
@media (min-width: 881px) {
  /* the chronicle's sources: one at a time, the one you point at (the world shows where it happened) */
  .chronicle__notes { display: block; min-height: 2.1em; padding-top: 6px; }
  .chronicle__notes li { display: none; }
  .chronicle__notes li.is-active, .chronicle__notes li:focus-within { display: grid; }
  .chronicle__notes:not(:has(li.is-active)) li:first-child { display: grid; opacity: 0.7; }
}
@media (min-width: 881px) and (max-height: 700px) {
  .lede__more, .weather__more { display: none; }
  .request { margin-bottom: 12px; padding-block: 12px 14px; }
  .request__reason { font-size: var(--fs-label); }
  .chronicle__text { line-height: 1.5; margin-bottom: 8px; }
  .chronicle__title { margin-bottom: 4px; }
  .chronicle { padding-top: 10px; }
  .app__main { max-height: calc(100svh - 300px); }
  .keys__k { display: none; }
  .steward__why { margin-top: 10px; }
  .earned p { margin-bottom: 6px; }
}
@media (min-width: 881px) and (max-height: 620px) {
  .frame__col .body, .frame__col .lede { font-size: var(--fs-small); }
  .chronicle__text { font-size: var(--fs-small); }
  .chronicle__hint { display: none; }
  #mornings .body { display: none; }
}

/* ================================================================ wide columns: short items side by side */
@container col (min-width: 600px) {
  .chain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
  .chain li { display: block; padding: 6px 0 0; border-top: 1px solid var(--line); }
  .chain li + li { border-top: 1px solid var(--line); }
  .chain__k { display: block; margin-bottom: 2px; }
  .estates { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
