/* Eric Chi — portfolio
   Graphite: calm dark mode, large light type, one muted sage for action.
   The signature is the scroll-driven map tour, graded to dusk. */

:root {
  --bg: #17181b;
  --tile: #1f2024;
  --tile-2: #26282d;
  --ink: #ecedee;
  --mute: #9a9da3;
  --line: #2b2d32;
  --blue: #a9c4b1;   /* the one accent: muted sage */
  --on-accent: #17181b;
  --link: #a9c4b1;
  color-scheme: dark;
  --sky: #8ab7d1;
  --haze: #e9e5da;
  --sand: #d8ae84;
  --dusk: #8e9cc6;

  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;

  --hero: clamp(2.6rem, 1.6rem + 4vw, 4.25rem);
  --h1: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  --h2: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --h3: clamp(1.3rem, 1.1rem + 0.7vw, 1.6rem);
  --lead: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  --body: 1.0625rem;
  --small: 0.875rem;

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --max: 980px;
  --wide: 1200px;
  --radius: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: var(--body); line-height: 1.47;
  letter-spacing: -0.012em; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; margin: 0; }

.label { font-size: var(--small); font-weight: 600; color: var(--mute); letter-spacing: -0.01em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wide { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 99; background: var(--ink); color: var(--bg); padding: .5rem 1rem; border-radius: 99px; }
.skip:focus { top: .6rem; }

.btn {
  display: inline-block; background: var(--blue); color: var(--on-accent); border-radius: 980px;
  padding: .7rem 1.35rem; font-weight: 500; font-size: var(--body);
}
.btn:hover { background: #bfd4c5; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }

/* ---------- Global bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 50; height: 52px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  background: rgba(23, 24, 27, 0.72);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8125rem;
}
.topbar .name { color: var(--ink); font-weight: 600; font-size: 1rem; justify-self: start; }
.topbar .end { justify-self: end; display: flex; gap: 1.25rem; align-items: center; }
.topbar .end a { color: var(--ink); }
.topbar .end .btn { padding: .3rem .8rem; font-size: .75rem; color: var(--on-accent); }
.chapters { display: flex; gap: clamp(1rem, 2.6vw, 2rem); list-style: none; margin: 0; padding: 0; }
.chapters a { color: var(--mute); }
.chapters a:hover, .chapters a.is-active { color: var(--ink); text-decoration: none; }

/* ---------- Map tour ---------- */

.tour { position: relative; }
.stage {
  position: sticky; top: 52px; height: calc(100vh - 52px); height: calc(100svh - 52px);
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #1d2331 0%, var(--bg) 72%);
}
/* A few stars behind the night town (the scenes themselves are drawn for night). */
.stage::before {
  content: ""; position: absolute; inset: 0 0 45% 0; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 27% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 26%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 55% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 30%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 78% 9%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 6% 40%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 47% 42%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 93% 44%, #fff 50%, transparent 51%);
}
.scene { position: absolute; inset: 0; width: 100%; height: 100%; font-family: var(--sans); }
/* Cursor parallax (--px/--py, mouse only) and the hero's slow drift (--dx/--dy), both set
   from site.js. Scenes are scaled up a touch so a shifted edge never shows. */
.stage { --px: 0; --py: 0; --dx: 0; --dy: 0; }
@media (prefers-reduced-motion: no-preference) {
  .stage .scene { scale: 1.035; translate: calc(var(--px) * -16px + var(--dx) * 1px) calc(var(--py) * -11px + var(--dy) * 1px); }
  /* Own compositor layer: drift and parallax then move the picture without repainting it. */
  .stage .scene { will-change: translate; }
}
.stage.parallax::before { translate: calc(var(--px) * 7px) calc(var(--py) * 5px); }
.stage.parallax .stop:not(.hero) { translate: calc(var(--px) * 6px) calc(var(--py) * 5px); }
.stage.parallax .stop.hero { translate: calc(var(--px) * 4px) calc(var(--py) * 3px); }
.scene:not(.town) { opacity: 0; visibility: hidden; }
.room .screen { opacity: 0; transition: opacity .5s ease; }
.room .screen.on { opacity: 1; }
.stop .note { display: block; margin-top: .9rem; font-size: .75rem; color: var(--mute); }
.town .sign { font-family: var(--sans); letter-spacing: 0; }
.town .route-base { fill: none; stroke: #ffffff; stroke-opacity: .22; stroke-width: 1.6; stroke-dasharray: 3 5; }
.town .route-glow { fill: none; stroke: #a9c4b1; stroke-opacity: .28; stroke-width: 11; stroke-linecap: round; stroke-dasharray: 0 1; }
.town .route { fill: none; stroke: #e2f2e6; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 0 1; }
/* Stops light up: each building's spotlight layer fades in while the tour is on it. */
.town .spot { opacity: 0; transition: opacity .9s ease; }
.town[data-focus="walmart"] .spot-walmart, .town[data-focus="entrance"] .spot-walmart,
.town[data-focus="cisco"] .spot-cisco, .town[data-focus="rackspace"] .spot-rackspace,
.town[data-focus="end"] .spot { opacity: 1; }
.town .net { fill: none; stroke: #8fc0ff; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 3 7; animation: flow 1.1s linear infinite; }
.town .node { fill: #d6e8ff; }
@keyframes flow { to { stroke-dashoffset: -10; } }
.town .led { animation: blink .45s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.town .pin .drop { fill: #f2f3f4; transition: fill .3s; }
.town .pin .pulse { fill: #cfe6d6; opacity: 0; transform-box: fill-box; transform-origin: center; }
.town .pin.is-active .drop { fill: #cfe6d6; }
.town .pin.is-active .pulse { animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { opacity: .45; transform: scale(1); } 100% { opacity: 0; transform: scale(3); } }
.town .ai-glow { animation: glow 3s ease-in-out infinite alternate; }
.town .me .leg, .town .me .arm { transform-box: fill-box; transform-origin: 50% 8%; }
.town .me.walking .leg-f, .town .me.walking .arm-b { animation: swing .42s ease-in-out infinite alternate; }
.town .me.walking .leg-b, .town .me.walking .arm-f { animation: swing .42s ease-in-out infinite alternate-reverse; }
.town .me.walking .me-flip { animation: bob .21s ease-in-out infinite alternate; }
@keyframes swing { from { transform: rotate(-24deg); } to { transform: rotate(24deg); } }
@keyframes bob { from { translate: 0 0; } to { translate: 0 -0.8px; } }
/* Avatar idle acts: data-act = hi | design | cat */
.town .me .act { opacity: 0; transition: opacity .3s ease; }
.town .me .me-tag { transition: opacity .3s ease; }
.town .me[data-act] .me-tag { opacity: 0; }
.town .me[data-act="hi"] .act-hi,
.town .me[data-act="design"] .act-design,
.town .me[data-act="cat"] .act-cat { opacity: 1; }
.town .me[data-act="hi"] .arm-f { transform-origin: 50% 8%; animation: wave .38s ease-in-out infinite alternate; }
@keyframes wave { from { transform: rotate(-118deg); } to { transform: rotate(-146deg); } }
.town .me[data-act="design"] .arm-f, .town .me[data-act="design"] .arm-b { animation: type .22s ease-in-out infinite alternate; }
@keyframes type { from { transform: rotate(-58deg); } to { transform: rotate(-66deg); } }
.town .me[data-act="design"] .glow { animation: glow 1.2s ease-in-out infinite alternate; }
.town .me[data-act="cat"] .me-body > rect, .town .me[data-act="cat"] .me-body > circle, .town .me[data-act="cat"] .me-body > path, .town .me[data-act="cat"] .me-body > line { translate: 0 1.6px; }
.town .me[data-act="cat"] .arm-f { animation: pet .5s ease-in-out infinite alternate; }
@keyframes pet { from { transform: rotate(-38deg); } to { transform: rotate(-58deg); } }
.town .me .cat .tail { transform-box: fill-box; transform-origin: 100% 100%; animation: tail 1.1s ease-in-out infinite alternate; }
@keyframes tail { from { transform: rotate(-10deg); } to { transform: rotate(18deg); } }
.town .me .bubble-me { transform-box: fill-box; transform-origin: 50% 100%; }
.town .me[data-act] .bubble-me { animation: pop .35s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes pop { from { scale: .6; } to { scale: 1; } }
@keyframes glow { from { opacity: .55; } to { opacity: 1; } }

.stop {
  position: absolute; z-index: 2;
  left: max(var(--gutter), calc((100vw - var(--wide)) / 2 + var(--gutter)));
  top: 50%; transform: translateY(calc(-50% + 16px));
  width: min(400px, 40vw);
  background: rgba(31, 32, 36, 0.82); border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: 24px; padding: 1.75rem 1.75rem 1.6rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  opacity: 0; transition: opacity .45s ease, transform .55s cubic-bezier(.2,.8,.2,1);
}
.stop.is-active { opacity: 1; transform: translateY(-50%); }
.stop .count { color: var(--blue); font-weight: 600; font-size: .8125rem; }
.stop .where { color: var(--mute); font-size: .8125rem; font-weight: 500; }
.stop > a { font-weight: 500; }
.stop h2 { font-size: var(--h3); margin: .6rem 0 .5rem; }
.stop p { margin: 0; color: var(--mute); }
.stop .figs { display: flex; gap: 1.5rem; margin: 1.1rem 0 1.2rem; }
.stop .figs b { display: block; white-space: nowrap; font-size: 2rem; font-weight: 500; color: var(--blue); letter-spacing: -0.03em; line-height: 1.05; }
.stop .figs span { display: block; color: var(--mute); font-size: .8125rem; line-height: 1.3; max-width: 9rem; margin-top: .2rem; }

.stop.hero {
  left: 0; right: 0; width: auto; top: clamp(1.75rem, 6vh, 3.75rem); transform: translateY(16px);
  background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none;
  text-align: center; text-shadow: 0 2px 24px rgba(0,0,0,.45); padding: 0 var(--gutter);
}
.stop.hero.is-active { transform: none; }
.stop.hero::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -3rem; width: min(900px, 100%); height: calc(100% + 6rem); translate: -50% 0;
  background: radial-gradient(closest-side, rgba(23,24,27,.82), rgba(23,24,27,0)); pointer-events: none; }
.stop.hero h1 { font-size: var(--hero); max-width: 14ch; margin: 0 auto; letter-spacing: -0.03em; line-height: 1.04; }
.stop.hero p { font-size: var(--lead); margin: 1rem auto 0; max-width: 34rem; color: var(--mute); }
.stop.hero .hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.stop.hero .hint { display: block; margin-top: .9rem; font-size: var(--small); color: var(--mute); }

.dots { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); display: grid; gap: 10px; z-index: 3; list-style: none; margin: 0; padding: 0; }
.dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.22); cursor: pointer; transition: background .3s, transform .3s; }
.dots button.is-active { background: var(--ink); transform: scale(1.25); }

/* ---------- Sections ---------- */

.section { padding: clamp(5rem, 12vh, 8rem) 0; scroll-margin-top: 52px; }
.section-head { text-align: center; margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.section-head h2 { font-size: var(--h1); }
.section-head p { font-size: var(--lead); color: var(--mute); margin: .8rem auto 0; max-width: 36rem; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.tiles li { display: flex; }
.tile {
  flex: 1; display: flex; flex-direction: column; gap: 1.75rem;
  background: var(--tile); border-radius: var(--radius); padding: 2.25rem 2.25rem 2rem;
  color: var(--ink); min-height: 22rem; position: relative; overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.tile { border: 1px solid var(--line); }
.tile:hover { text-decoration: none; transform: scale(1.012); border-color: #3a3d44; }
.tile h3 { font-size: var(--h2); }
.tile p { margin: .2rem 0 0; color: var(--mute); max-width: 30rem; }
.tile-text { display: flex; flex-direction: column; gap: .5rem; }
.tile .fig { padding-top: 1rem; }
.tile-ui { margin-top: auto; border-radius: 14px; overflow: hidden; background: var(--tile-2); padding: 10px; }
.tile-ui .ui { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.4); font-family: var(--sans); }
.tile:hover .tile-ui .ui { transform: translateY(-2px); }
.tile-ui .ui { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.tile .fig b { display: block; font-size: clamp(2.6rem, 2rem + 2.4vw, 4rem); font-weight: 500; color: var(--blue); letter-spacing: -0.04em; line-height: 1; }
.tile .fig span { color: var(--mute); font-size: var(--small); }
.tile .more { color: var(--link); margin-top: 1rem; font-size: var(--body); }
.tile:hover .more { text-decoration: underline; }
.tiles li.feature { grid-column: 1 / -1; }
.tiles li.feature .tile { min-height: 26rem; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 2.5rem; background: linear-gradient(160deg, var(--tile) 40%, #24302a 100%); }
.tiles li.feature .tile h3 { font-size: var(--h1); max-width: 14ch; }
.tiles li.feature .tile-ui { margin-top: 0; background: rgba(255,255,255,.04); }
.tile[data-tone="dark"] { background: #111214; color: var(--ink); }
.tile[data-tone="dark"] p, .tile[data-tone="dark"] .fig span { color: #a1a1a6; }
.tile[data-tone="dark"] .more { color: var(--link); }

/* Earlier work: compact rows */
.earlier-title { font-size: var(--h3); margin: clamp(3rem, 8vh, 4.5rem) 0 1rem; }
.earlier { list-style: none; margin: 0; padding: 0; background: var(--tile); border: 1px solid var(--line); border-radius: var(--radius); }
.earlier li + li { border-top: 1px solid var(--line); }
.earlier a { display: grid; grid-template-columns: 8rem minmax(0, 1fr) auto; gap: 1.5rem; align-items: baseline; padding: 1.4rem 2rem; color: var(--ink); }
.earlier a:hover { text-decoration: none; }
.earlier a:hover .e-title { color: var(--link); }
.earlier .e-title { font-size: var(--h3); font-weight: 600; letter-spacing: -0.02em; }
.earlier .e-fig { color: var(--mute); font-size: var(--small); text-align: right; }
.earlier .e-fig b { color: var(--blue); font-size: 1.125rem; letter-spacing: -0.02em; }

/* About */
.about { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; background: var(--tile); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem); }
.about .portrait { width: clamp(5rem, 10vw, 7.5rem); border-radius: 50%; background: var(--tile-2); }
.about h2 { font-size: var(--h2); margin-bottom: 1rem; }
.about p { margin: 0 0 1rem; max-width: 40rem; }
.about p.lead { font-size: var(--lead); line-height: 1.4; }

/* Contact */
.contact { text-align: center; }
.contact h2 { font-size: var(--hero); letter-spacing: -0.03em; }
.contact p { font-size: var(--lead); color: var(--mute); margin: 1rem auto 0; max-width: 32rem; }
.contact .email { display: inline-block; margin-top: 1.5rem; font-size: var(--h2); font-weight: 500; color: var(--ink); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.contact .actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.foot-links { display: flex; gap: 1.25rem; }
.foot { border-top: 1px solid var(--line); margin-top: clamp(3rem, 8vh, 5rem); padding: 1.25rem 0 2rem; font-size: .75rem; color: var(--mute); display: flex; justify-content: space-between; gap: 1rem; }

/* ---------- Case study ---------- */

.case-hero { text-align: center; padding: clamp(4rem, 12vh, 7rem) 0 clamp(2.5rem, 6vh, 4rem); }
.case-hero .back { font-size: var(--small); }
.case-hero .label { display: block; margin-top: 1.5rem; }
.case-hero h1 { font-size: var(--hero); max-width: 15ch; margin: .6rem auto 0; letter-spacing: -0.03em; line-height: 1.04; }
.case-hero .summary { font-size: var(--lead); color: var(--mute); max-width: 40rem; margin: 1.25rem auto 0; line-height: 1.4; }
.glance { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2.5rem; margin: 1.75rem auto 0; padding: 0; }
.glance div { text-align: center; }
.glance dt { font-size: .75rem; color: var(--mute); font-weight: 500; }
.glance dd { margin: .1rem 0 0; font-size: var(--small); font-weight: 600; }
.case-figure { margin: 0 0 1.25rem; background: radial-gradient(120% 90% at 50% 0%, #2a2d33, var(--tile)); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 5vw, 3.5rem) clamp(1rem, 6vw, 5rem) clamp(1rem, 3vw, 2rem); }
.case-figure .ui { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 24px 70px rgba(0,0,0,.5); font-family: var(--sans); }
.case-figure figcaption { margin-top: 1rem; text-align: center; color: var(--mute); font-size: .8125rem; }
.outcomes { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin: 0; padding: 0; }
.outcomes div { display: flex; flex-direction: column; gap: .4rem; background: var(--tile); border: 1px solid var(--line); border-radius: 22px; padding: 1.75rem; text-align: left; }
.outcomes dd { order: -1; margin: 0; font-size: clamp(2.2rem, 1.8rem + 1.6vw, 3rem); font-weight: 500; color: var(--blue); letter-spacing: -0.04em; line-height: 1; }
.outcomes dt { color: var(--mute); font-size: var(--small); line-height: 1.4; }

.case-body { padding: clamp(4rem, 10vh, 6rem) 0 clamp(2rem, 6vh, 4rem); }
.case-body section { margin-bottom: clamp(3rem, 8vh, 5rem); scroll-margin-top: 72px; }
.case-body h2 { font-size: var(--h2); margin-bottom: 1rem; }
.case-body .prose { max-width: 42rem; }
.case-body .prose p { margin: 0 0 1.1rem; }
.case-body .prose p:first-child { font-size: var(--lead); line-height: 1.42; }
.case-body h3 { font-size: var(--h3); margin: 2.25rem 0 .5rem; }
.shot { margin: 0 0 clamp(3rem, 8vh, 5rem); }
.shot img { width: 100%; border-radius: 22px; background: var(--tile); }
.shot figcaption { margin-top: .75rem; color: var(--mute); font-size: var(--small); text-align: center; }
.shot .slot { aspect-ratio: 16 / 9; border-radius: 22px; background: var(--tile); border: 1px dashed #3a3d44; display: grid; place-items: center; color: var(--mute); font-size: var(--small); padding: 1rem; text-align: center; }
.next { padding-bottom: clamp(3rem, 8vh, 5rem); }
.next a { display: block; background: var(--tile); border: 1px solid var(--line); color: var(--ink); border-radius: var(--radius); padding: clamp(3rem, 10vh, 5rem) var(--gutter); text-align: center; }
.next a:hover { text-decoration: none; }
.next .label { color: var(--mute); }
.next .title { display: block; margin-top: .6rem; font-size: var(--h1); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
.next .more { display: inline-block; margin-top: 1rem; color: var(--link); }
.next a:hover .more { text-decoration: underline; }

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar nav { display: none; }
  .stop:not(.hero) {
    left: .75rem; right: .75rem; width: auto; top: auto; bottom: .75rem;
    transform: translateY(16px); padding: 1.25rem 1.25rem 1.1rem; border-radius: 20px;
  }
  .stop:not(.hero).is-active { transform: none; }
  .stop h2 { margin: .35rem 0 .35rem; }
  .stop .figs { margin: .8rem 0 .9rem; }
  .stop .figs b { font-size: 1.6rem; }
  .stop p.desc { display: none; }
  .dots { display: none; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tiles li.feature .tile { display: flex; }
  .earlier a { grid-template-columns: 1fr; gap: .25rem; padding: 1.25rem 1.5rem; }
  .earlier .e-fig { text-align: left; }
  .glance { justify-content: flex-start; text-align: left; }
  .glance div { text-align: left; }
  .stop.hero .hero-actions .btn { padding: .6rem 1.1rem; }
  .tile { min-height: 0; padding: 1.75rem; }
  .about { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion: a still map, then every stop as a list ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tour { height: auto !important; }
  .stage { position: relative; top: 0; height: auto; overflow: visible; padding-bottom: 2rem; }
  .town, .room { position: relative; height: 60vh; opacity: 1; visibility: visible; }
  .facade, .aisle { display: none; }
  .stop, .stop.hero { position: relative; left: auto; right: auto; top: auto; bottom: auto; transform: none !important; opacity: 1; width: auto; max-width: var(--max); margin: 1rem auto; }
  .stop.hero { margin-top: 3rem; }
  .stop p.desc { display: block; }
  .dots { display: none; }
}
