/*
 * #WithYouToo landing page.
 * Colour and type come from the app (mobile/src/constants/theme.ts): navy on sky, Bitter for the
 * sentence that matters, Mulish for everything else. Red is the Red Balloon and the 72-hour window only.
 */

@font-face {
  font-family: "Bitter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/bitter.woff2") format("woff2");
}
@font-face {
  font-family: "Bitter";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/bitter-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/mulish.woff2") format("woff2");
}

:root {
  --navy: #1b3361;
  --navy-lift: #24427c;
  --navy-deep: #14274b;
  --sky: #e9f4fb;
  --sky-deep: #dcecf7;
  --line: #d5e3ef;
  --card: #fcfeff;
  --ink: #1b3361;
  --body: #33404f;
  --muted: #5a6675;
  --balloon: #c43d3d;
  --on-navy: #f2f6fa;
  --on-navy-soft: #c3d2e8;
  --on-navy-line: rgba(242, 246, 250, 0.22);
  --shadow: rgba(27, 51, 97, 0.1);

  --serif: "Bitter", Georgia, "Times New Roman", serif;
  --sans: "Mulish", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 11vw, 152px);
  --phone-overlap: clamp(72px, 9vw, 128px);
}

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

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

body {
  margin: 0;
  background: var(--sky);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}
ol {
  padding: 0;
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}
p,
dd {
  text-wrap: pretty;
}

a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid #6f9bea;
  outline-offset: 3px;
  border-radius: 6px;
}

.nowrap {
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}

/* Buttons: pills, as in the app. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 160ms var(--ease-out),
    background-color 200ms ease,
    border-color 200ms ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn-sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.9375rem;
}
.btn-light {
  background: var(--on-navy);
  color: var(--navy);
}
.btn-ghost {
  color: var(--on-navy);
  border: 1.5px solid var(--on-navy-line);
}
.btn-navy {
  background: var(--navy);
  color: var(--on-navy);
}
@media (hover: hover) and (pointer: fine) {
  .btn-light:hover {
    background: #ffffff;
  }
  .btn-ghost:hover {
    border-color: var(--on-navy);
  }
  .btn-navy:hover {
    background: var(--navy-lift);
  }
}

.text-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) {
  .text-link:hover {
    text-decoration-thickness: 2.5px;
  }
}

/* Brand lockup. The flower is a mask so it takes the colour of whatever it sits on. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.mark {
  width: 34px;
  height: 34px;
  background: currentColor;
  -webkit-mask: url("assets/mark.png") center / contain no-repeat;
  mask: url("assets/mark.png") center / contain no-repeat;
}
.brand-name {
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
}

/* ---------- Hero ---------- */

.hero-wrap {
  position: relative;
  color: var(--on-navy);
  background:
    radial-gradient(60% 70% at 78% 62%, var(--navy-lift) 0%, transparent 70%),
    var(--navy);
}

.site-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 20px;
}
.site-nav {
  display: none;
  gap: 28px;
  margin-left: auto;
  font-size: 0.9375rem;
  font-weight: 600;
}
.site-nav a {
  color: var(--on-navy-soft);
  text-decoration: none;
  padding-block: 10px;
  transition: color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover {
    color: var(--on-navy);
  }
}
.site-header .btn {
  margin-left: auto;
}
@media (min-width: 900px) {
  .site-nav {
    display: flex;
  }
  .site-header .btn {
    margin-left: 0;
  }
}

