/* UniGo+ — First Light
   One backdrop turns from night (the app's dark mode) to day (its light mode)
   as the visitor scrolls. --t runs 0 → 1 and is written by site.js. */

:root {
  --night: #050B18;
  --navy: #071B35;
  --deep: #0A1F44;
  --brand: #1268F3;
  --brand-hi: #3A86FF;
  --sky: #6FA8FF;
  --day: #F5FAFF;
  --border: #D3E0F0;
  --ok: #18A45B;

  --t: 0;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --wrap: min(1240px, 100% - 48px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: #EAF2FF;
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand); color: #fff; }

.wrap { width: var(--wrap); margin-inline: auto; }
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 600; transition: top .2s;
}
.skip:focus { top: 16px; }

/* ---------- Sky ---------- */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--night); }
.sky__layer, .sky__layer img { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky__layer img { object-fit: cover; object-position: 50% 70%; transform: scale(calc(1.12 - var(--t) * .12)); transform-origin: 50% 80%; }
.sky__night { opacity: calc(1 - var(--t)); }
.sky__day { opacity: var(--t); }
.sky__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(5, 11, 24, calc(.62 - var(--t) * .62)) 0%,
      rgba(5, 11, 24, calc(.30 - var(--t) * .30)) 42%,
      rgba(5, 11, 24, calc(.72 - var(--t) * .72)) 100%),
    rgba(245, 250, 255, calc(var(--t) * .78));
}
.grain {
  position: absolute; inset: -50%; opacity: .07; pointer-events: none; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Tones ---------- */
.tone-night { color: #EAF2FF; }
.tone-dusk { color: #F2F7FF; }
.tone-day { color: var(--navy); }
.tone-night .lede, .tone-dusk .lede { color: rgba(234, 242, 255, .74); }
.tone-day .lede { color: rgba(7, 27, 53, .72); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  margin: 0 0 22px; opacity: .72;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.display {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.015em;
  font-size: clamp(44px, 6.2vw, 92px); line-height: .98; margin: 0 0 26px;
}
.display--xl { font-size: clamp(52px, 8.2vw, 132px); line-height: .94; }
.display em, .hero__title em { font-style: italic; color: var(--sky); }
.tone-day .display em { color: var(--brand); }
.lede { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; max-width: 34em; margin: 0 0 28px; }
.fine { font-size: 13px; line-height: 1.55; opacity: .66; max-width: 46em; margin: 18px auto 0; }

/* ---------- Buttons ---------- */
.btn {
  --bg: rgba(255, 255, 255, .1);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 26px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18);
  background: var(--bg); color: inherit; text-decoration: none; font-weight: 550; letter-spacing: -.005em;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background .3s;
  cursor: pointer;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--small { padding: 10px 18px; font-size: 14px; }
.btn--primary {
  color: #fff; border-color: transparent;
  background: linear-gradient(180deg, var(--brand-hi), var(--brand));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 18px 40px -14px rgba(18, 104, 243, .75), 0 0 0 1px rgba(18, 104, 243, .4);
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease-out);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 26px 56px -16px rgba(18, 104, 243, .9), 0 0 0 1px rgba(18, 104, 243, .5); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--large { padding: 20px 34px; font-size: 18px; }
.btn--block { width: 100%; }
.btn__apple { width: 17px; height: 21px; margin-top: -3px; }
.btn:focus-visible, .grade:focus-visible, .field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); color: #fff; transition: color .5s; }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(5, 11, 24, .55), rgba(5, 11, 24, 0));
  transition: opacity .5s;
}
.site-header.is-scrolled::before {
  background: rgba(7, 27, 53, .42); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header.is-day { color: var(--navy); }
.site-header.is-day::before { background: rgba(245, 250, 255, .72); border-bottom-color: rgba(7, 27, 53, .08); }
.site-header.is-day .btn--small { border-color: rgba(7, 27, 53, .16); --bg: rgba(255, 255, 255, .7); }
.site-header__inner { width: var(--wrap); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 32px; height: 32px; }
.brand__word { font-family: var(--serif); font-size: 26px; letter-spacing: -.01em; line-height: 1; }
.brand__plus { color: var(--sky); }
.is-day .brand__plus { color: var(--brand); }
.site-nav { display: flex; gap: 30px; font-size: 14.5px; }
.site-nav a { text-decoration: none; opacity: .78; transition: opacity .2s; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.site-nav a:hover { opacity: 1; }
.site-nav a:hover::after { transform: scaleX(1); }

/* ---------- Devices ---------- */
.phone {
  --w: 300px;
  position: relative; width: var(--w); aspect-ratio: 1320 / 2682;
  padding: calc(var(--w) * .032); border-radius: calc(var(--w) * .165);
  background: linear-gradient(150deg, #3b4252 0%, #10141d 38%, #1b202b 70%, #3a4150 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .12) inset,
    0 70px 120px -50px rgba(0, 0, 0, .75),
    0 40px 80px -40px rgba(18, 104, 243, .45);
  will-change: transform;
}
.phone__screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--w) * .135); background: #000; }
.phone__screen::before {
  content: ""; position: absolute; z-index: 2; left: 50%; top: calc(var(--w) * .03); transform: translateX(-50%);
  width: 32%; height: calc(var(--w) * .085); border-radius: 999px; background: #000;
}
.phone__screen::after { /* glass reflection */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 32%);
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; padding-top: calc(var(--w) * .12); background: inherit; }
.phone__screen img.is-dark { background: #0A1428; }
.phone__screen img.is-light { position: absolute; inset: 0; opacity: 0; background: #F5FAFF; }

.tablet {
  position: relative; width: min(880px, 100%); aspect-ratio: 2064 / 2752;
  padding: 2.1%; border-radius: 5.2%;
  background: linear-gradient(150deg, #3b4252 0%, #10141d 40%, #1b202b 72%, #3a4150 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 90px 160px -60px rgba(3, 10, 30, .75), 0 50px 100px -50px rgba(18, 104, 243, .45);
}
.tablet__screen { width: 100%; height: 100%; overflow: hidden; border-radius: 3.4%; background: #000; }
.tablet__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- Glass ---------- */
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 40px 80px -40px rgba(0, 0, 0, .5);
}
.tone-day .glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .66));
  border-color: rgba(7, 27, 53, .08);
  box-shadow: 0 1px 0 #fff inset, 0 40px 80px -48px rgba(7, 27, 53, .35);
}

/* ---------- Sections ---------- */
.section { position: relative; min-height: min(96vh, 980px); display: flex; align-items: center; padding: 120px 0; }

/* 1 · Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 80px; }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 40px; }
.hero__title {
  font-family: var(--serif); font-weight: 400; margin: 0 0 28px;
  font-size: clamp(56px, 8.4vw, 136px); line-height: .92; letter-spacing: -.02em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .35);
}
.hero__lede { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.55; color: rgba(234, 242, 255, .8); max-width: 30em; margin: 0 0 38px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.hero__note { margin: 0; font-size: 14px; color: rgba(234, 242, 255, .66); }
.hero__devices { position: relative; height: min(78vh, 760px); }
.hero__devices .phone { position: absolute; }
.phone--front { --w: clamp(230px, 22vw, 330px); right: 12%; top: 8%; transform: rotate(4deg); z-index: 2; }
.phone--back { --w: clamp(200px, 19vw, 290px); right: 44%; top: 22%; transform: rotate(-7deg); filter: brightness(.72) saturate(.9); }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .35); }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: #fff; animation: cue 2.2s var(--ease-out) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* 2 · Start */
.start__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.grades { display: flex; flex-wrap: wrap; gap: 10px; }
.grade {
  padding: 12px 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .05);
  transition: background .3s, border-color .3s, transform .4s var(--ease-out), color .3s;
}
.grade:hover { border-color: rgba(255, 255, 255, .45); transform: translateY(-1px); }
.grade[aria-checked="true"] { background: #fff; color: var(--navy); border-color: #fff; }
.plancard { border-radius: 30px; padding: clamp(28px, 3.4vw, 44px); }
.plancard__head { display: flex; gap: 28px; align-items: flex-end; justify-content: space-between; padding-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, .12); margin-bottom: 26px; flex-wrap: wrap; }
.plancard__count { display: flex; flex-direction: column; }
.plancard__num { font-family: var(--serif); font-size: clamp(88px, 9vw, 132px); line-height: .82; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plancard__unit { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-top: 12px; }
.plancard__focus { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; margin: 0; max-width: 13em; color: var(--sky); }
.plancard__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.plancard__steps li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; animation: stepIn .7s var(--ease-out) both; animation-delay: calc(var(--i) * 70ms); }
.plancard__steps li::before { content: counter(list-item, decimal-leading-zero); font-family: var(--mono); font-size: 12px; opacity: .55; padding-top: 4px; }
@keyframes stepIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.plancard__foot { margin: 26px 0 0; font-size: 13.5px; opacity: .6; }

/* 3 · Plan (pinned) */
.plan { position: relative; }
.plan__stage { position: relative; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.plan__line { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.plan__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.plan__steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 18px; max-width: 32em; }
.plan__step { display: grid; grid-template-columns: 118px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .14); opacity: .28; transition: opacity .4s; }
.plan__step p { margin: 0; font-size: 16.5px; line-height: 1.55; }
.plan__grade { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding-top: 4px; color: var(--sky); }
.plan__device { display: flex; justify-content: center; }
.phone--plan { --w: clamp(250px, 24vw, 340px); }

/* 4 · Schools */
.schools__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.schools__devices { position: relative; height: min(80vh, 760px); }
.schools__devices .phone { position: absolute; }
.phone--lean-l { --w: clamp(220px, 20vw, 300px); left: 6%; top: 4%; transform: rotate(-5deg); }
.phone--lean-r { --w: clamp(220px, 20vw, 300px); left: 42%; top: 18%; transform: rotate(5deg); }
.ticks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/14px no-repeat;
}

