.kindergarten-page {
  background: #fff;
}

.kg-main {
  --kg-blue-soft: #eef3f8;
  --kg-gold-soft: #f7f0df;
  --kg-cream: #f8f5ed;
  width: 100%;
  margin: 0;
  overflow: hidden;
}

.kg-main [id] {
  scroll-margin-top: 86px;
}

.kg-main h1,
.kg-main h2,
.kg-main h3,
.kg-main p {
  margin-top: 0;
}

.kg-main svg {
  stroke-width: 1.7;
}

/* Hero */
.kg-hero {
  min-height: 490px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(118deg, var(--deep) 0%, #062d65 58%, #073975 100%);
}

.kg-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 13% 22%, rgba(197, 138, 18, .18), transparent 18%),
    radial-gradient(circle at 75% 78%, rgba(255, 255, 255, .07), transparent 27%);
  pointer-events: none;
}

.kg-hero::after {
  content: "";
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  width: 38%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), transparent);
  pointer-events: none;
}

.kg-hero-content {
  padding: 62px clamp(40px, 7vw, 105px);
  position: relative;
  z-index: 2;
  align-self: center;
}

.kg-hero-content > * {
  animation: kgHeroContentIn .72s cubic-bezier(.22, 1, .36, 1) both;
}

.kg-hero-content > :nth-child(2) { animation-delay: .08s; }
.kg-hero-content > :nth-child(3) { animation-delay: .15s; }
.kg-hero-content > :nth-child(4) { animation-delay: .22s; }
.kg-hero-content > :nth-child(5) { animation-delay: .29s; }

.kg-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 34px;
  color: #aebed4;
  font-size: 12px;
}

.kg-breadcrumb a {
  padding: 0;
  font-size: inherit;
  transition: color .2s ease;
}

.kg-breadcrumb a::after {
  display: none !important;
}

.kg-breadcrumb a:hover {
  color: #f0c766;
}

.kg-breadcrumb b {
  color: #fff;
  font-weight: 500;
}

.kg-hero .eyebrow {
  margin-bottom: 14px;
  color: #efbe4e;
}

.kg-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(44px, 5.1vw, 68px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.kg-hero-content > p:not(.eyebrow) {
  max-width: 710px;
  margin: 0;
  color: #d0dbea;
  font-size: 16px;
  line-height: 2;
}

.kg-primary-btn {
  min-height: 46px;
  margin-top: 28px;
  padding: 0 23px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  background: var(--gold);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
  transition: transform .2s ease, background .2s ease;
}

.kg-primary-btn:hover {
  background: #ad780d;
  transform: translateY(-2px);
}

.kg-primary-btn svg {
  width: 15px;
}

.kg-hero-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.kg-hero-actions .kg-primary-btn {
  margin-top: 0;
}

.kg-secondary-btn {
  min-height: 46px;
  padding: 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(6px);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.kg-secondary-btn:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .13);
  transform: translateY(-2px);
}

.kg-secondary-btn svg {
  width: 15px;
}

.kg-hero-art {
  min-height: 490px;
  padding: 58px clamp(42px, 6vw, 92px) 58px 42px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  animation: kgHeroArtIn .95s .14s cubic-bezier(.22, 1, .36, 1) both;
}

.kg-image-frame {
  width: min(100%, 520px);
  height: 360px;
  margin-inline: auto;
  position: relative;
}

.kg-image-frame::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 20px -20px -20px 20px;
  border: 1px solid rgba(229, 181, 74, .7);
  border-radius: 34px 8px 34px 8px;
}

.kg-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 34px 8px 34px 8px;
  background: linear-gradient(120deg, rgba(3, 26, 61, .12), transparent 50%);
  pointer-events: none;
}

.kg-image-frame > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 34px 8px 34px 8px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, .25);
}

.kg-hero-motion {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.kg-hero-motion span {
  position: absolute;
  display: block;
}

.kg-motion-ring {
  width: 150px;
  height: 150px;
  left: 4%;
  top: 10%;
  border: 1px solid rgba(197, 138, 18, .36);
  border-radius: 50%;
  box-shadow: inset 0 0 0 20px rgba(197, 138, 18, .03);
  animation: kgFloatOne 9s ease-in-out infinite;
}

.kg-motion-orbit {
  width: 210px;
  height: 210px;
  right: 44%;
  bottom: -125px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255, 255, 255, .025);
  animation: kgFloatTwo 12s ease-in-out infinite;
}

.kg-motion-dots {
  width: 9px;
  height: 9px;
  right: 9%;
  top: 18%;
  border-radius: 50%;
  background: var(--gold);
  box-shadow:
    -18px -34px 0 -2px rgba(229, 181, 74, .4),
    -34px 18px 0 -1px rgba(197, 138, 18, .58),
    -52px 54px 0 -1px rgba(255, 255, 255, .2),
    -70px -8px 0 rgba(255, 255, 255, .3),
    -105px 27px 0 -2px rgba(197, 138, 18, .42),
    -122px -38px 0 -1px rgba(229, 181, 74, .32),
    -146px 4px 0 1px rgba(197, 138, 18, .25),
    -165px 57px 0 -2px rgba(255, 255, 255, .18),
    -188px 39px 0 -1px rgba(255, 255, 255, .22),
    -228px -12px 0 -2px rgba(229, 181, 74, .48),
    -245px 62px 0 -1px rgba(197, 138, 18, .3),
    -270px 22px 0 rgba(197, 138, 18, .18),
    -304px -30px 0 -2px rgba(229, 181, 74, .38);
  animation: kgDots 7s ease-in-out infinite;
}