.hero {
  display: grid;
  gap: 48px;
  padding-top: clamp(32px, 6vw, 80px);
}
.kicker {
  font-weight: 700;
  font-size: 1rem;
  color: var(--on-navy-soft);
  margin-bottom: 20px;
}
.hero h1 {
  color: var(--on-navy);
  font-size: clamp(2.5rem, 1.35rem + 5.1vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 12.5ch;
}
.h1-turn {
  font-style: italic;
  font-weight: 500;
}
.lede {
  margin-top: 28px;
  max-width: 31em;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.55;
  color: var(--on-navy-soft);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.hero-note {
  margin-top: 20px;
  font-size: 0.9375rem;
  color: var(--on-navy-soft);
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(72vw, 300px);
  margin-bottom: calc(var(--phone-overlap) * -1);
}

.balloon {
  position: absolute;
  z-index: 2;
  width: 31%;
  right: -17%;
  top: -7%;
  overflow: visible;
  will-change: transform;
}
.balloon-drift {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.balloon-body {
  fill: var(--balloon);
}
.balloon-knot {
  fill: #a83232;
}
.balloon-shine {
  fill: #e98a85;
  opacity: 0.55;
}
.balloon-string {
  fill: none;
  stroke: var(--on-navy-soft);
  stroke-width: 1.5;
  stroke-linecap: round;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: start;
    gap: 40px;
    padding-top: clamp(40px, 5vw, 72px);
  }
  .hero-copy {
    padding-bottom: clamp(72px, 9vw, 128px);
  }
  .hero-visual {
    justify-self: end;
    width: min(100%, 340px);
    margin-right: clamp(0px, 3vw, 40px);
  }
  .balloon {
    right: auto;
    left: -21%;
    top: -5%;
    width: 33%;
  }
}

/* ---------- Phone ---------- */

.phone {
  container-type: inline-size;
  width: 100%;
  padding: 3.2%;
  border-radius: 14.5% / 7.1%;
  background: #10141c;
  box-shadow:
    0 40px 80px -24px rgba(9, 20, 43, 0.5),
    0 12px 28px -12px rgba(9, 20, 43, 0.35),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.09);
}
.phone-screen {
  overflow: hidden;
  border-radius: 12.4% / 5.9%;
  background: var(--sky);
}
.phone-bar {
  position: relative;
  height: 11.5cqw;
  background: var(--sky);
}
.phone-bar i {
  position: absolute;
  left: 50%;
  top: 3.2cqw;
  width: 29cqw;
  height: 8.2cqw;
  margin-left: -14.5cqw;
  border-radius: 99px;
  background: #10141c;
}
.phone img {
  width: 100%;
}

/* ---------- Sections ---------- */

.section-head {
  max-width: 44rem;
}
.section-head h2,
.privacy-head h2,
.closing h2,
.campus h2 {
  font-size: clamp(1.9rem, 1.25rem + 2.7vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.section-head p {
  margin-top: 20px;
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  max-width: 36em;
}

/* The gap */
.gap {
  padding-top: calc(var(--phone-overlap) + clamp(56px, 8vw, 112px));
  padding-bottom: var(--section);
  display: grid;
  gap: clamp(32px, 5vw, 64px);
}
.gap-title {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  max-width: 17ch;
}
.gap-body {
  display: grid;
  gap: 36px;
  max-width: 38rem;
}
.gap-lead {
  font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  line-height: 1.55;
}
.gap-pair {
  display: grid;
  gap: 24px;
  margin: 0;
  padding-block: 28px;
  border-block: 1px solid var(--line);
}
.gap-pair dt {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.375rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.gap-close {
  font-weight: 700;
  color: var(--ink);
}
@media (min-width: 620px) {
  .gap-pair {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (min-width: 900px) {
  .gap {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    padding-top: clamp(72px, 9vw, 128px);
    align-items: start;
  }
  .gap-body {
    padding-top: 12px;
  }
}

/* The sentence */
.statement {
  background: var(--card);
  border-block: 1px solid var(--line);
  padding-block: clamp(64px, 9vw, 128px);
}
.statement .container {
  display: grid;
  align-items: center;
  gap: 40px;
}
.statement .mark {
  display: none;
}
@media (min-width: 900px) {
  .statement .container {
    grid-template-columns: 1fr auto;
  }
  .statement .mark {
    display: block;
    width: clamp(180px, 20vw, 260px);
    height: auto;
    aspect-ratio: 1;
    color: var(--sky-deep);
    margin-right: clamp(0px, 4vw, 64px);
  }
}
.statement p {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 1.05rem + 3.1vw, 3.5rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 22ch;
  text-wrap: balance;
}

/* What's inside: a phone that stays put while the four steps scroll past. */
.inside {
  padding-block: var(--section);
}
@media (min-width: 900px) {
  .inside {
    padding-bottom: clamp(24px, 4vw, 56px);
  }
}
.tour {
  margin-top: clamp(48px, 7vw, 88px);
}
.tour-steps {
  display: grid;
  gap: clamp(64px, 12vw, 96px);
}
.tour-step {
  display: grid;
  gap: 32px;
}
.tour-text {
  max-width: 30rem;
}
.tour-step h3 {
  font-size: clamp(1.625rem, 1.3rem + 1.3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin-bottom: 16px;
}
.tour-aside {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--muted);
}
.tour-inline {
  width: min(78vw, 290px);
  justify-self: center;
}
.tour-stage {
  display: none;
}

@media (min-width: 900px) {
  .tour {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 40px;
    align-items: start;
  }
  .tour-steps {
    gap: 0;
  }
  .tour-step {
    min-height: min(76vh, 640px);
    align-content: center;
    transition: opacity 400ms ease;
  }
  .js .tour-step:not(.is-active) {
    opacity: 0.32;
  }
  .tour-inline {
    display: none;
  }
  .tour-stage {
    display: block;
    position: sticky;
    top: max(24px, calc(50vh - 345px));
    width: 320px;
    justify-self: center;
  }
  .tour-stack {
    display: grid;
  }
  .tour-stack img {
    grid-area: 1 / 1;
    opacity: 0;
    filter: blur(6px);
    transform: scale(0.985);
    transition:
      opacity 420ms ease,
      filter 420ms ease,
      transform 520ms var(--ease-out);
  }
  .tour-stack img.is-active {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}
@media (min-width: 900px) and (max-height: 760px) {
  .tour-stage {
    width: 270px;
    top: max(16px, calc(50vh - 292px));
  }
}

/* The 90 days */
.plan {
  background: var(--card);
  border-block: 1px solid var(--line);
  padding-block: var(--section);
}
.timeline {
  margin-top: clamp(48px, 7vw, 88px);
}
.track {
  display: none;
}
.phases {
  position: relative;
  display: grid;
  gap: 28px;
  padding-left: 30px;
}
/* Narrow screens: a rail with one stop per phase. */
.phases::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--balloon) 0 14%, var(--navy) 14% 100%);
}
.phase {
  position: relative;
  display: grid;
  align-content: start;
  gap: 2px;
}
.phase::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 4px var(--card);
}
.phase-crisis::before {
  background: var(--balloon);
}
.phase-when {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--muted);
}
.phase-crisis .phase-when {
  color: var(--balloon);
}
.phase-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.625rem;
  line-height: 1.2;
  color: var(--ink);
}
.phase-line {
  font-size: 1rem;
}

@media (min-width: 900px) {
  .track {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 28px;
  }
  .track span {
    position: relative;
    display: block;
    height: 10px;
  }
  /* The bar is a pseudo-element so it can grow without stretching its label. */
  .track span::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 99px;
    background: currentColor;
    transform-origin: left center;
  }
  .track b {
    position: absolute;
    left: 0;
    bottom: 22px;
    font-size: 0.9375rem;
    font-weight: 700;
    white-space: nowrap;
  }
  .track-crisis {
    grid-column: 1;
    color: var(--balloon);
  }
  .track-recovery {
    grid-column: 2 / -1;
    color: var(--navy);
  }
  .timeline {
    padding-top: 36px;
  }
  .phases {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding-left: 0;
  }
  .phases::before,
  .phase::before {
    content: none;
  }
  .phase {
    padding-right: 20px;
    gap: 4px;
  }
  .phase-name {
    font-size: clamp(1.5rem, 1rem + 1.2vw, 2rem);
  }
}

