/* Mojo Health: page-local theme, scenes and the recovery rail.
   The engine (scrollcraft.css/js) is untouched; everything bespoke lives here.
   Scenes are worldflight legs in one fixed stage; mojo.js publishes each leg's
   local progress as --lp (0..1) on the leg, and the rail's state on .rail. */

:root {
  --sc-canvas:     #F6F8F9;
  --sc-surface:    #FFFFFF;
  --sc-ink:        #0E2F42;
  --sc-ink-soft:   #3E5A6B;
  --sc-accent:     #29A9E1;
  --sc-accent-ink: #0B2433;
  --sc-font-display: "Poppins", system-ui, sans-serif;
  --sc-font-text:    "Figtree", system-ui, sans-serif;
  --sc-shadow-color: 205 45% 20%;

  --mojo-navy: #0F3346;
  --mojo-blue: #29A9E1;
  --mojo-blue-deep: #137BB0;
  --mojo-on-dark: #F2F7FA;
  --mojo-on-dark-soft: #B7CCD8;
  --paper-a: rgb(246 248 249 / 0.92);

  /* room the rail and its readout take on the left; copy never crosses it */
  --rail-clear: clamp(19rem, 21vw, 23rem);
  --top: clamp(5.5rem, 11vh, 8rem);
}

:focus-visible { outline-color: var(--mojo-blue-deep); }
/* Poppins has tall ascenders and deep descenders: tighter than ~1.04 collides */
.sc-display { font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.sc-grain { opacity: 0.035; z-index: 70; }
.sc-world { background: var(--sc-canvas); }

/* ----------------------------------------------------------------- bar -- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sc-4) var(--sc-gutter) var(--sc-4) clamp(4.5rem, 8vw, 7.5rem);
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.bar__mark { display: block; position: relative; width: 6.5rem; }
.bar__logo { width: 100%; height: auto; transition: opacity var(--sc-d-base) var(--sc-ease-out); }
.bar__logo--white { position: absolute; inset: 0; opacity: 0; }
.is-dark .bar__logo--ink { opacity: 0; }
.is-dark .bar__logo--white { opacity: 1; }

.cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0 var(--sc-5);
  border-radius: var(--sc-r-pill);
  background: var(--mojo-blue); color: var(--sc-accent-ink);
  font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-sm);
  letter-spacing: 0; text-decoration: none; white-space: nowrap;
  box-shadow: var(--sc-e1);
  transition: transform 140ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out), box-shadow 160ms var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) { .cta:hover { background: #4CB9E8; box-shadow: var(--sc-e2); } }
.cta:active { transform: translateY(1px) scale(0.98); }

/* ------------------------------------------------------- store buttons -- */
.stores { display: flex; flex-wrap: wrap; gap: var(--sc-3); }
.store {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 3.25rem; padding: 0.45rem 1.15rem 0.45rem 0.95rem;
  border-radius: 0.8rem; background: #0B1B26; color: #fff; text-decoration: none;
  box-shadow: var(--sc-e1);
  transition: transform 140ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out), box-shadow 160ms var(--sc-ease-out);
}
.store svg { width: 1.6rem; height: 1.6rem; flex: none; }
.store span { display: flex; flex-direction: column; font-family: var(--sc-font-display); font-weight: 600; font-size: 1.12rem; line-height: 1.05; letter-spacing: -0.01em; white-space: nowrap; }
.store small { font-family: var(--sc-font-text); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.02em; opacity: 0.85; }
@media (hover: hover) and (pointer: fine) { .store:hover { background: var(--mojo-navy); box-shadow: var(--sc-e2); } }
.store:active { transform: translateY(1px) scale(0.98); }
.stores--big .store { min-height: 4.4rem; padding: 0.7rem 1.6rem 0.7rem 1.3rem; border-radius: 1rem; gap: 0.8rem; box-shadow: var(--sc-e2); }
.stores--big .store svg { width: 2.2rem; height: 2.2rem; }
.stores--big .store span { font-size: 1.55rem; }
.stores--big .store small { font-size: 0.8rem; }

/* -------------------------------------------------------- recovery rail -- */
.rail { position: fixed; inset: 0 auto 0 0; width: var(--rail-clear); z-index: 75; pointer-events: none; color: var(--sc-ink); }
.rail__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; max-width: none; }
.rail__glow  { fill: none; stroke: rgb(246 248 249 / 0.6); stroke-width: 16; stroke-linecap: round; }
.rail__track { fill: none; stroke: color-mix(in oklab, currentColor 26%, transparent); stroke-width: 4; stroke-linecap: round; }
.rail__fill  {
  fill: none; stroke: var(--mojo-blue); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 180 400; stroke-dashoffset: calc(180 - var(--deg, 40));
}
.rail__dot { fill: var(--mojo-blue); stroke: #fff; stroke-width: 4; }
.rail__tick { fill: var(--sc-canvas); stroke: color-mix(in oklab, currentColor 45%, transparent); stroke-width: 2; }
.rail__tick.is-passed { fill: var(--mojo-blue); stroke: #fff; }

.rail__read {
  position: absolute; left: 0; top: 0;
  translate: var(--rx, 0px) calc(var(--ry, 0px) - 50%);
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: center; column-gap: var(--sc-2);
  padding: var(--sc-2) var(--sc-4) var(--sc-2) var(--sc-2);
  border-radius: var(--sc-r-md); background: var(--paper-a); box-shadow: var(--sc-e1);
  font-family: var(--sc-font-display); font-weight: 600; line-height: 1;
  opacity: var(--read-o, 1); transition: opacity 240ms var(--sc-ease-out);
}
.rail__arm { grid-row: 1 / 3; width: 2.6rem; height: 2.6rem; overflow: visible; }
.rail__arm circle { fill: currentColor; }
.rail__body { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; opacity: 0.55; }
.rail__limb {
  stroke: var(--mojo-blue); stroke-width: 3.6; stroke-linecap: round;
  transform-box: view-box; transform-origin: 20px 14px; transform: rotate(calc(var(--deg, 40) * -1deg));
}
.rail__deg { display: flex; align-items: baseline; }
.rail__num { font-size: clamp(1.7rem, 1.2rem + 1.2vw, 2.4rem); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.rail__unit { font-size: clamp(1.1rem, 0.9rem + 0.5vw, 1.4rem); color: var(--mojo-blue-deep); }
.rail__cap { margin-top: 0.2rem; font-family: var(--sc-font-text); font-weight: 600; font-size: var(--sc-t-xs); letter-spacing: 0.02em; color: var(--sc-ink-soft); white-space: nowrap; }
.rail__stage:not(:empty)::before { content: " \00B7  "; }

.rail__stops { list-style: none; margin: 0; padding: 0; }
.rail__stops a {
  position: absolute; left: 0; top: 0; translate: var(--sx, 0px) calc(var(--sy, 0px) - 50%);
  pointer-events: auto;
  padding: 0.2rem 0.65rem; border-radius: var(--sc-r-pill);
  font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-sm); letter-spacing: 0.01em;
  color: var(--sc-ink-soft); text-decoration: none; background: rgb(246 248 249 / 0.72);
  opacity: 0.9;
  transition: opacity 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out);
}
.rail__stops a.is-current { color: var(--sc-accent-ink); background: var(--mojo-blue); opacity: 1; }
.rail__stops a.is-near { opacity: 0; pointer-events: none; }  /* the readout is sitting on it */
@media (hover: hover) and (pointer: fine) { .rail__stops a:hover { opacity: 1; color: var(--sc-ink); background: #fff; } }

.is-dark .rail { color: var(--mojo-on-dark); }
.is-dark .rail__glow { stroke: rgb(15 51 70 / 0.5); }
.is-dark .rail__tick { fill: var(--mojo-navy); }
.is-dark .rail__read { background: rgb(10 38 54 / 0.88); }
.is-dark .rail__cap { color: var(--mojo-on-dark-soft); }
.is-dark .rail__unit { color: var(--mojo-blue); }
.is-dark .rail__stops a { color: var(--mojo-on-dark-soft); background: rgb(10 38 54 / 0.7); }
.is-dark .rail__stops a.is-current { color: var(--sc-accent-ink); background: var(--mojo-blue); }
.rail__bar { display: none; }

/* ------------------------------------------------------------ to top -- */
.totop {
  position: fixed; right: var(--sc-gutter); bottom: var(--sc-5); z-index: 78;
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--paper-a); color: var(--sc-ink); box-shadow: var(--sc-e2);
  opacity: 0; pointer-events: none; transform: translateY(6px);
  transition: opacity 200ms var(--sc-ease-out), transform 200ms var(--sc-ease-out);
}
.show-top .totop { opacity: 1; pointer-events: auto; transform: none; }
.is-dark .totop { background: rgb(10 38 54 / 0.85); color: var(--mojo-on-dark); }
.close__top svg, .totop svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ----------------------------------------------------------- the copy -- */
.copy { position: absolute; color: var(--sc-ink); }
.copy__body { margin: var(--sc-5) 0 0; font-size: var(--sc-t-lg); line-height: 1.5; max-width: 30ch; text-wrap: pretty; }
.copy__fact { margin: var(--sc-5) 0 0; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); max-width: 40ch; }

.copy--hero { left: var(--rail-clear); top: var(--top); }
.hero__title { font-size: min(var(--sc-t-3xl), 4.4rem); white-space: nowrap; }
.hero__sub { margin: var(--sc-4) 0 var(--sc-6); font-size: var(--sc-t-lg); line-height: 1.4; white-space: nowrap; }

.copy--hurt { left: var(--rail-clear); top: 50%; translate: 0 -50%; max-width: 30rem; }
.copy--hurt h2 { max-width: 9ch; }
.copy--hurt .copy__body { max-width: 28ch; }

.copy--guided { left: var(--rail-clear); top: 50%; translate: 0 -50%; max-width: 30rem; color: var(--mojo-on-dark); }
.copy--guided h2 { max-width: 10ch; }
.copy--guided .copy__body { color: var(--mojo-on-dark-soft); letter-spacing: 0.005em; }

.copy--moving { right: var(--sc-gutter); top: var(--top); text-align: right; }
.moving__title { font-size: var(--sc-t-2xl); }
.moving__title span { display: block; white-space: nowrap; }
.copy--moving .copy__body { margin-left: auto; max-width: 28ch; }

.copy--strong { left: 55vw; right: var(--sc-gutter); top: 50%; translate: 0 -50%; max-width: 40rem; }
.labels { margin: var(--sc-6) 0 0; display: grid; gap: var(--sc-4); }
.labels > div { padding-top: var(--sc-3); border-top: 1px solid var(--sc-hairline); display: grid; grid-template-columns: 10rem 1fr; gap: var(--sc-4); }
.labels dt { font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-sm); }
.labels dd { margin: 0; color: var(--sc-ink-soft); }

