/* =========================================================
   Science World School — shared interior-page emblem hero
   A single responsive system for About, Leadership, Academics,
   Campus Life and Gallery. Keep the official logo undistorted.
   ========================================================= */
.sws-inner-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 478px;
  color: #fff;
  background:
    radial-gradient(ellipse at 76% 46%, rgb(42 91 145 / 35%), transparent 34%),
    radial-gradient(circle at 9% 100%, rgb(25 66 115 / 48%), transparent 34%),
    linear-gradient(116deg, #061d38 0%, #0a2b50 53%, #0d315b 100%);
}
.sws-inner-hero::before {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: min(260px, 24vw);
  height: 112px;
  content: "";
  background: linear-gradient(135deg, #03172d 0 48%, #dcae42 48.4% 50.2%, transparent 50.5%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  opacity: .92;
}
.sws-inner-hero::after {
  position: absolute;
  z-index: 4;
  right: -2%;
  bottom: -48px;
  left: -2%;
  height: 88px;
  content: "";
  border-top: 3px solid #e8b943;
  border-radius: 50% 50% 0 0 / 34% 34% 0 0;
  transform: rotate(-1.05deg);
  pointer-events: none;
}
.sws-inner-hero__ambient {
  position: absolute;
  z-index: -1;
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: 50%;
  pointer-events: none;
}
.sws-inner-hero__ambient--one {
  top: -380px;
  right: -90px;
  width: 700px;
  height: 700px;
  box-shadow: 0 0 0 36px rgb(255 255 255 / 2%), 0 0 0 76px rgb(255 255 255 / 1.8%);
}
.sws-inner-hero__ambient--two {
  bottom: -470px;
  left: 28%;
  width: 560px;
  height: 560px;
  box-shadow: 0 0 0 35px rgb(220 174 66 / 3.5%);
}
.sws-inner-hero__layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: center;
  gap: clamp(30px, 5vw, 86px);
  min-height: 478px;
  padding-block: 34px 58px;
}
.sws-inner-hero__copy { min-width: 0; max-width: 770px; }
.sws-inner-hero__breadcrumb { margin: 0 0 clamp(26px, 3vw, 44px); }
.sws-inner-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 17px;
  color: #f6cf68;
  font: 800 .76rem/1.3 var(--font-subheading);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.sws-inner-hero__eyebrow > span:first-child {
  width: 28px;
  height: 1px;
  flex: 0 0 28px;
  background: #e6b642;
}
.sws-inner-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(2.7rem, 5.15vw, 4.55rem);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: 1.035;
  text-wrap: balance;
}
.sws-inner-hero h1 em { color: #ffc83d; font-style: normal; }
/* Gallery title is intentionally composed on one line on desktop; it wraps naturally on narrow screens. */
.sws-inner-hero--gallery h1 { max-width: 100%; font-size: clamp(2.6rem, 4.8vw, 4.3rem); white-space: nowrap; }

.sws-inner-hero__description {
  max-width: 650px;
  margin: 22px 0 26px;
  color: #dbe5f1;
  font-size: clamp(.98rem, 1.25vw, 1.12rem);
  line-height: 1.78;
}
.sws-inner-hero__button { min-height: 47px; gap: 12px; box-shadow: 0 10px 24px rgb(0 0 0 / 16%); }
.sws-inner-hero__visual {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 405px;
  place-items: center;
  isolation: isolate;
}
.sws-inner-hero__visual::after {
  position: absolute;
  z-index: 4;
  top: -16%;
  bottom: -16%;
  left: -64%;
  width: 36%;
  content: "";
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 7%), rgb(255 213 111 / 12%), transparent);
  transform: skewX(-18deg);
  animation: swsHeroSheen 10s ease-in-out infinite;
  pointer-events: none;
}
.sws-inner-hero__logo-frame {
  position: relative;
  z-index: 2;
  display: grid;
  width: clamp(250px, 24vw, 310px);
  aspect-ratio: 1;
  padding: 10px;
  place-items: center;
  overflow: hidden;
  border: 4px solid #e7bb4d;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 9px rgb(255 255 255 / 8%), 0 0 0 17px rgb(220 174 66 / 9%), 0 0 55px rgb(255 204 76 / 25%), 0 24px 62px rgb(0 0 0 / 27%);
  animation: swsLogoFloat 7.5s ease-in-out infinite;
}
.sws-inner-hero__logo-frame::after {
  position: absolute;
  inset: -25% auto -25% -65%;
  width: 35%;
  content: "";
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 55%), transparent);
  transform: rotate(16deg);
  animation: swsLogoGlint 8s ease-in-out infinite;
  pointer-events: none;
}
.sws-inner-hero__logo-frame img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.sws-inner-hero__orbit {
  position: absolute;
  z-index: 1;
  width: min(410px, 91%);
  aspect-ratio: 1;
  border: 1px dashed rgb(246 207 104 / 36%);
  border-radius: 50%;
  pointer-events: none;
}
.sws-inner-hero__orbit--outer { animation: swsOrbitSpin 42s linear infinite; }
.sws-inner-hero__orbit--inner {
  width: min(350px, 78%);
  border: 1px solid rgb(255 255 255 / 11%);
  box-shadow: inset 0 0 25px rgb(255 255 255 / 3%);
  animation: swsOrbitSpin 58s linear infinite reverse;
}
.sws-inner-hero__orbit--pulse {
  width: min(445px, 98%);
  border: 1px solid rgb(255 205 92 / 23%);
  box-shadow: 0 0 0 12px rgb(255 207 92 / 3.5%), inset 0 0 28px rgb(255 207 92 / 3%);
  animation: swsOrbitPulse 5.8s ease-in-out infinite;
}
.sws-inner-hero__icon {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  color: #f6d06c;
  border: 1px solid rgb(242 213 141 / 42%);
  border-radius: 14px;
  background: rgb(8 39 73 / 92%);
  box-shadow: 0 11px 25px rgb(0 0 0 / 18%);
  animation: swsIconFloat 4.8s ease-in-out infinite;
  backdrop-filter: blur(8px);
}
.sws-inner-hero__icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.sws-inner-hero__icon--book { top: 9%; left: 10%; animation-delay: -.7s; }
.sws-inner-hero__icon--atom { top: 11%; right: 9%; animation-delay: -2s; }
.sws-inner-hero__icon--bulb { bottom: 16%; left: 9%; animation-delay: -1.55s; }
.sws-inner-hero__icon--cap { right: 9%; bottom: 15%; animation-delay: -2.8s; }
.sws-inner-hero__caption {
  position: absolute;
  z-index: 5;
  bottom: 0;
  left: 50%;
  margin: 0;
  padding: 8px 16px;
  color: #f8dc91;
  border: 1px solid rgb(220 174 66 / 46%);
  border-radius: 999px;
  background: #082748;
  font: 800 .63rem/1.2 var(--font-subheading);
  letter-spacing: .13em;
  white-space: nowrap;
  transform: translateX(-50%);
}
.sws-inner-hero__copy > * { animation: swsHeroRise .72s cubic-bezier(.2,.72,.2,1) both; }
.sws-inner-hero__copy > :nth-child(1) { animation-delay: .04s; }
.sws-inner-hero__copy > :nth-child(2) { animation-delay: .13s; }
.sws-inner-hero__copy > :nth-child(3) { animation-delay: .22s; }
.sws-inner-hero__copy > :nth-child(4) { animation-delay: .31s; }
.sws-inner-hero__copy > :nth-child(5) { animation-delay: .4s; }
@keyframes swsHeroRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes swsOrbitSpin { to { transform: rotate(360deg); } }
@keyframes swsOrbitPulse { 0%,100% { opacity: .48; transform: scale(.98); } 50% { opacity: .9; transform: scale(1.025); } }
@keyframes swsIconFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes swsLogoFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes swsLogoGlint { 0%,58%,100% { left: -65%; opacity: 0; } 68% { opacity: .9; } 82% { left: 130%; opacity: 0; } }
@keyframes swsHeroSheen { 0%,52%,100% { left: -64%; opacity: 0; } 62% { opacity: .85; } 78% { left: 130%; opacity: 0; } }

