/* Cover's site: one street that gets lighter the more you engage. Every color is a mix between its cold
   end (rain, night) and its bright end (mint morning); site.js moves --w from 0 to 1 and sets the live
   tokens. Type is the apps' own: Gabarito for the words that carry weight, Atkinson Hyperlegible for
   everything read. Depth comes from real layers: the film's clean plate, the man and his dog cut out
   in front of it, rain between, and phones and cards that live in a perspective. */
:root {
  --w: 0;
  --bg: #0f141c;
  --bg2: #161d27;
  --fg: #eef2f6;
  --muted: #9aa6b6;
  --line: #27313f;
  --card: #182029;
  --accent: #f2894f;
  --mint: #9ee6c8;
  --mint-deep: #0e4d3a;
  --plum: #2b1645;
  --sunny: #ffd23f;
  --display: "Gabarito", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", Verdana, system-ui, sans-serif;
  --bar: 60px;
  color-scheme: dark;
}
/* The ink flips from light to dark at dawn; registering it lets the flip ease instead of snap. */
@property --fg {
  syntax: "<color>";
  inherits: true;
  initial-value: #eef2f6;
}
@property --muted {
  syntax: "<color>";
  inherits: true;
  initial-value: #9aa6b6;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--bar);
  transition:
    --fg 0.35s,
    --muted 0.35s;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
video {
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(40px, 6.4vw, 92px);
  font-weight: 900;
  letter-spacing: -0.035em;
}
h1 em,
h2 em {
  font-style: normal;
  color: var(--mint);
}
h2 {
  font-size: clamp(30px, 4.2vw, 58px);
  font-weight: 800;
}
h3 {
  font-size: 22px;
  font-weight: 800;
}
p {
  margin: 0;
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.lead {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 32ch;
}
.lead em {
  font-style: normal;
  color: var(--mint);
}
.num {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.src {
  font-size: 12px;
  color: var(--muted);
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Grain over everything, thinner as it brightens. */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: calc(0.16 - 0.1 * var(--w));
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* The loader: the number is the progress bar. */
.loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #0b0e14;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: opacity 0.7s ease;
}
.loader[hidden] {
  display: none;
}
.loader.out {
  opacity: 0;
  pointer-events: none;
}
.loader .num {
  font-size: clamp(60px, 13vw, 170px);
}
.loader .line {
  margin-top: 12px;
  font-size: clamp(15px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.8);
  max-width: 32ch;
  margin-inline: auto;
}
.loader .bar {
  width: min(42vw, 360px);
  height: 2px;
  margin: 22px auto 0;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  overflow: hidden;
}
.loader .fill {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}
.loader .src {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.5);
}

/* Top bar and the light meter. It keeps its own glass so nothing underneath ever collides with it. */
.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: var(--bar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(180deg, rgba(8, 10, 14, calc(0.55 - 0.35 * var(--w))), transparent);
  pointer-events: none;
}
.top > * {
  pointer-events: auto;
}
.top .tools {
  display: flex;
  gap: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 23px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand .mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent);
  display: inline-block;
  box-shadow: inset 0 -8px 0 var(--plum);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--fg);
  font: 700 13px var(--body);
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(10px);
}
.pill.solid {
  background: var(--accent);
  border-color: transparent;
  color: #1b0d04;
}
.meter .glow {
  width: 12px;
  height: 12px;
  border-radius: 99px;
  background: radial-gradient(circle at 35% 35%, #fff6dd, var(--accent) 65%, transparent 67%);
  transform: scale(calc(0.6 + var(--w) * 0.6));
}
.meter b {
  font-variant-numeric: tabular-nums;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px 8px 11px;
  border-radius: 12px;
  background: #0b0d12;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  line-height: 1.05;
}
.store svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}
.store small {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}
.store b {
  font-size: 16px;
  font-family: var(--display);
  font-weight: 800;
}
.store.soon {
  cursor: default;
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Sections */
section {
  position: relative;
}
.pad {
  padding-block: clamp(72px, 10vw, 140px);
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* 1. The street. The hero stays pinned while the next scene slides over it; the plate drifts a little
   with the pointer and pulls in on scroll. */
.heroWrap {
  height: 150svh;
  position: relative;
}
.hero {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: #0a0d12;
}
.hero .scene {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.hero .plate {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: 42% 50%;
  will-change: transform;
}
.hero .plate {
  transform: translate3d(calc(var(--mx, 0) * -10px), calc(var(--my, 0) * -6px), 0)
    scale(calc(1 + var(--hp, 0) * 0.06));
  filter: brightness(calc(0.9 - var(--hp, 0) * 0.35));
}
.hero .haze {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 14, 0) 42%, rgba(8, 10, 14, 0.78) 72%, rgba(8, 10, 14, 0.86)),
    linear-gradient(
      180deg,
      rgba(8, 10, 14, 0.5),
      rgba(8, 10, 14, 0) 25%,
      rgba(8, 10, 14, 0) 70%,
      rgba(8, 10, 14, 0.7)
    );
}
.hero .copy {
  position: absolute;
  right: max(5vw, env(safe-area-inset-right, 0px));
  top: 50%;
  transform: translateY(calc(-50% - var(--hp, 0) * 60px));
  width: min(560px, 46vw);
  display: grid;
  gap: 18px;
  opacity: calc(1 - var(--hp, 0) * 1.6);
}
.hero .copy .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}
.hero h1 {
  color: #fff;
}
.hero .sub {
  font-size: clamp(16px, 1.35vw, 19px);
  color: rgba(255, 255, 255, 0.86);
  max-width: 44ch;
}
.hero .pill {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.scrollcue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  opacity: calc(1 - var(--hp, 0) * 4);
}
.scrollcue span {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, #fff);
  animation: cue 1.6s ease-in-out infinite;
}
@keyframes cue {
  0%,
  100% {
    transform: scaleY(0.4);
    transform-origin: top;
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}
@media (max-width: 820px) {
  .hero .plate {
    object-position: 36% 50%;
  }
  .hero .haze {
    background: linear-gradient(
      180deg,
      rgba(8, 10, 14, 0.55),
      rgba(8, 10, 14, 0) 22%,
      rgba(8, 10, 14, 0.2) 52%,
      rgba(8, 10, 14, 0.92) 78%
    );
  }
  .hero .copy {
    right: 20px;
    left: 20px;
    top: auto;
    bottom: 64px;
    transform: translateY(calc(var(--hp, 0) * -40px));
    width: auto;
    gap: 12px;
  }
  .hero .sub {
    font-size: 15px;
  }
  .scrollcue {
    display: none;
  }
}

/* 2. One of 376,000: the map pinned under the words; every household a point of light. */
.many {
  height: 560svh;
}
.many .pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: #0b0e14;
}
.many .map,
.many .dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.many .map {
  background: #0b0e14;
  isolation: isolate; /* keeps Leaflet's own layers under the dots and the words */
}
.many .dots {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s;
}
.many.live .dots {
  opacity: 1;
}
.map .leaflet-tile {
  filter: saturate(0.12) brightness(calc(0.38 + 0.55 * var(--w))) contrast(1.08);
}
.map .leaflet-control-attribution {
  background: rgba(10, 12, 16, 0.6);
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
}
.map .leaflet-control-attribution a {
  color: rgba(255, 255, 255, 0.7);
}
.map .leaflet-tooltip.city {
  background: rgba(10, 12, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font: 700 11px / 1 var(--body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 999px;
  box-shadow: none;
}
.map .leaflet-tooltip.city::before {
  display: none;
}
.many .veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 10, 14, 0.82), rgba(8, 10, 14, 0.35) 38%, rgba(8, 10, 14, 0) 60%),
    linear-gradient(
      180deg,
      rgba(8, 10, 14, 0.5),
      transparent 20%,
      transparent 80%,
      rgba(8, 10, 14, 0.6)
    );
}
.many .mark {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  transform: translate(-50%, -50%);
}
.many .mark.on {
  opacity: 1;
}
.many .mark i {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sunny);
  box-shadow:
    0 0 0 6px rgba(255, 210, 63, 0.25),
    0 0 40px 10px rgba(255, 210, 63, 0.35);
  animation: pulse 1.8s ease-in-out infinite;
}
.many .mark b {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 10px);
  font: 700 11px var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 12, 16, 0.7);
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
}
.many .words {
  position: absolute;
  left: max(5vw, env(safe-area-inset-left, 0px));
  top: 50%;
  transform: translateY(-50%);
  width: min(520px, 44vw);
}
.many .w {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(calc(-50% + 24px));
  width: 100%;
  display: grid;
  gap: 12px;
  opacity: 0;
  transition:
    opacity 0.5s,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  color: #fff;
}
.many .w.on {
  opacity: 1;
  transform: translateY(-50%);
}
.many .w .num {
  color: var(--sunny);
}
.many .w h3 {
  font-size: clamp(24px, 2.6vw, 36px);
}
.many .w p {
  color: rgba(255, 255, 255, 0.84);
  max-width: 44ch;
}
.many .w .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}
.many .legend {
  position: absolute;
  right: 16px;
  bottom: 28px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
@media (max-width: 820px) {
  .many .veil {
    background: linear-gradient(
      180deg,
      rgba(8, 10, 14, 0.4),
      transparent 25%,
      transparent 45%,
      rgba(8, 10, 14, 0.9) 72%
    );
  }
  .many .words {
    left: 20px;
    right: 20px;
    top: auto;
    bottom: 56px;
    transform: none;
    width: auto;
    height: 40svh;
  }
  .many .w {
    top: auto;
    bottom: 0;
    transform: translateY(16px);
  }
  .many .w.on {
    transform: none;
  }
  .many .w .num {
    font-size: 56px;
  }
  .many .w h3 {
    font-size: 22px;
  }
  .many .w p {
    font-size: 15px;
  }
  .many .legend {
    right: auto;
    left: 20px;
    bottom: 14px;
  }
}

/* 3. The doubts, in layers: six cards in a real perspective; scrolling brings the next one forward
   and sends the last one past the glass. */
.doubts {
  height: 480svh;
}
.doubts .pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-top: calc(var(--bar) + 16px);
}
.doubts .head {
  text-align: center;
  display: grid;
  gap: 10px;
  padding: 0 20px;
}
.doubts .deck {
  position: relative;
  perspective: 1400px;
  perspective-origin: 50% 40%;
}
.doubts .card {
  position: absolute;
  left: 50%;
  top: 56%;
  width: min(640px, 86vw);
  transform: translate(-50%, -50%) translateZ(calc(var(--d, 0) * -500px))
    translateY(calc(var(--d, 0) * -112px)) rotateX(calc(var(--d, 0) * -5deg));
  opacity: calc(1 - var(--d, 0) * 0.32);
  filter: blur(calc(var(--d, 0) * 0.6px));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 30px 34px 34px;
  display: grid;
  gap: 12px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, calc(0.5 - var(--w) * 0.3));
  transition:
    transform 0.08s linear,
    opacity 0.08s linear,
    filter 0.08s linear;
  will-change: transform, opacity;
}
.doubts .card.gone {
  transform: translate(-50%, -50%) translateZ(360px) translateY(60px) rotateX(8deg);
  opacity: 0;
}
.doubts .card .tag {
  font: 700 12px var(--body);
  letter-spacing: 0.16em;
  color: var(--accent);
}
.doubts .card h3 {
  font-size: clamp(24px, 3vw, 38px);
}
.doubts .card p {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--muted);
}
.doubts .count {
  text-align: center;
  padding-bottom: 28px;
  font: 700 12px var(--body);
  letter-spacing: 0.16em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 820px) {
  .doubts .card {
    padding: 22px 22px 26px;
    border-radius: 20px;
  }
  .doubts .head h2 {
    font-size: 28px;
  }
}

