/* Hero v1 (2026-11-13): the studio photo fills the whole hero, from the very top (under the floating nav bar) down to the
   blue wave line, and its bottom edge is cut along that wave (like a Photoshop mask): nothing of the photo goes below the line.
   The blue waves are drawn on top of the cut. No white veil, only a soft navy shade where the white sentence sits. */
html.ks-page-home body div#top.cslider.cslider{
  position:relative!important;overflow:hidden!important;margin:0!important;border:0!important;border-radius:0!important;
  display:flex!important;align-items:center;min-height:min(100svh,860px)!important;padding:96px 0 200px!important;box-sizing:border-box;
  background:linear-gradient(180deg,#ffffff 0%,#eef3fd 100%)!important;--ksw:200px}
html[data-theme="dark"].ks-page-home body div#top.cslider.cslider{background:linear-gradient(180deg,#071a4a 0%,#040b20 100%)!important}
html.ks-page-home body div#top.cslider.cslider .cslide.cslide{position:static!important;transform:none!important;filter:none!important;contain:none!important;animation:none!important;will-change:auto!important;opacity:1!important;display:block!important;width:100%;max-width:none!important;padding:0!important;margin:0!important;background:none!important}
/* the photo layer, cut along the wave */
html.ks-page-home body div#top.cslider.cslider .cslide.cslide .cslide-img.cslide-img{
  display:block!important;position:absolute!important;align-self:stretch!important;justify-self:stretch!important;inset:0!important;top:0!important;left:0!important;right:0!important;bottom:0!important;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;
  aspect-ratio:auto!important;margin:0!important;z-index:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;transform:none!important;filter:none!important;
  background:linear-gradient(90deg,rgba(3,10,32,.78) 0%,rgba(3,10,32,.5) 38%,rgba(3,10,32,0) 68%),
    linear-gradient(180deg,rgba(3,10,32,.3) 0%,rgba(3,10,32,0) 24%),
    url("/assets/hero-studio-hd-v1.jpg") 58% 55%/cover no-repeat,#0b1a3a!important;
  -webkit-mask:linear-gradient(#000,#000) top/100% calc(100% - var(--ksw) + 1px) no-repeat,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' preserveAspectRatio='none'%3E%3Cpath d='M-10 0 H420 V170 C 380 150 350 170 260 230 C 170 290 90 200 -10 250 Z' fill='black'/%3E%3C/svg%3E") bottom/100% var(--ksw) no-repeat!important;
          mask:linear-gradient(#000,#000) top/100% calc(100% - var(--ksw) + 1px) no-repeat,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' preserveAspectRatio='none'%3E%3Cpath d='M-10 0 H420 V170 C 380 150 350 170 260 230 C 170 290 90 200 -10 250 Z' fill='black'/%3E%3C/svg%3E") bottom/100% var(--ksw) no-repeat!important;
  animation:ksHeroPhoto 1.2s ease both}
@keyframes ksHeroPhoto{from{opacity:0}to{opacity:1}}
/* the blue waves, drawn over the cut edge */
html.ks-page-home body div#top.cslider.cslider::after{content:""!important;display:block!important;position:absolute!important;left:0;right:0;bottom:0;top:auto!important;height:var(--ksw);
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' preserveAspectRatio='none'%3E%3Cpath d='M-10 250 C 90 200 170 290 260 230 S 380 150 420 170' fill='none' stroke='%230057e0' stroke-width='3'/%3E%3Cpath d='M-10 270 C 110 220 190 300 280 245 S 390 175 420 195' fill='none' stroke='%232f6bff' stroke-width='10' opacity='.16'/%3E%3Cpath d='M180 300 C 250 240 330 230 420 120' fill='none' stroke='%230057e0' stroke-width='2' opacity='.5'/%3E%3C/svg%3E") bottom/100% 100% no-repeat!important;z-index:1;pointer-events:none;opacity:1!important}
html[data-theme="dark"].ks-page-home body div#top.cslider.cslider::after{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' preserveAspectRatio='none'%3E%3Cpath d='M-10 250 C 90 200 170 290 260 230 S 380 150 420 170' fill='none' stroke='%235ea0ff' stroke-width='3'/%3E%3Cpath d='M-10 270 C 110 220 190 300 280 245 S 390 175 420 195' fill='none' stroke='%232f6bff' stroke-width='12' opacity='.22'/%3E%3Cpath d='M180 300 C 250 240 330 230 420 120' fill='none' stroke='%235ea0ff' stroke-width='2' opacity='.7'/%3E%3C/svg%3E") bottom/100% 100% no-repeat!important}
html.ks-page-home body div#top.cslider.cslider .cslide-body.cslide-body{position:relative!important;z-index:2;padding:0 22px!important;width:100%;max-width:1240px;margin:0 auto!important;box-sizing:border-box}
html.ks-page-home body div#top.cslider.cslider .cslide-sub.cslide-sub,html.ks-page-home body div#top.cslider.cslider .cslide-sub.cslide-sub *{
  color:#fff!important;-webkit-text-fill-color:#fff!important}
html.ks-page-home body div#top.cslider.cslider .cslide-sub.cslide-sub{
  font-family:"Sora",Lato,Arial,sans-serif!important;font-weight:700!important;letter-spacing:-.025em!important;
  line-height:1.1!important;text-wrap:balance;max-width:17ch;font-size:clamp(28px,8.4vw,44px)!important;
  text-shadow:0 2px 18px rgba(0,0,20,.55),0 1px 3px rgba(0,0,20,.6)!important}

/* phones and portrait tablets: the SAME landscape photo as desktop, in a shorter hero, cut along the blue wave like desktop,
   the white sentence on the left over the same navy shade (just smaller) */
@media (max-width:900px){
  html.ks-page-home body div#top.cslider.cslider{display:flex!important;align-items:flex-start!important;aspect-ratio:auto!important;height:auto!important;
    min-height:clamp(330px,92vw,420px)!important;padding:96px 0 64px!important;--ksw:64px}
  html.ks-page-home body div#top.cslider.cslider .cslide-body.cslide-body{padding:0 18px!important}
  html.ks-page-home body div#top.cslider.cslider .cslide-sub.cslide-sub{font-size:clamp(20px,5.8vw,28px)!important;max-width:16ch!important;line-height:1.12!important}
  html.ks-page-home body div#top.cslider.cslider .cslide.cslide .cslide-img.cslide-img{
    background:linear-gradient(90deg,rgba(3,10,32,.8) 0%,rgba(3,10,32,.5) 48%,rgba(3,10,32,0) 78%),
      linear-gradient(180deg,rgba(3,10,32,.42) 0%,rgba(3,10,32,0) 30%),
      url("/assets/hero-studio-1100-v1.jpg") 60% 55%/cover no-repeat,#0b1a3a!important}
}
@media (min-width:600px) and (max-width:900px){
  html.ks-page-home body div#top.cslider.cslider{min-height:clamp(400px,60vw,520px)!important}
  html.ks-page-home body div#top.cslider.cslider .cslide-body.cslide-body{max-width:720px;margin:0 auto!important}
}
@media (min-width:901px){
  html.ks-page-home body div#top.cslider.cslider .cslide-body.cslide-body{padding:0 48px!important}
  html.ks-page-home body div#top.cslider.cslider .cslide-sub.cslide-sub{font-size:clamp(42px,4.4vw,72px)!important;max-width:16ch}
}
@media (prefers-reduced-motion:reduce){html.ks-page-home body div#top.cslider.cslider .cslide.cslide .cslide-img.cslide-img{animation:none}}

/* Learn classroom on tablets and desktop (701 px and up): the room fills the whole screen, edge to edge, and never spills out.
   iPad Safari counts 100vh taller than what you see, so use the visible height (dvh) and crop a little like a photo "cover". */
@media (min-width:701px){
  html body #news.section .av-class.av-class-real.is-immersive{overflow:hidden!important;align-items:center!important;justify-content:center!important;padding:0!important;height:100vh;height:100dvh}
  html body #news.section .av-class.av-class-real.is-immersive .av-class-scene{
    width:max(100vw,149.318vh)!important;margin:0!important;flex:0 0 auto!important;max-width:none!important}
  @supports (height:100dvh){
    html body #news.section .av-class.av-class-real.is-immersive .av-class-scene{width:max(100vw,149.318dvh)!important}
  }
}

