@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/archivo-black-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Knewave';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/knewave-latin.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --ink: #071523;
  --ink-soft: #10243a;
  --paper: #f7f3ea;
  --muted: #b7c1ce;
  --blue: #319dff;
  --orange: #ff7617;
  --orange-deep: #c94309;
  --green: #72dc71;
  --purple: #a779f5;
  --material: rgba(11, 24, 38, 0.86);
  --display: 'Archivo Black', 'Arial Narrow', sans-serif;
  --ui: ui-rounded, -apple-system, BlinkMacSystemFont, 'SF Pro Rounded', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; color: var(--paper); background: var(--ink); font-family: var(--ui); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.map-stage {
  min-height: 790px;
  height: min(100svh, 1024px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #081625;
}
.home-stage { min-height: 660px; height: min(88svh, 900px); }

.map-canvas,
.map-fallback,
.map-shade { position: absolute; inset: 0; }
.map-canvas { z-index: 0; opacity: 0; transition: opacity 500ms ease-out; }
.mapkit-ready .map-canvas { opacity: 1; }
.mapkit-ready .map-fallback { opacity: 0; }
.map-fallback {
  z-index: -1;
  overflow: hidden;
  transition: opacity 500ms ease-out;
  background: #081625 url('/assets/night-neighborhood-map-fast.jpg') center / cover no-repeat;
}
.map-fallback::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 10, 18, .04), rgba(3, 10, 18, .24));
}
.map-shade {
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 14, 25, 0.96) 0%, rgba(5, 14, 25, 0.78) 25%, rgba(5, 14, 25, 0.05) 56%, rgba(5, 14, 25, 0.08) 100%), linear-gradient(0deg, rgba(4, 12, 20, 0.3), transparent 42%);
}

