/* About page section 2 — identical to Beyond Classroom reference-section */

body.about-page main > section.reference-section,
body.about-page main > section.about-sec2.reference-section {
  min-height: 100vh !important;
  position: relative !important;
  overflow: hidden !important;
  background: #091321 !important;
  background-color: #091321 !important;
  background-image: none !important;
  isolation: isolate;
  padding: 0 !important;
}

body.about-page main > section.reference-section::before,
body.about-page main > section.reference-section::after {
  content: none !important;
  display: none !important;
}

body.about-page main > section.reference-section .reference-stage {
  position: relative;
  width: min(100%, 1440px);
  min-height: 100vh;
  margin: 0 auto;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: clamp(5.5rem, 9vh, 8rem) clamp(1rem, 5vw, 4rem);
  grid-template-columns: unset !important;
  grid-template-areas: unset !important;
}

body.about-page main > section.reference-section .reference-stage::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 48%, rgba(36, 92, 168, 0.14), transparent 34%) !important;
  pointer-events: none;
}

body.about-page main > section.reference-section .reference-stage::after {
  content: none !important;
  display: none !important;
}

body.about-page main > section.reference-section .reference-copy {
  position: relative;
  z-index: 8;
  width: min(560px, 42vw);
  max-width: 560px;
  text-align: center;
  color: #fff;
  pointer-events: none;
}

body.about-page main > section.reference-section .reference-copy .reference-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 0.9rem;
  font-weight: 600;
}

body.about-page main > section.reference-section .reference-copy .reference-kicker::before {
  content: "";
  width: 2.1rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

body.about-page main > section.reference-section .reference-copy h2 {
  font-family: var(--rt-font-body, "Sora", "Outfit", system-ui, sans-serif) !important;
  font-size: clamp(1.55rem, 2.35vw, 2.7rem) !important;
  line-height: 1.18 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-wrap: balance;
  color: #ffffff !important;
  margin: 0 !important;
}

body.about-page main > section.reference-section .reference-copy p {
  max-width: 590px;
  margin: clamp(1.35rem, 2.8vh, 2rem) auto 0;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: clamp(0.78rem, 0.86vw, 0.92rem) !important;
  line-height: 1.72 !important;
  font-weight: 600 !important;
}

body.about-page main > section.reference-section .media-card {
  position: absolute !important;
  z-index: 2;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 32px 86px rgba(0, 0, 0, 0.38);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  opacity: 1 !important;
  visibility: visible !important;
  animation: aboutReferenceAmbient 7.5s ease-in-out infinite !important;
}

body.about-page main > section.reference-section .media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.about-page main > section.reference-section .media-a {
  width: clamp(112px, 8vw, 145px);
  aspect-ratio: 1;
  height: auto;
  left: clamp(5rem, 11vw, 13rem);
  top: clamp(5rem, 12vh, 8rem);
}

body.about-page main > section.reference-section .media-b {
  width: clamp(165px, 12vw, 220px);
  aspect-ratio: 1;
  height: auto;
  right: clamp(24rem, 31vw, 36rem);
  top: clamp(4.5rem, 11vh, 7rem);
  animation-delay: -1.4s !important;
}

body.about-page main > section.reference-section .media-c {
  width: clamp(190px, 14vw, 245px);
  aspect-ratio: 4 / 5.35;
  height: auto;
  left: clamp(4rem, 8vw, 9rem);
  bottom: clamp(3.5rem, 8vh, 6rem);
  animation-delay: -2.1s !important;
}

body.about-page main > section.reference-section .media-d {
  width: clamp(190px, 14vw, 245px);
  aspect-ratio: 4 / 5.35;
  height: auto;
  right: clamp(4rem, 9vw, 10rem);
  bottom: clamp(7rem, 17vh, 11rem);
  animation-delay: -3.2s !important;
}

body.about-page main > section.reference-section .media-e {
  width: clamp(155px, 11vw, 205px);
  aspect-ratio: 1.2 / 1;
  height: auto;
  right: clamp(18rem, 25vw, 30rem);
  bottom: clamp(2.5rem, 6vh, 5rem);
  animation-delay: -4s !important;
}

@keyframes aboutReferenceAmbient {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(7px, -10px, 0) rotate(1.2deg);
  }
}

