/* ═══════════════════════════════════════════════════════════════
   Ring-Ring® — landing page
   Palette taken from the brand artwork:
   cream #F9EADB · rider red #ED1A3B · strider teal #009EB4
   ═══════════════════════════════════════════════════════════════ */

/* ── tokens ───────────────────────────────────────────────── */
:root {
  --cream: #F9EADB;
  --cream-deep: #F3DFCC;
  --paper: #FFFDFB;
  --ink: #17120E;
  --ink-60: rgba(23, 18, 14, .62);
  --ink-38: rgba(23, 18, 14, .38);
  --ink-14: rgba(23, 18, 14, .14);
  --ink-08: rgba(23, 18, 14, .08);
  /* Resting colour of a not-yet-lit mission word. This is normal body-copy
     contrast (~6.5:1 on cream) — the scroll sweep only deepens it to full
     black, it is never what makes the sentence readable. */
  --word-dim: rgba(23, 18, 14, .72);

  --red: #ED1A3B;
  --red-deep: #C1102C;
  --teal: #009EB4;
  --teal-deep: #007A8C;

  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  /* section rhythm */
  --section-y: clamp(5.5rem, 12vw, 11rem);

  --radius: 18px;
  --radius-lg: 30px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ── reset ────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-optical-sizing: auto;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 999;
  background: var(--ink);
  color: var(--cream);
  padding: .7rem 1.2rem;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  font-weight: 600;
  transition: transform .2s var(--ease);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
}

.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}

/* ── type scale ───────────────────────────────────────────── */
h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section__label {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-38);
  margin-bottom: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: .18em;
  line-height: 1.4;
}

.section__label span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1.5px solid var(--ink-14);
  font-size: .7rem;
  letter-spacing: 0;
  color: var(--red);
  flex: none;
}

.section__title {
  font-size: clamp(2.1rem, 6.2vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.03;
  max-width: 16ch;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* ═══════════ NAV ═══════════ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(.85rem, 2vw, 1.35rem) var(--gutter);
  transition: background .35s var(--ease), backdrop-filter .35s var(--ease), box-shadow .35s var(--ease);
}

.nav.is-stuck {
  background: rgba(249, 234, 219, .78);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--ink-08);
}

.nav__logo svg {
  width: 46px;
  height: 46px;
  fill: var(--red);
  transition: transform .5s var(--ease);
}

.nav__logo:hover svg {
  transform: rotate(-8deg) scale(1.06);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  padding: .6rem 1.15rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink-14);
  background: rgba(255, 253, 251, .5);
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}

.nav__cta svg {
  width: 1em;
  height: 1em;
  transition: transform .3s var(--ease);
}

.nav__cta:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.nav__cta:hover svg {
  transform: translateX(3px);
}

@media (max-width: 560px) {
  .nav__logo svg {
    width: 38px;
    height: 38px;
  }

  .nav__cta {
    font-size: .82rem;
    padding: .5rem .9rem;
  }
}

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: clamp(7rem, 14vh, 10rem) var(--gutter) clamp(5rem, 10vh, 7rem);
  overflow: clip;
}

.hero__inner {
  width: min(100%, 1400px);
  margin-inline: auto;
  position: relative;
  z-index: 3;
}

/* Copy on the left, rider riding alongside it on the right. A grid rather
   than absolute percentages, so the rider stays level with the headline
   at every viewport height. */
@media (min-width: 820px) {
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    /* bottom-aligned, so the rider's wheels — and therefore the road —
       land below the copy instead of striking through it */
    align-items: end;
    gap: clamp(1.5rem, 4vw, 4rem);
  }
}

.hero__art {
  display: grid;
  place-items: center;
}

/* ── roadside scenery ────────────────────────────────────────
   Sits above the rings (z 0) and below the copy and rider (z 3),
   so the world scrolls past behind the "Get off zero." block.
   --ground is the road's Y inside the hero; JS pins it to the
   rider's wheels, and this value is the fallback until it does. */
.scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  --ground: 74%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.scene__layer {
  position: absolute;
  left: 0;
  right: 0;
  /* the layer's baseline IS the road */
  bottom: calc(100% - var(--ground));
}

.scene__row {
  display: flex;
  align-items: flex-end;
  width: max-content;
  will-change: transform;
}

/* margin, not gap — the repeat period has to include the trailing
   space or the loop shows a seam every cycle */
.scene__item {
  flex: none;
  height: auto;
  margin-right: 7vw;
}

.scene__item--wide {
  margin-right: 15vw;
}

/* Depth comes from speed + opacity, all on one ground line. */
.scene__layer--far {
  opacity: .055;
  color: var(--ink);
}

.scene__layer--mid {
  opacity: .085;
  color: var(--teal);
}

.scene__layer--near {
  opacity: .12;
  color: var(--teal);
}

.scene__item {
  fill: currentColor;
}

.sc-canal {
  width: clamp(38px, 4vw, 62px);
}

.sc-bell {
  width: clamp(36px, 3.8vw, 58px);
}

.sc-house {
  width: clamp(60px, 6.5vw, 100px);
}

.sc-tree {
  width: clamp(44px, 4.6vw, 72px);
}

.sc-pine {
  width: clamp(34px, 3.6vw, 56px);
}

.sc-lamp {
  width: clamp(20px, 2vw, 32px);
}

.sc-bush {
  width: clamp(34px, 3.6vw, 58px);
}

/* the road: a faint continuous line with dashes running along it */
.scene__road {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--ground);
  height: 2px;
  overflow: hidden;
  background: linear-gradient(90deg, transparent, var(--ink-08) 8%, var(--ink-08) 92%, transparent);
}

.scene__road i {
  position: absolute;
  inset: 0 -46px 0 0;
  background: repeating-linear-gradient(90deg, var(--ink-14) 0 26px, transparent 26px 46px);
  will-change: transform;
}

/* soft concentric rings behind the headline */
.hero__rings {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: min(150vw, 1500px);
  aspect-ratio: 1;
  z-index: 0;
  pointer-events: none;
}

.hero__rings span {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1px solid var(--ink-08);
}

.hero__rings span:nth-child(1) {
  width: 40%;
  height: 40%;
}

.hero__rings span:nth-child(2) {
  width: 68%;
  height: 68%;
  border-color: rgba(237, 26, 59, .10);
}

.hero__rings span:nth-child(3) {
  width: 96%;
  height: 96%;
  border-color: rgba(0, 158, 180, .10);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
  padding: .45rem .95rem .45rem .7rem;
  border-radius: 999px;
  background: rgba(255, 253, 251, .66);
  border: 1px solid var(--ink-08);
}

.eyebrow__dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--red);
  flex: none;
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .35;
    transform: scale(.78);
  }
}

.hero__title {
  font-size: clamp(3.4rem, 11.5vw, 9.5rem);
  font-weight: 1000;
  letter-spacing: -.055em;
  line-height: .84;
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}

.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: .08em;
}

.hero__title .line:last-child {
  color: var(--red);
}

/* per-character wrapper injected by JS */
.hero__title .char {
  display: inline-block;
  will-change: transform;
}

.hero__sub {
  font-size: clamp(1.05rem, 2.1vw, 1.6rem);
  font-weight: 400;
  color: var(--ink-60);
  max-width: 26ch;
  letter-spacing: -.015em;
  line-height: 1.35;
}

/* ── typewriter scaffold ──
   A hidden ghost holds the full string so the box never resizes
   while the visible copy is being typed over the top of it. */
[data-type] {
  position: relative;
}

.type__ghost {
  visibility: hidden;
}

.type__live {
  position: absolute;
  inset: 0;
}