.site-header {
  position: absolute;
  z-index: 8;
  top: 28px;
  left: clamp(24px, 3.5vw, 56px);
  right: clamp(24px, 3.5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.45rem; font-weight: 800; text-decoration: none; letter-spacing: -0.03em; }
.site-header .brand > span:last-child { font-family: 'Knewave', var(--ui); font-weight: 400; letter-spacing: -.015em; }
.brand-mark { width: 33px; height: 31px; position: relative; display: inline-block; }
.brand-mark i, .brand-mark b { position: absolute; display: block; background: var(--orange); }
.brand-mark i { width: 8px; height: 10px; border-radius: 50%; top: 0; transform: rotate(-18deg); }
.brand-mark i:nth-child(1) { left: 1px; top: 7px; }
.brand-mark i:nth-child(2) { left: 9px; top: 0; }
.brand-mark i:nth-child(3) { left: 18px; top: 1px; transform: rotate(18deg); }
.brand-mark i:nth-child(4) { right: 0; top: 8px; transform: rotate(28deg); }
.brand-mark b { width: 22px; height: 18px; left: 6px; bottom: 0; border-radius: 55% 55% 48% 48%; transform: rotate(-4deg); }

.store-action,
.primary-action {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--orange);
  color: white;
  font-weight: 760;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(255, 94, 9, 0.22);
  transition: transform 160ms ease-out, background 160ms ease-out;
}
.store-action:hover { transform: translateY(-2px); background: #ff862e; }
.store-action:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.store-action.disabled { color: #d1d7df; background: rgba(16, 29, 44, 0.76); box-shadow: none; border: 1px solid rgba(255,255,255,0.14); }

.hero-copy {
  position: absolute;
  z-index: 6;
  left: clamp(28px, 3.5vw, 56px);
  top: 18%;
  width: min(47vw, 690px);
}
.hero-copy h1,
.replay-copy h1,
.walk-story h2,
.missing-walk h1 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: -0.055em;
  line-height: 0.9;
  text-wrap: balance;
}
.hero-copy h1 { font-size: clamp(4.4rem, 8.2vw, 8.3rem); }
.hero-copy h1 span { color: var(--orange); }
.hero-copy > p { color: #d7dce3; font-size: clamp(1.1rem, 1.7vw, 1.65rem); line-height: 1.45; margin: 24px 0; max-width: 35ch; }

.traffic-readout,
.live-nearby {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--material);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.22);
}
.traffic-readout strong { color: #ff8b38; }
.traffic-readout > span:last-child { color: #c8d0da; }
.pulse-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px rgba(255,118,23,0.15); }
.pulse-dot.green { background: var(--green); box-shadow: 0 0 0 6px rgba(114,220,113,0.14); }

.map-key {
  position: absolute;
  z-index: 6;
  bottom: 70px;
  left: clamp(28px, 3.5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  gap: 13px 20px;
  max-width: 470px;
  padding: 16px 18px;
  border-radius: 15px;
  background: rgba(7, 20, 34, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(0,0,0,0.28);
}
.map-key span { display: flex; align-items: center; gap: 7px; font-size: .84rem; }
.map-key small { flex-basis: 100%; color: var(--muted); }
.key-dot { width: 9px; height: 9px; border-radius: 50%; }
.key-dot.quiet { background: var(--blue); }
.key-dot.tails { background: var(--green); }
.key-dot.busy { background: var(--orange); }
.key-dot.peak { background: var(--purple); }

.traffic-orbit {
  position: absolute;
  z-index: 5;
  width: min(24vw, 320px);
  aspect-ratio: 1;
  right: 8%;
  top: 34%;
  border-radius: 50%;
  border: 2px solid rgba(255,118,23,0.25);
  box-shadow: 0 0 0 30px rgba(255,118,23,0.07), 0 0 0 62px rgba(255,118,23,0.045);
  animation: breathe 3.4s ease-in-out infinite;
}
.traffic-orbit span { position: absolute; width: 22%; aspect-ratio: 1; overflow: hidden; border: 3px solid var(--orange); border-radius: 50%; background: #12243a; box-shadow: 0 8px 25px rgba(255,90,0,.35); }
.traffic-orbit span img { width: 100%; height: 100%; object-fit: cover; }
.traffic-orbit span:nth-child(1) { top: 14%; left: 23%; }
.traffic-orbit span:nth-child(2) { right: 12%; top: 37%; }
.traffic-orbit span:nth-child(3) { left: 34%; bottom: 8%; }
.traffic-orbit b { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); padding: 10px 17px; border-radius: 10px; color: var(--ink); background: var(--orange); white-space: nowrap; }

.stamp { display: inline-block; width: 46px; height: 55px; position: relative; opacity: .7; }
.stamp.paw::before { content: ''; position: absolute; width: 29px; height: 25px; border-radius: 60% 60% 48% 48%; background: #3b1908; left: 9px; bottom: 4px; }
.stamp.paw::after { content: ''; position: absolute; width: 10px; height: 13px; border-radius: 50%; background: #3b1908; left: 4px; top: 7px; box-shadow: 13px -5px 0 #3b1908, 26px 0 0 #3b1908, 36px 10px 0 -1px #3b1908; }
.stamp.foot::before { content: ''; position: absolute; width: 27px; height: 39px; border-radius: 58% 42% 52% 48%; background: #3b1908; left: 10px; bottom: 1px; transform: rotate(-8deg); }
.stamp.foot::after { content: ''; position: absolute; width: 8px; height: 10px; border-radius: 50%; background: #3b1908; left: 8px; top: 0; box-shadow: 9px -3px 0 -1px #3b1908, 17px -2px 0 -2px #3b1908, 24px 2px 0 -2px #3b1908; }

.walk-story {
  min-height: 780px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(360px, .78fr) 1.22fr;
  align-items: center;
  color: white;
  background: #081625;
}
.walk-story::before {
  content: '';
  position: absolute;
  z-index: 3;
  width: 72vw;
  height: 14vw;
  min-height: 120px;
  left: -10vw;
  bottom: -8vw;
  border-radius: 50%;
  background: var(--orange);
}
.walk-story-map {
  position: absolute;
  inset: 0;
  background: #081625 url('/assets/night-neighborhood-map-fast.jpg') 68% center / cover no-repeat;
}
.walk-story-map::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4,13,23,.97) 0%, rgba(4,13,23,.88) 32%, rgba(4,13,23,.2) 64%, rgba(4,13,23,.42));
}
.walk-story-copy { position: relative; z-index: 5; grid-column: 1; padding: 80px 0 110px clamp(28px, 6vw, 96px); }
.walk-story h2 { max-width: 10ch; font-size: clamp(4rem, 5.8vw, 6rem); letter-spacing: -.04em; }
.walk-story-summary { max-width: 38ch; margin: 24px 0 0; color: #d7dce3; font-size: clamp(1rem,1.35vw,1.22rem); line-height: 1.55; text-wrap: pretty; }
.illustrative-note { display: block; max-width: 32ch; margin-top: 16px; color: #8795a5; }
.heads-up {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  margin-top: 30px;
  padding: 10px 18px 10px 12px;
  border-radius: 16px;
  background: rgba(20,30,42,.92);
  box-shadow: 0 18px 42px rgba(0,0,0,.3);
}
.heads-up > span:last-child { display: grid; gap: 3px; }
.heads-up strong { font-size: 1.05rem; }
.heads-up small { color: #ff9b55; }
.glass-mark { position: relative; width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; background: var(--orange); }
.glass-mark i { position: absolute; display: block; width: 12px; height: 17px; left: 17px; top: 8px; background: white; clip-path: polygon(50% 0,100% 100%,0 72%); transform: rotate(-8deg); }
.glass-mark i:nth-child(2) { width: 10px; height: 13px; left: 8px; top: 24px; transform: rotate(-48deg); }
.glass-mark i:nth-child(3) { width: 9px; height: 12px; left: 27px; top: 25px; transform: rotate(58deg); }
.story-route { position: absolute; z-index: 1; inset: 4% -3% 0 24%; width: 76%; height: 88%; filter: drop-shadow(0 0 11px rgba(49,157,255,.5)); }
.story-route path { fill: none; stroke: var(--blue); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.story-stamps { position: absolute; z-index: 2; width: 42%; height: 48%; left: 48%; top: 26%; transform: rotate(-13deg); }
.story-stamps .stamp { position: absolute; opacity: .92; transform: scale(.34) rotate(var(--turn,0deg)); }
.story-stamps .stamp::before, .story-stamps .stamp::after { background: var(--blue); }
.story-stamps .stamp.foot::before, .story-stamps .stamp.foot::after { background: #d9dde1; }
.story-stamps .stamp.foot::after { box-shadow: 9px -3px 0 -1px #d9dde1,17px -2px 0 -2px #d9dde1,24px 2px 0 -2px #d9dde1; }
.story-stamps .stamp:nth-child(1) { left: 2%; top: 62%; --turn: -18deg; }
.story-stamps .stamp:nth-child(2) { left: 17%; top: 49%; --turn: -4deg; }
.story-stamps .stamp:nth-child(3) { left: 34%; top: 37%; --turn: 12deg; }
.story-stamps .stamp:nth-child(4) { left: 51%; top: 28%; --turn: 26deg; }
.story-stamps .stamp:nth-child(5) { left: 68%; top: 16%; --turn: 40deg; }
.story-stamps .stamp:nth-child(6) { left: 84%; top: 5%; --turn: 52deg; }
.story-dog { position: absolute; z-index: 5; width: 78px; height: 78px; border: 5px solid var(--dog-color); border-radius: 50%; background: #12243a; box-shadow: 0 14px 34px rgba(0,0,0,.42),0 0 0 7px color-mix(in srgb,var(--dog-color) 17%,transparent); }
.story-dog img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.story-dog strong,.story-dog em { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: normal; }
.story-dog strong { bottom: calc(100% + 8px); padding: 5px 9px; border-radius: 7px; background: rgba(8,20,33,.94); }
.story-dog em { top: calc(100% + 8px); color: var(--dog-color); font-size: .78rem; font-weight: 760; }
.story-argo { --dog-color: var(--blue); right: 30%; top: 48%; width: 98px; height: 98px; }
.story-argo img { object-position: 70% 38%; }
.story-pepper { --dog-color: var(--purple); right: 8%; top: 22%; }
.story-traffic { position: absolute; z-index: 4; right: 28%; top: 15%; display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 8px; padding: 10px 14px; border-radius: 14px; background: rgba(8,20,33,.9); box-shadow: 0 14px 32px rgba(0,0,0,.28); }
.story-traffic .pulse-dot { grid-row: 1 / 3; width: 9px; height: 9px; }
.story-traffic strong { font-size: .85rem; }
.story-traffic small { color: #ff9b55; }
.story-motion-ready .story-argo { left: 0; right: auto; top: 0; will-change: transform,opacity; }
.story-motion-ready .story-pepper { will-change: transform; }
.story-argo.is-sniffing { filter: drop-shadow(0 0 18px rgba(49,157,255,.72)); }
.story-argo.is-sniffing img { transform: scale(.94) translateY(3px); transition: transform 400ms cubic-bezier(.16,1,.3,1); }
.heads-up { opacity: .68; transition: opacity 400ms cubic-bezier(.16,1,.3,1),box-shadow 400ms cubic-bezier(.16,1,.3,1); }
.heads-up.is-current { opacity: 1; box-shadow: 0 18px 42px rgba(0,0,0,.3),0 0 28px rgba(255,118,23,.22); }
.hazard-pin { position: absolute; z-index: 5; right: 19%; bottom: 15%; filter: drop-shadow(0 13px 22px rgba(0,0,0,.4)); }
.hazard-pin::after { content: ''; display: block; width: 3px; height: 44px; margin: -5px auto 0; border-radius: 3px; background: var(--orange); }
.hazard-line { position: absolute; z-index: 4; right: 26%; bottom: 23%; width: 17%; border-top: 3px dotted rgba(255,155,85,.86); transform: rotate(21deg); transform-origin: right; }

.replay-shade { background: linear-gradient(90deg, rgba(5,14,25,.96), rgba(5,14,25,.56) 27%, transparent 54%), linear-gradient(0deg, rgba(5,14,25,.72), transparent 45%); }
.replay-copy { position: absolute; z-index: 6; top: 14%; left: clamp(24px, 3.5vw, 56px); max-width: 430px; }
.replay-copy h1 { font-size: clamp(3.8rem, 6.2vw, 6.6rem); }
.replay-copy p { color: #d3dae4; font-size: clamp(1.05rem,1.6vw,1.4rem); line-height: 1.5; max-width: 28ch; }
.live-nearby { position: absolute; z-index: 6; right: 4%; top: 17%; flex-wrap: wrap; width: 200px; }
.live-nearby small { color: var(--green); margin-left: 19px; }

.replay-controls {
  position: absolute;
  z-index: 8;
  left: clamp(24px,3.5vw,56px);
  bottom: 132px;
  display: grid;
  grid-template-columns: auto minmax(220px, 330px) auto;
  align-items: center;
  gap: 22px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(11, 24, 38, .9);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 50px rgba(0,0,0,.36);
}
.replay-controls button { min-height: 46px; border: 0; color: white; background: transparent; cursor: pointer; }
#replay-toggle { display: flex; align-items: center; gap: 9px; font-weight: 750; padding: 0 13px; }
.control-icon { color: var(--blue); font-weight: 900; }
.replay-time { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .8rem; }
.scrub { height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); overflow: hidden; }
.scrub i { display: block; width: 0; height: 100%; background: var(--blue); }
.view-switch { display: flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.09); }
.view-switch button { min-width: 64px; padding: 0 12px; border-radius: 999px; color: #bdc7d3; }
.view-switch button[aria-pressed='true'] { color: white; background: rgba(255,255,255,.15); }

.install-ribbon { position: absolute; z-index: 7; left: 3.5%; right: 3.5%; bottom: 22px; min-height: 88px; border-radius: 16px; padding: 13px 17px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(90deg, rgba(126,82,47,.94), rgba(31,34,42,.94)); box-shadow: 0 18px 45px rgba(0,0,0,.34); }
.install-ribbon > div { display: flex; align-items: center; gap: 15px; }
.install-ribbon img { width: 58px; height: 58px; border-radius: 14px; object-fit: cover; object-position: 70% 38%; }
.install-ribbon span span { display: block; }
.install-ribbon strong { display: block; font-size: 1.25rem; }
.install-ribbon small { display: block; color: #d0d2d6; margin-top: 4px; }
.expiry-note { position: absolute; z-index: 8; right: 5%; bottom: 119px; color: #acb6c2; font-size: .8rem; }

.dog-annotation { position: relative; width: 66px; height: 66px; border: 4px solid var(--dog-color, var(--green)); border-radius: 50%; background: #102236; box-shadow: 0 10px 28px rgba(0,0,0,.36), 0 0 0 6px color-mix(in srgb, var(--dog-color, var(--green)) 22%, transparent); }
.dog-annotation.hero-dog { width: 88px; height: 88px; border-width: 5px; box-shadow: 0 14px 32px rgba(0,0,0,.38), 0 0 24px color-mix(in srgb, var(--blue) 68%, transparent); }
.dog-annotation img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 70% 38%; }
.dog-annotation em { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); padding: 5px 9px; border-radius: 8px; background: rgba(8,20,33,.9); color: white; font-style: normal; font-size: 12px; font-weight: 720; white-space: nowrap; }
.dog-annotation::after { content: ''; position: absolute; width: 13px; height: 4px; right: -12px; top: 49%; border-radius: 50%; background: var(--dog-color, var(--green)); transform-origin: left center; animation: wag 520ms ease-in-out infinite alternate; }
.moment-annotation { padding: 6px 9px; border-radius: 8px; color: white; background: rgba(15,31,48,.92); box-shadow: 0 8px 24px rgba(0,0,0,.28), inset 0 -3px var(--blue); font-size: 12px; font-weight: 720; white-space: nowrap; }
.trail-annotation { transform: scale(.55); filter: drop-shadow(0 3px 5px rgba(0,0,0,.4)); }
.trail-annotation .stamp { opacity: .96; }
.trail-annotation .stamp::before, .trail-annotation .stamp::after { background: var(--blue); }
.trail-annotation .stamp.paw::after,
.fallback-stamps .stamp.paw::after { box-shadow: 13px -5px 0 var(--blue), 26px 0 0 var(--blue), 36px 10px 0 -1px var(--blue); }
.trail-annotation .stamp.foot::after,
.fallback-stamps .stamp.foot::after { box-shadow: 9px -3px 0 -1px var(--blue), 17px -2px 0 -2px var(--blue), 24px 2px 0 -2px var(--blue); }

.fallback-route { position: absolute; z-index: 1; width: 52%; height: 68%; left: 38%; top: 17%; filter: drop-shadow(0 0 10px rgba(49,157,255,.58)); }
.fallback-route path { fill: none; stroke: var(--blue); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.fallback-stamps { position: absolute; z-index: 2; left: 46%; top: 29%; width: 38%; height: 48%; transform: rotate(-7deg); }
.fallback-stamps .stamp { position: absolute; opacity: .94; transform: scale(.42) rotate(var(--turn, 0deg)); }
.fallback-stamps .stamp::before, .fallback-stamps .stamp::after { background: var(--blue); }
.fallback-stamps .stamp.foot::before,
.fallback-stamps .stamp.foot::after { background: #d9dde1; }
.fallback-stamps .stamp.foot::after { box-shadow: 9px -3px 0 -1px #d9dde1, 17px -2px 0 -2px #d9dde1, 24px 2px 0 -2px #d9dde1; }
.fallback-stamps .stamp:nth-child(1) { left: 3%; top: 66%; --turn: -30deg; }
.fallback-stamps .stamp:nth-child(2) { left: 17%; top: 43%; --turn: -12deg; }
.fallback-stamps .stamp:nth-child(3) { left: 35%; top: 22%; --turn: 10deg; }
.fallback-stamps .stamp:nth-child(4) { left: 55%; top: 14%; --turn: 34deg; }
.fallback-stamps .stamp:nth-child(5) { left: 73%; top: 28%; --turn: 58deg; }
.fallback-stamps .stamp:nth-child(6) { left: 83%; top: 55%; --turn: 82deg; }
.fallback-argo { position: absolute; z-index: 4; width: 92px; height: 92px; left: 57%; top: 45%; border: 5px solid var(--blue); border-radius: 50%; box-shadow: 0 14px 34px rgba(0,0,0,.4), 0 0 24px rgba(49,157,255,.65); }
.fallback-argo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 70% 38%; }
.fallback-argo strong { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); padding: 6px 11px; border-radius: 8px; color: white; background: #146fc9; font-size: .78rem; white-space: nowrap; }
.fallback-dog { position: absolute; z-index: 3; width: 62px; height: 62px; border: 4px solid var(--green); border-radius: 50%; background: #12243a; box-shadow: 0 12px 28px rgba(0,0,0,.34), 0 0 0 5px rgba(114,220,113,.14); }
.fallback-dog img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.fallback-dog em { position: absolute; left: 50%; top: calc(100% + 7px); transform: translateX(-50%); padding: 5px 8px; border-radius: 7px; background: rgba(9,23,37,.92); color: white; font-size: .7rem; font-style: normal; font-weight: 720; white-space: nowrap; }
.fallback-dog.milo { left: 53%; top: 11%; }
.fallback-dog.luna { left: 45%; bottom: 12%; border-color: var(--purple); box-shadow: 0 12px 28px rgba(0,0,0,.34), 0 0 0 5px rgba(167,121,245,.15); }
.fallback-dog.luna em { color: #d8c3ff; }
.fallback-dog.pepper { right: 7%; bottom: 14%; border-color: var(--orange); box-shadow: 0 12px 28px rgba(0,0,0,.34), 0 0 0 5px rgba(255,118,23,.15); }

.missing-walk { min-height: 84svh; padding: 28vh clamp(28px,8vw,120px) 100px; position: relative; overflow: hidden; }
.missing-walk h1 { font-size: clamp(4rem,9vw,8rem); }
.missing-walk p { color: var(--muted); font-size: 1.25rem; margin: 24px 0 34px; }
.missing-route { position: absolute; right: 8%; top: 30%; display: flex; gap: 28px; transform: rotate(-18deg) scale(1.5); }
.missing-route .stamp::before, .missing-route .stamp::after { background: var(--orange); box-shadow: inherit; }

.legal-page { min-height: 90svh; padding: 160px clamp(28px,12vw,190px) 90px; background: #f4efe5; color: #172333; }
.legal-page .site-header { color: var(--paper); }
.legal-page article { max-width: 760px; }
.legal-page h1 { font-family: var(--display); font-size: clamp(3.5rem,7vw,6rem); letter-spacing: -.05em; }
.legal-page h2 { margin-top: 44px; }
.legal-page p { color: #48576a; font-size: 1.08rem; line-height: 1.75; }

footer { min-height: 110px; padding: 32px clamp(28px,5vw,76px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; color: #adb8c5; border-top: 1px solid rgba(255,255,255,.1); }
footer .brand { color: white; }
footer nav { justify-self: end; display: flex; gap: 24px; }
footer a { text-decoration: none; }
footer a:hover { color: white; }

@keyframes breathe { 50% { transform: scale(1.05); opacity: .88; } }
@keyframes wag { to { transform: rotate(24deg); } }

@media (max-width: 820px) {
  .map-stage { min-height: 740px; height: 100svh; }
  .home-stage { min-height: 740px; height: 100svh; }
  .site-header { top: 18px; }
  .brand { font-size: 1.16rem; }
  .brand-mark { transform: scale(.84); transform-origin: left center; margin-right: -5px; }
  .store-action { min-height: 44px; padding: 0 16px; font-size: .9rem; }
  .hero-copy { top: 13%; width: calc(100% - 48px); }
  .hero-copy h1 { font-size: clamp(3.45rem, 16vw, 4.8rem); }
  .hero-copy > p { font-size: 1rem; max-width: 24ch; margin: 15px 0; }
  .traffic-readout { min-height: 46px; font-size: .85rem; }
  .map-shade { background: linear-gradient(180deg, rgba(5,14,25,.92), rgba(5,14,25,.25) 50%, rgba(5,14,25,.56)); }
  .traffic-orbit { width: 172px; right: -28px; top: 61%; }
  .map-key { bottom: 22px; right: 22px; left: 22px; max-width: none; justify-content: space-between; }
  .map-key small { display: none; }
  .walk-story { min-height: 780px; display: block; }
  .walk-story::before { width: 150vw; height: 24vw; min-height: 86px; left: -72vw; bottom: -13vw; }
  .walk-story-map { background-position: 66% center; }
  .walk-story-map::after { background: linear-gradient(180deg,rgba(4,13,23,.98) 0%,rgba(4,13,23,.78) 42%,rgba(4,13,23,.13) 67%,rgba(4,13,23,.62)); }
  .walk-story-copy { padding: 64px 26px 0; }
  .walk-story h2 { font-size: clamp(3.4rem,14.5vw,4.6rem); }
  .heads-up { margin-top: 22px; min-height: 64px; }
  .illustrative-note { display: block; max-width: 26ch; }
  .story-route { width: 130%; height: 54%; left: -20%; top: 42%; }
  .story-stamps { width: 82%; height: 33%; left: 15%; top: 55%; }
  .story-dog { width: 58px; height: 58px; }
  .story-argo { right: 23%; top: 62%; width: 82px; height: 82px; }
  .story-pepper { right: 8%; top: 49%; }
  .story-traffic { right: 7%; top: 38%; }
  .hazard-pin { right: 9%; bottom: 9%; transform: scale(.84); }
  .hazard-line { right: 20%; bottom: 18%; width: 24%; }
  .replay-copy { top: 13%; max-width: 76%; }
  .replay-copy h1 { font-size: clamp(3.4rem,15vw,5rem); }
  .replay-copy p { max-width: 19ch; }
  .live-nearby { top: 38%; right: 18px; width: auto; max-width: 170px; }
  .replay-controls { left: 18px; right: 18px; bottom: 132px; grid-template-columns: auto 1fr; gap: 10px; border-radius: 22px; }
  .replay-time { grid-column: 1 / -1; grid-row: 2; padding: 0 10px 8px; }
  .view-switch { justify-self: end; }
  .install-ribbon { left: 12px; right: 12px; bottom: 12px; min-height: 104px; }
  .install-ribbon small { display: none; }
  .install-ribbon .store-action { font-size: .78rem; padding: 0 12px; }
  .expiry-note { display: none; }
  footer { grid-template-columns: 1fr auto; }
  footer > span { display: none; }

  .map-fallback { background-position: 64% center; }
  .fallback-route { width: 122%; height: 58%; left: 8%; top: 39%; }
  .fallback-route path { stroke-width: 9; }
  .fallback-stamps { left: 17%; top: 43%; width: 80%; height: 42%; }
  .fallback-argo { width: 82px; height: 82px; left: 53%; top: 52%; }
  .fallback-dog { width: 52px; height: 52px; }
  .fallback-dog.milo { left: 15%; top: 43%; }
  .fallback-dog.luna { display: none; }
  .fallback-dog.pepper { right: 10%; bottom: 15%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
