/* Hallmark · shape: Workbench (draw b60436) · genre: playful · theme: Sticker (deal 3/3, seed free-browser-life-sim-game-a0ba·aecf83a7·2026-11-10·r0) · redesign: full · job: try
 * hero: Corridor · nav: masthead · footer: mast · imagery: screenshots 7 (playwright, the restyled game) · signature: the capital's game screen, die-cut and tilted, rising into the first screen · sticker: sheet
 * axes: light/display-heavy/chromatic-magenta · posture: full-palette · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: S, the copy could drift generic; every line names the game's own nouns (RC, mandi, kirana, councillor, MSP) */
/* Hallmark · dropped the skyline, the running rat and eight drawn building icons · drawn illustrations (80) replaced by captures of the real game */
/* Hallmark · reworded the old section heads ("Villages, towns and cities.", "Your life, your way up.", "From the street to the gated villa.") to "Twelve places, one shared country.", "Pick a life, in any order.", "The climb." · 54 named their eyebrows and 58 the copy · eight place cards (Job Market, Shops, Bank, Housing & land, Farms, Government, Courts, Academy, Elections) merged into five switcher panels with the same facts, trimmed to the screen budget */
/* Hallmark · dropped city.jpg for shots/game.jpg (the restyled game) and the s-* SVG symbol ids, which only fed the drawn icons */
/* Hallmark · dropped the six-item "coming next" chip list as chips · the same six items are kept as one sentence in the live section */
/* Hallmark · waive 44c · Corridor hero box ends at y 760 and the die-cut game screen rises into the first screen at y 745 · the capital's screen is the signature and holds the foot of the fold */
/* Hallmark · waive 59 · one seam at 103px, every other at 134px or more · it is the hero foot, where the die-cut game screen deliberately rises into the first screen */
/* Hallmark · dismissed render · the 1440 and 375 hero shots show Bowlby One SC and Sofia Sans loaded from /fonts; the warning reads the preload, not the paint */
/* Hallmark · dismissed F4 · the second "filled" recipe is the chosen tab in the switcher, a selected chip, not a button */
/* fonts.css, tokens.css and base.css are linked from the page (in parallel, not one after another) */

/* ---------- chrome: a masthead ---------- */
.mast-nav { padding-block: var(--space-lg) var(--space-md); border-bottom: var(--rule-bar) dashed var(--color-rule); }
.mast-nav .container { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); }
.wordmark { font-family: var(--font-display); font-size: clamp(2rem, 3vw + 1rem, 3rem); line-height: 1; letter-spacing: var(--tracking-display); text-decoration: none; color: var(--color-ink); }
.mast-nav nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-xs) var(--space-lg); font-size: var(--text-sm); font-weight: 700; }
.mast-nav nav a:not(.btn) { text-decoration: none; padding-block: var(--space-xs); }
.mast-nav nav a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--space-lg); border-radius: var(--radius-pill); font-weight: 700; font-size: var(--text-md); color: var(--color-ink); text-decoration: none; white-space: nowrap; box-shadow: inset 0 0 0 2px var(--color-ink); cursor: pointer;
  transition: translate var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.btn:hover { background: var(--color-paper-2); }
.btn:active { translate: 0 1px; }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; translate: none; }
.btn--small { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); box-shadow: 0 0 0 5px var(--color-white), var(--shadow-card); }
.btn--primary:hover { background: var(--color-accent-deep); translate: 0 -2px; }
.btn--primary:active { translate: 4px 5px; box-shadow: 0 0 0 5px var(--color-white), var(--shadow-press); }
.link { font-weight: 700; color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.link:hover { text-decoration-color: var(--color-ink); }
.link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: 4px; }

/* ---------- the die-cut ---------- */
.diecut { margin: 0; border: 6px solid var(--color-white); border-radius: 22px; box-shadow: var(--shadow-card); background: var(--color-slot); overflow: hidden; }
.diecut img { width: 100%; height: auto; }
.tilt-l { rotate: -1.5deg; }
.tilt-r { rotate: 1.5deg; }

/* =====================================================================================
   The page is a run of full screens (desktop): each section is one screen tall and its content is
   laid out to fit it. Scrolling is never held or pulled back: the page moves the moment you
   scroll, at your speed, and once it comes to rest close to a screen's top, landing.js glides it
   the last bit. (CSS scroll snapping held every wheel and trackpad gesture until it ended and
   pulled short scrolls back, so the page felt laggy.)
   ===================================================================================== */
