:root {
  --navy: #071a2c;
  --navy-2: #0e3453;
  --green: #39bf94;
  --green-deep: #079d70;
  --zone: #f4c84a;
  --ink: #f4f6f3;
  --muted: #b9c7cc;
  --glass: rgba(8, 24, 40, 0.58);
  --line: rgba(255, 255, 255, 0.16);
  --sans: "Manrope", system-ui, sans-serif;
  --serif: "Noto Serif Display", Georgia, serif;
}
* { box-sizing: border-box; }
html { background: var(--navy); }
body { margin: 0; font-family: var(--sans); color: var(--ink); -webkit-font-smoothing: antialiased; background: var(--navy); }
a { color: inherit; text-decoration: none; }
.num { font-variant-numeric: tabular-nums; }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 18px clamp(16px, 4vw, 48px); padding-top: max(18px, env(safe-area-inset-top)); }
.nav::before { content: ""; position: absolute; inset: 0 0 -30px 0; background: linear-gradient(#04101c66, transparent); pointer-events: none; z-index: -1; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 24px; letter-spacing: -0.06em; }
.brand img { border-radius: 9px; }
.nav nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 600; color: #e6eef0; }
.nav nav a:hover { color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: 14px; transition: transform 0.2s, background 0.2s; }
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: linear-gradient(135deg, var(--green), #2aa37d); color: #04241a; box-shadow: 0 8px 28px #39bf9440; }
.btn-ghost { border: 1px solid var(--line); background: #ffffff12; backdrop-filter: blur(10px); }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 16px; }

/* the film: a tall track with a pinned stage */
.film { position: relative; height: 1250vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; background: #0a2233; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.grade { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(130% 100% at 50% 40%, transparent 60%, #03101c66 100%),
  linear-gradient(to top, #04121fcc 0, transparent 34%),
  linear-gradient(to right, #04121f8c 0, transparent 46%); }
.loader { position: absolute; inset: 0; display: grid; place-items: center; background: var(--navy); transition: opacity 0.9s; z-index: 5; }
.loader span { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #ffffff22; border-top-color: var(--green); animation: spin 0.9s linear infinite; }
.loader.done { opacity: 0; pointer-events: none; }
@keyframes spin { to { transform: rotate(1turn); } }

/* captions */
.beat { position: absolute; left: clamp(18px, 6vw, 96px); bottom: clamp(64px, 11vh, 120px); width: min(470px, calc(100vw - 36px)); opacity: 0; transform: translateY(26px); pointer-events: none; will-change: opacity, transform; }
.beat.on { pointer-events: auto; }
.kicker { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--green); }
h1, h2 { margin: 0; font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; text-wrap: balance; text-shadow: 0 2px 30px #02101c80; }
h1 { font-size: clamp(46px, 7.4vw, 104px); }
h2 { font-size: clamp(38px, 5vw, 68px); }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 300; letter-spacing: -0.02em; color: #eaf7ef; }
.lede { margin: 18px 0 0; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.55; color: #dbe6e8; max-width: 40ch; text-shadow: 0 1px 14px #02101c; }
.beat-hero { width: min(900px, calc(100vw - 36px)); bottom: clamp(90px, 16vh, 170px); }
.beat-end { width: min(640px, calc(100vw - 36px)); }
.scroll-cue { margin-top: 34px; display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #cfe0df; }
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--green), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* app elements */
.card { background: var(--glass); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 18px 50px #020d1870; }
.search-card { margin-top: 22px; display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-size: 16px; font-weight: 600; color: #fff; }
.search-card svg { color: var(--muted); flex: none; }
.caret { width: 2px; height: 18px; background: var(--green); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.row-card { margin-top: 10px; display: flex; gap: 12px; align-items: center; padding: 14px 16px; }
.row-card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px #39bf9433; flex: none; }
.row-card strong { display: block; font-size: 16px; }
.row-card small, .card small { color: var(--muted); font-size: 12.5px; }
.zone-line { margin-top: 22px; display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; }
.zone-chip { background: var(--zone); color: #3a2b00; font-weight: 800; padding: 6px 12px; border-radius: 9px; font-size: 18px; }
.verified { font-size: 12px; color: var(--green); font-weight: 700; }
.stats { margin-top: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { padding: 12px 12px 14px; }
.stat small { display: block; font-size: 11px; }
.stat b { display: block; margin-top: 6px; white-space: nowrap; font-size: clamp(16px, 1.5vw, 21px); font-weight: 800; letter-spacing: -0.03em; }
.big { margin-top: 22px; padding: 18px 20px 20px; display: inline-block; min-width: 280px; }
.big b { display: block; margin: 6px 0; font-size: clamp(40px, 4.6vw, 62px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.bars { margin-top: 22px; display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 150px 1fr 44px; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 600; }
.bar i { height: 8px; border-radius: 4px; background: #ffffff1f; position: relative; overflow: hidden; }
.bar i::after { content: ""; position: absolute; inset: 0; width: calc(var(--w) * var(--grow, 0)); background: linear-gradient(90deg, var(--green), #9be7c8); border-radius: 4px; }
.bar b { text-align: right; }
.fine { font-size: 11.5px; color: var(--muted); margin: 12px 0 0; }
.cta-row { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta { align-items: center; gap: 28px; }
.hero-cta .scroll-cue { margin-top: 0; }

/* labels pinned in the scene */
.tag { position: absolute; left: 0; top: 0; padding: 6px 10px; border-radius: 8px; background: #06192acc; border: 1px solid var(--line); font-size: 12px; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; will-change: transform, opacity; font-variant-numeric: tabular-nums; }
.tag-warm { background: #ff9f43e6; color: #3a1d00; border-color: #fff5; }
.tag-sun { background: #f7c35acc; color: #3a2500; border-color: #fff5; }

.legal { position: absolute; left: clamp(18px, 6vw, 96px); right: 70px; bottom: max(16px, env(safe-area-inset-bottom)); margin: 0; font-size: 10.5px; color: #a9bac0; opacity: 0.85; }
.rail { position: absolute; right: clamp(8px, 1.6vw, 24px); top: 50%; transform: translateY(-50%); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 40px; }
.rail-btn { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: #06192ab8; color: #fff; cursor: pointer; transition: background 0.2s, border-color 0.2s, opacity 0.2s, transform 0.2s; }
.rail-btn:hover { background: var(--green); border-color: var(--green); color: #04241a; }
.rail-btn:active { transform: scale(0.94); }
.rail-btn:disabled { opacity: 0.3; cursor: default; background: #06192ab8; border-color: var(--line); color: #fff; }
.rail-btn:focus-visible, .rail-skip:focus-visible, #railDots button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.rail-track { position: relative; width: 2px; height: min(300px, 38vh); margin: 8px 0; background: #ffffff30; border-radius: 2px; }
.rail-track > i { display: block; width: 100%; height: 0%; background: var(--green); border-radius: 2px; }
#railDots { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
#railDots li { position: absolute; left: 50%; }
#railDots button { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
#railDots button::before { content: ""; position: absolute; left: 7px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: #0a2233; border: 1.5px solid #ffffffb0; box-sizing: border-box; transition: transform 0.2s, background 0.2s, border-color 0.2s; }
#railDots li.done button::before { background: var(--green); border-color: var(--green); }
#railDots li.on button::before { background: #fff; border-color: #fff; transform: scale(1.6); box-shadow: 0 0 0 4px #39bf9455; }
#railDots button:hover::before { transform: scale(1.6); border-color: #fff; }
#railDots span { position: absolute; right: 26px; top: 50%; transform: translate(6px, -50%); padding: 5px 9px; border-radius: 7px; background: #06192aee; border: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; color: #fff; opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.15s; }
#railDots button:hover span, #railDots button:focus-visible span { opacity: 1; transform: translate(0, -50%); }
.rail-count { display: none; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 1px 6px #000a; white-space: nowrap; }
.rail-skip { margin-top: 2px; padding: 6px 4px; border: 0; background: none; color: #cfe0df; font: inherit; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; text-shadow: 0 1px 6px #000a; }
.rail-skip:hover { color: #fff; text-decoration: underline; }

.nav .btn { white-space: nowrap; }
.nav .lang { min-height: 44px; padding: 0 14px; color: #fff; cursor: pointer; font: inherit; font-weight: 700; font-size: 13px; }
.nav.on-paper::before { background: #071a2ce6; inset: 0; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

@media (max-width: 760px) {
  .nav nav { display: none; }
  .nav { gap: 10px; }
  .nav .btn { min-height: 40px; padding: 0 14px; white-space: nowrap; font-size: 13px; }
  .nav .lang { margin-left: auto; }
  .grade { background: radial-gradient(130% 80% at 50% 35%, transparent 50%, #03101c80 100%), linear-gradient(to top, #04121ff2 0, #04121fb0 30%, transparent 58%); }
  .beat { bottom: 58px; }
  .beat-hero { bottom: 80px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .bar { grid-template-columns: 120px 1fr 40px; }
  .legal { font-size: 9px; right: 18px; }
  /* phones: the two arrows and a count; thirteen dots would be too small to tap */
  .rail { top: 25%; gap: 6px; }
  .rail-track { display: none; }
  .rail-count { display: block; }
  .rail-btn { width: 36px; height: 36px; }
  .big { min-width: 0; }
}

/* items that appear one after the other inside a scene */
.rv { opacity: 0; will-change: opacity, transform; }
.stats.two { grid-template-columns: repeat(2, 1fr); max-width: 330px; }
.stat-a { border-color: #39bf94aa; }
.stat-b { border-color: #5aa9ffaa; }
.tag-zone { background: #f4c84ae6; color: #3a2b00; border-color: #fff5; }
.tag-a { background: #1c8f6de6; border-color: #fff5; }
.tag-b { background: #2f7fd6e6; border-color: #fff5; }
.bar { opacity: 0; }
.report { position: absolute; right: clamp(24px, 9vw, 150px); top: 50%; margin: -210px 0 0; width: min(270px, 24vw); opacity: 0; pointer-events: none; will-change: transform, opacity; }
.report { container-type: inline-size; }
.cover { background: #fff; color: #142331; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 80px #010912b0, 0 0 0 1px #ffffff22; aspect-ratio: 210 / 297; display: flex; flex-direction: column; font-size: 3.6cqw; }
.cover-photo { position: relative; flex: 0 0 52%; background: url(img/r140.webp) center / 226% auto; }
.cover-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, #06121d55 0, transparent 30%, #06121dcc 100%); }
.cover-photo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover-photo polygon { fill: #f4c84a55; stroke: #f4c84a; stroke-width: 1.1; stroke-linejoin: round; }
.cover-brand { position: absolute; z-index: 1; left: 7%; top: 6%; color: #fff; font-size: 0.72em; font-weight: 700; letter-spacing: 0.24em; }
.cover-title { position: absolute; z-index: 1; left: 7%; right: 7%; bottom: 8%; color: #fff; }
.cover-title small { display: block; font-size: 0.66em; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.85; }
.cover-title strong { display: block; font-family: var(--serif); font-style: normal; font-weight: 400; font-size: 3.3em; line-height: 1.05; margin-top: 0.1em; }
.cover-title i { display: block; width: 14%; height: 1px; background: #7bd3ae; margin: 0.7em 0; }
.cover-title span { font-size: 0.86em; font-weight: 600; }
.cover-figures { display: grid; grid-template-columns: repeat(4, 1fr); padding: 5% 7% 4%; gap: 4%; border-bottom: 1px solid #e6ebee; }
.cover-figures small, .cover-zone small { display: block; white-space: nowrap; font-size: 0.5em; letter-spacing: 0.12em; text-transform: uppercase; color: #6c7b86; margin-bottom: 0.5em; }
.cover-figures b { font-size: 1.25em; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.cover-figures .green, .cover-zone b { color: #1e8f63; }
.cover-zone { padding: 4% 7% 0; font-size: 0.82em; }
.cover-zone p { margin: 0 0 0.3em; }
.cover-foot { margin-top: auto; padding: 0 7% 5%; display: flex; justify-content: space-between; align-items: flex-end; font-size: 0.6em; color: #6c7b86; line-height: 1.5; }
.cover-foot img { width: 9%; border-radius: 18%; }
.report figcaption { margin-top: 10px; font-size: 11px; color: #c3d2d6; text-align: center; }
@media (max-width: 760px) {
  /* glass blur over a moving 3D picture flickers and is slow on phones: plain dark cards there */
  .card, .btn-ghost { backdrop-filter: none; -webkit-backdrop-filter: none; background: #0a2033ee; }
  .tag { backface-visibility: hidden; }
  .beat .lede { font-size: 14.5px; margin-top: 12px; }
  .beat h2 { font-size: 34px; }
  .beat[data-beat="built"] .lede, .beat[data-beat="built"] .fine { display: none; }
  .stat { padding: 9px 11px 10px; }
  .stat b { font-size: 16px; margin-top: 3px; }
  .beat .stats + .stats { margin-top: 6px; }
  .stats { gap: 6px; }
  .report { right: 16px; top: 84px; margin: 0; width: 112px; }
  .report figcaption { display: none; }
}
.tag-edge { background: #ffffffee; color: #0b2a22; border-color: #fff; font-size: 13px; }
.phone-card { display: grid; gap: 2px; padding: 10px 14px 11px; border-radius: 16px; background: #ffffffee; color: #0b2233; border: 1px solid #fff; box-shadow: 0 14px 40px #010912a0; min-width: 132px; }
.phone-card small { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #2f7fd6; }
.phone-card b { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.phone-card span { font-size: 11px; font-weight: 600; color: #4d6270; }
.phone-card { margin: -74px 0 0 18px; }
.tag-market { display: grid; gap: 1px; padding: 8px 12px 9px; border-radius: 12px; background: #06192ae6; text-align: left; }
.tag-market small { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #9fe6c8; }
.tag-market b { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.tag-market i { font-style: normal; font-size: 11px; font-weight: 700; color: #6fe0b0; min-height: 14px; }
.stat b.up { color: #6fe0b0; }
.tag-plot { background: #ffffffee; color: #0b2233; border-color: #fff; font-size: 13px; }
.tag-value { padding: 4px 8px; font-size: 11px; background: #06192ae0; }
.tag-value.self { display: grid; gap: 1px; padding: 8px 12px; background: #f4c84af0; color: #3a2b00; border-color: #fff8; font-size: 15px; }
.tag-value.self small { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.tag-place { display: grid; gap: 0; padding: 5px 9px 6px; background: #06192ae6; transform-origin: left top; }
.tag-place b { font-size: 12px; }
.tag-place small { font-size: 10px; font-weight: 500; color: #b9c7cc; }
.tag-place.home { background: #ffb84df0; color: #3a2500; border-color: #fff8; }
.tag-place.home small { color: #5a3d00; }
.home-card { margin-top: 12px; padding: 12px 14px 12px; display: grid; gap: 6px; border-color: #ffb84d88; }
.home-card strong { font-size: 16px; }
.home-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: #dbe6e8; }
.home-facts b { color: #fff; }
#rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tag-today { background: #ffffffee; color: #0b2233; border-color: #fff; }
.beat .stats + .stats { margin-top: 8px; }
