/* certAInty for Schools. Loaded after styles.css, so nav, footer, form, FAQ and
   brand tokens come from there. Scenes follow the same contract: --p for the
   whole scene, --t / --o from [data-seg]. See js/schools.js. */

:root { --skin: #C68A5E }

.milo-live { width: 100%; height: auto; display: block; overflow: visible }

/* A child, drawn in the site's shapes: a circle on a semicircle, with two legs. */
.kid {
  --k: 44px;
  position: absolute; display: block; width: var(--k); height: calc(var(--k) * 1.62);
  background:
    linear-gradient(var(--ink), var(--ink)) 32% 100% / 18% 24% no-repeat,
    linear-gradient(var(--ink), var(--ink)) 68% 100% / 18% 24% no-repeat;
}
.kid::before { content: ''; position: absolute; left: 21%; top: 0; width: 58%; aspect-ratio: 1; border-radius: 50%; background: var(--skin) }
.kid::after { content: ''; position: absolute; left: 0; right: 0; bottom: 20%; height: 44%; border-radius: 999px 999px 10px 10px; background: var(--c, var(--teal)) }
.kid--adult { --k: 60px }

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

/* As on the homepage: the next section sits behind the hero and the hero dissolves into it. */
.gate { position: relative; z-index: 2; height: 170vh }
.gate__stage { display: block; background: var(--cream); opacity: calc(1 - var(--t,0)) }
.gate__copy {
  position: absolute; z-index: 4; left: 0; right: 0; top: clamp(96px, 12vh, 122px); padding: 0 24px;
  display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 2vh, 20px); text-align: center;
  opacity: calc(1 - var(--t,0)); transform: translateY(calc(var(--t,0) * -60px));
}
.gate__badge { padding: 9px 18px; border-radius: 999px; background: rgba(38,55,65,.08); font-weight: 800; font-size: 13px; letter-spacing: .16em; text-transform: uppercase }
.gate__title { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(38px, min(5.8vw, 9.4vh), 90px); line-height: 1; letter-spacing: -.01em; text-wrap: balance }
.gate__title span { display: block; color: var(--teal) }
.gate__lede { margin: 0; max-width: 680px; font-size: clamp(17px, min(1.5vw, 2.5vh), 21px); line-height: 1.5; font-weight: 600; color: rgba(38,55,65,.86) }
.gate__actions { display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center; align-items: center }
.gate__cta {
  padding: 15px 28px; border-radius: 999px; background: var(--ink); color: var(--sun);
  font-family: var(--display); font-weight: 600; font-size: 19px; transition: transform .2s, background .2s, color .2s;
}
.gate__cta:hover { background: var(--sun); color: var(--ink); transform: translateY(-2px) }
.gate__ghost { padding: 15px 10px; color: var(--ink); font-weight: 800; text-decoration: underline; text-underline-offset: 4px }
.gate__ghost:hover { color: var(--teal) }

.gate__zoom {
  position: absolute; z-index: 2; left: 50%; bottom: 0; width: min(92vw, 980px, 84vh); margin-left: calc(min(92vw, 980px, 84vh) / -2);
}
.gate__scene { position: relative }
.school { display: block; width: 100%; height: auto; overflow: visible }
/* The walk through the door. Scaling inside the SVG repaints crisply at any size;
   a CSS scale on the whole element made browsers drop parts of a huge GPU layer. */
.gate .school__all { transform-box: view-box; transform-origin: 500px 400px; transform: scale(calc(1 + var(--t,0) * 26)) }
.school [data-pop] { transform-box: fill-box; transform-origin: 50% 100% }
.school__ground { fill: rgba(38,55,65,.1) }
.school__tree { fill: var(--teal); stroke: none }
.school__tree--b { fill: var(--sun) }
.school .win { fill: var(--cream) }
.school__sign { font-family: var(--display); font-weight: 600; font-size: 26px; fill: var(--ink) }
.hand { transform-box: view-box; transform-origin: 500px 136px }
.hand--h { transform: rotate(calc(90deg + var(--p,0) * 60deg)) }
.hand--m { transform: rotate(calc(var(--p,0) * 720deg)) }
.school__bell { cursor: pointer; outline: none }
.school__bell:focus-visible .school__clapper { stroke: var(--teal); stroke-width: 4px }
.school__clapper { transform-box: fill-box; transform-origin: 50% 0 }
.school__cloth { transform-box: fill-box; transform-origin: 0 50%; animation: flag 3s ease-in-out infinite }
@keyframes flag { 50% { transform: skewY(5deg) scaleX(.94) } }
.door { transform-box: fill-box; transition: none }
.door--l { transform-origin: 0 50%; transform: scaleX(calc(1 - var(--t,0))) }
.door--r { transform-origin: 100% 50%; transform: scaleX(calc(1 - var(--t,0))) }