/* the blinking caret used by the typewriter */
.caret {
  display: inline-block;
  width: .06em;
  height: .95em;
  translate: 0 .12em;
  background: var(--red);
  margin-left: .06em;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .95rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.btn--solid {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(237, 26, 59, .8);
}

.btn--solid:hover {
  background: var(--red-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(237, 26, 59, .9);
}

.btn--ghost {
  border-color: var(--ink-14);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* stack to equal full-width blocks rather than ragged wrapping */
@media (max-width: 480px) {
  .hero__actions {
    display: grid;
    gap: .7rem;
  }

  .btn {
    justify-content: center;
  }
}

/* ── hero teaser → jumps to the app preview at the foot of the page ── */
.teaser {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: clamp(1.1rem, 2.5vw, 1.6rem);
  padding: .55rem 1.05rem .55rem .85rem;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 400;
  color: var(--ink-60);
  text-decoration: none;
  background: rgba(255, 253, 251, .6);
  border: 1.5px solid var(--ink-08);
  transition: transform .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}

.teaser strong {
  font-weight: 600;
  color: var(--ink);
  transition: color .35s var(--ease);
}

.teaser__dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
  animation: pulse 2.4s var(--ease) infinite;
}

.teaser__arrow {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--ink-08);
  flex: none;
  transition: transform .35s var(--ease), background .35s var(--ease);
}

.teaser__arrow svg {
  width: .85rem;
  height: .85rem;
}

.teaser:hover,
.teaser:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: rgba(249, 234, 219, .75);
  transform: translateY(-2px);
}

.teaser:hover strong,
.teaser:focus-visible strong {
  color: var(--cream);
}

.teaser:hover .teaser__arrow,
.teaser:focus-visible .teaser__arrow {
  background: rgba(249, 234, 219, .18);
  transform: translateY(2px);
}

@media (max-width: 480px) {
  .teaser {
    font-size: .86rem;
  }
}

/* hero characters */
.hero__rider {
  width: clamp(220px, 27vw, 440px);
  height: auto;
  fill: var(--red);
  opacity: .95;
  pointer-events: none;
}

/* trails behind the rider, hugging the edge of the screen */
.hero__strider {
  position: absolute;
  right: 0;
  bottom: 7%;
  z-index: 1;
  width: clamp(70px, 8vw, 132px);
  height: auto;
  fill: var(--teal);
  opacity: .9;
  pointer-events: none;
}

/* Below 820px the grid collapses and the characters would land on top of
   the headline — the marquee and the parade carry them there instead.
   The scenery goes with them: without the rider there is nothing for the
   road to sit under. */
@media (max-width: 819px) {

  .hero__art,
  .hero__strider,
  .scene {
    display: none;
  }
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(1.2rem, 3vh, 2.4rem);
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: .5rem;
  z-index: 3;
}

.hero__scroll-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--ink-14), transparent);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 40%;
  background: var(--red);
  animation: trickle 2s var(--ease) infinite;
}

@keyframes trickle {
  0% {
    transform: translateY(-110%);
  }

  100% {
    transform: translateY(260%);
  }
}

.hero__scroll-label {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-38);
}

/* ═══════════ MARQUEE ═══════════ */
.marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  padding-block: clamp(.8rem, 1.8vw, 1.25rem);
  border-block: 1px solid var(--ink);
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  font-size: clamp(1.1rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -.02em;
  white-space: nowrap;
  padding-inline: 0;
}

.marquee__sep {
  display: inline-block;
  width: .5em;
  height: .5em;
  border-radius: 50%;
  background: var(--red);
  margin-inline: 1.1em;
  flex: none;
}

/* ═══════════ MISSION ═══════════ */
.mission {
  background: var(--cream);
}

.mission__body {
  font-size: clamp(1.3rem, 3vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.28;
  max-width: min(100%, 26ch);
  text-wrap: pretty;
}

@media (min-width: 700px) {
  .mission__body {
    max-width: min(100%, 40ch);
  }
}

/* each word is wrapped by JS and lit up as you scroll */
.mission__body .w {
  transition: color .1s linear;
}

html.js .mission__body .w {
  color: var(--word-dim);
}

.mission__body .w.is-lit {
  color: var(--ink);
}

.proof {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem);
  margin-top: clamp(3rem, 7vw, 5.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--ink-14);
}

@media (min-width: 780px) {
  .proof {
    grid-template-columns: repeat(4, 1fr);
  }
}