html { scroll-behavior: smooth; }
.snap { position: relative; padding-block: clamp(56px, 8svh, 96px); }
@media (min-width: 64rem) and (min-height: 40rem) {
  .snap { height: 100svh; padding-block: clamp(40px, 7svh, 80px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
  .snap > .container { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.4rem); line-height: 1; }

/* ---------- 1. hero: the headline, big and airy ---------- */
.hero { padding-block: 0 clamp(24px, 5svh, 56px); }
.hero .mast-nav { border-bottom: var(--rule-bar) dashed var(--color-rule); }
.hero-in { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: clamp(14px, 2.6svh, 28px); padding-top: clamp(20px, 4svh, 48px); }
.hero h1 { max-width: 13ch; font-size: clamp(3rem, 2rem + 5.6vw, 8.4rem); line-height: 0.95; word-spacing: 0.22em; letter-spacing: 0.01em; }
.hero-kicker { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.1rem, 0.9rem + 1vw, 1.8rem); letter-spacing: 0.02em; word-spacing: 0.12em; color: var(--color-accent); max-width: 30ch; }
.hero .lead { max-width: 40ch; color: var(--color-ink-2); }
.status { display: inline-flex; padding: var(--space-2xs) var(--space-md); border-radius: var(--radius-pill); background: var(--color-accent-2); font-size: var(--text-sm); font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-xl); }
@media (min-width: 64rem) and (min-height: 40rem) { .hero { justify-content: flex-start; } }

/* ---------- 2. the country: a place's own page beside its live map ---------- */
.country { background: var(--color-paper-2); }
.country-in { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: center; height: 100%; }
.country-side { display: flex; flex-direction: column; gap: var(--space-md); }
.country-side h2 { font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.8rem); }
.country-lead { margin: 0; color: var(--color-ink-2); font-size: var(--text-md); }
.place-panel { background: var(--color-paper-3); border: 6px solid var(--color-white); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: var(--space-lg); display: flex; flex-direction: column; gap: 6px; }
.place-panel h3 { margin: 0; font-size: clamp(1.3rem, 0.9rem + 1vw, 1.9rem); overflow-wrap: anywhere; }
.pp-kind { margin: 0; font-size: var(--text-xs, 0.8rem); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent); }
.pp-blurb { margin: 0 0 6px; color: var(--color-ink-2); }
.pp-facts { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; font-size: var(--text-sm); }
.pp-facts dt { font-weight: 800; color: var(--color-muted); }
.pp-facts dd { margin: 0; }
.pp-facts .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.pp-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pp-pager { display: flex; align-items: center; gap: 6px; font-size: var(--text-xs, 0.8rem); font-weight: 800; color: var(--color-muted); }
.pp-pager[hidden] { display: none; }
.pp-pager button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--color-ink, #1b1a17); background: var(--color-white); color: inherit; font: inherit; font-size: 1rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 2px; color: var(--color-ink, #1b1a17); }
.pp-pager button:hover { background: var(--color-accent); color: var(--color-white); }
.pp-pager button:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
/* on a one-screen section the panel never runs past the bottom: it takes the room that's left, keeps a
   gap under it, and a long page scrolls inside the card */
@media (min-width: 64rem) and (min-height: 40rem) {
  .country-in { padding-bottom: clamp(12px, 2.5svh, 28px); }
  .country-side { max-height: 100%; min-height: 0; }
  .place-panel { min-height: 0; flex: 0 1 auto; }
  .pp-facts { min-height: 0; overflow-y: auto; scrollbar-width: thin; align-content: start; gap: 4px 12px; line-height: 1.35; }
  .country-side { gap: 12px; }
  .country-side h2 { font-size: clamp(1.6rem, 1rem + 1.4vw, 2.4rem); }
  .place-panel { padding: 16px 20px; }
  .pp-blurb { margin: 0; }
}
.map-frame { margin: 0; height: min(76svh, 720px); padding: 0; rotate: -0.8deg; }