/* the peak: the two lines read together, top left */
.copy--hush { left: var(--rail-clear); top: var(--top); }
.hush__line { margin: 0; font-size: var(--sc-t-xl); font-weight: 500; max-width: 11ch; }
.copy--back { left: var(--rail-clear); top: calc(var(--top) + var(--hush-h, 2.1 * var(--sc-t-xl)) + var(--sc-4)); }
.copy--back h2 { max-width: 9ch; }

.copy--close { left: 50vw; right: var(--sc-gutter); top: 50%; translate: 0 -50%; max-width: 38rem; }
.close__title { font-size: var(--sc-t-3xl); max-width: 9ch; }
.copy--close .copy__body { margin-bottom: var(--sc-6); }
.close__top {
  display: flex; width: fit-content; align-items: center; gap: var(--sc-2); margin-top: var(--sc-6);
  font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-sm); color: var(--sc-ink); text-decoration: none;
}
@media (hover: hover) and (pointer: fine) { .close__top:hover { color: var(--mojo-blue-deep); } }
.close__pro { margin: var(--sc-5) 0 0; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.close__pro a, .close__legal a { color: var(--sc-ink); }
.close__legal { margin: var(--sc-3) 0 0; font-size: var(--sc-t-xs); color: var(--sc-ink-soft); }

/* ------------------------------------------------------------ the legs -- */
.seg { --lp: 0; overflow: hidden; }
/* The engine makes every direct img in a leg full-bleed; scenes that compose
   their own images opt out with higher specificity. Page layers inside a clip
   leg sit above the engine's clip (z-index 1). */

/* 1 · promise */
.seg--hero { background: #DCE6EC; }
.seg--hero .hero__plane { object-fit: cover; object-position: 62% 50%; pointer-events: none; }
.seg--hero .hero__plate  { transform-origin: 62% 88%; transform: translateY(calc(var(--lp) * -3%)) scale(calc(1.02 + var(--lp) * 0.05)); }
.seg--hero .hero__family { transform-origin: 62% 88%; transform: translateY(calc(var(--lp) * -3%)) scale(calc(1.02 + var(--lp) * 0.09)); }
.seg--hero .hero__grass  { transform-origin: 50% 100%; transform: translateY(calc(var(--lp) * 6%)) scale(calc(1.04 + var(--lp) * 0.18)); }
.seg--hero .hero__leaves {
  inset: auto auto -6vh -3vw; width: 38vw; height: auto; object-fit: contain; pointer-events: none;
  transform-origin: 0 100%;
  transform: translate3d(calc(var(--lp) * -8vw), calc(var(--lp) * 10vh), 0) scale(calc(1 + var(--lp) * 0.25));
}
.hero__wash {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 10% 0%, rgb(246 248 249 / 0.74) 0%, rgb(246 248 249 / 0.42) 45%, transparent 75%);
}

/* 2 · hurt */
.seg--hurt { background: var(--sc-canvas); }
.seg--hurt .hurt__photo {
  inset: 0 0 0 auto; width: 70vw; object-position: 70% 50%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 8%, #000 40%); mask-image: linear-gradient(to right, transparent 0%, transparent 8%, #000 40%);
  transform-origin: 70% 60%; transform: scale(calc(1.02 + var(--lp) * 0.06));
}

/* 3 · guided */
.seg--guided { background: var(--mojo-navy); }
.guided__phones { position: absolute; left: 52vw; right: var(--sc-gutter); top: 12vh; bottom: 10vh; }
.seg--guided .guided__phone {
  position: absolute; inset: auto; height: 84%; width: auto; max-width: none; object-fit: contain;
  filter: drop-shadow(0 24px 40px rgb(0 0 0 / 0.35));
}
.seg--guided .guided__phone--a { left: 4%; top: 2%; rotate: -4deg; transform: translateY(calc((1 - var(--lp)) * 8vh)); }
.seg--guided .guided__phone--b { left: 42%; top: 14%; rotate: 3deg; transform: translateY(calc((1 - var(--lp)) * 16vh)); }

/* 4 · moving */
.moving__scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(75% 80% at 100% 0%, rgb(246 248 249 / 0.94) 0%, rgb(246 248 249 / 0.82) 38%, rgb(246 248 249 / 0.35) 62%, transparent 80%);
}
.seg--moving .sc-world__poster, .seg--moving video { object-position: 30% 50%; }

/* 5 · strong */
.seg--strong { background: var(--sc-canvas); }
.strong__media { position: absolute; left: var(--rail-clear); width: 28vw; top: 12vh; bottom: 10vh; }
.seg--strong .strong__phone,
.seg--strong .strong__tablet { position: absolute; inset: auto; width: auto; max-width: none; object-fit: contain; }
.seg--strong .strong__phone { z-index: 2; left: 4%; top: 2%; height: 90%; filter: drop-shadow(0 20px 36px rgb(14 47 66 / 0.22)); transform: translateY(calc((1 - var(--lp)) * 6vh)); }
.seg--strong .strong__tablet { z-index: 1; right: 0; bottom: 0; height: 64%; filter: drop-shadow(0 16px 30px rgb(14 47 66 / 0.18)); transform: translateY(calc((1 - var(--lp)) * 12vh)); }

