/* Cinematic enhancement. The original document remains the simple-view fallback. */
html { scrollbar-color: #e84393 #13091f; }
:focus-visible { outline: 2px solid #bcc8f2; outline-offset: 6px; }
#world { display:none; position:absolute; inset:0; width:100%; height:100%; }
.tour-controls { display:none; }
#chapter-select { display:none; }
.family-satellites { display:none; }
.class-message-preview { display:block; margin:1.2rem; padding:.8rem; border-radius:10px; background:#eee6f1; text-align:center; font-size:.72rem; color:#61416f; }
.stage::before { opacity:.12; }
.stage { z-index:0; pointer-events:none; }
main, footer { position:relative; z-index:1; }
.story-section { min-height:90vh; }
.product-window { opacity:1; transform:none; }
.cinematic #main { height:660svh; }
/* End the document with the tour: a trailing footer would release the sticky
   viewport and push the finished invitation upward. Keep it in Simple view. */
.cinematic > footer { display:none; }
.cinematic .story-viewport { position:sticky; top:0; height:100svh; overflow:clip; perspective:1500px; }
.cinematic #world { display:block; }
/* The tour replaces the readable hero once the 3D is ready: fade it in rather than cut. */
@keyframes cinematic-in { from { opacity:0; } }
.cinematic .story-viewport, .cinematic #world { animation:cinematic-in .6s ease-out both; }
.cinematic .constellation, .cinematic .stage__floor { display:none; }
.cinematic .stage__glow { opacity:.09; }
.cinematic .stage::before { opacity:.06; }
.cinematic .story-section {
  position:absolute; inset:0; width:100%; height:100%; min-height:0;
  padding:112px 5vw 108px 9vw; gap:4vw;
  grid-template-columns:minmax(230px,.77fr) minmax(0,1.4fr);
  opacity:0; visibility:hidden; pointer-events:none;
  will-change:transform,opacity; transform-style:preserve-3d;
}
.cinematic .story-section.is-active { pointer-events:auto; }
.cinematic .story-section--opening { grid-template-columns:1.05fr 1fr; gap:0; }
.cinematic .hero-copy { max-width:720px; }
.cinematic h1 { font-size:clamp(4rem,7.3vw,8.5rem); letter-spacing:-.075em; line-height:.94; }
.cinematic h2 { font-size:clamp(2.8rem,4.6vw,5.5rem); letter-spacing:-.065em; line-height:1.01; }
.cinematic .hero-copy__support { max-width:430px; font-size:clamp(.88rem,1.1vw,1.08rem); margin-top:1.55rem; }
.cinematic .hero-actions { gap:1.2rem; margin-top:1.7rem; flex-wrap:wrap; }
.cinematic .eyebrow, .cinematic .scene-number { font-size:.64rem; letter-spacing:.22em; }
.cinematic .scene-copy > p:not(.scene-number) { font-size:clamp(.88rem,1.08vw,1.1rem); line-height:1.6; margin-top:1.3rem; }
.cinematic .scene-copy::before {
  content:""; position:absolute; z-index:-1; inset:-32px -24px;
  background:#160c24; border-radius:35%; filter:blur(28px); pointer-events:none;
}
.cinematic .proof-list { font-size:.74rem; gap:.6rem; margin-top:1.4rem; }
.cinematic .task-cloud { height:440px; min-height:0; perspective:1000px; transform-style:preserve-3d; }
.cinematic .task-card { width:clamp(215px,21vw,340px); background:linear-gradient(120deg,rgba(79,40,92,.78),rgba(42,24,62,.58)); border:1px solid rgba(247,208,235,.23); padding:1rem; box-shadow:0 25px 60px #09030c66; backdrop-filter:blur(14px); transition:none; }
.cinematic .task-card--one { top:0; left:4%; }
.cinematic .task-card--two { top:29%; right:-2%; }
.cinematic .task-card--three { bottom:22%; left:-7%; }
.cinematic .task-card--four { bottom:-2%; right:0; }
.cinematic .task-card strong { font-size:clamp(.76rem,1vw,1rem); }
.cinematic .product-stage { width:100%; }
.cinematic .product-window { min-height:420px; border-radius:17px; opacity:1; transform:none; transition:none; box-shadow:0 55px 100px #05010a88,0 0 60px #e8439314; }
.cinematic .product-window__bar { height:38px; }
.cinematic .inbox-layout { min-height:382px; }
.cinematic .lead-board { min-height:382px; padding:1.1rem .8rem; gap:.5rem; }
.cinematic .lead-column header { font-size:.58rem; }
.cinematic .lead-card { padding:.8rem; }
.cinematic .lead-card strong { font-size:.78rem; }
.cinematic .lead-card small { font-size:.58rem; }
.cinematic .timetable { min-height:382px; }
.cinematic .class-drawer { top:38px; }
.cinematic .family-layout { min-height:382px; }
.cinematic .family-summary { padding:1.15rem; }
.cinematic .family-avatar { width:48px; height:48px; font-size:1.05rem; margin-bottom:.5rem; }
.cinematic .family-summary h3 { font-size:1rem; }
.cinematic .family-summary p { margin:.65rem 0; }
.cinematic .family-summary > small { margin-top:.8rem; }
.cinematic .family-detail { padding:1.15rem; }
.cinematic .family-satellites { display:block; position:absolute; inset:0; pointer-events:none; z-index:4; }
.family-satellites span { position:absolute; border:1px solid #e9bddd55; background:#2c163de8; border-radius:100px; padding:.6rem 1rem; color:#f7e7f2; font-size:.66rem; box-shadow:0 12px 40px #0004; }
.family-satellites span:nth-child(1) { top:-38px; left:12%; }
.family-satellites span:nth-child(2) { top:-38px; right:10%; }
.family-satellites span:nth-child(3) { top:46%; right:-25px; }
.family-satellites span:nth-child(4) { bottom:-35px; right:14%; }
.family-satellites span:nth-child(5) { bottom:-35px; left:12%; }
.cinematic .story-section--final { display:flex; padding:105px 8vw 115px; }
.cinematic .final-copy { max-width:1000px; }
.cinematic .final-copy h2 { font-size:clamp(3.4rem,6.7vw,7.5rem); }
.cinematic .final-copy > p:not(.eyebrow) { font-size:1rem; margin-top:1.3rem; }
.cinematic .final-dashboard { inset:12% -5% auto 50%; opacity:.04; }
.brand-lockup { width:max-content; margin-inline:auto; }
.cinematic .brand-lockup { margin-top:2rem; }
.cinematic .brand-lockup strong { display:block; font-size:clamp(3.6rem,8vw,6rem); line-height:1.12; }
/* The arriving 3D forms resolve into the same crisp mark as Simple view. */
.cinematic .brand-line { display:flex; width:100%; margin:.85rem auto 0; align-items:center; isolation:isolate; opacity:var(--brand-resolve,0); }
.cinematic .brand-line::before { height:4px; }
.cinematic .brand-line i { width:6.7%; aspect-ratio:1; height:auto; flex-shrink:0; }
.cinematic .scroll-cue { left:9vw; bottom:95px; color:#d3bed4; font-size:.62rem; text-transform:uppercase; letter-spacing:.18em; }
.cinematic .scroll-cue span { width:42px; background:#ed9b67; }
.cinematic .chapter-rail { left:2vw; gap:1.2rem; }
.cinematic .chapter-link { font-size:.6rem; gap:.4rem; }
.cinematic .chapter-link em { display:none; }
.cinematic .chapter-link.is-active { color:#ff77b5; }
.cinematic .tour-controls { display:flex; position:fixed; z-index:35; bottom:0; left:0; width:100%; height:66px; gap:1rem; align-items:center; padding:0 4vw; background:linear-gradient(0deg,#100819f5,#100819a0); border-top:1px solid #ffffff12; backdrop-filter:blur(15px); font-size:.65rem; color:#b9a8c3; }
.tour-count { font-variant-numeric:tabular-nums; letter-spacing:.1em; }
.tour-count b { color:#f9e9f4; font-weight:500; }
.tour-line { width:100px; height:2px; background:#ffffff1a; }
.tour-line i { display:block; height:100%; width:100%; transform-origin:left; transform:scaleX(var(--page-progress,0)); background:linear-gradient(90deg,#e84393,#ed9b67,#bcc8f2); }
#motion-toggle { margin-left:auto; background:transparent; border:1px solid #ffffff26; border-radius:100px; color:#dacbdf; padding:.55rem .85rem; font:inherit; cursor:pointer; }
body:not(.cinematic) .tour-controls { display:flex; position:fixed; bottom:16px; right:16px; z-index:40; }
body:not(.cinematic) .tour-controls > :not(button) { display:none; }
body:not(.cinematic) #motion-toggle { background:#231131; }
body:not(.cinematic) .story-section { scroll-margin-top:50px; }
body:not(.cinematic) .story-section:not(.story-section--opening):not(.story-section--final) { min-height:0; padding-block:5rem; }
/* The page footer is hidden in 3D mode, so the legal line sits in the last scene. */
.cinematic .final-legal { display:block; position:absolute; left:0; right:0; bottom:80px; margin:0; padding:0 6vw; text-align:center; font-size:.62rem; color:#b9a8c3; }
.cinematic .final-legal a { color:#dacbdf; }
/* Lighter on phones, tablets and small machines (script.js puts .lowpower on <html>).
   Frosted glass re-blurs a canvas that redraws every frame, and a blurred blob behind
   moving copy repaints with it: both become flat equivalents that look much the same. */
.lowpower .site-header, .lowpower .tour-controls, .lowpower .task-card, .lowpower .dashboard-card { backdrop-filter:none; }
.lowpower .site-header { background:linear-gradient(to bottom,rgba(13,6,21,.97),rgba(13,6,21,.82)); }
.lowpower .cinematic .tour-controls { background:#100819f7; }
.lowpower .cinematic .task-card { background:linear-gradient(120deg,rgba(79,40,92,.97),rgba(42,24,62,.93)); }
.lowpower .cinematic .scene-copy::before { filter:none; background:radial-gradient(closest-side,#160c24 55%,#160c2400); }
@media (max-width:1100px) and (min-width:761px) {
  .cinematic .story-section { gap:2.5vw; padding-left:7vw; padding-right:4vw; grid-template-columns:.7fr 1.3fr; }
  .cinematic .story-section--opening { grid-template-columns:1.1fr 1fr; }
  .cinematic .task-card { width:235px; }
  .cinematic h1 { font-size:7.4vw; }
  .cinematic h2 { font-size:4.5vw; }
  .cinematic .family-layout { grid-template-columns:34% 66%; }
  .cinematic .family-detail { padding:.75rem; }
  .cinematic .panel-heading { padding:.75rem; }
  .cinematic .panel-heading > span { display:none; }
  .cinematic .hero-actions .text-link { font-size:.75rem; }
}
@media (max-height:740px) and (min-width:761px) {
  .cinematic .story-section { padding-top:94px; padding-bottom:85px; }
  .cinematic h1 { font-size:min(6.8vw,12vh); }
  .cinematic h2 { font-size:min(4.4vw,8vh); }
  .cinematic .hero-copy__support { margin-top:1rem; font-size:.85rem; }
  .cinematic .hero-actions { margin-top:1.2rem; }
  .cinematic .task-cloud { height:350px; }
  .cinematic .scroll-cue { bottom:80px; }
  .cinematic .product-window { min-height:360px; max-height:65vh; }
  .cinematic .inbox-layout, .cinematic .lead-board, .cinematic .timetable, .cinematic .family-layout { min-height:322px; }
  .cinematic .final-copy h2 { font-size:10vh; }
  .cinematic .brand-lockup { margin-top:1rem; }
}
@media (max-width:760px) {
  .cinematic #main { height:620svh; }
  .cinematic .story-section, .cinematic .story-section--opening { display:flex; flex-direction:column; align-items:stretch; justify-content:center; gap:26px; padding:85px 6vw 90px; }
  .cinematic .site-header { min-height:64px; }
  .cinematic .scene-copy { align-self:auto; }
  .cinematic .scene-number, .cinematic .eyebrow { margin-bottom:.7rem; font-size:.55rem; }
  .cinematic h1 { font-size:clamp(2.7rem,11.5vw,4.5rem); line-height:.96; }
  .cinematic h2 { font-size:clamp(2rem,8.3vw,3.4rem); }
  .cinematic .hero-copy__support { margin-top:1rem; font-size:.83rem; max-width:340px; }
  .cinematic .scene-copy > p:not(.scene-number) { font-size:.8rem; margin-top:.7rem; max-width:400px; }
  .cinematic .hero-actions { flex-direction:row; align-items:center; gap:.7rem; margin-top:1rem; }
  .cinematic .hero-actions .button { min-height:43px; font-size:.76rem; padding-inline:1rem; }
  .cinematic .hero-actions .text-link { font-size:.66rem; }
  .cinematic .task-cloud { height:200px; width:100%; flex-shrink:0; }
  .cinematic .task-card { width:195px; padding:.65rem; border-radius:14px; }
  .cinematic .task-card__icon { width:29px; height:29px; border-radius:9px; }
  .cinematic .task-card small { font-size:.53rem; }
  .cinematic .task-card strong { font-size:.65rem; }
  .cinematic .task-card--one { top:0; left:0; }
  .cinematic .task-card--two { top:29%; right:-1%; }
  .cinematic .task-card--three { bottom:10%; left:4%; }
  .cinematic .task-card--four { bottom:-10%; right:0; }
  .cinematic .scroll-cue { display:none; }
  .cinematic .proof-list { display:none; }
  .cinematic .product-window { min-height:270px; max-height:44svh; border-radius:13px; }
  .cinematic .inbox-layout, .cinematic .lead-board, .cinematic .family-layout, .cinematic .timetable { min-height:235px; }
  .cinematic .inbox-layout { grid-template-columns:1fr; }
  .cinematic .inbox-list { display:none; }
  .cinematic .message-pane { padding:1rem; }
  .cinematic .message-bubble { margin-top:1rem; padding:.8rem; font-size:.75rem; }
  .cinematic .suggestion-card { margin-top:1rem; padding:.8rem; }
  .cinematic .lead-board { padding:.7rem; gap:.35rem; grid-template-columns:repeat(3,1fr); }
  .cinematic .lead-column:nth-child(2) { display:none; }
  .cinematic .lead-column header { font-size:.5rem; flex-wrap:wrap; }
  .cinematic .lead-card { padding:.6rem; }
  .cinematic .lead-card strong { font-size:.7rem; }
  .cinematic .lead-card small, .cinematic .lead-card em { font-size:.5rem; }
  .cinematic .class-drawer { left:24%; width:76%; padding:.7rem; border-radius:0; }
  .cinematic .class-drawer__head h3 { font-size:1rem; }
  .cinematic .class-drawer__head p { margin-bottom:.4rem; }
  .cinematic .metric-strip { margin:.6rem 0; }
  .cinematic .student-row { padding:.45rem 0; }
  .cinematic .class-message-preview { display:none; }
  .cinematic .family-layout { grid-template-columns:1fr; }
  .cinematic .family-summary { display:none; }
  .cinematic .family-detail { padding:.8rem; }
  .cinematic .family-tabs { margin-bottom:.8rem; }
  .cinematic .panel-heading { padding:.7rem; }
  .cinematic .panel-heading h3 { font-size:.85rem; }
  .cinematic .detail-list p { font-size:.6rem; padding:.7rem .3rem; }
  .cinematic .family-satellites span { font-size:.49rem; padding:.4rem .6rem; }
  .family-satellites span:nth-child(1),.family-satellites span:nth-child(2) { top:-21px; }
  .family-satellites span:nth-child(4),.family-satellites span:nth-child(5) { bottom:-23px; }
  .cinematic .story-section--final { justify-content:center; }
  .cinematic .final-copy h2 { font-size:11vw; }
  .cinematic .final-copy .hero-actions { justify-content:center; flex-direction:column; }
  .cinematic .brand-lockup { margin-top:2rem; }
  .cinematic .tour-controls { height:57px; padding-inline:5vw; gap:.6rem; font-size:.58rem; }
  .cinematic #tour-label { display:none; }
  .cinematic #chapter-select { display:block; max-width:115px; color:#e9deef; border:0; background:#231331; border-radius:5px; font:inherit; padding:.4rem; }
  .tour-line { width:40px; }
  .cinematic .final-legal { bottom:64px; font-size:.55rem; line-height:1.7; }
}
@media (max-width:760px) and (max-height:690px) {
  .cinematic .story-section { padding-top:75px; padding-bottom:70px; gap:18px; }
  .cinematic h1 { font-size:10vw; }
  .cinematic .task-cloud { height:155px; }
  .cinematic .hero-copy__support { font-size:.75rem; }
  .cinematic .hero-actions .text-link { display:none; }
  .cinematic h2 { font-size:7.5vw; }
}
@media (prefers-reduced-motion:reduce) {
  #world { display:none!important; }
  .product-window { opacity:1!important; transform:none!important; }
}
