/* Homepage motion: A hero phone, E counters, F EASE chat, G 26-week loop, Why IMHAPS, stories wall.
   Everything is visible without JS; JS adds .hm-armed to <html> to enable entrance states. */
:root{--hm-ink:#10222D;--hm-muted:#4A5D6C;--hm-soft:#F3F8F8;--hm-line:#D5DEE4;--hm-teal:#0E7C86;--hm-teal-ink:#0B5F67;--hm-gold:#FFC94D;--hm-coral:#F26B5B;--hm-navy:#10222D;--hm-ease:cubic-bezier(.2,.7,.2,1)}
.hm-in{max-width:1200px;margin:0 auto;padding-left:16px;padding-right:16px}
.hm-sec{padding-top:clamp(40px,7vw,88px);padding-bottom:clamp(40px,7vw,88px)}
.hm-h2{margin:0;font:800 clamp(28px,4.6vw,48px)/1.08 'Montserrat',sans-serif;letter-spacing:-.02em;color:var(--hm-ink);text-wrap:balance}
.hm-lede{margin:12px 0 0;font-size:17px;line-height:1.6;color:#33485A;max-width:60ch}

/* A. hero phone */
.hm-hero-art{position:relative;width:100%;max-width:520px;justify-self:center;display:flex;justify-content:center;perspective:1200px;padding:8px 0 24px}
.hm-phone{position:relative;width:min(290px,70vw);aspect-ratio:9/19;border:11px solid var(--hm-navy);border-radius:46px;background:var(--hm-navy);overflow:hidden;box-shadow:0 40px 80px rgba(16,34,45,.28);transform-origin:50% 10%;will-change:transform}
.hm-phone .hm-scr{border-radius:35px;overflow:hidden;height:100%;position:relative;background:#F3F6F8}
.hm-phone .hm-scr img{width:100%;height:auto;display:block;will-change:transform}
.hm-phone::before{content:"";position:absolute;top:8px;left:50%;width:84px;height:22px;margin-left:-42px;border-radius:12px;background:var(--hm-navy);z-index:2}
.hm-hero-art .float-card{z-index:3;transition:translate .15s linear}
.hm-armed .hm-phone{animation:hm-rise 1.1s var(--hm-ease) .1s both}
@keyframes hm-rise{from{opacity:0;translate:0 60px}}
.hm-armed .hm-w{display:inline-block;opacity:0;transform:translateY(.45em);transition:opacity .8s var(--hm-ease),transform .8s var(--hm-ease)}
.hm-armed.hm-go .hm-w{opacity:1;transform:none}
@media (max-width:860px){.hm-hero-art{max-width:360px;margin:0 auto}.hm-phone{width:min(240px,62vw)}}

/* E. counters */
.hm-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:28px}
.hm-stat{background:var(--hm-soft);border-radius:28px;padding:26px;display:flex;flex-direction:column;gap:6px;position:relative;overflow:hidden;color:var(--hm-ink);text-decoration:none}
.hm-stat .n{font:800 clamp(48px,7vw,76px)/1 'Montserrat',sans-serif;letter-spacing:-.03em;color:var(--hm-teal-ink);font-variant-numeric:tabular-nums}
.hm-stat span:last-child{font-size:17px;font-weight:600}
.hm-stat svg{position:absolute;right:20px;top:20px;width:60px;height:60px}
.hm-stat .ring{fill:none;stroke:var(--hm-teal);stroke-width:6;stroke-linecap:round;stroke-dasharray:176;stroke-dashoffset:0;transform:rotate(-90deg);transform-origin:center}
.hm-armed .hm-stat .ring{stroke-dashoffset:176;transition:stroke-dashoffset 1.6s var(--hm-ease)}
.hm-armed .hm-stat.play .ring{stroke-dashoffset:0}
.hm-stat .bg{fill:none;stroke:var(--hm-line);stroke-width:6}
.hm-stat:nth-child(2) .ring{stroke:var(--hm-coral)}.hm-stat:nth-child(3) .ring{stroke:var(--hm-gold)}
.hm-res-link{display:inline-block;margin-top:18px;font-weight:700;font-size:16px;color:var(--hm-teal-ink);text-decoration:underline}
@media (max-width:760px){.hm-stats{grid-template-columns:1fr;gap:12px}.hm-stat{padding:22px}}

/* F. EASE chat */
.hm-chat{background:var(--hm-navy);border-radius:28px;padding:22px;display:flex;flex-direction:column;gap:12px;min-height:330px;box-shadow:0 24px 50px rgba(16,34,45,.22)}
.hm-chat .hd{display:flex;align-items:center;gap:10px;color:#FFFFFF;font:800 16px 'Montserrat',sans-serif;padding-bottom:10px;border-bottom:1px solid rgba(255,255,255,.12)}
.hm-chat .hd img{width:32px;height:32px;border-radius:50%}
.hm-chat .hd i{margin-left:auto;width:9px;height:9px;border-radius:50%;background:#3FD0D9;box-shadow:0 0 0 4px rgba(63,208,217,.2)}
.hm-msg{max-width:88%;padding:12px 14px;border-radius:18px;font-size:15px;line-height:1.5;transition:opacity .4s var(--hm-ease),transform .4s var(--hm-ease)}
.hm-msg.hide{opacity:0;transform:translateY(10px)}
.hm-msg.me{align-self:flex-end;background:var(--hm-teal);color:#FFFFFF;border-bottom-right-radius:6px}
.hm-msg.ai{align-self:flex-start;background:#1B3445;color:#E6F0F3;border-bottom-left-radius:6px}
.hm-msg.ai b{color:#FFC94D}
.hm-typing{display:inline-flex;gap:4px}
.hm-typing i{width:7px;height:7px;border-radius:50%;background:#9FB6C1;animation:hm-bob 1s ease-in-out infinite}
.hm-typing i:nth-child(2){animation-delay:.15s}.hm-typing i:nth-child(3){animation-delay:.3s}
.hm-src{display:block;margin-top:6px;font-size:12px;color:#9FB6C1}
.hm-chat .hm-try{margin-top:auto;display:block;background:var(--hm-gold);color:#10222D;font-weight:800;padding:14px;border-radius:999px;font-size:16px;text-align:center;text-decoration:none}
.hm-chat .hm-note{font-size:13px;color:#A9BCC6;text-align:center}

/* G. the 26-week loop */
.hm-loopsec{background:var(--hm-navy);color:#FFFFFF;position:relative;overflow:hidden}
.hm-loopsec::before{content:"";position:absolute;width:640px;height:640px;border-radius:50%;right:-160px;top:50%;margin-top:-320px;background:radial-gradient(closest-side,rgba(43,179,189,.22),rgba(43,179,189,0));pointer-events:none}
.hm-loopgrid{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:clamp(28px,5vw,64px);align-items:center}
.hm-loopsec .hm-h2{color:#FFFFFF}
.hm-loopsec .hm-lede{color:#C5D4DC;font-size:18px}
.hm-ticks{list-style:none;margin:22px 0 0;padding:0;display:flex;flex-direction:column;gap:12px}
.hm-ticks li{display:flex;gap:12px;align-items:flex-start;font-size:16px;line-height:1.5;color:#E6EEF2}
.hm-ticks svg{flex:none;width:22px;height:22px;margin-top:1px}
.hm-loopcta{margin-top:26px;display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center}
.hm-loopcta a{background:var(--hm-gold);color:#10222D;font-weight:800;padding:16px 30px;border-radius:999px;font-size:17px;text-decoration:none}
.hm-loopcta span{font-size:15px;color:#C5D4DC}
.hm-loopcta strong{color:#FFFFFF}
.hm-ringwrap{display:flex;flex-direction:column;align-items:center;gap:14px}
.hm-ring{width:100%;max-width:470px;height:auto;overflow:visible}
.hm-ring .seg{fill:none;stroke-width:30;transition:opacity .4s,stroke-width .4s}
.hm-ring .wk{fill:rgba(255,255,255,.28)}
.hm-ring .wk.on{fill:#FFFFFF}
.hm-ring.live .seg{opacity:.45}
.hm-ring.live .seg.on{opacity:1;stroke-width:38}
.hm-armed .hm-ring .seg{stroke-dasharray:var(--len) 2000;stroke-dashoffset:var(--len)}
.hm-armed .hm-ring.drawn .seg{stroke-dashoffset:0;transition:stroke-dashoffset .5s var(--hm-ease) var(--d),opacity .4s,stroke-width .4s}
.hm-ring .runner{opacity:0}
.hm-ring.live .runner{opacity:1}
.hm-ring .c1{font:800 64px 'Montserrat',sans-serif;fill:#FFFFFF}
.hm-ring .c2{font:700 15px 'Figtree',sans-serif;fill:var(--hm-gold)}
.hm-ring .c3{font:600 15px 'Figtree',sans-serif;fill:#C5D4DC}
.hm-ringc{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none;padding:0 26%}
.hm-ringc .big{font:800 clamp(56px,8vw,84px)/.95 'Montserrat',sans-serif;color:#FFFFFF;letter-spacing:-.03em}
.hm-ringc .sm{font-size:14px;font-weight:600;color:#C5D4DC;margin-top:4px}
.hm-ringc .now{margin-top:14px;font-size:13px;font-weight:800;color:var(--hm-gold);min-height:1em}
.hm-ringc .unit{margin-top:4px;font:700 15px/1.3 'Figtree',sans-serif;color:#FFFFFF;transition:opacity .3s}
.hm-ringc .unit.fade{opacity:0}
.hm-ringnote{font-size:14px;color:#A9BCC6;text-align:center;max-width:44ch;margin:0}
.hm-ringnote a{color:#FFFFFF;font-weight:700}
@media (max-width:860px){.hm-loopgrid{grid-template-columns:1fr}.hm-ring{max-width:360px}.hm-loopsec::before{right:-300px;top:auto;bottom:-200px}}

/* Built by psychologists */
.hm-why-head{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(16px,4vw,56px);align-items:end}
.hm-why-head p{margin:0;font-size:17px;line-height:1.65;color:#33485A;max-width:52ch}
.hm-why-grid{margin-top:32px;display:grid;grid-template-columns:minmax(0,1.15fr) repeat(2,minmax(0,1fr));grid-template-rows:auto auto;gap:16px}
.hm-quote{grid-row:span 2;background:var(--hm-teal);color:#FFFFFF;border-radius:28px;padding:clamp(24px,3vw,36px);display:flex;flex-direction:column;justify-content:space-between;gap:24px;position:relative;overflow:hidden;margin:0}
.hm-quote::after{content:"";position:absolute;width:260px;height:260px;border-radius:50%;right:-90px;bottom:-110px;background:rgba(255,255,255,.08)}
.hm-quote svg.qm{width:56px;height:44px}
.hm-quote blockquote{margin:0;font:700 clamp(19px,2.1vw,23px)/1.4 'Montserrat',sans-serif;position:relative;z-index:1}
.hm-quote figcaption{display:flex;gap:12px;align-items:center;font-size:14px;line-height:1.4;color:#D3ECEE;position:relative;z-index:1}
.hm-quote figcaption img{width:44px;height:44px;border-radius:50%;background:#FFFFFF}
.hm-quote figcaption b{display:block;color:#FFFFFF;font-size:15px}
.hm-pt{background:#FFFFFF;border:1px solid #E1E8EC;border-radius:24px;padding:22px;display:flex;flex-direction:column;gap:10px;transition:transform .25s var(--hm-ease),box-shadow .25s}
.hm-pt:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(16,34,45,.10)}
.hm-pt .ico{width:52px;height:52px;border-radius:16px;display:flex;align-items:center;justify-content:center}
.hm-pt .ico svg{width:28px;height:28px;fill:none;stroke:#10222D;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.hm-pt h3{margin:4px 0 0;font:800 18px/1.25 'Montserrat',sans-serif;color:var(--hm-ink)}
.hm-pt p{margin:0;font-size:15px;line-height:1.55;color:#33485A}
.hm-pt .draw{stroke-dasharray:var(--len,120);stroke-dashoffset:0}
.hm-armed .hm-pt .draw{stroke-dashoffset:var(--len,120)}
.hm-armed .hm-pt.play .draw{stroke-dashoffset:0;transition:stroke-dashoffset 1.1s var(--hm-ease) .15s}
@media (max-width:960px){.hm-why-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hm-quote{grid-row:auto;grid-column:1/-1}}
@media (max-width:640px){.hm-why-head{grid-template-columns:1fr}.hm-why-grid{grid-template-columns:1fr;gap:12px}.hm-pt{flex-direction:row;align-items:flex-start;gap:14px;padding:18px}.hm-pt .ico{flex:none;width:46px;height:46px}.hm-pt h3{margin:0 0 4px}}

/* Student stories: moving wall */
.hm-stories{background:#E3F4F5;padding:clamp(40px,6vw,72px) 0}
.hm-stories-head{display:flex;flex-wrap:wrap;gap:10px 24px;align-items:flex-end;justify-content:space-between;margin-bottom:26px}
.hm-stories-head p{margin:8px 0 0;font-size:17px;color:#33485A}
.hm-stories-head a{font-weight:700;color:var(--hm-teal-ink)}
.hm-wall{display:none;flex-direction:column;gap:18px}
.hm-wall.on{display:flex}
.hm-wall.on~.hm-in .tcar{position:absolute !important;width:1px !important;height:1px !important;overflow:hidden !important;clip:rect(0 0 0 0);white-space:nowrap}
.hm-lane{overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)}
.hm-track{display:flex;gap:18px;width:max-content;animation:hm-slide var(--dur,70s) linear infinite}
.hm-track.ltr{animation-direction:reverse}
.hm-lane:hover .hm-track,.hm-lane.paused .hm-track{animation-play-state:paused}
@keyframes hm-slide{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.hm-track figure{width:380px;flex:none;box-sizing:border-box;background:#FFFFFF !important;box-shadow:0 2px 4px rgba(16,34,45,.05),0 10px 24px rgba(16,34,45,.08)}
.hm-stories .hm-foot{margin:18px 0 0;font-size:13px;color:#4A5D6C}
@media (max-width:640px){.hm-track figure{width:300px}.hm-track{gap:12px}.hm-wall{gap:12px}}

@media (prefers-reduced-motion: reduce){
  .hm-armed *,.hm-ic *{animation:none !important;transition:none !important}
  .hm-armed .hm-w{opacity:1;transform:none}
  .hm-armed .hm-stat .ring{stroke-dashoffset:0}
  .hm-track{animation:none !important}
}
.hm-hero-art .pop-1{top:38% !important;left:-4% !important}
.hm-hero-art .pop-2{top:16% !important}
@media (max-width:860px){.hm-hero-art .pop-1{top:30% !important;left:-2% !important}}

/* Meet EASE: the Orbit artifact, as designed */
.eo-sec{padding:clamp(40px,6vw,80px) 16px;background:#F3F8F8}
.eo{max-width:1328px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;align-items:center}
.eo-copy{display:flex;flex-direction:column;gap:16px}
.eo-pill{align-self:flex-start;background:#FFF6DB;color:#7A5300;font-weight:800;font-size:14px;padding:6px 14px;border-radius:999px}
.eo-copy h2{margin:0;font:800 46px/1.1 'Montserrat',sans-serif;color:#10222D}
.eo-copy p{margin:0;font-size:17px;line-height:1.6;color:#33485A}
.eo-chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.eo-chips li{background:#FFFFFF;border-radius:999px;padding:8px 14px;font-weight:700;font-size:14px;color:#10222D}
.eo-try{align-self:flex-start;min-height:52px;display:inline-flex;align-items:center;padding:0 26px;border-radius:999px;background:#FFC94D;color:#10222D;font-weight:800;text-decoration:none}
.eo-try:hover{background:#F5BC2F;color:#10222D}
.eo-note{font-size:14px;color:#4A5D6C}
.eo-stage{position:relative;height:460px;perspective:1200px;display:flex;align-items:center;justify-content:flex-end}
.eo-wave{position:absolute;left:0;bottom:10px;height:270px;width:auto;z-index:2;transform-origin:50% 100%;animation:eo-wave 3.2s ease-in-out infinite}
@keyframes eo-wave{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(4deg) translateY(-8px)}}
.eo-chat{width:460px;max-width:100%;min-height:380px;border-radius:30px;padding:22px;box-sizing:border-box;box-shadow:0 40px 70px rgba(16,34,45,.3);animation:eo-hov 6s ease-in-out infinite}
@keyframes eo-hov{0%,100%{transform:perspective(900px) rotateY(-12deg) rotateX(6deg) translateY(0)}50%{transform:perspective(900px) rotateY(-6deg) rotateX(3deg) translateY(-10px)}}
.eo-chat .hd{padding-bottom:12px}
.eo-chat .hd img{width:36px;height:36px}
.eo-chat .hd i{display:none}
.eo-chat .hm-msg.me{border-radius:18px 18px 6px 18px;max-width:85%}
.eo-chat .hm-msg.ai{border-radius:18px 18px 18px 6px;max-width:88%}
@media (max-width:1100px){.eo{grid-template-columns:1fr}.eo-stage{max-width:660px;width:100%;margin:0 auto}}
@media (max-width:760px){
  .eo{gap:22px}
  .eo-copy h2{font-size:32px}
  .eo-pill{font-size:12.5px;padding:6px 12px}
  .eo-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .eo-chips li{font-size:13.5px;padding:10px 8px;text-align:center;border-radius:14px;display:flex;align-items:center;justify-content:center}
  .eo-try{align-self:stretch;justify-content:center}
  .eo-note{text-align:center}
  .eo-stage{height:auto;flex-direction:column;align-items:stretch;perspective:none}
  .eo-wave{position:relative;left:auto;bottom:auto;height:118px;align-self:flex-start;margin:0 0 -14px 18px}
  .eo-chat{animation:none;min-height:0;width:auto}
}
@media (prefers-reduced-motion:reduce){.eo-wave,.eo-chat{animation:none}}