/* 4. Hold to cover: the whole street. Press, and the rain thins, the plate warms and the sunny one
   comes through; let go and some of it stays. */
.hold {
  height: 170svh;
}
.hold .pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: #0a0d12;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}
.hold .before,
.hold .after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%;
}
.hold .before {
  filter: brightness(calc(0.75 + var(--hold, 0) * 0.3)) saturate(calc(0.8 + var(--hold, 0) * 0.4));
}
.hold .after {
  opacity: var(--hold, 0);
}
.hold .shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 14, 0.55), transparent 30%),
    linear-gradient(0deg, rgba(8, 10, 14, 0.7), transparent 45%);
  opacity: calc(1 - var(--hold, 0) * 0.5);
}
.hold .words {
  position: absolute;
  left: max(5vw, env(safe-area-inset-left, 0px));
  bottom: 9vh;
  width: min(520px, 50vw);
  display: grid;
  gap: 12px;
  color: #fff;
  pointer-events: none;
}
.hold .words p {
  color: rgba(255, 255, 255, 0.86);
}
.hold .words em {
  font-style: normal;
  color: var(--mint);
}
.hold .ring {
  position: absolute;
  right: 12vw;
  top: 50%;
  width: 150px;
  height: 150px;
  margin-top: -75px;
  border: 0;
  padding: 0;
  background: rgba(10, 12, 16, 0.35);
  border-radius: 50%;
  color: #fff;
  font: 800 15px var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}
