/* certAInty marketing site
   Scroll scenes: each [data-scene] gets --p (0..1 progress through the scene).
   Each [data-seg="a,b(,c,d)"] inside gets --t (eased progress a→b) and, when
   given, --o (eased progress c→d, used for fading out). See js/main.js. */

:root {
  --cream: #F4ECD9;
  --ink: #263741;
  --ink-deep: #1E2D36;
  --teal: #019FAD;
  --sun: #FEBC34;
  --coral: #F15941;
  --white: #FEFEFE;
  --error: #B53A26;

  --display: 'Fredoka', sans-serif;
  --body: 'Nunito Sans', sans-serif;
  --ease-out: cubic-bezier(.16,1,.3,1);

  --star: polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
  --tri: polygon(50% 4%,100% 96%,0 96%);
  --sq: inset(6% round 18%);
  --para: polygon(18% 0,100% 0,82% 100%,0 100%);
}

html { scroll-behavior: smooth }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased }
*, *::before, *::after { box-sizing: border-box }
a { color: var(--teal); text-decoration: none }
a:hover { color: var(--ink) }
::selection { background: var(--sun); color: var(--ink) }
button, input { font: inherit }
input::placeholder { color: rgba(38,55,65,.45) }
[hidden] { display: none !important }

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

.site { position: relative; overflow: clip; background: var(--cream) }
.sticky { position: sticky; top: 0; height: 100vh; overflow: hidden }

.eyebrow { font-weight: 800; font-size: 14px; letter-spacing: .2em; text-transform: uppercase }
.eyebrow--sun { color: var(--sun) }
.eyebrow--teal { color: var(--teal) }

.section-title { margin: 10px 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(30px, min(4.6vw, 8vh), 74px); line-height: 1 }
.block-title { margin: 12px 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(40px, 4.6vw, 74px); line-height: 1; text-wrap: balance }
.block-title--flush { margin: 0 }
.block-lede { margin: 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6 }
.block-lede--soft { color: rgba(244,236,217,.9) }

/* ---------- Chrome: progress, cursor, nav ---------- */

.progress {
  position: fixed; left: 0; top: 0; height: 4px; width: 100%; background: var(--teal);
  transform-origin: 0 50%; transform: scaleX(0); z-index: 95;
}
.cursor {
  position: fixed; left: 0; top: 0; width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border-radius: 50%; border: 2px solid var(--teal); pointer-events: none; z-index: 100; opacity: 0;
  transition: width .25s, height .25s, margin .25s, background-color .25s, opacity .3s;
}
.cursor.is-big { width: 64px; height: 64px; margin: -32px 0 0 -32px; background-color: rgba(254,188,52,.35) }

.nav {
  position: fixed; top: 14px; left: 50%; transform: translate(-50%, -140%); z-index: 90;
  width: min(1180px, calc(100% - 28px)); display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 9px 9px 9px 22px; border-radius: 999px; background: rgba(244,236,217,.84);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 8px 30px rgba(38,55,65,.14);
  opacity: 0; pointer-events: none;
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
}
.nav.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto }
.nav__logo { display: flex; align-items: center }
.nav__logo img { height: 26px; display: block }
.nav__links { display: flex; gap: clamp(12px, 2.2vw, 30px); font-weight: 700; font-size: 15px; overflow: hidden; white-space: nowrap }
.nav__links a { color: var(--ink) }
.nav__links a:hover { color: var(--teal) }
.nav__cta {
  flex: none; padding: 12px 22px; border-radius: 999px; background: var(--sun); color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 16px; transition: background .2s, color .2s;
}
.nav__cta:hover { background: var(--ink); color: var(--sun) }

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

.hero { position: relative; height: 230vh; background: var(--cream) }
.hero__stage { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 40px 0 90px }
.piece { position: absolute }
.hero__content {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center;
  gap: clamp(12px, 3.4vh, 30px); text-align: center; padding: 0 24px; width: 100%;
}
.hero__badge-wrap { opacity: calc(1 - var(--t,0)); transform: translateY(calc(var(--t,0) * -40px)) }
.hero__badge {
  padding: 9px 18px; border-radius: 999px; background: rgba(38,55,65,.08);
  font-weight: 800; font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
}
.hero__logo { width: min(80vw, 860px, 100vh); height: auto; overflow: visible; display: block }
.hero__left { transform: translateX(calc(var(--t,0) * -760px)); opacity: calc(1 - var(--t,0)) }
.hero__right { transform: translateX(calc(var(--t,0) * 760px)); opacity: calc(1 - var(--t,0)) }
.hero__head { transform-origin: 491px 100px; transform: scale(calc(1 + var(--t,0) * 80)) }
.hero__scroll {
  position: absolute; bottom: clamp(14px, 4vh, 40px); left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: calc(1 - var(--t,0));
  font-weight: 800; font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
}
.mouse { position: relative; width: 26px; height: 42px; border-radius: 14px; border: 2px solid var(--ink) }
.mouse__wheel { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ink) }
.hero__fade { position: absolute; inset: 0; background: var(--ink); opacity: var(--t,0); pointer-events: none; z-index: 3 }

.eyes { transform-origin: 489px 152px; transition: transform .09s }
.mouth { transform-origin: 481px 232px }

/* ---------- Story ---------- */