/* ---------- the country, live (the game's map, the places, a ticker) ---------- */
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; height: 100%; background: var(--color-ink); }
.live-map { position: relative; height: 100%; overflow: hidden; background: var(--color-slot); }
#live-tag-text { display: flex; flex-direction: column; gap: 2px; }
.live-poster, .live-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.live-map > canvas, .live-map .city-wrap { position: absolute; inset: 0; width: 100%; height: 100%; }
.live-map:not(.on) > canvas { visibility: hidden; }
.live-map.on .live-poster { display: none; }
.live-map .city-wrap { overflow: hidden; cursor: grab; touch-action: pan-y; }
.live-map .city-wrap.dragging { cursor: grabbing; }
.live-map .city-ov { position: absolute; left: 0; top: 0; pointer-events: none; }
.live-map .parallax { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; display: block; }
.live-map .parallax.hidden { display: none; }
.live-tag { position: absolute; left: 12px; top: 12px; z-index: 3; max-width: calc(100% - 24px); display: flex; flex-direction: column; gap: 2px;
  padding: 8px 14px; border-radius: 14px; background: var(--color-ink); color: var(--color-paper-3); box-shadow: 0 0 0 3px var(--color-white); font-size: var(--text-sm); line-height: 1.3; }
.live-tag b { font-family: var(--font-display); font-weight: 400; font-size: var(--text-lg); letter-spacing: var(--tracking-display); }
.live-tag .city-clock { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--color-accent-2); }
.live-tag .city-clock svg { color: var(--color-accent-2); }
.live-ticker { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; overflow: hidden; background: var(--color-ink); color: var(--color-paper-3); border-top: 3px solid var(--color-accent); font-size: var(--text-sm); }
.live-track { display: flex; width: max-content; white-space: nowrap; padding: 9px 0; animation: tick var(--dur, 80s) linear infinite; }
.live-ticker:hover .live-track { animation-play-state: paused; }
.tk-copy { display: flex; }
.tk { display: inline-flex; align-items: center; gap: 8px; padding-right: 36px; }
.tk i { font-style: normal; font-weight: 800; font-size: 0.75em; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--color-accent); color: var(--color-accent-ink); }
.tk-jobs i { background: var(--color-accent-2); color: var(--color-ink); }
.tk-ad i { background: var(--color-paper-3); color: var(--color-ink); }
.tk-govt i, .tk-season i { background: transparent; color: var(--color-accent-2); box-shadow: inset 0 0 0 2px currentColor; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .live-track { animation: none; } .live-ticker { overflow-x: auto; } .tk-copy { display: none; } }
.live-side { display: flex; flex-direction: column; min-height: 0; height: 100%; color: var(--color-paper-3); font-size: var(--text-sm); }
.live-gov { padding: 14px 16px; border-bottom: 2px dashed var(--color-ink-2); line-height: 1.35; }
.live-gov .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; box-shadow: 0 0 0 2px var(--color-paper-3); }
.live-gov small { color: var(--color-paper-2); opacity: 0.8; }
.live-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; min-height: 0; }
.live-list button { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.live-list button span { opacity: 0.7; font-size: 0.9em; white-space: nowrap; }
.live-list button:hover { background: var(--color-ink-2); }
.live-list button[aria-pressed="true"] { background: var(--color-accent); color: var(--color-accent-ink); }
.live-list button[aria-pressed="true"] span { opacity: 0.9; }
.live-list button:focus-visible { outline: 2px solid var(--color-accent-2); outline-offset: -2px; }
.live-jobs { padding: 12px 16px 16px; border-top: 2px dashed var(--color-ink-2); }
.live-jobs h3 { margin: 0 0 8px; font-size: var(--text-sm); color: var(--color-accent-2); }
.live-jobs ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.live-jobs li { display: flex; justify-content: space-between; gap: 8px; }
.live-jobs li small { display: block; opacity: 0.7; }
.live-jobs li b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.live-jobs p { margin: 0; opacity: 0.7; }


/* ---------- 3. pick a life: a slideshow ---------- */
.lives-in { display: flex; flex-direction: column; gap: clamp(14px, 2.4svh, 28px); height: 100%; justify-content: center; }
.lives-head { display: flex; align-items: end; justify-content: space-between; gap: var(--space-lg); flex-wrap: wrap; }
.lives-head h2 { margin: 0; }
.slide-nav { display: flex; align-items: center; gap: 12px; }
.arrow { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--color-ink); color: var(--color-paper-3); font-size: 1.4rem; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.arrow:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .arrow:hover { background: var(--color-accent); } }
.arrow:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.slide-count { min-width: 4.5ch; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { min-height: 38px; padding: 0 var(--space-md); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font-weight: 700; font-size: var(--text-sm); box-shadow: inset 0 0 0 2px var(--color-ink); cursor: pointer; transition: background-color 200ms ease, color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .seg button:hover { background: var(--color-paper-2); } }
.seg button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.seg button[aria-selected="true"] { background: var(--color-ink); color: var(--color-paper-3); }
.slide-stage { position: relative; display: grid; }
.panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.panel + .panel { margin-top: var(--space-3xl); }
/* with script: every slide in the same cell, crossfading */
.js .slide-stage > .panel { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateX(var(--from, 24px)); transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-out), visibility 0s linear 520ms; }
.js .slide-stage > .panel.on { opacity: 1; visibility: visible; transform: none; transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-out), visibility 0s; }
.js .slide-stage > .panel[hidden] { display: grid !important; }
.capture { max-width: 380px; justify-self: center; }
.capture img { max-height: 54svh; width: auto; margin-inline: auto; display: block; }
.panel-text { display: flex; flex-direction: column; gap: var(--space-md); }
.panel-text h3 { font-size: var(--text-2xl); max-width: 18ch; }
.panel-text p { font-size: var(--text-lg); line-height: 1.5; color: var(--color-ink-2); max-width: 46ch; margin: 0; }
.panel-text .note { align-self: flex-start; padding: var(--space-2xs) var(--space-md); border-radius: var(--radius-pill); background: var(--color-accent-2); color: var(--color-ink); font-size: var(--text-sm); font-weight: 700; }
.no-js .seg, .no-js .slide-bar .arrow { display: none; }
@media (prefers-reduced-motion: reduce) { .js .slide-stage > .panel { transform: none !important; } }