@media (max-width: 1050px) {
  .sws-inner-hero__layout { grid-template-columns: minmax(0, 1.05fr) minmax(310px, .85fr); gap: 24px; }
  .sws-inner-hero h1 { font-size: clamp(2.55rem, 5vw, 3.7rem); }
  .sws-inner-hero__logo-frame { width: clamp(240px, 27vw, 285px); }
  .sws-inner-hero__visual { min-height: 370px; }
}
@media (max-width: 780px) {
  .sws-inner-hero--gallery h1 { white-space: normal; }
  .sws-inner-hero { min-height: 0; }
  .sws-inner-hero__layout { grid-template-columns: 1fr; gap: 4px; min-height: 0; padding-block: 26px 55px; }
  .sws-inner-hero__copy { max-width: 100%; }
  .sws-inner-hero__breadcrumb { margin-bottom: 28px; }
  .sws-inner-hero__eyebrow { font-size: .68rem; margin-bottom: 14px; }
  .sws-inner-hero h1 { max-width: 680px; font-size: clamp(2.35rem, 8vw, 3.7rem); line-height: 1.05; }
  .sws-inner-hero__description { max-width: 650px; margin: 17px 0 20px; font-size: .98rem; line-height: 1.7; }
  .sws-inner-hero__visual { min-height: 286px; margin-top: 2px; }
  .sws-inner-hero__logo-frame { width: 218px; padding: 8px; }
  .sws-inner-hero__orbit { width: 300px; }
  .sws-inner-hero__orbit--inner { width: 260px; }
  .sws-inner-hero__orbit--pulse { width: 325px; }
  .sws-inner-hero__icon { width: 43px; height: 43px; border-radius: 12px; }
  .sws-inner-hero__icon svg { width: 22px; height: 22px; }
  .sws-inner-hero__icon--book { left: calc(50% - 145px); }
  .sws-inner-hero__icon--atom { right: calc(50% - 145px); }
  .sws-inner-hero__icon--bulb { left: calc(50% - 145px); }
  .sws-inner-hero__icon--cap { right: calc(50% - 145px); }
  .sws-inner-hero__caption { bottom: 0; }
  .sws-inner-hero::after { bottom: -56px; height: 82px; }
}
@media (max-width: 420px) {
  .sws-inner-hero__layout { padding-block: 22px 50px; }
  .sws-inner-hero__breadcrumb { margin-bottom: 23px; }
  .sws-inner-hero__eyebrow { letter-spacing: .1em; font-size: .62rem; }
  .sws-inner-hero h1 { font-size: clamp(2.15rem, 9.7vw, 2.65rem); }
  .sws-inner-hero__description { font-size: .92rem; }
  .sws-inner-hero__visual { min-height: 255px; }
  .sws-inner-hero__logo-frame { width: 190px; }
  .sws-inner-hero__orbit { width: 260px; }
  .sws-inner-hero__orbit--inner { width: 224px; }
  .sws-inner-hero__orbit--pulse { width: 282px; }
  .sws-inner-hero__icon { width: 38px; height: 38px; }
  .sws-inner-hero__icon svg { width: 20px; height: 20px; }
  .sws-inner-hero__icon--book, .sws-inner-hero__icon--bulb { left: calc(50% - 126px); }
  .sws-inner-hero__icon--atom, .sws-inner-hero__icon--cap { right: calc(50% - 126px); }
  .sws-inner-hero__caption { font-size: .55rem; padding: 7px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .sws-inner-hero__copy > *, .sws-inner-hero__logo-frame, .sws-inner-hero__orbit,
  .sws-inner-hero__icon, .sws-inner-hero__visual::after, .sws-inner-hero__logo-frame::after {
    animation: none !important;
    transition: none !important;
  }
}