.story { position: relative; height: 440vh; background: var(--ink); color: var(--cream) }
.story__stage {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 4vw; padding: 80px 6vw 40px;
}
.story__text { position: relative; height: min(60vh, 460px) }
.story__panel {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 22px;
  opacity: calc(var(--t,0) - var(--o,0));
  transform: translateY(calc((1 - var(--t,0)) * 40px - var(--o,0) * 40px));
}
.story__panel--last { transform: translateY(calc((1 - var(--t,0)) * 40px)) }
.story__h { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(28px, min(4.6vw, 8.5vh), 72px); line-height: 1.04; text-wrap: balance }
.story__h--sm { font-size: clamp(22px, min(3.4vw, 6.6vh), 54px); line-height: 1.08 }
.story__h--md { font-size: clamp(26px, min(4vw, 7.6vh), 62px); line-height: 1.06 }
.story__sub { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(17px, min(2.2vw, 4.2vh), 32px); line-height: 1.2; color: var(--sun) }
.story .stat__n { font-size: clamp(88px, min(10vw, 19vh), 170px) }
.story .stat__pct { font-size: clamp(40px, min(4.6vw, 8.5vh), 78px) }
.story__source { font-weight: 800; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(244,236,217,.55) }
.story__sub--reveal { opacity: var(--t,0); transform: translateY(calc((1 - var(--t,0)) * 16px)) }
.story__ticks { position: absolute; left: 0; bottom: -30px; display: flex; gap: 8px }
.tick { width: 48px; height: 4px; border-radius: 4px; background: rgba(244,236,217,.2); overflow: hidden }
.tick__fill { height: 100%; background: var(--sun); transform-origin: 0 50%; transform: scaleX(var(--t,0)) }

.story__visual { position: relative; height: min(66vh, 520px) }
.story__vis { position: absolute; inset: 0; opacity: calc(var(--t,0) - var(--o,0)) }
.story__vis--grid { display: grid; place-items: center; transform: scale(calc(1 - var(--o,0) * 0.2)) }
.story__vis--dots { display: flex; flex-direction: column; justify-content: center; gap: 16px }
.story__vis--paths { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px }
.story__vis--final { display: grid; place-items: center }

.squares { position: relative; display: grid; grid-template-columns: repeat(5, 56px); gap: 12px; zoom: var(--fit, 1) }
.square {
  width: 56px; height: 56px; border-radius: 14px; background: var(--cream);
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 12px;
  transform: translate(calc(var(--t,0) * var(--dx)), calc(var(--t,0) * var(--dy))) scale(calc(1 - var(--t,0) * 0.85)) rotate(calc(var(--t,0) * 90deg));
  opacity: calc(1 - var(--t,0) * 0.9);
}
.square::before, .square::after { content: ''; height: 5px; border-radius: 3px; background: var(--ink); opacity: .5 }
.square::after { width: 60% }
.ai-disc {
  position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%;
  background: var(--teal); transform: scale(calc(0.05 + var(--t,0) * 0.95)); display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; font-size: 44px; color: var(--ink); pointer-events: none;
}

.dots {
  position: relative; height: min(300px, 44vh); display: flex; align-items: flex-end; justify-content: space-between;
  border-bottom: 2px solid rgba(244,236,217,.25); padding: 0 10px;
}
.dot { position: relative; width: 22px; height: 22px }
.dot::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(244,236,217,.35) }
.dot__ball { position: absolute; inset: 0; border-radius: 50%; transform: translate(calc(var(--t,0) * var(--x)), calc(var(--t,0) * var(--h))) }
.dots__axis { display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; color: rgba(244,236,217,.8) }

.paths__col { display: flex; flex-direction: column; align-items: center; gap: 24px }
.paths__caption { font-weight: 700; font-size: 16px; text-align: center; color: rgba(244,236,217,.8) }
.loop { position: relative; width: min(200px, 18vw, 30vh); aspect-ratio: 1; border-radius: 50%; border: 10px solid rgba(244,236,217,.22) }
.loop__spin { position: absolute; inset: -10px; transform: rotate(calc(var(--p,0) * 2600deg)) }
.loop__dot { position: absolute; left: 50%; top: -8px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: var(--cream) }
.branch { position: relative; width: min(200px, 18vw, 30vh); aspect-ratio: 1 }
.branch__bar {
  position: absolute; left: 38%; top: 50%; width: 62%; height: 10px; margin-top: -5px; border-radius: 10px;
  background: var(--teal); transform-origin: 0 50%; transform: rotate(var(--r, 0deg)) scaleX(var(--t,0));
}
.branch__end { position: absolute; width: 30px; height: 30px; border-radius: 50%; transform: scale(var(--t,0)) }

.final { position: relative; display: flex; align-items: flex-end; gap: 40px; zoom: var(--fit, 1) }
.final__glow {
  position: absolute; left: -60px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(254,188,52,.55), rgba(254,188,52,0) 65%);
  transform: scale(calc(0.3 + var(--t,0) * 0.9)); pointer-events: none;
}
.final__person { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px }
.final__idea {
  width: clamp(26px, min(3.4vw, 6.5vh), 44px); height: clamp(26px, min(3.4vw, 6.5vh), 44px); border-radius: 50%; background: var(--sun);
  transform: translateY(calc((1 - var(--t,0)) * 60px)) scale(var(--t,0));
}
.final__head { width: 84px; height: 84px; border-radius: 50%; background: var(--cream) }
.final__body { width: 150px; height: 75px; border-radius: 999px 999px 0 0; background: var(--cream) }
.final__milo { width: 170px; height: auto; transform: translateX(calc((1 - var(--t,0)) * 80px)); opacity: var(--t,0) }