.proof__num {
  display: block;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.proof__item:nth-child(2) .proof__num,
.proof__item:nth-child(4) .proof__num {
  color: var(--teal);
}

.proof__label {
  display: block;
  margin-top: .6rem;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-60);
  line-height: 1.35;
}

/* ═══════════ HOW IT WORKS ═══════════ */
.how {
  background: var(--paper);
  border-block: 1px solid var(--ink-08);
}

.steps {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.5rem);
  counter-reset: step;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  /* stagger the cards so the parallax has something to reveal */
  .step:nth-child(2) {
    margin-top: 3rem;
  }

  .step:nth-child(3) {
    margin-top: 6rem;
  }
}

.step {
  position: relative;
  padding: clamp(1.75rem, 3.5vw, 2.6rem);
  border-radius: var(--radius-lg);
  background: var(--cream);
  border: 1px solid var(--ink-08);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}

.step:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -34px rgba(23, 18, 14, .55);
}

.step__num {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1.4rem;
}

.step:nth-child(2) .step__num {
  background: var(--teal);
}

.step:nth-child(3) .step__num {
  background: var(--ink);
}

.step__head {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  margin-bottom: .7rem;
  letter-spacing: -.03em;
  line-height: 1.12;
}

.step__body {
  color: var(--ink-60);
  font-size: 1.02rem;
  max-width: 30ch;
}

.step__icon {
  position: absolute;
  right: -1.2rem;
  bottom: -1.2rem;
  width: 8rem;
  height: auto;
  opacity: .08;
  pointer-events: none;
}

/* the logo mark is square, so it needs its own size to match the
   optical weight of the two wide character marks */
/* the logo mark is square and reads as a word — show it whole
   rather than cropping it like the two wide character marks */
.step:nth-child(3) .step__icon {
  width: 4.4rem;
  right: 1.2rem;
  bottom: 1.2rem;
}

.step:nth-child(1) .step__icon {
  fill: var(--teal);
}

.step:nth-child(2) .step__icon {
  fill: var(--red);
}

.step:nth-child(3) .step__icon {
  fill: var(--ink);
}

/* ═══════════ CHARACTER PARADE ═══════════ */
.parade {
  position: relative;
  height: clamp(120px, 17vw, 210px);
  overflow: hidden;
  background: var(--paper);
}

.parade__road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(18px, 3vw, 34px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink-14) 0 22px, transparent 22px 44px);
}

.parade__track {
  position: absolute;
  inset: 0;
}

.parade__char {
  position: absolute;
  bottom: clamp(20px, 3.2vw, 36px);
  width: clamp(58px, 8vw, 105px);
  height: auto;
  will-change: transform;
}

.parade__char--rider {
  fill: var(--red);
}

.parade__char--strider {
  fill: var(--teal);
}

/* ═══════════ CHOOSE YOUR DOOR ═══════════ */
.doors {
  background: var(--cream-deep);
  position: relative;
  overflow: clip;
}

.doors__title {
  color: var(--red);
}

.doors__intro {
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  color: var(--ink-60);
  max-width: 52ch;
  margin-top: -1.4rem;
  margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
  text-wrap: pretty;
}

/* 5 across on desktop, exactly as briefed */
.join-buttons {
  display: grid;
  gap: .85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .join-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1020px) {
  .join-buttons {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }
}

.door {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .9rem;
  padding: 1.15rem 1.3rem;
  min-height: 4.6rem;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1.5px solid var(--ink-08);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}

@media (min-width: 1020px) {
  .door {
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.6rem;
    padding: 1.5rem 1.35rem 1.2rem;
    min-height: 13rem;
  }
}