/* 6 · recovered: authored silence, then the photograph */
.seg--back .sc-world__poster, .seg--back video { object-position: 74% 50%; }
.back__scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(52% 78% at 10% 4%, rgb(246 248 249 / 0.97) 0%, rgb(246 248 249 / 0.9) 46%, rgb(246 248 249 / 0.45) 70%, transparent 86%);
}
.back__hush { position: absolute; inset: 0; z-index: 3; background: #EEF2F2; pointer-events: none; opacity: clamp(0, calc(1 - (var(--lp) - 0.12) * 7), 1); }

/* 7 · close */
.seg--close { background: var(--sc-canvas); }
.seg--close .close__phone {
  inset: auto; left: calc(var(--rail-clear) + 4vw); top: 50%; height: min(68vh, 40rem); width: auto; max-width: none; object-fit: contain;
  rotate: -3deg; translate: 0 -50%; filter: drop-shadow(0 24px 40px rgb(14 47 66 / 0.24));
  transform: translateY(calc((1 - var(--lp)) * 6vh));
}

/* --------------------------------------------------------------- phone -- */
@media (max-width: 860px) {
  :root { --rail-clear: var(--sc-gutter); --top: 5.25rem; }
  .bar { padding-left: var(--sc-gutter); }
  .bar__mark { width: 5.25rem; }
  .cta--bar { min-height: 2.5rem; padding: 0 var(--sc-4); }

  /* the meter lies down along the bottom, labelled */
  .rail {
    inset: auto 0 0 0; width: auto; height: auto;
    display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--sc-4);
    padding: var(--sc-2) var(--sc-gutter) calc(var(--sc-3) + env(safe-area-inset-bottom));
    background: var(--paper-a); border-top: 1px solid var(--sc-hairline);
    box-shadow: 0 -6px 18px hsl(var(--sc-shadow-color) / 0.08);
  }
  .rail__svg, .rail__stops { display: none; }
  .rail__read { position: static; translate: none; background: none; box-shadow: none; padding: 0; opacity: 1; }
  .rail__arm { width: 2rem; height: 2rem; }
  .rail__num { font-size: 1.4rem; }
  .rail__unit { font-size: 0.9rem; }
  .rail__cap { font-size: 0.68rem; }
  .rail__bar { display: block; position: relative; height: 8px; border-radius: 4px; background: color-mix(in oklab, currentColor 14%, transparent); }
  .rail__bar-fill { position: absolute; inset: 0; border-radius: 4px; background: var(--mojo-blue); transform-origin: 0 50%; transform: scaleX(calc(var(--deg, 40) / 180)); }
  .rail__bar-dot { position: absolute; top: 50%; left: calc(var(--deg, 40) / 180 * 100%); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--mojo-blue); border: 3px solid #fff; box-shadow: var(--sc-e1); }
  .rail__bar i { position: absolute; top: 50%; left: calc(var(--d) / 180 * 100%); width: 2px; height: 14px; margin: -7px 0 0 -1px; background: color-mix(in oklab, currentColor 35%, transparent); }
  .is-dark .rail { background: rgb(10 38 54 / 0.9); border-top-color: rgb(255 255 255 / 0.1); }
  .totop { bottom: calc(5rem + env(safe-area-inset-bottom)); width: 2.6rem; height: 2.6rem; }

  .copy { right: var(--sc-gutter); }
  .sc-display--lg { font-size: var(--sc-t-2xl); }
  .copy__body { font-size: var(--sc-t-base); }
  .hero__title { font-size: var(--sc-t-2xl); white-space: normal; max-width: 10ch; }
  .hero__sub { font-size: var(--sc-t-base); white-space: normal; margin: var(--sc-3) 0 var(--sc-4); }
  .stores { gap: var(--sc-2); }
  .store { min-height: 2.9rem; padding: 0.35rem 0.85rem 0.35rem 0.7rem; }
  .store span { font-size: 0.98rem; }
  .copy--hurt, .copy--guided { top: var(--top); translate: none; }
  .copy--moving { left: var(--rail-clear); top: auto; bottom: calc(5.5rem + env(safe-area-inset-bottom)); text-align: left; }
  .moving__title { font-size: var(--sc-t-xl); }
  .copy--moving .copy__body { margin-left: 0; }
  .moving__scrim { background: linear-gradient(to top, rgb(246 248 249 / 0.97) 0%, rgb(246 248 249 / 0.92) 44%, rgb(246 248 249 / 0.5) 62%, transparent 74%); }
  .copy--strong { left: var(--rail-clear); top: var(--top); translate: none; }
  .labels { gap: var(--sc-3); margin-top: var(--sc-4); }
  .labels > div { grid-template-columns: 1fr; gap: var(--sc-1); padding-top: var(--sc-2); }
  .labels dd { display: none; }
  .hush__line { font-size: var(--sc-t-lg); white-space: normal; }
  .copy--back { top: calc(var(--top) + var(--hush-h, 1.05 * var(--sc-t-lg)) + var(--sc-2)); }
  .copy--close { left: var(--rail-clear); top: auto; bottom: calc(5.5rem + env(safe-area-inset-bottom)); translate: none; }
  .copy--close .copy__body { display: none; }
  .close__title { font-size: var(--sc-t-2xl); }
  .stores--big { flex-direction: column; }
  .stores--big .store { min-height: 3.6rem; width: 100%; justify-content: center; }
  .stores--big .store span { font-size: 1.25rem; }
  .close__pro { display: none; }

  /* phone art direction: images drop below a band that holds the copy */
  .seg--hero { background: linear-gradient(#E3EBF0, #D3DFE6 34svh); }
  .seg--hero .hero__plane { inset: 36svh 0 0 0; height: calc(100% - 36svh); object-position: 62% 50%; }
  .seg--hero .hero__plate { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%); mask-image: linear-gradient(to bottom, transparent 0, #000 14%); }
  .seg--hero .hero__leaves { width: 70vw; }
  .hero__wash { display: none; }
  .seg--hurt .hurt__photo { inset: auto 0 0 0; width: 100%; height: 52%; object-position: 76% 50%; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 28%); mask-image: linear-gradient(to bottom, transparent 0%, #000 28%); }
  .guided__phones { left: var(--sc-gutter); top: 52vh; bottom: calc(5rem + env(safe-area-inset-bottom)); }
  .strong__media { left: auto; right: var(--sc-gutter); width: 50vw; top: auto; bottom: calc(5rem + env(safe-area-inset-bottom)); height: 30vh; }
  .seg--back { background: linear-gradient(#EEF2F2, #E4EAEC 36svh); }
  .seg--back .sc-world__poster, .seg--back video { inset: 34svh 0 0 0; height: calc(100% - 34svh); object-position: 66% 50%; }
  .back__scrim { display: none; }
  .seg--close .close__phone { left: auto; right: var(--sc-gutter); top: 4.75rem; translate: none; height: 22vh; rotate: 4deg; }
}

@media (prefers-reduced-motion: reduce) {
  .seg--hero :is(.hero__plate, .hero__family, .hero__grass, .hero__leaves),
  .seg--hurt .hurt__photo, .seg--guided .guided__phone, .seg--strong :is(.strong__phone, .strong__tablet),
  .seg--close .close__phone { transform: none; }
}

/* =============================================================== AFTER ==
   Reference content after the story: team, contact, newsletter, footer.
   Ordinary document flow that slides up over the final scene. */
/* zero-height targets for the old site's deep links (#why_mojo, #how_it_works, #solutions, #cta) */
.anchor { height: 0; overflow: hidden; }
.after { position: relative; z-index: 76; background: var(--sc-canvas); box-shadow: 0 -24px 48px hsl(var(--sc-shadow-color) / 0.12); }
.after__wrap { max-width: var(--sc-maxw); margin-inline: auto; padding-inline: var(--sc-gutter); }
.after__lede { margin: var(--sc-4) 0 0; font-size: var(--sc-t-lg); line-height: 1.5; max-width: 46ch; color: var(--sc-ink-soft); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* team */
.team { padding-block: var(--sc-section); }
.team__list { list-style: none; margin: var(--sc-8) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sc-6) var(--sc-5); }
.person img { width: 100%; height: auto; aspect-ratio: 480 / 552; object-fit: cover; border-radius: var(--sc-r-lg); background: #E6ECEF; box-shadow: var(--sc-e1); }
.person h3 { margin: var(--sc-4) 0 0; font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-lg); letter-spacing: -0.01em; }
.person__role { margin: var(--sc-1) 0 0; font-weight: 600; font-size: var(--sc-t-sm); color: var(--mojo-blue-deep); }
.person__note { margin: var(--sc-2) 0 0; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); line-height: 1.45; }
/* the chairman leads: a touch of offset rhythm instead of a flat grid */
.person:nth-child(even) { margin-top: var(--sc-7); }

/* contact + newsletter on the app's navy */
.connect { background: var(--mojo-navy); color: var(--mojo-on-dark); padding-block: var(--sc-section); }
.connect .after__lede, .connect__news p { color: var(--mojo-on-dark-soft); }
.connect__grid { display: grid; grid-template-columns: 7fr 4fr; gap: var(--sc-9); align-items: start; }
.connect h2 { color: var(--mojo-on-dark); max-width: 18ch; }
.connect__direct { margin: var(--sc-5) 0 0; font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-lg); line-height: 1.6; }
.connect__direct a { color: var(--mojo-on-dark); text-decoration-color: var(--mojo-blue); }
.connect__news { padding: var(--sc-6); border-radius: var(--sc-r-lg); background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.1); }
.connect__news-h { font-size: var(--sc-t-xl); color: var(--mojo-on-dark); }
.connect__news p { margin: var(--sc-3) 0 var(--sc-5); }

.form { margin-top: var(--sc-6); display: grid; grid-template-columns: 1fr 1fr; gap: var(--sc-4); }
.form label { display: grid; gap: var(--sc-2); font-size: var(--sc-t-sm); font-weight: 600; color: var(--mojo-on-dark-soft); }
.form__wide { grid-column: 1 / -1; }
.form input, .form textarea {
  width: 100%; padding: 0.8rem 0.9rem; border-radius: var(--sc-r-md);
  border: 1px solid rgb(255 255 255 / 0.18); background: rgb(255 255 255 / 0.06); color: var(--mojo-on-dark);
  font: inherit; font-weight: 400;
  transition: border-color 160ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out);
}
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--mojo-blue); outline-offset: 1px; border-color: var(--mojo-blue); }
.form__send { justify-self: start; border: 0; cursor: pointer; }
.form--inline { margin-top: 0; grid-template-columns: 1fr auto; gap: var(--sc-2); }
.form--inline button { border: 0; cursor: pointer; }

