/* A cinematic night sky anchored by a photograph of Kiddoverse children. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 735px;
  background:
    radial-gradient(ellipse at 98% 0%, #a86bdd 0, transparent 48%),
    radial-gradient(ellipse at -6% 96%, #733cb0 0, transparent 42%),
    linear-gradient(122deg, #271546, #573088 70%, #70439c);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -8% -5%;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  pointer-events: none;
  opacity: .74;
  background:
    radial-gradient(circle at 3% 14%, #fff9dc 0 1px, transparent 2px),
    radial-gradient(circle at 14% 27%, #b9c7ed 0 .8px, transparent 1.8px),
    radial-gradient(circle at 25% 9%, #f3dfa9 0 1.1px, transparent 2.2px),
    radial-gradient(circle at 38% 31%, #fff9dc 0 .9px, transparent 2px),
    radial-gradient(circle at 49% 12%, #a9b9e7 0 1px, transparent 2px),
    radial-gradient(circle at 58% 25%, #f5dfb6 0 .8px, transparent 2px),
    radial-gradient(circle at 71% 7%, #fff9dc 0 1px, transparent 2px),
    radial-gradient(circle at 82% 30%, #a9b9e7 0 .8px, transparent 2px),
    radial-gradient(circle at 95% 17%, #fff9dc 0 1px, transparent 2px),
    radial-gradient(circle at 8% 51%, #d2d3ec 0 .8px, transparent 2px),
    radial-gradient(circle at 20% 72%, #fff9dc 0 1px, transparent 2px),
    radial-gradient(circle at 34% 57%, #e9c985 0 1.2px, transparent 2.5px),
    radial-gradient(circle at 47% 78%, #c4d1f0 0 .8px, transparent 2px),
    radial-gradient(circle at 61% 49%, #fff9dc 0 1px, transparent 2.1px),
    radial-gradient(circle at 76% 67%, #a9b9e7 0 .8px, transparent 2px),
    radial-gradient(circle at 90% 81%, #fff9dc 0 1px, transparent 2px),
    radial-gradient(circle at 54% 50%, #fff3c8 0 2px, #fff3c84d 3px, transparent 9px);
  animation: galaxy-drift 36s linear infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  width: auto;
  height: 180px;
  border: 0;
  border-radius: 0;
  pointer-events: none;
  opacity: 1;
  background: none;
  animation: none;
}
.hero-grid { position: relative; z-index: 1; gap: clamp(36px, 5vw, 88px); }
.hero-overline { border-color: #dbd1ff36; color: #e4dcf9; background: #ffffff0c; }
.hero-mantra { border-color: #f1d2934d; background: #f3d2930e; }
.hero h1 { max-width: 750px; font-size: clamp(4.15rem, 6.2vw, 6.6rem); line-height: 1.015; color: #fffefb; }
.hero h1 em { color: #efcb78; text-shadow: 0 0 36px #f9d88b21; }
.hero p { color: #e5e6f0; max-width: 555px; }
.hero .btn { border-color: #ffdf97; background: #f4d27c; color: #17213c; box-shadow: 0 15px 32px #0a102b55; }
.hero .btn:hover { background: #ffe2a0; box-shadow: 0 19px 38px #0a102b6b; }
.hero .btn.light { border-color: #ffffff8a; background: #ffffff0e; color: #fff; box-shadow: none; }
.hero .btn.light:hover { background: #ffffff22; border-color: #fff; }
.hero-signature { color: #cbd5dd; }
.hero-signature>span { filter: drop-shadow(0 0 8px #eac4706b); }
.hero-visual { width: min(100%, 595px); min-height: 620px; }
.hero-visual::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #49b8a52e, #524aaa18 53%, transparent 72%);
  filter: blur(14px);
  animation: galaxy-breathe 8s ease-in-out infinite;
}
.hero-orbit {
  z-index: -1;
  width: min(108%, 630px);
  border: 1px solid #e5d8a67a;
  box-shadow: 0 0 0 36px #ffffff06, 0 0 0 37px #b4bddd25, inset 0 0 0 27px #ffffff04;
  transform: rotate(-19deg) scaleY(.84);
  animation: orbit-tilt 18s ease-in-out infinite alternate;
}
.hero-orbit::before { width: 13px; height: 13px; background: #f7cd69; box-shadow: 0 0 0 6px #e7bc4633, 0 0 35px #f7cd69d9; }
.hero-orbit::after { background: #52bfae; box-shadow: 0 0 0 6px #52bfae22, 0 0 26px #52bfae8c; }
.hero-visual .hero-photo { width: min(79%, 450px); margin: 0; transform: rotate(-1.5deg); }
.hero-visual .hero-photo::before {
  inset: 9px -12px -10px 12px;
  border-radius: 34px;
  background: linear-gradient(155deg, #e1bd6e, #b48347);
  box-shadow: 0 14px 50px #e8c27525;
}
.hero-visual .hero-photo img {
  aspect-ratio: 3/4;
  object-position: center;
  border: 6px solid #fffaf0;
  border-radius: 31px;
  box-shadow: 0 36px 90px #040a20ac, 0 0 0 1px #f1daa6;
}
.hero-visual .hero-photo figcaption { margin-top: -9px; transform: rotate(1.5deg); background: #fffdf5; }
.hero-spark { filter: drop-shadow(0 0 12px #e6c2777c); animation: star-hover 6s ease-in-out infinite; }
.hero-spark-one { top: 4%; right: 12%; width: 22px; height: 22px; }
.hero-spark-two { bottom: 13%; left: 5%; width: 16px; height: 16px; animation-delay: -2.8s; }

/* Carry the cosmic palette into one quiet interlude, then return to daylight. */
.family-moment {
  background:
    radial-gradient(circle, #f4dca6c9 0 1px, transparent 2px) 14px 42px/180px 147px,
    radial-gradient(ellipse 38% 80% at 91% 23%, #2a625677 0, transparent 85%),
    linear-gradient(115deg, #131d3a, #2c2557);
}
.family-moment h2 em, .family-moment a { color: #f3d183; }
.learning-editorial { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(28px, 5vw, 75px); align-items: center; }
.learning-portrait { position: relative; overflow: hidden; margin: 0; height: clamp(520px, 47vw, 655px); border-radius: 27px; background: #ded8ef; box-shadow: 0 30px 60px #221b4a23; }
.learning-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; transition: transform .75s cubic-bezier(.2,.7,.2,1); }
.learning-portrait:hover img { transform: scale(1.035); }
.learning-portrait::after { content: ""; position: absolute; inset: 60% 0 0; background: linear-gradient(transparent, #10182ba8); pointer-events: none; }
.learning-portrait figcaption { position: absolute; z-index: 1; left: 30px; right: 30px; bottom: 26px; color: #fff; font: 600 clamp(1.3rem, 2.2vw, 2rem)/1.18 var(--play, "Fredoka", sans-serif); text-shadow: 0 2px 14px #0d112660; }
.learning-steps { border-top: 1px solid #cfc7dd; }
.learning-steps article { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 20px; padding: clamp(25px, 3.5vw, 40px) 0; border-bottom: 1px solid #cfc7dd; }
.learning-steps article>span { padding-top: 8px; color: #6f58a0; font: 800 10px/1.4 Manrope, Arial, sans-serif; letter-spacing: .13em; }
.learning-steps h3 { margin: 0 0 10px; color: #291b59; font: 600 clamp(1.65rem, 2.25vw, 2.35rem)/1.12 var(--play, "Fredoka", sans-serif); letter-spacing: -.035em; }
.learning-steps p { max-width: 420px; margin: 0; color: #5e586a; font-size: 16px; line-height: 1.65; }
.program-section { background: radial-gradient(ellipse at 100% 5%, #efe8fa, transparent 36%), #fffefa; }
.program-art::before { transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .8s; }
.program:hover .program-art::before { transform: scale(1.045); filter: saturate(1.05); }

@keyframes galaxy-drift { to { transform: translate3d(20px, 12px, 0); opacity: .52; } }
@keyframes galaxy-breathe { 50% { transform: scale(1.07); opacity: .6; } }
@keyframes orbit-tilt { to { transform: rotate(-8deg) scaleY(.86); } }
@keyframes star-hover { 50% { transform: translateY(-9px) scale(.83); opacity: .6; } }
@media (max-width: 900px) {
  .hero { padding: 61px 0 60px; }
  .hero-grid { gap: 20px; }
  .hero-visual { min-height: 540px; }
  .hero h1 { max-width: 740px; }
  .learning-editorial { grid-template-columns: 1fr; gap: 29px; }
  .learning-portrait { height: min(80vw, 570px); }
  .learning-portrait img { object-position: center 42%; }
}
@media (max-width: 700px) {
  .hero { padding: 48px 0 48px; }
  .hero h1 { font-size: clamp(3.05rem, 11.4vw, 4.4rem); }
  .hero-visual { width: min(100%, 510px); min-height: min(112vw, 485px); margin-top: 22px; }
  .hero-orbit { width: 108%; }
  .hero-visual .hero-photo { width: min(80%, 360px); }
  .hero-visual .hero-photo img { border-width: 5px; border-radius: 26px; }
  .hero-visual .hero-photo figcaption { font-size: 10px; }
  .hero-spark-one { top: 0; right: 4%; }
  .hero-spark-two { bottom: 9%; left: 2%; }
  .learning-portrait { height: min(100vw, 480px); border-radius: 23px; }
  .learning-portrait figcaption { left: 22px; right: 22px; bottom: 21px; }
  .learning-steps article { grid-template-columns: 1fr; gap: 8px; padding: 23px 0 25px; }
  .learning-steps article>span { padding: 0; }
}
@media (max-width: 390px) {
  .hero h1 { font-size: clamp(2.72rem, 11vw, 3rem); }
  .hero-visual { min-height: 410px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero-visual::before, .hero-orbit, .hero-spark { animation: none; }
  .program-art::before { transition: none; }
  .program:hover .program-art::before { transform: none; }
  .learning-portrait img { transition: none; }
  .learning-portrait:hover img { transform: none; }
}