/* ---------- Statement ---------- */

.statement { position: relative; height: 190vh; background: var(--cream) }
.statement__stage { overflow: visible; display: grid; place-items: center; padding: 0 7vw }
.statement__text {
  margin: 0; max-width: 1240px; display: flex; flex-direction: column; gap: .14em;
  font-family: var(--display); font-weight: 600; font-size: clamp(34px, 5vw, 80px); line-height: 1.08; letter-spacing: -.01em;
}
.statement__line { display: flex; flex-wrap: wrap; gap: .08em .26em }
.statement__tail {
  margin: clamp(18px, 3vh, 32px) 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2vw, 30px); color: var(--teal);
  opacity: var(--t,0); transform: translateY(calc((1 - var(--t,0)) * 14px));
}
.word { display: inline-block; opacity: calc(0.13 + var(--t,0) * 0.87); transform: translateY(calc((1 - var(--t,0)) * 14px)) }

/* ---------- Milo ---------- */

.milo { position: relative; height: 300vh; background: var(--cream) }
.milo__stage {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 4vw; padding: 100px 6vw 24px;
}
.milo__halo {
  position: absolute; left: 50%; top: 52%; width: 130vmax; height: 130vmax; margin: -65vmax 0 0 -65vmax; border-radius: 50%;
  background: var(--teal); opacity: .1; transform: scale(calc(0.2 + var(--t,0) * 0.8)); pointer-events: none;
}
.milo__left { position: relative; display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 2.4vh, 22px) }
.milo__heading { text-align: center }
.milo__title { margin: 10px 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(38px, min(6vw, 10vh), 96px); line-height: .95 }
.milo__button { position: relative; border: 0; background: none; padding: 0; cursor: pointer; transition: transform .25s }
.milo__button:hover { transform: scale(1.04) rotate(-2deg) }
.milo__button:active { transform: scale(.97) }
.milo__svg { width: min(36vh, 30vw, 380px); height: auto; display: block; overflow: visible }
.milo__prompt {
  display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: var(--cream); font-weight: 700; font-size: 15px;
}
.milo__prompt-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sun) }
.milo__right { position: relative; height: min(calc(100vh - 136px), 560px) }
.bubbles {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: clamp(6px, 1.4vh, 14px);
  opacity: calc(1 - var(--o,0)); transform: translateY(calc(var(--o,0) * -40px));
}
.bubbles__list { display: contents }
.bubble {
  max-width: 440px; padding: clamp(8px, 1.6vh, 16px) clamp(14px, 1.6vw, 22px); border-radius: 22px 22px 22px 8px;
  color: var(--ink); font-family: var(--display); font-weight: 500; font-size: clamp(15px, min(1.7vw, 3.2vh), 24px);
  box-shadow: 0 10px 30px rgba(38,55,65,.12); opacity: var(--t,0);
  transform: translateY(calc((1 - var(--t,0)) * 30px)) scale(calc(0.9 + var(--t,0) * 0.1)); transform-origin: 0 100%;
}
.bubbles__caption { font-weight: 700; font-size: 14px; color: rgba(38,55,65,.7); opacity: var(--t,0) }
.features { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: clamp(6px, 1.4vh, 14px) }
.feature {
  display: grid; grid-template-columns: clamp(34px, 6vh, 52px) 1fr; gap: clamp(10px, 1.4vw, 18px); align-items: start;
  padding: clamp(8px, 1.8vh, 18px) clamp(12px, 1.6vw, 20px); border-radius: 20px; background: var(--white);
  box-shadow: 0 10px 30px rgba(38,55,65,.08); opacity: var(--t,0); transform: translateX(calc((1 - var(--t,0)) * 80px));
}
.feature__n {
  width: clamp(34px, 6vh, 52px); height: clamp(34px, 6vh, 52px); border-radius: 12px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--ink);
}
.feature__title { font-family: var(--display); font-weight: 600; font-size: clamp(16px, min(1.6vw, 3.2vh), 21px); line-height: 1.2 }
.feature__body { margin-top: 2px; font-size: clamp(13px, min(1.2vw, 2.5vh), 16px); line-height: 1.4; color: rgba(38,55,65,.85) }

/* ---------- Four parts (horizontal) ---------- */

.parts { position: relative; height: 460vh; background: var(--ink) }
.parts__stage { display: flex; align-items: center }
.parts__track { display: flex; align-items: center; width: max-content; transform: translateX(calc(var(--t,0) * var(--shift, -284vw))); will-change: transform }
.parts__intro { width: 50vw; padding: 0 4vw 0 7vw; color: var(--cream); display: flex; flex-direction: column; gap: 26px }
.parts__title { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(44px, 5.4vw, 88px); line-height: .98; text-wrap: balance }
.parts__lede { margin: 0; max-width: 520px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: rgba(244,236,217,.88) }
.parts__hint { display: flex; align-items: center; gap: 14px; font-weight: 800; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--sun) }
.parts__hint-line { width: 60px; height: 2px; background: var(--sun) }
.parts__progress { position: absolute; left: 7vw; right: 7vw; bottom: 28px; height: 3px; border-radius: 3px; background: rgba(244,236,217,.15); overflow: hidden }
.parts__progress-fill { height: 100%; background: var(--sun); transform-origin: 0 50%; transform: scaleX(var(--t,0)) }

