/* Soft gradients and full-width wave transitions between sections. */
.curriculum-subjects { display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:0 0 22px; }
.curriculum-subjects li { padding:7px 12px;border:1px solid #cbd4bf;border-radius:12px;background:var(--cream);color:var(--green);font-weight:700;font-size:14px; }
.program-card .curriculum-systems { padding:14px 16px;border-inline-start:3px solid var(--gold);border-radius:8px;background:#ffffff80; }
.video-showcase { min-width:0; }
.video-showcase + .video-showcase { margin-top:64px;padding-top:44px;border-top:1px solid #b7bdab; }
.video-showcase-heading { display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px; }
.video-showcase-heading h3 { font-size:clamp(25px,3vw,34px);color:var(--green);margin:0 0 10px; }
.video-showcase-heading p { color:var(--muted);font-size:17px;line-height:1.9;margin:0; }
.video-showcase-label { display:block;color:var(--gold);font-size:12px;font-weight:700;letter-spacing:2px;margin-bottom:10px; }
.video-slider-controls { display:flex;align-items:center;justify-content:center;gap:14px;margin:16px auto 0; }
.video-slider-controls button { width:46px;height:46px;display:grid;place-items:center;border:1px solid #b6c0a9;border-radius:50%;background:var(--cream);color:var(--green);transition:background .2s,color .2s; }
.video-slider-controls button:hover:not(:disabled) { background:var(--green);color:var(--cream); }
.video-slider-controls button:disabled { opacity:.35;cursor:default; }
.video-slider-count { min-width:45px;text-align:center;font-size:14px;color:var(--sage);font-variant-numeric:tabular-nums; }
.video-section .video-slider { display:flex;gap:24px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:6px;padding:12px 6px 24px;scrollbar-width:thin;scrollbar-color:var(--sage) #e5e7dc; }
.video-slider:focus-visible { outline:2px solid var(--gold);outline-offset:4px; }
.video-slider .video-card { flex:0 0 calc((100% - 48px) / 2.6);scroll-snap-align:start; }
.video-slider .video-frame { aspect-ratio:9/14;border-radius:24px; }
.video-slider .video-trigger img { object-fit:contain;background:#ebe8dc; }
.video-slider .video-card figcaption { font-size:16px;line-height:1.7;padding-inline:6px; }
@media(max-width:1050px) { .video-slider .video-card { flex-basis:calc((100% - 24px) / 2.15); } }
@media(max-width:760px) {
  .video-showcase-heading { align-items:flex-start;flex-direction:column;gap:16px;margin-bottom:14px; }
  .video-slider-controls { align-self:center; }
  .video-section .video-slider { gap:16px; }
  .video-slider .video-card { flex-basis:86%; }
  .video-showcase + .video-showcase { margin-top:40px;padding-top:30px; }
  .video-showcase-heading p { font-size:16px; }
}
html body {
  --closing-gradient: linear-gradient(125deg, #183f3c 0%, #315c49 52%, #526844 100%);
}
html body .benefits { background: transparent; }
html[data-style="teal"] .hero-grid {
  background: radial-gradient(ellipse at 10% 50%, #e4eeeb, transparent 70%);
  border-inline: 0;
}
html body .hero::before { display: none; }
html body .hero .hero-grid {
  background: radial-gradient(ellipse at 8% 15%, #65946c55, transparent 58%),
    linear-gradient(125deg, #174b38 0%, #285d42 55%, #416e4e 100%);
  margin-block: 24px 30px;
  padding-inline: 38px;
  border: 1px solid #527c5b;
  border-radius: 24px 24px 72px 24px;
  gap: 48px;
}
.testimonials-scroll { align-items:flex-start; }
.review-excerpt.is-collapsed { display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;max-height:6.3em;overflow:hidden; }
.review-excerpt.is-collapsed p { display:inline; }
.testimonial-card .review-excerpt.is-collapsed p + p { margin:0; }
.review-excerpt.is-collapsed p + p::before { content:' '; }
.review-toggle { display:block;margin:14px 0 0;padding:8px 4px;min-height:44px;border:0;background:transparent;color:var(--green);font-weight:700;text-decoration:underline;text-underline-offset:5px; }
.review-toggle:hover { color:var(--gold); }
html body .hero-grid .copy h1 { color: #fffdf5; }
html body .hero-grid h1 .accent { color: #efd391; }
html body .hero-grid :is(.intro, .note, .social-label) { color: #e4eddf; }
html body .hero-grid .secondary { color: #fffdf5; }
html body .hero-grid .note svg { stroke: #efd391; }
html body .hero-grid .play { border-color: #c9d8bd; }
html body .hero-grid .primary {
  background: #efd391;
  border-color: #efd391;
  color: #24432e;
}
html body .hero-grid .primary:hover { background: #f7dfaa; }
html body .hero-grid :is(.art-footnote, .spark) { color: #efd391; }
html body .hero-grid .ornament { border-radius: 50%; }
html body .section.section {
  --section-surface: var(--cream);
  position: relative;
  isolation: isolate;
  margin-top: 0;
  padding-block: 104px 88px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(135deg, var(--section-surface), var(--cream));
}
html body .section::before {
  content: '';
  display: block;
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  background: var(--cream);
  -webkit-mask: url('assets/section-wave.svg') center top / 100% 100% no-repeat;
  mask: url('assets/section-wave.svg') center top / 100% 100% no-repeat;
  pointer-events: none;
}
html body .section::after {
  content: none;
}
html body .section:nth-of-type(even)::before { transform: scaleX(-1); }
html body .with-us { --section-surface: #edf1e6; }
html body #programs { --section-surface: #fffcf5; background: linear-gradient(135deg, var(--section-surface), var(--cream)); }
html body .testimonials { --section-surface: #e4ebdc; }
html body .video-section { --section-surface: #f1ebde; }
html body .teachers { --section-surface: #eaf0e4; }
html body .section .teachers-intro {
  padding: 38px;
  border: 1px solid #d5c59d55;
  border-radius: 80px 24px 24px 24px;
  background: var(--closing-gradient);
  box-shadow: 0 18px 40px #30432912;
}
html body .section-heading::after {
  width: 96px;
  height: 2px;
  margin-top: 26px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section .feature-card { background: var(--cream); }
.section .program-card { border-top: 3px solid var(--gold); }
.section .program-card:nth-child(even) { border-top-color: var(--sage); }
.section .video-frame { border: 5px solid var(--cream); box-shadow: 0 12px 28px #303c2c14; }
.section :is(.feature-card, .program-card, .video-frame, .teacher-feature) {
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.section .program-link span { transition: transform .25s ease; }
.section .program-link:hover span { transform: translate(-4px, -3px); }
html body .section.mission {
  --section-surface: #315c49;
  border-radius: 0;
  padding-block: 108px 96px;
  background: var(--closing-gradient);
  color: #fdfbf5;
}
.mission .mission-grid { gap: 64px; align-items: center; }
html body .mission .section-title { color: #fffbed; }
html body .mission .section-title span,
html body .mission .eyebrow,
html body .mission .mission-seal { color: #dfc992; }
.mission .mission-grid > div:first-child {
  padding: 42px 30px;
  border: 1px solid #dfc99266;
  border-radius: 150px 150px 22px 22px;
  text-align: center;
  background: #ffffff04;
}
.mission .mission-seal { justify-content: center; margin-top: 24px; }
html body .mission-copy > p { color: #e3e9db; }
.mission .values span { color: #f7edd3; background: #ffffff09; border-color: #dfc99255; }
.mission blockquote { color: #f5e4be; border-color: #dfc992; background: #ffffff05; padding-block: 15px; border-radius: 10px 0 0 10px; }
html body .section .teacher-contact { background: var(--closing-gradient); }
html body .site-footer { border-top: 1px solid #d8cba9; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .section :is(.feature-card, .program-card, .video-frame, .teacher-feature):hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px #3043291c;
    border-color: var(--gold);
  }
}
@media (max-width: 760px) {
  .testimonials .section-heading { margin-bottom: 20px; }
  /* Long reviews must not push shorter cards away from the heading. */
  .testimonials-scroll { align-items: flex-start; }
  .testimonial-controls button { top: 80px; transform: none; }
  html body .hero .hero-grid {
    width: calc(100% - 24px);
    margin-block: 14px 24px;
    padding: 36px 20px 30px;
    gap: 30px;
    border-radius: 20px 20px 44px 20px;
  }
  html body .section.section { margin-top: 0; padding-block: 76px 54px; border-radius: 0; }
  html body .section::before { height: 28px; }
  html body .section .teachers-intro { padding: 28px 22px; border-radius: 50px 20px 20px 20px; }
  html body .section.mission { padding-block: 78px 58px; border-radius: 0; }
  .mission .mission-grid { gap: 30px; }
  .mission .mission-grid > div:first-child { padding: 40px 20px 26px; border-radius: 100px 100px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .section *, .section *::before, .section *::after { animation: none !important; transition: none !important; }
}
