:root {
  --navy: #191c3b;
  --ink: #222341;
  --muted: #55546e;
  --pink: #8c245a;
  --rose: #fae4ee;
  --mint: #d8efe5;
  --line: #e5dce7;
  --paper: #fffcf9;
  --radius: 21px;
  --shadow: 0 15px 36px #30244613;
  --orbit-gold: #f7c96c;
  --orbit-lilac: #d9cff7;
  --orbit-ease: cubic-bezier(.22, 1, .36, 1);
}
h1, h2 { text-wrap: balance; }
h1, h2, h3 { letter-spacing: -.04em; }
h2 { font-size: clamp(1.8rem, 3.9vw, 3.1rem); }
.site-header {
  background: #191c3b;
  border-bottom: 1px solid #ffffff24;
  box-shadow: none;
}
.site-header .brand img { background: white; border-radius: 14px; }
.nav-links > a:hover, .nav-links summary:hover { color: var(--orbit-gold); }
.dropdown { border: 1px solid var(--line); }
.btn {
  border-radius: 12px;
  transition: transform .35s var(--orbit-ease), box-shadow .35s var(--orbit-ease), background-color .2s;
}
.btn-outline:hover { background-color: var(--rose); }
.navbar .btn-white { background: var(--orbit-gold); }
.navbar-actions .cbt-words { margin-inline-end: .28em; }
.navbar .btn-white:hover { background: #ffdc96; }
:focus-visible { outline-color: #b52a76; }
.site-header :focus-visible, .hero :focus-visible, .footer :focus-visible { outline-color: var(--orbit-gold); }

.hero {
  padding: clamp(2.3rem, 6vw, 6rem) 0;
  background:
    radial-gradient(ellipse at 83% 48%, #753969 0, transparent 55%),
    linear-gradient(120deg, #191c3b 28%, #35254c 100%);
}
.hero::before {
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: .38;
  background: radial-gradient(circle, #ffffff46 1px, transparent 1.4px) 0 0 / 22px 22px;
  mask-image: linear-gradient(90deg, transparent 10%, black 75%);
}
.hero::after, .hero-intro::after { content: none; }
.hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5.5rem); }
.hero h1 { max-width: 20ch; font-size: clamp(2.2rem, 4.85vw, 4.5rem); line-height: 1.02; }
.hero-intro > .eyebrow { color: var(--orbit-gold); }
.hero p { color: #f1e8f4; max-width: 50ch; }
.hero-panel {
  display: grid;
  gap: .28rem;
  padding: 0 0 0 1rem;
  margin: 1.5rem 0 0;
  border-radius: 0;
  border-left: 2px solid var(--orbit-gold);
  background: none;
  color: white;
  box-shadow: none;
}
.hero-panel .eyebrow {
  position: static;
  transform: none;
  padding: 0;
  background: none;
  color: #ead6ed;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .55rem; }
.hero-actions .btn { background: var(--orbit-gold); color: var(--navy); }
.hero-actions .btn-outline { color: white; background: #ffffff12; border-color: #ffffff6b; }
.hero-actions .btn-outline:hover { background: #ffffff2d; }
.hero-visual { width: min(100%, 540px); margin-inline: auto; }
.hero-orbit { position: relative; isolation: isolate; width: 100%; aspect-ratio: 1.08; }
.orbit-track {
  position: absolute;
  inset: 3% 6%;
  border: 1px dashed #f3dcef77;
  border-radius: 50%;
  animation: teladan-orbit 27s linear infinite;
}
.orbit-track::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  left: 49%;
  top: -6px;
  border-radius: 50%;
  background: var(--orbit-gold);
  box-shadow: 0 0 14px #f7c96c90;
}
.orbit-track-inner { inset: 12% 14%; animation-direction: reverse; animation-duration: 19s; }
.orbit-track-inner::before { width: 8px; height: 8px; top: -4px; background: var(--orbit-lilac); }
@keyframes teladan-orbit { to { transform: rotate(360deg); } }
.hero-orbit[data-paused] :is(.orbit-track, .orbit-satellite) { animation-play-state: paused; }
.orbit-photo { position: absolute; overflow: hidden; border: 5px solid #fff4ee; box-shadow: 0 20px 44px #100c2f77; }
.orbit-photo img { width: 100%; height: 100%; object-fit: cover; }
.orbit-photo-main { inset: 12% 13% 12% 18%; border-radius: 48% 48% 44% 44%; transform: rotate(-7deg); }
.orbit-photo-main::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse, transparent 54%, #33213850 100%),
    repeating-linear-gradient(0deg, #e9caac0f 0 1px, transparent 1px 4px);
}
.orbit-slide { height: 100%; animation: film-exposure .75s var(--orbit-ease) both; }
.orbit-slide[hidden] { display: none; }
@keyframes film-exposure {
  from { opacity: .35; transform: scale(1.08) rotate(4deg); }
  to { opacity: 1; transform: none; }
}
.orbit-satellite { position: absolute; width: 24%; aspect-ratio: 1; right: 5%; bottom: 8%; }
.orbit-photo-small { inset: 0; border-radius: 50%; }
@supports (offset-path: ellipse(43% 39% at 50% 50%)) {
  .orbit-satellite {
    inset: 0 auto auto 0;
    offset-path: ellipse(43% 39% at 50% 50%);
    offset-rotate: 0deg;
    animation: satellite-lap 28s linear -5s infinite;
  }
}
@keyframes satellite-lap { to { offset-distance: 100%; } }
.orbit-label {
  position: absolute;
  padding: .38rem .75rem;
  border-radius: 9px;
  color: var(--navy);
  background: var(--orbit-lilac);
  box-shadow: 0 8px 20px #18153252;
  font-size: clamp(.7rem, 1.6vw, .92rem);
  font-weight: 800;
}
.orbit-label-levels { left: 5%; top: 19%; transform: rotate(-8deg); }
.orbit-label-online { right: 1%; top: 31%; transform: rotate(8deg); background: var(--orbit-gold); }
.orbit-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }
.orbit-controls[hidden] { display: none; }
.orbit-controls button {
  min-height: 44px;
  min-width: 44px;
  margin: 0;
  padding: .25rem .65rem;
  border: 1px solid #ffffff69;
  border-radius: 10px;
  background: #ffffff12;
  color: white;
  font-size: .79rem;
  font-weight: 650;
}
.orbit-controls button:hover { background: #ffffff2b; }
.orbit-controls [data-orbit-control][aria-pressed="true"] {
  border-color: var(--orbit-gold);
  background: var(--orbit-gold);
  color: var(--navy);
}

main > .section { position: relative; }
.program-section, .catalog, .journey, .mentors, .spotlights, .local-programs, .soft, .rose {
  border-top: 1px solid var(--line);
}
.program-section { scroll-margin-top: 78px; background: var(--paper); }
.catalog { background: #faf4ec; }
.local-programs { background: linear-gradient(145deg, #f1ebfa, #fffcf9 78%); }
.section.soft { background: #edf6f0; }
.spotlights { background: #f2eaf8; }
.journey { background: #f2eff9; }
.mentors { background: #eaf5ef; }
.section.rose { background: #fbf2f3; }
.soft::after, .spotlights::after, .journey::after, .mentors::after, .testimonials::after { content: none; }
.soft::before, .spotlights::before, .mentors::before { opacity: .22; }

.home-sections {
  --wave-height: clamp(22px, 4vw, 52px);
  --wave-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cfilter id='fade' x='-5%25' y='-60%25' width='110%25' height='220%25'%3E%3CfeGaussianBlur stdDeviation='0 9'/%3E%3C/filter%3E%3Cpath filter='url(%23fade)' d='M-24 38C225 17 410 16 670 31S1170 47 1464 21V110H-24Z'/%3E%3C/svg%3E");
  --local-top: #f1ebfa;
  --soft-top: #edf6f0;
  --spotlights-top: #f2eaf8;
  --catalog-top: #faf4ec;
  --journey-top: #f2eff9;
  --testimonials-top: #211f43;
  --mentors-top: #eaf5ef;
  --updates-top: #fbf2f3;
}
.home-sections > .section { border-top: 0; }
.home-sections > .local-programs { background: linear-gradient(180deg, var(--local-top), var(--paper) 85%); }
.home-sections > .testimonials {
  background: linear-gradient(var(--testimonials-top), transparent 40%), linear-gradient(128deg, var(--testimonials-top), #572951);
}
.home-sections > section:has(+ section) { --wave-tint: var(--paper); }
.home-sections > section:has(+ .local-programs) { --wave-tint: var(--local-top); }
.home-sections > section:has(+ .soft) { --wave-tint: var(--soft-top); }
.home-sections > section:has(+ .spotlights) { --wave-tint: var(--spotlights-top); }
.home-sections > section:has(+ .catalog) { --wave-tint: var(--catalog-top); }
.home-sections > section:has(+ .journey) { --wave-tint: var(--journey-top); }
.home-sections > section:has(+ .testimonials) { --wave-tint: var(--testimonials-top); }
.home-sections > section:has(+ .mentors) { --wave-tint: var(--mentors-top); }
.home-sections > section:has(+ .rose) { --wave-tint: var(--updates-top); }
.home-sections > section:has(+ section)::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto 0 -1px;
  height: var(--wave-height);
  background: var(--wave-tint);
  mask: var(--wave-shape) center / 100% 100% no-repeat,
        linear-gradient(transparent 5%, #0001 30%, #0006 61%, #000c 82%, #000 98%);
  pointer-events: none;
  transform: none;
}
.home-sections > section:nth-child(even):has(+ section)::after { transform: scaleX(-1); }
.home-sections > .story::after { max-height: 40px; }
.section-title::before {
  width: 38px;
  height: 19px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: radial-gradient(circle at 89% 46%, currentColor 2px, transparent 2.5px);
  transform: rotate(-24deg);
}
.program-grid .card { border-top: 3px solid #a6507c; }
.program-grid > :nth-child(2) .card,
.program-grid > .card:nth-child(2) { border-top-color: #7767aa; }
.program-grid > :nth-child(3) .card,
.program-grid > .card:nth-child(3) { border-top-color: #3b846c; }
.program-grid > :nth-child(4) .card,
.program-grid > .card:nth-child(4) { border-top-color: #ad772e; }
.program-grid > :nth-child(5) .card,
.program-grid > .card:nth-child(5) { border-top-color: #62549a; }
.program-grid .card-body { padding: clamp(.85rem, 1.45vw, 1.2rem); }
.program-grid .card h3 { margin-bottom: .36rem; }
.program-grid .card p { margin-bottom: .85rem; text-align: start; hyphens: manual; line-height: 1.5; }
.program-grid .card > img,
.program-grid .card-cover img { aspect-ratio: 16/9; }
.card { transition: box-shadow .38s var(--orbit-ease), border-color .26s; }
.card:hover, .card:focus-within { box-shadow: 0 18px 40px #33244522; }
.catalog-filters { gap: .55rem; }
.catalog-filters [aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: white; }
.catalog .program-grid > :not([hidden]) > .card { animation: orbit-arrive .42s var(--orbit-ease) both; }
@keyframes orbit-arrive { from { opacity: .5; translate: 0 7px; } }
.js-motion [data-reveal] {
  opacity: .7;
  transform: translateY(15px);
  transition: opacity .6s var(--orbit-ease), transform .6s var(--orbit-ease);
}
.js-motion [data-reveal].in-view, .js-motion [data-reveal]:focus-within { opacity: 1; transform: none; }
.testimonials { background: linear-gradient(128deg, #211f43, #572951); }
.testimonial-card { border-radius: 20px 20px 20px 4px; }
.story-panel, .closing-panel { border-radius: 26px 26px 26px 6px; }
.story-panel { background: linear-gradient(130deg, #191c3b, #643257); }
.closing-panel { background: linear-gradient(135deg, #f6e3ec, #ece6f7 68%, #e5f1e8); }
.page-heading {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 87% 30%, #e6d7f6, transparent 48%),
    radial-gradient(circle, #7b587d23 1px, transparent 1.3px) 0 0 / 17px 17px,
    #f7eef2;
}
.page-heading h1 { max-width: 28ch; }
.longform { overflow-wrap: anywhere; }
.footer { border-top: 3px solid var(--orbit-gold); background: #191c3b; }
.footer a:hover { color: var(--orbit-gold); }
.quick-contact { border-radius: 12px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-intro { text-align: left; }
  .hero h1, .hero p { margin-left: 0; margin-right: 0; }
  .hero-panel { text-align: left; }
  .hero-visual { width: min(85%, 390px); }
}
@media (max-width: 540px) {
  main .card-grid:not(.program-grid) { grid-template-columns: 1fr; }
  .hero-visual { width: min(94%, 350px); }
  .hero h1 { font-size: clamp(2rem, 9.3vw, 3rem); }
  .program-grid .card { flex-direction: row; align-items: flex-start; }
  .program-grid .card > img, .program-grid .card-cover {
    flex: 0 0 28%;
    width: 28%;
    max-width: 108px;
    height: 96px;
    margin: .7rem 0 .7rem .7rem;
    border-radius: 12px;
    object-fit: cover;
  }
  .program-grid .card-cover img { height: 100%; border-radius: inherit; }
  .program-grid .card-body { min-width: 0; padding: .75rem; }
  .program-grid .card h3 { font-size: 1.12rem; }
  .program-grid .card p { font-size: .94rem; }
}
@media (prefers-reduced-motion: reduce) {
  .orbit-controls .hero-motion { display: none; }
  .orbit-satellite { offset-distance: 39%; }
  .orbit-track, .orbit-satellite, .orbit-slide,
  .catalog .program-grid > :not([hidden]) > .card { animation: none; }
}
