:root {
  --ink: #10069F; --text: #1d1d1f; --sub: #6e6e73; --line: #d2d2d7; --bg2: #f5f5f7; --link: #0066cc; --blue: #0071e3;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif;
  --glass: rgba(255,255,255,.62); --glass-edge: rgba(255,255,255,.8);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: #fff; color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }

/* Liquid-glass controls: nav, card, tooltip only */
.glass { background: var(--glass); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
         border: 1px solid var(--glass-edge); box-shadow: 0 12px 40px rgba(0,0,0,.10), inset 0 1px 0 #fff; }
nav.pill { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; gap: 2px; padding: 5px; border-radius: 999px; }
nav.pill a { padding: 8px 16px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
nav.pill a:hover { background: rgba(0,0,0,.05); }
nav.pill a.on { background: rgba(0,0,0,.07); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
h2.big { font-size: 48px; font-weight: 700; letter-spacing: -.02em; margin-top: 8px; }
.sub { color: var(--sub); }

.chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; color: #fff; padding: 3px 9px; border-radius: 999px; text-decoration: none; }
.tool { display: inline-block; font-size: 12.5px; font-weight: 500; color: var(--text); background: rgba(0,0,0,.05); padding: 4px 10px; border-radius: 999px; }
.pips { display: inline-flex; gap: 3px; vertical-align: middle; }
.pips i { width: 16px; height: 5px; border-radius: 3px; }
.btn { display: inline-flex; align-items: center; gap: 6px; font: 500 15px var(--font); padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; }
.btn.pri { background: var(--blue); color: #fff; }
.btn.sec { background: rgba(0,0,0,.06); color: var(--text); }
.ring { display: inline-block; width: 13px; height: 13px; border-radius: 50%; border: 3px solid #111; background: #fff; vertical-align: -2px; }

/* map pieces */
.lbl { font: 500 17px var(--font); letter-spacing: -.005em; }
.stn { cursor: pointer; outline: none; }
.stn:hover .lbl, .stn:focus-visible .lbl { text-decoration: underline; text-underline-offset: 3px; }
.line.draw { animation: draw 2.4s cubic-bezier(.45,0,.25,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.intro .stn { opacity: 0; animation: fade .5s 1.7s forwards; }
#map:not(.play) .line.draw, #map.intro:not(.play) .stn, #map.intro:not(.play) .future { animation-play-state: paused; } /* built early, played on arrival */
.future { opacity: .5; }
.intro .future { opacity: 0; animation: fadeHalf .5s 2.1s forwards; } /* appears once its line has finished drawing */
@keyframes fadeHalf { to { opacity: .5; } }
@keyframes fade { to { opacity: 1; } }
.ripple { animation: ripple 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ripple { from { transform: scale(1); opacity: .6; } to { transform: scale(2.3); opacity: 0; } }
.stn.on .lbl { font-weight: 700; }

/* placeholder cover when a project has no image yet */
.ph { position: relative; background: #e8e8ed; overflow: hidden; }
.ph::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 10px; transform: translateY(-50%); background: var(--c); }
.ph.inter::before { content: ''; position: absolute; z-index: 1; left: 50%; top: 50%; width: 18px; height: 18px; transform: translate(-50%,-50%); border-radius: 50%; background: #fff; border: 4px solid #111; }

footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 40px; font-size: 12.5px; color: var(--sub); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  .line.draw, .intro .stn, .ripple, .intro .future { animation: none; stroke-dashoffset: 0; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* thumbnail for a project with no photo yet: its name as a station on its line */
.sign { position: relative; background: #fff !important; container-type: size; overflow: hidden; }
.sign::after { content: ''; position: absolute; left: 0; right: 0; top: 62%; height: 4.5cqh; min-height: 5px; background: var(--c); }
.sign::before { content: ''; position: absolute; left: 50%; top: calc(62% - 5cqh); width: 2.2cqh; min-width: 3px; height: 5cqh; transform: translateX(-50%); background: var(--c); }
.sign span { position: absolute; left: 6%; right: 6%; bottom: 44%; text-align: center; font-weight: 600; font-size: 9cqw; line-height: 1.1; letter-spacing: -.01em; color: var(--ink); }