/* v2: light mode on the home photo — the nav bar stays exactly as it was; only each button gets a thin white layer
   under its water-bubble shine, and its words a soft white halo, so the text reads on the photo */
html:not([data-theme="dark"]).ks-page-home body #topbar#topbar.topbar .nav-timeline a,
html:not([data-theme="dark"]).ks-page-home body #topbar#topbar.topbar .nav-more-toggle,
html:not([data-theme="dark"]).ks-page-home body #topbar#topbar.topbar .nav-contact-btn{
  background-color:rgba(255,255,255,.62)!important;
  text-shadow:0 0 6px rgba(255,255,255,.95),0 1px 0 rgba(255,255,255,.9)!important}

/* v2: social buttons move: a little lift + tilt + glow when the pointer comes, a press when tapped */
html body .ksf-social a,html body .kizin-social-links a{
  transition:transform .28s cubic-bezier(.3,1.5,.5,1),box-shadow .25s,color .2s,border-color .2s!important;will-change:transform}
@media (hover:hover){
  html body .ksf-social a:hover,html body .ksf-social a:focus-visible,html body .kizin-social-links a:hover,html body .kizin-social-links a:focus-visible{
    transform:translateY(-3px) scale(1.12) rotate(-6deg)!important;box-shadow:0 8px 18px -6px rgba(0,87,224,.55),0 0 0 3px rgba(47,134,255,.18)!important}
}
html body .ksf-social a:active,html body .kizin-social-links a:active{transform:scale(.88)!important;transition-duration:.08s!important}
@media (prefers-reduced-motion:reduce){html body .ksf-social a,html body .kizin-social-links a{transition:none!important}}