.kg-motion-line {
  width: 240px;
  height: 1px;
  right: 34%;
  top: 27%;
  background: linear-gradient(90deg, transparent, rgba(197, 138, 18, .5), transparent);
  transform: rotate(-28deg);
  animation: kgLine 10s ease-in-out infinite;
}

.kg-scroll-cue {
  width: 34px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 16px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 20px;
  color: #fff;
  transform: translateX(-50%);
  transition: border-color .25s ease, background .25s ease;
}

.kg-scroll-cue span {
  width: 3px;
  height: 7px;
  position: absolute;
  top: 9px;
  border-radius: 3px;
  background: var(--gold);
  animation: kgScrollDot 1.8s ease-in-out infinite;
}

.kg-scroll-cue svg {
  width: 15px;
  position: absolute;
  bottom: 5px;
  stroke-width: 1.8;
}

.kg-scroll-cue:hover {
  border-color: rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .08);
}

/* Shared section rhythm */
.kg-section,
.kg-books {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
  position: relative;
}

.kg-section {
  padding: 88px 0;
  isolation: isolate;
}

.kg-section + .kg-section {
  margin-top: 0;
}

/* Content is revealed progressively as its section enters the viewport. */
.kg-motion-ready .kg-reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(.985);
  filter: blur(2px);
  transition:
    opacity .7s cubic-bezier(.22, 1, .36, 1),
    transform .8s cubic-bezier(.22, 1, .36, 1),
    filter .6s ease;
  transition-delay: var(--kg-reveal-delay, 0ms);
  will-change: opacity, transform;
}

.kg-motion-ready .kg-reveal[data-kg-reveal="soft-up"] {
  transform: translate3d(0, 22px, 0) scale(.99);
}

.kg-motion-ready .kg-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.kg-section::after {
  content: "";
  width: 54px;
  height: 2px;
  position: absolute;
  z-index: 2;
  top: 42px;
  inset-inline-start: 0;
  border-radius: 2px;
  background: var(--gold);
  opacity: 0;
  transform: scaleX(.15);
  transform-origin: right center;
  transition: opacity .6s ease, transform .9s cubic-bezier(.22, 1, .36, 1);
}

.kg-section.is-in-view::after {
  opacity: .8;
  transform: scaleX(1);
}

.kg-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 42px;
}

.kg-heading > div {
  max-width: 720px;
}

.kg-heading .eyebrow {
  margin-bottom: 8px;
}

.kg-heading h2,
.kg-family h2,
.kg-books h2 {
  margin: 0;
  color: var(--deep);
  font-size: clamp(29px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.kg-heading-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 58px;
  border: 1px solid #eadfc7;
  border-radius: 50%;
  background: var(--kg-gold-soft);
  color: var(--gold);
}

.kg-heading-icon svg {
  width: 26px;
}

/* Daily program: one connected learning journey */
.kg-program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  counter-reset: kg-program;
  border-top: 2px solid #e5e9ef;
}

.kg-program-grid article {
  counter-increment: kg-program;
  min-height: 220px;
  padding: 30px 24px 18px;
  position: relative;
  border-inline-start: 1px solid #e5e9ef;
  background: transparent;
  transition: background .25s ease, transform .25s ease;
}

.kg-program-grid article:last-child {
  border-inline-start: 0;
}

.kg-program-grid article::before {
  content: counter(kg-program, decimal-leading-zero);
  position: absolute;
  top: -14px;
  inset-inline-end: 24px;
  padding-inline: 8px;
  background: #fff;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.kg-program-grid article:hover {
  background: #faf8f2;
  transform: translateY(-4px);
}

.kg-card-title {
  display: block;
  margin-bottom: 16px;
}

.kg-card-title > span {
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--kg-gold-soft);
  color: var(--gold);
}

.kg-card-title svg {
  width: 24px;
}

.kg-card-title h3 {
  margin: 0;
  color: var(--deep);
  font-size: 18px;
  line-height: 1.45;
}

.kg-program-grid article > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.kg-habits {
  margin-top: 42px;
  padding: 25px 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-radius: 18px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .035), transparent 42%),
    var(--navy);
  box-shadow: 0 16px 35px rgba(3, 26, 61, .12);
}

.kg-habits b {
  margin-inline-end: auto;
  color: #fff;
  font-size: 15px;
}

.kg-habits span {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 20px;
  background: rgba(255, 255, 255, .07);
  color: #dfe7f2;
  font-size: 11px;
}