.hold .ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.hold .ring circle {
  fill: none;
  stroke-width: 4;
}
.hold .ring .track {
  stroke: rgba(255, 255, 255, 0.25);
}
.hold .ring .arc {
  stroke: var(--sunny);
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: calc(440 - 440 * var(--hold, 0));
}
.hold .done {
  position: absolute;
  right: max(5vw, env(safe-area-inset-right, 0px));
  bottom: 9vh;
  width: min(380px, 40vw);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.25;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.6s,
    transform 0.6s;
}
.hold .done b {
  color: var(--mint);
  font-weight: 900;
}
.hold .pin.lit .done {
  opacity: 1;
  transform: none;
}
.hold .pin.lit .ring {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}
@media (max-width: 820px) {
  .hold .before,
  .hold .after {
    object-position: 34% 50%;
  }
  .hold .words {
    left: 20px;
    right: 20px;
    width: auto;
    bottom: 22svh;
  }
  .hold .words h2 {
    font-size: 30px;
  }
  .hold .words p {
    font-size: 15px;
  }
  .hold .ring {
    right: auto;
    left: 50%;
    top: 30%;
    margin: -60px 0 0 -60px;
    width: 120px;
    height: 120px;
    font-size: 13px;
  }
  .hold .done {
    right: 20px;
    left: 20px;
    width: auto;
    bottom: 6svh;
    font-size: 17px;
  }
}

