/* JupiteX v6 · home.css — the main page, block by block, in page order.
   Layout and looks live in @layer parts; everything that moves lives in @layer motion at the end,
   and only switches on under html.motion (see system.css). */

@layer parts{

/* =========================================================
   1 · Hero: night on the left, morning on the right, one planet on the seam
   ========================================================= */
.hero{position:relative}
.stage{
  --seam:50%;                                                     /* where the two sides meet; the handle moves it */
  --sh:clamp(42rem,calc(100svh - 4rem),56rem);                    /* the stage's height: one screen under the nav */
  --pr:min(17vw,16.5rem,calc((var(--sh) - 31.5rem) / 1.25));      /* planet radius: as big as the room under the text allows */
  --gap:clamp(2rem,4.5vw,4.5rem);                                 /* from the seam to each side's text */
  position:relative;isolation:isolate;overflow:hidden;min-height:var(--sh);background:var(--lav-3)}

.stage__night,.stage__day{position:absolute;inset:0}
.stage__night{z-index:0;background:linear-gradient(180deg,#EEF0FF,#E4E7FF 55%,#DCD8FF)}
.stage__day{z-index:1;background:var(--page);clip-path:inset(0 0 0 var(--seam))}

/* night: three soft lights that drift */
.blob{position:absolute;border-radius:50%;pointer-events:none;translate:calc(var(--px,0) * 22px) calc(var(--py,0) * 14px)}
.blob--a{width:40vw;height:40vw;left:-9vw;top:-15vw;background:radial-gradient(closest-side,rgb(110 158 255 / .6),transparent)}
.blob--b{width:30vw;height:30vw;left:21vw;top:20%;background:radial-gradient(closest-side,rgb(170 138 255 / .5),transparent)}
.blob--c{width:36vw;height:36vw;left:-8vw;bottom:-19vw;background:radial-gradient(closest-side,rgb(255 166 226 / .4),transparent)}

/* morning: squared paper and a low sun */
.sheet{position:absolute;inset:0;
  background-image:linear-gradient(rgb(43 99 217 / .075) 1px,transparent 1px),linear-gradient(90deg,rgb(43 99 217 / .075) 1px,transparent 1px);
  background-size:2rem 2rem;background-position:50% 0;
  -webkit-mask-image:linear-gradient(180deg,#000,rgb(0 0 0 / .3) 48%,#000);mask-image:linear-gradient(180deg,#000,rgb(0 0 0 / .3) 48%,#000)}
.sunglow{position:absolute;right:-14vw;top:-24vw;width:58vw;height:58vw;border-radius:50%;pointer-events:none;
  background:radial-gradient(closest-side,rgb(255 170 110 / .42),rgb(255 204 158 / .2) 46%,transparent);
  translate:calc(var(--px,0) * -18px) calc(var(--py,0) * -12px)}

/* the planet: two canvases in the same place, one per side. A quarter of it sits below the stage. */
.planet{position:absolute;left:calc(50% - var(--pr));bottom:calc(var(--pr) * -.75);width:calc(var(--pr) * 2);height:calc(var(--pr) * 2);border-radius:50%;
  translate:calc(var(--px,0) * -7px) calc(var(--py,0) * -4px)}
.planet--photo{box-shadow:0 0 calc(var(--pr) * .45) rgb(123 97 255 / .5),0 0 calc(var(--pr) * 1.3) rgb(123 97 255 / .25)}
.planet-notes{position:absolute;inset:0;pointer-events:none;translate:calc(var(--px,0) * -7px) calc(var(--py,0) * -4px)}
.planet-note{position:absolute;display:flex;align-items:center;gap:.5rem;translate:0 -50%;white-space:nowrap;transition:opacity .45s;
  font-family:var(--font-mono);font-size:.6875rem;font-weight:600;letter-spacing:.09em;text-transform:uppercase;line-height:1.3;color:var(--ink)}
.planet-note::before{content:"";order:-1;width:var(--lead,2rem);height:1px;background:var(--ink);flex:none}
.planet-note::after{content:"";order:-2;width:5px;height:5px;margin:0 -.5rem 0 -2.5px;border-radius:50%;background:var(--ink);flex:none}
.planet-note small{display:block;font-family:var(--font);font-size:.75rem;font-weight:500;letter-spacing:0;text-transform:none;color:var(--ink-3)}
.planet-note--earth{font-family:var(--font);font-size:.875rem;font-weight:500;letter-spacing:0;text-transform:none;color:var(--ink-2)}
.planet-note--earth::before,.planet-note--earth::after{display:none}
.planet-note--earth i{display:block;border-radius:50%;border:1.25px solid var(--ink);flex:none}

.stage__pill{position:absolute;z-index:4;top:1rem;left:var(--seam);translate:-50% 0;display:flex;border-radius:var(--r-pill);overflow:hidden;white-space:nowrap;font-size:.65625rem;
  box-shadow:0 0 0 1px rgb(91 75 230 / .4),0 10px 24px -12px rgb(43 40 110 / .55)}
.stage__pill span{padding:.5rem .8rem}
.stage__pill span:first-child{background:var(--ink);color:#fff}
.stage__pill span:last-child{background:var(--page);color:var(--ink)}

/* the two columns of words */
.stage__in{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:var(--sh);padding-top:clamp(3.25rem,8svh,5.5rem)}
.side{min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.side--night{padding-left:var(--m);padding-right:var(--gap)}
.side--day{padding-left:var(--gap);padding-right:var(--m)}
.when{display:flex;align-items:center;gap:.6rem}
.when svg{width:1rem;height:1rem;flex:none}
.side--night .when,.finale__side--night .when{color:var(--blue)}
.side--day .when,.finale__side--day .when{color:var(--amber)}
.side__h{font-weight:800;font-size:var(--t-hero);line-height:.98;letter-spacing:-.045em;margin-top:.9rem}
.side__h .ln{width:fit-content;padding-bottom:.06em}
.side__sub{font-size:clamp(1rem,.9rem + .4vw,1.1875rem);line-height:1.5;color:var(--ink-2);max-width:30rem;margin-top:.9rem}
.side__cta{margin-top:1.1rem}
.side .note{margin-top:.6rem}

/* "I want to [pass] [UPSC CSE]." Each blank is a real select with the chosen word shown over it. */
.blank{margin-top:1rem;background:var(--page);border-radius:1rem;padding:.55rem 1.1rem .65rem;box-shadow:0 0 0 1px var(--line-2),0 20px 40px -26px rgb(43 40 110 / .5)}
.blank__line{display:flex;flex-wrap:wrap;align-items:baseline;gap:.2rem .5rem;font-weight:700;font-size:clamp(1.25rem,1rem + .7vw,1.5rem);letter-spacing:-.025em;line-height:1.5}
.pick{position:relative;display:inline-flex;align-items:center;gap:.35rem;color:var(--blue);border-bottom:2px dashed rgb(43 99 217 / .45);cursor:pointer;transition:border-color .2s}
.pick:hover{border-bottom-color:var(--blue)}
.pick::after{content:"";width:0;height:0;border-inline:.28em solid transparent;border-top:.34em solid currentColor;opacity:.7}
.pick select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:1rem;font-weight:400;letter-spacing:0}
.pick:focus-within{outline:3px solid var(--violet);outline-offset:3px;border-radius:.3rem}
.pick + .pick + span{margin-left:-.45rem}
html:not(.js) .pick [data-val],html:not(.js) .pick::after{display:none}
html:not(.js) .pick{border:0}
html:not(.js) .pick select{position:static;opacity:1;width:auto;height:auto}

/* the feed teaser: one question at a time, like stories */
.peek{position:absolute;left:var(--m);bottom:clamp(1.25rem,4.5svh,2.75rem);width:min(19.5rem,50vw - var(--pr) - var(--m) - 1.5rem);
  border-radius:1.25rem;padding:.85rem 1rem .9rem;background:rgb(255 255 255 / .84);-webkit-backdrop-filter:blur(14px) saturate(1.5);backdrop-filter:blur(14px) saturate(1.5);
  box-shadow:inset 0 0 0 1px rgb(255 255 255 / .9),0 0 0 1px rgb(43 99 217 / .12),0 30px 60px -30px rgb(43 40 110 / .65);
  translate:calc(var(--px,0) * 9px) calc(var(--py,0) * 6px)}
.peek__bars{display:flex;gap:4px}
.peek__bars i{flex:1;height:3px;border-radius:3px;background:rgb(21 19 43 / .12);overflow:hidden;position:relative}
.peek__bars i::after{content:"";position:absolute;inset:0;background:var(--grad);transform-origin:left center;transform:scaleX(var(--p,0))}
.peek__top{display:flex;align-items:center;gap:.6rem;margin-top:.75rem;font-size:.8125rem}
.peek__ring{width:1.4rem;height:1.4rem;border-radius:50%;flex:none;background:conic-gradient(from 40deg,#2B63D9,#8A5CF0,#FF9A5C,#2B63D9);box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--violet)}
.peek__q{font-weight:700;font-size:1.1875rem;line-height:1.25;letter-spacing:-.02em;margin-top:.6rem;min-height:2.5em}
.peek__acts{display:flex;align-items:center;gap:.5rem;margin-top:.7rem;min-height:2.5rem}
.rxs{display:flex;gap:.45rem}
.peek__next{margin-left:auto;width:2.5rem;height:2.5rem}
.rx{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:.35rem;height:2.5rem;min-width:2.9rem;padding:0 .75rem;border-radius:var(--r-pill);
  border:1.5px solid var(--rx-line);background:var(--rx-bg);color:var(--rx-ink);font-weight:700;font-size:.875rem;font-variant-numeric:tabular-nums;
  transition:transform .18s var(--ease),background-color .2s,color .2s,border-color .2s}
.rx svg{width:1.25rem;height:1.25rem}
.rx b:empty{display:none}
.rx:hover{transform:translateY(-2px)}
.rx:focus-visible{outline-color:var(--rx-ink)}
.rx--spark{--rx-bg:#ECE9FF;--rx-line:#B3A6EE;--rx-ink:#5B3FD9}
.rx--keep{--rx-bg:#DCE3FB;--rx-line:#9DB0EE;--rx-ink:#3C4FC0}
.rx--pass{--rx-bg:#DFF4E9;--rx-line:#8FD0A6;--rx-ink:#1E6B45}
.rx[aria-pressed="true"]{background:var(--rx-ink);color:#fff;border-color:var(--rx-ink)}
.rx::after{content:"";position:absolute;inset:-2px;border-radius:inherit;border:2px solid var(--rx-ink);opacity:0;pointer-events:none}

/* the seam and its handle */
.seam{position:absolute;z-index:3;top:0;bottom:0;left:var(--seam);width:0}
.seam::before{content:"";position:absolute;top:0;bottom:0;left:-1px;width:2px;transform-origin:center top;
  background:linear-gradient(180deg,rgb(91 75 230 / 0),var(--violet) 12%,var(--blue) 50%,var(--sun) 86%,rgb(255 154 92 / .4));box-shadow:0 0 14px rgb(91 75 230 / .45)}
.seam__handle{position:absolute;left:-1.75rem;bottom:calc(var(--pr) * .7 - 1.75rem);width:3.5rem;height:3.5rem;border-radius:50%;display:grid;place-items:center;
  cursor:ew-resize;touch-action:none;color:var(--violet-deep);background:linear-gradient(90deg,#E4E7FF 50%,#fff 50%);
  box-shadow:0 0 0 1.5px rgb(91 75 230 / .8),0 12px 30px -8px rgb(43 40 110 / .5),0 0 30px rgb(91 75 230 / .35);transition:scale .3s var(--spring)}
.seam__handle:hover{scale:1.08}
.seam__handle svg{width:2.1rem;height:2.1rem}
.seam__hint{position:absolute;top:calc(100% + .55rem);left:50%;translate:-50% 0;white-space:nowrap;font-size:.625rem;padding:.25rem .5rem;border-radius:.3rem;background:var(--ink);color:#fff;pointer-events:none;transition:opacity .4s}
.stage.is-touched .seam__hint{opacity:0}

.stage__fig{position:absolute;z-index:3;right:calc(var(--m) + 3.25rem);bottom:1.65rem}
.stage__pause{position:absolute;z-index:4;right:var(--m);bottom:1rem;width:2.5rem;height:2.5rem;background:rgb(255 255 255 / .85)}
html:not(.js) .planet,html:not(.js) .seam__handle,html:not(.js) .stage__fig{display:none}
@media (max-width:74.99rem){.stage__fig{display:none}}

/* small screens: night above, morning below, the planet on the line between them */
@media (max-width:55.99rem){
  .stage{--pr:5.25rem;min-height:0}
  .stage__in{grid-template-columns:minmax(0,1fr);min-height:0;padding-top:0}
  .side{padding-inline:var(--gutter)}
  .side--night{padding-top:4.25rem;padding-bottom:calc(var(--pr) + 2.25rem)}
  .side--day{padding-top:calc(var(--pr) + 2.5rem);padding-bottom:3rem}
  .stage__day{clip-path:inset(var(--seam-y,50%) 0 0 0)}
  .planet{bottom:auto;top:calc(var(--seam-y,50%) - var(--pr))}
  .seam{left:0;right:0;top:var(--seam-y,50%);bottom:auto;width:auto;height:0}
  .seam::before{left:0;right:0;top:-1px;bottom:auto;width:auto;height:2px;transform-origin:left center;background:linear-gradient(90deg,var(--violet),var(--blue) 50%,var(--sun))}
  .seam__handle,.planet-notes,.stage__fig{display:none}
  .stage__pill{left:50%}
  .peek{position:relative;left:auto;bottom:auto;width:min(21rem,100%);margin-top:1.75rem;translate:none}
  .stage__pause{bottom:auto;top:calc(var(--seam-y,50%) + .75rem);right:var(--gutter)}
  .blob--a{width:90vw;height:90vw;left:-30vw;top:-30vw}
  .blob--b{width:70vw;height:70vw;left:45vw;top:12%}
  .blob--c{display:none}
  .sunglow{width:120vw;height:120vw;right:-50vw;top:auto;bottom:-20vw}
  html:not(.js) .stage__day,html:not(.js) .seam{display:none}
  html:not(.js) .side--night{padding-bottom:2.5rem}
  html:not(.js) .side--day{background:var(--page);padding-top:2.5rem}
}

/* the numbers, the store links, the film */
.proof{position:relative;z-index:2;background:#fff;border-block:1px solid var(--line)}
.proof__in{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1.5rem 2.5rem;padding-block:1.5rem}
.stats{display:flex;flex-wrap:wrap;gap:1.1rem clamp(1.5rem,3.4vw,3.25rem)}
.stats div{display:flex;flex-direction:column-reverse}
.stats dd{font-weight:800;font-size:clamp(1.75rem,1.2rem + 1.7vw,2.6rem);line-height:1;letter-spacing:-.045em;font-variant-numeric:tabular-nums}
.stats dd span{display:inline-block;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.stats dt{font-size:var(--t-sm);color:var(--ink-3);margin-top:.35rem}
.proof__get{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1.25rem}
.watch{display:inline-flex;align-items:center;gap:.6rem;font-weight:700;font-size:var(--t-sm);color:var(--ink);border-radius:var(--r-pill)}
.watch svg{width:2.75rem;height:2.75rem;color:var(--violet);border-radius:50%;transition:transform .35s var(--spring),background-color .25s,color .25s}
.watch:hover svg{transform:scale(1.1);background:var(--violet);color:#fff}
.partof{display:flex;flex-wrap:wrap;align-items:center;gap:.8rem clamp(1.5rem,3.6vw,3.25rem);padding-block:1.05rem;border-top:1px solid var(--line)}
.partof img{height:1.9rem;width:auto}
.partof li:nth-child(4) img{height:1.7rem}
.partof li:nth-child(5) img{height:2.1rem}   /* Microsoft for Startups Founders Hub: a two-line badge, set a little taller so its words stay readable */
@media (max-width:39.99rem){.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.partof img{height:1.6rem}.partof li:nth-child(4) img{height:1.45rem}.partof li:nth-child(5) img{height:1.8rem}}

/* =========================================================
   2 · Knowledge media
   ========================================================= */
.km__grid{display:grid;gap:var(--s-7);align-items:center}
.km__say{display:grid;gap:var(--s-5);justify-items:start}
.km__say .ln{width:fit-content}
.km__say .h2{font-size:clamp(2.3rem,1rem + 3.6vw,3.9rem)}
.km__board{position:relative;background:var(--page);border-radius:var(--r-lg);padding:clamp(.9rem,2.2vw,1.75rem);box-shadow:0 0 0 1px var(--line),0 60px 100px -70px rgb(43 40 110 / .7)}
.km__heads,.switch{display:grid;grid-template-columns:minmax(0,1fr) 3.25rem minmax(0,1fr);gap:clamp(.6rem,1.6vw,1.1rem);align-items:center}
.km__heads{padding:.3rem .4rem .9rem}
.km__heads span:first-child{text-align:right}
.switch{padding:1rem .4rem;border-top:1px solid var(--line);font-size:clamp(1rem,.9rem + .55vw,1.3125rem);font-weight:700;letter-spacing:-.02em;line-height:1.25}
.switch__off{position:relative;justify-self:end;text-align:right;font-weight:500;color:var(--ink-3)}
.switch__off::after{content:"";position:absolute;left:-.2em;right:-.2em;top:54%;height:1.5px;background:currentColor;transform-origin:left center}
.switch__on{color:var(--ink)}
.switch__track{display:block;position:relative;width:3.25rem;height:1.9rem;border-radius:var(--r-pill);background:#D9D7E6;overflow:hidden}
.switch__track::before{content:"";position:absolute;inset:0;background:var(--grad)}
.switch__track b{position:absolute;top:.2rem;left:.2rem;width:1.5rem;height:1.5rem;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgb(21 19 43 / .3);transform:translateX(1.35rem)}
@media (max-width:33.99rem){
  .km__heads{display:none}
  .switch{grid-template-columns:minmax(0,1fr) 3.25rem;grid-template-areas:"off track" "on track";row-gap:.15rem}
  .switch:first-child{border-top:0}
  .switch__off{grid-area:off;justify-self:start;text-align:left;font-size:.9375rem}
  .switch__on{grid-area:on}
  .switch__track{grid-area:track}
}
@media (min-width:60rem){.km__grid{grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(2rem,6vw,6rem)}}

/* =========================================================
   3 · The feed
   ========================================================= */
.feed__head{display:grid;gap:var(--s-4);justify-items:center;text-align:center;max-width:58rem;margin-inline:auto}
.feed__head .ln{width:fit-content;margin-inline:auto}
.feed__demo{display:grid;gap:var(--s-7);margin-top:clamp(2.5rem,6vw,5rem);align-items:center}
.phone{justify-self:center;width:min(18rem,72vw);perspective:1400px}
.phone__tilt{position:relative;transform-style:preserve-3d;
  transform:rotateY(calc(var(--t,0) * -10deg)) rotateX(calc(var(--t,0) * 3deg)) translateY(calc(var(--t,0) * -14px))}
.phone__body{border-radius:2.8rem;padding:.55rem;background:#0E0D24;box-shadow:0 0 0 1.5px rgb(21 19 43 / .55),0 0 0 .55rem rgb(255 255 255 / .4),0 60px 80px -44px rgb(43 40 110 / .8)}
.phone__screen{position:relative;border-radius:2.3rem;overflow:hidden;aspect-ratio:540 / 1106;background:#fff}
.phone__screen img,.phone__screen video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.phone__chip{position:absolute;right:-1rem;bottom:13%;display:flex;align-items:center;gap:.65rem;padding:.5rem 1rem .5rem .55rem;border-radius:var(--r-pill);white-space:nowrap;font-size:.8125rem;line-height:1.25;color:var(--ink-2);
  background:rgb(255 255 255 / .92);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 0 0 1px rgb(43 99 217 / .14),0 18px 36px -18px rgb(43 40 110 / .65);transform:translateZ(46px)}
.phone__chip b{display:block;color:var(--ink)}
.avatars{display:flex}
.avatars img{width:1.75rem;height:1.75rem;border-radius:50%;box-shadow:0 0 0 2px #fff;margin-left:-.55rem}
.avatars img:first-child{margin-left:0}
.phone figcaption{display:flex;align-items:center;justify-content:center;gap:.7rem;margin-top:var(--s-5);font-size:var(--t-sm);line-height:1.35;color:var(--ink-3)}

.feed__right{display:grid;gap:var(--s-5);min-width:0}
.card5{background:var(--page);border-radius:var(--r-lg);padding:clamp(1.1rem,2.4vw,2rem);display:grid;gap:var(--s-5);box-shadow:0 0 0 1px var(--line),0 70px 110px -80px rgb(43 40 110 / .75)}
.card5__top{display:grid;gap:var(--s-4);align-items:start}
.card5__q{font-weight:800;font-size:clamp(1.5rem,1.1rem + 1.5vw,2.125rem);line-height:1.1;letter-spacing:-.035em;margin-top:.5rem;text-wrap:balance}
.card5__pic{border-radius:.9rem;overflow:hidden;aspect-ratio:3 / 2}
.card5__pic img{width:100%;height:100%;object-fit:cover}
.minds{position:relative;isolation:isolate;display:flex;flex-wrap:wrap;gap:.4rem}
.minds__pill{position:absolute;z-index:-1;left:0;top:0;width:0;height:0;border-radius:var(--r-pill);background:var(--ink);box-shadow:0 10px 20px -10px rgb(21 19 43 / .7);opacity:0}
.minds.has-pill .minds__pill{opacity:1}
.mind{display:inline-flex;align-items:center;gap:.5rem;min-height:2.75rem;padding:.3rem .95rem .3rem .35rem;border-radius:var(--r-pill);box-shadow:inset 0 0 0 1.5px var(--line);font-size:var(--t-sm);font-weight:600;color:var(--ink-2);transition:color .3s,box-shadow .3s}
.mind img{width:2rem;height:2rem;border-radius:50%}
.mind:hover{box-shadow:inset 0 0 0 1.5px var(--line-2)}
.mind[aria-selected="true"]{color:#fff;box-shadow:none}
.minds:not(.has-pill) .mind[aria-selected="true"]{background:var(--ink)}
.card5__answer{display:grid;gap:.7rem}
.card5__style{display:flex;align-items:center;gap:.6rem;font-size:var(--t-sm);color:var(--ink-3)}
.card5__style b{color:var(--ink)}
.card5__style img{width:2.25rem;height:2.25rem;border-radius:50%}
.card5__a{font-size:clamp(1rem,.95rem + .3vw,1.1875rem);line-height:1.55;min-height:7.8em}
.card5__bar{height:3px;border-radius:3px;background:var(--lav-2);overflow:hidden}
.card5__bar i{display:block;height:100%;width:0;background:var(--grad)}
html:not(.js) .card5__bar{display:none}
.trio{display:grid;gap:.75rem}
.trio li{padding:1rem 1.1rem;border-radius:var(--r-md);background:rgb(255 255 255 / .72);box-shadow:inset 0 0 0 1px var(--line);transition:translate .35s var(--ease),box-shadow .35s}
.trio li:hover{translate:0 -3px;box-shadow:inset 0 0 0 1px rgb(91 75 230 / .35),0 18px 30px -22px rgb(43 40 110 / .6)}
.trio h3{font-size:1rem;font-weight:700;letter-spacing:-.01em;line-height:1.3}
.trio p{font-size:var(--t-sm);color:var(--ink-3);line-height:1.4;margin-top:.2rem}
@media (min-width:36rem){.card5__top{grid-template-columns:minmax(0,1fr) 11rem}}
@media (min-width:40rem){.trio{grid-template-columns:repeat(3,minmax(0,1fr))}.phone__chip{right:-5.5rem}}
@media (min-width:60rem){.feed__demo{grid-template-columns:minmax(0,19rem) minmax(0,1fr);gap:clamp(3rem,7vw,7rem)}}

/* =========================================================
   4 · One library, curated for what you are doing
   Without the script, on small screens, or with reduced motion: three plain steps, each with its screen.
   ========================================================= */
.ways{position:relative;background:var(--page)}
.ways__pin{padding-block:var(--band)}
.ways__grid{display:grid;gap:var(--s-7)}
.ways__text{display:grid;gap:var(--s-5);align-content:center;min-width:0}
.ways__text .h2{font-size:clamp(2.1rem,1rem + 2.7vw,3.4rem);line-height:1.02}
.ways__text .ln{width:fit-content}
.ways__steps{display:grid;gap:var(--s-7);margin-top:var(--s-4)}
.way{position:relative;display:grid;gap:.55rem}
.way__btn{display:grid;gap:.3rem;justify-items:start;text-align:left;cursor:default}
.way__btn .mono{color:var(--tone)}
.way__btn b{font-weight:800;font-size:var(--t-h3);line-height:1.05;letter-spacing:-.035em}
.way__more p{font-size:var(--t-lead);line-height:1.4;color:var(--ink-2)}
.way__more .tag{margin-top:.7rem;color:var(--tone);background:transparent;box-shadow:inset 0 0 0 1px currentColor}
.way__bar{display:none}
.way__img{width:100%;max-width:34rem;margin-top:var(--s-4);justify-self:center;filter:drop-shadow(0 30px 36px rgb(43 40 110 / .25))}
.way:first-child .way__img{max-width:14rem}
.ways__stage{display:none}
@media (min-width:60rem){
  .ways:not(.is-pinned) .ways__steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s-6);align-items:start}
  .ways:not(.is-pinned) .way{grid-template-rows:auto auto 1fr;height:100%}
  .ways:not(.is-pinned) .way__img{align-self:end;max-height:22rem;width:auto;max-width:100%}
}

/* pinned: home.js adds .is-pinned on wide screens when motion is on. The section becomes three screens
   tall, its content sticks, and scrolling walks through the three steps. */
.ways.is-pinned{height:320vh}
.ways.is-pinned .ways__pin{position:sticky;top:0;height:100vh;height:100svh;padding-block:5rem 1.5rem;display:grid;align-items:center;overflow:clip}
.ways.is-pinned .ways__grid{grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(2rem,5vw,5rem);align-items:center}
.ways.is-pinned .ways__steps{gap:0}
.ways.is-pinned .way{gap:0;padding:.9rem 0 .9rem 1.4rem;border-left:2px solid var(--line)}
.ways.is-pinned .way__btn{width:100%;cursor:pointer}
.ways.is-pinned .way__btn b{color:var(--ink-3);transition:color .4s}
.ways.is-pinned .way.is-on .way__btn b,.ways.is-pinned .way__btn:hover b{color:var(--ink)}
.ways.is-pinned .way__more{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .6s var(--ease),opacity .5s}
.ways.is-pinned .way__more > div{overflow:hidden;min-height:0}
.ways.is-pinned .way.is-on .way__more{grid-template-rows:1fr;opacity:1}
.ways.is-pinned .way__more p{padding-top:.45rem}
.ways.is-pinned .way__more .tag{margin-bottom:.15rem}
.ways.is-pinned .way__bar{display:block;position:absolute;left:-2px;top:0;bottom:0;width:2px}
.ways.is-pinned .way__bar b{position:absolute;inset:0;background:var(--tone);transform-origin:center top;transform:scaleY(var(--p,0))}
.ways.is-pinned .way__img{display:none}
.ways.is-pinned .ways__stage{display:block;position:relative;height:min(42rem,76svh)}
.ways__halo{position:absolute;inset:4% 2%;border-radius:50%;color:rgb(43 99 217 / .3);background:radial-gradient(closest-side,currentColor,transparent);transition:color .9s}
.dv{position:absolute;inset:0;margin:auto;width:auto;height:auto;max-width:100%;max-height:100%;opacity:0;transform:translateY(10%) scale(.9) rotate(3deg);
  transition:opacity .55s var(--ease),transform .9s var(--ease);filter:drop-shadow(0 40px 46px rgb(43 40 110 / .3))}
.dv.is-on{opacity:1;transform:none}
.dv.is-past{transform:translateY(-10%) scale(.9) rotate(-3deg)}
/* short windows (most 13-inch laptops): the pinned scene tightens so all three steps stay on screen */
@media (max-height:46rem){
  .ways.is-pinned .ways__pin{padding-block:4.5rem 1rem}
  .ways.is-pinned .ways__text{gap:var(--s-4)}
  .ways.is-pinned .ways__text .h2{font-size:clamp(1.9rem,.8rem + 2.2vw,2.75rem)}
  .ways.is-pinned .ways__steps{margin-top:var(--s-2)}
  .ways.is-pinned .way{padding-block:.6rem}
  .ways.is-pinned .way__btn b{font-size:1.625rem}
  .ways.is-pinned .way__more p{font-size:1.0625rem}
}

/* =========================================================
   5 · Subjects and exams
   ========================================================= */
.study__head{display:grid;gap:var(--s-4);max-width:60rem}
.study__head .ln{width:fit-content}

/* Fig. 2: the 3D figure. Class names are the ones site6/js/figures.js looks for. */
.d3{display:grid;gap:var(--s-5) var(--s-7);align-items:center;margin-top:clamp(2.5rem,5vw,4.5rem);border-radius:var(--r-lg);padding:clamp(.7rem,1.5vw,1.1rem);
  background:var(--page);box-shadow:0 0 0 1px var(--line),0 70px 110px -80px rgb(43 40 110 / .7)}
.d3-stage{position:relative;height:clamp(19rem,34vw,28rem);border-radius:calc(var(--r-lg) - .6rem);overflow:hidden;cursor:grab;touch-action:pan-y;
  background:radial-gradient(80% 90% at 50% 62%,#fff,var(--lav) 72%,var(--lav-2))}
.d3-stage.is-grab{cursor:grabbing}
.d3-stage canvas{position:absolute;inset:0;width:100%;height:100%}
.d3-labels{position:absolute;inset:0;pointer-events:none}
.d3-lb{position:absolute;left:0;top:0;padding:.3rem .65rem;border-radius:var(--r-pill);background:rgb(255 255 255 / .94);box-shadow:0 4px 14px -6px rgb(43 40 110 / .45);font-weight:700;font-size:.75rem;line-height:1.2;color:var(--ink);white-space:nowrap;will-change:transform}
.d3-el{width:1.9rem;height:1.9rem;padding:0;display:grid;place-items:center}
.d3-lp{background:var(--lav-3);color:var(--blue);font-size:.6875rem}
.d3-ang{background:var(--ink);color:#fff;font-size:.875rem;padding:.35rem .75rem}
.d3-fallback{display:none;position:absolute;inset:0;place-items:center;text-align:center;padding:1.5rem;color:var(--ink-3)}
.d3.no-gl .d3-fallback,html:not(.js) .d3-fallback{display:grid}
.d3.no-gl .d3-ctl,html:not(.js) .d3-ctl{display:none}
.d3-ctl{position:absolute;left:50%;bottom:.75rem;translate:-50% 0;display:flex;align-items:center;gap:.6rem;padding:.3rem;border-radius:var(--r-pill);background:rgb(255 255 255 / .94);box-shadow:0 6px 20px -10px rgb(43 40 110 / .5);font-size:.8125rem;font-weight:600;color:var(--ink-3);white-space:nowrap}
.d3-ctl button{display:grid;place-items:center;width:2.75rem;height:2.75rem;border-radius:50%;background:var(--lav-3);color:var(--violet-deep);transition:background-color .2s,color .2s}
.d3-ctl button:hover{background:var(--violet);color:#fff}
.d3-info{display:flex;flex-direction:column;gap:.85rem;min-width:0;padding:.5rem clamp(.6rem,1.5vw,1.25rem) 1rem}
.d3-t{font-weight:800;font-size:var(--t-h3);line-height:1.05;letter-spacing:-.035em}
.d3-p{color:var(--ink-2);min-height:5.2em}
.d3-mol,.d3-subs{display:flex;flex-wrap:wrap;gap:.45rem}
.d3-mol button,.d3-subs button,.exams button{min-height:2.75rem;padding:.4rem 1rem;border-radius:var(--r-pill);background:var(--page);box-shadow:inset 0 0 0 1.5px var(--line-2);font-weight:600;font-size:var(--t-sm);color:var(--ink-2);
  transition:background-color .25s,color .25s,box-shadow .25s,transform .2s var(--ease)}
.d3-mol button:hover,.d3-subs button:hover,.exams button:hover{box-shadow:inset 0 0 0 1.5px var(--ink)}
.d3-mol button:active,.d3-subs button:active,.exams button:active{transform:scale(.96)}
.d3-mol button[aria-pressed="true"],.d3-subs button[aria-pressed="true"],.exams button[aria-pressed="true"]{background:var(--ink);color:#fff;box-shadow:none}
.d3-note{font-size:var(--t-sm);color:var(--ink-3);margin-top:.35rem}
@media (min-width:60rem){.d3{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}}

/* the open book: any subject on the left page, any exam on the right */
.spread{position:relative;display:grid;margin-top:clamp(1.5rem,3vw,2.5rem);background:var(--page);border-radius:var(--r-lg);box-shadow:0 0 0 1px var(--line),0 70px 110px -80px rgb(43 40 110 / .7)}
.page{position:relative;display:grid;gap:var(--s-5);align-content:start;min-width:0;padding:clamp(1.25rem,3vw,2.75rem) clamp(1.1rem,3vw,2.75rem) clamp(3.25rem,5vw,4.25rem);background:var(--page);border-radius:var(--r-lg)}
.page + .page{border-top:1px solid var(--line)}
.page__head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.4rem 1rem;padding-bottom:.9rem;border-bottom:1px solid var(--line)}
.page__no{position:absolute;bottom:1.25rem;left:clamp(1.1rem,3vw,2.75rem)}
.page--r .page__no{left:auto;right:clamp(1.1rem,3vw,2.75rem)}
@media (min-width:60rem){
  .spread{grid-template-columns:repeat(2,minmax(0,1fr))}
  .page + .page{border-top:0}
  .page--l{border-radius:var(--r-lg) 0 0 var(--r-lg)}
  .page--r{border-radius:0 var(--r-lg) var(--r-lg) 0}
  .spread::after{content:"";position:absolute;z-index:2;top:0;bottom:0;left:50%;width:5rem;translate:-50% 0;pointer-events:none;
    background:linear-gradient(90deg,transparent,rgb(21 19 43 / .05) 44%,rgb(21 19 43 / .13) 50%,rgb(21 19 43 / .05) 56%,transparent)}
}

.toc{display:grid}
.toc li{display:grid;grid-template-columns:4rem minmax(0,1fr);column-gap:1rem;align-items:center;padding:.7rem .6rem;border-top:1px solid var(--line);border-radius:.6rem;cursor:pointer;transition:background-color .25s,translate .3s var(--ease)}
.toc li:last-child{border-bottom:1px solid var(--line)}
.toc li:hover,.toc li.on{background:var(--lav)}
.toc li:hover{translate:4px 0}
.toc img{grid-row:1 / span 2;width:4rem;height:2.5rem;object-fit:cover;border-radius:.45rem}
.toc .n{font-weight:700;line-height:1.3;letter-spacing:-.01em;transition:color .25s}
.toc .r{font-size:var(--t-sm);color:var(--ink-3);line-height:1.35}
.toc li.on .n{color:var(--violet-deep)}
.toc__more{margin-top:-.75rem}
.quiz{position:relative;border-radius:var(--r-md);padding:1.1rem 1.2rem 1.2rem;background:var(--lav)}
.quiz__q{font-weight:700;font-size:1.125rem;line-height:1.35;letter-spacing:-.01em;margin:.5rem 0 .9rem}
.quiz__opts{display:flex;flex-wrap:wrap;gap:.5rem}
.quiz__opts button{position:relative;min-height:2.75rem;padding:.5rem 1.05rem;border-radius:var(--r-pill);background:var(--page);box-shadow:inset 0 0 0 1.5px var(--line-2);font-weight:600;font-size:var(--t-sm);
  transition:translate .2s var(--ease),box-shadow .2s,background-color .2s,color .2s}
.quiz__opts button:hover:not([aria-disabled="true"]){translate:0 -2px;box-shadow:inset 0 0 0 1.5px var(--violet)}
.quiz__opts button[aria-disabled="true"]{cursor:default}
.quiz__opts button.is-right{background:var(--mint-wash);color:var(--mint);box-shadow:inset 0 0 0 1.5px var(--mint)}
.quiz__opts button.is-wrong{background:var(--rose-wash);color:var(--rose);box-shadow:inset 0 0 0 1.5px var(--rose)}
.quiz__why{margin-top:.9rem;font-size:var(--t-sm);line-height:1.5;color:var(--ink-2)}
.quiz i.bit{position:absolute;width:.5rem;height:.5rem;border-radius:2px;pointer-events:none}
.extras{font-size:var(--t-sm);color:var(--ink-2)}

.exams{display:flex;flex-wrap:wrap;gap:.45rem}
.facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;border-block:1px solid var(--line);padding-block:1rem}
.facts div{display:flex;flex-direction:column-reverse;gap:.15rem}
.facts dt{font-size:.8125rem;line-height:1.3;color:var(--ink-3)}
.facts dd{font-weight:800;font-size:clamp(1.25rem,1rem + .9vw,1.75rem);line-height:1.1;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.when-is{display:grid;gap:.4rem;justify-items:start}
.when-is label{font-weight:700;font-size:var(--t-sm)}
.when-is input{min-height:3rem;padding:.5rem .9rem;border-radius:.8rem;border:1.5px solid var(--line-2);background:var(--page);font-weight:600;transition:border-color .2s}
.when-is input:hover{border-color:var(--ink)}
.count{display:flex;align-items:baseline;flex-wrap:wrap;gap:.2rem .8rem}
.count b{font-weight:800;font-size:clamp(3.5rem,2rem + 5.5vw,5.75rem);line-height:.92;letter-spacing:-.05em;font-variant-numeric:tabular-nums;
  background:linear-gradient(90deg,var(--amber),#E8590C);-webkit-background-clip:text;background-clip:text;color:transparent}
.count span{font-weight:700;font-size:1.125rem;letter-spacing:-.01em}
.weeks{display:flex;gap:3px;height:1.4rem;margin-top:.9rem}
.weeks i{flex:1 1 0;min-width:1px;border-radius:3px;background:var(--amber);opacity:.22;transform-origin:center bottom}
.weeks i:first-child{opacity:1}
.weeks__ends{display:flex;justify-content:space-between;gap:1rem;margin-top:.45rem}
.today ul{margin-top:.4rem}
.today li{display:flex;align-items:center;gap:.7rem;padding:.55rem 0;border-top:1px solid var(--line);font-weight:500}
.today li::before{content:"";width:1.25rem;height:1.25rem;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--ink-3);flex:none}
.today li.done{color:var(--ink-3)}
.today li.done::before{box-shadow:none;background:var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 72% no-repeat}

/* =========================================================
   6 · What makes it different: four cards, each with a small moving picture
   ========================================================= */
.differ .ln{width:fit-content}
.differ__grid{display:grid;gap:1rem;margin-top:clamp(2rem,5vw,4rem)}
.point{display:flex;flex-direction:column;gap:.5rem;min-height:21rem;padding:clamp(1.25rem,2.4vw,2rem);border-radius:var(--r-lg);overflow:hidden;transition:translate .4s var(--ease),box-shadow .4s}
.point:hover{translate:0 -4px;box-shadow:0 34px 50px -38px rgb(43 40 110 / .6)}
.point--blue{background:var(--lav-3)}
.point--violet{background:var(--lav-2)}
.point--peach{background:var(--peach)}
.point--white{background:var(--page);box-shadow:inset 0 0 0 1px var(--line)}
.point--white:hover{box-shadow:inset 0 0 0 1px var(--line),0 34px 50px -38px rgb(43 40 110 / .6)}
.point h3{font-weight:800;font-size:clamp(1.375rem,1.1rem + 1vw,1.875rem);line-height:1.1;letter-spacing:-.035em;text-wrap:balance}
.point p{color:var(--ink-2);max-width:32rem}
.art{position:relative;flex:1;min-height:9.5rem;margin-bottom:.75rem}
@media (min-width:52rem){
  .differ__grid{grid-template-columns:repeat(12,minmax(0,1fr))}
  .point:nth-child(1),.point:nth-child(4){grid-column:span 7}
  .point:nth-child(2),.point:nth-child(3){grid-column:span 5}
}

/* a: five questions, the one worth asking picked out */
.art--ask{display:flex;align-items:center;gap:clamp(.4rem,1vw,.7rem)}
.art--ask i{display:grid;place-items:center;width:clamp(2.6rem,5vw,3.75rem);aspect-ratio:1;border-radius:1rem;background:#fff;color:var(--blue);font-style:normal;font-weight:800;font-size:clamp(1.25rem,2.2vw,1.75rem);box-shadow:0 14px 24px -16px rgb(43 99 217 / .75)}
.art--ask i:nth-child(1){--n:0}.art--ask i:nth-child(2){--n:1}.art--ask i:nth-child(3){--n:2}.art--ask i:nth-child(4){--n:3}.art--ask i:nth-child(5){--n:4}
.art--ask i:nth-child(4){background:var(--blue);color:#fff;scale:1.14}

/* b: four steps, each a little higher, and a ball that climbs them */
.art--steps i{position:absolute;bottom:0;left:calc(var(--k) * (100% + .6rem) / 4);width:calc((100% - 1.8rem) / 4);height:calc(21% * (var(--k) + 1));border-radius:.8rem .8rem .35rem .35rem;
  background:linear-gradient(180deg,var(--violet-2),var(--violet));opacity:calc(.28 + var(--k) * .24);transform-origin:center bottom}
.art--steps i:nth-child(1){--k:0}.art--steps i:nth-child(2){--k:1}.art--steps i:nth-child(3){--k:2}.art--steps i:nth-child(4){--k:3}
.art--steps b{--x0:calc((100% - 1.8rem) / 8 - .7rem);--dx:calc((100% + .6rem) / 4);position:absolute;left:calc(var(--x0) + var(--dx) * 3);bottom:84%;width:1.4rem;height:1.4rem;border-radius:50%;background:var(--ink);box-shadow:0 6px 10px -4px rgb(21 19 43 / .6)}

/* c: four gates in a row */
.art--gates{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;align-content:center}
.art--gates li{position:relative;display:grid;justify-items:center;gap:.55rem;font-size:.8125rem;font-weight:700;line-height:1.2;text-align:center}
.art--gates li:nth-child(1){--n:0}.art--gates li:nth-child(2){--n:1}.art--gates li:nth-child(3){--n:2}.art--gates li:nth-child(4){--n:3}
.art--gates li::before{content:"";position:relative;z-index:1;width:2.75rem;height:2.75rem;border-radius:50%;box-shadow:0 0 0 1.5px rgb(194 65 12 / .4),0 12px 20px -14px rgb(194 65 12 / .9);
  background:var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 52% no-repeat}
.art--gates li::after{content:"";position:absolute;top:calc(1.375rem - 1px);left:calc(50% + 1.375rem);width:calc(100% - 2.75rem);height:2px;background:linear-gradient(90deg,var(--amber) 50%,rgb(194 65 12 / .22) 50%) 0 0 / 200% 100%}
.art--gates li:last-child::after{display:none}

/* d: one answer, worked out once, reaching every reader */
.art--once{overflow:hidden}
.art--once b{position:absolute;z-index:1;left:7%;top:50%;width:3.5rem;height:3.5rem;margin-top:-1.75rem;border-radius:1.1rem;background:var(--grad);box-shadow:0 14px 26px -12px rgb(91 75 230 / .8);display:grid;place-items:center}
.art--once b::after{content:"1×";color:#fff;font-weight:800;font-size:1.125rem;letter-spacing:-.02em}
.art--once::before,.art--once::after{content:"";position:absolute;left:calc(7% + 1.75rem - 1rem);top:calc(50% - 1rem);width:2rem;height:2rem;border-radius:50%;border:1.5px solid var(--violet);opacity:0}
.art--once i{position:absolute;left:var(--x);top:var(--y);width:1.9rem;height:1.9rem;margin:-.95rem 0 0 -.95rem;border-radius:50%;background:var(--violet);box-shadow:0 0 0 4px rgb(91 75 230 / .16)}
.art--once i:nth-of-type(1){--x:36%;--y:34%;--d:.45s}.art--once i:nth-of-type(2){--x:50%;--y:70%;--d:.8s}.art--once i:nth-of-type(3){--x:63%;--y:30%;--d:1.1s}
.art--once i:nth-of-type(4){--x:77%;--y:64%;--d:1.45s}.art--once i:nth-of-type(5){--x:91%;--y:38%;--d:1.8s}

/* =========================================================
   7 · The one price line on the page
   ========================================================= */
.price{padding-block:clamp(3.5rem,8vw,7rem);background:var(--paper)}
.price__in{display:grid;gap:var(--s-5);justify-items:center;text-align:center}
.price__line{font-weight:800;font-size:clamp(1.75rem,1rem + 3vw,3.4rem);line-height:1.12;letter-spacing:-.04em}
.price__line span{display:block;color:var(--ink-3)}
.price__line b{font-weight:800}
.price__fine{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.75rem 1.25rem;color:var(--ink-3)}

/* =========================================================
   8 · Closing: the two sides again
   ========================================================= */
.finale{padding-top:var(--band);background:var(--page);overflow:clip}
.finale__h{text-align:center;font-size:clamp(2.6rem,1rem + 6.4vw,6rem)}
.finale__h .ln{width:fit-content;margin-inline:auto}
.finale__split{position:relative;display:grid;margin-top:clamp(3rem,7vw,6rem);border-top:1px solid var(--line)}
.finale__side{display:grid;gap:var(--s-4);align-content:center;justify-items:start;padding:clamp(3rem,8vw,6.5rem) var(--gutter)}
.finale__side--night{background:linear-gradient(180deg,#EEF0FF,#DCD8FF)}
.finale__side--day{background-color:var(--page);background-image:linear-gradient(rgb(43 99 217 / .06) 1px,transparent 1px),linear-gradient(90deg,rgb(43 99 217 / .06) 1px,transparent 1px);background-size:2rem 2rem}
.finale__side .h3{font-size:clamp(2rem,1.2rem + 3vw,3.5rem);margin-bottom:.4rem}
.finale__emblem{position:relative;z-index:1;justify-self:center;margin-block:-2.125rem;width:4.25rem;height:4.25rem;border-radius:50%;display:grid;place-items:center;color:var(--violet-deep);
  background:linear-gradient(180deg,#DCD8FF 50%,#fff 50%);box-shadow:0 0 0 1.5px rgb(91 75 230 / .7),0 0 40px rgb(91 75 230 / .35)}
.finale__emblem svg{width:2.5rem;height:2.5rem}
@media (min-width:48rem){
  .finale__split{grid-template-columns:1fr 1fr}
  .finale__side--night{justify-items:end;text-align:right;padding-left:var(--m);padding-right:clamp(3rem,6vw,5.5rem)}
  .finale__side--night .stores{justify-content:flex-end}
  .finale__side--day{padding-left:clamp(3rem,6vw,5.5rem);padding-right:var(--m)}
  .finale__emblem{position:absolute;left:50%;top:50%;translate:-50% -50%;margin:0;background:linear-gradient(90deg,#E4E3FF 50%,#fff 50%)}
}

@media print{.progress,.stage__pause,.seam,.nav__menu{display:none}}

}  /* end @layer parts */


/* =========================================================
   Motion. Every rule here starts with html.motion, so with reduced motion,
   or before the script has run, the page simply rests in its final state.
   ========================================================= */
@layer motion{

@keyframes ln-rise{from{opacity:0;transform:translateY(.55em);clip-path:inset(0 0 100% 0)}to{opacity:1;transform:none;clip-path:inset(-.3em -.5em -.35em -.5em)}}
@keyframes planet-rise{from{opacity:0;transform:translateY(40%) scale(.82)}to{opacity:1;transform:none}}
@keyframes sunrise{from{opacity:0;transform:translateY(26%) scale(.8)}to{opacity:1;transform:none}}
@keyframes breathe{to{transform:scale(1.08)}}
@keyframes seam-draw{from{transform:scale(0)}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes rx-burst{from{opacity:.75;transform:scale(1)}to{opacity:0;transform:scale(1.55)}}
@keyframes rx-pop{0%{transform:scale(.55) rotate(-24deg)}60%{transform:scale(1.3) rotate(8deg)}100%{transform:none}}
@keyframes kenburns{to{transform:scale(1.12) translate(-2%,-2%)}}
@keyframes right-pop{40%{transform:scale(1.14)}}
@keyframes shake{20%,60%{transform:translateX(-5px)}40%,80%{transform:translateX(5px)}}
@keyframes week-in{from{opacity:0;transform:scaleY(.15)}}
@keyframes ping{0%{box-shadow:0 14px 24px -16px rgb(43 99 217 / .75),0 0 0 0 rgb(43 99 217 / .45)}70%,100%{box-shadow:0 14px 24px -16px rgb(43 99 217 / .75),0 0 0 14px rgb(43 99 217 / 0)}}
@keyframes hop{
  0%,6%{left:var(--x0);bottom:21%;opacity:1}
  12%{left:calc(var(--x0) + var(--dx) * .5);bottom:62%}
  18%,26%{left:calc(var(--x0) + var(--dx));bottom:42%}
  32%{left:calc(var(--x0) + var(--dx) * 1.5);bottom:83%}
  38%,46%{left:calc(var(--x0) + var(--dx) * 2);bottom:63%}
  52%{left:calc(var(--x0) + var(--dx) * 2.5);bottom:104%}
  58%,84%{left:calc(var(--x0) + var(--dx) * 3);bottom:84%;opacity:1}
  91%{left:calc(var(--x0) + var(--dx) * 3);bottom:84%;opacity:0}
  92%{left:var(--x0);bottom:21%;opacity:0}
  100%{left:var(--x0);bottom:21%;opacity:1}}
@keyframes gate{0%,6%{background-color:#fff;transform:scale(1)}11%{transform:scale(1.16)}16%,80%{background-color:var(--amber);transform:scale(1)}92%,100%{background-color:#fff}}
@keyframes link{0%,14%{background-position:100% 0}26%,80%{background-position:0 0}92%,100%{background-position:100% 0}}
@keyframes ripple{0%{opacity:.7;transform:scale(1)}100%{opacity:0;transform:scale(15)}}
@keyframes reach{0%,100%{background-color:#C9C4E8;box-shadow:0 0 0 0 rgb(91 75 230 / 0);transform:scale(.9)}12%{background-color:var(--violet);box-shadow:0 0 0 7px rgb(91 75 230 / .2);transform:scale(1.12)}45%{background-color:var(--violet);box-shadow:0 0 0 4px rgb(91 75 230 / .14);transform:scale(1)}80%{background-color:#C9C4E8}}

/* ---------- 1 · the hero arrives: seam, planet, words, cards ---------- */
html.motion [data-enter]{animation:rise .9s var(--ease) both;animation-delay:calc(.25s + var(--i,0) * 75ms)}
html.motion .side__h .ln{animation:ln-rise 1s var(--ease) calc(.25s + var(--i,0) * 75ms + var(--l,0) * 130ms) both}
html.motion .side__h .ln.g{animation:ln-rise 1s var(--ease) calc(.25s + var(--i,0) * 75ms + var(--l,0) * 130ms) both,shimmer 1.9s var(--ease-io) 1.25s both}
html.motion .side__h .hl::before{animation:swipe .9s 1.4s var(--ease) both}
html.motion .planet{animation:planet-rise 1.9s .1s var(--ease) both}
html.motion .planet-notes{animation:rise .9s 1.7s var(--ease) both}
html.motion .stage__fig{animation:rise .9s 1.9s var(--ease) both}
html.motion .seam::before{animation:seam-draw 1.3s .05s var(--ease) both}
html.motion .seam__handle{animation:pop .7s 1.45s var(--spring) both}
html.motion .blob{animation:drift 16s ease-in-out infinite alternate}
html.motion .blob--b{--dx:-8%;--dy:10%;--ds:1.2;animation-duration:21s;animation-delay:-6s}
html.motion .blob--c{--dx:10%;--dy:-8%;--ds:1.1;animation-duration:26s;animation-delay:-11s}
html.motion .sunglow{animation:sunrise 2.8s .3s var(--ease) both,breathe 9s 3.2s ease-in-out infinite alternate}
html.motion .peek__ring{animation:spin 7s linear infinite}
html.motion .stage.is-paused .blob,html.motion .stage.is-paused .sunglow,html.motion .stage.is-paused .peek__ring{animation-play-state:paused}
html.motion .rx.fx::after{animation:rx-burst .6s ease-out}
html.motion .rx.fx svg{animation:rx-pop .65s var(--spring)}

/* ---------- 2 · the four switches start on the social side and flip over, one after another ---------- */
html.motion .km__board .switch__track::before{opacity:0;transition:opacity .45s}
html.motion .km__board .switch__track b{transform:none;transition:transform .65s var(--spring)}
html.motion .km__board .switch__off{color:var(--ink);transition:color .5s}
html.motion .km__board .switch__off::after{transform:scaleX(0);transition:transform .5s var(--ease)}
html.motion .km__board .switch__on{color:var(--ink-3);transition:color .5s}
html.motion .km__board .switch__track::before,html.motion .km__board .switch__track b,html.motion .km__board .switch__off,html.motion .km__board .switch__off::after,html.motion .km__board .switch__on{transition-delay:calc(.75s + var(--i,0) * .34s)}
html.motion .km__board.is-in .switch__track::before{opacity:1}
html.motion .km__board.is-in .switch__track b{transform:translateX(1.35rem)}
html.motion .km__board.is-in .switch__off{color:var(--ink-3)}
html.motion .km__board.is-in .switch__off::after{transform:none}
html.motion .km__board.is-in .switch__on{color:var(--ink)}

/* ---------- 3 · the feed ---------- */
html.motion .phone__chip{animation:bob 5s ease-in-out infinite}
html.motion .card5__pic img{animation:kenburns 14s ease-in-out infinite alternate}
html.motion .minds.has-pill .minds__pill{transition:transform .5s var(--ease),width .5s var(--ease),height .3s var(--ease)}

/* ---------- 5 · the planner ---------- */
html.motion .quiz__opts button.is-right{animation:right-pop .6s var(--spring)}
html.motion .quiz__opts button.is-wrong{animation:shake .45s}
html.motion .weeks i{animation:week-in .5s var(--ease) both;animation-delay:calc(var(--k,0) * 11ms)}
html.motion .today li{animation:rise .5s var(--ease) both;animation-delay:calc(var(--k,0) * 70ms)}

/* ---------- 6 · the four small pictures ---------- */
html.motion .art--ask i{transition:transform 1s var(--spring),background-color .5s,color .5s,scale .6s var(--spring);transition-delay:calc(.35s + var(--n) * 90ms)}
html.motion [data-reveal]:not(.is-in) .art--ask i:nth-child(1){transform:translate(60%,-70%) rotate(-28deg)}
html.motion [data-reveal]:not(.is-in) .art--ask i:nth-child(2){transform:translate(-20%,60%) rotate(18deg)}
html.motion [data-reveal]:not(.is-in) .art--ask i:nth-child(3){transform:translate(30%,-40%) rotate(34deg)}
html.motion [data-reveal]:not(.is-in) .art--ask i:nth-child(4){transform:translate(-50%,70%) rotate(-16deg);background:#fff;color:var(--blue);scale:1}
html.motion [data-reveal]:not(.is-in) .art--ask i:nth-child(5){transform:translate(-90%,-60%) rotate(22deg)}
html.motion .point:not([data-reveal]) .art--ask i:nth-child(4){animation:ping 2.6s ease-out infinite}
html.motion .art--steps i{transition:transform .9s var(--spring);transition-delay:calc(.3s + var(--k) * 110ms)}
html.motion [data-reveal]:not(.is-in) .art--steps i{transform:scaleY(0)}
html.motion .art--steps b{animation:hop 5.2s 1.2s cubic-bezier(.45,0,.55,1) infinite both}
html.motion .art--gates li::before{animation:gate 6.5s infinite both;animation-delay:calc(.6s + var(--n) * .75s)}
html.motion .art--gates li::after{animation:link 6.5s infinite both;animation-delay:calc(.6s + var(--n) * .75s)}
html.motion .art--once::before{animation:ripple 3s linear infinite}
html.motion .art--once::after{animation:ripple 3s 1.5s linear infinite}
html.motion .art--once i{animation:reach 3s infinite both;animation-delay:var(--d)}

/* ---------- 8 · closing ---------- */
html.motion .finale__emblem svg{animation:spin 16s linear infinite}

}  /* end @layer motion */