.skid { animation: skid-bob 2.2s ease-in-out infinite }
.skid--b { animation-delay: .5s }
.skid--c { animation-delay: .9s }
@keyframes skid-bob { 50% { transform: translateY(-3px) } }
.gate__bubble {
  position: absolute; z-index: 3; left: 71.5%; bottom: 35%; width: max-content; max-width: 210px; translate: -50% 0;
  padding: 9px 15px; border-radius: 18px 18px 18px 6px; background: var(--white); color: var(--ink);
  font-family: var(--display); font-weight: 500; font-size: clamp(14px, 1.3vw, 17px); line-height: 1.2;
  box-shadow: 0 10px 30px rgba(38,55,65,.16); opacity: calc(1 - var(--p,0) * 8);
}
.gate__scroll {
  position: absolute; z-index: 4; bottom: 14px; left: 50%; transform: translateX(-50%); opacity: calc(1 - var(--t,0));
  padding: 7px 14px; border-radius: 999px; background: rgba(244,236,217,.88);
  font-weight: 800; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
}

/* ---------- Forty ---------- */

.forty { position: relative; height: 345vh; margin-top: -125vh; scroll-margin-top: -25vh; background: var(--ink); color: var(--cream) }
.forty__stage { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 4vw; padding: 80px 6vw 40px }
.forty__text { position: relative; height: min(64vh, 480px) }
.forty__panel {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 18px;
  opacity: calc(var(--t,0) - var(--o,0)); transform: translateY(calc((1 - var(--t,0)) * 40px - var(--o,0) * 40px));
}
.forty__panel--last { transform: translateY(calc((1 - var(--t,0)) * 40px)) }
.forty__h { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(30px, min(4.8vw, 8.8vh), 76px); line-height: 1.04; text-wrap: balance }
.forty__h--sm { font-size: clamp(24px, min(3.2vw, 6.2vh), 50px); line-height: 1.1 }
.forty__h--md { font-size: clamp(28px, min(4vw, 7.6vh), 62px); line-height: 1.06 }
.forty__sub { margin: 0; max-width: 560px; font-size: clamp(17px, min(1.5vw, 2.8vh), 21px); line-height: 1.5; color: rgba(244,236,217,.86) }
.forty__sub--pop { font-family: var(--display); font-weight: 500; font-size: clamp(19px, min(2.1vw, 4vh), 31px); line-height: 1.2; color: var(--sun); opacity: var(--t,0); transform: translateY(calc((1 - var(--t,0)) * 14px)) }
.forty__source { font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(244,236,217,.55) }
.forty .stat__n { font-size: clamp(88px, min(11vw, 20vh), 180px) }

.forty__visual { position: relative; height: min(66vh, 520px) }
.forty__vis { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; opacity: calc(var(--t,0) - var(--o,0)) }

.room { display: grid; grid-template-columns: repeat(8, 1fr); gap: clamp(8px, 1.3vw, 18px); width: min(100%, 520px) }
.seat {
  position: relative; aspect-ratio: 1 / 1.25; opacity: .5;
  transition: opacity .25s, scale .25s;
}
.seat::before { content: ''; position: absolute; left: 22%; top: 0; width: 56%; aspect-ratio: 1; border-radius: 50%; background: var(--c) }
.seat::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; border-radius: 999px 999px 8px 8px; background: var(--c) }
.seat.is-speaking { opacity: 1; scale: 1.6; z-index: 2 }
.seat.is-done { opacity: .16 }
.room__caption { font-weight: 700; font-size: 16px; color: rgba(244,236,217,.8); font-variant-numeric: tabular-nums }