/* 5. The story on the real app: words on the left, a phone in a real perspective on the right. */
.story {
  height: 560svh;
}
.story .pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  padding: var(--bar) max(5vw, env(safe-area-inset-right, 0px)) 0
    max(5vw, env(safe-area-inset-left, 0px));
  background: var(--bg);
}
.story .back {
  position: absolute;
  inset: -6%;
  background: url("media/frame-13.0.jpg") center 45% / cover no-repeat;
  filter: blur(14px) brightness(calc(0.35 + 0.3 * var(--w))) saturate(0.7);
  opacity: calc(0.9 - var(--w) * 0.5);
  transform: scale(1.04);
}
.story .words {
  position: relative;
  display: grid;
  gap: 14px;
  max-width: 480px;
}
.story .words p {
  font-size: clamp(16px, 1.35vw, 19px);
  max-width: 40ch;
}
.story .tapbtn[hidden] {
  display: none;
}
.story .tapbtn {
  width: max-content;
  padding: 12px 18px;
  font-size: 15px;
  margin-top: 6px;
}
.story .stage3d {
  position: relative;
  height: min(76svh, 760px);
  perspective: 1500px;
  display: grid;
  place-items: center;
}
.phone3d {
  position: relative;
  height: 100%;
  aspect-ratio: 390 / 844;
  border-radius: 44px;
  background: #121018;
  padding: 10px;
  box-shadow:
    0 60px 120px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transform: rotateY(calc(-14deg + var(--mx, 0) * 6deg + var(--sp, 0) * 10deg))
    rotateX(calc(5deg + var(--my, 0) * -4deg)) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 0.12s linear;
}
.phone3d .screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #fff;
}
.phone3d .screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transition: opacity 0.45s;
}
.phone3d .screen img.on {
  opacity: 1;
}
.phone3d .glass {
  position: absolute;
  inset: 10px;
  border-radius: 36px;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 38%);
}
.phone3d .tapring {
  position: absolute;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  border: 3px solid var(--sunny);
  background: rgba(255, 210, 63, 0.3);
  opacity: 0;
  pointer-events: none;
}
.story .chip {
  position: absolute;
  left: 50%;
  top: 14%;
  transform: translate(-50%, -8px) rotate(-4deg);
  background: var(--sunny);
  color: #1b1304;
  font: 800 15px var(--display);
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition:
    opacity 0.4s,
    transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.story .chip.on {
  opacity: 1;
  transform: translate(-50%, 0) rotate(-4deg);
}
.story .chip.mint {
  background: var(--mint);
  color: var(--mint-deep);
}
@media (max-width: 820px) {
  .story .pin {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: start;
    padding: calc(var(--bar) + 8px) 20px 0;
    gap: 10px;
  }
  .story .words h2 {
    font-size: 27px;
  }
  .story .words p {
    font-size: 15px;
  }
  .story .stage3d {
    height: auto;
    min-height: 0;
    align-self: stretch;
  }
  .phone3d {
    height: min(58svh, 560px);
    border-radius: 34px;
    padding: 7px;
    transform: rotateY(calc(-8deg + var(--sp, 0) * 6deg)) rotateX(3deg);
  }
  .phone3d .screen,
  .phone3d .glass {
    border-radius: 28px;
  }
  .phone3d .glass {
    inset: 7px;
  }
}

/* 6. A family: three frames that light as they arrive. */
.family .frames {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1180px;
  margin: 36px auto 0;
  padding: 0 20px;
  perspective: 1400px;
}
.family figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  background: center / cover no-repeat;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  transform: rotateY(calc(var(--fy, 0) * 1deg)) translateZ(0);
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.family figure .wash {
  position: absolute;
  inset: 0;
  background: #0b0e14;
  opacity: 0.6;
  transition: opacity 1.2s ease;
}
.family figure.lit .wash {
  opacity: 0;
}
.family figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}
@media (max-width: 820px) {
  .family .frames {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .family figure {
    aspect-ratio: 16 / 10;
  }
}

/* 7. One tap on three phones: the app in motion, in a shared perspective. */
.motion {
  text-align: center;
}
.motion .stage {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 28px;
  margin-top: 40px;
  perspective: 1600px;
}
.motion .who {
  margin: 0;
  width: 210px;
  opacity: 0.55;
  transform: translateZ(-120px) rotateY(calc(var(--ry, 0) * 1deg));
  transition:
    opacity 0.6s,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transform-style: preserve-3d;
}
.motion .who[data-who="donor"] {
  --ry: 14;
}
.motion .who[data-who="store"] {
  --ry: -14;
}
.motion .who.on {
  opacity: 1;
  transform: translateZ(20px) rotateY(calc(var(--ry, 0) * 0.35deg));
}
.motion .shell {
  position: relative;
  aspect-ratio: 390 / 844;
  border-radius: 28px;
  overflow: hidden;
  background: #121018;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.6s;
}
.motion .who.on .shell {
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.45),
    0 0 0 5px rgba(158, 230, 200, calc(0.2 + 0.4 * var(--w)));
}
.motion .shell img {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: cover;
  object-position: top;
  border-radius: 22px;
  opacity: 0;
  transition: opacity 0.4s;
}
.motion .shell img.on {
  opacity: 1;
}
.motion .tap {
  position: absolute;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  border: 3px solid var(--sunny);
  background: rgba(255, 210, 63, 0.35);
  opacity: 0;
  pointer-events: none;
}
.motion figcaption {
  margin-top: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
}
.motion figcaption span {
  display: block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.motion .say {
  min-height: 2.6em;
  margin: 28px auto 0;
  max-width: 560px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  transition: opacity 0.3s;
}
.motion .say.swap {
  opacity: 0;
}
@media (max-width: 820px) {
  .motion .stage {
    gap: 10px;
    perspective: 900px;
  }
  .motion .who {
    width: 30vw;
    max-width: 160px;
  }
  .motion .shell {
    border-radius: 18px;
  }
  .motion .shell img {
    inset: 4px;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    border-radius: 14px;
  }
  .motion figcaption {
    font-size: 15px;
  }
  .motion .say {
    font-size: 17px;
  }
}

/* 8. The wall: live once it's live */
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.label .dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--accent);
}
.label.live .dot {
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(158, 230, 200, 0.25);
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  display: grid;
  gap: 4px;
}
.tile .v {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.tile .l {
  font-size: 14px;
  color: var(--muted);
}
.wall {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}
@media (max-width: 820px) {
  .wall {
    grid-template-columns: 1fr;
  }
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.feed {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px 0;
  max-height: 420px;
  overflow: auto;
}
.feed div {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.feed div:first-child {
  border-top: 0;
}
.feed .k {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--mint);
  display: grid;
  place-items: center;
  color: var(--mint-deep);
  font: 800 13px var(--display);
}
.feed small {
  color: var(--muted);
  white-space: nowrap;
}
.bars {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}
.row .fill {
  display: block;
  height: 10px;
  border-radius: 99px;
  background: var(--mint);
  width: 0;
  transition: width 1s ease;
}
.row small {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* 9. Doors */
.doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 820px) {
  .doors {
    grid-template-columns: 1fr;
  }
}
.door {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px 26px;
  display: grid;
  gap: 12px;
}
.door ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-size: 15.5px;
}
.door .pill {
  width: max-content;
}

/* 10. Theater */
.theater {
  background: #000;
  color: #fff;
  padding-top: clamp(56px, 8vw, 110px);
}
.theater .stack {
  gap: 8px;
  margin-bottom: 24px;
}
.theater .stack .eyebrow {
  color: rgba(255, 255, 255, 0.6);
}
.theater video {
  display: block;
  width: 100%;
  max-height: 90svh;
  object-fit: contain;
  background: #000;
}

/* 11. The ask, in front of a wall of the real screens receding into the street. */
.ask {
  text-align: center;
  overflow: hidden;
  padding-block: clamp(96px, 14vw, 200px);
  background: var(--bg2);
}
.ask .screens {
  position: absolute;
  inset: -20% -10%;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 18px;
  transform: perspective(1200px) rotateX(58deg) rotateZ(-10deg)
    translateY(calc(var(--wy, 0) * -1px));
  transform-origin: 50% 40%;
  opacity: calc(0.22 + var(--w) * 0.18);
  pointer-events: none;
}
.ask .screens img {
  width: 100%;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top;
  border-radius: 14px;
  display: block;
}
.ask .veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0) 0%, var(--bg2) 72%);
  pointer-events: none;
}
.ask .wrap {
  position: relative;
}
.ask .stack {
  align-items: center;
}
.ask .lead {
  text-align: center;
}
.ask .apps {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  perspective: 1200px;
}
.ask .apps div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 150px;
}
.ask .apps .ph {
  width: 150px;
  aspect-ratio: 390 / 844;
  border-radius: 22px;
  overflow: hidden;
  background: #121018;
  padding: 5px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}
.ask .apps div:first-child .ph {
  transform: rotateY(14deg);
}
.ask .apps div:last-child .ph {
  transform: rotateY(-14deg);
}
.ask .apps .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 18px;
  display: block;
}
.ask .apps b {
  font-family: var(--display);
  font-size: 15px;
}
.ask .ctas {
  justify-content: center;
}
footer {
  color: var(--muted);
  font-size: 14px;
  padding-block: 40px 60px;
  display: grid;
  gap: 8px;
}
footer .link {
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .scrollcue span,
  .many .mark i {
    animation: none;
  }
  .hero .plate,
  .phone3d,
  .doubts .card,
  .family figure {
    transition: none;
  }
}

/* Declared last on purpose: these outrank earlier rules for the same elements. */
.many .w[data-i="5"] h3 {
  color: var(--mint);
}
.doubts .card.now p {
  color: var(--fg);
}
.hold .ring span {
  position: relative;
}
.many .mark.you i {
  background: var(--mint);
  box-shadow:
    0 0 0 6px rgba(158, 230, 200, 0.3),
    0 0 50px 14px rgba(158, 230, 200, 0.4);
}