/* footer */
.foot { background: #0A2636; color: var(--mojo-on-dark-soft); padding-block: var(--sc-8) var(--sc-6); font-size: var(--sc-t-sm); }
.foot a { color: var(--mojo-on-dark); }
.foot__grid { display: grid; grid-template-columns: 5fr 3fr 3fr; gap: var(--sc-7) var(--sc-8); align-items: start; }
.foot__brand img { width: 7rem; height: auto; }
.foot__brand p { margin: var(--sc-4) 0 0; line-height: 1.6; }
.foot__brand .stores { margin-top: var(--sc-5); }
.foot__brand .store { background: #000; box-shadow: none; outline: 1px solid rgb(255 255 255 / 0.2); }
.foot__badges { display: flex; gap: var(--sc-4); align-items: center; }
.foot__badges img { height: 5.5rem; width: auto; border-radius: var(--sc-r-md); background: #fff; padding: 0.4rem; }
.foot__links { display: grid; gap: var(--sc-3); }
.foot__links a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot__links a:hover { color: var(--mojo-blue); } }
.foot__legal { grid-column: 1 / -1; margin: 0; padding-top: var(--sc-5); border-top: 1px solid rgb(255 255 255 / 0.1); font-size: var(--sc-t-xs); }

.after-on .rail { opacity: 0; pointer-events: none; }
.rail { transition: opacity 240ms var(--sc-ease-out); }

@media (max-width: 1100px) {
  .team__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .person:nth-child(even) { margin-top: 0; }
}
@media (max-width: 860px) {
  .team__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sc-5) var(--sc-4); margin-top: var(--sc-6); }
  .person h3 { font-size: var(--sc-t-base); }
  .connect__grid { grid-template-columns: 1fr; gap: var(--sc-7); }
  .form { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; gap: var(--sc-6); }
  .after { padding-bottom: 0; }
}
.form label:not(.visually-hidden) { display: flex; flex-wrap: wrap; column-gap: 0.25rem; row-gap: var(--sc-2); }
.form label > input, .form label > textarea { flex-basis: 100%; }
/* over ordinary page content the bar needs its own ground */
.bar { transition: background-color 240ms var(--sc-ease-out), box-shadow 240ms var(--sc-ease-out); }
.after-on .bar { background: rgb(246 248 249 / 0.92); box-shadow: 0 1px 0 var(--sc-hairline); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.after-on.is-dark .bar { background: rgb(10 38 54 / 0.92); box-shadow: 0 1px 0 rgb(255 255 255 / 0.08); }

/* ------------------------------------------------------------ touch UX -- */
.snap-story { scroll-snap-type: y mandatory; }
.snap-mark { position: absolute; left: 0; width: 1px; height: 1px; scroll-snap-align: start; scroll-snap-stop: always; pointer-events: none; }
.snap-story .after { scroll-snap-align: start; }
/* once the after-story content covers the stage, stop painting the story */
.after-cover [data-sc-world], .after-cover [data-sc-world-copy] { visibility: hidden; }

/* --------------------------------------------- meter selling line (all) -- */
.rail__tip { grid-column: 1 / -1; margin: var(--sc-2) 0 0; max-width: 14.5rem; font-family: var(--sc-font-text); font-weight: 500; font-size: 0.8rem; line-height: 1.35; color: var(--sc-ink); white-space: normal; }
.rail__tip b { font-weight: 700; color: var(--mojo-blue-deep); }
.is-dark .rail__tip { color: var(--mojo-on-dark); }
.is-dark .rail__tip b { color: var(--mojo-blue); }
.rail__tip.is-new { animation: tip-in 420ms var(--sc-ease-out); }
@keyframes tip-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ----------------------------------------- phone: the meter as a card -- */
@media (max-width: 860px) {
  .rail {
    inset: auto 10px calc(10px + env(safe-area-inset-bottom)) 10px;
    grid-template-columns: auto auto 1fr; grid-template-areas: "arm deg cap" "bar bar bar" "tip tip tip";
    column-gap: 10px; row-gap: 8px; align-items: center;
    padding: 12px 14px 13px; border-radius: 18px;
    background: var(--mojo-navy); color: var(--mojo-on-dark);
    border: 1px solid rgb(41 169 225 / 0.35); border-top: 1px solid rgb(41 169 225 / 0.35);
    box-shadow: 0 12px 32px rgb(10 38 54 / 0.35);
    transform: translateY(calc(100% + 24px)); opacity: 1;
    transition: transform 420ms var(--sc-ease-out), opacity 240ms var(--sc-ease-out);
  }
  .rail-in .rail { transform: none; }
  .is-dark .rail { background: #0B2A3B; border-color: rgb(41 169 225 / 0.6); }
  .rail__read { display: contents; }
  .rail__arm { grid-area: arm; width: 2.3rem; height: 2.3rem; color: #fff; }
  .rail__deg { grid-area: deg; }
  .rail__num { font-size: 1.85rem; color: #fff; }
  .rail__unit { font-size: 1.1rem; color: var(--mojo-blue); }
  .rail__cap { grid-area: cap; justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mojo-on-dark-soft); }
  .rail__stage:not(:empty)::before { content: none; }
  .rail__stage:not(:empty) { padding: 3px 10px; border-radius: var(--sc-r-pill); background: var(--mojo-blue); color: var(--sc-accent-ink); font-family: var(--sc-font-display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0; text-transform: none; }
  .rail__bar { grid-area: bar; height: 6px; background: rgb(255 255 255 / 0.16); }
  .rail__bar i { background: rgb(255 255 255 / 0.4); height: 12px; margin-top: -6px; }
  .rail__bar-dot { border-color: var(--mojo-navy); }
  .rail__tip { grid-area: tip; max-width: none; margin: 0; font-size: 0.86rem; color: var(--mojo-on-dark); }
  .rail__tip b { color: var(--mojo-blue); }
  /* the card is taller than the old strip: lift everything that sits above it */
  .totop { bottom: calc(9.6rem + env(safe-area-inset-bottom)); }
  .copy--moving, .copy--close { bottom: calc(10rem + env(safe-area-inset-bottom)); }
  .guided__phones, .strong__media { bottom: calc(9.5rem + env(safe-area-inset-bottom)); }
  .seg--hero .hero__plane { inset: 36svh 0 0 0; }
}
@media (max-width: 860px) {
  /* the logo already returns to the start; the button only joins in the free-scrolling section */
  .show-top:not(.after-on) .totop { opacity: 0; pointer-events: none; }
  .after-on .totop { bottom: calc(1rem + env(safe-area-inset-bottom)); }
}

/* ================================================= v3: story hero + page == */

/* desktop section nav in the bar */
.bar__nav { display: flex; gap: var(--sc-6); margin-left: auto; margin-right: var(--sc-6); }
.bar__nav a { font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-sm); color: var(--sc-ink); text-decoration: none; padding: 0.4rem 0; }
.is-dark .bar__nav a { color: var(--mojo-on-dark); }
@media (hover: hover) and (pointer: fine) { .bar__nav a:hover { color: var(--mojo-blue-deep); } .is-dark .bar__nav a:hover { color: var(--mojo-blue); } }
@media (max-width: 1000px) { .bar__nav { display: none; } }

/* skip the story */
.hero__skip { display: inline-flex; align-items: center; gap: var(--sc-2); margin-top: var(--sc-5); font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-sm); color: var(--sc-ink); text-decoration: none; }
.hero__skip svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { .hero__skip:hover { color: var(--mojo-blue-deep); } }

/* guided is a light scene like the rest */
.seg--guided { background: var(--sc-canvas); }
.seg--guided .guided__phone { filter: drop-shadow(0 22px 36px rgb(14 47 66 / 0.22)); }
.copy--guided { color: var(--sc-ink); max-width: 32rem; }
.copy--guided .copy__body { color: var(--sc-ink-soft); }
.copy--guided h2 { max-width: 11ch; }
.points { list-style: none; margin: var(--sc-5) 0 0; padding: 0; display: grid; gap: var(--sc-3); }
.points li { position: relative; padding-left: 1.75rem; font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-base); line-height: 1.35; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.22em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--mojo-blue); box-shadow: inset 0 0 0 4px var(--sc-canvas); outline: 2px solid var(--mojo-blue); outline-offset: -2px; }

