/* Layout: a single scrolling page organised like a product portfolio (hero, about, work,
   experience, how I work, contact), with a draggable night map of Abuja as the hero.
   Each project opens its own case-study page (work/#id), styled from this file too.
   Deliberately single-theme: it is always after dark here. The sky shifts with real Abuja time. */
:root {
  --night: #090D16;
  --panel: #0E131E;
  --surface: #161D2B;
  --ink: #EEF0F4;
  --muted: #8C94A5;
  --line: #222A3B;
  --taxi: #3FCB74;
  --taxi-ink: #0B1A11;
  --site: #7DB4FF;
  --work: #F2B53A;
  --window: #FFD98A;

  --land: #111725;
  --block: #182031;
  --block-edge: #20293D;
  --road: #1D2638;
  --road-main: #273148;
  --water: #060A12;
  --water-line: #0F1729;
  --area: #46506A;
  color-scheme: dark;

  --font-sans: "Familjen Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --s-hero: clamp(44px, 6.4vw, 96px);
  --s-h2: clamp(34px, 4.6vw, 64px);
  --s-label: 11px;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
:root[data-sky="dusk"] {
  --land: #17142A; --block: #211B35; --block-edge: #2B2442; --road: #241E3A; --road-main: #32294C;
  --water: #0B0B1E; --water-line: #17163A; --area: #5A4F78;
}
:root[data-sky="day"] {
  --land: #1C2433; --block: #252F42; --block-edge: #2F3A50; --road: #2A3448; --road-main: #36425A;
  --water: #0E1A2E; --water-line: #18284A; --area: #5E6A86;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--night); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--taxi); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.kicker { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: var(--s-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--taxi); }
h2 { margin-top: 14px; font-size: var(--s-h2); font-weight: 600; letter-spacing: -0.035em; line-height: 1; text-wrap: balance; max-width: 18ch; }
.section-intro { margin-top: 16px; max-width: 58ch; color: var(--muted); font-size: 17px; }
.sub-head { margin-top: 64px; font-family: var(--font-mono); font-size: var(--s-label); font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.sub-intro { margin-top: 8px; color: var(--muted); max-width: 56ch; }
.section { padding-top: clamp(96px, 12vw, 160px); }
.flash { animation: flash 1.4s var(--ease); }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 2px var(--taxi); border-radius: 14px; } 100% { box-shadow: 0 0 0 2px transparent; } }

/* ---------- Header ---------- */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(9, 13, 22, 0.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.head-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav a:hover { color: var(--ink); }
.cv-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 10px; background: var(--taxi); color: var(--taxi-ink); font-size: 14px; font-weight: 700; text-decoration: none; transition: filter 0.2s, transform 0.2s; }
.cv-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.head-cv { padding: 7px 13px; font-size: 13px; }

/* ---------- Hero: copy beside the city ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: min(860px, calc(100vh - 60px)); border-bottom: 1px solid var(--line); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 48px max(var(--gutter), env(safe-area-inset-left, 0px)) 48px max(var(--gutter), env(safe-area-inset-left, 0px)); min-width: 0; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--taxi); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63, 203, 116, 0.6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(63, 203, 116, 0); } }
h1 { font-size: clamp(22px, 2vw, 28px); font-weight: 500; letter-spacing: -0.01em; }
.hero-name { display: block; margin-top: 4px; font-size: var(--s-hero); font-weight: 700; letter-spacing: -0.04em; line-height: 0.92; text-transform: uppercase; color: var(--ink); text-shadow: 0 0 40px rgba(63, 203, 116, 0.18); }
.role-line { font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; color: var(--taxi); letter-spacing: -0.015em; }
.hero-intro { color: var(--muted); font-size: 17px; max-width: 46ch; }
.tags, .tool-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; background: rgba(63, 203, 116, 0.12); color: var(--taxi); }
.tool-chips li { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.pads { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.pad { display: flex; flex-direction: column; gap: 4px; padding: 12px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-size: 13px; font-weight: 600; transition: transform 0.15s, border-color 0.2s, background-color 0.2s; }
.pad:hover { border-color: var(--taxi); transform: translateY(-2px); }
.pad:active { transform: translateY(1px) scale(0.98); background: rgba(63, 203, 116, 0.14); }
.pad-num { font-family: var(--font-mono); font-size: 18px; color: var(--taxi); }
.hint { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); line-height: 1.7; }

/* ---------- The map ---------- */
.map { position: relative; overflow: hidden; min-height: 520px; background: var(--water); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; border-left: 1px solid var(--line); }
.map.grabbing { cursor: grabbing; }
.city { position: absolute; left: 0; top: 0; width: 2400px; height: 1500px; transform-origin: 0 0; will-change: transform; overflow: visible; }
.land { fill: var(--land); transition: fill 0.6s; }
.water { fill: var(--water); stroke: var(--water-line); stroke-width: 3; }
.wave { fill: none; stroke: var(--water-line); stroke-width: 2; stroke-linecap: round; }
.park { fill: #10221A; stroke: #183528; stroke-width: 3; }
.rock { fill: #0B0E15; stroke: #2A3247; stroke-width: 3; }
.rock-ridge { fill: none; stroke: #232B3D; stroke-width: 3; stroke-linecap: round; }
.blk { fill: var(--block); stroke: var(--block-edge); stroke-width: 1; }
.win { fill: var(--window); }
.win.flicker { animation: flicker var(--dur, 6s) var(--delay, 0s) infinite; }
@keyframes flicker { 0%, 46% { opacity: 1; } 48%, 70% { opacity: 0.1; } 72%, 100% { opacity: 1; } }
.road { fill: none; stroke: var(--road); stroke-width: 10; stroke-linecap: round; }
.road.main { stroke: var(--road-main); stroke-width: 16; }
.taxi { fill: var(--taxi); }
.taxi-stripe { fill: #FFFFFF; opacity: 0.9; }
.area { font-family: var(--font-mono); font-size: 22px; letter-spacing: 0.35em; text-transform: uppercase; fill: var(--area); }
.area.feature { font-style: italic; letter-spacing: 0.3em; }
#glow stop { stop-color: var(--taxi); }
.marker { cursor: pointer; }
.marker.off { display: none; }
.marker .halo { fill: url(#glow); transform-box: fill-box; transform-origin: center; transition: transform 0.4s var(--ease); }
.marker.site .halo { fill: var(--site); opacity: 0.18; }
.marker.work .halo { fill: var(--work); opacity: 0.18; }
.marker:hover .halo, .marker.active .halo { transform: scale(1.7); }
.marker .badge { stroke: var(--night); stroke-width: 4; }
.marker.app .badge { fill: var(--taxi); }
.marker.site .badge { fill: var(--site); }
.marker.work .badge { fill: var(--work); }
.marker.landmark .badge { fill: var(--night); stroke: var(--ink); stroke-width: 3; }
.marker .badge-icon { fill: none; stroke: var(--taxi-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.marker.landmark .badge-icon { stroke: var(--ink); }
.marker text { paint-order: stroke; stroke: var(--night); stroke-width: 8px; stroke-linejoin: round; }
.marker .m-name { font-family: var(--font-sans); font-size: 30px; font-weight: 600; fill: var(--ink); }
.marker .m-type { font-family: var(--font-mono); font-size: 15px; fill: var(--muted); }

.tip {
  position: absolute; z-index: 3; left: 0; top: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 8px; padding-right: 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  pointer-events: none; white-space: nowrap;
}
.tip img { width: 104px; height: 58px; object-fit: cover; border-radius: 7px; transition: opacity 0.15s; }
.tip img.logo-tip { width: 58px; height: 58px; border-radius: 12px; object-fit: contain; background: #fff; }
#tipName { font-weight: 600; font-size: 15px; }
#tipType { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.hud { position: absolute; z-index: 3; top: 16px; right: max(16px, env(safe-area-inset-right, 0px)); display: flex; align-items: center; gap: 10px; }
#skyLabel { padding: 7px 12px; border-radius: 999px; background: rgba(14, 19, 30, 0.85); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.zoom { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: rgba(14, 19, 30, 0.85); }
.zoom button { width: 38px; height: 36px; font-size: 18px; }
.zoom button + button { border-left: 1px solid var(--line); }
.zoom button:hover { background: var(--surface); }
.kind { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 7px; color: var(--taxi-ink); }
.kind .ico { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kind-app { background: var(--taxi); }
.kind-site { background: var(--site); }
.kind-work { background: var(--work); }
.kind-landmark { background: transparent; border: 2px solid var(--ink); border-radius: 50%; color: var(--ink); }
.legend { position: absolute; z-index: 3; left: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px 14px; max-width: calc(100% - 32px); padding: 10px 12px; border-radius: 12px; background: rgba(14, 19, 30, 0.88); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 7px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 5vw, 72px); margin-top: 36px; align-items: start; }
.about-copy { display: grid; gap: 16px; color: var(--muted); font-size: 17px; max-width: 62ch; }
.about-copy .lead { color: var(--ink); font-size: 21px; line-height: 1.4; }
.about-side { display: grid; gap: 22px; }
.quote { padding: 22px 24px; border-left: 3px solid var(--taxi); border-radius: 0 14px 14px 0; background: var(--surface); font-size: 22px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.counters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.counters div { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); }
.counters dd { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.counters dt { font-family: var(--font-mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.bring { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; margin-top: 18px; }
.bring-card { padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.bring-card h4 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 17px; font-weight: 600; }
.bring-card h4 span { font-family: var(--font-mono); font-size: 11px; color: var(--taxi); }
.bring-card ul { display: grid; gap: 4px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.bring-card li::before { content: "· "; color: var(--taxi); }
.bring-card.off { border-style: dashed; border-color: var(--work); }
.bring-card.off h4 span, .bring-card.off li::before { color: var(--work); }
.beyond { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.beyond-card { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); }
.beyond-card h4 { font-size: 16px; font-weight: 600; }
.beyond-card p { margin-top: 6px; font-size: 14px; color: var(--muted); }

/* ---------- Work ---------- */
.work-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; margin-top: 32px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.filter:hover { color: var(--ink); border-color: var(--muted); }
.filter.on { background: var(--taxi); border-color: var(--taxi); color: var(--taxi-ink); }
.f-count { font-family: var(--font-mono); font-size: 10px; opacity: 0.75; }
.pager { display: flex; align-items: center; gap: 8px; }
.count { font-family: var(--font-mono); font-size: 12px; color: var(--muted); min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); font-size: 16px; transition: border-color 0.2s; }
.arrow:hover { border-color: var(--ink); }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: min(340px, 82%); gap: 16px; margin-top: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; }
.track > li { scroll-snap-align: start; }
.track-card { display: flex; flex-direction: column; height: 100%; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform 0.25s var(--ease), border-color 0.2s; }
.track-card:hover { transform: translateY(-4px); border-color: var(--taxi); }
.t-media { display: block; aspect-ratio: 16 / 9; background: var(--panel); overflow: hidden; }
.t-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.track-card:hover .t-media img { transform: scale(1.04); }
.t-art { display: grid; place-items: center; height: 100%; padding: 16px; background: radial-gradient(circle at 80% 20%, rgba(255, 217, 138, 0.22), transparent 50%), linear-gradient(160deg, #1A2338, #0E131E); }
.t-art strong { font-size: 28px; letter-spacing: -0.03em; }
.t-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.t-num { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.t-label { font-family: var(--font-mono); font-size: 10.5px; color: var(--taxi); text-transform: uppercase; letter-spacing: 0.1em; }
.t-title { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.t-metric { font-size: 14px; color: var(--work); font-weight: 600; }
.app-icon { display: inline-block; vertical-align: middle; width: 44px; height: 44px; margin-right: 12px; border-radius: 11px; object-fit: cover; }
.app-icon.sm { width: 26px; height: 26px; margin-right: 8px; border-radius: 7px; vertical-align: -4px; }
.more-link { margin-top: 18px; }
.more-link a { color: var(--muted); text-decoration: none; font-size: 15px; }
.more-link a:hover { color: var(--taxi); }

/* ---------- Experience ---------- */
.timeline { margin-top: 36px; display: grid; }
.job { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px 32px; padding-block: 28px; border-top: 1px solid var(--line); }
.job:last-child { border-bottom: 1px solid var(--line); }
.job-when { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 6px; }
.job-main { display: grid; gap: 12px; min-width: 0; }
.job-head { display: flex; align-items: center; gap: 14px; }
.job h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.job-co { color: var(--work); font-weight: 600; font-size: 15px; }
.job-summary { max-width: 64ch; }
.job-points { display: grid; gap: 4px; color: var(--muted); font-size: 15px; max-width: 66ch; }
.job-points li::before { content: "– "; color: var(--taxi); }
.shipped { font-size: 15px; color: var(--muted); }
.shipped a { color: var(--taxi); font-weight: 600; text-decoration: none; margin-left: 4px; }
.co-logo { flex: none; width: 52px; height: 52px; border-radius: 13px; object-fit: contain; background: #fff; }
.co-initials { display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--work); font-family: var(--font-mono); font-size: 18px; }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; }
.store-badge { display: inline-flex; border-radius: 9px; transition: transform 0.2s; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { display: block; height: 44px; width: auto; }
.ext { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; text-decoration: none; }
.ext:hover { border-color: var(--taxi); }
.cred-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.creds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; margin-top: 16px; }
.creds li { display: grid; gap: 6px; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.cred-kind { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--taxi); }
.creds h4 { font-size: 17px; font-weight: 600; }
.cred-note { color: var(--work); font-weight: 600; font-size: 14px; }
.cred-sub { color: var(--muted); font-size: 14px; }

/* ---------- How I work ---------- */
.route { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 36px; counter-reset: stop; }
.route li { position: relative; display: grid; gap: 6px; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), transparent); }
.r-num { font-family: var(--font-mono); font-size: 13px; color: var(--taxi); }
.route h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.r-step { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.route li > p:last-child { color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */
.contact h2 { max-width: 16ch; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 32px; }
.email { font-size: clamp(22px, 3vw, 36px); font-weight: 600; letter-spacing: -0.02em; overflow-wrap: anywhere; text-decoration-color: var(--taxi); text-underline-offset: 6px; }
.copy { font-family: var(--font-mono); font-size: 11px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }
.copy:hover { border-color: var(--ink); }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 24px; }
.socials-icons { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.socials-icons a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s; }
.socials-icons a:hover, .socials-icons a:focus-visible { background: var(--taxi); border-color: var(--taxi); color: var(--taxi-ink); transform: translateY(-2px); }
.socials-icons svg { width: 19px; height: 19px; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: clamp(96px, 12vw, 140px); padding-block: 24px calc(32px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* Back to the top: shows once the map is behind you */
.to-top { position: fixed; z-index: 25; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--taxi); color: var(--taxi-ink); font-size: 20px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.25); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.25s, transform 0.3s var(--ease), filter 0.2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { filter: brightness(1.08); }
.to-top:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 50; max-width: calc(100% - 32px); transform: translate(-50%, 12px); opacity: 0; pointer-events: none; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--night); font-family: var(--font-mono); font-size: 11px; transition: opacity 0.25s, transform 0.3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.to-top.show ~ .toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }

/* ---------- Case-study page (work/) ---------- */
.case { padding-top: 40px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-decoration: none; letter-spacing: 0.06em; text-transform: uppercase; }
.back:hover { color: var(--taxi); }
.case-num { margin-top: 28px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.case h1 { margin-top: 10px; font-size: clamp(48px, 8vw, 112px); font-weight: 700; letter-spacing: -0.045em; line-height: 0.92; }
.case-line { margin-top: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--taxi); }
.case-summary { margin-top: 18px; max-width: 52ch; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.4; }
.case-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; margin-top: 36px; }
.case-meta div { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); }
.case-meta dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.case-meta dd { margin-top: 6px; font-weight: 600; }
.case-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.case-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 5vw, 72px); margin-top: 56px; align-items: start; }
.case-story { display: grid; gap: 16px; font-size: 17px; color: var(--muted); max-width: 64ch; }
.case-story h2 { margin: 0; font-size: 13px; font-family: var(--font-mono); font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--taxi); }
.case-story p:first-of-type { color: var(--ink); }
.metric { padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.metric p:first-child { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.metric strong { display: block; margin-top: 8px; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.02em; line-height: 1.1; color: var(--work); }
.took { margin-top: 18px; }
.took h3 { font-family: var(--font-mono); font-size: 10px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.took ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.took li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; }
.case-media { margin-top: 56px; }
.case-media h2 { font-size: var(--s-h2); }
.case-art { display: grid; place-items: center; aspect-ratio: 16 / 9; margin-top: 18px; border-radius: 18px; border: 1px solid var(--line); background: radial-gradient(circle at 80% 20%, rgba(255, 217, 138, 0.22), transparent 50%), linear-gradient(160deg, #1A2338, #0E131E); text-align: center; padding: 24px; }
.case-art strong { display: block; font-size: clamp(40px, 6vw, 80px); letter-spacing: -0.04em; }
.case-art span { color: var(--work); font-weight: 600; }
.gallery { display: grid; gap: 10px; margin-top: 18px; }
.g-stage { aspect-ratio: 16 / 9; max-width: 100%; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.g-stage img, .g-stage video { display: block; width: 100%; height: 100%; object-fit: cover; }
.g-stage video { object-fit: contain; background: #000; }
.g-caption { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.g-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.g-thumb { position: relative; flex: none; width: 112px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--surface); opacity: 0.55; transition: opacity 0.2s; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-thumb:hover { opacity: 0.85; }
.g-thumb.on { opacity: 1; box-shadow: inset 0 0 0 2px var(--taxi); }
.g-thumb.is-video::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5z' fill='%23fff' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat, rgba(0, 0, 0, 0.35); }
.case-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 64px; }
.case-nav a { display: grid; gap: 4px; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); text-decoration: none; transition: border-color 0.2s; }
.case-nav a:hover { border-color: var(--taxi); }
.case-nav span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.case-nav strong { font-size: 22px; letter-spacing: -0.02em; }
.case-nav .next { text-align: right; }

/* ---------- Phone ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .map { height: 62vh; min-height: 380px; border-left: 0; border-top: 1px solid var(--line); touch-action: pan-y; }
  .about-grid, .case-body { grid-template-columns: minmax(0, 1fr); }
  .route { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .head-cv { margin-left: auto; }
  .pads { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .job { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .beyond, .route, .case-nav { grid-template-columns: minmax(0, 1fr); }
  .case-nav .next { text-align: left; }
  .legend { bottom: 12px; left: 12px; }
  .tip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.metric-list { display: grid; gap: 4px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.metric-list li::before { content: ""; display: inline-block; width: 0.6em; height: 0.6em; margin-right: 0.45em; vertical-align: 0.05em; background: var(--taxi); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6l7 11H5z' fill='%23000' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6l7 11H5z' fill='%23000' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* =====================================================================
   The night ride: Abuja After Dark's own take on the portfolio layout
   ===================================================================== */
:root { --sign: #0B6B3A; --sign-ink: #FFFFFF; --t: 0; }

/* Sky: deep night at pickup, warming to sunrise by the last stop */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 55% at 50% 115%, rgba(255, 150, 80, calc(var(--t) * var(--t) * 0.5)), transparent 62%),
    linear-gradient(180deg,
      color-mix(in srgb, #090D16 calc(100% - var(--t) * 55%), #24163A),
      color-mix(in srgb, #090D16 calc(100% - var(--t) * 75%), #4A2A3A));
}
body { background: var(--night); }

/* Progress: the taxi drives a road under the header on smaller screens, down a rail of stops on wide ones */
.ride-bar { height: 26px; padding: 0 calc(var(--gutter) + 6px); border-top: 1px solid var(--line); overflow: hidden; }
.rb-track { position: relative; display: flex; align-items: center; justify-content: space-between; height: 100%; max-width: var(--max); margin: 0 auto; }
.rb-road { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); pointer-events: none; }
.rb-driven { position: absolute; left: 0; top: -2px; height: 6px; width: calc(var(--driven, 0) * 100%); background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--taxi) 45%, transparent) 0 3px, transparent 3px 7px); -webkit-mask: linear-gradient(#000 0 2px, transparent 2px 4px, #000 4px); mask: linear-gradient(#000 0 2px, transparent 2px 4px, #000 4px); }
.rb-now { position: absolute; left: 0; top: 0; height: 2px; width: calc(var(--now, 0) * 100%); background: linear-gradient(90deg, color-mix(in srgb, var(--taxi) 25%, transparent), var(--taxi)); }
.rb-stop { position: relative; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; margin: 0 -13px; }
.rb-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--night); border: 2px solid var(--muted); transition: background-color 0.2s, border-color 0.2s, transform 0.2s; }
.rb-stop.passed .rb-dot { background: var(--taxi); border-color: var(--taxi); }
.rb-stop.on .rb-dot { border-color: var(--taxi); transform: scale(1.35); }
.rb-stop.driven .rb-dot { background: color-mix(in srgb, var(--taxi) 30%, var(--night)); border-color: color-mix(in srgb, var(--taxi) 70%, var(--night)); }
/* the taxi faces right: headlights at the front, tail lights at the back */
.rb-taxi { position: absolute; z-index: 2; top: 50%; left: calc(var(--now, 0) * 100%); width: 22px; height: 13px; margin: -6.5px 0 0 -11px; border-radius: 4px; background: linear-gradient(transparent 4.5px, #fff 4.5px 8.5px, transparent 8.5px), var(--taxi); box-shadow: 0 0 12px rgba(63, 203, 116, 0.6); transition: left 0.12s linear; pointer-events: none; }
.rb-taxi::before, .rb-taxi::after { content: ""; position: absolute; top: 2px; bottom: 2px; width: 2px; border-radius: 1px; transition: background 0.15s, box-shadow 0.15s; }
.rb-taxi::before { right: -1px; background: linear-gradient(#FFE9A8 0 3px, transparent 3px 6px, #FFE9A8 6px); box-shadow: 6px 0 10px rgba(255, 233, 168, 0.45); }
.rb-taxi::after { left: -1px; background: linear-gradient(#8A2A2A 0 3px, transparent 3px 6px, #8A2A2A 6px); }
.rb-beam { position: absolute; left: 100%; top: 50%; width: 64px; height: 30px; margin-top: -15px; opacity: 0; background: radial-gradient(ellipse 100% 60% at 0 50%, rgba(255, 233, 168, 0.55), rgba(255, 233, 168, 0.18) 55%, transparent 100%); clip-path: polygon(0 38%, 0 62%, 100% 100%, 100% 0); mix-blend-mode: screen; transition: opacity 0.3s; }
:root[data-sky="night"] .rb-beam { opacity: 1; }
:root[data-sky="dusk"] .rb-beam { opacity: 0.45; }
.ride-bar.reversing .rb-beam { opacity: 0.15; }
.rb-gear { position: absolute; right: calc(100% + 6px); top: 50%; transform: translate(4px, -50%); opacity: 0; padding: 1px 4px; border-radius: 3px; background: #E5484D; color: #fff; font-family: var(--font-mono); font-size: 8px; font-weight: 700; line-height: 1.3; transition: opacity 0.15s, transform 0.15s; }
.ride-bar.reversing .rb-taxi { box-shadow: 0 0 12px rgba(229, 72, 77, 0.45); }
.ride-bar.reversing .rb-taxi::before { background: linear-gradient(#8A7A55 0 3px, transparent 3px 6px, #8A7A55 6px); box-shadow: none; }
.ride-bar.reversing .rb-taxi::after { background: linear-gradient(#FF5A5F 0 3px, #fff 3px 6px, #FF5A5F 6px); box-shadow: -4px 0 8px rgba(255, 90, 95, 0.75), -10px 0 16px rgba(255, 255, 255, 0.35); }
.ride-bar.reversing .rb-gear { opacity: 1; transform: translate(0, -50%); animation: rail-reverse 0.5s steps(2, jump-none) infinite; }
.ride-bar.reversing .rb-now { background: linear-gradient(90deg, color-mix(in srgb, var(--taxi) 25%, transparent), #E5484D); }
@media (max-width: 1239px) { html { scroll-padding-top: 100px; } }
@media (prefers-reduced-motion: reduce) { .rb-taxi { transition: none; } .ride-bar.reversing .rb-gear { animation: none; } }
.rail { display: none; }
@media (min-width: 1240px) {
  .ride-bar { display: none; }
  .rail { position: fixed; z-index: 20; left: 18px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; justify-content: space-between; height: min(58vh, 520px); width: 22px; }
  .rail-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: repeating-linear-gradient(var(--line) 0 6px, transparent 6px 12px); }
  .rail-stop { position: relative; display: grid; place-items: center; width: 22px; height: 22px; text-decoration: none; }
  .rail-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--night); border: 2px solid var(--muted); transition: background-color 0.2s, border-color 0.2s, transform 0.2s; }
  .rail-stop.passed .rail-dot { background: var(--taxi); border-color: var(--taxi); }
  .rail-stop.on .rail-dot { border-color: var(--taxi); transform: scale(1.35); }
  .rail-label { position: absolute; left: 30px; top: 50%; transform: translate(-6px, -50%); opacity: 0; white-space: nowrap; padding: 6px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
  .rail-label small { display: block; font-family: var(--font-mono); font-size: 10px; font-weight: 400; color: var(--taxi); }
  .rail-stop:hover .rail-label, .rail-stop:focus-visible .rail-label { opacity: 1; transform: translate(0, -50%); }
  .rail-stop.driven .rail-dot { background: color-mix(in srgb, var(--taxi) 30%, var(--night)); border-color: color-mix(in srgb, var(--taxi) 70%, var(--night)); }
  .rail-taxi { position: absolute; z-index: 2; left: 50%; top: calc(var(--now, 0) * 100%); width: 14px; height: 22px; margin: -11px 0 0 -7px; border-radius: 5px; background: linear-gradient(90deg, transparent 5px, #fff 5px 9px, transparent 9px), var(--taxi); box-shadow: 0 0 14px rgba(63, 203, 116, 0.6); transition: top 0.12s linear; pointer-events: none; }
  /* Road already driven: tyre tracks up to the furthest point, a solid lit lane up to the taxi */
  .rail-driven, .rail-now { position: absolute; left: 50%; top: 0; pointer-events: none; }
  .rail-driven { width: 6px; margin-left: -3px; height: calc(var(--driven, 0) * 100%); background: repeating-linear-gradient(color-mix(in srgb, var(--taxi) 45%, transparent) 0 3px, transparent 3px 7px); -webkit-mask: linear-gradient(90deg, #000 0 2px, transparent 2px 4px, #000 4px); mask: linear-gradient(90deg, #000 0 2px, transparent 2px 4px, #000 4px); }
  .rail-now { width: 2px; margin-left: -1px; height: calc(var(--now, 0) * 100%); background: linear-gradient(color-mix(in srgb, var(--taxi) 25%, transparent), var(--taxi)); }
  /* Headlights at the front (down the page), tail lights at the back */
  .rail-taxi::before, .rail-taxi::after { content: ""; position: absolute; left: 2px; right: 2px; height: 2px; border-radius: 1px; transition: background 0.15s, box-shadow 0.15s; }
  .rail-taxi::before { bottom: -1px; background: linear-gradient(90deg, #FFE9A8 0 3px, transparent 3px 7px, #FFE9A8 7px); box-shadow: 0 6px 10px rgba(255, 233, 168, 0.45); }
  .rail-taxi::after { top: -1px; background: linear-gradient(90deg, #8A2A2A 0 3px, transparent 3px 7px, #8A2A2A 7px); }
  /* Headlight beam on the road ahead: full after dark, softer at dusk, off in the day */
  .rail-beam { position: absolute; left: 50%; top: 100%; width: 44px; height: 78px; margin-left: -22px; opacity: 0; background: radial-gradient(ellipse 60% 100% at 50% 0, rgba(255, 233, 168, 0.55), rgba(255, 233, 168, 0.18) 55%, transparent 100%); clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); mix-blend-mode: screen; transition: opacity 0.3s; }
  :root[data-sky="night"] .rail-beam { opacity: 1; }
  :root[data-sky="dusk"] .rail-beam { opacity: 0.45; }
  .rail.reversing .rail-beam { opacity: 0.15; }
  .rail-gear { position: absolute; left: 20px; top: 50%; transform: translate(-4px, -50%); opacity: 0; padding: 2px 5px; border-radius: 4px; background: #E5484D; color: #fff; font-family: var(--font-mono); font-size: 9px; font-weight: 700; line-height: 1.3; transition: opacity 0.15s, transform 0.15s; }
  /* In reverse: the taxi keeps facing down the road, headlights dip, reverse lights glow behind it */
  .rail.reversing .rail-taxi::before { background: linear-gradient(90deg, #8A7A55 0 3px, transparent 3px 7px, #8A7A55 7px); box-shadow: none; }
  .rail.reversing .rail-taxi::after { background: linear-gradient(90deg, #FF5A5F 0 3px, #fff 3px 7px, #FF5A5F 7px); box-shadow: 0 -4px 8px rgba(255, 90, 95, 0.75), 0 -10px 16px rgba(255, 255, 255, 0.35); }
  .rail.reversing .rail-taxi { box-shadow: 0 0 14px rgba(229, 72, 77, 0.45); }
  .rail.reversing .rail-gear { opacity: 1; transform: translate(0, -50%); animation: rail-reverse 0.5s steps(2, jump-none) infinite; }
  .rail.reversing .rail-now { background: linear-gradient(color-mix(in srgb, var(--taxi) 25%, transparent), #E5484D); }
}
@keyframes rail-reverse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .rail.reversing .rail-gear { animation: none; } }

/* Road signs as section headings (Abuja highway green) */
.sign { display: inline-flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 9px; background: var(--sign); color: var(--sign-ink); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85), 0 10px 30px -14px rgba(0, 0, 0, 0.7); }
.sign-exit { padding: 3px 8px; border-radius: 5px; border: 1.5px solid var(--sign-ink); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.sign-name { font-size: clamp(16px, 1.6vw, 20px); font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.sign-arrow { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; background: var(--sign-ink); color: var(--sign); font-weight: 700; }
.section > h2 { margin-top: 22px; }

/* Hero additions */
.hero-copy { background: linear-gradient(90deg, rgba(9, 13, 22, 0.6), transparent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tour-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px; background: var(--taxi); color: var(--taxi-ink); font-weight: 700; font-size: 15px; transition: transform 0.15s, filter 0.2s; }
.tour-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.tour-btn[aria-pressed="true"] { background: var(--work); }
.ghost-btn { display: inline-flex; align-items: center; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line); font-weight: 600; font-size: 15px; text-decoration: none; transition: border-color 0.2s; }
.ghost-btn:hover { border-color: var(--taxi); }
.pad-num { font-size: 15px; }
.tour-caption { position: absolute; z-index: 4; left: 16px; top: 16px; max-width: calc(100% - 200px); padding: 10px 14px; border-radius: 12px; background: rgba(14, 19, 30, 0.92); border: 1px solid var(--taxi); font-weight: 600; font-size: 14px; }
.tour-caption small { font-family: var(--font-mono); font-size: 10px; color: var(--taxi); margin-right: 6px; }
.tour-caption a { color: var(--taxi); }

/* Destinations: project cards as ride tickets */
.route-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.route-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.t-body { position: relative; border-top: 2px dashed var(--line); }
.t-body::before, .t-body::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--night); }
.t-body::before { left: -9px; } .t-body::after { right: -9px; }
.t-go { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 700; color: var(--taxi); }
.track-card:hover .t-go { text-decoration: underline; text-underline-offset: 4px; }

/* Your driver: a profile card beside the story */
.driver { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 5vw, 72px); margin-top: 28px; align-items: start; }
.driver-card { position: sticky; top: 90px; display: grid; gap: 18px; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.8); }
.driver-top { display: flex; align-items: center; gap: 14px; }
.driver-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #000; border: 3px solid var(--taxi); }
.driver-name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.driver-role { color: var(--muted); font-size: 14px; }
.driver-badges { display: grid; gap: 6px; font-size: 14px; }
.driver-badges li::before { content: ""; display: inline-block; width: 0.85em; height: 0.85em; margin-right: 0.4em; vertical-align: -0.08em; background: var(--taxi); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.driver-card .counters div { background: var(--panel); }
.driver-story h2 { margin-top: 0; }
.driver-story .about-copy { margin-top: 20px; }
.driver-story .quote { margin-top: 24px; }

/* Trip history: pickup → drop-off */
.trips { margin-top: 36px; display: grid; }
.trip { grid-template-columns: 200px minmax(0, 1fr); }
.trip-route { position: relative; display: grid; gap: 22px; align-content: start; padding-top: 4px; }
.trip-route::before { content: ""; position: absolute; left: 6px; top: 18px; height: 30px; border-left: 2px dashed var(--line); }
.trip-route p { display: flex; gap: 10px; align-items: flex-start; font-family: var(--font-mono); font-size: 12px; }
.trip-route small { display: block; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.dot { flex: none; width: 14px; height: 14px; margin-top: 2px; border-radius: 50%; }
.dot.pick { border: 3px solid var(--taxi); background: var(--night); }
.dot.drop { background: var(--work); }
.dot.live { background: var(--taxi); animation: pulse 2.4s infinite; }

/* The route: a road with a taxi driving along it */
.road { position: relative; margin-top: 40px; padding-top: 44px; --p: 0; }
.road-line { position: absolute; left: 0; right: 0; top: 12px; height: 12px; border-radius: 6px; background: linear-gradient(90deg, transparent 0 0), var(--road-main); }
.road-line::after { content: ""; position: absolute; left: 8px; right: 8px; top: 5px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 217, 138, 0.8) 0 14px, transparent 14px 28px); }
.road-taxi { position: absolute; top: 6px; left: calc(var(--p) * (100% - 34px)); width: 34px; height: 24px; border-radius: 7px; background: linear-gradient(transparent 9px, #fff 9px 14px, transparent 14px), var(--taxi); box-shadow: 0 0 18px rgba(63, 203, 116, 0.55); transition: left 0.15s linear; }
.road .route { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 0; }
.road .route li { padding: 18px; }
.road .route li::before { content: ""; position: absolute; top: -38px; left: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--night); border: 3px solid var(--taxi); }
.road .route h3 { font-size: 20px; }

/* Book a ride */
.booking { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 5vw, 72px); margin-top: 22px; align-items: center; }
.booking-copy h2 { margin-top: 0; }
.ride-card { display: grid; gap: 16px; padding: 22px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(63, 203, 116, 0.15); }
.ride-head { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--taxi); }
.ride-stops { position: relative; display: grid; gap: 14px; padding: 14px; border-radius: 16px; background: var(--panel); }
.ride-stops::before { content: ""; position: absolute; left: 20px; top: 32px; height: 26px; border-left: 2px dashed var(--line); }
.ride-stops p { display: flex; gap: 12px; align-items: flex-start; }
.ride-stops small { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ride-stops strong { font-size: 16px; }
.ride-driver { display: flex; align-items: center; gap: 12px; }
.ride-driver img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #000; }
.ride-driver strong { display: block; font-size: 15px; }
.ride-driver small { display: block; color: var(--muted); font-size: 12.5px; }
.ride-request { display: flex; justify-content: center; padding: 15px; border-radius: 14px; background: var(--taxi); color: var(--taxi-ink); font-weight: 700; font-size: 16px; text-decoration: none; transition: filter 0.2s, transform 0.15s; }
.ride-request:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ride-card .email-row { margin-top: 0; justify-content: space-between; }
.ride-card .email { font-size: 15px; font-weight: 600; }
.footer p a { color: var(--taxi); }

@media (max-width: 1100px) {
  .road .route { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .road { padding-top: 0; padding-left: 0; }
  .road-line, .road-taxi { display: none; }
  .road .route li::before { display: none; }
}
@media (max-width: 960px) {
  .driver, .booking { grid-template-columns: minmax(0, 1fr); }
  .driver-card { position: static; }
  .hero-copy { background: none; }
}
@media (max-width: 640px) {
  .road .route { grid-template-columns: minmax(0, 1fr); }
  .trip { grid-template-columns: minmax(0, 1fr); }
  .trip-route { grid-auto-flow: column; justify-content: start; gap: 22px; }
  .trip-route::before { display: none; }
  .tour-caption { max-width: calc(100% - 32px); top: auto; bottom: 64px; }
  .legend { transition: opacity 0.25s ease; }
  .tour-caption:not([hidden]) ~ .legend { opacity: 0; visibility: hidden; } /* the caption takes the key's spot while touring */
  .sign { gap: 8px; }
}

/* ---------- First view: markers arrive, ping, and a hint invites exploring ---------- */
.marker { animation: marker-in 0.7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 300ms); }
@keyframes marker-in { from { opacity: 0; } }
.marker .ping { fill: none; stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; pointer-events: none; animation: ping 3s ease-out infinite; animation-delay: calc(var(--i, 0) * 260ms + 1.4s); }
.marker.app .ping { stroke: var(--taxi); }
.marker.site .ping { stroke: var(--site); }
.marker.work .ping { stroke: var(--work); }
.marker.landmark .ping { stroke: var(--ink); }
@keyframes ping { 0% { transform: scale(0.9); opacity: 0.75; } 60%, 100% { transform: scale(2.6); opacity: 0; } }
.marker.active .badge { stroke: var(--ink); stroke-width: 5; }
.map-hint {
  position: absolute; z-index: 3; left: 16px; top: 16px; max-width: calc(100% - 290px);
  display: flex; align-items: center; gap: 9px; margin: 0;
  padding: 9px 14px; border-radius: 999px; background: rgba(14, 19, 30, 0.9); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; color: var(--ink);
  transition: opacity 0.4s, transform 0.4s var(--ease);
  pointer-events: none;
}
.map-hint.gone { opacity: 0; transform: translateY(-6px); }
.hint-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--taxi); animation: pulse 2.4s infinite; }
.tour-caption:not([hidden]) ~ .map-hint { top: 72px; }
@media (max-width: 960px) {
  .map-hint { top: auto; bottom: 64px; max-width: calc(100% - 32px); }
  .tour-caption:not([hidden]) ~ .map-hint { top: auto; bottom: 120px; }
}

/* ---------- Route changes: a quick fade-and-rise between pages, a slide between trips ---------- */
@view-transition { navigation: auto; }
.site-head { view-transition-name: site-head; }
.case { view-transition-name: case; }
::view-transition-group(*) { animation-duration: 0.28s; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
::view-transition-old(root), ::view-transition-old(case) { animation: route-out 0.14s ease-in both; }
::view-transition-new(root), ::view-transition-new(case) { animation: route-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
html[data-trip="next"]::view-transition-old(case) { animation-name: trip-out-next; animation-duration: 0.18s; }
html[data-trip="next"]::view-transition-new(case) { animation-name: trip-in-next; }
html[data-trip="prev"]::view-transition-old(case) { animation-name: trip-out-prev; animation-duration: 0.18s; }
html[data-trip="prev"]::view-transition-new(case) { animation-name: trip-in-prev; }
.case.case-in { animation: route-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both; } /* browsers without view transitions */
@keyframes route-out { to { opacity: 0; } }
@keyframes route-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes trip-out-next { to { opacity: 0; transform: translateX(-36px); } }
@keyframes trip-in-next { from { opacity: 0; transform: translateX(36px); } }
@keyframes trip-out-prev { to { opacity: 0; transform: translateX(36px); } }
@keyframes trip-in-prev { from { opacity: 0; transform: translateX(-36px); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .case.case-in { animation: none; }
}

/* ---------- Tap card (touch): a place's preview, with a way in and a way back to the tour ---------- */
.place-card {
  position: absolute; z-index: 5; left: 12px; right: 12px; bottom: 12px; max-width: 440px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 12px;
  padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--taxi);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  animation: card-in 0.25s var(--ease) both; cursor: auto;
}
.place-card img { grid-column: 1; grid-row: 1 / span 2; width: 96px; height: 66px; object-fit: cover; border-radius: 8px; }
.place-card img.logo-tip { width: 66px; height: 66px; border-radius: 12px; object-fit: contain; background: #fff; }
.place-card-text { grid-column: 2; grid-row: 1; min-width: 0; }
.place-card-text p { margin: 0; }
#cardType { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
#cardName { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-card-close { grid-column: 3; grid-row: 1; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: 13px; cursor: pointer; }
.place-card-open { grid-column: 2 / 4; grid-row: 2; justify-self: start; color: var(--taxi); font-weight: 600; font-size: 14px; text-decoration: none; }
.place-card:not([hidden]) ~ .legend, .place-card:not([hidden]) ~ .map-hint { opacity: 0; visibility: hidden; }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .place-card { animation: none; } }
