@font-face { font-family: 'Overpass'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/vendor/fonts/overpass-latin-wght-normal.woff2') format('woff2'); }

:root {
  --night: #0A0F16;
  --glass: rgba(10, 15, 22, 0.66);
  --line: rgba(232, 238, 243, 0.12);
  --text: #E8EEF3;
  --dim: #93A1AE;
  --sorrel: #E0784A;
  --teal: #3FB7AA;
  --sky: #6F9FD8;
  --amber: #E9A23B;
  --violet: #8C79C9;
  --red: #E0574A;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body { margin: 0; color: var(--text); font: 400 17px/1.6 'Overpass', system-ui, sans-serif; -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum' 1; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sorrel); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--night); padding: 8px 12px; z-index: 60; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: clamp(32px, 4.2vw, 54px); margin-bottom: 18px; }
p { margin: 0 0 1em; }

/* ---------- live map stage ---------- */
.stage { position: fixed; inset: 0; z-index: 0; background: #07090c; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.shade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 15, 22, .92) 0%, rgba(10, 15, 22, .62) 32%, rgba(10, 15, 22, .08) 62%, rgba(10, 15, 22, 0) 100%),
    linear-gradient(0deg, rgba(10, 15, 22, .85) 0%, rgba(10, 15, 22, 0) 22%),
    linear-gradient(180deg, rgba(10, 15, 22, .7) 0%, rgba(10, 15, 22, 0) 14%); }
.curtain { position: absolute; inset: 0; background: var(--night); transition: opacity 1.6s var(--ease); pointer-events: none; }
.curtain.lift { opacity: 0; }

/* ---------- header ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(18px, 4vw, 44px); }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.logo svg { width: 22px; height: 22px; fill: var(--sorrel); filter: drop-shadow(0 0 8px rgba(224, 120, 74, .6)); }
.top-right { display: flex; align-items: center; gap: 16px; }
.livetag { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--dim); font-variant-numeric: tabular-nums; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--sorrel); box-shadow: 0 0 0 0 rgba(224, 120, 74, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(224, 120, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 120, 74, 0); } }
@media (max-width: 560px) { .livetag { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 24px; border-radius: 999px; background: var(--sorrel); color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; border: 2px solid var(--sorrel); transition: background .2s, transform .2s var(--ease), box-shadow .2s; box-shadow: 0 10px 30px -10px rgba(224, 120, 74, .7); }
.btn:hover { background: #ea8659; transform: translateY(-1px); }
.btn.small { min-height: 40px; padding: 8px 18px; font-size: 14px; box-shadow: none; }
.btn.ghost { background: rgba(232, 238, 243, .06); border-color: var(--line); color: var(--text); box-shadow: none; backdrop-filter: blur(8px); }
.btn.ghost:hover { background: rgba(232, 238, 243, .12); }

/* ---------- transit-line progress ---------- */
.line { position: fixed; right: clamp(14px, 2.4vw, 34px); top: 50%; transform: translateY(-50%); z-index: 25; }
.line ol { list-style: none; margin: 0; padding: 0; position: relative; }
.line ol::before { content: ''; position: absolute; right: 7px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: rgba(232, 238, 243, .14); }
.line ol::after { content: ''; position: absolute; right: 7px; top: 8px; width: 3px; border-radius: 2px; height: var(--progress, 0%); background: var(--teal); box-shadow: 0 0 12px rgba(63, 183, 170, .7); transition: height .8s var(--ease); }
.line li { position: relative; }
.line a { position: relative; display: flex; align-items: center; justify-content: flex-end; padding: 9px 0; text-decoration: none; }
.line a span { position: absolute; right: 30px; font-size: 13px; color: var(--dim); opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s var(--ease), color .3s; white-space: nowrap; }
.line:hover a span, .line a:focus-visible span, .line a.on span { opacity: 1; transform: none; }
.line a.on span { color: var(--text); font-weight: 700; }
.line i { position: relative; z-index: 1; width: 17px; height: 17px; border-radius: 50%; background: var(--night); border: 3px solid rgba(232, 238, 243, .3); transition: border-color .3s, background .3s, transform .3s var(--ease); flex: none; }
.line a.passed i { border-color: var(--teal); }
.line a.on i { border-color: var(--teal); background: var(--teal); transform: scale(1.25); box-shadow: 0 0 0 5px rgba(63, 183, 170, .2); }
@media (max-width: 820px) { .line { display: none; } }

/* ---------- chapters ---------- */
main { position: relative; z-index: 10; }
.chapter { min-height: 100vh; display: flex; align-items: center; padding: 110px clamp(18px, 5vw, 72px) 80px; }
.chapter.hero { min-height: 100vh; align-items: flex-end; padding-bottom: clamp(80px, 12vh, 140px); position: relative; }
.panel { width: min(560px, 100%); background: var(--glass); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 3vw, 36px); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
  opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.chapter.in .panel { opacity: 1; transform: none; }
.panel.bare { background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; width: min(820px, 100%); }
.panel > p:not(.kicker):not(.mail-text) { color: #C3CDD6; max-width: 54ch; }
.chapter.wide .panel { width: min(860px, 100%); }
.kicker { color: var(--teal); font-weight: 700; font-size: 15px; margin-bottom: 10px; }
#air .kicker { color: var(--sky); } #roads .kicker { color: var(--amber); } #ask .kicker, #contact .kicker { color: var(--sorrel); } #layers .kicker, #private .kicker { color: var(--violet); }

/* hero title: words rise in sequence once the map is up */
.title { font-size: clamp(60px, 11vw, 168px); line-height: .88; letter-spacing: -0.05em; margin-bottom: 26px; text-shadow: 0 10px 50px rgba(0, 0, 0, .5); }
.title span { display: inline-block; opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(8px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); }
.ready .title span { opacity: 1; transform: none; filter: none; }
.ready .title span:nth-child(2) { transition-delay: .14s; } .ready .title span:nth-child(3) { transition-delay: .28s; }
.hero .lede { font-size: clamp(18px, 1.6vw, 21px); color: #C9D3DC; max-width: 46ch; opacity: 0; transform: translateY(16px); transition: opacity 1s .45s var(--ease), transform 1s .45s var(--ease); }
.hero .ctas, .hero .signs { opacity: 0; transform: translateY(16px); transition: opacity 1s .6s var(--ease), transform 1s .6s var(--ease); }
.hero .signs { transition-delay: .75s; }
.ready .hero .lede, .ready .hero .ctas, .ready .hero .signs { opacity: 1; transform: none; }
.hero .panel { opacity: 1; transform: none; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.signs { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 30px 0 0; padding: 0; }
.sign { display: flex; align-items: center; gap: 10px; background: rgba(10, 15, 22, .72); border: 1px solid var(--line); backdrop-filter: blur(10px); border-radius: 10px; padding: 6px 12px 6px 6px; font-size: 14px; color: #C9D3DC; }
.sign b { min-width: 46px; text-align: center; padding: 4px 9px; border-radius: 6px; color: #07090c; font-size: 18px; font-weight: 800; }
.sign.transit b { background: var(--teal); } .sign.air b { background: var(--sky); } .sign.road b { background: var(--amber); } .sign.eps b { background: var(--violet); color: #fff; }

.scrollcue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(232, 238, 243, .4); border-radius: 14px; }
.scrollcue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--text); animation: cue 1.8s infinite var(--ease); }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- live cards (fed by the map's followed vehicle) ---------- */
.livecard { margin-top: 18px; background: rgba(7, 9, 12, .7); border: 1px solid var(--line); border-radius: 16px; padding: 16px; min-height: 120px; }
.livecard .ch { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.livecard .route { min-width: 44px; text-align: center; font-weight: 800; font-size: 18px; padding: 6px 10px; border-radius: 8px; background: var(--teal); color: #07090c; }
.livecard .ico { width: 36px; height: 36px; color: var(--sky); filter: drop-shadow(0 0 8px rgba(111, 159, 216, .7)); }
.livecard h3 { margin: 0; font-size: 18px; line-height: 1.2; }
.livecard .sub { color: var(--dim); font-size: 13px; margin: 2px 0 0; }
.livecard .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.livecard .grid div { background: rgba(232, 238, 243, .04); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.livecard .grid span { display: block; color: var(--dim); font-size: 12px; }
.livecard .grid b { font-size: 16px; }
.livecard .next { background: rgba(63, 183, 170, .1); border: 1px solid rgba(63, 183, 170, .3); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; }
.livecard .next span { color: var(--teal); font-size: 12px; font-weight: 700; display: block; }
.livecard .next b { font-size: 16px; }
.livecard .trip { display: flex; align-items: center; justify-content: space-between; background: rgba(224, 120, 74, .1); border: 1px solid rgba(224, 120, 74, .3); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; }
.livecard .trip b { display: block; font-size: 22px; font-weight: 800; } .livecard .trip span { font-size: 12px; color: var(--dim); }
.livecard .trip i { font-style: normal; color: var(--sorrel); font-size: 22px; }
.livecard .tick { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 12px; color: var(--dim); }
.livecard .tick::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--sorrel); animation: pulse 2s infinite; }
.late { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 5px; margin-left: 6px; vertical-align: 2px; }
.late.ok { background: rgba(143, 209, 143, .15); color: #8fd18f; } .late.warn { background: rgba(233, 162, 59, .15); color: var(--amber); } .late.bad { background: rgba(224, 87, 74, .2); color: #ff8277; } .late.early { background: rgba(111, 159, 216, .18); color: var(--sky); }
.sk { height: 86px; border-radius: 10px; background: linear-gradient(100deg, rgba(232,238,243,.03) 30%, rgba(232,238,243,.09) 50%, rgba(232,238,243,.03) 70%); background-size: 200% 100%; animation: sk 1.4s infinite; list-style: none; }
@keyframes sk { to { background-position: -200% 0; } }

.facts { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.facts li { background: rgba(7, 9, 12, .6); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 14.5px; color: #C9D3DC; }
.facts li b { color: var(--text); }
.facts .hot b { color: #ff8277; }

.answer { margin: 18px 0 0; background: rgba(7, 9, 12, .7); border: 1px solid var(--line); border-left: 4px solid var(--sorrel); border-radius: 14px; padding: 18px 20px; }
.answer figcaption { font-weight: 700; color: var(--dim); font-size: 13px; margin-bottom: 8px; }
.answer-text { font-size: 16.5px; line-height: 1.6; margin: 0; min-height: 3em; }
.answer-text sup { color: var(--sorrel); font-weight: 700; font-size: 11px; }
.answer-src { margin: 12px 0 0; padding-left: 18px; color: var(--dim); font-size: 12.5px; }
.typing::after { content: '▍'; color: var(--sorrel); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.legend { width: 100%; border-collapse: collapse; margin-top: 8px; }
.legend th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--dim); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legend td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14.5px; color: #C9D3DC; }
.legend tr:last-child td { border-bottom: 0; }
.legend td:first-child { width: 44px; }
.legend td:nth-child(2) b { display: block; color: var(--text); font-size: 15.5px; }
.legend td:nth-child(2) span { color: var(--dim); font-size: 13.5px; }
.legend td:nth-child(4) { white-space: nowrap; }
.sym { display: block; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px; }
.sym.bus { background: var(--teal); box-shadow: 0 0 12px rgba(63, 183, 170, .8); }
.sym.plane { background: var(--sky); clip-path: path('M11 1c.9 0 1.4 1.2 1.4 2.2V8.5l8 4.6v2l-8-2.4v5.3l2.4 1.9V22L11 21l-3.8 1v-2.1l2.4-1.9v-5.3l-8 2.4v-2l8-4.6V3.2C9.6 2.2 10.1 1 11 1z'); border-radius: 0; }
.sym.road { background: var(--amber); clip-path: polygon(50% 4%, 96% 92%, 4% 92%); border-radius: 0; }
.sym.radar { background: radial-gradient(circle, #a9cdf5 0 30%, #6f9fd8 31% 55%, rgba(111, 159, 216, .35) 56%); }
.sym.eps { background: var(--violet); width: 16px; height: 16px; margin: 5px 3px; box-shadow: 0 0 10px rgba(140, 121, 201, .8); }
.sym.permit { background: var(--text); border-radius: 4px; width: 18px; height: 18px; margin: 4px 2px; }
.sym.heat { background: var(--red); clip-path: path('M11 1c2 4 7 7 7 13a7 7 0 0 1-14 0c0-2.6 1.3-4.4 2.6-5.6C7 11.4 8.6 12 9.4 12 8.6 7.8 9.3 4.4 11 1z'); border-radius: 0; }
@media (max-width: 720px) { .legend thead { display: none; } .legend td:nth-child(3), .legend td:nth-child(4) { display: none; } }

.trio { display: grid; gap: 14px; margin-top: 6px; }
.trio p { margin: 0; color: #C3CDD6; border-left: 3px solid var(--violet); padding-left: 14px; }
.trio b { display: block; color: var(--text); font-size: 17px; }

.mail-text { margin: 12px 0 0; color: var(--dim); font-size: 14px; user-select: all; }

#contact { flex-direction: column; justify-content: center; align-items: flex-start; }
.foot { margin-top: auto; padding-top: 60px; width: min(860px, 100%); font-size: 13px; color: var(--dim); }
.foot p { margin: 0 0 6px; }
.foot b { color: var(--text); }
.foot .attr { font-size: 12px; opacity: .85; }

/* ---------- mobile: map behind, panels as sheets ---------- */
@media (max-width: 820px) {
  .shade { background: linear-gradient(0deg, rgba(10, 15, 22, .95) 0%, rgba(10, 15, 22, .55) 45%, rgba(10, 15, 22, .15) 75%), linear-gradient(180deg, rgba(10, 15, 22, .7) 0%, rgba(10, 15, 22, 0) 16%); }
  .chapter { align-items: flex-end; padding: 90px 14px 40px; }
  .chapter.hero { padding-bottom: 70px; }
  .panel { border-radius: 18px; }
  .livecard .grid { grid-template-columns: 1fr 1fr; }
  .scrollcue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .panel, .title span, .hero .lede, .hero .ctas, .hero .signs { opacity: 1 !important; transform: none !important; filter: none !important; }
}