/* ---------- 4. the game, by the numbers ---------- */
.numbers-in { display: flex; flex-direction: column; gap: clamp(20px, 3.4svh, 40px); }
.numbers-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: end; }
.numbers-head h2, .numbers-head .lead { margin: 0; }
.numbers-head .lead { color: var(--color-ink-2); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.fill { border: 6px solid var(--color-white); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: clamp(14px, 2.2svh, 24px) var(--space-lg); display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-sm); font-size: var(--text-md); font-weight: 600; min-height: clamp(130px, 22svh, 210px); }
.fill p { margin: 0; }
.tiles .fill:nth-child(odd) { rotate: -1deg; } .tiles .fill:nth-child(even) { rotate: 1deg; }
.fill--pink { background: var(--color-accent); color: var(--color-accent-ink); }
.fill--lime { background: var(--color-accent-2); color: var(--color-ink); }
.fill--ink { background: var(--color-ink); color: var(--color-paper-3); }
.fill--white { background: var(--color-paper-3); color: var(--color-ink); }
.figure-s { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 1.4rem + 1.8vw, 3.2rem); line-height: 1; letter-spacing: var(--tracking-display); font-variant-numeric: tabular-nums; }

/* ---------- 5. not another city-builder: ten cards on one screen ---------- */
.usps { background: var(--color-paper-2); }
.usps-in { display: flex; flex-direction: column; gap: clamp(18px, 3svh, 36px); }
.split-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: end; }
.split-head h2, .split-head .lead { margin: 0; }
.split-head .lead { color: var(--color-ink-2); }
.usp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); counter-reset: usp; }
.usp { counter-increment: usp; position: relative; background: var(--color-paper-3); border: 5px solid var(--color-white); border-radius: 18px; box-shadow: var(--shadow-card); padding: clamp(12px, 1.8svh, 18px) 14px; }
.usp::before { content: counter(usp, decimal-leading-zero); display: block; font-family: var(--font-display); font-size: 1.4rem; line-height: 1; color: var(--color-accent); margin-bottom: 6px; }
.usp:nth-child(3n + 2)::before { color: var(--color-ink); }
.usp h3 { font-size: 1.02rem; margin: 0 0 6px; line-height: 1.15; }
.usp p { margin: 0; color: var(--color-ink-2); font-size: clamp(0.78rem, 0.7rem + 0.25vw, 0.9rem); line-height: 1.42; }
.usp.tilt-l { rotate: -0.8deg; } .usp.tilt-r { rotate: 0.8deg; }