.part { width: 78vw; padding: 0 1.5vw }
.part--last { padding: 0 7vw 0 1.5vw; box-sizing: content-box }
.part__card {
  height: min(calc(100vh - 120px), 700px); margin-top: 40px; border-radius: 40px; background: var(--cream);
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: clamp(16px, 2.4vw, 40px);
  padding: clamp(18px, 2.6vw, 44px); overflow: hidden;
}
.part__info { display: flex; flex-direction: column; justify-content: center; gap: clamp(8px, 1.8vh, 18px); min-width: 0; overflow: hidden }
.part__label { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 13px; letter-spacing: .18em; text-transform: uppercase }
.part__dot { width: 14px; height: 14px; border-radius: 50% }
.part__title { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(34px, min(5vw, 9vh), 78px); line-height: .95 }
.part__lede { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(17px, min(1.8vw, 3.4vh), 26px); line-height: 1.3; text-wrap: pretty }
.part__play {
  border-radius: 30px; padding: clamp(14px, 2vw, 32px); display: flex; flex-direction: column; justify-content: center;
  gap: clamp(8px, 1.6vh, 16px); min-width: 0; overflow: hidden;
}
.part__milo { width: clamp(48px, 10vh, 92px); height: auto; align-self: flex-start }

.try { padding: clamp(14px, 2.4vh, 22px); border-radius: 22px; background: var(--cream); display: flex; flex-direction: column; gap: clamp(8px, 1.4vh, 14px) }
.try--roomy { gap: clamp(8px, 1.4vh, 16px) }
.try__label { font-weight: 800; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(38,55,65,.7) }
.try__q { font-family: var(--display); font-weight: 600; font-size: clamp(17px, min(2vw, 3.6vh), 28px); line-height: 1.2 }
.try__fb { font-weight: 700; font-size: 16px; line-height: 1.45 }
.try__fb--bold { font-weight: 800 }

/* Quiz answer buttons. State classes are set by js/main.js. */
.opt {
  display: flex; align-items: center; gap: 14px; padding: clamp(7px, 1.4vh, 12px) 14px; border-radius: 16px;
  border: 2px solid var(--ink); background: var(--white); color: var(--ink);
  font-family: var(--display); font-weight: 500; font-size: clamp(16px, min(1.6vw, 3.2vh), 20px);
  cursor: pointer; text-align: left; transition: background .25s, transform .2s;
}
.opt:hover { transform: translateY(-2px) }
.opt.is-right { background: var(--sun) }
.opt.is-wrong { background: var(--ink); color: var(--cream) }
.opt.is-dim { opacity: .45 }
.opt__key {
  width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--cream); font-size: 15px; font-weight: 600;
}
.opt--shape { flex: 1; height: clamp(52px, 11vh, 84px); border-radius: 18px; padding: 0; display: grid; place-items: center }
.opt--shape > div { width: 40px; height: 40px }
.opt--num { flex: 1; display: block; padding: clamp(6px, 1.2vh, 12px); text-align: center; font-weight: 600; font-size: clamp(17px, 3.4vh, 22px) }

.seq { display: flex; align-items: center; gap: 10px; flex-wrap: wrap }
.seq__shape { width: clamp(26px, min(3.4vw, 6.5vh), 44px); height: clamp(26px, min(3.4vw, 6.5vh), 44px) }
.seq__blank {
  width: clamp(28px, min(3.6vw, 7vh), 48px); height: clamp(28px, min(3.6vw, 7vh), 48px); border-radius: 12px;
  border: 3px dashed var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 22px;
}
.shape-opts { display: flex; gap: 12px }
.num-opts { display: flex; gap: 10px }

.focus__q { font-family: var(--display); font-weight: 600; font-size: clamp(16px, min(1.8vw, 3.4vh), 26px); line-height: 1.2 }
.torch {
  position: relative; width: min(100%, 52vh); align-self: center; border-radius: 22px; background: var(--white);
  padding: clamp(10px, 2vh, 18px); display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(6px, 1.4vh, 12px);
  overflow: hidden; cursor: none; touch-action: none;
}
.torch__cell { aspect-ratio: 1 }
.torch__light {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--tx, 50%) var(--ty, 50%), rgba(38,55,65,0) 0, rgba(38,55,65,0) 62px, rgba(26,38,46,.95) 84px);
}






/* ---------- Journey ---------- */

.journey { position: relative; height: 260vh; background: var(--cream) }
.journey__stage { display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 4vh, 44px); padding: 100px 7vw 40px }
.journey__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap }
.daycount { display: flex; align-items: baseline; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 22px }
.daycount__n { font-size: clamp(64px, 7vw, 110px); line-height: .85; color: var(--teal); min-width: 1.2em; text-align: right }
.concepts { display: grid; grid-template-columns: repeat(10, minmax(0,1fr)); gap: clamp(6px, 1vw, 14px) }
.concept { display: flex; flex-direction: column; gap: clamp(6px, .8vw, 10px) }
.jday { position: relative; aspect-ratio: 1; border-radius: clamp(10px, 1.2vw, 18px); border: 2px solid rgba(38,55,65,.2); background: var(--white); overflow: hidden }
.jday__fill { position: absolute; inset: 0; transform: scale(var(--t,0)); border-radius: inherit }
.jday__star { position: absolute; inset: 24%; background: var(--ink); clip-path: var(--star); transform: scale(var(--t,0)) rotate(calc((1 - var(--t,0)) * 140deg)) }
.jday__n { position: absolute; left: 8px; top: 5px; font-weight: 800; font-size: clamp(10px, .9vw, 13px); color: rgba(38,55,65,.6) }
.concept__talk { margin-top: 4px; font-family: var(--display); font-weight: 600; font-size: clamp(11px, 1.1vw, 16px); line-height: 1.15; opacity: calc(0.35 + var(--t,0) * 0.65) }