/* v2: News card on phones — the newspaper stays INSIDE the white card (a little narrower, a little less turned),
   and the mini article starts with its big blue first letter again (the 5–6 line cut no longer uses -webkit-box,
   which hid the drop cap on iPhone) */
@media (max-width:900px){
  html body #news .av-duo .av-pane.av-pane-news .av-card.av-np{
    width:calc(100% - 30px)!important;max-width:calc(100% - 30px)!important;margin:-30px auto -12px!important;
    transform:rotateX(28deg) rotateZ(-2.4deg)!important;transform-origin:50% 100%!important;align-self:center}
  html body #news .av-duo .av-pane.av-pane-news .av-card.av-np::before{inset:7px -4px -7px 8px!important}
  html body #news .av-duo .av-pane.av-pane-news .av-card.av-np::after{inset:4px -2px -4px 6px!important}
  html body #news .av-duo .av-pane.av-pane-news .av-card.av-np .np-deck{
    display:block!important;-webkit-line-clamp:unset!important;-webkit-box-orient:initial!important;
    overflow:hidden!important;max-height:calc(1.38em * 6)!important}
  html body #news .av-duo .av-pane.av-pane-news .av-card.av-np .np-nophoto .np-deck{max-height:calc(1.38em * 11)!important}
  html body #news .av-duo .av-pane.av-pane-news .av-card.av-np .np-deck::first-letter{
    float:left!important;font-family:"Old Standard TT",Georgia,serif!important;font-weight:700!important;
    font-size:3.1em!important;line-height:.8!important;padding:5px 8px 0 0!important;color:#0057e0!important}
}

/* v3: language buttons (English / Français / Kreyòl) = the SAME water bubble as the nav bar buttons, same text,
   light and dark, desktop and phone; the chosen language is the deeper blue bubble */
