/* =========================================================
   Science World School — Homepage
   Premium navy + gold, responsive hero and school gallery
   ========================================================= */

/* Full-width split hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #FFFFFF;
  background:
    radial-gradient(ellipse at 34% 2%, rgb(31 83 141 / 25%), transparent 38%),
    radial-gradient(ellipse at 73% 92%, rgb(8 57 108 / 40%), transparent 42%),
    linear-gradient(112deg, #031B36 0%, #08294F 57%, #062346 100%);
}
.hero::before {
  position: absolute;
  z-index: -1;
  top: -245px;
  left: 17%;
  width: 690px;
  height: 500px;
  content: "";
  border: 1px solid rgb(80 145 208 / 20%);
  border-radius: 48%;
  box-shadow: 0 0 0 42px rgb(20 76 130 / 7%), 0 0 0 104px rgb(20 76 130 / 5%);
  transform: rotate(-18deg);
}
.hero::after {
  position: absolute;
  z-index: 3;
  right: -5%;
  bottom: -126px;
  left: -5%;
  height: 190px;
  content: "";
  border-top: 5px solid #E8B02F;
  border-radius: 50% 48% 0 0 / 42% 44% 0 0;
  transform: rotate(-2deg);
  pointer-events: none;
}
.hero__decor { position: absolute; z-index: 0; pointer-events: none; }
.hero__decor--one {
  top: 0;
  right: 43%;
  width: 22%;
  height: 100%;
  background: linear-gradient(120deg, transparent 36%, rgb(1 18 38 / 22%) 36.3%, transparent 72%);
}
.hero__decor--two {
  right: -110px;
  bottom: 12px;
  width: 480px;
  height: 170px;
  border: 1px solid rgb(220 174 66 / 25%);
  border-radius: 50%;
  transform: rotate(-12deg);
}
.hero__layout {
  position: relative;
  display: grid;
  width: min(1536px, 100%);
  min-height: 650px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  margin-inline: auto;
}
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  grid-column: 1;
  padding: 58px 16px 100px max(52px, calc((100vw - 1432px) / 2 + 5px));
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 27px;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.91rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.3;
}
.hero__eyebrow > span:first-child { color: #FFC43D; }
.hero__eyebrow-line { width: clamp(56px, 8vw, 118px); height: 2px; flex: 0 0 auto; background: #DCAE42; }
.hero h1 {
  max-width: 760px;
  margin: 0;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: clamp(3.25rem, 4.75vw, 4.65rem);
  font-weight: 800;
  line-height: 1.035;
  letter-spacing: -0.06em;
  text-wrap: pretty;
}
.hero h1 em {
  color: #FFC43D;
  font-style: normal;
}
.hero__description {
  max-width: 660px;
  margin: 20px 0 29px;
  color: #F1F5FB;
  font-family: var(--font-body);
  font-size: clamp(1.04rem, 1.25vw, 1.2rem);
  font-weight: 500;
  line-height: 1.58;
  letter-spacing: -0.018em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.button--hero {
  min-height: 62px;
  padding: 14px 25px;
  border-radius: 15px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.button--hero svg { width: 23px; height: 23px; }

/* Angled real-school-photo hero slider */
.hero-slider {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 650px;
  grid-column: 2;
  isolation: isolate;
}
.hero-slider::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, #F5C23F, #D99A18);
  clip-path: polygon(28.5% 0, 30.6% 0, 2.1% 100%, 0 100%);
}
.hero-slider__frame {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  background: #173B69;
  clip-path: polygon(30.6% 0, 100% 0, 100% 100%, 2.1% 100%);
}
.hero-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
}
.hero-slider__slide.is-active { opacity: 1; }
.hero-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}
.hero-slider__shade {
  position: absolute;
  inset: 58% 0 0;
  background: linear-gradient(transparent, rgb(3 20 40 / 32%));
  pointer-events: none;
}
.hero-slider__controls {
  position: absolute;
  z-index: 2;
  right: 34px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.slider-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--color-navy);
  background: #FFFFFF;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 5px 14px rgb(0 0 0 / 20%);
  transition: transform 160ms ease, background 160ms ease;
}
.slider-arrow:hover { background: #FFE18D; transform: scale(1.06); }
.slider-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.slider-dots { display: flex; align-items: center; gap: 9px; }
.slider-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgb(255 255 255 / 82%);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}
.slider-dot.is-active { background: #FFC43D; transform: scale(1.22); }
.hero-slider__caption {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 82px;
  margin: 0;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  text-shadow: 0 1px 5px rgb(0 0 0 / 45%);
}

/* Floating principles strip — deliberately avoids unverified numeric claims */
.hero-stats {
  position: relative;
  z-index: 5;
  display: grid;
  width: min(1180px, calc(100% - 80px));
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: -26px auto 0;
  padding: 22px 25px;
  background: linear-gradient(115deg, #FFFFFF 0%, #F3F7FD 65%, #E7F0FC 100%);
  border: 1px solid #DCE6F3;
  border-radius: 27px;
  box-shadow: 0 15px 36px rgb(10 47 87 / 18%), inset 0 1px 0 #FFFFFF;
}
.hero-stat {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 5px 16px;
}
.hero-stat + .hero-stat { border-left: 1px solid #C9D7E9; }
.hero-stat svg {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  fill: none;
  stroke: #D99A18;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-stat span { display: grid; min-width: 0; gap: 3px; }
.hero-stat strong {
  color: #10264D;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
}
.hero-stat small {
  color: #44536A;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
}

/* School moments gallery preview */
.school-moments {
  padding: 43px 0 78px;
  background: linear-gradient(180deg, #F2F6FC 0%, #FFFFFF 100%);
}
.school-moments__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 27px;
}
.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  color: #A9750F;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.045em;
}
.section-kicker > span:first-child { width: 48px; height: 2px; flex: 0 0 48px; background: #D6A32C; }
.school-moments__heading h2,
.home-next h2 {
  margin: 0 0 8px;
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.055em;
}
.school-moments__heading p:not(.section-kicker) {
  margin: 0;
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
}
.gallery-link { min-height: 46px; padding-inline: 20px; flex: 0 0 auto; font-family: var(--font-heading); font-weight: 800; }
.school-moments__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.school-moment {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1.42 / 1;
  background: var(--color-surface-blue);
  border: 1px solid rgb(8 39 75 / 9%);
  border-radius: 16px;
  box-shadow: 0 7px 20px rgb(8 39 75 / 10%);
}
.school-moment::after {
  position: absolute;
  inset: 40% 0 0;
  content: "";
  background: linear-gradient(transparent, rgb(3 20 40 / 75%));
}
.school-moment img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms ease; }
.school-moment:hover img { transform: scale(1.055); }
.school-moment__caption {
  position: absolute;
  z-index: 1;
  right: 16px;
  bottom: 14px;
  left: 16px;
  display: grid;
  gap: 3px;
  color: #FFFFFF;
}
.school-moment__caption strong { font-family: var(--font-heading); font-size: 0.94rem; font-weight: 800; }
.school-moment__caption small { color: #E6EDF6; font-family: var(--font-body); font-size: 0.72rem; font-weight: 500; }

.home-next { padding: 60px 0; background: #FFFFFF; }
.home-next__inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.home-next h2 { max-width: 670px; font-size: clamp(1.8rem, 2.7vw, 2.35rem); }
.home-next__inner > div:first-child > p:last-child { max-width: 660px; margin: 10px 0 0; color: var(--color-muted); }
.home-next__actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }

@media (max-width: 1180px) {
  .hero__layout { min-height: 600px; }
  .hero__content { padding-right: 10px; }
  .hero h1 { font-size: clamp(2.6rem, 4.45vw, 3.6rem); }
  .hero__eyebrow { font-size: 0.82rem; }
  .hero__description { font-size: 1.02rem; }
  .hero-stats { width: calc(100% - 64px); }
  .hero-stat { gap: 10px; padding-inline: 10px; }
  .hero-stat svg { width: 34px; height: 34px; flex-basis: 34px; }
  .hero-stat strong { font-size: 0.91rem; }
  .hero-stat small { font-size: 0.69rem; }
}

@media (max-width: 900px) {
  .hero__layout { display: flex; min-height: 0; flex-direction: column; }
  .hero__content { width: 100%; padding: 50px var(--page-gutter) 39px; }
  .hero h1 { max-width: 760px; font-size: clamp(3rem, 7vw, 4.35rem); }
  .hero__description { max-width: 650px; }
  .hero-slider { width: calc(100% - (var(--page-gutter) * 2)); min-height: 0; height: auto; aspect-ratio: 1.7 / 1; margin: 0 auto 66px; }
  .hero-slider::before { clip-path: polygon(13% 0, 15.5% 0, 2.5% 100%, 0 100%); }
  .hero-slider__frame { clip-path: polygon(15.5% 0, 100% 0, 100% 100%, 2.5% 100%); }
  .hero-slider__caption { right: 20px; bottom: 70px; }
  .hero-stats { width: calc(100% - 48px); margin-top: -46px; padding: 18px 14px; }
  .hero-stat { justify-content: flex-start; }
  .school-moments { padding-top: 38px; }
  .school-moments__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-next__inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 600px) {
  .hero__content { padding: 39px var(--page-gutter) 31px; }
  .hero__eyebrow { gap: 8px; margin-bottom: 19px; font-size: 0.68rem; letter-spacing: 0.02em; }
  .hero__eyebrow-line { width: 38px; }
  .hero h1 { font-size: clamp(2.45rem, 10.5vw, 3.55rem); line-height: 1.055; letter-spacing: -0.06em; }
  .hero__description { margin: 15px 0 21px; font-size: 0.98rem; line-height: 1.52; }
  .hero__actions { gap: 10px; }
  .button--hero { min-height: 49px; padding: 11px 14px; border-radius: 11px; font-size: 0.82rem; }
  .button--hero svg { width: 18px; height: 18px; }
  .hero-slider { width: calc(100% - 28px); aspect-ratio: 1.35 / 1; margin-bottom: 48px; }
  .hero-slider::before { clip-path: polygon(12% 0, 15.5% 0, 3% 100%, 0 100%); }
  .hero-slider__frame { clip-path: polygon(15.5% 0, 100% 0, 100% 100%, 3% 100%); }
  .hero-slider__controls { right: 13px; bottom: 13px; gap: 9px; }
  .slider-arrow { width: 34px; height: 34px; }
  .slider-dots { gap: 7px; }
  .slider-dot { width: 8px; height: 8px; }
  .hero-slider__caption { right: 12px; bottom: 55px; font-size: 0.65rem; }
  .hero-stats { width: calc(100% - 28px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: -30px; padding: 11px 8px; border-radius: 17px; }
  .hero-stat { gap: 9px; padding: 10px 8px; }
  .hero-stat:nth-child(3) { border-left: 0; }
  .hero-stat:nth-child(n + 3) { border-top: 1px solid #D6E0ED; }
  .hero-stat svg { width: 27px; height: 27px; flex-basis: 27px; }
  .hero-stat strong { font-size: 0.73rem; }
  .hero-stat small { font-size: 0.61rem; }
  .school-moments { padding: 37px 0 53px; }
  .school-moments__heading { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 21px; }
  .school-moments__heading h2 { font-size: 1.85rem; }
  .school-moments__heading p:not(.section-kicker) { font-size: 0.9rem; }
  .section-kicker { font-size: 0.72rem; }
  .school-moments__grid { gap: 11px; }
  .school-moment { border-radius: 11px; }
  .school-moment__caption { right: 9px; bottom: 9px; left: 9px; }
  .school-moment__caption strong { font-size: 0.74rem; }
  .school-moment__caption small { font-size: 0.59rem; }
  .home-next { padding: 42px 0; }
  .home-next__actions { width: 100%; }
  .home-next__actions .button { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider__slide,
  .school-moment img { transition: none; }
}


/* =========================================================
   V3 FULL-WIDTH + MOBILE-FIRST HERO REFINEMENT
   Removes constrained desktop side gutters and adapts the hero
   into a clean vertical layout on tablets and phones.
   ========================================================= */
.hero { width: 100%; }
.hero__layout {
  width: 100%;
  max-width: none;
  min-height: clamp(570px, 42vw, 710px);
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  margin: 0;
}
.hero__content {
  padding: 58px clamp(24px, 3.2vw, 56px) 98px clamp(24px, 4vw, 68px);
}
.hero__eyebrow { gap: 13px; font-size: clamp(0.78rem, 0.95vw, 0.94rem); }
.hero h1 {
  width: 100%;
  max-width: 760px;
  font-size: clamp(3rem, 4.75vw, 4.85rem);
  line-height: 1.035;
  letter-spacing: -0.055em;
}
.hero__description { max-width: 650px; font-size: clamp(1.02rem, 1.2vw, 1.2rem); }
.hero-slider {
  width: 100%;
  min-height: 0;
  height: 100%;
  grid-column: 2;
}
.hero-slider::before {
  /* Shift the gold divider left slightly to give the campus photo more room. */
  clip-path: polygon(13.7% 0, 15.6% 0, 0 100%, 0 100%);
}
.hero-slider__frame {
  /* Match the photo edge to the adjusted gold divider. */
  clip-path: polygon(15.6% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-slider__slide img { object-position: center center; }
.hero-stats { width: min(1180px, calc(100% - 2 * clamp(24px, 4vw, 68px))); }

@media (min-width: 1600px) {
  .hero__content { padding-left: max(68px, calc((100vw - 1760px) / 2 + 68px)); }
}

@media (max-width: 1040px) {
  .hero__layout { display: flex; min-height: 0; flex-direction: column; }
  .hero__content { width: 100%; padding: 46px var(--page-gutter) 34px; }
  .hero h1 { max-width: 800px; font-size: clamp(3rem, 7.2vw, 4.7rem); }
  .hero__description { max-width: 720px; }
  .hero-slider {
    width: calc(100% - 2 * var(--page-gutter));
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    margin: 0 auto 58px;
  }
  .hero-slider::before { clip-path: polygon(9% 0, 11% 0, 2% 100%, 0 100%); }
  .hero-slider__frame { clip-path: polygon(11% 0, 100% 0, 100% 100%, 2% 100%); }
  .hero-slider__caption { right: 22px; bottom: 76px; }
  .hero-stats { width: calc(100% - 2 * var(--page-gutter)); margin-top: -34px; padding: 17px 14px; }
  .hero-stat { justify-content: flex-start; gap: 11px; padding-inline: 12px; }
  .hero-stat svg { width: 32px; height: 32px; flex-basis: 32px; }
  .hero-stat strong { font-size: 0.9rem; }
  .hero-stat small { font-size: 0.68rem; }
  .school-moments { padding-top: 42px; }
  .school-moments__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-next__inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .hero::before, .hero__decor { display: none; }
  .hero::after { bottom: -118px; height: 145px; border-top-width: 3px; }
  .hero__content { padding: 36px var(--page-gutter) 28px; }
  .hero__eyebrow { gap: 8px; margin-bottom: 18px; font-size: 0.69rem; letter-spacing: 0.015em; }
  .hero__eyebrow-line { width: 34px; }
  .hero h1 { font-size: clamp(2.35rem, 9.2vw, 3.55rem); line-height: 1.055; letter-spacing: -0.06em; }
  .hero__description { margin: 15px 0 21px; font-size: 0.96rem; line-height: 1.55; }
  .hero__actions { gap: 10px; }
  .button--hero { min-height: 51px; padding: 12px 15px; border-radius: 11px; font-size: 0.84rem; }
  .button--hero svg { width: 18px; height: 18px; }
  .hero-slider {
    width: calc(100% - 2 * var(--page-gutter));
    aspect-ratio: 1.42 / 1;
    margin-bottom: 49px;
    border: 3px solid #E8B02F;
    border-radius: 18px;
    background: #173B69;
  }
  .hero-slider::before { display: none; }
  .hero-slider__frame { clip-path: none; border-radius: 15px; }
  .hero-slider__slide img { object-position: center center; }
  .hero-slider__controls { right: 11px; bottom: 11px; gap: 8px; }
  .slider-arrow { width: 34px; height: 34px; }
  .slider-arrow svg { width: 17px; height: 17px; }
  .slider-dots { gap: 7px; }
  .slider-dot { width: 8px; height: 8px; }
  .hero-slider__caption { right: 11px; bottom: 53px; font-size: 0.64rem; }
  .hero-stats {
    width: calc(100% - 2 * var(--page-gutter));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: -30px;
    padding: 10px 7px;
    border-radius: 17px;
  }
  .hero-stat { min-width: 0; gap: 8px; justify-content: flex-start; padding: 10px 8px; }
  .hero-stat:nth-child(3) { border-left: 0; }
  .hero-stat:nth-child(n + 3) { border-top: 1px solid #D6E0ED; }
  .hero-stat svg { width: 25px; height: 25px; flex-basis: 25px; }
  .hero-stat strong { font-size: 0.72rem; line-height: 1.2; }
  .hero-stat small { font-size: 0.6rem; line-height: 1.25; }
  .school-moments { padding: 37px 0 54px; }
  .school-moments__heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 21px; }
  .school-moments__heading h2 { font-size: clamp(1.75rem, 7vw, 2.05rem); }
  .school-moments__heading p:not(.section-kicker) { font-size: 0.9rem; }
  .section-kicker { font-size: 0.69rem; }
  .school-moments__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .school-moment { aspect-ratio: 1.15 / 1; border-radius: 11px; }
  .school-moment__caption { right: 9px; bottom: 9px; left: 9px; }
  .school-moment__caption strong { font-size: 0.72rem; }
  .school-moment__caption small { font-size: 0.58rem; }
  .home-next { padding: 42px 0; }
  .home-next__inner { gap: 22px; }
  .home-next__actions { width: 100%; }
  .home-next__actions .button { flex: 1 1 100%; }
}

@media (max-width: 380px) {
  .hero__eyebrow-line { display: none; }
  .hero h1 { font-size: clamp(2.2rem, 9.4vw, 2.75rem); }
  .hero__actions { display: grid; grid-template-columns: 1fr; }
  .button--hero { width: 100%; }
  .hero-slider { aspect-ratio: 1.22 / 1; }
  .school-moments__grid { grid-template-columns: 1fr; gap: 13px; }
  .school-moment { aspect-ratio: 1.55 / 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider__slide, .school-moment img { transition: none; }
}
