/* sangocity.com
   ===========================================================================
   One idea: the Douala taxi. Its yellow is the brand; the dusk over the
   Wouri — the game's own night sky — is the dark; the concrete of a street at
   noon is the light; laterite and a wax-print green are the only accents.
   The single thing on the page that glows is the Play button, and it is a
   taxi's roof lamp.

   The game's HUD has its own palette (css/hud.css); this is the website's,
   deliberately separate: the site is a poster for the game, not its dashboard.
   =========================================================================== */

:root {
  --taxi: #ffc21a;
  --taxi-deep: #e9a400;
  --taxi-glow: rgba(255, 194, 26, .55);
  --dusk: #10222b;
  --dusk-2: #173340;
  --dusk-3: #0a171d;
  --concrete: #eceeea;
  --concrete-2: #dfe2dc;
  --laterite: #c4532b;
  --laterite-text: #a3401c;   /* the same hue as small type on concrete: 5.2:1 */
  --wax: #1f6b52;
  --white: #ffffff;
  --ink: var(--dusk);
  --ink-soft: #3d535d;
  --on-dark: #eef3f2;
  --on-dark-soft: #a9bcc0;

  --font-display: "Big Shoulders", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* A type scale on a 1.25 ratio from 17 px, the display steps fluid. */
  --t-0: 1.0625rem;
  --t-1: 1.3281rem;
  --t-2: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  --t-3: clamp(2.4rem, 1.6rem + 3.4vw, 4.6rem);
  --t-hero: clamp(3rem, 1.2rem + 6vw, 7.25rem);

  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--concrete); color: var(--ink);
  font: 400 var(--t-0)/1.6 var(--font-body);
  font-kerning: normal; font-variant-numeric: proportional-nums;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: .95; letter-spacing: .005em; margin: 0; text-wrap: balance; }
h2 { font-size: var(--t-3); }
h3 { font-size: var(--t-1); line-height: 1.1; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--taxi); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.defs { position: absolute; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--taxi); color: var(--ink); padding: .6rem 1rem; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 860px); }
.section-head { display: grid; gap: 1.1rem; max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--ink-soft); max-width: 40em; }

/* ---- The Play button: a taxi roof lamp ------------------------------------
   The glass is a trapezoid (a rounded box tipped back in perspective), the
   base is the black mount it sits on. Off, it is painted yellow; on hover,
   focus or press, it lights — which is the only glow on the page. */
.lamp {
  --lamp-h: 44px;
  display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink);
  isolation: isolate; -webkit-tap-highlight-color: transparent;
}
.lamp__glass {
  position: relative; display: grid; place-items: center;
  min-height: var(--lamp-h); padding: 0 1.35em;
  font: 900 1.05rem/1 var(--font-display); letter-spacing: .09em; text-transform: uppercase;
}
/* The glass is drawn behind the lettering, so the sign can tip back in
   perspective while the word on it stays upright and crisp. */
.lamp__glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, #ffe07a 0%, var(--taxi) 38%, var(--taxi-deep) 100%);
  border-radius: 14px 14px 5px 5px;
  transform: perspective(160px) rotateX(14deg); transform-origin: 50% 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -3px 0 rgba(0, 0, 0, .12), 0 0 0 0 var(--taxi-glow);
  transition: box-shadow .35s var(--ease), filter .35s var(--ease);
}
.lamp__glass::after { /* the checker strip every Douala taxi sign carries */
  content: ""; position: absolute; left: 10%; right: 10%; bottom: 5px; height: 4px; border-radius: 2px; opacity: .5;
  background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px);
}
.lamp__base { width: calc(100% + 14px); height: 7px; margin-top: -1px; border-radius: 4px; background: var(--dusk-3); box-shadow: 0 6px 14px rgba(0, 0, 0, .28); }
.lamp:hover .lamp__glass::before, .lamp:focus-visible .lamp__glass::before, .lamp.is-lit .lamp__glass::before {
  filter: brightness(1.08) saturate(1.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -3px 0 rgba(0, 0, 0, .08), 0 0 28px 6px var(--taxi-glow), 0 0 80px 18px rgba(255, 194, 26, .22);
}
.lamp:active .lamp__glass { transform: translateY(2px); }
.lamp:focus-visible { outline: none; }
.lamp:focus-visible .lamp__base { outline: 3px solid var(--white); outline-offset: 4px; }
.lamp--big { --lamp-h: 66px; }
.lamp--big .lamp__glass { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); padding: 0 1.4em; }
.lamp--big .lamp__glass::before { border-radius: 20px 20px 6px 6px; }
.lamp--big .lamp__glass::after { bottom: 8px; height: 5px; }
.lamp--big .lamp__base { height: 10px; width: calc(100% + 20px); }

