/* 2024 palette. Light strength and one-way duration are the two art-direction controls. */
:root{--ambient-strength:.52;--ambient-duration:23s;--sky-top:#398bdc;--sky-mid:#4da5ed;--sky-low:#75c4f6;--sky-haze:#9bccf6;--sky-horizon:#e5eafa;--daylight:1;--nightlight:0;--sky-ink:#16395d}
.sky{background:linear-gradient(180deg,var(--sky-top) 0%,var(--sky-mid) 30%,var(--sky-low) 52%,var(--sky-haze) 78%,var(--sky-horizon) 100%)}
.intro{z-index:1}
.intro .eyebrow,.intro h1,.intro h1 em,.intro .intro-invitation,.intro-copy,.course-facts{color:#fff}
.intro-copy,.course-facts,.intro .eyebrow{color:var(--sky-ink)}
.intro h1{text-shadow:0 2px 14px #2269b330}
.wordmark span{color:var(--sky-ink)}
.course-facts>span{border-color:#366c9c55}
.scenery{display:block;pointer-events:none;overflow:hidden}
.scenery-sky,.scenery-mountains{position:absolute;inset:0;width:100%;height:100%;z-index:-1}
.scenery-sky{mask-image:linear-gradient(#000 85%,transparent);-webkit-mask-image:linear-gradient(#000 85%,transparent)}
.scenery .light-field{opacity:var(--ambient-strength)}
.scenery .motion{transform-box:view-box;transform-origin:50% 50%;animation-duration:var(--ambient-duration);animation-timing-function:ease-in-out;animation-iteration-count:infinite;animation-direction:alternate;animation-play-state:paused}
.scenery.is-visible .motion{animation-play-state:running}
.scenery .sky-flow{animation-name:ambient-sky;animation-delay:-5s}
.scenery .mist-flow{animation-name:ambient-mist;animation-delay:-11s}
.scenery .counter-flow{animation-name:ambient-counter;animation-delay:-16s}
.scenery .water-flow{animation-name:ambient-water;animation-delay:-8s}
.scenery .water-light{opacity:calc(var(--ambient-strength)*.4)}
.scenery .shore-light{opacity:calc(var(--ambient-strength)*.6)}
.mountains{overflow:clip;background:linear-gradient(var(--sky-horizon),#dcecff 68%,#c5dce0);padding-block:108px}
.scenery-mountains{mask-image:linear-gradient(transparent,#000 10%);-webkit-mask-image:linear-gradient(transparent,#000 10%)}
.film-layout{position:relative;z-index:1}
.film-copy{position:relative}
.film-copy::before{content:"";position:absolute;z-index:-1;inset:-40px -30px;background:radial-gradient(ellipse,#edf5fa73,transparent 72%);pointer-events:none}
.video-shell{border:1px solid #ffffffb3;box-shadow:0 18px 55px #3b628d1c}
.waterside{background:#c5dce0}
.waterside>.scenery-water{position:sticky;top:0;width:100%;height:100svh;margin-bottom:-100svh;z-index:-1}
.learning-layout{z-index:1}
.learning-intro{position:relative}
.learning-intro::before{content:"";position:absolute;inset:-36px -24px;z-index:-1;background:radial-gradient(ellipse,#f0f9ffb3,transparent 73%);pointer-events:none}
.is-stacked .support-card{border-color:#ffffffad;box-shadow:inset 0 1px 0 #ffffffa6}
.chapter-card{border-top-color:#ffffffc9;border-right-color:#f0f5ffa6;box-shadow:inset 0 1px 2px #ffffff9c}
.outcomes{background:#eff6fc}
body{background:#eff6fc}
.is-stacked .support-card:nth-child(1){background:#f5faff}
.is-stacked .support-card:nth-child(2){background:#f0f7ff}
.is-stacked .support-card:nth-child(3){background:#f5f4ff}
.is-stacked .support-card:nth-child(4){background:#f0f8f7}
.enroll{isolation:isolate;overflow:hidden;background:linear-gradient(#eff6fc,#d6ebff);border-top:0}
.scenery-closing{position:absolute;inset:0;width:100%;height:100%;z-index:-1}
.enroll> :not(.scenery){position:relative;z-index:1}
.footer-scene,.site-footer{background:#d8eaff}
.ambient-hidden .scenery .motion{animation-play-state:paused}
@keyframes ambient-sky{from{transform:translate(-3%,-1%) scaleX(.94);opacity:.6}to{transform:translate(4%,1.5%) scaleX(1.06);opacity:1}}
@keyframes ambient-mist{from{transform:translate(-4%,1%);opacity:.52}to{transform:translate(4%,-1%);opacity:.9}}
@keyframes ambient-counter{from{transform:translate(4%,1%);opacity:.8}to{transform:translate(-4%,-1%);opacity:.38}}
@keyframes ambient-water{from{transform:translate(-2%,.5%) scaleX(.98);opacity:.5}to{transform:translate(2%,-.5%) scaleX(1.02);opacity:.85}}
@media(max-width:760px){
  .sky{background:linear-gradient(180deg,var(--sky-top),var(--sky-mid) 28%,var(--sky-low) 49%,var(--sky-haze) 80%,var(--sky-horizon))}
  .scenery-sky{width:130%;left:-15%}
  .mountains{padding-block:76px 64px}
  .scenery-mountains{width:160%;left:-30%}
  .film-copy::before{inset:-20px}
  .waterside>.scenery-water{width:150%;margin-left:-25%}
}
@media(prefers-reduced-motion:reduce){.scenery .motion{animation:none!important;transform:none;opacity:.7}}

/* Day wildlife and night stars share the scene visibility/pause controls. */
.scenery .day-birds{opacity:var(--daylight)}
.scenery .night-stars{opacity:var(--nightlight)}
.scenery .cloud-halo{opacity:calc(.75 + var(--nightlight)*.25)}
.scenery .cloud-body{opacity:calc(.4 + var(--daylight)*.6)}
.scenery .cloud-sweep{animation-name:cloud-sweep;animation-delay:-4s}
.scenery .cloud-sweep-reverse{animation-delay:-17s}
@keyframes cloud-sweep{from{transform:translate(-55px,-16px) rotate(-3deg) scaleX(.9);opacity:.55}to{transform:translate(80px,20px) rotate(3deg) scaleX(1.12);opacity:1}}
.scenery .flock-flight{animation-name:flock-retreat;transform-origin:0 0}
.scenery .bird-wings{animation-name:bird-flap;animation-duration:1.8s;animation-delay:var(--bird-delay,0s);transform-box:fill-box;transform-origin:center}
.scenery .star{animation-name:star-breathe;animation-duration:var(--twinkle-duration,7s);animation-delay:var(--star-delay,0s);transform-box:fill-box;transform-origin:center}
@keyframes flock-retreat{0%{transform:translate(0,0) scale(1);opacity:0}8%{opacity:.78}70%{opacity:.5}100%{transform:translate(250px,-190px) scale(.16);opacity:0}}
.scenery .flock-flight{animation-direction:normal}
@keyframes bird-flap{from{transform:scaleY(.35)}to{transform:scaleY(1)}}
@keyframes star-breathe{from{opacity:.22;transform:scale(.8)}to{opacity:.85;transform:scale(1.1)}}
@media(prefers-reduced-motion:reduce){.scenery .day-birds{display:none}.scenery .star{opacity:.55!important}}

/* Keep text opaque; translucency belongs to the glass, not the whole card. */
.chapter-card:not(.is-active){color:#102a43;background:linear-gradient(135deg,#f9fcff85,#f9fcff75)}
.chapter-card:not(.is-active) :is(.card-top,.card-subtitle,.card-brief){color:#16324b}
.chapter-card:not(.is-active) .card-number{color:#4c6b89}

/* Fully hidden wildlife has no animation work. Dawn/dusk keeps both layers. */
[data-sky-phase="day"] .night-stars,[data-sky-phase="night"] .day-birds{display:none}
[data-sky-phase="day"] .night-stars .motion,[data-sky-phase="night"] .day-birds .motion{animation-play-state:paused}
/* Keep the real frosted detail dialog, but stop the scene behind it. */
.chapter-modal-open .scenery.is-visible .motion,.ambient-hidden .scenery.is-visible .motion{animation-play-state:paused}
