/* Ambulances Roussel — "À l'heure". Rules live in DESIGN.md; keep this file in step with it. */

@font-face { font-family: "Geist"; src: url("fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0a1628;
  --ink-2: #142540;
  --muted: #5e6878;
  --line: #e4e7ec;
  --control: #7d8696;
  --paper: #ffffff;
  --fog: #f3f5f8;
  --red: #e1252b;
  --red-2: #c41a20;
  --green: #14a367;
  --amber: #e08a00;
  --d-text: #9aa6b8;
  --d-line: rgba(255, 255, 255, .1);

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1200px;
  --g: 24px;
  --r-panel: 28px;
  --r-card: 20px;
  --r-tile: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --fs: 18px;
}
html.large-text { --fs: 21px; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--fs)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.045em; line-height: 1; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; }
.skip:focus { top: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--g)); margin: 0 auto; padding: 0 var(--g); }
@media (max-width: 640px) { :root { --g: 16px; --fs: 17px; } html.large-text { --fs: 20px; } }

/* ---------- Type ---------- */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.label.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.display { font-size: clamp(44px, 7.6vw, 96px); line-height: .95; letter-spacing: -0.055em; }
.h1 { font-size: clamp(40px, 6vw, 76px); line-height: .98; letter-spacing: -0.05em; }
.h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1; }
.h3 { font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -0.03em; line-height: 1.15; }
.em { color: var(--red); }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); max-width: 34em; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 26px; border-radius: 999px;
  font-weight: 550; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap;
  transition: background .2s, color .2s, box-shadow .2s, transform .2s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1d3150; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--fog); }