html body #topbar#topbar .lang-panel.lang-panel button,html body .lang-panel.lang-panel button{
  display:flex!important;align-items:center!important;gap:8px!important;width:100%!important;min-height:42px!important;
  margin:0 0 7px!important;padding:0 16px!important;border-radius:999px!important;
  font:800 14px/1 Lato,Arial,sans-serif!important;letter-spacing:0!important;cursor:pointer;
  background:radial-gradient(120% 85% at 26% 6%,rgba(255,255,255,.80) 0%,rgba(255,255,255,.20) 36%,rgba(255,255,255,0) 60%),radial-gradient(90% 120% at 88% 108%,rgba(0,130,255,.55) 0%,rgba(0,130,255,0) 68%),linear-gradient(180deg,rgba(120,180,255,.34),rgba(0,105,255,.26))!important;
  background-color:rgba(255,255,255,.55)!important;
  border:1px solid rgba(150,205,255,.95)!important;
  box-shadow:inset 0 2px 3px rgba(255,255,255,.95),inset 0 -4px 8px rgba(0,100,255,.35),inset 3px 0 5px rgba(255,255,255,.35),0 0 12px rgba(0,120,255,.42),0 4px 10px rgba(10,50,140,.20)!important;
  color:#06255e!important;text-shadow:0 1px 0 rgba(255,255,255,.55)!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  transition:transform .25s cubic-bezier(.3,1.4,.5,1),box-shadow .25s!important}
html body #topbar#topbar .lang-panel.lang-panel button:last-child,html body .lang-panel.lang-panel button:last-child{margin-bottom:0!important}
html[data-theme="dark"] body #topbar#topbar .lang-panel.lang-panel button,html[data-theme="dark"] body .lang-panel.lang-panel button{
  background:radial-gradient(120% 85% at 26% 6%,rgba(255,255,255,.50) 0%,rgba(255,255,255,.10) 36%,rgba(255,255,255,0) 60%),radial-gradient(90% 120% at 88% 108%,rgba(0,140,255,.65) 0%,rgba(0,140,255,0) 68%),linear-gradient(180deg,rgba(40,100,230,.55),rgba(0,50,160,.55))!important;
  background-color:transparent!important;
  border:1px solid rgba(150,205,255,.70)!important;
  box-shadow:inset 0 2px 3px rgba(255,255,255,.65),inset 0 -4px 8px rgba(0,120,255,.40),inset 3px 0 5px rgba(255,255,255,.20),0 0 14px rgba(0,130,255,.50),0 4px 12px rgba(0,0,0,.40)!important;
  color:#fff!important;text-shadow:0 1px 3px rgba(0,0,40,.85),0 0 6px rgba(0,0,40,.6)!important}