/* ---------- 6. the climb ---------- */
.climb-in { display: flex; flex-direction: column; gap: clamp(24px, 4svh, 48px); }
.steps { list-style: none; margin: 0; padding: var(--space-xl) 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); counter-reset: step; border-top: var(--rule-bar) dashed var(--color-rule); }
.card-step { counter-increment: step; background: var(--color-paper-3); border: 6px solid var(--color-white); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: var(--space-lg) var(--space-md); display: flex; flex-direction: column; gap: var(--space-xs); margin-top: calc(var(--space-xl) * -1); }
.card-step::before { content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--color-accent-2); font-family: var(--font-display); font-size: var(--text-lg); margin-bottom: var(--space-xs); }
.card-step:last-child::before { background: var(--color-accent); color: var(--color-accent-ink); }
.card-step h3 { font-size: var(--text-lg); margin: 0; }
.card-step p { color: var(--color-ink-2); margin: 0; font-size: var(--text-sm); line-height: 1.45; }
.card-step .unlock { margin-top: auto; padding-top: var(--space-xs); font-weight: 800; color: var(--color-ink); font-size: 0.8rem; }

/* ---------- 7. Rat Race Country ---------- */
.live { background: var(--color-ink); color: var(--color-paper-3); }
.live h2 { color: var(--color-paper-3); max-width: none; margin: 0; }
.live-in { display: flex; flex-direction: column; gap: clamp(18px, 3svh, 32px); }
.live-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: end; }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.figures > div { padding-inline: var(--space-lg); border-left: 1px solid var(--color-ink-2); }
.figures > div:first-child { padding-left: 0; border-left: 0; }
.figures dt { font-size: var(--text-sm); font-weight: 700; color: var(--color-rule); }
.figures dd { margin: 6px 0 0; font-family: var(--font-display); font-size: clamp(1.2rem, 0.9rem + 1vw, 1.9rem); line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--color-paper-3); overflow-wrap: anywhere; min-width: 0; }
.figures dd.pending { font-family: var(--font-body); font-weight: 700; color: var(--color-rule); }
.place-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.place-card { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); background: var(--color-ink-2); border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 4px var(--color-paper-3); }
.place-card figure { margin: 0; background: var(--color-slot); }
.place-card img { width: 100%; height: 100%; max-height: 26svh; object-fit: cover; display: block; }
.place-text { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.place-text h3 { margin: 0; font-size: var(--text-lg); color: var(--color-paper-3); }
.place-text p { margin: 0; font-size: 0.82rem; line-height: 1.4; color: var(--color-rule); }
.place-kind { font-size: 0.7rem !important; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent-2) !important; }
.place-pop { margin-top: auto !important; font-weight: 800; color: var(--color-paper-3) !important; }

/* ---------- 8. the close, with the foot of the page ---------- */
.close { justify-content: space-between !important; padding-bottom: 0 !important; }
.close-in { flex: 1; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.phone { max-width: 260px; justify-self: center; }
.phone img { max-height: 54svh; width: auto; }
.close-text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-xl); }
.close-text h2 { font-size: clamp(2.6rem, 1.6rem + 3.4vw, 5rem); max-width: 12ch; }
.apk-note { margin: 0; max-width: 40ch; font-size: 15px; opacity: 0.85; }
.apk-note a { font-weight: 700; text-decoration: underline; }
.foot { border-top: var(--rule-bar) dashed var(--color-rule); padding-block: clamp(16px, 3svh, 32px); margin-top: var(--space-lg); }
.foot-in { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-sm) var(--space-xl); }
.foot-mark { margin: 0; font-family: var(--font-display); font-size: clamp(1.8rem, 1rem + 3vw, 3.4rem); line-height: 0.95; letter-spacing: var(--tracking-display); }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-xl); font-weight: 700; }
.foot-links a, .foot-line a { text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }
.foot-links a:focus-visible, .foot-line a:focus-visible, .mast-nav nav a:focus-visible, .wordmark:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 4px; }
.foot-line { margin: 0; color: var(--color-muted); font-size: var(--text-sm); }