.btn-ghost { box-shadow: inset 0 0 0 1.5px var(--control); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.dark .btn-ghost { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); color: #fff; }
.dark .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn-sm { height: 44px; padding: 0 18px; font-size: 15px; }
.btn-sm svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 550; }
.arrow-link svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------- Top strip + header ---------- */
.strip { background: var(--ink); color: var(--d-text); font-size: 14px; }
.strip .wrap { text-align: center; padding-top: 10px; padding-bottom: 10px; line-height: 1.5; }
@media (max-width: 560px) { .strip { font-size: 13px; } }
.strip strong { color: #fff; font-weight: 550; }
.strip a { color: #fff; font: 600 13px var(--mono); background: var(--red); padding: 2px 8px; border-radius: 6px; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.8) blur(16px); -webkit-backdrop-filter: saturate(1.8) blur(16px); box-shadow: 0 1px 0 transparent; transition: box-shadow .3s; }
.header.scrolled { box-shadow: 0 1px 0 var(--line); }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; gap: 24px; }
.brand { display: inline-flex; flex-direction: column; color: var(--ink); line-height: 1; justify-self: start; }
.wm { display: block; white-space: nowrap; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.wm .u { display: inline-block; vertical-align: baseline; width: .6em; height: .7em; margin: 0 .05em; color: var(--red); }
.wm-sub { font: 500 9.5px var(--mono); letter-spacing: .32em; margin-top: 5px; color: var(--muted); }
.nav-links { display: flex; gap: 2px; }
.nav-links a { position: relative; display: block; padding: 10px 14px; font-size: 15.5px; font-weight: 500; color: var(--muted); border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: var(--fog); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--red); }
.nav-tools { display: flex; align-items: center; gap: 8px; justify-self: end; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--fog); }
.lang a { font: 500 12px var(--mono); padding: 7px 9px; border-radius: 999px; color: var(--muted); }
.lang a[aria-current="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(10,22,40,.08); }
.a11y-btn { width: 38px; height: 38px; border-radius: 999px; background: var(--fog); font: 600 13px var(--mono); }
html.large-text .a11y-btn { background: var(--ink); color: #fff; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 999px; background: var(--fog); align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 1080px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav > nav, .nav-tools .lang, .nav-tools .a11y-btn { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 560px) { .nav-tools .call-label { display: none; } .nav-tools .btn-sm { width: 44px; padding: 0; } }

.drawer { position: fixed; inset: 0; z-index: 100; background: var(--paper); display: flex; flex-direction: column; padding: 0 var(--g) calc(24px + env(safe-area-inset-bottom)); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.drawer.open { opacity: 1; visibility: visible; transition: opacity .3s; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.drawer-close { width: 44px; height: 44px; border-radius: 999px; background: var(--fog); display: grid; place-items: center; }
.drawer-close svg { width: 22px; height: 22px; }
.drawer nav ol { counter-reset: d; margin-top: 16px; }
.drawer nav li { counter-increment: d; border-top: 1px solid var(--line); }
.drawer nav li:last-child { border-bottom: 1px solid var(--line); }
.drawer nav a { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; font-size: 32px; font-weight: 600; letter-spacing: -0.04em; }
.drawer nav a::before { content: "0" counter(d); font: 500 12px var(--mono); color: var(--muted); letter-spacing: .08em; }
.drawer nav a[aria-current="page"] { color: var(--red); }
.drawer-foot { margin-top: auto; display: grid; gap: 16px; }
.drawer-foot .row { display: flex; gap: 8px; align-items: center; }

/* ---------- Sections ---------- */
.sec { padding: 128px 0; }
.sec-md { padding: 96px 0; }
.sec-sm { padding: 72px 0; }
.sec + .sec.tight { padding-top: 0; }
.fog { background: var(--fog); }
.dark { background: var(--ink); color: #fff; }
.dark .lead, .dark .muted { color: var(--d-text); }
.dark .label { color: var(--d-text); }
@media (max-width: 760px) { .sec { padding: 80px 0; } .sec-md { padding: 64px 0; } .sec-sm { padding: 48px 0; } }

.head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px var(--g); align-items: end; margin-bottom: 56px; }
.head > div { grid-column: 1 / span 7; }
.head .label { margin-bottom: 20px; }
.head .lead { grid-column: 8 / -1; }
.head .lead, .head .btn-row { justify-self: start; }
@media (max-width: 900px) { .head > div, .head .lead { grid-column: 1 / -1; } .head { margin-bottom: 40px; } }

/* ---------- Hero ---------- */
/* Photo panel: the plate drifts slower than the page and settles from a slight zoom; the copy rides at 1x. */
.hero { padding: 16px 0 0; }
.hero-stage { position: relative; overflow: hidden; border-radius: var(--r-panel); min-height: clamp(520px, calc(100vh - 290px), 780px); background: #cfd6de; isolation: isolate; }
.hero-img { position: absolute; inset: -6% 0 0; z-index: -1; transform: translate3d(0, calc(var(--hp, 0) * 90px), 0) scale(calc(1.08 - var(--hp, 0) * .08)); transform-origin: 50% 35%; will-change: transform; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-copy { padding: clamp(36px, 6vw, 80px) clamp(24px, 5vw, 64px); max-width: 1100px; }
.hero .label { margin-bottom: 28px; color: #3d4a5c; }
.hero h1 { font-size: clamp(48px, 9vw, 132px); line-height: .92; letter-spacing: -0.06em; max-width: 9.5em; }
.hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 48px; padding: 36px 0 96px; }
.hero-foot .lead { flex: 1 1 380px; max-width: 32em; }
.hero-foot .btn-row { flex: none; }
@media (max-width: 900px) {
  .hero { padding-top: 8px; }
  .hero-stage { min-height: 0; aspect-ratio: 4 / 5; max-height: 78vh; }
  .hero-img img { object-position: 50% 70%; }
  .hero-foot { padding: 28px 0 72px; }
}

/* ---------- Board (call card) ---------- */
.board { background: var(--ink); color: #fff; border-radius: var(--r-panel); padding: 32px; }
.board .label { color: var(--d-text); }
.board-h { margin: 20px 0 32px; font-size: clamp(30px, 3vw, 40px); letter-spacing: -0.045em; line-height: 1.02; }
.rows { margin: 28px 0 0; }
.rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--d-line); font-size: 15px; }
.rows dt { font: 500 12px/1.7 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--d-text); }
.rows dd { margin: 0; text-align: right; }
.board-call { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 18px 18px 22px; border-radius: 18px; background: var(--red); transition: background .2s; }
.board-call:hover { background: var(--red-2); }
.board-call small { display: block; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-bottom: 4px; }
.board-call strong { font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.board-call .ic { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: none; }
.board-call .ic svg { width: 22px; height: 22px; }
.board-mail { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--d-line); font-size: 14px; color: var(--d-text); }
.board-mail:hover { color: #fff; }
.board-mail svg { width: 16px; height: 16px; }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { padding: 32px var(--g) 32px 0; }
.facts > div + div { padding-left: var(--g); border-left: 1px solid var(--line); }
.facts b { display: block; margin-top: 14px; font-size: clamp(32px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.facts b small { font-size: .45em; letter-spacing: -0.02em; color: var(--muted); margin-left: 4px; }
.dark .facts, .dark .facts > div + div { border-color: var(--d-line); }
@media (max-width: 820px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div { padding: 24px 12px 24px 0; }
  .facts > div:nth-child(2n+1) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(2n) { padding-left: 16px; }
  .facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Cards / bento ---------- */
.tile-ic { width: 44px; height: 44px; border-radius: var(--r-tile); display: grid; place-items: center; background: #fff; color: var(--ink); flex: none; }
.tile-ic svg { width: 22px; height: 22px; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--fog); border-radius: var(--r-card); padding: 28px; min-height: 220px; transition: background .25s, transform .35s var(--ease); }
a.card:hover { background: #eaeef3; }
.card .top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; padding-bottom: 40px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; line-height: 1.55; }
.card .go { position: absolute; right: 24px; bottom: 24px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; transition: transform .3s var(--ease), background .2s, color .2s; }
.card .go svg { width: 18px; height: 18px; }
a.card:hover .go { background: var(--ink); color: #fff; transform: rotate(-45deg); }
.card.has-go p { padding-right: 48px; }
.card.span2 { grid-column: span 2; }
.card.ink { background: var(--ink); color: #fff; }
.card.ink p { color: var(--d-text); }
.card.ink .tile-ic { background: var(--ink-2); color: #fff; }
a.card.ink:hover { background: #12213a; }
.card.ink .go { background: var(--ink-2); color: #fff; }
a.card.ink:hover .go { background: var(--red); }
.card.red { background: var(--red); color: #fff; }
.card.red p { color: rgba(255,255,255,.82); }
.card.red .tile-ic { background: rgba(255,255,255,.16); color: #fff; }
.card.red .go { background: #fff; color: var(--red); }
a.card.red:hover { background: var(--red-2); }
a.card.red:hover .go { background: #fff; color: var(--red); }
.card .label { color: inherit; opacity: .6; }
.card.span2 h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.045em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.chips li { font: 500 12px/1 var(--mono); letter-spacing: .02em; padding: 8px 11px; border-radius: 999px; background: #fff; color: var(--ink); }
.card.ink .chips li { background: var(--ink-2); color: #dbe2ec; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .card.span2 { grid-column: auto; } .card { min-height: 0; } }

/* ---------- Finder ---------- */
.finder { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; }
.finder-q { background: var(--fog); border-radius: var(--r-panel); padding: 36px; }
.steps-dots { display: flex; gap: 6px; margin-bottom: 28px; }
.steps-dots i { height: 4px; width: 28px; border-radius: 2px; background: var(--line); transition: background .3s, width .3s var(--ease); }
.steps-dots i.on { background: var(--ink); width: 44px; }
.q { display: none; }
.q.active { display: block; animation: rise .5s var(--ease); }
.q h3 { font-size: clamp(24px, 2.4vw, 32px); margin: 12px 0 28px; }
.opts { display: grid; gap: 8px; }
.opt { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 14px 18px 14px 14px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s, background .2s, color .2s; }
.opt:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.opt .tile-ic { background: var(--fog); }
.opt b { display: block; font-weight: 550; font-size: 17px; }
.opt small { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.opt > svg { margin-left: auto; width: 18px; height: 18px; color: var(--muted); flex: none; }
.opt[aria-pressed="true"] { background: var(--ink); color: #fff; }
.opt[aria-pressed="true"] small, .opt[aria-pressed="true"] > svg { color: var(--d-text); }
.opt[aria-pressed="true"] .tile-ic { background: var(--ink-2); color: #fff; }
.back { margin-top: 20px; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--muted); }
.back svg { width: 16px; height: 16px; transform: rotate(180deg); }
.finder-a { background: var(--ink); color: #fff; border-radius: var(--r-panel); padding: 36px; display: flex; flex-direction: column; min-height: 440px; }
.idle { margin: auto 0 0; }
.idle .big { display: block; font-size: clamp(28px, 2.8vw, 36px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 14px; }
.idle p { color: var(--d-text); max-width: 26em; }
.answer { display: none; flex-direction: column; flex: 1; animation: rise .5s var(--ease); }
.answer.show { display: flex; }
.answer h3 { font-size: clamp(36px, 4vw, 52px); letter-spacing: -0.05em; margin: 14px 0 16px; }
.answer p { color: var(--d-text); max-width: 30em; }
.answer .note-line { display: flex; gap: 12px; align-items: flex-start; margin: 24px 0 32px; padding: 16px 0; border-top: 1px solid var(--d-line); border-bottom: 1px solid var(--d-line); font-size: 15px; }
.answer .note-line svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 2px; }
.answer .btn { margin-top: auto; align-self: flex-start; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .finder { grid-template-columns: 1fr; } .finder-a { min-height: 0; } .finder-q, .finder-a { padding: 28px 22px; } }
.js .nojs { display: none; }
.no-js .jsonly { display: none; }

/* ---------- Timeline steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--g); counter-reset: s; }
.step { position: relative; padding-top: 36px; border-top: 1px solid var(--line); }
.step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.step:first-child::before { background: var(--red); box-shadow: 0 0 0 5px rgba(225,37,43,.15); }
.step .when { font: 500 13px var(--mono); letter-spacing: .04em; color: var(--red); }
.step h3 { margin: 14px 0 12px; }
.step p { color: var(--muted); font-size: 16px; max-width: 24em; }
.step .tile-ic { background: var(--fog); margin-bottom: 24px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Cost ---------- */
.cost { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.cost-main { background: var(--fog); border-radius: var(--r-panel); padding: 36px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; }
.seg button { padding: 10px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pct { display: flex; align-items: baseline; gap: 16px; margin: 36px 0 20px; }
.pct b { font-size: clamp(80px, 11vw, 148px); font-weight: 600; letter-spacing: -0.06em; line-height: .85; font-variant-numeric: tabular-nums; }
.pct span { color: var(--muted); font-size: 16px; max-width: 12em; line-height: 1.4; }
.bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: #dfe4eb; }
.bar i { display: block; width: 65%; background: var(--ink); border-radius: 999px; transition: width .9s var(--ease); }
.cost[data-mode="full"] .bar i { width: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; font: 500 12px var(--mono); letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--ink); }
.legend i.m { background: #dfe4eb; }
.cost-note { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.check { background: var(--fog); border-radius: var(--r-panel); padding: 36px; display: flex; flex-direction: column; }
.check h3 { margin: 16px 0 28px; }
.check ol { counter-reset: c; margin-bottom: 32px; }
.checklist { counter-reset: c; }
.checklist li, .check li { counter-increment: c; display: flex; gap: 14px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); font-weight: 500; }
.checklist li::before, .check li::before { content: "0" counter(c); font: 500 12px var(--mono); color: var(--red); letter-spacing: .06em; }
.check .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .cost { grid-template-columns: 1fr; } .cost-main, .check { padding: 28px 22px; } }

/* ---------- Dark: why + map ---------- */
.why { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px var(--g); }
.why-copy { grid-column: 1 / span 5; }
.why-copy .label { margin-bottom: 20px; }
.why-copy .lead { margin: 24px 0 36px; }
.why-grid { grid-column: 7 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.why-grid > div { background: var(--ink-2); border-radius: var(--r-card); padding: 28px; }
.why-grid h3 { font-size: 20px; margin: 28px 0 10px; }
.why-grid p { color: var(--d-text); font-size: 15.5px; }
.why-grid .tile-ic { background: rgba(255,255,255,.06); color: #fff; }
@media (max-width: 980px) { .why-copy, .why-grid { grid-column: 1 / -1; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

.reach { margin-top: 12px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.reach-map { background: var(--ink-2); border-radius: var(--r-panel); padding: 20px; }
.reach-list { background: var(--ink-2); border-radius: var(--r-panel); padding: 32px; display: flex; flex-direction: column; }
.reach-list h3 { margin: 16px 0 24px; }
.reach-list ul { border-top: 1px solid var(--d-line); }
.reach-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--d-line); font-size: 15.5px; }
.reach-list li span:last-child { font-family: var(--mono); font-size: 14px; color: var(--d-text); font-variant-numeric: tabular-nums; }
.reach-list .foot { margin-top: auto; padding-top: 20px; font-size: 14px; color: var(--d-text); }
@media (max-width: 900px) { .reach { grid-template-columns: 1fr; } }
.cov { width: 100%; height: auto; }
.cov .ring { fill: none; stroke: rgba(255,255,255,.1); }
.cov .ring-l { fill: #5d6f8c; font: 500 11px var(--mono); letter-spacing: .06em; }
.cov .spoke { stroke: rgba(255,255,255,.14); stroke-width: 1; }
.cov .town circle { fill: #c9d3e2; }
.cov .town text { fill: #c9d3e2; font: 500 14px var(--sans); letter-spacing: -0.01em; }
.cov .hq { fill: var(--red); }
.cov .hq-ring { fill: none; stroke: var(--red); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ring 2.8s var(--ease) infinite; }
.cov .hq-l { fill: #fff; font: 600 18px var(--sans); letter-spacing: -0.02em; }
.cov .edge { fill: #8c9ab0; font: 500 11px var(--mono); letter-spacing: .08em; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(4); opacity: 0; } }

/* ---------- Page hero ---------- */
.phero { padding: 64px 0 72px; }
.crumbs { display: flex; gap: 8px; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 40px; }
.crumbs a:hover { color: var(--ink); }
.phero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px var(--g); align-items: end; }
.phero-grid h1 { grid-column: 1 / span 8; }
.phero-grid .lead { grid-column: 9 / -1; }
@media (max-width: 900px) { .phero-grid h1, .phero-grid .lead { grid-column: 1 / -1; } .phero { padding: 40px 0 48px; } }

/* ---------- Services list ---------- */
.jump { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 48px; }
.jump::-webkit-scrollbar { display: none; }
.jump a { flex: none; display: inline-flex; gap: 8px; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--fog); font-size: 15px; font-weight: 500; transition: background .2s, color .2s; }
.jump a span { font: 500 11px var(--mono); color: var(--muted); }
.jump a:hover { background: var(--ink); color: #fff; }
.jump a:hover span { color: var(--d-text); }
.svc { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px var(--g); padding: 48px 0; border-top: 1px solid var(--line); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc-id { grid-column: 1 / span 1; font: 500 13px var(--mono); color: var(--muted); padding-top: 10px; }
.svc-title { grid-column: 2 / span 5; }
.svc-title .tile-ic { background: var(--fog); margin-bottom: 24px; }
.svc-title .label { margin-bottom: 12px; }
.svc-title h2 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.05em; }
.svc-body { grid-column: 7 / -1; padding-top: 6px; }
.svc-body p { color: var(--muted); font-size: 17px; }
.svc-body .chips li { background: var(--fog); }
.svc-body .chips li.hl { background: var(--ink); color: #fff; }
@media (max-width: 820px) { .svc-id { display: none; } .svc-title, .svc-body { grid-column: 1 / -1; } .svc { padding: 36px 0; } }

.band { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px 48px; border-radius: var(--r-panel); padding: 48px; }
.band p { margin-top: 14px; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; padding: 32px 24px; } }

/* ---------- About ---------- */
.years { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.year { background: var(--fog); border-radius: var(--r-card); padding: 32px; display: flex; flex-direction: column; min-height: 300px; }
.year b { font-size: clamp(48px, 5.4vw, 72px); font-weight: 600; letter-spacing: -0.06em; line-height: .9; }
.year.now { background: var(--ink); color: #fff; }
.year.now p { color: var(--d-text); }
.year.now b { color: #fff; }
.year h3 { margin: auto 0 10px; padding-top: 48px; }
.year p { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .years { grid-template-columns: 1fr; } .year { min-height: 0; } }
.quote { font-size: clamp(30px, 3.8vw, 52px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.12; max-width: 22em; margin: 0; text-wrap: balance; }
.quote .em { color: var(--red); }
.quote-by { margin-top: 28px; }

/* ---------- Jobs ---------- */
.jobs { display: grid; gap: 12px; }
.job { display: grid; grid-template-columns: auto 1fr auto; gap: 16px 28px; align-items: center; background: var(--fog); border-radius: var(--r-card); padding: 28px 28px 28px 32px; }
.job h2 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.04em; }
.job p { color: var(--muted); font-size: 16px; margin-top: 8px; max-width: 40em; }
.job .tag { font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--green); background: #e2f4ec; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 760px) { .job { grid-template-columns: 1fr; padding: 24px; } .job .tag { justify-self: start; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: 12px; align-items: start; }
.contact .board { position: sticky; top: 100px; }
.c-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
.c-card { background: var(--fog); border-radius: var(--r-card); padding: 28px; }
.c-card.wide { grid-column: 1 / -1; }
.c-card .label { margin-bottom: 18px; }
.c-card .val { font-size: 20px; font-weight: 550; letter-spacing: -0.02em; line-height: 1.35; overflow-wrap: anywhere; }
.c-card .val a:hover { color: var(--red); }
.c-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 500; transition: background .2s, color .2s; }
.chip-btn:hover { background: var(--ink); color: #fff; }
.chip-btn svg { width: 16px; height: 16px; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 14px 0; border-top: 1px solid var(--line); font-size: 17px; }
.hours td:last-child { text-align: right; font: 500 15px var(--mono); white-space: nowrap; }
.alert-card { display: flex; gap: 14px; align-items: flex-start; background: #fdeeee; color: #6e1215; border-radius: var(--r-card); padding: 22px 24px; font-size: 16px; }
.alert-card svg { width: 22px; height: 22px; color: var(--red); flex: none; margin-top: 2px; }
.alert-card a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 980px) { .contact { grid-template-columns: 1fr; } .contact .board { position: static; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--d-text); padding: 96px 0 calc(32px + env(safe-area-inset-bottom)); font-size: 15px; }
.footer .brand { color: #fff; }
.footer .wm-sub { color: var(--d-text); }
.f-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px var(--g); }
.f-grid p { margin: 24px 0; max-width: 22em; }
.f-grid h4 { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.f-grid li + li { margin-top: 10px; }
.f-grid a:hover { color: #fff; }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--d-line); font: 400 13px var(--mono); }
@media (max-width: 860px) { .f-grid { grid-template-columns: 1fr 1fr; } .f-grid > div:first-child { grid-column: 1 / -1; } .footer { padding-top: 72px; } }

/* ---------- Mobile call dock ---------- */
.dock { display: none; }
@media (max-width: 760px) {
  .dock { display: flex; gap: 8px; position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); padding: 6px; border-radius: 999px; background: var(--ink); box-shadow: 0 16px 40px -12px rgba(10,22,40,.5); transform: translateY(150%); transition: transform .45s var(--ease); }
  .dock.show { transform: none; }
  .dock .btn { flex: 1; height: 52px; }
  .dock .btn-mail { flex: 0 0 52px; padding: 0; background: var(--ink-2); color: #fff; }
  body { padding-bottom: 80px; }
}

/* ---------- Photography ---------- */
/* One shoot, one grade (see DESIGN.md §6b). Images carry atmosphere, never information. */
.ph { display: block; overflow: hidden; border-radius: var(--r-card); background: #d9dee5; }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Photo card: a bento card whose ground is a photograph, copy on a dark floor */
.card.photo { color: #fff; background: var(--ink); overflow: hidden; min-height: 300px; isolation: isolate; }
.card.photo .ph { position: absolute; inset: 0; border-radius: 0; z-index: -2; }
.card.photo .ph img { transition: transform 1.2s var(--ease); }
.card.photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,22,40,0) 30%, rgba(10,22,40,.88) 100%); }
a.card.photo:hover { background: var(--ink); }
a.card.photo:hover .ph img { transform: scale(1.04); }
.card.photo p { color: rgba(255,255,255,.82); }
.card.photo .tile-ic { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.card.photo .go { background: #fff; color: var(--ink); }
a.card.photo:hover .go { background: var(--red); color: #fff; }
.card.photo.span2 { min-height: 380px; }

/* ---------- Journey (the page's one pinned act) ---------- */
/* Desktop: the stage sticks for ~2 screens while the three steps advance; the photo crossfades
   home -> vehicle -> hospital. Phones and reduced motion: a plain stacked list, each step with its photo. */
.journey-track { position: relative; }
.journey-stage { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.journey-media { position: relative; aspect-ratio: 5 / 4; border-radius: var(--r-panel); overflow: hidden; background: #d9dee5; }
.journey-media .ph { position: absolute; inset: 0; border-radius: 0; opacity: 0; transform: scale(1.06); transition: opacity .9s var(--ease), transform 2.4s var(--ease); }
.journey-media .ph.on { opacity: 1; transform: none; }
.journey-steps { counter-reset: j; }
.jstep { position: relative; padding: 28px 0 28px 36px; border-left: 1px solid var(--line); transition: opacity .5s var(--ease); }
.jstep::before { content: ""; position: absolute; left: -5px; top: 36px; width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: background .4s, box-shadow .4s; }
.jstep .when { font: 500 13px var(--mono); letter-spacing: .04em; color: var(--muted); }
.jstep h3 { margin: 10px 0 10px; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.04em; }
.jstep p { color: var(--muted); max-width: 26em; }
.jstep .ph { display: none; }
.journey.pinning .jstep { opacity: .32; }
.journey.pinning .jstep.on { opacity: 1; }
.journey.pinning .jstep.on::before { background: var(--red); box-shadow: 0 0 0 5px rgba(225,37,43,.15); }
.journey.pinning .jstep.on .when { color: var(--red); }
.journey-rail { position: absolute; left: 0; top: 0; width: 1px; height: calc(var(--jp, 0) * 100%); background: var(--ink); }
.journey-steps { position: relative; }
@media (min-width: 901px) {
  .journey.pinning .journey-track { height: 280vh; }
  .journey.pinning .journey-stage { position: sticky; top: 112px; height: calc(100vh - 160px); min-height: 520px; }
}
@media (max-width: 900px) {
  .journey-stage { grid-template-columns: 1fr; gap: 0; }
  .journey-media { display: none; }
  .jstep { border-left: 0; padding: 0 0 48px; }
  .jstep::before { display: none; }
  .jstep .ph { display: block; aspect-ratio: 4 / 3; margin-bottom: 20px; }
  .journey-rail { display: none; }
}

/* ---------- Reveal band (used once per page, big) ---------- */
.reveal { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-panel); min-height: clamp(380px, 52vh, 560px); display: flex; align-items: flex-end; isolation: isolate;
  clip-path: inset(calc((1 - var(--rp, 1)) * 10%) calc((1 - var(--rp, 1)) * 16%) round var(--r-panel)); }
.reveal .ph { position: absolute; inset: 0; border-radius: 0; z-index: -2; }
.reveal .ph img { transform: scale(calc(1.15 - var(--rp, 1) * .15)); }
.reveal::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,22,40,.05) 20%, rgba(10,22,40,.8) 100%); }
.reveal figcaption { padding: clamp(28px, 4vw, 56px); color: #fff; }
.reveal figcaption .label { color: rgba(255,255,255,.75); margin-bottom: 18px; }
.reveal figcaption h2 { max-width: 13em; }

/* ---------- Page images ---------- */
.pair { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; }
.pair .ph { height: clamp(260px, 30vw, 400px); }
.wide-ph { aspect-ratio: 21 / 9; border-radius: var(--r-panel); }
.band.has-ph { grid-template-columns: 1fr minmax(260px, 380px); }
.band.has-ph .ph { aspect-ratio: 4 / 3; border-radius: var(--r-card); }
.band-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 860px) {
  .pair { grid-template-columns: 1fr; }
  .pair .ph { height: auto; aspect-ratio: 4 / 3; }
  .wide-ph { aspect-ratio: 4 / 3; }
  .band.has-ph { grid-template-columns: 1fr; }
}

/* ---------- Reveal ---------- */
.rv-on .rv { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
.rv-on .rv.in { opacity: 1; transform: none; }
.intro { animation: rise .7s var(--ease) both; animation-delay: var(--d, 0s); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv-on .rv { opacity: 1; transform: none; }
  .hero-img { transform: none; inset: 0; }
  .reveal { clip-path: inset(0 round var(--r-panel)); }
  .reveal .ph img { transform: none; }
}
@media print { .strip, .header, .dock, .drawer { display: none !important; } }
.cost.single { grid-template-columns: 1fr; }
.cost.single .cost-main { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: end; }
.cost.single .cost-main > .seg { grid-column: 1 / -1; justify-self: start; }
.cost.single .pct { margin: 8px 0 0; }
.cost.single .bar-wrap { padding-bottom: 14px; }
@media (max-width: 900px) { .cost.single .cost-main { grid-template-columns: 1fr; } }
.no-js .journey-media .ph:first-child { opacity: 1; transform: none; }