.forty__vis--asks { align-items: stretch; gap: 14px }
.ask-b {
  align-self: flex-start; max-width: 86%; padding: 13px 20px; border-radius: 22px 22px 22px 8px; background: var(--cream); color: var(--ink);
  font-family: var(--display); font-weight: 500; font-size: clamp(17px, min(1.8vw, 3.2vh), 25px); line-height: 1.2;
  opacity: var(--t,0); transform: translateY(calc((1 - var(--t,0)) * 26px)) scale(calc(.9 + var(--t,0) * .1)); transform-origin: 0 100%;
}
.ask-b--r { align-self: flex-end; border-radius: 22px 22px 8px 22px; transform-origin: 100% 100% }
.ask-b--sun { background: var(--sun) }

.idea { position: relative; width: min(280px, 34vh); transform: scale(calc(.5 + var(--t,0) * .5)) rotate(calc((1 - var(--t,0)) * -14deg)) }
.idea__glow { position: absolute; inset: -46%; border-radius: 50%; background: radial-gradient(circle, rgba(254,188,52,.5), rgba(254,188,52,0) 65%) }
.idea .milo-live { position: relative }

/* ---------- A day ---------- */

.day {
  --g: 15vh; --sw: min(56vw, 82vh); --hw: min(26vw, 44vh); --bw: min(34vw, 52vh); --kid: min(4.6vw, 8.4vh);
  position: relative; height: 440vh; background: var(--cream);
}
.day__stage { background: var(--cream) }
.day__sky { position: absolute; inset: 0; opacity: calc(var(--t,0) - var(--o,0)) }
.day__sky--dusk { background: var(--sun) }
.day__sky--night { background: var(--ink) }
.day__sky--dawn { background: #CFE8E4 }
.day__stars { position: absolute; inset: 0; opacity: calc(var(--t,0) - var(--o,0)) }
.day__stars i { position: absolute; border-radius: 50%; background: var(--cream); animation: twinkle 2.8s ease-in-out infinite }
@keyframes twinkle { 50% { opacity: .3 } }
.day__orb { position: absolute; left: 0; top: 0; width: 12vmin; height: 12vmin }
.day__orb i { display: block; width: 100%; height: 100%; border-radius: 50% }
.day__orb--sun i { background: var(--coral) }
.day__orb--sun { opacity: calc(1 - var(--o,0)); transform: translate(calc(52vw + var(--t,0) * 46vw), calc(12vh + var(--t,0) * var(--t,0) * 66vh)) }
.day__orb--moon i { background: var(--cream); box-shadow: inset -2.4vmin -1vmin 0 rgba(38,55,65,.14) }
.day__orb--moon { --a: calc(2 * var(--t,0) - 1); opacity: calc(min(1, var(--t,0) * 6) - var(--o,0)); transform: translate(calc(46vw + var(--t,0) * 44vw), calc(52vh - (1 - var(--a) * var(--a)) * 36vh)) }
.day__orb--rise i { background: var(--sun) }
.day__orb--rise { --a: calc(1 - var(--t,0)); opacity: min(1, calc(var(--t,0) * 8)); transform: translate(calc(52vw + var(--t,0) * 30vw), calc(78vh - (1 - var(--a) * var(--a)) * 62vh)) }

.day__ground { position: absolute; left: 0; right: 0; bottom: 0; height: var(--g); background: #D9CDB2 }
.day__ground::before { content: ''; position: absolute; left: 0; right: 0; top: 34%; height: 5px; background: repeating-linear-gradient(90deg, rgba(254,254,254,.8) 0 42px, transparent 42px 84px) }

.day__world { position: absolute; left: 0; top: 0; bottom: 0; width: 420vw; transform: translate3d(var(--wx, 0), 0, 0); will-change: transform; z-index: 1 }
.world__school { position: absolute; left: calc(26vw - var(--sw) / 2); bottom: calc(var(--g) - var(--sw) * .05); width: var(--sw) }
.world__school--again { left: calc(370vw - var(--sw) / 2) }
.world__tree { position: absolute; bottom: var(--g); width: min(8vw, 14vh); height: min(14vw, 24vh) }
.world__tree::before { content: ''; position: absolute; left: 44%; bottom: 0; width: 12%; height: 50%; background: var(--ink) }
.world__tree::after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 72%; border-radius: 58% 42% 55% 45% / 52% 60% 40% 48%; background: var(--teal) }
.world__tree--b::after { background: var(--coral); border-radius: 50% }
.world__shop { position: absolute; bottom: var(--g); width: min(13vw, 22vh); height: min(10vw, 17vh); border-radius: 10px 10px 0 0; background: var(--white) }
.world__shop::before { content: ''; position: absolute; left: -6%; right: -6%; top: -12%; height: 34%; border-radius: 12px 12px 4px 4px; background: var(--c) }
.world__shop::after { content: ''; position: absolute; left: 30%; bottom: 0; width: 40%; height: 54%; border-radius: 8px 8px 0 0; background: var(--ink) }
.world__home { position: absolute; left: calc(170vw - var(--hw) / 2); bottom: var(--g); width: var(--hw) }
.world__home svg, .world__bus svg { display: block; width: 100% }
.world__glow { fill: var(--sun) }
.world__parent { --k: calc(var(--kid) * 1.4); left: calc(170vw + var(--hw) * .34); bottom: var(--g) }
.world__bus { position: absolute; left: calc(280vw - var(--bw) * .96); bottom: calc(var(--g) - var(--bw) * .04); width: var(--bw) }
.world__conductor { --k: calc(var(--kid) * 1.3); left: calc(280vw - var(--bw) * .17); bottom: calc(var(--g) + var(--bw) * .03) }
.world__teacher { --k: calc(var(--kid) * 1.4); left: calc(370vw + var(--sw) * .09); bottom: var(--g) }
.world__say {
  position: absolute; bottom: calc(var(--g) + var(--kid) * 2.5); left: 280vw; padding: 11px 18px; border-radius: 20px 20px 20px 6px; width: max-content;
  background: var(--white); color: var(--ink); font-family: var(--display); font-weight: 600; font-size: clamp(17px, min(2vw, 3.6vh), 28px);
  box-shadow: 0 12px 34px rgba(38,55,65,.2); opacity: calc(var(--t,0) - var(--o,0));
  transform: scale(calc(.7 + var(--t,0) * .3)); transform-origin: 0 100%;
}
.world__say--gate { left: calc(370vw - var(--kid)); bottom: calc(var(--g) + var(--kid) * 1.2); translate: -100% 0; width: min-content; min-width: 7.6em; line-height: 1.15; border-radius: 20px 20px 6px 20px; transform-origin: 100% 100% }
.world__spark {
  position: absolute; left: calc(370vw + var(--sw) * .13); bottom: calc(var(--g) + var(--kid) * 3); width: clamp(34px, 5vh, 56px); aspect-ratio: 1; background: var(--sun);
  clip-path: var(--star); transform: scale(var(--t,0)) rotate(calc(var(--t,0) * 140deg));
}

.day__child { position: absolute; z-index: 2; left: 26vw; bottom: var(--g); width: 0; height: 0 }
.kid--walker { --k: var(--kid); left: calc(var(--kid) / -2); bottom: 0 }
.kid--walker.is-walking { animation: walk .44s linear infinite }
@keyframes walk {
  0%, 100% { background-size: 18% 24%, 18% 14%; translate: 0 0; rotate: -2deg }
  50% { background-size: 18% 14%, 18% 24%; translate: 0 -4%; rotate: 2deg }
}

.day__clock {
  position: absolute; z-index: 4; left: 6vw; top: 96px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px;
  border-radius: 999px; background: var(--white); color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 20px;
  font-variant-numeric: tabular-nums; box-shadow: 0 8px 24px rgba(38,55,65,.14);
}
.day__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); animation: twinkle 1.4s ease-in-out infinite }
.day__weekday { font-family: var(--body); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(38,55,65,.6) }
.day__text { position: absolute; z-index: 4; left: 6vw; top: 150px; width: min(46vw, 620px); height: 34vh }
.day__panel {
  position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; gap: 10px; color: var(--ink);
  opacity: calc(var(--t,0) - var(--o,0)); transform: translateY(calc((1 - var(--t,0)) * 26px - var(--o,0) * 26px));
}
.day__panel--night { color: var(--cream) }
.day__panel--last { transform: translateY(calc((1 - var(--t,0)) * 26px)) }
.day__h { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(30px, min(3.8vw, 7vh), 60px); line-height: 1.04; text-wrap: balance }
.day__sub { margin: 0; max-width: 520px; font-size: clamp(16px, min(1.4vw, 2.6vh), 20px); line-height: 1.45; font-weight: 600 }
.day__parts { display: flex; flex-wrap: wrap; gap: 8px }
.day__parts span {
  padding: 7px 13px; border-radius: 999px; font-weight: 800; font-size: 14px; border: 2px solid var(--ink);
  background: color-mix(in srgb, var(--ink) calc((var(--t,0) - var(--o,0)) * 100%), transparent);
  color: color-mix(in srgb, var(--cream) calc((var(--t,0) - var(--o,0)) * 100%), var(--ink));
}