/* ---- The bar ---------------------------------------------------------------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: clamp(.75rem, 2vw, 2rem);
  padding: max(12px, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 12px max(var(--gutter), env(safe-area-inset-left));
  color: var(--white);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.bar.is-solid { background: rgba(16, 34, 43, .92); box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 10px 30px rgba(0, 0, 0, .18); }
@supports (backdrop-filter: blur(1px)) { .bar.is-solid { background: rgba(16, 34, 43, .78); backdrop-filter: blur(14px) saturate(1.3); } }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: 38px; height: 23px; color: var(--taxi); --sign-ink: var(--dusk); }
.brand__word { font: 900 1.55rem/1 var(--font-display); letter-spacing: .01em; }
.bar__nav { display: flex; gap: clamp(.9rem, 1.6vw, 1.8rem); }
.bar__nav a, .bar__lang { font-weight: 600; font-size: .95rem; text-decoration: none; opacity: .88; padding: .35rem 0; }
.bar__nav a:hover, .bar__lang:hover { opacity: 1; text-decoration: underline; }
.bar__lang { border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 999px; padding: .2rem .65rem; font-size: .82rem; letter-spacing: .06em; }
.bar .lamp { --lamp-h: 38px; }
.bar .lamp__glass { font-size: .95rem; }
@media (max-width: 960px) { .bar__nav { display: none; } }

/* ---- Hero ----------------------------------------------------------------------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; color: var(--white); background: var(--dusk); overflow: hidden; }
.hero__media, .hero__media > * { position: absolute; inset: 0; }
.hero__media img, .hero__film { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero__film { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__film.is-playing { opacity: 1; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(10, 23, 29, .94) 0%, rgba(10, 23, 29, .62) 32%, rgba(10, 23, 29, 0) 62%),
    linear-gradient(90deg, rgba(10, 23, 29, .55) 0%, rgba(10, 23, 29, 0) 55%),
    linear-gradient(180deg, rgba(10, 23, 29, .5) 0%, rgba(10, 23, 29, 0) 18%);
}
.hero__body { position: relative; z-index: 1; padding: 8rem max(var(--gutter), env(safe-area-inset-left)) clamp(2.5rem, 2rem + 4vw, 5.5rem); max-width: 72rem; }
.hero__title { font-size: min(var(--t-hero), 11.5vh); font-weight: 900; line-height: .86; letter-spacing: -.005em; text-transform: uppercase; }
.hero__title span { display: block; }
.hero__lead { margin-top: 1.6rem; max-width: 38em; font-size: clamp(1.05rem, .98rem + .35vw, 1.3rem); line-height: 1.55; color: var(--on-dark); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 2.2rem; }
.hero__note { color: var(--on-dark-soft); font-size: .95rem; }
.hero__pause {
  position: absolute; z-index: 2; right: max(var(--gutter), env(safe-area-inset-right)); bottom: clamp(1.2rem, 3vw, 2.4rem);
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .5); background: rgba(10, 23, 29, .45); color: var(--white); cursor: pointer;
}
.hero__pause svg { width: 18px; height: 18px; fill: currentColor; }
.hero__pause .i-play, .hero__pause[aria-pressed="true"] .i-pause { display: none; }
.hero__pause[aria-pressed="true"] .i-play { display: block; }

/* The one orchestrated moment: the headline sets, then the lamp comes on. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title span { opacity: 0; transform: translateY(.35em); animation: rise .9s var(--ease) forwards; }
  .js .hero__title span:nth-child(2) { animation-delay: .12s; }
  .js .hero__title span:nth-child(3) { animation-delay: .24s; }
  .js .hero__lead, .js .hero__note { opacity: 0; animation: fade .8s .5s var(--ease) forwards; }
  .js #play-hero .lamp__glass::before { animation: ignite 1.1s .75s steps(1, end) both; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes ignite { /* a fluorescent tube catching: off, flicker, on */
  0% { filter: brightness(.55) saturate(.6); }
  12% { filter: brightness(1.15); } 18% { filter: brightness(.6) saturate(.7); }
  30% { filter: brightness(1.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 0 36px 8px var(--taxi-glow); }
  100% { filter: none; }
}