.plan-notes {
  margin-top: clamp(48px, 7vw, 80px);
  display: grid;
  gap: 20px;
  max-width: 40rem;
}
.plan-notes p:last-child {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.3;
  color: var(--ink);
}

/* Support Superpowers */
.powers {
  padding-block: var(--section);
}
.power-picker {
  margin-top: clamp(40px, 6vw, 72px);
}
.power-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px clamp(16px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
}
.power-tabs button {
  position: relative;
  appearance: none;
  border: 0;
  background: none;
  padding: 10px 0 16px;
  min-height: 48px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 1.9vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  opacity: 0.38;
  cursor: pointer;
  transition: opacity 200ms ease;
}
.power-tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms var(--ease-out);
}
.power-tabs button[aria-selected="true"] {
  opacity: 1;
}
.power-tabs button[aria-selected="true"]::after {
  transform: scaleX(1);
}
@media (hover: hover) and (pointer: fine) {
  .power-tabs button:hover {
    opacity: 0.75;
  }
  .power-tabs button[aria-selected="true"]:hover {
    opacity: 1;
  }
}
.power-panels {
  display: grid;
  padding-top: 32px;
  max-width: 42rem;
}
.power-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}
.js .power-panel {
  grid-area: 1 / 1;
  transition:
    opacity 260ms ease,
    transform 320ms var(--ease-out);
}
/* Panels share one grid cell so the section keeps the height of the longest one. */
.js .power-panel[hidden] {
  display: grid;
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: none;
}
.power-panel + .power-panel {
  margin-top: 32px;
}
.js .power-panel + .power-panel {
  margin-top: 0;
}
.power-traits {
  font-weight: 700;
  color: var(--muted);
}
.power-body {
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
}
.power-gift {
  font-weight: 700;
  color: var(--ink);
}
.power-foot {
  margin-top: clamp(40px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.3;
  color: var(--ink);
}
.power-foot .text-link {
  font-family: var(--sans);
  font-size: 1.0625rem;
}

/* Privacy */
.privacy {
  background: var(--sky-deep);
  padding-block: var(--section);
}
.privacy-grid {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
}
.privacy-head p {
  margin-top: 20px;
  margin-bottom: 24px;
  max-width: 28em;
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
}
.privacy-list {
  margin: 0;
  display: grid;
  gap: 32px;
}
.privacy-list dt {
  font-weight: 800;
  font-size: 1.1875rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.privacy-list dd {
  max-width: 34em;
}
@media (min-width: 900px) {
  .privacy-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
  }
  .privacy-head {
    position: sticky;
    top: 48px;
  }
  .privacy-list {
    gap: 40px;
    padding-top: 10px;
  }
}

/* Voices */
.voices {
  padding-block: var(--section);
}
.voices-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: clamp(28px, 4vw, 48px);
}
.voices-grid {
  display: grid;
  gap: clamp(40px, 5vw, 56px);
}
.voice blockquote {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3125rem;
  line-height: 1.4;
  color: var(--ink);
  text-wrap: pretty;
}
.voice-lead blockquote {
  font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.5rem);
  line-height: 1.22;
  letter-spacing: -0.012em;
  max-width: 24ch;
  text-wrap: balance;
}
.voice figcaption {
  margin-top: 18px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.voice figcaption b {
  display: block;
  color: var(--ink);
  font-weight: 800;
}
@media (min-width: 900px) {
  .voices-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 72px;
  }
  .voice-lead {
    grid-row: span 2;
  }
}