/* the "door" that swings open on hover */
.door__panel {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(150deg, var(--red), #ff4d63);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .5s var(--ease);
}

.door:nth-child(2) .door__panel {
  background: linear-gradient(150deg, var(--teal), #24bdd2);
}

.door:nth-child(3) .door__panel {
  background: linear-gradient(150deg, #B4257E, #d94ba4);
}

.door:nth-child(4) .door__panel {
  background: linear-gradient(150deg, #2F4E9E, #4f74d1);
}

.door:nth-child(5) .door__panel {
  background: linear-gradient(150deg, #147A32, #2ea855);
}

.door:hover,
.door:focus-visible {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: 0 24px 44px -26px rgba(23, 18, 14, .6);
}

.door:hover .door__panel,
.door:focus-visible .door__panel {
  transform: scaleX(1);
}

.door:hover .door__label,
.door:focus-visible .door__label,
.door:hover .door__arrow,
.door:focus-visible .door__arrow {
  color: #fff;
}

.door:hover .door__arrow,
.door:focus-visible .door__arrow {
  border-color: rgba(255, 255, 255, .5);
  transform: translateX(4px);
}

.door__icon {
  font-size: 1.6rem;
  line-height: 1;
  flex: none;
  transition: transform .4s var(--ease);
}

.door:hover .door__icon {
  transform: scale(1.16) rotate(-6deg);
}

.door__label {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.25;
  transition: color .35s var(--ease);
}

@media (min-width: 1020px) {
  .door__label {
    font-size: 1.02rem;
    flex: 1 1 auto;
  }
}

.door__arrow {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1.5px solid var(--ink-14);
  flex: none;
  color: var(--ink);
  transition: transform .4s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}

.door__arrow svg {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 1020px) {
  .door__arrow {
    align-self: flex-end;
  }
}

.doors__soon {
  margin-top: clamp(1.8rem, 3.5vw, 2.6rem);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem 1.15rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1.5px dashed var(--ink-14);
}

.doors__soon::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2.4s var(--ease) infinite;
  flex: none;
}

.doors__mail {
  margin-top: 1.4rem;
  color: var(--ink-60);
  font-size: .98rem;
}

.doors__mail a {
  color: var(--red);
  font-weight: 600;
  text-underline-offset: 3px;
}

/* ═══════════ APP PREVIEW ═══════════ */
.app {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  padding-top: var(--section-y);
  /* the phone is cropped by this element's bottom edge —
     which is also the bottom of the page */
  overflow: hidden;
  --phone-w: clamp(240px, 24vw, 320px);
  --phone-h: calc(var(--phone-w) * 2.03);
  /* only the top ~52% of the phone is visible */
  padding-bottom: calc(var(--phone-h) * .52);
}

.app .section__label {
  color: rgba(249, 234, 219, .45);
}

.app .section__label span {
  border-color: rgba(249, 234, 219, .2);
  color: var(--cream);
}

.app__head {
  position: relative;
  z-index: 3;
  text-align: center;
  display: grid;
  justify-items: center;
  /* this is what opens the gap between the headline and the device —
     the phone is pinned to the bottom of .app, so head height pushes it down */
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.app__head .section__title {
  max-width: 18ch;
  margin-bottom: clamp(1.5rem, 3vw, 2.2rem);
}

/* glow behind the device */
.phone {
  position: absolute;
  left: 50%;
  bottom: calc(var(--phone-h) * -.48);
  translate: -50% 0;
  width: var(--phone-w);
  height: var(--phone-h);
  z-index: 2;
}

.phone__glow {
  position: absolute;
  left: 50%;
  top: 6%;
  translate: -50% 0;
  width: 190%;
  height: 62%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(237, 26, 59, .38), rgba(237, 26, 59, 0) 72%);
  filter: blur(24px);
  pointer-events: none;
}

.phone__body {
  position: relative;
  height: 100%;
  border-radius: 46px 46px 0 0;
  background: #0B0907;
  padding: 11px 11px 0;
  box-shadow:
    0 0 0 1.5px rgba(249, 234, 219, .16),
    0 -30px 80px -30px rgba(0, 0, 0, .9);
}

.phone__notch {
  position: absolute;
  left: 50%;
  top: 20px;
  translate: -50% 0;
  width: 92px;
  height: 24px;
  border-radius: 14px;
  background: #0B0907;
  z-index: 4;
}

.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 36px 36px 0 0;
  background: #FAFAF8;
  color: #1a1a1a;
  overflow: hidden;
}

/* ── individual app screens ── */
.scr {
  position: absolute;
  inset: 0;
  padding: 46px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
}

.scr.is-active {
  opacity: 1;
  visibility: visible;
}

/* no-JS / no-GSAP: show the first screen only */
html:not(.js) .scr:not(.is-active) {
  display: none;
}

.scr__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.scr__brand {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: -.02em;
}

.scr__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8a8a86;
}

.scr__chip i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #16A34A;
  flex: none;
}

.scr__chip--plain {
  text-transform: none;
  letter-spacing: 0;
  font-size: 9px;
  font-weight: 500;
}

.scr__note {
  margin-top: auto;
  font-size: 9px;
  line-height: 1.5;
  color: #8a8a86;
  border-top: .5px solid #E5E4E0;
  padding-top: 8px;
  text-align: center;
}

/* screen 1 — rings */
.scr__ring {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: 4px;
}

.scr__ring svg {
  width: 128px;
  height: 128px;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: #EDEBE6;
  stroke-width: 9;
}

.ring-fg {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 314;
}

.ring-fg--red {
  stroke: var(--red);
  stroke-dashoffset: 88;
}

.ring-fg--teal {
  stroke: var(--teal);
  stroke-width: 7;
  stroke-dasharray: 245;
  stroke-dashoffset: 110;
}

.scr__ring-mid {
  position: absolute;
  text-align: center;
  line-height: 1.1;
}

.scr__ring-mid strong {
  display: block;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.04em;
}

.scr__ring-mid span {
  font-size: 8px;
  color: #8a8a86;
}

.scr__split {
  display: flex;
  gap: 6px;
}

.scr__half {
  flex: 1;
  padding: 8px 6px;
  border-radius: 10px;
  text-align: center;
  background: #F4F3EF;
}

.scr__half b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.03em;
}

