/* Actual Sky. Chrome is black, white and gray only; every other color on a page is a measured sky color.
   Layout follows the October mockups: fixed full-screen pages for Home, City, World view and Statistics. */
:root {
  --ink: #0A0B0D; --ink-2: #16181C; --paper: #EDEEF0; --fg: #F2F3F5;
  --mute: #8B9099; --mute-2: #5E636B; --line-d: rgba(255,255,255,.12); --line-l: rgba(10,11,13,.14);
  --display: "Inter Tight", "Inter", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --pad: clamp(18px, 2.8vw, 40px);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--ink); color: var(--fg); font: 15px/1.45 var(--body); -webkit-font-smoothing: antialiased; }
body.light-page { background: var(--paper); color: var(--ink); }
a { color: inherit; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.giant { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -.035em; line-height: .84; }
.grain { position: absolute; inset: 0; background: url(noise.png); mix-blend-mode: overlay; opacity: .34; pointer-events: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- fixed full-screen pages */
.screen { position: relative; height: 100vh; height: 100dvh; min-height: 560px; overflow: hidden; background: var(--ink); }
.screen.light { background: var(--paper); color: var(--ink); }
.sky { position: absolute; inset: 0; background: #050608; }

/* ---------- nav */
.nav { position: fixed; z-index: 30; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(28px + env(safe-area-inset-top, 0px)) max(var(--pad), env(safe-area-inset-right, 0px)) 0 max(var(--pad), env(safe-area-inset-left, 0px)); pointer-events: none; }
.nav > * { pointer-events: auto; }
.wordmark { font-family: var(--display); font-weight: 900; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; }
.live { color: #AEB3BA; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, #fff); margin-right: 8px; }
.light-page .live { color: var(--mute-2); }
.nav-mid { display: flex; align-items: center; gap: 14px; min-width: 0; }
.navpick { position: relative; display: inline-flex; align-items: center; border: 1px solid currentColor; border-radius: 99px; opacity: .85; flex: none; }
.navpick select { appearance: none; background: transparent; border: 0; color: inherit; font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 6px 28px 6px 12px; cursor: pointer; max-width: 190px; }
.navpick select option, .navpick select optgroup { color: #0A0B0D; background: #fff; text-transform: none; }
.navpick::after { content: "⌄"; position: absolute; right: 11px; top: 2px; font-size: 12px; pointer-events: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.menu-open .nav .navpick { visibility: hidden; }
.burger { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; background: transparent; cursor: pointer; }
.burger b { position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; background: currentColor; transition: transform .28s ease; }
.burger b:nth-child(1) { transform: translate(-50%, -50%) translateY(-3px); }
.burger b:nth-child(2) { transform: translate(-50%, -50%) translateY(3px); }
/* the two lines meet in the middle, then turn 90° apart */
.menu-open .burger b:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); transition: transform .2s ease, transform .25s .2s ease; }
.menu-open .burger b:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); transition: transform .2s ease, transform .25s .2s ease; }

/* ---------- menu: grows out of the burger */
.menu { position: fixed; inset: 0; z-index: 25; background: var(--menu-bg, #333); color: var(--menu-ink, #F2F3F5);
  clip-path: circle(0 at var(--bx, 95%) var(--by, 5%)); transition: clip-path .55s cubic-bezier(.7,0,.2,1); visibility: hidden; overflow: auto; }
.menu-open .menu { clip-path: circle(150% at var(--bx, 95%) var(--by, 5%)); visibility: visible; }
.menu .blob { position: absolute; right: -18vw; top: -22vw; width: 48vw; height: 48vw; border-radius: 50%; background: var(--menu-blob); opacity: .6; }
.menu nav { position: relative; padding: calc(120px + env(safe-area-inset-top, 0px)) var(--pad) 60px; }
.menu nav a { display: flex; gap: 22px; align-items: flex-start; text-decoration: none; }
.menu nav a .mono { font-size: 12px; opacity: .6; width: 28px; padding-top: 1.2vw; flex: none; }
.menu nav a .giant { font-size: clamp(54px, 9.2vw, 132px); line-height: .98; transition: opacity .2s; }
.menu nav a:hover .giant, .menu nav a[aria-current] .giant { opacity: .6; }
.menu .rand { position: absolute; left: 50%; transform: translateX(-50%); top: calc(42px + env(safe-area-inset-top, 0px)); opacity: .8; white-space: nowrap; background: none; border: 0; cursor: pointer; }
.menu-open .nav .live { visibility: hidden; }
.menu-open .nav { color: var(--menu-ink) !important; }

/* ---------- shared pieces */
.kv { display: grid; grid-template-columns: auto auto; column-gap: 28px; row-gap: 7px; font-size: 14px; }
.kv dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); padding-top: 3px; }
.kv dd { font-variant-numeric: tabular-nums; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: 4px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line-d); color: #C8CCD2; background: transparent; cursor: pointer; }
.tab[aria-pressed="true"] { background: #F2F3F5; color: var(--ink); border-color: #F2F3F5; }
.light .tab, .light-page .tab { border-color: var(--line-l); color: var(--mute-2); }
.light .tab[aria-pressed="true"], .light-page .tab[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px; background: rgba(10,11,13,.07); color: var(--ink); display: inline-flex; gap: 8px; align-items: center; border: 0; cursor: pointer; text-decoration: none; }
.pill[aria-pressed="true"] { background: var(--ink); color: #fff; }
.dark .pill, .screen:not(.light) .pill { background: rgba(255,255,255,.08); color: #D8DBE0; }
.screen:not(.light) .pill[aria-pressed="true"] { background: #F2F3F5; color: var(--ink); }
.band { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; display: flex; }
.band span { flex: 1; }
.band span.gap { background: #0E0F12; }
.ticks { position: absolute; left: var(--pad); right: var(--pad); bottom: 30px; display: flex; justify-content: space-between; color: #7D838C; }
.dd { display: inline-flex; align-items: center; gap: 14px; padding: 8px 16px; border-radius: 99px; border: 1px solid rgba(255,255,255,.25); font-size: 14px; position: relative; }
.light .dd, .light-page .dd { border-color: rgba(10,11,13,.25); }
.dd .mono { color: var(--mute); }
.dd select { max-width: 170px; appearance: none; background: transparent; border: 0; color: inherit; font: inherit; padding-right: 18px; cursor: pointer; }
.dd select option { color: #0A0B0D; background: #fff; }
.dd::after { content: "⌄"; position: absolute; right: 16px; top: 5px; opacity: .6; pointer-events: none; }

/* ---------- home and city */
.hero-meta { position: absolute; left: var(--pad); right: var(--pad); }
.hero-name { font-size: clamp(56px, 10.8vw, 156px); color: #F2F3F5; white-space: nowrap; display: inline-block; width: max-content; }
.hero-name.city-name { font-size: min(17.4vw, 22vh, 250px); line-height: .9; }
.right-kv { position: absolute; right: var(--pad); width: 320px; color: #E5E8EC; }
.tf { position: absolute; right: var(--pad); bottom: 58px; }
.tf-note { position: absolute; right: var(--pad); bottom: 104px; text-align: right; color: var(--mute); }
.city-pills { position: absolute; left: var(--pad); top: calc(96px + env(safe-area-inset-top, 0px)); right: var(--pad); display: flex; flex-wrap: wrap; gap: 8px; z-index: 5; }
.city-info { position: absolute; left: var(--pad); right: var(--pad); display: flex; flex-wrap: wrap; gap: 20px 56px; align-items: flex-start; }
.city-info .nm { font-size: 30px; letter-spacing: -.01em; }
/* text lockups anchored to the bottom so they never collide with the time buttons, in any frame shape */
.lockup { top: auto; bottom: 112px; z-index: 2; }
.home-screen .lockup { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 56px; align-items: end; }
.home-screen .lockup .right-kv { position: static; width: auto; min-width: 280px; }
.home-screen .lk-main #meta { margin-bottom: 14px; }
.home-screen .hero-name { font-size: min(10.8vw, 18vh, 156px); }
.city-lockup .city-info { position: static; margin-top: 20px; }
.city-tf { display: flex; align-items: center; gap: 22px; }
.city-tf .tf-note { position: static; }
.city-info .kv.codes { margin-top: 10px; color: #E5E8EC; row-gap: 4px; }
.cam-link { position: absolute; right: var(--pad); bottom: 136px; text-align: right; font-size: 13px; color: #C9CDD3; max-width: 46%; }
.cam-link .mono { color: var(--mute); margin-right: 8px; }
.cam-link a { color: #E5E8EC; text-underline-offset: 3px; }

/* ---------- world view */
.world-cols { position: absolute; inset: 0; }
.world-cols div { position: absolute; mix-blend-mode: screen; }
.world-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- cities page (kept from v1) */
.cities-page { min-height: 100vh; transition: background-color .5s ease; position: relative; padding: calc(120px + env(safe-area-inset-top, 0px)) var(--pad) 80px; }
.cities-head { position: relative; z-index: 1; padding-top: 120px; }
.cities-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 4.4vw, 62px); letter-spacing: -.03em; line-height: 1.05; white-space: nowrap; }
.cities-head .arrow { font-weight: 300; }
.toggle { display: inline-flex; gap: 0; vertical-align: baseline; }
.toggle button { font: inherit; font-size: .62em; letter-spacing: -.02em; background: none; border: 0; color: inherit; padding: 0 .18em; cursor: pointer; opacity: .32; transition: opacity .2s; }
.toggle button + button::before { content: "/"; margin-right: .35em; opacity: .5; }
.toggle button[aria-pressed="true"] { opacity: 1; }
.cities-head h1 { position: relative; z-index: 1; }
.cities-head .arc { position: absolute; left: calc(-1 * var(--pad)); width: 100vw; top: -10px; height: 230px; color: currentColor; z-index: 0; }
.ctable td.num { color: var(--mute); font-size: 11px; width: 40px; }
.ctable .near { font-size: 10px; color: var(--mute); letter-spacing: .06em; text-transform: uppercase; }
.ghost { position: fixed; left: 0; right: 0; top: 46%; transform: translateY(-50%); text-align: center; font-family: var(--display); font-weight: 900; font-size: clamp(80px, 17vw, 300px);
  letter-spacing: -.06em; color: #fff; opacity: 0; pointer-events: none; transition: opacity .4s ease; white-space: nowrap; overflow: hidden; z-index: 0; text-transform: uppercase; }
.ctable { width: 100%; border-collapse: collapse; position: relative; z-index: 1; font-variant-numeric: tabular-nums; margin-top: 36px; }
.ctable th { text-align: left; font: 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.22); }
.ctable td { padding: 12px; border-bottom: 1px solid var(--line-d); vertical-align: middle; }
.ctable tr:hover td { background: rgba(0,0,0,.18); }
.ctable .name a { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.ctable .name a:hover { text-decoration: underline; text-underline-offset: 4px; }
.dot { display: inline-block; width: 22px; height: 22px; border-radius: 50%; vertical-align: middle; margin-right: 10px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.credit { font: 12px var(--mono); color: var(--mute); text-decoration: none; white-space: nowrap; }
.credit:hover { color: var(--fg); }
.tablewrap { overflow-x: auto; }
.showall { margin-top: 28px; position: relative; z-index: 1; }
.btn { appearance: none; border: 1px solid rgba(255,255,255,.3); background: transparent; border-radius: 99px; padding: 12px 22px; font: 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.btn.solid { background: #F2F3F5; color: var(--ink); border-color: #F2F3F5; }

/* ---------- filters */
.filters { padding: calc(112px + env(safe-area-inset-top, 0px)) var(--pad) 40px; min-height: 100vh; }
.filters h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5.8vw, 84px); letter-spacing: -.04em; line-height: 1.04; }
.filters h1 .q { color: var(--mute-2); }
.filters h1 .caret { font-weight: 300; color: var(--mute-2); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.fgrid { display: grid; grid-template-columns: minmax(0, 700px) minmax(0, 1fr); gap: 60px; align-items: center; margin-top: 56px; }
.frow { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-top: 1px solid var(--line-l); align-items: center; }
.frow > .mono { color: var(--mute-2); }
.frow .opts { display: flex; flex-wrap: wrap; gap: 8px; max-width: 470px; }
.fswatch { height: 440px; border-radius: 14px; position: relative; overflow: hidden; transition: background-color .4s ease; }
.fswatch .t { position: absolute; left: 24px; right: 24px; bottom: 22px; }
.fswatch .nm { font-size: 40px; letter-spacing: -.02em; margin-top: 8px; }
.linkbtn { background: none; border: 0; cursor: pointer; }
@media (max-width: 900px) { .fgrid { grid-template-columns: minmax(0, 1fr); } .fswatch { height: 300px; } .frow { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

/* ---------- statistics */
.stat-tabs { position: absolute; left: var(--pad); top: calc(96px + env(safe-area-inset-top, 0px)); display: flex; gap: 8px; z-index: 6; }
.stat-tabs .pill { font-size: 12px; padding: 8px 16px; }
.stat-body { position: absolute; left: var(--pad); right: var(--pad); top: calc(160px + env(safe-area-inset-top, 0px)); bottom: 36px; }
.matrix-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; height: 100%; }
.matrix-wrap .bigtime { font-family: var(--display); font-size: 84px; letter-spacing: -.04em; line-height: 1; margin-top: 18px; }
.wheel-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; height: 100%; }
.legend { display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; font-size: 14px; color: #C9CDD3; align-items: center; }
.legend i { width: 40px; height: 14px; border-radius: 2px; }
.lab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 34px 60px; }
.lab .cap { color: #8B9099; margin-bottom: 6px; }
.lab .sub { font-size: 15px; color: #C9CDD3; margin-bottom: 18px; }
.barcode { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: center; gap: 12px; margin-bottom: 10px; }
.barcode div { display: flex; height: 30px; }
.barcode div span { flex: 1; }
.pills-col { display: flex; gap: 28px; flex-wrap: wrap; }
.pills-col > div { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pills-col .p { width: 54px; height: 260px; border-radius: 28px; }

/* ---------- about (long page) */
.ab-hero { position: relative; overflow: hidden; background: #050608; padding: calc(140px + env(safe-area-inset-top, 0px)) var(--pad) 0; }
.ab-hero .giant { font-size: clamp(64px, 12vw, 172px); }
.ab-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; margin-top: 44px; position: relative; z-index: 2; }
.ab-intro .big { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.35; }
.ab-intro .big p + p { margin-top: 26px; }
.counters { text-align: left; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 34px 70px; align-content: start; color: #AEB3BA; padding-top: 8px; }
.counters b { display: block; font-family: var(--display); font-weight: 900; font-size: 44px; color: #F2F3F5; line-height: 1.1; }
.ab-horizon { position: relative; height: 240px; margin: 40px calc(var(--pad) * -1) 0; }
.sec { padding: clamp(64px, 8vw, 110px) var(--pad); position: relative; }
.sec.grey { background: var(--paper); color: var(--ink); }
.sec.white { background: #fff; color: var(--ink); }
.sec.black { background: #050608; color: #F2F3F5; }
.sec h2 { font-family: var(--display); font-weight: 500; font-size: clamp(34px, 3.8vw, 52px); letter-spacing: -.03em; line-height: 1.08; }
.measured { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 60px; align-items: center; max-width: 1240px; margin: 0 auto; position: relative; }
.notes { margin-top: 48px; display: grid; gap: 46px; max-width: 360px; position: relative; }
.note { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; }
.note .mono { color: var(--mute-2); padding-top: 6px; }
.note h3 { font-weight: 400; font-size: 22px; letter-spacing: -.01em; }
.note p { font-size: 15px; color: #4A4F57; margin-top: 6px; max-width: 26ch; }
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.phone { width: 330px; height: 640px; border-radius: 46px; background: #0A0B0D; padding: 12px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); position: relative; z-index: 1; }
.phone .scr { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #08090B; color: #fff; }
.choose-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; max-width: 1240px; margin: 0 auto; align-items: start; }
.choose-head p { color: #AEB3BA; max-width: 56ch; }
.choose-head p + p { margin-top: 14px; }
.filmstrip { max-width: 1240px; margin: 64px auto 0; display: grid; gap: 0; }
.fs-row { display: grid; grid-template-columns: 210px 130px minmax(0, 1fr) 150px; gap: 20px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line-d); }
.fs-row:last-child { border-bottom: 1px solid var(--line-d); }
.fs-frame { position: relative; aspect-ratio: 4 / 3; border-radius: 3px; overflow: hidden; max-width: 100%; }
.fs-row .arrow { position: relative; height: 1px; background: #5E636B; margin: 0 6px; }
.fs-row .arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 4.5px solid transparent; border-left: 8px solid #5E636B; border-right: 0; }
.fs-row h3 { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.015em; }
.fs-row p { color: #AEB3BA; margin-top: 6px; max-width: 62ch; }
.fs-row .rule { color: #6C727B; margin-top: 10px; display: block; }
.verdict { justify-self: end; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 7px 12px; border-radius: 99px; border: 1px solid rgba(255,255,255,.25); color: #C8CCD2; white-space: nowrap; }
.verdict.keep { background: #F2F3F5; color: var(--ink); border-color: #F2F3F5; }
.featured-row { grid-template-columns: 210px 130px minmax(0, 1fr) 150px; }
.pipeline { max-width: 1280px; margin: 40px auto 0; display: grid; gap: 22px; }
.prow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; align-items: center; }
.pcell { position: relative; display: flex; align-items: center; }
.pcell img, .pcell .run { width: 100%; aspect-ratio: 260 / 185; object-fit: cover; border-radius: 3px; display: block; }
.pcell .arr { position: absolute; right: 0; width: 80px; text-align: center; z-index: 1; font: 10px var(--mono); text-transform: uppercase; }
.prow .pcell { padding-right: 80px; }
.prow .pcell:last-child { padding-right: 0; flex-direction: column; align-items: stretch; }
.runcap { margin-top: 8px; color: var(--mute-2); }
.runavg { margin-top: 6px; color: var(--mute-2); font-size: 10px; display: flex; align-items: center; gap: 8px; }
.runavg i { width: 18px; height: 10px; border-radius: 2px; display: inline-block; }
.invite { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.invite .big { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.35; }
.invite p + p { margin-top: 16px; color: #4A4F57; max-width: 56ch; }
.invite .btn { margin-top: 28px; display: inline-block; text-decoration: none; background: var(--ink); color: #fff; border-color: var(--ink); }
.closing { display: grid; grid-template-columns: minmax(0, 680px) 440px; justify-content: space-between; gap: 40px; max-width: 1280px; margin: 80px auto 0; align-items: center; }
.closing .big { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.4; }
.bigsw { height: 300px; border-radius: 4px; position: relative; }
.bigsw .kv { position: absolute; left: 28px; bottom: 26px; font-size: 16px; }
.bigsw .kv dt { color: inherit; opacity: .7; }
.contact { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 500px); justify-content: space-between; gap: 60px; max-width: 1240px; margin: 0 auto; }
.contact .giant { font-size: clamp(64px, 9vw, 120px); margin-bottom: 40px; }
.field { margin-bottom: 14px; }
.field label { display: block; color: #8B9099; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; background: transparent; border: 1px solid rgba(255,255,255,.22); border-radius: 26px; color: #F2F3F5; padding: 12px 18px; font: inherit; }
.field textarea { border-radius: 10px; min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.credits { max-width: 1240px; margin: 70px auto 0; border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; }
.credits p { font-size: 13px; color: #AEB3BA; line-height: 1.7; margin-top: 8px; }
.credits a { color: inherit; }
.notice { margin-top: 16px; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; padding: 10px 14px; color: #C9CDD3; font-size: 14px; }

.sim { position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); top: calc(84px + env(safe-area-inset-top, 0px)); background: rgba(10,11,13,.82); border: 1px solid rgba(255,255,255,.18);
  border-radius: 99px; padding: 6px 14px; color: #C9CDD3; white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; pointer-events: none; }

/* ---------- phone */
@media (max-width: 820px) {
  .hero-screen { height: auto; min-height: 100vh; min-height: 100dvh; padding: 60vh var(--pad) 80px; }
  .city-screen { padding-top: 56vh; } .world-screen { padding-top: 84vh; }
  .hero-screen .hero-meta, .hero-screen .city-info, .hero-screen .tf, .hero-screen .chips { position: relative !important; top: auto !important; left: auto !important; right: auto !important; bottom: auto !important; z-index: 2; }
  .hero-screen .city-info, .hero-screen .tf, .hero-screen .chips { margin-top: 22px; }
  .hero-screen .hero-meta > div { flex-direction: column; }
  .hero-name.city-name { font-size: 15vw; }
  .city-pills { top: calc(86px + env(safe-area-inset-top, 0px)); }
  .nav .live { display: none; }
  .right-kv { position: static; width: auto; margin-top: 18px; }
  .tf { bottom: 54px; left: var(--pad); right: auto; } .tf-note { display: none; }
  .home-screen .lockup { grid-template-columns: minmax(0, 1fr); } .home-screen .lockup .right-kv { min-width: 0; } .home-screen .hero-name { font-size: 12vw; } .cities-head { padding-top: 90px; } .cities-head .arc { height: 150px; }
  .ticks span:not(:first-child):not(:last-child) { display: none; }
  .matrix-wrap, .wheel-wrap, .lab { grid-template-columns: minmax(0, 1fr); }
  .screen.scrolls { height: auto; min-height: 100vh; overflow: visible; }
  .screen.scrolls .stat-body { position: relative; left: auto; right: auto; top: auto; bottom: auto; padding: calc(160px + env(safe-area-inset-top, 0px)) var(--pad) 40px; }
  .measured, .choose-head, .closing, .contact, .ab-intro { grid-template-columns: minmax(0, 1fr); }
  .phone { margin: 0 auto; } .leaders { display: none; }
  .fs-row, .featured-row { grid-template-columns: 120px minmax(0, 1fr); } .fs-row .arrow { display: none; } .verdict { grid-column: 2; justify-self: start; }
  .prow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .prow .pcell { padding-right: 0; } .pcell .arr { display: none; }
  .counters { text-align: left; }
  .invite { grid-template-columns: minmax(0, 1fr); gap: 20px; } .cities-head h1 { white-space: normal; } .cam-link { position: relative !important; right: auto; bottom: auto; text-align: left; max-width: none; margin-top: 18px; z-index: 2; } .navpick select { max-width: 130px; }
  .city-info { gap: 14px 28px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (max-width: 1180px) { .hide-md { display: none; } }
@media (max-width: 820px) { .hide-sm { display: none; } }

/* ---------- motion: things arrive on load, sections rise in as you scroll */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dawn { from { opacity: 0; transform: translateY(6%) scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes sweep { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes cone { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.anim-in #sky, .anim-in .hero-screen > .sky:first-child { animation: dawn 1.8s cubic-bezier(.16,.8,.24,1) both; }
.anim-in .lockup > *, .anim-in .lk-main > *, .anim-in .city-info > *, .anim-in .city-pills, .anim-in .tf, .anim-in .hero-meta,
.anim-in .chips, .anim-in .cities-head h1, .anim-in .filters h1, .anim-in .frow, .anim-in .fswatch, .anim-in .stat-tabs, .anim-in .stat-body,
.anim-in .ab-hero .giant, .anim-in .ab-intro > * { animation: rise .9s cubic-bezier(.16,.8,.24,1) both; animation-delay: calc(var(--i, 0) * 90ms + 250ms); }
.anim-in .band { animation: sweep 1.4s cubic-bezier(.6,0,.2,1) .5s both; }
.anim-in .ticks { animation: fade 1s ease 1.2s both; }
.world-cols.grow div { transform-origin: 50% 100%; animation: cone 1.3s cubic-bezier(.16,.8,.24,1) both; animation-delay: var(--d, 0ms); }
.world-svg.grow circle { transform-box: fill-box; transform-origin: center; animation: pop .5s ease both; animation-delay: var(--d, 0ms); }
.cities-head .arc.grow circle { transform-box: fill-box; transform-origin: center; animation: pop .6s ease both; animation-delay: var(--d, 0ms); }
#msv.grow circle { animation: fade .5s ease both; animation-delay: var(--d, 0ms); }
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s cubic-bezier(.16,.8,.24,1), transform .9s cubic-bezier(.16,.8,.24,1); transition-delay: var(--rd, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.menu nav a { opacity: 0; transform: translateX(-30px); transition: opacity .4s ease, transform .5s cubic-bezier(.16,.8,.24,1); }
.menu-open .menu nav a { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 60ms + 200ms); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .menu nav a { opacity: 1; transform: none; } [class*="anim"] *, .grow * { animation: none !important; } }

/* ---------- world view: horizon / map switch and the map */
.world-tabs { position: fixed; z-index: 31; }
.menu-open .world-tabs { visibility: hidden; }
.map-screen { position: fixed; inset: 0; z-index: 20; height: 100vh; height: 100dvh; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.map-screen.on { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.map-screen canvas, .map-screen svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-screen .ocean { font: 9px var(--mono); letter-spacing: .14em; }
.map-screen .gl { font: 8.5px var(--mono); letter-spacing: .12em; }
.map-screen .mlab { font: 600 15px var(--display); letter-spacing: -.01em; }
.map-screen svg a { cursor: pointer; }
.guides { position: absolute; right: var(--pad); top: calc(150px + env(safe-area-inset-top, 0px)); display: flex; align-items: center; gap: 10px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #AEB3BA; cursor: pointer; }
.guides input { position: absolute; opacity: 0; }
.guides i { width: 34px; height: 20px; border-radius: 99px; background: rgba(255,255,255,.18); position: relative; transition: background .25s; }
.guides i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .25s ease; }
.guides input:checked + i { background: #fff; }
.guides input:checked + i::after { background: #0A0B0D; }
.guides input:checked + i::after { transform: translateX(14px); }
.map-cap { position: absolute; left: var(--pad); bottom: 28px; color: #8A9099; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.map-tip { position: absolute; left: var(--pad); bottom: 52px; color: #F2F3F5; font-size: 11px; background: rgba(255,255,255,.1); padding: 6px 10px; border-radius: 99px; }
@media (max-width: 820px) { .guides { top: auto; bottom: 64px; } .map-cap { right: var(--pad); } }
.map-screen { touch-action: pan-y; } .map-screen.on { cursor: grab; }
.world-tabs .pill { background: rgba(255,255,255,.08); color: #D8DBE0; }
.world-tabs .pill[aria-pressed="true"] { background: #F2F3F5; color: var(--ink); }
.mkey { display: flex; flex-wrap: wrap; gap: 16px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute-2); margin: 0 0 6px; }
.mkey span { display: inline-flex; align-items: center; gap: 6px; }
.mkey i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; box-sizing: border-box; }
.mkey i.sm { width: 5px; height: 5px; }
.mkey i.xs { width: 3px; height: 3px; }