/* 5 · Parents */
.parents__wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.tablet { transform-origin: 50% 100%; }

/* 6 · Guide */
.guide__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.guide__device { position: relative; display: flex; justify-content: center; min-height: 640px; }
.guide__device .phone { --w: clamp(240px, 22vw, 320px); z-index: 2; }
.guide__still { position: absolute; margin: 0; right: 0; bottom: 4%; width: 48%; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(7, 27, 53, .45); }
.guide__still img { width: 100%; height: 100%; object-fit: cover; }

/* 7 · Pricing */
.pricing { flex-direction: column; }
.pricing__head { text-align: center; }
.pricing__head .eyebrow::before { display: none; }
.pricing__head .lede { margin-inline: auto; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 22px; justify-content: center; margin: 60px 0 40px; }
.price { position: relative; border-radius: 28px; padding: 34px 32px; }
.price--best { border: 1.5px solid var(--brand); box-shadow: 0 1px 0 #fff inset, 0 40px 90px -40px rgba(18, 104, 243, .55); }
.price__badge { position: absolute; top: -13px; right: 26px; margin: 0; padding: 5px 12px; border-radius: 999px; background: var(--brand); color: #fff; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.price__name { margin: 0 0 18px; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.price__amount { margin: 0 0 10px; display: flex; align-items: baseline; gap: 8px; }
.price__num { font-family: var(--serif); font-size: 64px; line-height: 1; letter-spacing: -.02em; }
.price__per { opacity: .6; }
.price__detail { margin: 0; font-size: 15px; opacity: .72; }
.pricing__cta { text-align: center; }
.promises { list-style: none; margin: 90px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 1px solid rgba(7, 27, 53, .12); padding-top: 40px; }
.promises strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; margin-bottom: 10px; }
.promises span { font-size: 15.5px; opacity: .72; }

/* 8 · Screens */
.screens__stage { position: relative; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.screens__head { text-align: center; }
.screens__head .eyebrow::before { display: none; }
.deck { position: relative; height: min(64vh, 640px); margin-top: -24px; }
.deck__card {
  position: absolute; left: 50%; top: 50%; width: min(24vh, 250px); aspect-ratio: 1320 / 2868;
  margin-left: calc(min(24vh, 250px) / -2); margin-top: calc(min(24vh, 250px) * -1.086);
  border-radius: 18px; object-fit: cover;
  box-shadow: 0 30px 60px -30px rgba(7, 27, 53, .55), 0 0 0 1px rgba(7, 27, 53, .06);
  will-change: transform;
}

/* 9 · Contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.contact__mail { font-size: 16px; }
.contact__mail a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.form { border-radius: 30px; padding: clamp(26px, 3.4vw, 42px); display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field span { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .66; }
.field input, .field textarea {
  width: 100%; border-radius: 16px; padding: 15px 16px; resize: vertical;
  border: 1px solid rgba(7, 27, 53, .14); background: rgba(255, 255, 255, .85); color: var(--navy);
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(18, 104, 243, .14); outline: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { margin: 0; min-height: 1.4em; font-size: 15px; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-err { color: #C2372B; }

/* Footer */
.footer { padding: 80px 0 44px; }
.footer__word { font-family: var(--serif); font-size: clamp(90px, 21vw, 330px); line-height: .8; letter-spacing: -.04em; margin: 0 0 40px; color: var(--navy); opacity: .95; }
.footer__word span { color: var(--brand); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; border-top: 1px solid rgba(7, 27, 53, .12); padding-top: 26px; font-size: 14.5px; }
.footer__row p { margin: 0; opacity: .7; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 26px; }
.footer__nav a { text-decoration: none; opacity: .8; }
.footer__nav a:hover { opacity: 1; color: var(--brand); }

/* ---------- Arrival motion (no-JS safe: only hidden once JS marks the page) ---------- */
.js .arrive, .js .arrive-rise { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
.js .arrive-stagger > * { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js .arrive-stagger > *:nth-child(2) { transition-delay: .1s; }
.js .arrive-stagger > *:nth-child(3) { transition-delay: .2s; }
.js .is-in.arrive, .js .is-in.arrive-rise, .js .is-in.arrive-stagger > * { opacity: 1; transform: none; }
.js [data-intro] { opacity: 0; transform: translateY(18px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .hero__grid, .start__grid, .plan__grid, .schools__grid, .parents__wrap, .guide__grid, .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__devices { height: 560px; }
  .phone--front { right: 14%; } .phone--back { right: auto; left: 14%; }
  .schools__devices { order: 2; height: 600px; }
  .guide__device { min-height: 580px; }
  .plans { grid-template-columns: minmax(0, 420px); }
  .promises { grid-template-columns: 1fr; gap: 26px; }
  .plan__device { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --wrap: calc(100% - 36px); --header-h: 64px; }
  .section { padding: 90px 0; min-height: auto; }
  .hero { padding-top: calc(var(--header-h) + 28px); }
  .hero__devices { height: 470px; }
  .phone--front { --w: 210px; right: 6%; top: 4%; }
  .phone--back { --w: 180px; left: 6%; top: 16%; }
  .plan__step { grid-template-columns: 1fr; gap: 6px; }
  .schools__devices { height: 500px; }
  .phone--lean-l, .phone--lean-r { --w: 200px; }
  .phone--lean-r { left: 40%; }
  .guide__still { width: 44%; }
  .deck { height: auto; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px 18px 30px; margin-inline: -18px; }
  .deck__card { position: static; margin: 0; width: 62vw; flex: none; scroll-snap-align: center; }
  .screens__stage { height: auto; padding: 90px 0; }
  .brand__word { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .arrive, .js .arrive-rise, .js .arrive-stagger > *, .js [data-intro] { opacity: 1; transform: none; }
  .plan__step { opacity: 1; }
  .deck { height: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
  .deck__card { position: static; margin: 0; }
}

/* Dusk sections follow the sky: once day has broken their text turns navy,
   so contrast holds at every point of the blend. */
.tone-dusk, .tone-dusk .lede, .tone-dusk .display em { transition: color .7s var(--ease-out); }
.is-day .tone-dusk { color: var(--navy); }
.is-day .tone-dusk .lede { color: rgba(7, 27, 53, .72); }
.is-day .tone-dusk .display em { color: var(--brand); }

/* Below the desktop breakpoint the plan is not pinned, so its stage must grow
   with its content instead of clipping the first years off the top. */
@media (max-width: 1080px) {
  .plan__stage { height: auto; overflow: visible; padding: 110px 0 40px; }
  .plan__line { display: none; }
}