.scr__half span {
  font-size: 8px;
  color: #8a8a86;
}

.scr__half--red b {
  color: var(--red);
}

.scr__half--teal b {
  color: var(--teal);
}

/* screen 2 — trips */
.trips {
  display: grid;
  gap: 2px;
}

.trips li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
  border-bottom: .5px solid #EDEBE6;
  font-size: 10px;
}

.trips li:last-child {
  border-bottom: none;
}

.t-name {
  flex: 1;
  color: #55534e;
}

.trips b {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

.dot--red {
  background: var(--red);
}

.dot--teal {
  background: var(--teal);
}

.scr__bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 46px;
  margin-top: 4px;
}

/* two-tone bars: rides stacked on strides */
.scr__bars span {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: linear-gradient(var(--red) 0 58%, var(--teal) 58% 100%);
  opacity: .88;
}

/* screen 3 — gifts */
.gifts {
  display: grid;
  gap: 5px;
}

.gift {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 10px;
  background: #F4F3EF;
  border: .5px solid #E5E4E0;
}

.gift__ico {
  font-size: 15px;
  line-height: 1;
}

.gift b {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.gift span {
  font-size: 9px;
  color: #8a8a86;
}

/* screen 4 — challenges */
.lead {
  display: grid;
  gap: 1px;
}

.lead__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 10px;
}

.lead__row.is-me {
  background: rgba(237, 26, 59, .09);
  font-weight: 600;
}

.lead__rk {
  width: 14px;
  font-weight: 700;
  color: #8a8a86;
  text-align: center;
  flex: none;
}

.lead__row.is-me .lead__rk {
  color: var(--red);
}

.lead__nm {
  flex: 1;
  color: #55534e;
}

.lead__row.is-me .lead__nm {
  color: #1a1a1a;
}

.lead b {
  font-size: 10px;
  letter-spacing: -.02em;
}

/* screen 5 — city */
.map {
  flex: none;
  aspect-ratio: 6 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: #F4F3EF;
  border: .5px solid #E5E4E0;
}

.map svg {
  width: 100%;
  height: 100%;
}

.map__grid path {
  stroke: #DFDCD4;
  stroke-width: 1.2;
  fill: none;
}

