/* doroga.kg/potok v2. Night-navy through the story (the film «Город как рой»), daylight for «Честно», «Пилот» and the
   contacts. One blue (#2563eb, #5b8cff on dark); the model's amber/orange/red only for congestion. Inter, own files. */
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/potok/fonts/inter-latin.woff2) format("woff2"); unicode-range: U+00??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/potok/fonts/inter-cyrillic.woff2) format("woff2"); unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116; }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/potok/fonts/inter-cyrillic-ext.woff2) format("woff2"); unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

:root {
  --night: #050d1d; --night2: #071226; --night3: #0a1730;
  --ink: #0f1d33; --text: #0f172a; --muted: #475569; --line: #e2e8f0; --soft: #f8fafc;
  --blue: #2563eb; --blue-l: #5b8cff; --blue-ll: #a9c3ff;
  --d-text: #e8eefc; --d-muted: #a7b5cf; --d-line: rgba(148, 176, 255, 0.16);
  --green: #22c55e; --red: #ef4444;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gut: max(16px, env(safe-area-inset-left));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body {
  margin: 0; background: var(--night); color: var(--d-text);
  font: 400 17px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 18px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-ll); }
button { font: inherit; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right)) 0 var(--gut); }
@media (min-width: 900px) { .wrap { padding: 0 32px; } }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(34px, 5.4vw, 68px); font-weight: 760; line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 28px; color: #fff; }
h3 { font-size: 20px; font-weight: 680; line-height: 1.3; }
section { padding: 72px 0; position: relative; }
@media (min-width: 900px) { section { padding: 120px 0; } }
.eyebrow { margin: 0 0 14px; font-size: 14px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-ll); }
.note { font-size: 15px; color: var(--d-muted); margin: 14px 0 0; }
@media (max-width: 719px) { .note { font-size: 16px; } }
:focus-visible { outline: 3px solid var(--blue-l); outline-offset: 3px; border-radius: 6px; }
.light :focus-visible { outline-color: var(--blue); }
.cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Header: clear over the live city, night glass once the page moves */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; transition: background-color 0.35s, box-shadow 0.35s; padding-top: env(safe-area-inset-top); }
.top.is-solid { background: rgba(5, 13, 29, 0.94); box-shadow: 0 1px 0 var(--d-line); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; min-height: 44px; }
.logo img { height: 28px; width: auto; }
.logo-d { display: none; }
.top.on-light { background: rgba(255, 255, 255, 0.97); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.top.on-light .logo-l { display: none; }
.top.on-light .logo-d { display: block; }
.top.on-light .lang { border-color: var(--line); background: #fff; }
.top.on-light .lang [data-lang] { color: var(--muted); }
.top.on-light .lang [data-lang][aria-pressed="true"] { background: var(--ink); color: #fff; }
.top.on-light :focus-visible { outline-color: var(--blue); }
.lang { display: flex; gap: 4px; padding: 2px; border: 1px solid rgba(169, 195, 255, 0.3); border-radius: 999px; background: rgba(5, 13, 29, 0.35); }
/* Links (16 Oct): a press before potok.js runs still opens /potok?lang=…; potok.js switches in place. */
.lang [data-lang] {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; line-height: 1;
  font-size: 14px; font-weight: 650; min-width: 44px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px;
  background: transparent; color: #c9d6f2; cursor: pointer;
}
.lang [data-lang][aria-pressed="true"] { background: #fff; color: var(--ink); }

/* ---- 1. Hero: the live city --------------------------------------------------------------------------------- */
.hero { height: 100vh; height: 100svh; min-height: 600px; padding: 0; overflow: hidden; background: var(--night); isolation: isolate; }
.hero-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: opacity 1.4s var(--ease); }
.js .hero-still { opacity: 0.42; }
.hero.is-slow .hero-still { opacity: 0.9; }
.hero.is-live .hero-still { opacity: 0; }
.hero-cv { opacity: 0; transition: opacity 0.6s; }
.hero.is-live .hero-cv { opacity: 1; }
.hero-shade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 13, 29, 0.7) 0, rgba(5, 13, 29, 0) 140px),
    radial-gradient(75% 80% at 8% 78%, rgba(5, 13, 29, 0.9) 0, rgba(5, 13, 29, 0.82) 42%, rgba(5, 13, 29, 0) 78%),
    radial-gradient(120% 90% at 0% 100%, rgba(5, 13, 29, 0.94) 0, rgba(5, 13, 29, 0.78) 30%, rgba(5, 13, 29, 0) 62%),
    linear-gradient(0deg, #050d1d 0, rgba(5, 13, 29, 0.85) 7%, rgba(5, 13, 29, 0) 34%); }
.hero-in { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: max(56px, 9vh); }
.hero-text { max-width: 760px; }
h1 { font-size: clamp(56px, 11.2vw, 148px); font-weight: 820; line-height: 0.9; letter-spacing: -0.05em; color: #fff; margin: 0 0 0 -0.04em; }
.h1a, .h1b { display: inline-block; }
.h1b { background: linear-gradient(100deg, #fff 0%, #cfdcff 38%, #7aa2ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
.lead { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.45; color: #e3eafa; margin: 26px 0 26px; max-width: 640px; text-shadow: 0 0 12px #050d1d, 0 0 4px #050d1d, 0 1px 2px #050d1d; }
.hero-text .eyebrow { text-shadow: 0 0 10px #050d1d, 0 0 3px #050d1d; }
.badge { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 9px 16px; border-radius: 999px; background: rgba(91, 140, 255, 0.14); border: 1px solid rgba(91, 140, 255, 0.35); color: #dbe6ff; font-size: 15px; font-weight: 600; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-l); flex: none; box-shadow: 0 0 0 0 rgba(91, 140, 255, 0.6); }
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise 1.1s var(--ease) both; }
  .hero-text .eyebrow { animation-delay: 0.15s; }
  .hero-text h1 { animation-delay: 0.3s; }
  .hero-text .lead { animation-delay: 0.55s; }
  .hero-text .badge { animation-delay: 0.75s; }
  .hero-text .vlink-row { animation-delay: 0.9s; }
  .badge .dot { animation: ping 2.4s ease-out infinite; }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(91, 140, 255, 0.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(91, 140, 255, 0); } }

.hud { position: absolute; z-index: 2; font-size: 14px; line-height: 1.4; color: rgba(226, 235, 255, 0.9); }
.clk { font-variant-numeric: tabular-nums; font-weight: 700; color: #fff; letter-spacing: -0.02em; text-shadow: 0 0 14px #050d1d, 0 0 4px #050d1d; }
.mk { display: block; }
.mk-model { color: #fff; font-weight: 650; }
/* the honesty marks over the live map sit on their own soft navy backing, so no street runs through the letters */
.hud-box, .s-marks, .city-fig .marks { padding: 7px 12px; border-radius: 12px; background: rgba(5, 13, 29, 0.8); box-shadow: 0 0 18px 6px rgba(5, 13, 29, 0.55); }
.hud-box { display: block; }
.dl { white-space: nowrap; }
.dl-2 { display: none; }
@media (max-width: 719px) { .dl-1 { display: none !important; } .dl-2 { display: block; } }
.h-hud { right: max(24px, env(safe-area-inset-right)); bottom: max(28px, 4vh); display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.h-hud .clk { font-size: 40px; line-height: 1; margin-bottom: 8px; opacity: 0; transition: opacity 0.8s; }
.hero.is-live .h-hud .clk { opacity: 1; }
.h-hud .dl { opacity: 0; transition: opacity 0.8s; }
.hero.is-live .h-hud .dl { opacity: 1; }
.rm .pz { visibility: hidden !important; }
.pz { display: grid; visibility: hidden; margin-top: 10px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(169, 195, 255, 0.4); background: rgba(5, 13, 29, 0.8); color: #fff; cursor: pointer; place-items: center; pointer-events: auto; }
html.live .pz { visibility: visible; }   /* its place is kept from the start, so nothing moves when it appears */
html.nodata .pz { visibility: hidden; }
.pz .i-play, .pz[aria-pressed="true"] .i-pause { display: none; }
.pz[aria-pressed="true"] .i-play { display: block; }
.cue { position: absolute; left: 50%; bottom: 14px; width: 44px; height: 72px; margin-left: -22px; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; color: rgba(255, 255, 255, 0.75); }
.cue-line { display: block; width: 2px; height: 40px; border-radius: 2px; background: rgba(255, 255, 255, 0.36); position: relative; overflow: hidden; }
.cue-chev { display: block; }
.cue-line::after { content: ""; position: absolute; left: 0; top: -40%; width: 2px; height: 40%; background: #fff; border-radius: 2px; }
@media (prefers-reduced-motion: no-preference) { .cue-line::after { animation: cue 2.2s var(--ease) infinite; } }
@keyframes cue { 0% { top: -40%; } 100% { top: 100%; } }
@media (max-width: 719px) {
  .hero-in { padding-bottom: 64px; }
  .lead { margin: 18px 0 20px; }
  .h-hud { top: calc(72px + env(safe-area-inset-top)); bottom: auto; right: 16px; font-size: 14px; }
  .h-hud .clk { font-size: 28px; margin-bottom: 6px; }
  .h-hud .pz { margin-top: 8px; }
  .cue { bottom: 4px; height: 52px; }
  .cue-line { height: 22px; }
  .hero-shade { background:
    linear-gradient(180deg, rgba(5, 13, 29, 0.75) 0, rgba(5, 13, 29, 0) 130px),
    linear-gradient(0deg, rgba(5, 13, 29, 0.97) 0, rgba(5, 13, 29, 0.9) 34%, rgba(5, 13, 29, 0) 62%); }
}

/* ---- 2. The story: a sticky canvas, panels scroll past --------------------------------------------------- */
.story { padding: 0; background: var(--night); }
.story-head { padding-top: 120px; padding-bottom: 24px; }
.story-head h2 { margin: 0; }
.track { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; z-index: 0; }
.stage-shade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 13, 29, 0.96) 0, rgba(5, 13, 29, 0.86) 24%, rgba(5, 13, 29, 0.25) 40%, rgba(5, 13, 29, 0) 50%),
    linear-gradient(180deg, rgba(5, 13, 29, 1) 0, rgba(5, 13, 29, 0) 120px),
    linear-gradient(0deg, #050d1d 0, rgba(5, 13, 29, 0.85) 30px, rgba(5, 13, 29, 0) 110px); }
.steps { position: relative; margin-top: -100vh; margin-top: -100svh; pointer-events: none; z-index: 1; }
.step { height: 100vh; height: 100svh; display: flex; align-items: center; }
/* the last step («Итог утра», the before/after) is two screens tall and its panel holds still: the compare stays
   whole on screen for a full screen of scroll, time to drag the divider */
.motion .step-end { height: 200vh; height: 200svh; align-items: flex-start; }
.motion .step-end .hold { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; }
.panel { pointer-events: auto; width: min(430px, 32vw); margin-left: max(32px, calc((100vw - 1200px) / 2 + 32px)); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.motion .step .panel { opacity: 0.18; transform: translateY(18px); }
.motion .step.is-on .panel { opacity: 1; transform: none; }
.panel h3 { font-size: clamp(30px, 3vw, 44px); font-weight: 760; line-height: 1.08; letter-spacing: -0.03em; color: #fff; margin-bottom: 16px; }
.panel .p-big { font-size: clamp(32px, 3.3vw, 50px); }
.panel p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: #d3ddf0; margin: 0; }
.panel .n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--blue-l); color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 18px; box-shadow: 0 0 24px rgba(91, 140, 255, 0.45); }
.snums { display: grid; gap: 14px; margin-top: 6px; }
.snum { position: relative; display: grid; gap: 4px; padding: 18px 18px 16px; border-radius: 18px; background: rgba(10, 23, 48, 0.86); border: 1px solid var(--d-line); }
.snum b { font-size: clamp(40px, 4vw, 60px); line-height: 1; font-weight: 820; color: #fff; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.snum span { font-size: 16px; line-height: 1.45; color: #c9d5ec; padding-right: 64px; }
.tagm { font-style: normal; font-size: 13px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-ll); border: 1px solid rgba(169, 195, 255, 0.5); border-radius: 999px; padding: 2px 9px; }
.snum .tagm, .num > .tagm { position: absolute; top: 16px; right: 16px; }

.s-hud { position: absolute; top: 92px; right: 32px; width: min(480px, 52vw); text-align: right; z-index: 2; pointer-events: none; }   /* fixed width: the counts change, nothing moves */
@media (min-width: 720px) { .s-clock .s-mode { min-width: 100%; text-align: right; } }
.s-clock { margin: 0; display: flex; flex-direction: column; align-items: flex-end; }
.s-clock .clk { font-size: 56px; line-height: 1; letter-spacing: -0.03em; }
.s-mode { margin-top: 6px; font-size: 14px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: #ffd28a; }
.stage.is-brain .s-mode { color: var(--blue-ll); }
.s-count { margin: 10px 0 0; font-size: 15px; color: #d3ddf0; display: inline-flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; padding: 5px 6px 5px 12px; border-radius: 999px; background: rgba(5, 13, 29, 0.8); box-shadow: 0 0 16px 4px rgba(5, 13, 29, 0.5); }
.s-count b { font-variant-numeric: tabular-nums; color: #fff; font-size: 17px; }
.stage:not(.has-data) .s-count { visibility: hidden; }
/* the before/after's two counts are a second line laid over the first and cross-faded: nothing reflows */
.s-counts { position: relative; }
.s-count { transition: opacity 0.35s; }
.s-count-cmp { position: absolute; right: 0; top: 0; white-space: nowrap; opacity: 0; }
.stage.is-cmp .s-count { opacity: 0; }
.stage.is-cmp .s-count-cmp { opacity: 1; }
.c-u { color: #ffc49e !important; }
.c-b { color: var(--blue-ll) !important; }
.c-to { color: rgba(222, 232, 255, 0.7); flex: none; }
.stage.is-cmp .s-mode { visibility: hidden; }
.s-hud .pz { margin: 10px 0 0 auto; }
.s-mode { text-shadow: 0 0 10px #050d1d; }
.s-cap, .s-ptag, .s-sig, .s-pill { position: absolute; margin: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.s-cap { top: 96px; left: 40%; max-width: 34%; padding: 10px 16px; border-radius: 14px; background: rgba(5, 13, 29, 0.82); border: 1px solid var(--d-line); font-size: 16px; font-weight: 650; color: #fff; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; transform: translateY(8px); }
.s-cap.on { opacity: 1; transform: none; }
.s-cap .pass { color: #ffb4b4; font-variant-numeric: tabular-nums; font-weight: 700; }
.s-ptag { left: 0; top: 0; padding: 6px 12px; border-radius: 999px; background: rgba(5, 13, 29, 0.9); border: 1.5px solid var(--blue-l); font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; }
.s-ptag.on { opacity: 1; }
.s-sig { left: 40%; bottom: 96px; display: flex; gap: 10px; align-items: center; padding: 8px 14px; border-radius: 999px; background: rgba(5, 13, 29, 0.85); border: 1px solid rgba(34, 197, 94, 0.55); color: #c9f5d9; font-size: 14px; font-weight: 650; }
.s-sig.on { opacity: 1; }
.gdot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.s-pill { left: 0; top: 0; padding: 7px 14px; border-radius: 999px; font-size: 15px; font-weight: 700; white-space: nowrap; background: rgba(5, 13, 29, 0.9); }
.s-pill-u { border: 1.5px solid #f2762e; color: #ffd8bf; }
.s-pill-b { border: 1.5px solid var(--blue-l); color: #dbe6ff; }
.stage.is-cmp .s-pill { opacity: 1; }
.stage.is-cmp .s-pill.cut { opacity: 0; }
.wipe { position: absolute; left: 0; top: 0; width: 44px; margin-left: -22px; z-index: 3; cursor: ew-resize; touch-action: none; opacity: 0; pointer-events: none; display: grid; place-items: center; border-radius: 22px; }
.stage.is-cmp .wipe { opacity: 1; pointer-events: auto; }
html.nodata .wipe { display: none; }
.knob { width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(91, 140, 255, 0.25), 0 8px 26px rgba(0, 0, 0, 0.45); transition: transform 0.2s var(--ease); }
.wipe:hover .knob, .wipe.is-drag .knob { transform: scale(1.08); }
.wipe:focus-visible { outline: none; }
.wipe:focus-visible .knob { box-shadow: 0 0 0 4px var(--blue-l), 0 0 0 9px rgba(91, 140, 255, 0.35); }
.marks { margin: 0; font-size: 14px; line-height: 1.4; color: rgba(226, 235, 255, 0.9); }
.s-marks { position: absolute; right: 32px; bottom: 26px; text-align: right; z-index: 2; pointer-events: none; }
/* while the 45-car pack is drawn one dot per car, the dot scale is not shown (it would not hold for those dots) */
.stage.is-tell .s-marks .dl { visibility: hidden; }
@media (max-width: 999px) {
  .panel { width: min(380px, 36vw); margin-left: 24px; }
  .s-cap { left: 42%; max-width: 54%; }
  .s-sig { left: 42%; }
}
@media (min-width: 720px) and (max-width: 999px) {
  .s-cap { top: 300px; left: auto; right: 24px; max-width: min(56%, 420px); }
  .s-hud { right: 24px; }
  .s-marks { right: 24px; }
}
@media (max-width: 719px) {
  .story-head { padding-top: 84px; }
  .stage-shade { background:
    linear-gradient(180deg, rgba(5, 13, 29, 1) 0, rgba(5, 13, 29, 0) 130px),
    linear-gradient(0deg, rgba(5, 13, 29, 0.98) 0, rgba(5, 13, 29, 0.92) 30%, rgba(5, 13, 29, 0) 46%); }
  .step { align-items: flex-end; }
  .panel { width: auto; margin: 0 16px max(24px, env(safe-area-inset-bottom)); padding: 18px 18px 20px; border-radius: 20px; background: rgba(7, 18, 38, 0.94); border: 1px solid var(--d-line); }
  .panel h3, .panel .p-big { font-size: 26px; margin-bottom: 8px; }
  .panel p { font-size: 17px; }
  .panel .n { width: 30px; height: 30px; margin-bottom: 10px; font-size: 14px; }
  .snums { grid-template-columns: 1fr; gap: 8px; }
  .snum { grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 12px 14px; }
  .snum b { grid-row: span 2; font-size: 36px; }
  .snum span { font-size: 16px; padding-right: 0; }
  .snum .tagm { position: static; justify-self: start; align-self: start; }
  .s-hud { top: calc(70px + env(safe-area-inset-top)); left: 16px; right: 16px; width: auto; text-align: left; }
  .s-clock { flex-direction: row; align-items: baseline; gap: 10px; }
  .s-clock .clk { font-size: 30px; }
  .s-mode { font-size: 13px; margin: 0; }
  .s-count { justify-content: flex-start; font-size: 14px; margin-top: 2px; }
  .s-count b { font-size: 15px; }
  .s-hud .pz { position: absolute; top: -2px; right: 0; margin: 0; }
  .s-cap { top: calc(196px + env(safe-area-inset-top)); left: 16px; right: 16px; max-width: none; font-size: 16px; padding: 8px 12px; }
  .s-sig { left: 16px; top: calc(252px + env(safe-area-inset-top)); bottom: auto; font-size: 14px; }
  .s-marks { top: calc(132px + env(safe-area-inset-top)); left: 16px; right: 16px; bottom: auto; text-align: left; font-size: 13px; line-height: 1.35; padding: 5px 10px; }
  .s-marks .mk { display: inline; }
  .s-marks .mk + .mk::before { content: " · "; color: rgba(222, 232, 255, 0.5); }
  .s-ptag { font-size: 13px; }
  .motion .step-end .hold { align-items: flex-end; }
  /* at the compare the two counts need the whole line; «Модель · условные данные» sits right under it */
  .s-count-cmp { right: auto; left: 0; }
  .s-count-cmp .tagm { display: none; }
  .s-pill { font-size: 14px; padding: 6px 11px; }
}

/* ---- 3. The film -------------------------------------------------------------------------------------- */
.film { background: linear-gradient(180deg, var(--night) 0, var(--night2) 100%); }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: var(--night); box-shadow: 0 0 0 1px var(--d-line), 0 40px 120px -30px rgba(37, 99, 235, 0.45); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: var(--night); cursor: pointer; color: #fff; }
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease), filter 1.6s var(--ease); }
.poster::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 50%, rgba(5, 13, 29, 0) 0, rgba(5, 13, 29, 0.55) 100%); pointer-events: none; }
.poster .play {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--ink); padding-left: 6px;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.12), 0 18px 50px rgba(0, 0, 0, 0.45); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.poster .play::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.5); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .poster:hover img, .poster:focus-visible img { transform: scale(1.035); filter: brightness(1.08) saturate(1.1); }
  .poster:hover .play { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(255, 255, 255, 0.14), 0 22px 60px rgba(0, 0, 0, 0.5); }
  .poster .play::before { animation: halo 2.6s ease-out infinite; }
}
@keyframes halo { 0% { transform: scale(0.9); opacity: 0.7; } 100% { transform: scale(1.45); opacity: 0; } }
.poster .soon { position: absolute; z-index: 1; left: 50%; top: calc(50% + 72px); transform: translateX(-50%); white-space: nowrap; padding: 7px 16px; border-radius: 999px; background: rgba(5, 13, 29, 0.82); border: 1px solid var(--d-line); font-size: 15px; font-weight: 650; }
.poster[data-ready] .soon { display: none; }
.poster:not([data-ready]) { cursor: default; }
/* until the film is uploaded: no big play disc, just a calm «Видео — скоро» on the still */
.poster:not([data-ready]) .play { display: none; }
.poster:not([data-ready]) .soon { top: 50%; transform: translate(-50%, -50%); padding: 10px 20px; font-size: 16px; }
.poster:not([data-ready]) img { filter: saturate(0.85) brightness(0.8); }
@media (max-width: 719px) { .poster .play { width: 76px; height: 76px; margin: -38px 0 0 -38px; } .poster[data-ready] .soon { top: calc(50% + 52px); font-size: 14px; } .player { border-radius: 18px; } }
/* Before the film is on YouTube: one slim card (thumbnail + «Видео — скоро»), not an empty 16:9 player. */
.film.is-soon { padding-top: 48px; padding-bottom: 48px; }
.film.is-soon h2 { margin-bottom: 16px; }
.film.is-soon .player { aspect-ratio: auto; height: 104px; max-width: 640px; border-radius: 18px; box-shadow: 0 0 0 1px var(--d-line); }
.film.is-soon .poster img { position: absolute; left: 0; top: 0; width: 184px; height: 100%; filter: saturate(0.9) brightness(0.9); }
.film.is-soon .poster::after { display: none; }
.film.is-soon .poster .soon { left: 208px; right: 20px; top: 50%; transform: translateY(-50%); padding: 0; border: 0; background: none; font-size: 18px; font-weight: 600; text-align: left; white-space: normal; }
.film.is-soon .note { margin-top: 10px; }
@media (max-width: 719px) { .film.is-soon .player { height: 84px; } .film.is-soon .poster img { width: 150px; } .film.is-soon .poster .soon { left: 166px; font-size: 16px; } }
/* Two films (13 Oct): side by side from 900 px, stacked on a phone; each card's title and line sit under its poster */
.films { display: grid; gap: 40px; }
@media (min-width: 900px) { .films.two { grid-template-columns: 1fr 1fr; gap: 32px; } .films.two .player { border-radius: 20px; box-shadow: 0 0 0 1px var(--d-line), 0 30px 90px -30px rgba(37, 99, 235, 0.45); } }
.ftitle { margin: 18px 0 0; font-size: clamp(20px, 1.8vw, 24px); font-weight: 720; color: #fff; }
.fsub { margin: 6px 0 0; font-size: 17px; line-height: 1.45; color: var(--d-muted); max-width: 560px; }
.film.is-soon .ftitle, .film.is-soon .fsub { display: none; }
.films + .note { margin-top: 28px; }
@media (min-width: 900px) { .films.two .poster .play { width: 88px; height: 88px; margin: -44px 0 0 -44px; } }
/* «Видео» (16 Oct): four smaller cards after the two films, then the report. One row of four on a wide screen,
   two by two on a tablet, stacked on a phone; the same lite player as the films. */
.vids { display: grid; gap: 28px; margin-top: 56px; }
@media (min-width: 640px) { .vids { grid-template-columns: 1fr 1fr; gap: 28px 24px; } }
@media (min-width: 1100px) { .vids { grid-template-columns: repeat(4, 1fr); gap: 22px; } }
.vcard .player { border-radius: 16px; box-shadow: 0 0 0 1px var(--d-line), 0 24px 60px -30px rgba(37, 99, 235, 0.4); }
.vcard .poster .play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
.vcard .poster .play svg { width: 26px; height: 26px; }
.vcard .poster[data-ready] .soon { display: none; }
.vcard .ftitle { margin-top: 14px; font-size: 18px; line-height: 1.3; }
.vcard .fsub { font-size: 15.5px; }
.vru { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--blue-ll); }
.vru[hidden] { display: none; }
.doc { display: flex; align-items: center; gap: 18px; margin-top: 48px; padding: 20px 24px; border-radius: 18px; text-decoration: none; color: var(--d-text); background: rgba(91, 140, 255, 0.08); border: 1px solid var(--d-line); max-width: 820px; min-height: 44px; }
.doc-ic { flex: none; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(91, 140, 255, 0.16); color: var(--blue-ll); }
.doc-tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.doc-t { font-size: 18px; font-weight: 700; color: #fff; line-height: 1.3; }
.doc-m { font-size: 15px; color: var(--d-muted); }
.doc-go { flex: none; font-size: 15px; font-weight: 650; color: var(--blue-ll); white-space: nowrap; }
@media (hover: hover) { .doc:hover { background: rgba(91, 140, 255, 0.14); border-color: rgba(169, 195, 255, 0.35); } }
@media (max-width: 639px) { .doc { flex-wrap: wrap; padding: 18px; gap: 14px; } .doc-go { flex-basis: 100%; padding-left: 66px; } }
.doc + .note { margin-top: 24px; }
/* The way in from the top: a link in the hero and one in the header, both to #video. */
.vlink-row { margin: 18px 0 0; }
.vlink { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: #fff; color: #0b1a33; font-size: 16px; font-weight: 700; text-decoration: none; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6); }
@media (hover: hover) { .vlink:hover { background: var(--blue-ll); } }
.top-v { margin-left: auto; margin-right: 12px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; color: #fff; font-size: 15px; font-weight: 650; text-decoration: none; }
@media (hover: hover) { .top-v:hover { background: rgba(169, 195, 255, 0.14); } }
.top.on-light .top-v { color: var(--ink); }

/* ---- 4. «Что получает житель» -------------------------------------------------------------------------- */
.you { background: linear-gradient(180deg, var(--night2) 0, var(--night3) 100%); overflow: hidden; }
.you-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .you-grid { grid-template-columns: minmax(300px, 380px) 1fr; gap: 72px; } }
.phone-col { display: grid; justify-items: center; }
.proto-h { font-size: 15px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-ll); margin-bottom: 22px; text-align: center; }
.phone { position: relative; width: min(300px, 64vw); aspect-ratio: 360 / 717; margin-bottom: 52px; }
.phone::before { content: ""; position: absolute; left: -30%; right: -30%; top: 10%; bottom: -6%; background: radial-gradient(50% 50% at 50% 55%, rgba(37, 99, 235, 0.42), rgba(37, 99, 235, 0) 70%); z-index: 0; pointer-events: none; }
.scr { position: absolute; inset: 0; margin: 0; z-index: 1; opacity: 0; transform: translateX(26px) scale(0.985); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); pointer-events: none; }
.scr.is-on { opacity: 1; transform: none; }
.scr.is-out { opacity: 0; transform: translateX(-26px) scale(0.985); }
.scr img { width: 100%; height: 100%; border-radius: 14.5% / 7.3%; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(169, 195, 255, 0.14); background: #0a1428; }
.scr figcaption { position: absolute; left: -20px; right: -20px; top: 100%; margin-top: 16px; text-align: center; font-size: 16px; font-weight: 600; color: #dbe4f6; }
.ticks { display: flex; gap: 6px; margin-bottom: 6px; }
.ticks i { width: 34px; height: 4px; border-radius: 4px; background: rgba(169, 195, 255, 0.22); overflow: hidden; position: relative; }
.ticks i::after { content: ""; position: absolute; inset: 0; background: var(--blue-l); transform: scaleX(0); transform-origin: left; }
.ticks i.done::after { transform: scaleX(1); }
.ticks i.run::after { animation: tick 3.6s linear forwards; }
.phone-col.is-held .ticks i.run::after { animation: none; transform: scaleX(1); }
@keyframes tick { to { transform: scaleX(1); } }
.bens { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ben { position: relative; padding: 20px 22px 20px 26px; border-radius: 18px; border: 1px solid var(--d-line); background: rgba(10, 23, 48, 0.5); transition: background-color 0.4s, border-color 0.4s, transform 0.4s var(--ease); }
.ben::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--blue-l); transform: scaleY(0); transition: transform 0.45s var(--ease); }
.ben.is-on { background: rgba(37, 99, 235, 0.16); border-color: rgba(91, 140, 255, 0.55); }
.ben.is-on::before { transform: scaleY(1); }
.ben h3 { font-size: 21px; margin-bottom: 4px; }
.ben button { all: unset; cursor: pointer; color: #fff; font-weight: 700; }
.ben button::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.ben button:focus-visible::after { outline: 3px solid var(--blue-l); outline-offset: 2px; }
.ben p { margin: 0; color: var(--d-muted); font-size: 17px; }
.ben.is-on p { color: #d3ddf0; }
.nums { display: grid; gap: 16px; margin-top: 64px; max-width: 720px; }
.num { position: relative; display: grid; gap: 6px; align-content: start; padding: 26px 24px 24px; border-radius: 22px; background: linear-gradient(160deg, rgba(37, 99, 235, 0.18), rgba(10, 23, 48, 0.7) 60%); border: 1px solid var(--d-line); color: #d3ddf0; }
.num b { font-size: clamp(56px, 6vw, 84px); line-height: 1; font-weight: 820; color: #fff; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.num span { font-size: 17px; line-height: 1.45; padding-right: 76px; }
.bars { display: grid; gap: 10px; margin-top: 14px; }
.num-bars > span { font-size: 19px; font-weight: 600; color: #fff; }
.bar { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; font-size: 16px; }
.bl { grid-column: 1 / -1; color: var(--d-muted); font-weight: 600; }
.bt { height: 12px; }
.bt { height: 10px; border-radius: 10px; background: rgba(169, 195, 255, 0.12); overflow: hidden; }
.bt i { display: block; height: 100%; border-radius: 10px; transform-origin: left; }
.bu { width: 100%; background: linear-gradient(90deg, #f5a524, #ef4444); }
.bb { width: 87.46%; background: linear-gradient(90deg, #2563eb, #7aa2ff); }
.bv { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.motion .bars .bt i { transform: scaleX(0); transition: transform 1.4s var(--ease) 0.3s; }
.motion .in .bars .bt i { transform: none; }
.motion .in .bars .bb { transition-delay: 0.6s; }
@media (max-width: 480px) { .num span { padding-right: 0; } .num > .tagm { position: static; justify-self: start; } }

/* ---- 5. «Что получает город» --------------------------------------------------------------------------- */
.city { background: var(--night3); }
.city-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .city-grid { grid-template-columns: 1fr 1.08fr; gap: 64px; } }
.para { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; margin: 0 0 28px; color: #d3ddf0; }
.cstats { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.cstats li { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--d-line); }
.cstats b { font-size: 26px; font-weight: 780; color: #fff; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cstats span { color: var(--d-muted); font-size: 16px; }
.cstats .tagm { margin-left: auto; }
.city-fig { position: relative; margin: 0; aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden; background: var(--night); box-shadow: 0 0 0 1px var(--d-line), 0 40px 100px -40px rgba(37, 99, 235, 0.5); }
.fig-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transition: opacity 1s; }
.city-fig.is-live .fig-still { opacity: 0; }
.city-fig .cv { opacity: 0; transition: opacity 0.8s; }
.city-fig.is-live .cv { opacity: 1; }
.city-fig .marks { position: absolute; left: 14px; bottom: 14px; z-index: 1; }
.city-fig .pz { position: absolute; top: 14px; right: 14px; margin: 0; z-index: 1; }

/* ---- 6. «Вместе заботимся о городе»: residents' reports ------------------------------------------------------ */
.reports { background: linear-gradient(180deg, var(--night3) 0, var(--night) 100%); overflow: hidden; }
.rep-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .rep-grid { grid-template-columns: 1fr minmax(300px, 360px); gap: 72px; } }
.rsteps { list-style: none; counter-reset: rs; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.rsteps li { counter-increment: rs; position: relative; display: grid; gap: 2px; padding: 16px 18px 16px 64px; border-radius: 16px; border: 1px solid var(--d-line); background: rgba(10, 23, 48, 0.5); }
.rsteps li::before { content: counter(rs); position: absolute; left: 18px; top: 16px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--blue-l); color: #fff; font-weight: 700; font-size: 14px; }
.rsteps b { color: #fff; font-size: 19px; font-weight: 680; }
.rsteps span { color: var(--d-muted); font-size: 17px; }
/* The emergency note: plain, full-size text on its own calm card; never small print */
.sos { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.24); }
.sos p { margin: 0; font-size: 18px; line-height: 1.5; color: #fff; font-weight: 500; }
.sos-i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(239, 68, 68, 0.16); color: #fca5a5; }
.rep-phone { display: grid; justify-items: center; }
.rphone { position: relative; width: min(320px, 100%); padding: 14px 14px 18px; border-radius: 40px; background: #0a1428; box-shadow: 0 0 0 1px rgba(169, 195, 255, 0.16), 0 0 0 8px #050b17, 0 0 0 9px rgba(169, 195, 255, 0.14), 0 50px 90px -30px rgba(0, 0, 0, 0.75); font-size: 15px; }
.rphone::before { content: ""; position: absolute; left: -30%; right: -30%; top: 10%; bottom: -6%; background: radial-gradient(50% 50% at 50% 55%, rgba(37, 99, 235, 0.35), rgba(37, 99, 235, 0) 70%); z-index: -1; pointer-events: none; }
.rp-top { display: flex; justify-content: center; height: 22px; }
.rp-notch { width: 84px; height: 20px; border-radius: 12px; background: #050b17; }
.rp-tag { position: absolute; top: 44px; right: 26px; z-index: 1; background: rgba(5, 13, 29, 0.85); }
.rp-photo { position: relative; margin-top: 10px; border-radius: 22px; overflow: hidden; aspect-ratio: 280 / 150; }
.rp-photo > svg { display: block; width: 100%; height: 100%; }
.rp-loc { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 8px; border-radius: 999px; background: rgba(5, 13, 29, 0.88); color: #dbe6ff; font-size: 13px; font-weight: 650; }
.rp-loc svg { color: var(--blue-l); }
.rp-chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rp-chips li { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--d-line); color: #c9d5ec; font-size: 13px; font-weight: 600; }
.rp-chips li.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.rp-card { margin-top: 14px; padding: 14px 14px 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--d-line); }
.rp-card > b { display: block; color: #fff; font-size: 16px; font-weight: 700; }
.rp-stat { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rp-stat li { position: relative; padding-top: 12px; font-size: 12px; line-height: 1.3; font-weight: 600; color: var(--d-muted); }
.rp-stat li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 4px; background: rgba(34, 197, 94, 0.45); }
.rp-stat li.on { color: #bbf7d0; }
.rp-stat li.on::before { background: var(--green); box-shadow: 0 0 10px rgba(34, 197, 94, 0.6); }
.rp-msg { margin: 12px 0 0; padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: rgba(34, 197, 94, 0.14); color: #dcfce7; font-size: 14px; line-height: 1.4; font-weight: 550; }
.rep-lines { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .rep-lines { grid-template-columns: 1fr 1fr; } }
.rep-lines li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--d-line); color: #d3ddf0; font-size: 17px; line-height: 1.5; }
.rl-i { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(91, 140, 255, 0.14); color: var(--blue-ll); }
.reports .note { max-width: 820px; }

/* ---- Light: «Честно», «Пилот», contacts ------------------------------------------------------------------ */
.light { background: var(--soft); color: var(--text); color-scheme: light; }
.light.white { background: #fff; }
.light h2 { color: var(--ink); }
.light .para { color: var(--ink); }
.pilot-lead { max-width: 820px; font-weight: 600; }
@media (min-width: 900px) {
  .light .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; align-items: start; }
  .light .wrap > h2 { grid-column: 1; grid-row: 1 / span 6; position: sticky; top: 120px; font-size: clamp(40px, 4.4vw, 60px); }
  .light .wrap > :not(h2) { grid-column: 2; }
  .light .pilot { grid-template-columns: repeat(3, 1fr); }
}
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 820px; }
.checks li { position: relative; padding: 18px 20px 18px 58px; background: #fff; border: 1px solid var(--line); border-radius: 16px; font-size: 19px; font-weight: 550; color: var(--ink); box-shadow: 0 1px 2px rgba(15, 29, 51, 0.04); }
.checks li::before { content: ""; position: absolute; left: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.2 5.8 12.5l-1.4 1.4 5.1 5.1L20 8.5l-1.4-1.4z' fill='%23fff'/%3E%3C/svg%3E") center / 16px no-repeat; }
.pbar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 12px 0 0; }
.pbar i { height: 8px; border-radius: 8px; background: var(--line); position: relative; overflow: hidden; }
.pbar i::after { content: ""; position: absolute; inset: 0; background: var(--blue); transform-origin: left; }
.motion .pbar i::after { transform: scaleX(0); transition: transform 0.9s var(--ease); }
.motion .in .pbar i::after { transform: none; }
.motion .in .pbar i:nth-child(1)::after { transition-delay: 0.3s; }
.motion .in .pbar i:nth-child(2)::after { transition-delay: 1.1s; }
.motion .in .pbar i:nth-child(3)::after { transition-delay: 1.9s; }
.pilot { display: grid; gap: 12px; margin-bottom: 28px; max-width: 820px; }
@media (min-width: 720px) { .pilot { grid-template-columns: repeat(3, 1fr); } }
.pilot div { display: grid; gap: 2px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.pilot b { font-size: 28px; font-weight: 780; color: var(--ink); letter-spacing: -0.025em; white-space: nowrap; }
.pilot span { color: var(--muted); }
.light-badge { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.light-badge .dot { background: var(--blue); }
.contact { padding-bottom: 96px; }
.org-lead { max-width: 820px; }
.links { display: flex; flex-wrap: wrap; gap: 12px; }
.links a { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 650; text-decoration: none; transition: background-color 0.2s, transform 0.2s var(--ease); }
.links a:hover { background: var(--blue); transform: translateY(-1px); }
.foot { padding: 26px 0 calc(26px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--muted); background: var(--soft); border-top: 1px solid var(--line); color-scheme: light; }
.foot-in { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--muted); }
.foot-link { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; margin: -11px 0; }

/* Reveal on scroll (only with JS and motion: potok.js adds .motion to <html>) */
.motion .rv { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.motion .rv.in { opacity: 1; transform: none; }
.motion .checks .rv:nth-child(2), .motion .bens .rv:nth-child(2), .motion .pilot .rv:nth-child(2) { transition-delay: 0.08s; }
.motion .checks .rv:nth-child(3), .motion .bens .rv:nth-child(3), .motion .pilot .rv:nth-child(3) { transition-delay: 0.16s; }
.motion .checks .rv:nth-child(4), .motion .bens .rv:nth-child(4) { transition-delay: 0.24s; }
.motion .checks .rv:nth-child(5) { transition-delay: 0.32s; }
.motion .ben.rv.in { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), background-color 0.4s, border-color 0.4s; }

/* No JS, no model data, or reduced motion: the story is plain panels (with reduced motion, under a still frame) */
html:not(.js) .stage, .nodata .stage { display: none; }
html:not(.js) .steps, .rm .steps, .nodata .steps { margin-top: 0; pointer-events: auto; padding-bottom: 72px; }
html:not(.js) .step, .rm .step, html.nodata .step { height: auto; min-height: 0; display: block; padding: 18px 0; }
html.nodata .step-end .hold { position: static; height: auto; display: block; }
html:not(.js) .panel, .rm .panel, html.nodata .step .panel, html.nodata .step.is-on .panel { width: auto; max-width: 760px; margin: 0 auto; padding: 0 var(--gut); background: none; border: 0; opacity: 1; transform: none; }
.rm .stage { position: relative; height: 78vh; height: 78svh; min-height: 520px; }
.rm .stage-shade { background: linear-gradient(180deg, rgba(5, 13, 29, 1) 0, rgba(5, 13, 29, 0) 120px), linear-gradient(0deg, rgba(5, 13, 29, 0.9) 0, rgba(5, 13, 29, 0) 90px); }
html:not(.js) .city-fig .fig-still, .nodata .city-fig .fig-still, .nodata .hero-still { opacity: 0.9; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