/* ---------- each section's content arrives once, in a short stagger ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
html.js [data-shown] [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js [data-reveal] { transform: none; transition: opacity 300ms ease; transition-delay: 0ms; } }

/* ---------- where you are: a dot for every section (wide screens) ---------- */
.dots { position: fixed; right: 18px; top: 50%; translate: 0 -50%; z-index: 20; display: none; flex-direction: column; gap: 10px; margin: 0; padding: 10px 6px; list-style: none; border-radius: 999px; background: color-mix(in oklch, var(--color-paper) 80%, transparent); backdrop-filter: blur(6px); }
@media (min-width: 1100px) { .dots { display: flex; } }
.dots a { position: relative; display: block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--color-ink); background: transparent; transition: background-color 200ms ease, transform 200ms var(--ease-out); }
.dots a[aria-current="true"] { background: var(--color-accent); border-color: var(--color-accent); transform: scale(1.25); }
.dots a span { position: absolute; right: 22px; top: 50%; translate: 0 -50%; white-space: nowrap; font-size: 0.8rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--color-ink); color: var(--color-paper-3); opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity 160ms ease, transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .dots a:hover span { opacity: 1; transform: none; } }
.dots a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.dots a:focus-visible span { opacity: 1; transform: none; }

/* ---------- smaller screens: everything stacks, nothing is cut ---------- */
@media (max-width: 64rem) {
  .country-in, .split-head, .numbers-head, .panel, .close-in, .live-head { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .map-frame { height: auto; rotate: 0deg; }
  .live-grid { grid-template-columns: minmax(0, 1fr); height: auto; }
  .live-map { height: auto; aspect-ratio: 4 / 5; }
  .live-side { height: auto; }
  .live-list { display: flex; gap: 6px; overflow-x: auto; max-height: none; padding: 8px; }
  .live-list li { flex: none; }
  .live-list button { flex-direction: column; gap: 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-xl); }
  .card-step { margin-top: 0; }
  .place-cards { grid-template-columns: minmax(0, 1fr); }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
  .figures > div { padding: 0; border-left: 0; }
  .capture img, .phone img { max-height: none; width: 100%; }
}
@media (max-width: 40rem) {
  .usp-grid, .steps, .tiles { grid-template-columns: minmax(0, 1fr); }
  .tilt-l, .tilt-r, .usp.tilt-l, .usp.tilt-r, .tiles .fill { rotate: 0deg; }
  .hero h1 { word-spacing: 0.12em; }
  .live-tag { font-size: 12px; padding: 6px 10px; }
}

/* (room for the section dots on the right, where they show) */
@media (min-width: 1100px) { .snap > .container { padding-right: max(var(--space-lg, 24px), 56px); } }
/* shorter laptop screens: the type follows the height too, so every section still fits */
@media (min-width: 64rem) and (min-height: 40rem) {
  .hero h1 { font-size: min(clamp(3rem, 2rem + 5.6vw, 8.4rem), 11.5svh); }
  .hero-in { gap: clamp(10px, 2.2svh, 28px); }
  .hero .mast-nav { padding-block: clamp(10px, 2svh, 24px) clamp(8px, 1.6svh, 16px); }
  .hero .wordmark { font-size: min(clamp(2rem, 3vw + 1rem, 3rem), 5.4svh); }
  .usp p { font-size: min(clamp(0.78rem, 0.7rem + 0.25vw, 0.9rem), 1.75svh); }
  .usp h3 { font-size: min(1.02rem, 2.1svh); }
  .usp::before { font-size: min(1.4rem, 2.8svh); }
}
/* the headline on two lines, the kicker on one, where there's the width for it */
@media (min-width: 64rem) { .hero h1 { max-width: 17ch; } .hero-kicker { max-width: 44ch; } }
@media (min-width: 64rem) and (max-height: 50rem) { .usps .split-head .lead { font-size: var(--text-md); } .usps-in { gap: 14px; } .usp { padding-block: 10px; } }