.strike { position: relative; display: inline-block; color: rgba(244,236,217, calc(1 - var(--t,0) * 0.55)) }
.strike::after {
  content: ''; position: absolute; left: -3%; right: -3%; top: 55%; height: .09em; border-radius: .05em;
  background: var(--coral); transform-origin: 0 50%; transform: scaleX(var(--t,0));
}
.stat { display: flex; align-items: flex-start; font-family: var(--display); font-weight: 700; color: var(--sun); line-height: .9 }
.stat__n { font-size: clamp(110px, min(15vw, 26vh), 230px); font-variant-numeric: tabular-nums }
.stat__pct { font-size: clamp(50px, min(6.4vw, 11vh), 104px); margin-top: .12em }

/* ---------- Mission & vision ---------- */

.mission { position: relative; background: var(--ink); color: var(--cream); padding: clamp(90px, 13vh, 150px) 7vw }
.mission__wrap { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(36px, 6vh, 64px) }
.mission__title { margin: 0; text-align: center; font-family: var(--display); font-weight: 600; font-size: clamp(40px, 4.6vw, 74px); line-height: 1 }
.mission__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(20px, 3vw, 40px) }
.mcard {
  position: relative; overflow: hidden; padding: clamp(28px, 3.4vw, 48px); border-radius: 32px; background: var(--white); color: var(--ink);
  display: flex; flex-direction: column; gap: 16px; box-shadow: 0 30px 70px rgba(0,0,0,.28); transition: rotate .5s var(--ease-out);
}
.mcard > :not([aria-hidden]) { position: relative; z-index: 1 }
.mcard--mission { rotate: -1.5deg }
.mcard--vision { rotate: 1.5deg }
.mcard:hover { rotate: 0deg }
.mcard__label { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 13px; letter-spacing: .2em; text-transform: uppercase }
.mcard--mission .mcard__label { color: var(--coral) }
.mcard--vision .mcard__label { color: var(--teal) }
.mcard__label span { width: 10px; height: 10px; border-radius: 50% }
.mcard__title { margin: 0; max-width: 85%; font-family: var(--display); font-weight: 600; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.08 }
.mcard__spark {
  position: absolute; right: 26px; top: 22px; width: 92px; height: 92px; background: var(--coral); opacity: .22;
  clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); animation: spin 16s linear infinite;
}
.mcard__blob {
  position: absolute; right: -24px; top: -24px; width: 150px; height: 130px; border-radius: 58% 42% 55% 45% / 52% 60% 40% 48%;
  background: var(--teal); opacity: .2; animation: wobble 9s ease-in-out infinite alternate;
}
@keyframes spin { to { rotate: 360deg } }
@keyframes wobble { to { border-radius: 42% 58% 45% 55% / 60% 44% 56% 40%; translate: -10px 8px } }

/* ---------- Four levels ---------- */

.levels { position: relative; height: 270vh; background: var(--cream) }
.levels__stage { display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 4vh, 44px); padding: 100px 7vw 50px }
.stairs {
  list-style: none; margin: 0; padding: clamp(80px, 12vh, 120px) 0 0; height: clamp(320px, 62vh, 600px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); align-items: end;
}
.step { position: relative; height: var(--h) }
.step__block {
  position: absolute; inset: 0; border-radius: 26px 26px 10px 10px; background: var(--c);
  transform-origin: 50% 100%; transform: scaleY(var(--t,0));
}
.step__text {
  position: relative; padding: clamp(16px, 2vw, 28px); display: flex; flex-direction: column; gap: 6px; color: var(--ink);
  opacity: var(--t,0); transform: translateY(calc((1 - var(--t,0)) * 16px));
}
.step--dark .step__text { color: var(--cream) }
.step__n { font-weight: 800; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; opacity: .75 }
.step__name { font-family: var(--display); font-weight: 600; font-size: clamp(18px, 2vw, 34px); line-height: 1.05 }
.step__milo {
  position: absolute; left: 50%; bottom: calc(100% + 10px); width: clamp(56px, 6vw, 92px); height: auto; translate: -50% 0;
  opacity: calc(var(--t,0) - var(--o,0)); transform: translateY(calc((1 - var(--t,0)) * -50px)) scale(calc(0.6 + var(--t,0) * 0.4));
}

/* ---------- Parents ---------- */

.parents { position: relative; background: var(--ink); color: var(--cream); padding: clamp(100px, 14vh, 160px) 7vw }
.parents__wrap { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(48px, 7vh, 80px) }
.parents__intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; align-items: end }
.report { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px }
.report__card { padding: 26px; border-radius: 26px; background: rgba(244,236,217,.07); border: 1.5px solid rgba(244,236,217,.14); display: flex; flex-direction: column; gap: 10px }
.report__n { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--sun) }
.report__title { font-family: var(--display); font-weight: 600; font-size: 24px }
.parents__panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px; align-items: center }