html body #topbar#topbar .lang-panel.lang-panel button.active,html body .lang-panel.lang-panel button.active,
html[data-theme="dark"] body #topbar#topbar .lang-panel.lang-panel button.active,html[data-theme="dark"] body .lang-panel.lang-panel button.active{
  background:radial-gradient(120% 85% at 26% 6%,rgba(255,255,255,.55) 0%,rgba(255,255,255,0) 55%),linear-gradient(180deg,#2f86ff,#0a4fd0)!important;
  border-color:#fff!important;color:#fff!important;text-shadow:0 1px 2px rgba(0,0,40,.7)!important}
@media (hover:hover){html body .lang-panel.lang-panel button:hover{transform:translateY(-1px) scale(1.03)!important}}
html body .lang-panel.lang-panel button:active{transform:scale(.95)!important}

/* v6: hero sentence = the original decode effect, once per load (index.html scrambleText). Letters still being decoded are
   a little dimmer and blue, settled letters are white. No looping glow. */
html.ks-page-home body div#top.cslider.cslider .cslide-sub.cslide-sub .ks-dc{opacity:.55}
html.ks-page-home body div#top.cslider.cslider .cslide-sub.cslide-sub .ks-dc.ok{opacity:1}

/* v6 audit: the blue wave dividers stayed 16 px wider than the screen on each side (could let iPhones pan sideways) */
.ks-rdwave{margin-left:0!important;margin-right:0!important}
/* v6 audit: Safari (iPhone, iPad, Mac) still needs the -webkit- names for these */
.bap-wave,.ks-base{-webkit-user-select:none!important;user-select:none}
.svc143-stream-grid{-webkit-mask-image:linear-gradient(to bottom,transparent,#000 18%,#000 82%,transparent)}

/* v8: opening of the hero, once per load, after the logo intro (html.ks-hero-go is added by index.html):
   1. the photo fades in with a slow zoom-out, 2. every letter falls into place with a small bounce, one after the other */
html.ks-hero-go.ks-page-home body div#top.cslider.cslider .cslide.cslide .cslide-img.cslide-img{animation:ksHeroPhotoIn 1.3s cubic-bezier(.2,.7,.2,1) both!important}
@keyframes ksHeroPhotoIn{from{opacity:0;scale:1.08}to{opacity:1;scale:1}}
html.ks-page-home body div#top.cslider.cslider .cslide-sub.cslide-sub .ks-fw{display:inline-block;white-space:nowrap}
html.ks-page-home body div#top.cslider.cslider .cslide-sub.cslide-sub .ks-fc{display:inline-block;opacity:0;transform:translateY(-.8em) rotate(-8deg);
  animation:ksFall .55s cubic-bezier(.3,1.5,.5,1) both}
@keyframes ksFall{from{opacity:0;transform:translateY(-.8em) rotate(-8deg)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){
  html.ks-page-home body div#top.cslider.cslider .cslide-sub.cslide-sub .ks-fc{animation:none!important;opacity:1;transform:none}
  html.ks-hero-go.ks-page-home body div#top.cslider.cslider .cslide.cslide .cslide-img.cslide-img{animation:none!important;opacity:1}
}
/* v9: the falling letters use the SAME font as the final sentence (a site-wide rule forced Lato on every span) */
html.ks-page-home body div#top.cslider.cslider .cslide-sub.cslide-sub .ks-fw,
html.ks-page-home body div#top.cslider.cslider .cslide-sub.cslide-sub .ks-fc{
  font-family:"Sora",Lato,Arial,sans-serif!important;font-weight:700!important;letter-spacing:-.025em!important}

/* v10: newspaper — the mini article no longer sticks to the photo above it */
html body #news .av-card.av-np .np-body .np-fig{margin-bottom:14px!important}
html body #news .av-card.av-np .np-body .np-text{padding-top:4px!important}
@media (min-width:901px){html body #news .av-card.av-np .np-body .np-fig{margin-bottom:20px!important}}
/* v10: rating stars — let the feeling bubble show above the stars */
html body section.rating-wrap .rating-card,html body section.rating-wrap .stars{overflow:visible!important}

/* v10: weak devices (html.ks-lowend, set in the page head: <=4 GB memory, <=4 CPU cores, data saver, reduced transparency).
   Same look, lighter work: no live blur behind glass (panels become solid instead), no decorative looping layers. */
html.ks-lowend *,html.ks-lowend *::before,html.ks-lowend *::after{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html.ks-lowend:not([data-theme="dark"]) body .lang-panel,html.ks-lowend:not([data-theme="dark"]) body .nav-more-panel,
html.ks-lowend:not([data-theme="dark"]) body .mobile-menu,html.ks-lowend:not([data-theme="dark"]) body #mobileMenu{background:rgba(244,248,255,.97)!important}
html.ks-lowend[data-theme="dark"] body .lang-panel,html.ks-lowend[data-theme="dark"] body .nav-more-panel,
html.ks-lowend[data-theme="dark"] body .mobile-menu,html.ks-lowend[data-theme="dark"] body #mobileMenu{background:rgba(8,16,40,.97)!important}
html.ks-lowend #ambientIcons,html.ks-lowend .sound-dots-container,html.ks-lowend .ks-site-pointer-dot{display:none!important}
html.ks-lowend body .ks-rdwave .w1{filter:none!important}

/* v11: Learn classroom on iPhone / iPad Safari was cut at the height of the (short) Learn page, because Safari keeps the
   full-screen room inside a body with overflow:hidden. While the room is open, html and body take the whole screen
   (every browser and device), so nothing can be cut. */
html.ks-class-immersive,html.ks-class-immersive body{height:100%!important;min-height:100vh!important;max-height:none!important}
@supports (height:100dvh){html.ks-class-immersive,html.ks-class-immersive body{min-height:100dvh!important}}
html.ks-class-immersive body #news .av-class.is-immersive{top:0!important;left:0!important;right:0!important;bottom:0!important;height:100vh;height:100dvh}