/* Campus */
.campus {
  padding-bottom: var(--section);
}
.campus-inner {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 6px 22px var(--shadow);
}
.campus h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
}
.campus p {
  margin-top: 12px;
  max-width: 34em;
}
.campus .btn {
  justify-self: start;
}
@media (min-width: 760px) {
  .campus-inner {
    grid-template-columns: 1fr auto;
    gap: 48px;
  }
}

/* Closing */
.closing {
  color: var(--on-navy);
  background:
    radial-gradient(50% 90% at 85% 100%, var(--navy-lift) 0%, transparent 70%),
    var(--navy);
  padding-block: var(--section);
}
.closing h2 {
  color: var(--on-navy);
  font-size: clamp(2.25rem, 1.3rem + 4vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.closing-copy p {
  margin-top: 20px;
  max-width: 28em;
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  color: var(--on-navy-soft);
}
.closing-grid {
  display: grid;
  gap: 48px;
  align-items: end;
}
.qr {
  display: none;
}
@media (min-width: 900px) and (hover: hover) {
  .closing-grid {
    grid-template-columns: 1fr auto;
  }
  .qr {
    display: grid;
    gap: 14px;
    justify-items: center;
    width: 208px;
    padding: 24px 24px 18px;
    border-radius: 24px;
    background: var(--on-navy);
    color: var(--navy);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
  }
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: var(--on-navy-soft);
  padding-block: 40px calc(40px + env(safe-area-inset-bottom));
  font-size: 0.9375rem;
}
.site-footer .brand {
  color: var(--on-navy);
}
.footer-grid {
  display: grid;
  gap: 20px;
}
.footer-legal {
  max-width: 44em;
}
.footer-nav {
  display: flex;
  gap: 24px;
}
.footer-nav a {
  color: var(--on-navy);
  font-weight: 700;
  padding-block: 10px;
  text-underline-offset: 4px;
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
  }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* Page load: the hero settles in once, top to bottom. */
  .js [data-rise] {
    opacity: 0;
    animation: rise 700ms var(--ease-out) forwards;
    animation-delay: calc(var(--i, 0) * 70ms + 60ms);
  }
  .js .phone-hero[data-rise] {
    animation-name: rise-far;
    animation-duration: 900ms;
    animation-delay: 240ms;
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  @keyframes rise-far {
    from {
      opacity: 0;
      transform: translateY(32px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .js .balloon-drift {
    animation: drift 7s ease-in-out infinite alternate;
  }
  .js .balloon {
    opacity: 0;
    animation: balloon-in 1600ms var(--ease-out) 500ms forwards;
  }
  @keyframes balloon-in {
    from {
      opacity: 0;
      translate: 0 60px;
    }
    to {
      opacity: 1;
      translate: 0 0;
    }
  }
  @keyframes drift {
    from {
      transform: translateY(0) rotate(-2.2deg);
    }
    to {
      transform: translateY(-9px) rotate(2.2deg);
    }
  }

  /* Scroll: each block arrives once, quietly. */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 600ms ease,
      transform 700ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 60ms);
  }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  .js .timeline .track span::before {
    transform: scaleX(0);
    transition: transform 900ms var(--ease-out);
  }
  .js .timeline .track-recovery::before {
    transition-delay: 260ms;
    transition-duration: 1300ms;
  }
  .js .timeline.is-in .track span::before {
    transform: none;
  }
  .js .timeline .track b,
  .js .timeline .phase {
    opacity: 0;
    transition: opacity 500ms ease;
    transition-delay: calc(var(--p, 0) * 110ms + 300ms);
  }
  .js .timeline.is-in .track b,
  .js .timeline.is-in .phase {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .tour-stack img,
  .tour-step,
  .power-panel {
    transition-duration: 1ms !important;
  }
}