.map__route {
  fill: none;
  stroke-width: 3.2;
  stroke-linecap: round;
}

.map__route--red {
  stroke: var(--red);
}

.map__route--teal {
  stroke: var(--teal);
  opacity: .8;
}

.map__pin {
  fill: var(--red);
  stroke: #fff;
  stroke-width: 2;
}

/* screen selector — sits under the headline, above the device */
.phone__dots {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.phone__dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(249, 234, 219, .28);
  cursor: pointer;
  transition: background .3s var(--ease), width .3s var(--ease);
}

.phone__dot.is-on {
  background: var(--red);
  width: 1.5rem;
  border-radius: 999px;
}

/* ═══════════ MAILTO FALLBACK DIALOG ═══════════ */
.mailfall {
  border: 0;
  margin: auto;
  /* explicit, rather than relying on the UA's dialog:modal centring */
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  width: min(92vw, 34rem);
  box-shadow: 0 40px 80px -40px rgba(23, 18, 14, .7);
}

.mailfall::backdrop {
  background: rgba(23, 18, 14, .55);
  backdrop-filter: blur(3px);
}

.mailfall__head {
  font-size: 1.45rem;
  letter-spacing: -.03em;
  margin-bottom: .5rem;
}

.mailfall__intro {
  color: var(--ink-60);
  font-size: .95rem;
  margin-bottom: 1.4rem;
}

.mailfall__row {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  align-items: start;
  gap: .6rem;
  padding: .7rem 0;
  border-top: 1px solid var(--ink-08);
}

.mailfall__label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-38);
  padding-top: .2rem;
}

.mailfall__value {
  font-size: .95rem;
  line-height: 1.45;
  word-break: break-word;
  user-select: all;
}

.mailfall__value.is-long {
  color: var(--ink-60);
}

.mailfall__copy {
  border: 1.5px solid var(--ink-14);
  background: transparent;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.mailfall__copy:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.mailfall__close {
  margin-top: 1.5rem;
  width: 100%;
  border: 0;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  padding: .85rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s var(--ease);
}

.mailfall__close:hover {
  background: var(--red-deep);
}

/* ═══════════ FOOTER (inside the app section) ═══════════ */
.app__foot {
  position: relative;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 1.6rem;
  text-align: center;
  margin-top: clamp(2rem, 5vw, 3rem);
  color: rgba(249, 234, 219, .55);
}

.app__foot-side {
  display: grid;
  justify-items: center;
  gap: .5rem;
}

.foot__hw {
  width: clamp(140px, 18vw, 200px);
  height: auto;
  filter: brightness(0) invert(1);
  opacity: .8;
}

.foot__line {
  font-size: .98rem;
  font-weight: 500;
  color: var(--cream);
}

.foot__legal {
  font-size: .84rem;
  line-height: 1.6;
}

.foot__legal a {
  color: rgba(249, 234, 219, .85);
  text-underline-offset: 3px;
}

/* Wide enough to sit either side of the device: pin to the bottom
   corners so the phone stays the last thing on the page. */
@media (min-width: 900px) {

  /* full-height finale, with the footer tucked into the corners */
  .app {
    min-height: 100svh;
  }

  .app__foot {
    position: absolute;
    left: 50%;
    translate: -50% 0;
    bottom: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: 0;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    text-align: left;
  }

  .app__foot-side {
    justify-items: start;
  }

  .app__foot-side--end {
    justify-items: end;
    text-align: right;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Animated-in states — applied ONLY when JS is available so the
   page is fully readable without it.
   ═══════════════════════════════════════════════════════════════ */
html.js [data-reveal],
html.js [data-type],
html.js .hero__title .line>span {
  will-change: transform, opacity;
}

html.js [data-reveal] {
  opacity: 0;
}

/* ═══════════════════════════════════════════════════════════════
   Reduced motion — everything static, everything visible.
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  html.js [data-reveal] {
    opacity: 1 !important;
  }

  html.js .mission__body .w {
    color: var(--ink) !important;
  }

  .caret {
    display: none;
  }

  .parade,
  .scene {
    display: none;
  }
}