/* ---------- the snap, with a fade: each screen's content fades and settles in as it arrives, and
   fades as it leaves (scroll-driven, so it follows the scroll exactly; browsers without it just
   show the content) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 64rem) {
    .snap > .container, .snap > .foot { animation: snap-fade linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .hero > .container.hero-in { animation-range: exit -20% exit 100%; animation-name: snap-leave; }
  }
}
@keyframes snap-fade {
  0% { opacity: 0; transform: translateY(6svh) scale(0.985); }
  32% { opacity: 1; transform: none; }
  68% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-6svh) scale(0.985); }
}
@keyframes snap-leave { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-6svh) scale(0.985); } }

/* Pick a life: the arrows either side of the tabs; slides simply crossfade; the picture keeps clear of the tabs */
.slide-bar { display: flex; align-items: center; gap: 12px; }
.slide-bar .seg { flex: 1; justify-content: center; }
.slide-bar .arrow { flex: none; }
.slide-count { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--color-muted); }
.slide-stage { margin-top: clamp(16px, 3svh, 32px); }
.js .slide-stage > .panel, .js .slide-stage > .panel.on { transform: none; }
.js .slide-stage > .panel { transition: opacity 600ms var(--ease-in-out), visibility 0s linear 600ms; }
.js .slide-stage > .panel.on { transition: opacity 600ms var(--ease-in-out), visibility 0s; }
.capture { rotate: 0deg !important; }
.capture img { max-height: min(52svh, 560px); }
@media (max-width: 64rem) { .slide-bar { flex-wrap: wrap; } .slide-bar .seg { order: 3; flex-basis: 100%; justify-content: flex-start; } }
.figure-s small { font-family: var(--font-body); font-size: 0.4em; font-weight: 800; letter-spacing: 0; vertical-align: middle; opacity: 0.8; }
.foot-mark { white-space: nowrap; font-size: clamp(1.4rem, 0.8rem + 2vw, 2.6rem); }
@media (min-width: 64rem) and (max-height: 50rem) { .country-side { gap: 10px; } .country-lead { font-size: var(--text-sm); } .place-panel { padding: 14px 18px; } .pp-facts { gap: 4px 10px; } .close-text { gap: var(--space-md); } .phone img { max-height: 46svh; } }
/* the last screen: nothing scrolls past it, so it only fades in, and the foot never fades */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 64rem) {
    .close > .foot { animation: none; }
    .close > .container.close-in { animation-name: snap-arrive; animation-range: entry 0% entry 100%; }
  }
}
@keyframes snap-arrive { from { opacity: 0; transform: translateY(6svh) scale(0.985); } to { opacity: 1; transform: none; } }
@media (min-width: 64rem) and (min-height: 40rem) { .close { padding-top: clamp(24px, 5svh, 56px) !important; } .close-in { min-height: 0; } .phone img { max-height: min(50svh, 520px); } }

/* a mapped city's regions, named on the map */
.region-label{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:1px;padding:3px 8px 4px;border-radius:8px;background:rgba(27,26,23,.78);color:#fff;font:800 12px/1.1 var(--font-body,system-ui);white-space:nowrap;border:1.5px solid rgba(255,255,255,.55);pointer-events:none}
.region-label span{font-weight:600;font-size:10px;opacity:.85}
.region-label.rk-slums{background:rgba(150,40,30,.85)}.region-label.rk-it,.region-label.rk-cbd{background:rgba(30,80,150,.85)}.region-label.rk-posh{background:rgba(120,60,140,.85)}
.region-label.rk-lake{background:rgba(20,110,150,.85)}.region-label.rk-green,.region-label.rk-fringe{background:rgba(40,110,50,.85)}.region-label.rk-industrial{background:rgba(90,90,90,.88)}.region-label.rk-market{background:rgba(170,95,20,.88)}

/* the map's settings: a gear, and what it opens */
.map-gear{position:absolute;right:10px;bottom:10px;z-index:6;width:36px;height:36px;border-radius:50%;border:2px solid var(--color-ink,#1b1a17);background:var(--color-paper-3,#fff);color:var(--color-ink,#1b1a17);font-size:19px;line-height:1;display:grid;place-items:center;padding:0;box-shadow:2px 2px 0 var(--color-ink,#1b1a17)}
.map-settings{position:absolute;right:10px;bottom:54px;z-index:6;display:flex;flex-direction:column;gap:8px;padding:10px 12px;border-radius:12px;border:2px solid var(--color-ink,#1b1a17);background:var(--color-paper-3,#fff);color:var(--color-ink,#1b1a17);font:600 13px var(--font-body,system-ui);box-shadow:3px 3px 0 var(--color-ink,#1b1a17)}
.map-settings[hidden]{display:none}
.map-settings label{display:flex;align-items:center;justify-content:space-between;gap:14px}
.map-settings select{font:inherit;padding:2px 6px;border-radius:6px;border:1.5px solid var(--color-ink,#1b1a17);background:#fff}
.no-names .region-label{display:none}