/* Facilities: a full-width calm field, not a box */
.kg-facilities::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 8% 12%, rgba(197, 138, 18, .09), transparent 21%),
    var(--kg-cream);
}

.kg-facilities .kg-heading-icon {
  background: #fff;
}

.kg-facilities {
  padding-block: 62px;
}

.kg-facilities .kg-heading {
  margin-bottom: 22px;
}

.kg-facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 42px;
}

.kg-facility-grid article {
  min-height: 76px;
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  border-bottom: 1px solid #ded8c9;
}

.kg-facility-grid article:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.kg-facility-grid svg {
  width: 34px;
  flex: 0 0 34px;
  color: var(--gold);
}

.kg-facility-grid b {
  color: var(--deep);
  font-size: 15px;
  line-height: 1.65;
}

/* Skills: a single continuous navy panel */
.kg-skills {
  padding-block: 66px;
}

.kg-skills .kg-heading {
  margin-bottom: 28px;
}

.kg-skill-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
  border: 0;
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 8%, rgba(197, 138, 18, .18), transparent 26%),
    var(--deep);
  box-shadow: 0 24px 55px rgba(3, 26, 61, .16);
}

.kg-skill-list article {
  min-height: 140px;
  padding: 25px 25px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  border-inline-start: 1px solid rgba(255, 255, 255, .12);
  background: transparent;
}

.kg-skill-list article:last-child {
  border-inline-start: 0;
}

.kg-skill-list article::after {
  content: "";
  width: 28px;
  height: 2px;
  position: absolute;
  inset-inline-end: 25px;
  bottom: 22px;
  background: var(--gold);
  transition: width .25s ease;
}

.kg-skill-list article:hover::after {
  width: 56px;
}

.kg-skill-list span {
  color: #e7b84f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.kg-skill-list b {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
}

/* Family partnership */
.kg-family {
  padding-block: 68px 72px;
}

.kg-family::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 8% 14%, rgba(197, 138, 18, .13), transparent 20%),
    radial-gradient(circle at 92% 88%, rgba(9, 52, 105, .08), transparent 25%),
    linear-gradient(135deg, #f7f9fc, #edf3f9);
}

.kg-family-heading {
  margin-bottom: 28px;
  padding-bottom: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  border-bottom: 1px solid rgba(9, 48, 96, .12);
}

.kg-family-heading::after {
  content: "";
  width: 88px;
  height: 3px;
  position: absolute;
  inset-inline-start: 0;
  bottom: -2px;
  border-radius: 2px;
  background: var(--gold);
}

.kg-family-heading .eyebrow {
  margin-bottom: 8px;
}

.kg-family-heading h2 {
  max-width: 780px;
}

.kg-family-heading-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  flex: 0 0 64px;
  border: 1px solid rgba(197, 138, 18, .25);
  border-radius: 20px;
  background: #fff;
  color: var(--gold);
  box-shadow: 0 14px 32px rgba(3, 26, 61, .08);
}

.kg-family-heading-icon svg {
  width: 31px;
}

.kg-family-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.kg-family-card {
  min-height: 88px;
  padding: 16px 22px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(9, 48, 96, .1);
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 10px 25px rgba(3, 26, 61, .05);
  transition: background .2s ease, padding-inline .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.kg-family-card::after {
  content: "";
  width: 3px;
  height: 0;
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  border-radius: 0 3px 3px 0;
  background: var(--gold);
  transform: translateY(-50%);
  transition: height .2s ease;
}

.kg-family-card:hover {
  padding-inline: 26px 22px;
  background: #fff;
  border-color: rgba(197, 138, 18, .3);
  box-shadow: 0 14px 32px rgba(3, 26, 61, .09);
}

.kg-family-card:hover::after {
  width: 3px;
  height: 44px;
}

.kg-family-number {
  grid-column: 3;
  grid-row: 1;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
}

.kg-family-service-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  grid-column: 1;
  grid-row: 1;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--navy), #114580);
  color: #efbe4e;
  box-shadow: 0 10px 23px rgba(3, 37, 79, .18);
}

.kg-family-service-icon svg {
  width: 27px;
  height: 27px;
  stroke-width: 1.65;
}

.kg-family-service-copy {
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
}

.kg-family-service-copy h3 {
  margin: 0 0 4px;
  color: var(--deep);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.kg-family-card p {
  margin: 0;
  color: #617188;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.65;
}

/* Books: one closing statement */
.kg-books {
  margin-block: 84px 92px;
  padding: 38px 42px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px 48px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #e8dcc2;
  border-radius: 24px;
  background:
    linear-gradient(110deg, rgba(247, 240, 223, .9), rgba(255, 255, 255, .86) 48%),
    #fff;
  box-shadow: 0 20px 45px rgba(3, 26, 61, .08);
}

.kg-books::after {
  content: "";
  width: 170px;
  height: 170px;
  position: absolute;
  inset-inline-end: -80px;
  bottom: -95px;
  border: 25px solid rgba(197, 138, 18, .07);
  border-radius: 50%;
}

.kg-books-title {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.kg-books-title > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  border-radius: 15px;
  background: var(--navy);
  color: #e7b84f;
}

.kg-books-title svg {
  width: 26px;
}

.kg-books-title .eyebrow {
  margin-bottom: 3px;
}

.kg-books h2 {
  font-size: 27px;
}

.kg-book-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  position: relative;
  z-index: 1;
}