.checkin { padding: clamp(26px, 3vw, 40px); border-radius: 32px; background: var(--cream); color: var(--ink); display: flex; flex-direction: column; gap: 18px }
.checkin__head { display: flex; justify-content: space-between; align-items: center; gap: 12px }
.checkin__label { font-weight: 800; font-size: 13px; letter-spacing: .18em; text-transform: uppercase }
.checkin__badge { padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--cream); font-weight: 700; font-size: 13px }
.checkin__q { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.2 }
.checkin__opts { display: flex; gap: 10px; flex-wrap: wrap }
.pill {
  padding: 13px 20px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 17px; cursor: pointer; transition: background .2s, transform .2s;
}
.pill:hover { transform: translateY(-2px) }
.pill.is-on { background: var(--ink); color: var(--cream) }
.checkin__fb { padding: 16px 18px; border-radius: 18px; background: var(--white); font-weight: 700; font-size: 16px; line-height: 1.5 }
.meter { margin-top: auto; padding-top: 18px; border-top: 1.5px solid rgba(38,55,65,.15); display: flex; flex-direction: column; gap: 10px }
.meter__grid { display: grid; grid-template-columns: 130px 1fr; gap: 10px 14px; align-items: center; font-weight: 700; font-size: 15px }
.meter__bar { height: 14px; border-radius: 8px; background: rgba(38,55,65,.1); overflow: hidden }
.meter__fill { height: 100%; border-radius: 8px }
.meter__fill--uses { background: var(--coral); transition: width .8s cubic-bezier(.2,.8,.2,1) }
.meter__note { font-size: 13px; font-weight: 600; color: rgba(38,55,65,.75) }


/* ---------- Promise ---------- */

.promise { position: relative; background: var(--cream); padding: clamp(100px, 14vh, 160px) 7vw }
.promise__wrap {
  max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(40px, 5vw, 80px); align-items: start;
}
.promise__intro { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 120px }
.ring-row { display: flex; align-items: center; gap: 20px }
@property --pct { syntax: '<percentage>'; inherits: false; initial-value: 0% }
.ring {
  --pct: 0%;
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--teal) var(--pct), rgba(38,55,65,.12) 0); transition: --pct .6s var(--ease-out);
}
.ring__inner { width: 72px; height: 72px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 24px }
.ring-row__msg { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.25; max-width: 300px }
.commits { display: flex; flex-direction: column; gap: 12px }
.commit {
  display: grid; grid-template-columns: 40px 1fr; gap: 18px; align-items: center; padding: 22px 24px; border-radius: 24px;
  border: 2px solid rgba(38,55,65,.18); background: transparent; color: var(--ink); text-align: left; cursor: pointer;
  font-family: var(--display); font-weight: 500; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.3;
  transition: background .25s, border-color .25s, transform .2s;
}
.commit:hover { transform: translateX(6px) }
.commit.is-on { background: var(--white); border-color: var(--teal) }
.commit__box { width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--ink); background: transparent; display: grid; place-items: center; transition: background .2s }
.commit.is-on .commit__box { background: var(--sun); animation: box-pop .45s cubic-bezier(.34,1.56,.64,1) }
.commit.is-on .commit__box::after {
  content: ''; width: 18px; height: 10px; border-left: 4px solid var(--ink); border-bottom: 4px solid var(--ink);
  transform: translateY(-3px) rotate(-45deg); animation: tick-in .35s .08s cubic-bezier(.34,1.56,.64,1) backwards;
}
@keyframes box-pop { 0% { transform: scale(.7) } 60% { transform: scale(1.15) } 100% { transform: scale(1) } }
@keyframes tick-in { from { transform: translateY(-3px) rotate(-45deg) scale(0); opacity: 0 } }

/* ---------- Enroll ---------- */

.enroll { position: relative; background: var(--ink); color: var(--cream); padding: clamp(100px, 14vh, 160px) 7vw clamp(80px, 10vh, 120px); overflow: hidden }
.enroll__deco { position: absolute }
.enroll__deco--sun { left: -60px; top: 60px; width: 180px; height: 90px; border-radius: 999px 999px 0 0; background: var(--sun); transform: rotate(18deg) }
.enroll__deco--coral { right: 6%; top: -40px; width: 150px; height: 140px; border-radius: 58% 42% 55% 45% / 52% 60% 40% 48%; background: var(--coral) }
.enroll__deco--teal { right: -40px; bottom: 120px; width: 140px; height: 50px; border-radius: 999px; background: var(--teal); transform: rotate(-30deg) }
.enroll__wrap {
  position: relative; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(40px, 5vw, 80px); align-items: center;
}
.enroll__intro { display: flex; flex-direction: column; gap: 24px }
.enroll__title { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(46px, 5.6vw, 92px); line-height: .96; text-wrap: balance }
.enroll__points { display: flex; flex-direction: column; gap: 12px; font-weight: 700; font-size: 17px }
.enroll__points > div { display: flex; gap: 12px; align-items: center }
.enroll__points span { width: 12px; height: 12px; border-radius: 50%; flex: none }
.enroll__side { position: relative }
.burst { position: absolute; inset: 0; pointer-events: none; z-index: 3 }