/* the last frame: lead-in and headline read together, top left */
.copy--back { top: var(--top); bottom: auto; }
.copy--back h2 { margin-top: var(--sc-3); }
.hush__line { max-width: none; }

/* phones: clips play (see mojo-clips.js) */
.play-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0; transition: opacity 300ms var(--sc-ease-out); }
.play-clip.is-on { opacity: 1; }
.seg--moving .play-clip { object-position: 30% 50%; }
.seg--back .play-clip { object-position: 74% 50%; }

/* ---------------------------------------------------- download section -- */
.get { padding-block: var(--sc-section); background: var(--sc-canvas); }
.get__grid { display: grid; grid-template-columns: 4fr 7fr; gap: var(--sc-9); align-items: center; }
.get__phone { justify-self: end; width: min(18rem, 100%); height: auto; rotate: -3deg; filter: drop-shadow(0 24px 40px rgb(14 47 66 / 0.24)); }
.get__title { font-size: var(--sc-t-3xl); max-width: 9ch; }
.get .after__lede { margin-bottom: var(--sc-6); }
.get__pro { margin: var(--sc-5) 0 0; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.get__pro a { color: var(--sc-ink); }

/* ------------------------------------------------------- how it works -- */
.how { padding-block: var(--sc-section); background: #EEF3F6; }
.steps { list-style: none; margin: var(--sc-8) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sc-7); }
.step:nth-child(2) { margin-top: var(--sc-8); }   /* a staggered sequence, not a card row */
.step img { width: min(15rem, 80%); height: auto; filter: drop-shadow(0 20px 34px rgb(14 47 66 / 0.2)); }
.step__n { margin: var(--sc-5) 0 0; font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-sm); color: var(--mojo-blue-deep); }
.step h3 { margin: var(--sc-1) 0 0; font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-xl); letter-spacing: -0.02em; line-height: 1.15; }
.step p:last-child { margin: var(--sc-3) 0 0; color: var(--sc-ink-soft); max-width: 34ch; }

/* ------------------------------------------------------------- engaged -- */
.engage { padding-block: var(--sc-section); background: var(--sc-canvas); }
.engage__grid { display: grid; grid-template-columns: 4fr 7fr; gap: var(--sc-9); align-items: center; }
.engage__phone { justify-self: end; width: min(17rem, 100%); height: auto; rotate: 3deg; filter: drop-shadow(0 24px 40px rgb(14 47 66 / 0.22)); }
.engage h2 { max-width: 16ch; }
.labels--engage > div { grid-template-columns: 15rem 1fr; }

@media (max-width: 860px) {
  .hero__skip { margin-top: var(--sc-3); }
  .copy--guided .copy__body { font-size: var(--sc-t-sm); }
  .points li { font-size: var(--sc-t-sm); }
  .guided__phones { top: 60vh; }
  .get__grid, .engage__grid { grid-template-columns: 1fr; gap: var(--sc-6); }
  .get__phone, .engage__phone { justify-self: start; width: 11rem; }
  .get__title { font-size: var(--sc-t-2xl); }
  .steps { grid-template-columns: 1fr; gap: var(--sc-6); }
  .step:nth-child(2) { margin-top: 0; }
  .step { display: grid; grid-template-columns: 7rem 1fr; column-gap: var(--sc-5); align-items: start; }
  .step img { grid-row: 1 / 5; width: 100%; }
  .step__n { margin-top: 0; }
  .labels--engage > div { grid-template-columns: 1fr; }
  .labels--engage dd { display: block; }
}

/* v3 desktop clearances */
:root { --rail-clear: clamp(21rem, 25vw, 26rem); }
.rail__tip { max-width: 12rem; }
.hero__sub { white-space: normal; max-width: 27ch; }
.hush__line { max-width: 11ch; }
.seg--back .sc-world__poster, .seg--back video { object-position: 80% 50%; }
@media (max-width: 860px) {
  :root { --rail-clear: var(--sc-gutter); }
  .hush__line { max-width: none; }
  .seg--back .sc-world__poster, .seg--back video, .seg--back .play-clip { object-position: 66% 50%; }
}
@media (min-width: 861px) {
  .guided__phones { left: 58vw; }
  .copy--guided { max-width: min(32rem, 31vw); }
  .copy--hurt .copy__fact { max-width: 30ch; }
  .hero__sub { max-width: 22ch; }
  .copy--back h2 { font-size: var(--sc-t-2xl); max-width: 9ch; }
}