@media (max-width: 1000px) {
  body.about-page main > section.reference-section .reference-stage {
    min-height: clamp(680px, 88svh, 860px);
    padding: clamp(5rem, 11vh, 7rem) clamp(0.85rem, 3vw, 1.5rem) clamp(2.5rem, 5vh, 3.5rem);
  }

  body.about-page main > section.reference-section .reference-copy {
    width: min(82vw, 480px);
    max-width: 480px;
  }

  body.about-page main > section.reference-section .media-a {
    width: 88px;
    left: 4%;
    top: 10%;
  }

  body.about-page main > section.reference-section .media-b {
    width: 96px;
    right: 4%;
    top: 10%;
  }

  body.about-page main > section.reference-section .media-c {
    width: 110px;
    left: 3%;
    bottom: 7%;
  }

  body.about-page main > section.reference-section .media-d {
    width: 118px;
    right: 3%;
    bottom: 8%;
  }

  body.about-page main > section.reference-section .media-e {
    display: none !important;
  }
}

@media (max-width: 768px) {
  body.about-page main > section.reference-section,
  body.about-page main > section.about-sec2.reference-section {
    min-height: auto !important;
  }

  body.about-page main > section.reference-section .reference-stage {
    min-height: clamp(620px, 92svh, 760px);
    padding: clamp(4.75rem, 11vh, 6rem) 0.75rem clamp(2rem, 5vh, 3rem);
  }

  body.about-page main > section.reference-section .reference-copy {
    width: min(76vw, 320px);
    max-width: 320px;
    z-index: 10;
  }

  body.about-page main > section.reference-section .reference-copy .reference-kicker {
    font-size: 0.62rem;
    margin-bottom: 0.65rem;
    gap: 0.55rem;
  }

  body.about-page main > section.reference-section .reference-copy .reference-kicker::before {
    width: 1.5rem;
  }

  body.about-page main > section.reference-section .reference-copy h2 {
    font-size: clamp(1.15rem, 5.2vw, 1.48rem) !important;
    line-height: 1.22 !important;
  }

  body.about-page main > section.reference-section .reference-copy p {
    font-size: clamp(0.68rem, 3.05vw, 0.75rem) !important;
    line-height: 1.65 !important;
    max-width: 34ch !important;
    margin-top: 0.95rem !important;
    font-weight: 500 !important;
  }

  body.about-page main > section.reference-section .media-card {
    animation: aboutReferenceAmbientMobile 7.5s ease-in-out infinite !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  }

  body.about-page main > section.reference-section .media-a {
    width: clamp(56px, 15vw, 68px);
    left: 0.4rem;
    top: 17%;
    right: auto;
    bottom: auto;
  }

  body.about-page main > section.reference-section .media-b {
    width: clamp(56px, 15vw, 68px);
    right: 0.4rem;
    top: 17%;
    left: auto;
    bottom: auto;
  }

  body.about-page main > section.reference-section .media-c {
    width: clamp(64px, 17vw, 78px);
    left: 0.25rem;
    bottom: 7%;
    top: auto;
    right: auto;
  }

  body.about-page main > section.reference-section .media-d {
    width: clamp(68px, 18vw, 82px);
    right: 0.25rem;
    bottom: 8%;
    top: auto;
    left: auto;
  }
}

@media (max-width: 420px) {
  body.about-page main > section.reference-section .reference-stage {
    min-height: clamp(580px, 88svh, 680px);
  }

  body.about-page main > section.reference-section .reference-copy {
    width: min(80vw, 290px);
    max-width: 290px;
  }

  body.about-page main > section.reference-section .reference-copy h2 {
    font-size: clamp(1.08rem, 4.8vw, 1.32rem) !important;
  }

  body.about-page main > section.reference-section .reference-copy p {
    font-size: 0.67rem !important;
    max-width: 32ch !important;
  }

  body.about-page main > section.reference-section .media-a,
  body.about-page main > section.reference-section .media-b {
    width: 50px;
    top: 15%;
  }

  body.about-page main > section.reference-section .media-c,
  body.about-page main > section.reference-section .media-d {
    width: 58px;
    bottom: 5%;
  }
}

@keyframes aboutReferenceAmbientMobile {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(4px, -5px, 0) rotate(0.5deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.about-page main > section.reference-section .media-card {
    animation: none !important;
    transform: none !important;
  }
}