.form {
  padding: clamp(26px, 3vw, 44px); border-radius: 36px; background: var(--cream); color: var(--ink);
  display: flex; flex-direction: column; gap: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.25);
}
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px }
.field, .form__group { display: flex; flex-direction: column; gap: 8px }
.field, .form__label { font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase }
.field input {
  padding: 15px 18px; border-radius: 16px; border: 2px solid rgba(38,55,65,.2); background: var(--white); color: var(--ink);
  font-size: 17px; font-weight: 600; letter-spacing: 0; text-transform: none; outline: none;
}
.field input:focus { border-color: var(--teal) }
.field__opt { font-weight: 700; letter-spacing: .04em; text-transform: none; color: rgba(38,55,65,.55) }
.ages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px }
.age {
  padding: 12px 0; border-radius: 16px; border: 2px solid var(--ink); background: var(--white); color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 22px; cursor: pointer; transition: background .2s;
}
.age.is-on { background: var(--ink); color: var(--sun) }
.reasons { display: flex; flex-wrap: wrap; gap: 8px }
.reason {
  padding: 9px 14px; border-radius: 999px; border: 1.5px solid rgba(38,55,65,.25); background: var(--white); color: var(--ink);
  font-weight: 700; font-size: 14px; cursor: pointer; transition: background .2s;
}
.reason.is-on { background: var(--teal); border-color: var(--teal) }
/* Honeypot field for spam bots: off-screen, never seen or tabbed to by people. */
.form__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none }
.form__error { font-weight: 800; font-size: 15px; color: var(--error) }
.form__submit {
  margin-top: 4px; padding: 19px; border-radius: 999px; border: 0; background: var(--sun); color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 21px; cursor: pointer; transition: transform .2s, background .2s;
}
.form__submit:hover { transform: translateY(-2px); background: var(--ink); color: var(--sun) }
.form__note { font-size: 13px; font-weight: 600; color: rgba(38,55,65,.75); text-align: center }

.success {
  padding: clamp(30px, 4vw, 56px); border-radius: 36px; background: var(--cream); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.25);
}
.success img { width: 150px; height: auto }
.success__title { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 3.4vw, 48px); line-height: 1.05 }
.success__body { font-size: 18px; line-height: 1.55; max-width: 420px }
.success__reset {
  padding: 13px 22px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 16px; cursor: pointer;
}

/* ---------- Footer ---------- */

.footer { background: var(--ink-deep); color: var(--cream); padding: 56px 7vw 40px }
.footer__top { max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap }
.footer__top img { height: 40px }
.footer__links { display: flex; gap: 26px; font-weight: 700; font-size: 15px; flex-wrap: wrap }
.footer__links a { color: var(--cream) }
.footer__links a:hover { color: var(--sun) }
.footer__links .footer__cta { color: var(--sun) }
.footer__links .footer__cta:hover { color: var(--cream) }
.footer__bottom {
  max-width: 1240px; margin: 32px auto 0; padding-top: 24px; border-top: 1px solid rgba(244,236,217,.14);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: rgba(244,236,217,.75);
}

/* Tablets: the sun shape would sit on the yellow "Early access" label, so tuck it into the corner. */
@media (max-width: 1087px) {
  .enroll__deco--sun { left: -50px; top: -22px; width: 120px; height: 60px }
}

/* Below this width the promise section stacks, so the intro must not stick over the list. */
@media (max-width: 1087px) {
  .promise__wrap { grid-template-columns: 1fr }
  .promise__intro { position: static }
}

/* ==========================================================================
   Phones. Desktop layout above is untouched; everything below only applies
   under 760px, where the two-column scroll scenes stack into one column.
   ========================================================================== */