/* skip the story: a visible secondary button, not a faint link */
.hero__skip {
  margin-top: var(--sc-4); padding: 0.55rem 1rem 0.55rem 0.8rem; border-radius: var(--sc-r-pill);
  background: rgb(255 255 255 / 0.88); color: var(--sc-ink); box-shadow: var(--sc-e1);
  border: 1px solid rgb(14 47 66 / 0.12); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color 160ms var(--sc-ease-out), transform 140ms var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) { .hero__skip:hover { background: #fff; color: var(--mojo-blue-deep); } }
.hero__skip:active { transform: translateY(1px); }
@media (min-width: 861px) { .copy--hero .stores { display: inline-flex; vertical-align: middle; } .hero__skip { margin-left: var(--sc-3); vertical-align: middle; margin-top: 0; } }

/* the lift frame: copy lives in the open sky, top right, clear of the lift and the meter */
@media (min-width: 861px) {
  .copy--back { left: auto; right: var(--sc-gutter); top: clamp(5.5rem, 12vh, 8rem); bottom: auto; text-align: right; max-width: min(30rem, 34vw); }
  .copy--back .hush__line { max-width: none; font-size: var(--sc-t-lg); font-weight: 500; }
  .copy--back h2 { margin: var(--sc-2) 0 0 auto; font-size: var(--sc-t-2xl); max-width: 10ch; }
  .back__scrim { background: radial-gradient(48% 62% at 96% 6%, rgb(246 248 249 / 0.9) 0%, rgb(246 248 249 / 0.62) 45%, transparent 78%); }
}

/* the lift frame, desktop: frame the shot 30% wider than the screen, anchored
   left, so the family sits in the right half and the left is open sky */
@media (min-width: 861px) {
  .seg--back .sc-world__poster, .seg--back video { left: 0; right: auto; width: 130%; object-position: 50% 22%; }
  .copy--back { right: auto; left: var(--rail-clear); text-align: left; max-width: min(28rem, 30vw); }
  .copy--back h2 { margin: var(--sc-2) 0 0; }
  .back__scrim { background: radial-gradient(55% 70% at 20% 10%, rgb(246 248 249 / 0.9) 0%, rgb(246 248 249 / 0.6) 45%, transparent 78%); }
}
/* lift frame: a stronger reframe so the family clears the copy at every width */
@media (min-width: 861px) {
  .seg--back .sc-world__poster, .seg--back video { width: 150%; object-position: 0% 22%; }
  .copy--back { max-width: min(26rem, 27vw); }
}
@media (min-width: 861px) {
  .seg--back .sc-world__poster, .seg--back video { object-position: 0% 0%; }
  .copy--back { max-width: 20vw; }
  .copy--back .hush__line { font-size: var(--sc-t-base); }
  .copy--back h2 { font-size: clamp(2rem, 1.2rem + 2vw, 3.2rem); max-width: 9ch; }
}
@media (min-width: 861px) and (max-aspect-ratio: 3/2) {
  .seg--back .sc-world__poster, .seg--back video { width: 112%; }
}
@media (min-width: 861px) { .seg--back .sc-world__poster, .seg--back video { max-width: none; } }

/* ========================================================== v4 polish == */

/* lift frame: a moderate reframe (the 150% was too tight) */
@media (min-width: 861px) {
  .seg--back .sc-world__poster, .seg--back video { width: 125%; object-position: 0% 0%; }
  .copy--back { max-width: min(30rem, 26vw); }
  .copy--back .hush__line { font-size: var(--sc-t-lg); white-space: nowrap; }
  .copy--back h2 { font-size: clamp(2rem, 1.3rem + 1.8vw, 3.1rem); }
}
@media (min-width: 861px) and (max-aspect-ratio: 3/2) {
  .seg--back .sc-world__poster, .seg--back video { width: 108%; }
}

/* headings break naturally: no character-count caps, balanced lines,
   sizes that land in one or two lines inside their column */
.copy h2, .copy .sc-display, .after h2, .hero__title, .hush__line { max-width: none !important; }
.sc-display { text-wrap: balance; }
.copy--hurt, .copy--guided { max-width: min(36rem, 38vw); }
.copy--hurt h2, .copy--guided h2 { font-size: clamp(2.3rem, 1.4rem + 2.6vw, 4rem); }
.get__title { font-size: clamp(2.4rem, 1.5rem + 2.8vw, 4.4rem); }
.after__lede { max-width: 52ch; }
@media (max-width: 860px) {
  .copy--hurt, .copy--guided { max-width: none; }
  .copy--hurt h2, .copy--guided h2, .copy--back h2, .sc-display--lg { font-size: clamp(1.9rem, 1.2rem + 3.6vw, 2.4rem); }
  .copy--back .hush__line { white-space: normal; }
  /* guided: phones sit between the copy and the meter card, never under it */
  .guided__phones { top: auto; bottom: calc(9.8rem + env(safe-area-inset-bottom)); height: min(30vh, 15rem); left: var(--sc-gutter); right: var(--sc-gutter); }
  .seg--guided .guided__phone { height: 100%; }
  .seg--guided .guided__phone--a { left: 8%; top: 0; }
  .seg--guided .guided__phone--b { left: 50%; top: 6%; }
}

/* ------------------------------------- story → page: the hand-over -- */
/* as the page rises over the last frame, the story recedes behind it */
.sc-world { transform-origin: 50% 30%; transform: scale(calc(1 - var(--cover, 0) * 0.06)); filter: brightness(calc(1 - var(--cover, 0) * 0.35)); }
.sc-world__copy { opacity: calc(1 - var(--cover, 0) * 1.6); }
.after { border-radius: 28px 28px 0 0; }
.after::before { content: ""; position: absolute; left: 50%; top: 10px; width: 44px; height: 4px; margin-left: -22px; border-radius: 2px; background: rgb(14 47 66 / 0.14); }

/* sections reveal as they arrive */
.rv { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 700ms var(--sc-ease-out), transform 800ms var(--sc-ease-out); transition-delay: calc(var(--rv, 0) * 90ms); }
.rv.is-in { opacity: 1; transform: none; }
.rv--photo { transform: translate3d(0, 44px, 0) scale(0.96); }
@media (prefers-reduced-motion: reduce) {
  .rv, .rv--photo { opacity: 1; transform: none; transition: none; }
  .sc-world { transform: none; filter: none; }
}
/* nav links sit on a frosted pill so they read over any photograph */
.bar__nav { gap: var(--sc-1); padding: 0.3rem; border-radius: var(--sc-r-pill); background: rgb(246 248 249 / 0.78); box-shadow: var(--sc-e1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.bar__nav a { padding: 0.45rem 0.9rem; border-radius: var(--sc-r-pill); }
@media (hover: hover) and (pointer: fine) { .bar__nav a:hover { background: #fff; } }
.is-dark .bar__nav { background: rgb(10 38 54 / 0.7); }
.after-on .bar__nav { box-shadow: none; background: transparent; }

/* ======================================== the recovery rail, in colour == */
.rail { --rc: var(--mojo-blue); --rc-ink: var(--mojo-blue-deep); }
.rail__fill { stroke: url(#mojo-rail-grad); filter: drop-shadow(0 0 6px var(--rc)); transition: opacity 500ms var(--sc-ease-out); }
.rail__fill--blue { stroke: var(--mojo-blue); opacity: 0; }
.rail--promise .rail__fill--blue { opacity: 1; }
.rail--promise .rail__fill:not(.rail__fill--blue) { opacity: 0; }
.rail__dot { fill: var(--rc); transition: fill 300ms var(--sc-ease-out); }
.rail__pulse { fill: var(--rc); transform-box: fill-box; transform-origin: center; animation: rail-pulse 1.9s var(--sc-ease-out) infinite; pointer-events: none; }
@keyframes rail-pulse { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(3.2); opacity: 0; } }
.rail__tick.is-passed { fill: var(--rc); transform-box: fill-box; transform-origin: center; animation: tick-pop 520ms var(--sc-ease-out); }
@keyframes tick-pop { 0% { transform: scale(1); } 40% { transform: scale(1.9); } 100% { transform: scale(1); } }
.rail__num { color: var(--rc-ink); transition: color 300ms var(--sc-ease-out); }
.rail__unit { color: var(--rc) !important; }
.rail__limb { stroke: var(--rc); }
.rail__tip b { color: var(--rc-ink) !important; }
.rail__stops a.is-current { background: var(--rc) !important; color: #fff !important; }
.rail__read { transition: box-shadow 400ms var(--sc-ease-out); box-shadow: var(--sc-e1), 0 0 0 1px color-mix(in oklab, var(--rc) 35%, transparent); }
/* recovered: a one-off burst from the dot, and the readout glows green */
.rail__burst circle { fill: var(--rc); opacity: 0; }
.rail.is-burst .rail__burst circle { animation: burst 900ms var(--sc-ease-out) forwards; }
@keyframes burst { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.4); } }
.rail.is-recovered .rail__read { box-shadow: var(--sc-e2), 0 0 0 2px var(--rc), 0 0 24px color-mix(in oklab, var(--rc) 45%, transparent); }
.rail.is-burst .rail__read { animation: read-pop 600ms var(--sc-ease-out); }
@keyframes read-pop { 0% { scale: 1; } 35% { scale: 1.08; } 100% { scale: 1; } }

/* phone bar: the same gradient, revealed as he recovers */
@media (max-width: 860px) {
  .rail__bar-fill { transform: none; background: linear-gradient(90deg, #29A9E1 0%, #E5484D 22%, #8E4EC6 42%, #12A594 72%, #30A46C 100%);
    clip-path: inset(0 calc(100% - var(--deg, 40) / 180 * 100%) 0 0 round 4px); box-shadow: 0 0 10px var(--rc); }
  .rail__bar-dot { background: var(--rc); animation: bar-pulse 1.9s var(--sc-ease-out) infinite; }
  @keyframes bar-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--rc) 60%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
  .rail__num { color: #fff; }
  .rail__tip b { color: var(--rc) !important; }
  .rail__stage:not(:empty) { background: var(--rc); color: #fff; transition: background-color 300ms var(--sc-ease-out); }
  .rail.is-recovered { box-shadow: 0 12px 32px rgb(10 38 54 / 0.35), 0 0 0 2px var(--rc), 0 0 28px color-mix(in oklab, var(--rc) 40%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .rail__pulse, .rail__bar-dot, .rail.is-burst .rail__read, .rail__tick.is-passed { animation: none; }
  .rail__burst { display: none; }
}

/* ===================================================== v5: phone tidy == */

/* paragraphs share their heading's column; no short ragged measure */
.copy .copy__body, .copy .copy__fact { max-width: none; text-wrap: pretty; }
@media (min-width: 861px) {
  .copy--moving { max-width: min(30rem, 34vw); }
}

@media (max-width: 860px) {
  /* clear the meter card by its measured height */
  :root { --above-card: calc(var(--card-h, 8.5rem) + 24px + env(safe-area-inset-bottom)); }
  .copy--moving, .copy--back, .copy--close { top: auto; bottom: var(--above-card); }
  .totop { bottom: calc(var(--above-card) + 4px); }
  .guided__phones { top: auto; bottom: calc(var(--above-card) + 6px); height: min(27vh, 13.5rem); }

  /* the last frame matches the rehab frame: full-bleed video, white
     gradient up from the bottom, one two-line heading above the card */
  .seg--back { background: var(--sc-canvas); }
  .seg--back .sc-world__poster, .seg--back video { inset: 0; height: 100%; object-position: 60% 30%; }
  .back__scrim { display: block; opacity: 1;
    background: linear-gradient(to top, rgb(246 248 249 / 0.97) 0%, rgb(246 248 249 / 0.92) 34%, rgb(246 248 249 / 0.5) 50%, transparent 62%); }
  .copy--back .hush__line, .copy--back h2 {
    font-family: var(--sc-font-display); font-weight: 600; letter-spacing: -0.03em;
    font-size: var(--sc-t-xl) !important; line-height: 1.1; margin: 0; white-space: normal;
  }
}
@media (max-width: 860px) {
  /* the last frame reads as one sentence, one size, balanced */
  .copy--back { text-wrap: balance; font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-xl); line-height: 1.12; letter-spacing: -0.03em; color: var(--sc-ink); }
  .copy--back .hush__line, .copy--back h2 { display: inline; font-size: inherit !important; line-height: inherit; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .guided__phones { display: none; }
}
@media (min-width: 861px) {
  /* desktop: one tidy column per frame, heading and paragraphs the same width */
  .copy--hurt, .copy--guided { max-width: min(27rem, 29vw); }
  .copy--hurt h2, .copy--guided h2 { font-size: clamp(2.2rem, 1.3rem + 2.3vw, 3.6rem); }
  .copy--moving { max-width: min(24rem, 26vw); }
  .moving__title { font-size: clamp(1.9rem, 1.2rem + 1.8vw, 3rem); }
  .moving__title span { white-space: nowrap; }
}

/* ======================================== v6: readable at any size ==
   Every story text block sits on a frosted panel, so whatever the screen
   shape and wherever the photograph lands under it, the words stay legible. */
.copy--hero, .copy--hurt, .copy--guided, .copy--moving, .copy--back {
  padding: clamp(1rem, 1.8vw, 1.6rem) clamp(1.1rem, 2vw, 1.8rem);
  border-radius: 22px;
  background: rgb(246 248 249 / 0.74);
  -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 12px 32px rgb(14 47 66 / 0.10), inset 0 0 0 1px rgb(255 255 255 / 0.65);
}
/* pull the panels out by their padding so the text keeps its alignment */
@media (min-width: 861px) {
  .copy--hero, .copy--hurt, .copy--guided, .copy--back { margin-left: calc(-1 * clamp(1.1rem, 2vw, 1.8rem)); }
  .copy--moving { margin-right: calc(-1 * clamp(1.1rem, 2vw, 1.8rem)); }
}
/* the logo gets the same treatment as the nav pill */
.bar__mark { padding: 0.45rem 0.8rem; margin-left: -0.8rem; border-radius: var(--sc-r-pill); background: rgb(246 248 249 / 0.74); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-sizing: content-box; }
.after-on .bar__mark { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (max-width: 860px) {
  .copy--hero, .copy--hurt, .copy--guided, .copy--moving, .copy--back { left: 10px !important; right: 10px !important; padding: 0.9rem 1rem; border-radius: 18px; }
}

/* the lift line is one sentence: one size, everywhere */
.copy--back { text-wrap: balance; font-family: var(--sc-font-display); font-weight: 600; letter-spacing: -0.03em; color: var(--sc-ink);
  font-size: clamp(1.7rem, 1.1rem + 1.5vw, 2.6rem); line-height: 1.12; }
.copy--back .hush__line, .copy--back h2 { display: inline; font: inherit !important; letter-spacing: inherit; margin: 0 !important; white-space: normal !important; }
@media (min-width: 861px) { .copy--back { max-width: min(26rem, 30vw) !important; } }
@media (max-width: 860px) { .copy--back { font-size: var(--sc-t-xl); } }

/* the right-hand panel stays on screen at any width */
@media (min-width: 861px) {
  .copy--moving { margin-right: 0; max-width: min(26rem, 34vw); }
  .moving__title span { white-space: normal; }
}
@media (min-width: 861px) {
  .copy--back { max-width: min(36rem, 42vw) !important; font-size: clamp(1.6rem, 1rem + 1.4vw, 2.4rem); }
  .copy--moving { max-width: min(30rem, 40vw); }
}

/* ================================================ v7: hero split ==
   The title floats in the sky with no panel; the promise and the store
   buttons sit in one centred panel at the foot of the frame. */
.copy--hero { padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; margin-left: 0 !important; }
.hero__title { text-shadow: 0 1px 24px rgb(246 248 249 / 0.85), 0 0 2px rgb(246 248 249 / 0.6); }
.copy--hero-foot {
  left: 50% !important; right: auto !important; top: auto; bottom: clamp(1.2rem, 4vh, 2.5rem); translate: -50% 0;
  width: min(44rem, calc(100vw - 2 * var(--sc-gutter))); text-align: center;
  padding: clamp(1rem, 2vh, 1.5rem) clamp(1.2rem, 2.4vw, 2rem); border-radius: 22px;
  background: rgb(246 248 249 / 0.9); -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 14px 36px rgb(14 47 66 / 0.14), inset 0 0 0 1px rgb(255 255 255 / 0.7);
}
.copy--hero-foot .hero__sub { margin: 0 auto var(--sc-4); max-width: none !important; white-space: normal; text-wrap: balance; font-size: var(--sc-t-lg); line-height: 1.4; }
.copy--hero-foot .stores { display: flex !important; justify-content: center; flex-wrap: wrap; gap: var(--sc-3); }
.copy--hero-foot .hero__skip { margin: var(--sc-3) 0 0 !important; }
@media (max-width: 860px) {
  .copy--hero { left: var(--sc-gutter) !important; right: var(--sc-gutter) !important; padding: 0; }
  .copy--hero-foot { width: calc(100vw - 20px); bottom: calc(10px + env(safe-area-inset-bottom)); padding: 0.9rem 1rem; border-radius: 18px; }
  .copy--hero-foot .hero__sub { font-size: var(--sc-t-base); margin-bottom: var(--sc-3); }
  /* guided: the phones fill the gap between the copy panel and the card */
  .guided__phones { top: calc(var(--guided-copy-bottom, 45vh) + 12px); bottom: calc(var(--above-card) + 6px); height: auto; }
  .seg--guided .guided__phone { height: 100%; top: 0 !important; }
}
/* hero title: centred in the sky, one line wherever it fits */
@media (min-width: 861px) {
  .copy--hero { left: 50% !important; right: auto !important; translate: -50% 0; text-align: center; width: max-content; max-width: calc(100vw - 2 * var(--sc-gutter)); }
  .hero__title { font-size: clamp(2.4rem, 1.2rem + 3.6vw, 5rem); white-space: nowrap; }
}
/* mid-size desktops (small laptops, split windows): a slimmer rail margin,
   wider text columns, phones pushed right */
@media (min-width: 861px) and (max-width: 1240px) {
  :root { --rail-clear: 15.5rem; }
  .copy--hurt, .copy--guided { max-width: 24rem; }
  .guided__phones { left: calc(15.5rem + 26rem); }
  .copy--back { max-width: 26rem !important; }
}
@media (max-width: 860px) {
  .guided__phones { bottom: calc(var(--above-card) + 18px); }
  .seg--guided .guided__phone { height: 94%; }
}
@media (min-width: 861px) and (max-width: 1240px) {
  :root { --rail-clear: 17.5rem; }
  .copy--hurt, .copy--guided { max-width: 22rem; }
  .guided__phones { left: calc(17.5rem + 24rem); }
}
/* the phones finish rising early in the frame, so at the hold they sit where
   they were placed (the old rise was still 90px short at the hold point) */
.seg--guided .guided__phone--a { transform: translateY(calc((1 - min(1, var(--lp) * 2.6)) * 6vh)); }
.seg--guided .guided__phone--b { transform: translateY(calc((1 - min(1, var(--lp) * 2.6)) * 12vh)); }
@media (prefers-reduced-motion: reduce) { .seg--guided .guided__phone--a, .seg--guided .guided__phone--b { transform: none; } }
@media (min-width: 861px) and (max-width: 1240px) {
  :root { --rail-clear: 18.5rem; }
  .copy--hurt, .copy--guided, .copy--back { margin-left: 0 !important; }
  .copy--hurt, .copy--guided { max-width: 21rem; }
  .guided__phones { left: calc(18.5rem + 23rem); }
  .rail__tip { max-width: 11rem; }
}
/* hero foot: slimmer, see-through, all three buttons on one row */
.copy--hero-foot {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--sc-2) var(--sc-3);
  padding: 0.75rem 1.1rem 0.85rem; background: rgb(246 248 249 / 0.6);
  -webkit-backdrop-filter: blur(12px) saturate(1.15); backdrop-filter: blur(12px) saturate(1.15);
}
.copy--hero-foot .hero__sub { flex-basis: 100%; margin: 0 0 0.15rem !important; }
.copy--hero-foot .stores { gap: var(--sc-2) !important; }
.copy--hero-foot .hero__skip { margin: 0 !important; }
@media (max-width: 860px) {
  .copy--hero-foot { gap: 0.4rem; padding: 0.65rem 0.6rem 0.7rem; }
  .copy--hero-foot .store { min-height: 2.5rem; padding: 0.25rem 0.6rem 0.25rem 0.5rem; gap: 0.4rem; }
  .copy--hero-foot .store svg { width: 1.2rem; height: 1.2rem; }
  .copy--hero-foot .store span { font-size: 0.86rem; }
  .copy--hero-foot .store small { font-size: 0.58rem; }
  .copy--hero-foot .hero__skip { padding: 0.45rem 0.7rem 0.45rem 0.55rem; font-size: 0.82rem; }
}
.copy--hero-foot { width: min(50rem, calc(100vw - 2 * var(--sc-gutter))); }
@media (max-width: 440px) {
  .copy--hero-foot { gap: 0.35rem; padding-inline: 0.45rem; }
  .copy--hero-foot .store { padding: 0.22rem 0.5rem 0.22rem 0.42rem; gap: 0.32rem; }
  .copy--hero-foot .store svg { width: 1.05rem; height: 1.05rem; }
  .copy--hero-foot .store span { font-size: 0.8rem; }
  .copy--hero-foot .hero__skip { padding: 0.4rem 0.6rem 0.4rem 0.5rem; font-size: 0.78rem; gap: 0.3rem; }
}
@media (max-width: 860px) { .copy--hero-foot { width: calc(100vw - 16px); } }
@media (max-width: 440px) { .copy--hero-foot .hero__skip { padding: 0.4rem 0.55rem 0.4rem 0.45rem; font-size: 0.76rem; gap: 0.25rem; } }

/* ===================================== v8: no boxes, the photo gives way ==
   Text sits straight on the page. Instead of panels, each photograph fades
   into the page ground under the text column, sized from that column, so
   any screen shape keeps the words on a clean ground. */
.copy--hurt, .copy--guided, .copy--moving, .copy--back {
  padding: 0 !important; margin: 0 !important; background: none !important; box-shadow: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-radius: 0 !important;
}
.seg--hurt::after { display: none; }                 /* leftover from the old ink bloom */
:root { --col: min(27rem, 29vw); --col-edge: calc(var(--rail-clear) + var(--col)); }

@media (min-width: 861px) {
  /* hurt: photo fades out to the left of where the column ends */
  .seg--hurt .hurt__photo { inset: 0 0 0 auto; width: calc(100vw - var(--col-edge) + 14vw); max-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16vw); mask-image: linear-gradient(to right, transparent 0, #000 16vw); }
  /* moving: a wash from the right edge that covers the column and fades out past it */
  .moving__scrim { background: linear-gradient(to left,
      rgb(246 248 249 / 0.96) 0, rgb(246 248 249 / 0.9) calc(var(--sc-gutter) + min(30rem, 40vw)),
      rgb(246 248 249 / 0) calc(var(--sc-gutter) + min(30rem, 40vw) + 14vw)); }
  /* recovered: the sky behind the sentence brightens toward the page ground */
  .back__scrim { opacity: 1 !important; background: linear-gradient(to right,
      rgb(246 248 249 / 0.88) 0, rgb(246 248 249 / 0.78) calc(var(--rail-clear) + min(36rem, 42vw)),
      rgb(246 248 249 / 0) calc(var(--rail-clear) + min(36rem, 42vw) + 12vw)); }
  .copy--back { max-width: min(30rem, 36vw) !important; }
}
@media (min-width: 861px) and (max-width: 1240px) { :root { --col: 21rem; } }

@media (max-width: 860px) {
  .copy--hurt, .copy--guided, .copy--moving, .copy--back { left: var(--sc-gutter) !important; right: var(--sc-gutter) !important; }
  /* guided: bigger phones, stacked and offset like desktop */
  .copy--guided .copy__body { font-size: 0.86rem; line-height: 1.45; margin-top: var(--sc-3); }
  .copy--guided .points { margin-top: var(--sc-3); gap: var(--sc-2); }
  .guided__phones { top: calc(var(--guided-copy-bottom, 45vh) + 14px); bottom: calc(var(--above-card) + 14px); left: 4vw; right: 4vw; height: auto; }
  .seg--guided .guided__phone { height: 96% !important; }
  .seg--guided .guided__phone--a { left: 6% !important; top: 0 !important; z-index: 1; }
  .seg--guided .guided__phone--b { left: auto !important; right: 6%; top: 4% !important; z-index: 2; }
}
@media (min-width: 861px) {
  /* hurt: the photo begins where the column ends, so it never sits under text */
  .seg--hurt .hurt__photo { width: calc(100vw - var(--col-edge) - 2vw);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12vw); mask-image: linear-gradient(to right, transparent 0, #000 12vw); }
  /* recovered: a soft pool of light only behind the sentence */
  .back__scrim { background: radial-gradient(ellipse calc(var(--rail-clear) + min(36rem, 42vw)) 46vh at 0 0,
      rgb(246 248 249 / 0.9) 0, rgb(246 248 249 / 0.72) 55%, rgb(246 248 249 / 0) 100%) !important; }
}
/* desktop: the recovery rail isn't part of the promise; it slides in from
   the left as the story begins */
@media (min-width: 861px) {
  .rail { transform: translateX(-115%); opacity: 0; transition: transform 700ms var(--sc-ease-out), opacity 500ms var(--sc-ease-out); }
  .rail-in .rail { transform: none; opacity: 1; }
  .after-on .rail { opacity: 0; transform: translateX(-115%); }
}
@media (min-width: 861px) and (max-width: 1240px) { .copy--back { max-width: 22rem !important; } }
@media (prefers-reduced-motion: reduce) { .rail { transition: opacity 200ms linear; } }