/* ---- Ticker: street names off the map --------------------------------------------- */
.ticker { display: flex; overflow: hidden; background: var(--taxi); color: var(--ink); border-block: 3px solid var(--dusk); }
.ticker__run { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.ticker__run li { font: 800 clamp(1.2rem, 1rem + .7vw, 1.6rem)/1 var(--font-display); text-transform: uppercase; letter-spacing: .03em; padding: 1rem 0; white-space: nowrap; display: flex; align-items: center; }
.ticker__run li::after { content: ""; width: 34px; height: 5px; margin: 0 1.6rem; border-radius: 3px; background: var(--dusk); } /* a lane marking */
@media (prefers-reduced-motion: no-preference) {
  .ticker__run { animation: run 90s linear infinite; }
  .ticker:hover .ticker__run { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .ticker { overflow-x: auto; } .ticker__run[aria-hidden] { display: none; } }
@keyframes run { to { transform: translateX(-100%); } }

/* ---- From taxi to Boss: the ladder (a real sequence, so numbered) ---------------------- */
.ladder { padding-block: var(--section) 0; }
.rungs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 3px solid var(--dusk); }
.rung { padding: 1.3rem 1.2rem 1.4rem 0; display: grid; gap: .5rem; align-content: start; }
.rung + .rung { padding-left: 1.2rem; border-left: 1px solid rgba(16, 34, 43, .15); }
.rung__n { font: 900 clamp(2.4rem, 1.8rem + 2vw, 3.6rem)/.85 var(--font-display); color: var(--taxi-deep); }
.rung:last-child .rung__n { color: var(--laterite); }
.rung h3 { font-size: var(--t-1); }
.rung p { color: var(--ink-soft); font-size: .98rem; }
.rung--later h3, .rung--later .rung__n { opacity: .55; }
.rung__soon { display: inline-block; vertical-align: .2em; margin-left: .3rem; font: 700 .72rem/1 var(--font-body); padding: .25rem .5rem; border-radius: 999px; background: var(--concrete-2); color: var(--ink-soft); opacity: 1; }
.roads { margin-top: clamp(2.5rem, 4vw, 4rem); display: grid; gap: .6rem; }
.roads__title { font-size: var(--t-2); }
.roads__lead { color: var(--ink-soft); max-width: 40em; }
.roads__list { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.road { background: var(--white); border-radius: var(--r-md); padding: 1.2rem 1.3rem 1.3rem; display: grid; gap: .8rem; align-content: start; }
.road h4 { margin: 0; font: 800 var(--t-2)/1 var(--font-display); display: grid; gap: .3rem; }
.road h4 span { font: 600 .95rem/1.2 var(--font-body); color: var(--laterite-text); }
.road dl { margin: 0; display: grid; gap: .45rem; font-size: .94rem; }
.road dt { font-size: .8rem; color: var(--ink-soft); }
.road dd { margin: 0; font-weight: 600; }
@media (max-width: 1000px) {
  .rungs { grid-template-columns: 1fr; }
  .rung, .rung + .rung { grid-template-columns: 3.2rem 1fr; padding: 1rem 0; border-left: 0; border-bottom: 1px solid rgba(16, 34, 43, .12); }
  .rung__n { grid-row: span 2; }
  .roads__list { grid-template-columns: 1fr; }
}

/* ---- The city ------------------------------------------------------------------------ */
.city { padding-block: var(--section); }
.atlas { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.atlas__map { position: relative; margin: 0; border-radius: var(--r-lg); background: var(--dusk); padding: clamp(10px, 2vw, 22px); box-shadow: 0 30px 60px -30px rgba(16, 34, 43, .5); }
.atlas__map > svg { width: 100%; height: auto; }
.map-water { fill: #1f5f70; }
.map-r, .map-s, .map-p, .map-m, .map-runway { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map-r { stroke: #2f4f5a; stroke-width: 2.2; }
.map-s { stroke: #6f8c93; stroke-width: 3.4; }
.map-p { stroke: #d9c9a0; stroke-width: 5; }
.map-m { stroke: var(--taxi); stroke-width: 7; }
.map-runway { stroke: #93a4a8; stroke-width: 14; stroke-linecap: butt; }
.atlas__pins { position: absolute; inset: clamp(10px, 2vw, 22px); }
.pin {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-9px, -9px);
  display: flex; align-items: center; gap: .4rem; padding: 0; border: 0; background: none; color: var(--white); cursor: pointer;
  font: 700 .82rem/1 var(--font-body);
}
.pin__dot { width: 18px; height: 18px; border-radius: 50%; background: var(--dusk); border: 3px solid var(--taxi); box-shadow: 0 0 0 4px rgba(16, 34, 43, .55); transition: transform .25s var(--ease), background-color .25s; flex: none; }
.pin__name { background: rgba(10, 23, 29, .82); padding: .32rem .55rem; border-radius: 999px; white-space: nowrap; }
.pin--flip { flex-direction: row-reverse; transform: translate(calc(-100% + 9px), -9px); }
.pin:hover .pin__dot { transform: scale(1.2); }
.pin[aria-selected="true"] .pin__dot { background: var(--taxi); transform: scale(1.25); box-shadow: 0 0 0 5px rgba(255, 194, 26, .35), 0 0 22px 6px rgba(255, 194, 26, .45); }
.pin[aria-selected="true"] .pin__name { background: var(--taxi); color: var(--ink); }
.pin:focus-visible { outline: none; }
.pin:focus-visible .pin__name { outline: 3px solid var(--white); outline-offset: 2px; }
.view picture img { border-radius: var(--r-lg); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--concrete-2); }
.view__text { padding: 1.3rem .2rem 0; }
.view h3 { font-size: var(--t-2); display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.view__city { font: 600 .9rem/1 var(--font-body); color: var(--laterite-text); letter-spacing: .02em; }
.view p { margin-top: .6rem; color: var(--ink-soft); max-width: 36em; }
@media (prefers-reduced-motion: no-preference) { .view:not([hidden]) { animation: fade .45s var(--ease); } }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: clamp(3rem, 5vw, 5rem) 0 0; border-top: 3px solid var(--dusk); }
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .5rem; padding: 1.4rem 1.4rem 0 0; }
.stats > div + div { padding-left: 1.4rem; border-left: 1px solid rgba(16, 34, 43, .15); }
.stats dd { margin: 0; font: 900 clamp(2.4rem, 1.6rem + 3vw, 4.4rem)/.9 var(--font-display); font-variant-numeric: tabular-nums; }
.stats dt { color: var(--ink-soft); font-size: .98rem; line-height: 1.4; max-width: 18em; }
.source { margin-top: 1.4rem; font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 1000px) {
  .atlas { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  /* Names folded to the dot on a phone — hidden from sight, never from a
     screen reader: display:none would leave the button without a name. */
  .pin:not([aria-selected="true"]) .pin__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---- Missions (dusk) ---------------------------------------------------------------------- */
.missions, .life, .final, .foot { background: var(--dusk); color: var(--on-dark); }
.missions .lead, .life .lead { color: var(--on-dark-soft); }
.missions { padding-block: var(--section); }
.jobs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(1.6rem, 3vw, 2.6rem) clamp(1.2rem, 2.4vw, 2.4rem); }
.job { display: grid; align-content: start; gap: .7rem; padding-top: 1.3rem; border-top: 4px dashed var(--taxi); }
.job__icon { width: 44px; height: 44px; color: var(--taxi); }
.job h3 { font-size: var(--t-2); }
.job p { color: var(--on-dark); }
.job__ask { color: var(--on-dark-soft); font-style: italic; }
.job__ask span { font-style: normal; font-weight: 700; color: var(--taxi); margin-right: .25rem; }
.cargo { margin-top: clamp(3.5rem, 6vw, 6rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 1rem clamp(2rem, 4vw, 4rem); }
.cargo h3 { font-size: var(--t-2); }
.cargo__head { display: grid; gap: .8rem; align-content: start; }
.cargo__head p { color: var(--on-dark-soft); }
.cargo__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; }
.cargo__list li { display: grid; grid-template-columns: 26px 1fr; grid-template-rows: auto auto; column-gap: .75rem; row-gap: .35rem; align-items: center; padding: .75rem .9rem; border-radius: var(--r-sm); background: var(--dusk-2); }
.cargo__list .glyph { width: 26px; height: 26px; grid-row: span 2; color: var(--taxi); }
.cargo__name { font-weight: 600; font-size: .95rem; }
@media (max-width: 860px) { .cargo { grid-template-columns: 1fr; } .cargo__list { grid-column: auto; } }

/* Meters: a filled lane, square nowhere. */
meter { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 0; overflow: hidden; }
meter::-webkit-meter-bar { background: rgba(255, 255, 255, .12); border-radius: 999px; border: 0; height: 8px; }
meter::-webkit-meter-optimum-value, meter::-webkit-meter-suboptimum-value, meter::-webkit-meter-even-less-good-value { background: var(--taxi); border-radius: 999px; }
meter::-moz-meter-bar { background: var(--taxi); border-radius: 999px; }
.cargo meter::-webkit-meter-optimum-value { background: linear-gradient(90deg, var(--taxi), var(--laterite)); }
.cargo meter::-moz-meter-bar { background: linear-gradient(90deg, var(--taxi), var(--laterite)); }

/* ---- Garage ----------------------------------------------------------------------------------- */
.garage { padding-block: var(--section); background: var(--white); }
.fleet { width: 100%; border-collapse: collapse; }
.fleet th, .fleet td { text-align: left; vertical-align: middle; padding: 1.15rem 1rem 1.15rem 0; border-bottom: 1px solid var(--concrete-2); }
.fleet thead th { font: 600 .85rem/1.2 var(--font-body); color: var(--ink-soft); border-bottom: 3px solid var(--dusk); padding-block: .8rem; }
.fleet tbody th { width: 46%; }
.fleet__name { display: block; font: 800 var(--t-2)/1 var(--font-display); }
.fleet__note { display: block; margin-top: .3rem; font-weight: 400; color: var(--ink-soft); font-size: .98rem; }
.fleet td { font-weight: 600; }
.fleet td:last-child { width: 18%; }
.fleet meter { background: var(--concrete-2); }
.fleet meter::-webkit-meter-bar { background: var(--concrete-2); }
.fleet meter::-webkit-meter-optimum-value, .fleet meter::-webkit-meter-suboptimum-value, .fleet meter::-webkit-meter-even-less-good-value { background: var(--wax); }
.fleet meter::-moz-meter-bar { background: var(--wax); }
.seats { display: inline-flex; flex-wrap: wrap; gap: 4px; max-width: 76px; vertical-align: middle; margin-right: .6rem; }
.seats i { width: 12px; height: 12px; border-radius: 3px 3px 5px 5px; background: var(--taxi-deep); }
.fleet__num { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .fleet thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fleet, .fleet tbody, .fleet tr, .fleet th, .fleet td { display: block; width: auto !important; }
  .fleet tr { padding: 1.2rem 0; border-bottom: 1px solid var(--concrete-2); display: grid; grid-template-columns: repeat(3, auto); gap: .8rem 1rem; }
  .fleet tbody th { grid-column: 1 / -1; padding: 0; border: 0; }
  .fleet td { padding: 0; border: 0; font-size: .92rem; }
  .fleet td::before { content: attr(data-label); display: block; font-weight: 400; color: var(--ink-soft); font-size: .78rem; margin-bottom: .25rem; }
}

/* ---- Cast (taxi yellow) --------------------------------------------------------------------------- */
.cast { padding-block: var(--section); background: var(--taxi); }
.cast .lead { color: #4a3a0a; }
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.4rem, 2.6vw, 2.6rem); }
.person { display: grid; grid-template-rows: auto 1fr; }
.person__portrait { border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; background: var(--dusk); aspect-ratio: 6 / 5; }
.person__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.person__body { background: var(--white); border-radius: 0 0 var(--r-lg) var(--r-lg); padding: 1.5rem 1.5rem 1.7rem; display: grid; align-content: start; gap: .9rem; box-shadow: 0 24px 40px -28px rgba(80, 55, 0, .6); }
.person h3 { font-size: var(--t-3); display: grid; gap: .35rem; }
.person__role { font: 600 1rem/1.2 var(--font-body); color: var(--laterite-text); }
.person__body > p { color: var(--ink-soft); }
.person__traits { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.person__traits li { background: var(--dusk); color: var(--on-dark); padding: .3rem .7rem; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.person__stats { display: grid; gap: .55rem; margin: .2rem 0 0; }
.person__stats > div { display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: .8rem; font-size: .88rem; }
.person__stats dt { color: var(--ink-soft); }
.person__stats dd { margin: 0; display: grid; grid-template-columns: 1fr 4.2em; align-items: center; gap: .6rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.person__stats .bar { position: static; display: block; height: 8px; border-radius: 999px; padding: 0; background: linear-gradient(90deg, var(--dusk) var(--v), var(--concrete-2) var(--v)); }
.person__home { font-size: .92rem; color: var(--ink-soft); }
.person__home strong { color: var(--ink); }
@media (max-width: 980px) { .people { grid-template-columns: 1fr; max-width: 560px; } }

/* ---- Life (dusk) ------------------------------------------------------------------------------------ */
.life { padding-block: var(--section); }
.life__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(.8rem, 1.6vw, 1.4rem); }
.life__shot { margin: 0; }
.life__shot img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-md); }
.life__shot--a { grid-column: 1 / span 7; grid-row: span 2; }
.life__shot--b, .life__shot--c { grid-column: 8 / span 5; }
.life__list { grid-column: 1 / -1; list-style: none; margin: clamp(1.6rem, 3vw, 2.6rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.4rem, 3vw, 3rem); }
.life__list h3 { color: var(--taxi); font-size: var(--t-1); margin-bottom: .45rem; }
.life__list p { color: var(--on-dark-soft); }
@media (max-width: 900px) {
  .life__shot--a, .life__shot--b, .life__shot--c { grid-column: 1 / -1; grid-row: auto; }
  .life__shot img { height: auto; aspect-ratio: 16 / 9; }
  .life__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .life__list { grid-template-columns: 1fr; } }

/* ---- Controls ----------------------------------------------------------------------------------------- */
.controls { padding-block: var(--section); }
.controls__cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.controls h3 { font-size: var(--t-2); margin-bottom: 1.2rem; }
.keys { margin: 0; display: grid; gap: .1rem; }
.keys > div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--concrete-2); }
.keys dt { display: flex; flex-wrap: wrap; gap: .35rem; }
.keys dd { margin: 0; }
kbd {
  display: inline-grid; place-items: center; min-width: 2.2rem; height: 2.2rem; padding: 0 .55rem;
  font: 700 .88rem/1 var(--font-body); color: var(--ink);
  background: var(--white); border: 1px solid #c6ccc6; border-bottom-width: 4px; border-radius: 8px;
}
.keys--touch > div { grid-template-columns: 8.5rem 1fr; }
.keys--touch dt { font-weight: 700; }
.controls__tip { margin-top: 1.2rem; color: var(--ink-soft); }
@media (max-width: 860px) { .controls__cols { grid-template-columns: 1fr; } }

/* ---- FAQ ------------------------------------------------------------------------------------------------ */
.faq { padding-block: 0 var(--section); }
.faq h2 { margin-bottom: 2rem; }
.faq details { border-top: 1px solid var(--concrete-2); }
.faq details:last-of-type { border-bottom: 1px solid var(--concrete-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: var(--t-2); font-weight: 700; }
.faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--dusk) center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%23ffc21a' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.5rem; max-width: 42em; color: var(--ink-soft); font-size: 1.05rem; }

/* ---- Final call -------------------------------------------------------------------------------------------- */
.final { padding-block: var(--section); text-align: center; position: relative; overflow: hidden; }
.final::before { /* the road: a lane marking running under the call */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 6px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, rgba(255, 194, 26, .12) 0 60px, transparent 60px 110px);
}
.final .wrap { position: relative; display: grid; justify-items: center; gap: 1.2rem; }
.final h2 { font-size: var(--t-hero); text-transform: uppercase; font-weight: 900; line-height: .88; max-width: 12ch; }
.final p { color: var(--on-dark-soft); font-size: var(--t-1); margin-bottom: 1.4rem; }

/* ---- Footer ---------------------------------------------------------------------------------------------------- */
.foot { background: var(--dusk-3); padding: 3.5rem 0 max(3rem, env(safe-area-inset-bottom)); font-size: .92rem; color: var(--on-dark-soft); }
.foot__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.6rem 3rem; align-items: start; }
.brand--foot { color: var(--white); margin-bottom: .8rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; justify-content: flex-end; }
.foot nav a { color: var(--on-dark); font-weight: 600; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot__credits, .foot__date { grid-column: 1 / -1; }
.foot__credits { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 1.6rem; }
@media (max-width: 700px) { .foot__grid { grid-template-columns: 1fr; } .foot nav { justify-content: flex-start; } }

/* ---- 404 --------------------------------------------------------------------------------------------------------- */
.lost { min-height: 100vh; display: grid; place-items: center; background: var(--dusk); color: var(--on-dark); padding: var(--gutter); }
.lost__body { max-width: 36rem; display: grid; gap: 1.1rem; }
.lost__code { font: 900 clamp(6rem, 22vw, 12rem)/.8 var(--font-display); color: var(--taxi); }
.lost h1 { font-size: var(--t-3); }
.lost__en { color: var(--on-dark-soft); font-size: .92rem; }
.lost__actions { display: flex; align-items: center; gap: 1.6rem; margin-top: 1rem; }
.lost__home { font-weight: 600; }

/* ---- A document (the privacy policy) ------------------------------------------------------------------------------ */
.doc__body { padding-block: clamp(2.5rem, 6vw, 5rem); display: grid; gap: 1rem; }
.doc__body h1 { font-size: var(--t-3); }
.doc__body h2 { font-size: var(--t-2); margin-top: 1.4rem; }
.doc__body p { max-width: 42em; line-height: 1.6; margin: 0; }
.doc__home { font-weight: 600; color: var(--ink-soft); }
.doc__date { color: var(--ink-soft); font-size: .92rem; margin-top: 1.6rem !important; }

/* On the light and yellow grounds, focus rings are ink, not yellow. */
.city :focus-visible, .garage :focus-visible, .cast :focus-visible, .controls :focus-visible, .faq :focus-visible { outline-color: var(--dusk); }
.city .pin:focus-visible .pin__name { outline-color: var(--taxi); }

/* ---- Rendering work only where the reader is ------------------------------
   Every section below the hero is laid out and painted when it approaches
   the viewport, not at load: the map alone is thousands of path segments. The
   intrinsic size keeps the scrollbar honest until then. */
.ladder, .city, .missions, .garage, .cast, .life, .controls, .faq, .final, .foot {
  content-visibility: auto; contain-intrinsic-size: auto 1200px;
}