@media (max-width: 760px) {
  .sticky { height: 100svh }
  .nav__links { display: none }
  .nav { padding-left: 18px }

  /* Shorter scenes: the same story in fewer swipes. */
  .hero { height: 180vh }
  .story { height: 400vh }
  .statement { height: 160vh }
  .milo { height: 280vh }
  .parts { height: 440vh }
  .journey { height: 220vh }

  /* Hero */
  .piece { scale: .58 }
  /* These two sit behind "Scroll to begin" on narrow screens. */
  .hero__stage > .piece:nth-child(10), .hero__stage > .piece:nth-child(12) { display: none }
  .hero__stage { padding: 40px 0 70px }
  .hero__content { gap: 22px; padding: 0 20px }
  .hero__logo { width: 90vw }
    .hero__badge { font-size: 12px; letter-spacing: .14em; padding: 8px 14px }

  /* Story: words on top, picture below */
  .story__stage { display: flex; flex-direction: column; justify-content: center; gap: 34px; padding: 70px 24px 40px }
  .story__text { width: 100%; height: 37svh; flex: none }
  .story__visual { width: 100%; height: 36svh; flex: none }
  .story__h { font-size: clamp(30px, 9vw, 42px) }
  .story__h--sm { font-size: clamp(25px, 7.4vw, 34px) }
  .story__h--md { font-size: clamp(28px, 8.2vw, 38px) }
  .story__sub { font-size: 20px }
  .story .stat__n { font-size: 92px }
  .story .stat__pct { font-size: 44px }
  .story__source { font-size: 11px; letter-spacing: .12em }
  .story__panel { gap: 16px; justify-content: flex-end }
  .story__ticks { bottom: -26px }
  .squares { zoom: .82 }
  .final { zoom: .78 }
  .loop, .branch { width: min(36vw, 22svh) }
  .paths__caption { font-size: 15px }

  /* Statement */
  .statement__stage { padding: 0 24px }
  .statement__text { font-size: clamp(30px, 8.8vw, 42px); gap: .5em }
  .statement__line { gap: 0 .24em }
  .statement__tail { font-size: 19px }

  /* Milo: Milo on top, the lesson below */
  .milo__stage { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 76px 20px 24px }
  .milo__left { gap: 12px; flex: none }
  .milo__title { font-size: 46px; margin-top: 6px }
  .milo__svg { width: min(38vw, 21svh) }
  .milo__right { width: 100%; height: min(50svh, 440px); flex: none }
  .bubble { font-size: 17px; padding: 10px 16px; max-width: 85% }
  .features { gap: 8px }
  .feature { grid-template-columns: 36px 1fr; gap: 12px; padding: 9px 14px; border-radius: 16px }
  .feature__n { width: 36px; height: 36px; font-size: 18px; border-radius: 10px }
  .feature__title { font-size: 16px }
  .feature__body { font-size: 12.5px; line-height: 1.32 }

  /* Four parts: one full-width card at a time, content stacked */
  .parts__intro { width: 100vw; padding: 0 8vw; gap: 20px }
  .parts__title { font-size: 46px }
  .parts__lede { font-size: 17px }
  .part { width: 90vw; padding: 0 2vw }
  .part--last { width: 95vw; padding: 0 7vw 0 2vw; box-sizing: border-box }
  .part__card {
    height: min(calc(100svh - 110px), 720px); margin-top: 16px; border-radius: 28px;
    grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 12px; padding: 18px;
  }
  .part__info { gap: 8px }
  .part__label { font-size: 12px }
  .part__title { font-size: 36px }
  .part__lede { font-size: 17px }
  .part__play { border-radius: 22px; padding: 14px; gap: 10px }
  .part__milo { display: none }
  .try { padding: 14px; gap: 10px }
  .try__q { font-size: 19px }
  .try__fb { font-size: 15px }
  .opt { font-size: 17px; padding: 9px 12px }
  .opt--shape { height: 60px }
  .seq { gap: 8px }
  .seq__shape { width: 30px; height: 30px }
  .seq__blank { width: 34px; height: 34px }
  .focus__q { font-size: 18px }
  .torch { width: min(100%, 30svh); touch-action: pan-y; padding: 10px; gap: 6px }
  .parts__progress { bottom: 18px }



  /* 30-day journey: two rows of five concepts */
  .journey__stage { gap: 16px; padding: 64px 20px 20px }
  .journey .section-title { font-size: 28px }
  .journey__head { gap: 8px }
  .daycount__n { font-size: 60px }
  .daycount { font-size: 18px }
  .concepts { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 8px }
  .concept { gap: 4px }
  .jday { border-radius: 12px }
  .jday__n { left: 6px; top: 3px; font-size: 10px }
  .concept__talk { font-size: 12.5px }

  .stat__n { font-size: 120px }
  .stat__pct { font-size: 56px }

  /* Mission & vision */
  .mission { padding: 72px 20px }
  .mission__title { font-size: 38px }
  .mcard { padding: 26px 22px; border-radius: 26px }
  .mcard--mission { rotate: -1deg }
  .mcard--vision { rotate: 1deg }
  .mcard__title { font-size: 26px }

  /* Four levels: a sideways staircase, one bar per level */
  .levels { height: 240vh }
  .levels__stage { gap: 26px; padding: 76px 20px 30px }
  .stairs { grid-template-columns: 1fr; height: auto; padding: 0; gap: 12px; align-items: stretch }
  .step { height: 78px; width: var(--w) }
  .step__block { border-radius: 14px 22px 22px 14px; transform-origin: 0 50%; transform: scaleX(var(--t,0)) }
  .step__text { height: 100%; flex-direction: column; justify-content: center; gap: 2px; padding: 0 18px; transform: translateX(calc((1 - var(--t,0)) * -16px)) }
  .step__n { font-size: 11px }
  .step__name { font-size: 22px }
  .step__milo { left: auto; right: 12px; top: 50%; bottom: auto; width: 46px; translate: 0 -50%; transform: scale(var(--t,0)) }

  /* Static sections: less dead space top and bottom */
  .parents, .promise { padding: 80px 20px }
  .enroll { padding: 80px 20px 70px }
  /* Keep the shapes clear of the heading: the sun shape matched the yellow label. */
  .enroll__deco--sun { left: -50px; top: -22px; width: 120px; height: 60px }
  .enroll__deco--coral { right: -40px; top: -60px; width: 120px; height: 112px }
  .parents__wrap { gap: 44px }
  .block-title { font-size: 38px }
  .enroll__title { font-size: 46px }
  .report { grid-template-columns: 1fr 1fr; gap: 10px }
  .report__card { padding: 16px; border-radius: 20px; gap: 6px }
  .report__title { font-size: 18px; line-height: 1.2 }
  .checkin { padding: 22px; border-radius: 26px }
  .commit { padding: 16px 18px; gap: 14px; grid-template-columns: 34px 1fr; font-size: 17px }
  .commit__box { width: 34px; height: 34px; border-radius: 10px }
  .form { padding: 22px; border-radius: 28px }
  .footer { padding: 44px 20px 32px }
}

/* Short phones (iPhone SE and similar): trim secondary lines so every scene fits. */
@media (max-width: 760px) and (max-height: 760px) {
  .milo__stage { padding-top: 62px; gap: 14px }
  .milo__title { font-size: 38px }
  .milo__svg { width: min(30vw, 17svh) }
  .journey__stage { padding-top: 52px; gap: 12px }
  .journey .section-title { font-size: 24px }
  .daycount__n { font-size: 44px }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  .commit.is-on .commit__box, .commit.is-on .commit__box::after { animation: none }
}