.day__phone {
  position: absolute; z-index: 5; right: 8vw; top: 50%; height: min(76vh, 640px); aspect-ratio: 9 / 19.5;
  transform: translateY(calc(-50% + (1 - var(--t,0) + var(--o,0)) * 110vh)) rotate(calc((1 - var(--t,0)) * 7deg));
}
.phone { position: relative; height: 100%; border-radius: 34px; border: 8px solid var(--ink); background: #FFF7EA; overflow: hidden; box-shadow: 0 30px 70px rgba(38,55,65,.34) }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.phone img[data-seg] { opacity: var(--t,0) }

.day__checkin {
  position: absolute; z-index: 5; right: 7vw; top: 50%; width: min(440px, 40vw); padding: clamp(18px, 3vh, 30px); border-radius: 28px;
  background: var(--cream); color: var(--ink); display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 70px rgba(0,0,0,.34);
  opacity: calc(var(--t,0) - var(--o,0)); transform: translateY(calc(-50% + (1 - var(--t,0)) * 50px - var(--o,0) * 50px));
}
.day__checkin-label { font-weight: 800; font-size: 12px; letter-spacing: .18em; text-transform: uppercase }
.day__checkin-q { font-family: var(--display); font-weight: 600; font-size: clamp(20px, min(1.9vw, 3.6vh), 28px); line-height: 1.2 }
.day__pills { display: flex; flex-wrap: wrap; gap: 8px }
.day__pill {
  padding: 10px 17px; border-radius: 999px; border: 2px solid var(--ink); font-family: var(--display); font-weight: 600; font-size: 16px;
  background: color-mix(in srgb, var(--sun) calc(var(--t,0) * 100%), transparent); transform: scale(calc(1 + var(--t,0) * .05));
}
.day__pill--off { opacity: .55 }
.day__meter { display: grid; grid-template-columns: 76px 1fr; gap: 8px 12px; align-items: center; font-weight: 700; font-size: 14px }
.day__meter div { height: 12px; border-radius: 7px; background: rgba(38,55,65,.1); overflow: hidden }
.day__meter i { display: block; height: 100%; border-radius: 7px; background: var(--teal) }
.day__meter .day__uses { width: calc(var(--t,0) * 62%); background: var(--coral) }

/* ---------- Zero ---------- */

.zero { position: relative; height: 200vh; background: var(--sun) }
.zero__stage { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 5vw; padding: 90px 7vw 40px }
.zero__head .eyebrow { color: var(--ink) }
.zero__title { margin: 12px 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(36px, min(5vw, 9vh), 80px); line-height: 1; text-wrap: balance }
.zero__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(8px, 1.5vh, 14px) }
.zero__row {
  display: grid; grid-template-columns: clamp(64px, 12vh, 104px) 1fr; align-items: center; gap: clamp(14px, 1.6vw, 22px);
  padding: clamp(6px, 1.2vh, 11px) clamp(16px, 1.6vw, 22px) clamp(6px, 1.2vh, 11px) clamp(6px, 1.2vh, 11px); border-radius: 26px; background: var(--white);
  font-family: var(--display); font-weight: 500; font-size: clamp(17px, min(1.7vw, 3.1vh), 25px); line-height: 1.2;
  opacity: var(--t,0); transform: translateX(calc((1 - var(--t,0)) * 70px));
}
.zero__n {
  height: clamp(58px, 11vh, 92px); border-radius: 20px; display: grid; place-items: center; background: var(--ink); color: var(--cream);
  font-weight: 600; font-size: clamp(32px, 6.4vh, 54px); font-variant-numeric: tabular-nums;
}
.zero__row--one { background: var(--ink); color: var(--cream) }
.zero__row--one .zero__n { background: var(--coral); color: var(--ink) }