.kg-book-subjects span {
  padding: 9px 13px;
  border: 1px solid #e0d5bd;
  border-radius: 20px;
  background: rgba(255, 255, 255, .72);
  color: #4d5d73;
  font-size: 11px;
}

.kg-books > p {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 24px;
  position: relative;
  z-index: 1;
  border-top: 1px solid #e5dccb;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

@keyframes kgFloatOne {
  0%,
  100% { transform: translate3d(0, 0, 0) rotate(0); }
  50% { transform: translate3d(22px, 18px, 0) rotate(14deg); }
}

@keyframes kgFloatTwo {
  0%,
  100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-26px, -20px, 0) scale(1.07); }
}

@keyframes kgDots {
  0%,
  100% { transform: translateY(0); opacity: .7; }
  50% { transform: translateY(22px); opacity: 1; }
}

@keyframes kgDotsMobile {
  0%,
  100% { transform: translate3d(0, 10px, 0); opacity: .55; }
  50% { transform: translate3d(-8px, -58px, 0); opacity: 1; }
}

@keyframes kgLine {
  0%,
  100% { transform: translateX(0) rotate(-28deg); opacity: .25; }
  50% { transform: translateX(-75px) rotate(-28deg); opacity: .75; }
}

@keyframes kgHeroContentIn {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes kgHeroArtIn {
  from {
    opacity: 0;
    transform: translate3d(-34px, 0, 0) scale(.97);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes kgScrollDot {
  0%,
  100% { opacity: .35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}

@keyframes kgStudentPulse {
  0%,
  100% { opacity: .35; transform: scale(.96); }
  50% { opacity: .8; transform: scale(1.08); }
}

@keyframes kgStudentHalo {
  0%,
  100% { transform: scale(.97) rotate(0); }
  50% { transform: scale(1.03) rotate(180deg); }
}

@media (max-width: 1020px) {
  .kg-hero {
    grid-template-columns: 1.08fr .92fr;
  }

  .kg-hero-content {
    padding-inline: 34px;
  }

  .kg-hero-art {
    padding-inline: 30px;
  }

  .kg-image-frame {
    height: 335px;
  }

  .kg-program-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .kg-program-grid article:nth-child(2) {
    border-inline-start: 0;
  }

  .kg-program-grid article:nth-child(n + 3) {
    border-top: 1px solid #e5e9ef;
  }

  .kg-skill-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .kg-skill-list article:nth-child(3) {
    border-inline-start: 0;
  }

  .kg-skill-list article:nth-child(n + 4) {
    border-top: 1px solid rgba(255, 255, 255, .12);
  }

}

@media (max-width: 720px) {
  .kg-hero {
    grid-template-columns: 1fr;
  }

  .kg-hero::after {
    width: 65%;
  }

  .kg-hero-content {
    padding: 38px 22px 34px;
  }

  .kg-breadcrumb {
    margin-bottom: 22px;
    font-size: 10px;
  }

  .kg-hero h1 {
    font-size: 42px;
  }

  .kg-hero-content > p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.85;
  }

  .kg-hero-art {
    min-height: 330px;
    padding: 24px 38px 50px;
  }

  .kg-image-frame {
    height: 260px;
  }

  .kg-image-frame::before {
    inset: 14px -14px -14px 14px;
  }

  .kg-motion-ring {
    left: -45px;
    top: 43%;
  }

  .kg-motion-orbit {
    right: -100px;
    bottom: 2%;
  }

  .kg-motion-line {
    display: none;
  }

  .kg-motion-dots {
    right: 8%;
    top: 50%;
    animation: kgDotsMobile 5.2s ease-in-out infinite;
  }

  .kg-section,
  .kg-books {
    width: calc(100% - 36px);
  }

  .kg-section {
    padding-block: 64px;
  }

  .kg-section::after {
    top: 34px;
  }

  .kg-heading {
    align-items: center;
    margin-bottom: 30px;
  }

  .kg-heading h2,
  .kg-family h2 {
    font-size: 29px;
  }

  .kg-heading-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .kg-program-grid {
    grid-template-columns: 1fr;
  }

  .kg-program-grid article {
    min-height: 0;
    padding: 30px 10px;
    border-inline-start: 0;
    border-top: 1px solid #e5e9ef;
  }

  .kg-program-grid article:first-child {
    border-top: 0;
  }

  .kg-program-grid article::before {
    inset-inline-end: 10px;
  }

  .kg-card-title {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    gap: 14px;
  }

  .kg-card-title > span {
    margin-bottom: 0;
  }

  .kg-program-grid article > p {
    padding-inline-start: 62px;
  }

  .kg-habits {
    margin-top: 25px;
    padding: 22px;
  }

  .kg-habits b {
    width: 100%;
    margin-bottom: 5px;
  }

  .kg-facility-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
  }

  .kg-facility-grid article:nth-last-child(3) {
    border-bottom: 1px solid #ded8c9;
  }

  .kg-facility-grid article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .kg-skill-list {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .kg-skill-list article {
    min-height: 125px;
    padding: 25px 24px;
    border-inline-start: 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }

  .kg-skill-list article:first-child {
    border-top: 0;
  }

  .kg-skill-list article::after {
    inset-inline-end: auto;
    inset-inline-start: 24px;
    bottom: 26px;
  }

  .kg-family {
    padding-block: 56px 60px;
  }

  .kg-family-heading {
    margin-bottom: 24px;
    padding-bottom: 20px;
  }

  .kg-family-heading-icon {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 17px;
  }

  .kg-family-heading-icon svg {
    width: 27px;
  }

  .kg-family-card {
    min-height: 84px;
    padding: 14px 18px;
    grid-template-columns: 49px minmax(0, 1fr) auto;
    gap: 14px;
  }

  .kg-family-service-icon {
    width: 49px;
    height: 49px;
    border-radius: 14px;
  }

  .kg-family-card p {
    font-size: 12px;
  }

  .kg-books {
    margin-block: 60px 70px;
    padding: 30px 24px;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .kg-books h2 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .kg-hero-art {
    min-height: 290px;
    padding-inline: 26px;
  }

  .kg-image-frame {
    height: 225px;
  }

  .kg-section,
  .kg-books {
    width: calc(100% - 28px);
  }

  .kg-heading-icon {
    display: none;
  }

  .kg-program-grid article > p {
    padding-inline-start: 0;
  }

  .kg-facility-grid {
    grid-template-columns: 1fr;
  }

  .kg-facility-grid article {
    min-height: 76px;
  }

  .kg-facility-grid article:nth-last-child(2) {
    border-bottom: 1px solid #ded8c9;
  }

  .kg-facility-grid article:last-child {
    border-bottom: 0;
  }

  .kg-family-heading {
    align-items: center;
  }

  .kg-family-heading-icon {
    display: none;
  }

  .kg-family-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .kg-family-card {
    min-height: 0;
    padding: 14px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .kg-family-service-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }

  .kg-family-number {
    display: none;
  }

  .kg-family-service-copy h3 {
    margin-bottom: 2px;
    font-size: 13px;
  }

  .kg-family-card:hover {
    padding-inline: 17px 14px;
  }

  .kg-family-card:hover::after {
    height: 38px;
  }

  .kg-family-service-copy {
    grid-column: 2;
  }

  .kg-family-card p {
    font-size: 11px;
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .kg-hero-motion span {
    animation: none;
  }

  .kg-hero-content > *,
  .kg-hero > .kg-breadcrumb,
  .kg-hero-art,
  .kg-hero-figure img,
  .kg-scroll-cue span {
    animation: none;
  }

  .kg-motion-ready .kg-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .kg-section::after {
    opacity: .8;
    transform: none;
    transition: none;
  }

  .kg-primary-btn,
  .kg-secondary-btn,
  .kg-scroll-cue,
  .kg-program-grid article,
  .kg-skill-list article::after,
  .kg-family-card,
  .kg-family-card::after {
    transition: none;
  }
}

/* Immersive section journey */
.kindergarten-page {
  scrollbar-color: var(--gold) #e8edf4;
  scrollbar-width: thin;
}

.kindergarten-page::-webkit-scrollbar {
  width: 10px;
}

.kindergarten-page::-webkit-scrollbar-track {
  background: #e8edf4;
}

.kindergarten-page::-webkit-scrollbar-thumb {
  border: 2px solid #e8edf4;
  border-radius: 20px;
  background: linear-gradient(var(--gold), #9f6d0d);
}

.kg-main {
  --kg-page-progress: 0;
  background: #f9fbfd;
}

.kg-scroll-progress {
  width: calc(var(--kg-page-progress, 0) * 100%);
  height: 3px;
  position: fixed;
  z-index: 120;
  top: 0;
  inset-inline-start: 0;
  border-radius: 0 0 3px 0;
  background: linear-gradient(90deg, #9e6906, #f0c866, var(--gold));
  box-shadow: 0 2px 10px rgba(197, 138, 18, .3);
  pointer-events: none;
  transition: width .08s linear;
}

.kg-journey-nav {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: fixed;
  z-index: 18;
  top: 50%;
  inset-inline-start: 24px;
  transform: translateY(-50%);
}

.kg-journey-link {
  width: 13px;
  height: 13px;
  padding: 0;
  display: block;
  position: relative;
  border: 1px solid rgba(3, 26, 61, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 3px 10px rgba(3, 26, 61, .09);
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
  backdrop-filter: blur(7px);
}

.kg-journey-link::after {
  display: none !important;
}

.kg-journey-link i {
  width: 5px;
  height: 5px;
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: var(--navy);
  transition: background .25s ease, transform .25s ease;
}

.kg-journey-link span {
  min-width: max-content;
  padding: 6px 9px;
  position: absolute;
  top: 50%;
  inset-inline-start: 21px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 7px;
  background: rgba(3, 26, 61, .94);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-7px, -50%, 0);
  transition: opacity .2s ease, transform .25s ease;
}

.kg-journey-link:hover span,
.kg-journey-link:focus-visible span {
  opacity: 1;
  transform: translate3d(0, -50%, 0);
}

.kg-journey-link.is-active {
  border-color: var(--gold);
  background: #fff7e4;
  transform: scale(1.38);
}

.kg-journey-link.is-active i {
  background: var(--gold);
  transform: scale(.85);
}

.kg-section,
.kg-books-stage {
  --kg-scene-shift: 0px;
  isolation: isolate;
}

.kg-section::before {
  content: "";
  width: 100vw;
  position: absolute;
  z-index: -2;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

#daily-program::before {
  background:
    radial-gradient(circle at 82% 16%, rgba(18, 78, 143, .08), transparent 25%),
    radial-gradient(circle at 11% 82%, rgba(197, 138, 18, .08), transparent 21%),
    linear-gradient(150deg, #fff 0%, #f4f8fc 58%, #edf3f8 100%);
}

.kg-facilities::before {
  z-index: -2;
  background:
    radial-gradient(circle at 8% 12%, rgba(197, 138, 18, .13), transparent 24%),
    radial-gradient(circle at 88% 84%, rgba(9, 48, 96, .06), transparent 26%),
    linear-gradient(135deg, #f8f4e9, #f2ecdd);
}

.kg-skills::before {
  background:
    radial-gradient(circle at 87% 15%, rgba(197, 138, 18, .2), transparent 26%),
    radial-gradient(circle at 9% 90%, rgba(42, 100, 163, .24), transparent 31%),
    linear-gradient(135deg, #031a3d, #062c61 58%, #073873);
}

.kg-family::before {
  z-index: -2;
  background:
    radial-gradient(circle at 8% 14%, rgba(197, 138, 18, .13), transparent 22%),
    radial-gradient(circle at 92% 88%, rgba(9, 52, 105, .1), transparent 28%),
    linear-gradient(135deg, #f8fbfe, #e9f1f8);
}

.kg-books-stage {
  padding-block: 84px 92px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .46), transparent 20% 80%, rgba(255, 255, 255, .38)),
    linear-gradient(135deg, #e8dec8, #f5f0e5 52%, #e8eef5);
}

.kg-books-stage .kg-books {
  margin-block: 0;
}

.kg-scene-aura {
  width: 100vw;
  position: absolute;
  z-index: -1;
  inset-block: 0;
  left: 50%;
  overflow: hidden;
  opacity: .45;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity .8s ease;
}

.kg-scene-aura::before {
  content: "";
  width: clamp(190px, 24vw, 390px);
  aspect-ratio: 1;
  position: absolute;
  top: calc(-120px + var(--kg-scene-shift));
  inset-inline-end: -90px;
  border: 1px solid rgba(197, 138, 18, .16);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(197, 138, 18, .025),
    0 0 0 76px rgba(9, 48, 96, .022);
  transition: transform 1s cubic-bezier(.22, 1, .36, 1);
}

.kg-scene-aura::after {
  content: "";
  width: 150px;
  height: 130px;
  position: absolute;
  inset-inline-start: 3vw;
  bottom: calc(-25px - var(--kg-scene-shift));
  opacity: .38;
  background-image: radial-gradient(circle, rgba(197, 138, 18, .45) 1.5px, transparent 1.8px);
  background-size: 18px 18px;
}

.kg-section.is-in-view .kg-scene-aura,
.kg-books-stage.is-in-view .kg-scene-aura {
  opacity: 1;
}

.kg-skills {
  padding-block: 82px;
}

.kg-skills .kg-heading h2 {
  color: #fff;
}

.kg-skills .kg-heading-icon {
  border-color: rgba(239, 190, 78, .38);
  background: rgba(255, 255, 255, .08);
  color: #efbe4e;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .025);
}

.kg-skills .kg-skill-list {
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(2, 18, 44, .42);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .22);
  backdrop-filter: blur(8px);
}

.kg-skills .kg-skill-list article {
  transition: background .3s ease, transform .3s ease;
}

.kg-skills .kg-skill-list article:hover {
  background: rgba(255, 255, 255, .055);
  transform: translateY(-5px);
}

.kg-motion-ready .kg-reveal[data-kg-reveal="from-right"] {
  transform: translate3d(38px, 25px, 0) scale(.985);
}

.kg-motion-ready .kg-reveal[data-kg-reveal="from-left"] {
  transform: translate3d(-38px, 25px, 0) scale(.985);
}

.kg-motion-ready .kg-reveal[data-kg-reveal="from-right"].is-visible,
.kg-motion-ready .kg-reveal[data-kg-reveal="from-left"].is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

.kg-program-grid article,
.kg-facility-grid article,
.kg-family-card,
.kg-book-subjects span {
  will-change: transform;
}

.kg-program-grid article:hover,
.kg-family-card:hover {
  transform: translateY(-6px);
}

.kg-facility-grid article {
  transition: padding-inline .25s ease, background .25s ease, transform .25s ease;
}

.kg-facility-grid article:hover {
  padding-inline: 13px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .55);
  transform: translateY(-3px);
}

@media (max-width: 1240px) {
  .kg-journey-nav {
    inset-inline-start: 10px;
  }
}

@media (max-width: 900px) {
  .kg-journey-nav {
    display: none;
  }

  .kg-skills {
    padding-block: 70px;
  }
}

@media (max-width: 720px) {
  .kg-books-stage {
    padding-block: 60px 70px;
  }

  .kg-motion-ready .kg-reveal[data-kg-reveal="from-right"],
  .kg-motion-ready .kg-reveal[data-kg-reveal="from-left"] {
    transform: translate3d(0, 24px, 0) scale(.99);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kg-scroll-progress,
  .kg-scene-aura,
  .kg-journey-link,
  .kg-journey-link i,
  .kg-facility-grid article,
  .kg-skills .kg-skill-list article {
    transition: none;
  }

  .kg-program-grid article:hover,
  .kg-family-card:hover,
  .kg-facility-grid article:hover,
  .kg-skills .kg-skill-list article:hover {
    transform: none;
  }

  .kg-scene-aura::before {
    top: -120px;
  }

  .kg-scene-aura::after {
    bottom: -25px;
  }
}

/* Match the home hero layout: full-bleed photo with one overlaid content column. */
.kg-hero {
  --kg-hero-background: linear-gradient(135deg, #0d2949 0%, #0e254e 52%, #000000 100%);
  min-height: 540px;
  padding: 45px clamp(24px, 8vw, 120px);
  display: flex;
  align-items: center;
  background: var(--kg-hero-background);
}

.kg-hero-photo,
.kg-hero-shade {
  position: absolute;
  z-index: 0;
  inset: 0;
}

.kg-hero-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 45%;
}

.kg-hero-photo--graphic {
  background: var(--kg-hero-background);
}

.kg-hero-shade {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, .3) 0%,
    rgba(14, 37, 78, .7) 52%,
    rgba(13, 41, 73, .95) 100%
  );
}

.kg-hero-figure {
  width: min(47vw, 650px);
  height: calc(100% - 18px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: absolute;
  z-index: 2;
  inset-inline-end: clamp(18px, 5vw, 88px);
  bottom: 0;
  pointer-events: none;
}

.kg-hero-figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, .22));
  animation: kgHeroArtIn .95s .14s cubic-bezier(.22, 1, .36, 1) both;
}

.kg-hero::before {
  z-index: 1;
  background: none;
}

.kg-hero-content {
  width: min(610px, 100%);
  padding: 0;
  z-index: 3;
  align-self: auto;
}

.kg-hero--with-figure .kg-hero-content {
  width: min(45vw, 610px);
}

.kg-hero-motion {
  z-index: 1;
}

.kg-breadcrumb {
  margin-bottom: 28px;
}

.kg-hero > .kg-breadcrumb {
  max-width: calc(100% - 48px);
  margin: 0;
  padding: 9px 13px;
  position: absolute;
  z-index: 4;
  top: 24px;
  inset-inline-start: clamp(24px, 8vw, 120px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(3, 26, 61, .48);
  color: #d5dfec;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
  backdrop-filter: blur(8px);
  animation: kgHeroContentIn .65s cubic-bezier(.22, 1, .36, 1) both;
}

.kg-hero-content > p:not(.eyebrow) {
  max-width: 610px;
}

@media (max-width: 720px) {
  .kg-hero {
    min-height: 620px;
    padding: 100px 18px 58px;
    align-items: flex-end;
  }

  .kg-hero-photo img {
    object-position: 56% center;
  }

  .kg-hero-figure {
    width: 100%;
    height: 56%;
    inset-inline-end: 0;
    top: 0;
    bottom: auto;
  }

  .kg-hero--with-figure .kg-hero-content {
    width: 100%;
  }

  .kg-hero-shade {
    background: linear-gradient(
      to bottom,
      rgba(3, 26, 61, .14) 0%,
      rgba(3, 26, 61, .25) 40%,
      rgba(3, 26, 61, .88) 73%,
      rgba(3, 26, 61, .98) 100%
    );
  }

  .kg-breadcrumb {
    margin-bottom: 18px;
  }

  .kg-hero h1 {
    font-size: 38px;
  }

  .kg-hero-content > p:not(.eyebrow) {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.75;
  }
}

@media (max-width: 560px) {
  .kg-hero {
    min-height: 620px;
  }

  .kg-primary-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile hero: a dedicated image stage followed by a clean text panel. */
.kg-hero-stage-identity {
  display: none;
}

@media (max-width: 720px) {
  .kg-hero {
    --kg-mobile-photo-height: clamp(250px, 66vw, 310px);
    --kg-mobile-breadcrumb-height: 44px;
    --kg-mobile-hero-background: var(--kg-hero-background);
    min-height: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: var(--kg-mobile-hero-background);
  }

  .kg-hero-photo {
    height: var(--kg-mobile-photo-height);
    flex: 0 0 var(--kg-mobile-photo-height);
    order: 2;
    position: relative;
    overflow: hidden;
    background: var(--kg-mobile-hero-background);
  }

  .kg-hero::before {
    background: none;
  }

  .kg-hero-photo::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(3, 26, 61, .03) 62%,
      rgba(3, 26, 61, .28) 100%
    );
    pointer-events: none;
  }

  .kg-hero-photo > img {
    display: none;
  }

  .kg-hero-shade {
    display: none;
  }

  .kg-hero::after {
    width: 68%;
    height: 3px;
    top: calc(var(--kg-mobile-breadcrumb-height) + var(--kg-mobile-photo-height) - 2px);
    right: 0;
    bottom: auto;
    background: linear-gradient(90deg, var(--gold), rgba(229, 181, 74, .35), transparent);
  }

  .kg-hero-figure {
    display: none;
  }

  .kg-hero-content,
  .kg-hero--with-figure .kg-hero-content {
    width: 100%;
    padding: 30px 18px 70px;
    order: 3;
    position: relative;
    background: var(--kg-mobile-hero-background);
  }

  .kg-breadcrumb {
    margin-bottom: 20px;
  }

  .kg-hero > .kg-breadcrumb {
    width: 100%;
    max-width: none;
    min-height: var(--kg-mobile-breadcrumb-height);
    margin: 0;
    padding: 0 18px;
    flex: 0 0 var(--kg-mobile-breadcrumb-height);
    order: 1;
    position: relative;
    top: auto;
    inset-inline-start: auto;
    border: 0;
    border-radius: 0;
    font-size: 10px;
    background: #0e254e;
    box-shadow: inset 0 -1px rgba(255, 255, 255, .12);
    backdrop-filter: none;
    animation: none;
  }

  .kg-hero-stage-identity {
    height: 100%;
    width: 100%;
    padding-inline: clamp(16px, 6vw, 42px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(12px, 4vw, 30px);
    position: relative;
    z-index: 2;
  }

  .kg-hero-student-circle {
    width: clamp(168px, 46vw, 255px);
    height: clamp(168px, 46vw, 255px);
    padding: 8px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    position: relative;
    isolation: isolate;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .kg-hero-student-circle::before,
  .kg-hero-student-circle::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
  }

  .kg-hero-student-circle::before {
    inset: -8px;
    z-index: -2;
    border: 1px solid rgba(229, 181, 74, .2);
    animation: kgStudentPulse 3.8s ease-in-out infinite;
  }

  .kg-hero-student-circle::after {
    inset: 3px;
    z-index: -1;
    border: 1px solid rgba(229, 181, 74, .28);
    background:
      radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .11), transparent 30%),
      rgba(255, 255, 255, .045);
    box-shadow:
      inset 0 0 0 9px rgba(255, 255, 255, .018),
      0 18px 36px rgba(0, 0, 0, .14);
    animation: kgStudentHalo 12s linear infinite;
  }

  .kg-hero-student-circle img {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: 1;
    border-radius: 0;
    object-fit: contain;
    object-position: center bottom;
    transform: none;
    animation: none;
  }

  .kg-hero-student-circle.is-cutout img {
    object-fit: contain;
  }

  .kg-hero-stage-name {
    min-width: 0;
    display: flex;
    flex: 1 1 180px;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
  }

  .kg-hero-stage-name small {
    color: #e7b84f;
    font-size: 11px;
    font-weight: 700;
  }

  .kg-hero-stage-name b {
    max-width: 100%;
    color: #fff;
    font-size: clamp(24px, 6.5vw, 35px);
    font-weight: 500;
    line-height: 1.2;
  }

  .kg-hero-content > h1 {
    display: none;
  }

  .kg-motion-ring {
    top: calc(var(--kg-mobile-breadcrumb-height) + var(--kg-mobile-photo-height) + 24px);
    left: -65px;
  }

  .kg-motion-orbit {
    right: -120px;
    bottom: -35px;
  }

  .kg-hero-actions {
    width: 100%;
    gap: 8px;
  }

  .kg-hero-actions .kg-primary-btn,
  .kg-hero-actions .kg-secondary-btn {
    width: auto;
    min-width: 0;
    padding-inline: 12px;
    flex: 1 1 0;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .kg-hero {
    --kg-mobile-photo-height: clamp(245px, 70vw, 295px);
  }

  .kg-hero-content,
  .kg-hero--with-figure .kg-hero-content {
    padding-inline: 16px;
  }

  .kg-hero-stage-identity {
    padding-inline: 14px;
  }

  .kg-hero-student-circle {
    width: clamp(164px, 47vw, 190px);
    height: clamp(164px, 47vw, 190px);
  }

  .kg-hero-stage-name {
    flex-basis: 120px;
  }

  .kg-hero-stage-name b {
    font-size: clamp(23px, 7vw, 29px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kg-hero-student-circle,
  .kg-hero-student-circle::before,
  .kg-hero-student-circle::after,
  .kg-hero-stage-name {
    animation: none;
  }
}