/* ---------- People ---------- */

.people { background: var(--ink); color: var(--cream); padding: clamp(100px, 14vh, 160px) 7vw }
.people__wrap { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(36px, 7vh, 72px) }
.people__intro { display: flex; flex-direction: column; gap: 14px; max-width: 780px }
.tabs { display: flex; flex-direction: column; gap: 28px }
.tabs__bar { position: relative; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 74px }
.tabs__milo { position: absolute; left: 0; top: 0; width: 72px; margin-left: -36px; transition: transform .5s cubic-bezier(.34,1.3,.64,1) }
.tabs__tab {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; border: 2px solid rgba(244,236,217,.26);
  background: transparent; color: var(--cream); font-family: var(--display); font-weight: 600; font-size: clamp(16px, 1.5vw, 20px); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.tabs__tab:hover { transform: translateY(-2px) }
.tabs__tab[aria-selected="true"] { background: var(--cream); border-color: var(--cream); color: var(--ink) }
.tabs__dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(38,55,65,.2) }
.role { padding: clamp(24px, 3.4vw, 48px); border-radius: 32px; background: var(--cream); color: var(--ink); display: flex; flex-direction: column; gap: 26px; animation: role-in .55s var(--ease-out) }
@keyframes role-in { from { opacity: 0; transform: translateY(20px) } }
.role__quote { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(24px, 3vw, 42px); line-height: 1.14; text-wrap: balance }
.role__by { display: block; margin-top: 8px; font-family: var(--body); font-weight: 800; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--teal) }
.role__cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px) }
.role__h { margin: 0 0 10px; font-weight: 800; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #006A73 }
.role ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.5 }
.role li::marker { color: var(--coral) }
.role p { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.3 }

/* ---------- Pilot road ---------- */

.road { position: relative; height: 340vh; background: var(--ink); color: var(--cream) }
.road__stage { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 4vw; padding: 90px 6vw 40px }
.road__left { display: flex; flex-direction: column; gap: 14px }
.road__title { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(38px, min(5vw, 9vh), 80px); line-height: 1 }
.road__cards { position: relative; min-height: 250px; margin-top: 10px }
.stop {
  position: absolute; inset: 0 0 auto; padding: clamp(20px, 2.4vw, 32px); border-radius: 28px; background: var(--cream); color: var(--ink);
  opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .35s, transform .45s var(--ease-out); pointer-events: none;
}
.stop.is-on { opacity: 1; transform: none; pointer-events: auto }
.stop__when { font-weight: 800; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #006A73 }
.stop__h { margin: 6px 0 8px; font-family: var(--display); font-weight: 600; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.05 }
.stop p { margin: 0; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5 }
.road__dots { display: flex; gap: 8px }
.road__dots span { width: 34px; height: 5px; border-radius: 4px; background: rgba(244,236,217,.22); transition: background .3s }
.road__dots .is-on { background: var(--sun) }
.road__right { display: grid; place-items: center; min-height: 0 }
.roadmap { width: 100%; max-height: calc(100vh - 150px); overflow: visible }
.roadmap__base { fill: none; stroke: rgba(244,236,217,.16); stroke-width: 22; stroke-linecap: round }
.roadmap__fill { fill: none; stroke: var(--sun); stroke-width: 10; stroke-linecap: round }
.station circle { fill: var(--ink); stroke: rgba(244,236,217,.4); stroke-width: 3; transition: fill .3s, stroke .3s }
.station text { font-family: var(--display); font-weight: 600; font-size: 21px; fill: var(--cream); transition: fill .3s }
.station.is-on circle { fill: var(--coral); stroke: var(--cream) }
.station.is-on text { fill: var(--ink) }

/* ---------- Join ---------- */

.join .enroll__deco--coral { z-index: 0 }
.plaque { position: relative; height: 216px; max-width: 460px; margin-top: 8px }
.plaque__post { position: absolute; bottom: 0; width: 12px; height: 100%; border-radius: 6px 6px 0 0; background: var(--cream) }
.plaque__post--l { left: 8% }
.plaque__post--r { right: 22% }
.plaque__board {
  position: absolute; left: 0; right: 14%; top: 22px; padding: 16px 20px; border-radius: 18px; background: var(--sun); color: var(--ink); text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,.28); transform-origin: 50% 0;
}
.plaque__small { font-weight: 800; font-size: 12px; letter-spacing: .18em; text-transform: uppercase }
.plaque__name { margin: 4px 0; font-family: var(--display); font-weight: 600; font-size: clamp(25px, 2.5vw, 33px); line-height: 1.08; min-height: 1.08em; overflow-wrap: anywhere }
.plaque__city { font-weight: 700; font-size: 14px }
.plaque__milo { position: absolute; right: 0; bottom: 0; width: 104px; height: auto }
.join .form { position: relative; z-index: 1 }

/* ---------- Phones ---------- */

@media (max-width: 760px) {
  .gate { height: 150vh }
  .gate__copy { top: 92px; padding: 0 20px; gap: 12px }
  .gate__badge { font-size: 11px; letter-spacing: .1em; padding: 7px 12px }
  .gate__title { font-size: clamp(36px, 11vw, 46px) }
  .gate__lede { font-size: 16px; line-height: 1.42 }
  .gate__cta { padding: 13px 22px; font-size: 17px }
  .gate__ghost { padding: 8px 6px; font-size: 15px }
  .gate__zoom { width: 124vw; margin-left: -62vw; bottom: 16px }
  .gate__bubble { max-width: 104px; font-size: 12.5px; padding: 6px 9px; left: 74%; bottom: 40% }
  .gate__scroll { display: none }
  .piece { scale: .5 }
  /* These two sit behind the headline and the button on narrow screens. */
  .gate__stage > .piece:nth-child(1), .gate__stage > .piece:nth-child(3) { display: none }

  .forty { height: 325vh; margin-top: calc(-100svh - 25vh) }
  .forty__stage { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 74px 22px 28px }
  .forty__text { width: 100%; height: 41svh; flex: none }
  .forty__visual { width: 100%; height: 36svh; flex: none }
  .forty__panel { justify-content: flex-end; gap: 12px }
  .forty__h { font-size: clamp(34px, 10vw, 44px) }
  .forty__h--sm { font-size: clamp(25px, 7.2vw, 32px) }
  .forty__h--md { font-size: clamp(30px, 8.6vw, 38px) }
  .forty__sub { font-size: 16px; line-height: 1.42 }
  .forty__sub--pop { font-size: 20px }
  .forty__source { font-size: 10.5px; letter-spacing: .1em }
  .forty .stat__n { font-size: 84px }
  .room { width: min(100%, 32svh * 1.45); gap: 7px }
  .room__caption { font-size: 14px }
  .ask-b { font-size: 16px; padding: 10px 15px }
  .forty__vis--asks { gap: 8px }
  .idea { width: min(170px, 26svh) }

  .day { --g: 12svh; --sw: 96vw; --hw: 54vw; --bw: 72vw; --kid: 9vw; height: 420vh }
  .world__tree { width: 16vw; height: 26vw }
  .world__shop { width: 26vw; height: 20vw }
  .day__clock { left: 18px; top: 90px; padding: 6px 12px; font-size: 16px }
  .day__weekday { font-size: 10px }
  .day__text { left: 20px; top: 134px; width: calc(100% - 40px); height: 34svh }
  .day__h { font-size: clamp(28px, 8.2vw, 36px) }
  .day__sub { font-size: 15px; line-height: 1.38 }
  .day__parts span { font-size: 12px; padding: 4px 9px }
  .day__phone { right: 16px; top: auto; bottom: calc(var(--g) + 4px); height: 41svh; transform: translateY(calc((1 - var(--t,0) + var(--o,0)) * 110vh)) rotate(calc((1 - var(--t,0)) * 7deg)) }
  .phone { border-radius: 22px; border-width: 5px }
  .day__checkin { left: 16px; right: 16px; top: auto; bottom: calc(var(--g) + 14px); width: auto; gap: 10px; padding: 18px; transform: translateY(calc((1 - var(--t,0)) * 50px - var(--o,0) * 50px)) }
  .day__orb { width: 16vmin; height: 16vmin }
  .day__orb--sun { transform: translate(calc(62vw + var(--t,0) * 46vw), calc(46vh + var(--t,0) * var(--t,0) * 32vh)) }
  .day__orb--moon { transform: translate(calc(58vw + var(--t,0) * 24vw), calc(56vh - (1 - var(--a) * var(--a)) * 12vh)) }
  .day__orb--rise { transform: translate(calc(40vw + var(--t,0) * 38vw), calc(78vh - (1 - var(--a) * var(--a)) * 34vh)) }
  .world__say--gate { left: calc(370vw - 22vw); bottom: calc(var(--g) + var(--sw) * .54); translate: 0 0; width: max-content; border-radius: 20px 20px 20px 6px; transform-origin: 30% 100% }


  .zero { height: 190vh }
  .zero__stage { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 20px; padding: 74px 18px 24px }
  .zero__title { font-size: 38px }
  .zero__row { grid-template-columns: 62px 1fr; font-size: 16px; border-radius: 18px; padding: 6px 14px 6px 6px }
  .zero__n { height: 54px; font-size: 30px; border-radius: 14px }

  .people { padding: 72px 20px }
  .tabs__bar { padding-top: 62px; gap: 8px }
  .tabs__milo { width: 58px; margin-left: -29px }
  .tabs__tab { padding: 10px 14px; font-size: 15px }
  .role { border-radius: 26px; padding: 22px 20px }
  .role__cols { grid-template-columns: 1fr }


  .road { height: 320vh }
  .road__stage { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 10px; padding: 90px 20px 16px }
  .road__left { flex: none; gap: 6px }
  .road__left .eyebrow { display: none }
  .road__title { font-size: 34px }
  .road__cards { min-height: 172px; margin-top: 4px }
  .stop { padding: 16px 18px; border-radius: 20px }
  .stop__h { font-size: 24px; margin: 3px 0 5px }
  .stop p { font-size: 15px; line-height: 1.4 }
  .road__right { flex: 1; min-height: 0 }
  .roadmap { max-height: 100%; height: 100% }


  .plaque { height: 186px }
  .plaque__milo { width: 84px }
}

/* Short phones (iPhone SE and similar): trim secondary lines so every scene fits. */
@media (max-width: 760px) and (max-height: 700px) {
  .gate__lede { font-size: 15px }
  .gate__title { font-size: 32px }
  .gate__ghost { display: none }
  .gate__zoom { width: 104vw; margin-left: -52vw }
  .forty__text { height: 44svh }
  .forty__visual { height: 32svh }
  .day__sub { display: none }
  .day__parts { display: none }
}

/* Short laptops: keep the school from running into the headline. */
@media (min-width: 761px) and (max-height: 760px) {
  .gate__zoom { width: min(92vw, 980px, 72vh); margin-left: calc(min(92vw, 980px, 72vh) / -2) }
  .gate__lede { max-width: 620px }
}

@media (prefers-reduced-motion: reduce) {
  .school__cloth, .skid, .day__stars i, .day__dot, .role { animation: none }
  .tabs__milo { transition: none }
  .kid--walker.is-walking { animation: none }
}
