/* ===================================================================
   Homepage panel styles — index.html only
   =================================================================== */

/* ───────── Hero panel ───────── */
.hero-panel {
  background: var(--color-navy);
}

.hero-panel__content {
  max-width: 48rem;
}

.hero-panel__heading {
  font-size: clamp(2rem, 6vw, 4.5rem);
  color: var(--color-paper);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-panel__desc {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(246, 244, 237, 0.75);
  line-height: 1.6;
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.hero-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-panel__scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  right: 1rem;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(246, 244, 237, 0.4);
  display: none;
}

@media (min-width: 640px) {
  .hero-panel__scroll-hint {
    display: flex;
    bottom: 2.5rem;
    right: 2.5rem;
  }
}

.hero-panel__scroll-hint span {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

.hero-panel__scroll-hint .line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, rgba(246, 244, 237, 0.4), transparent);
  animation: pulse 2s infinite;
}

/* ───────── Mission panel ───────── */
.mission-panel {
  background: var(--color-paper);
}

.mission-panel__inner {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 4rem 1.5rem;
}

@media (min-width: 640px) {
  .mission-panel__inner {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 768px) {
  .mission-panel__inner {
    padding-left: 5rem;
    padding-right: 5rem;
  }
}

@media (min-width: 1024px) {
  .mission-panel__inner {
    padding: 0 7rem;
  }
}

.mission-panel__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  max-width: 72rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .mission-panel__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.mission-panel__heading {
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--color-teal);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.mission-panel__heading em {
  color: var(--color-gold);
  font-style: italic;
}

.mission-panel__desc {
  color: rgba(35, 38, 43, 0.7);
  max-width: 28rem;
  line-height: 1.6;
}

.mission-panel__rule {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mission-panel__rule span {
  height: 1px;
  display: block;
}

.mission-panel__rule .r1 {
  width: 4rem;
  background: var(--color-gold);
}

.mission-panel__rule .r2 {
  width: 2rem;
  background: var(--color-sage);
}

.mission-panel__rule .r3 {
  width: 1rem;
  background: var(--color-terracotta);
}

.quote-card {
  position: relative;
  background: var(--color-navy);
  border-radius: 1.5rem;
  padding: 2rem 2.5rem;
  overflow: hidden;
}

.quote-card__mark {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-family: var(--font-fraunces);
  font-size: 120px;
  line-height: 1;
  color: rgba(200, 162, 74, 0.1);
  user-select: none;
}

.quote-card__eyebrow {
  color: var(--color-gold);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.quote-card__text {
  font-family: var(--font-fraunces);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--color-paper);
  font-weight: 300;
  line-height: 1.6;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.quote-card__watermark {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide2);
  color: rgba(246, 244, 237, 0.2);
}

.mission-panel__accent {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(to bottom, var(--color-sage), var(--color-gold), var(--color-terracotta));
  opacity: 0.6;
}

/* ───────── Stats panel ───────── */
.stats-panel {
  background: var(--color-navy);
}

.stats-panel__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}

.stats-panel__overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 42, 74, 0.45);
}

.stats-panel__grid {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  padding: 3rem 1.5rem;
  align-items: center;
}

@media (min-width: 640px) {
  .stats-panel__grid {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 1024px) {
  .stats-panel__grid {
    grid-template-columns: 5fr 7fr;
    padding: 0;
    align-items: stretch;
  }
}

.stats-panel__text {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 1024px) {
  .stats-panel__text {
    padding: 0 3rem 0 5rem;
  }
}

.stats-panel__heading {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  color: var(--color-paper);
  font-weight: 600;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.stats-panel__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .stats-panel__cards {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.stat-card {
  position: relative;
}

.stat-card__inner {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.stat-card__inner:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(200, 162, 74, 0.3);
}

.stat-card__value {
  font-family: var(--font-fraunces);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.375rem;
  min-height: 1.2em;
}

.stat-card__label {
  font-family: var(--font-fraunces);
  font-size: 1rem;
  color: var(--color-paper);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.stat-card__sub {
  font-size: 0.75rem;
  color: rgba(246, 244, 237, 0.5);
  margin-top: 0.25rem;
}

.stat-card__badge {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--color-teal);
  font-weight: 500;
}

.stats-panel__carousel-wrap {
  display: none;
}

/* legacy — replaced by marquee */

/* ───────── Stats marquee strips ───────── */
.stats-panel__marquee-wrap {
  display: flex;
  flex-direction: row;
  gap: 0.35rem;
  overflow: hidden;
  height: 100%;
  padding: 3rem 0;
  justify-content: center;
  /* subtle top-edge and bottom-edge fade */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
}

@media (min-width: 1024px) {
  .stats-panel__marquee-wrap {
    padding: 2rem 0;
  }
}

.stats-marquee {
  overflow: hidden;
  width: 200px;
  height: 100%;
  flex: 0 0 auto;
}

@media (min-width: 640px) {
  .stats-marquee {
    width: 240px;
  }
}

@media (min-width: 1024px) {
  .stats-marquee {
    width: 260px;
  }
}

.stats-marquee__track {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  height: max-content;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Row 1 — scrolls up continuously */
.stats-marquee--left .stats-marquee__track {
  animation: marquee-up 32s linear infinite;
  animation-fill-mode: both;
}

/* Row 2 — scrolls down continuously; animation-fill-mode: both applies the
   from-keyframe (translateY(-50%)) immediately so no empty box or delayed
   image appears — seamless from the very first frame */
.stats-marquee--right .stats-marquee__track {
  animation: marquee-down 28s linear infinite;
  animation-fill-mode: both;
}

/* Pause on hover for UX delight */
.stats-marquee:hover .stats-marquee__track {
  animation-play-state: paused;
}

.stats-marquee__item {
  flex-shrink: 0;
  width: 200px;
  height: 135px;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

@media (min-width: 640px) {
  .stats-marquee__item {
    width: 240px;
    height: 160px;
  }
}

@media (min-width: 1024px) {
  .stats-marquee__item {
    width: 260px;
    height: 175px;
  }
}

.stats-marquee__item:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border-color: rgba(200, 162, 74, 0.5);
  z-index: 2;
}

.stats-marquee__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.stats-marquee__item:hover img {
  transform: scale(1.08);
}

/* Seamless loop: each track contains 12 items (6 original + 6 duplicates).
   Moving exactly -50% scrolls through all originals and lands on the
   duplicate set, which is pixel-identical — creating a gapless infinite loop.
   The gap between items is uniform so no offset correction is needed. */
@keyframes marquee-up {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }
}

@keyframes marquee-down {
  0% {
    transform: translateY(-50%);
  }

  100% {
    transform: translateY(0);
  }
}

/* ───────── Pillars panel ───────── */
.pillars-panel {
  background: var(--color-paper);
}

.pillars-panel__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 1.5rem;
}

@media (min-width: 640px) {
  .pillars-panel__inner {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 768px) {
  .pillars-panel__inner {
    padding-left: 5rem;
    padding-right: 5rem;
  }
}

@media (min-width: 1024px) {
  .pillars-panel__inner {
    padding: 0 6rem;
  }
}

.pillars-panel__heading {
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--color-teal);
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.pillars-panel__heading em {
  color: var(--color-gold);
  font-style: italic;
}

.pillars-panel__desc {
  font-size: 1rem;
  color: rgba(35, 38, 43, 0.65);
  max-width: 42rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 72rem;
}

@media (min-width: 640px) {
  .pillars-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pillar-card {
  border-radius: 1rem;
  padding: 1.25rem;
  border-top: 4px solid;
  transition: all 0.3s ease;
}

.pillar-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.pillar-card .icon {
  font-size: 1.875rem;
  display: block;
  margin-bottom: 0.75rem;
}

.pillar-card h3 {
  font-size: 1rem;
  color: var(--color-teal);
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.pillar-card p {
  font-size: 0.875rem;
  color: rgba(35, 38, 43, 0.65);
  line-height: 1.6;
}

/* ───────── Feature panels (Early Years / Primary / Beyond / Campus) ───────── */
.feature-panel {
  background: #fff;
}

.feature-panel__inner {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 4rem 1.5rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) {
  .feature-panel__inner {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 768px) {
  .feature-panel__inner {
    padding-left: 5rem;
    padding-right: 5rem;
  }
}

@media (min-width: 1024px) {
  .feature-panel__inner {
    padding: 0 7rem;
  }
}

.feature-panel__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}

.campus-panel .feature-panel__bg {
  opacity: 0.10;
}

.feature-panel__overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
}

.feature-panel__flex {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 72rem;
  width: 100%;
  align-items: center;
}

@media (min-width: 1024px) {
  .feature-panel__flex {
    flex-direction: row;
    gap: 4rem;
  }
}

.feature-panel__flex.is-reversed {
  flex-direction: column;
}

@media (min-width: 1024px) {
  .feature-panel__flex.is-reversed {
    flex-direction: row-reverse;
  }
}

.feature-panel__col {
  flex: 1;
  width: 100%;
}

.feature-panel__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.375rem 1rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide2);
}

.feature-panel__badge.gold {
  background: rgba(200, 162, 74, 0.15);
  border: 1px solid rgba(200, 162, 74, 0.3);
  color: var(--color-gold);
}

.feature-panel__badge.navy {
  background: rgba(27, 42, 74, 0.1);
  border: 1px solid rgba(27, 42, 74, 0.2);
  color: var(--color-navy);
}

.feature-panel__badge.sage {
  background: rgba(107, 143, 113, 0.15);
  border: 1px solid rgba(107, 143, 113, 0.3);
  color: var(--color-sage);
}

.feature-panel__heading {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.feature-panel__subheading {
  font-family: var(--font-fraunces);
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.feature-panel__desc {
  font-size: 0.875rem;
  color: rgba(35, 38, 43, 0.75);
  line-height: 1.6;
  max-width: 28rem;
  margin-bottom: 2rem;
}

.feature-panel__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: gap 0.2s ease;
}

.feature-panel__link:hover {
  gap: 0.75rem;
}

.feature-panel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.feature-carousel {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  aspect-ratio: 4/3;
  height: 280px;
  border: 1px solid rgba(27, 42, 74, 0.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

@media (min-width: 640px) {
  .feature-carousel {
    height: 350px;
  }
}

@media (min-width: 1024px) {
  .feature-carousel {
    height: 380px;
  }
}

@media (min-width: 1024px) {
  .edge-image-panel .feature-panel__inner {
    align-items: stretch;
    padding-right: 0;
  }

  .edge-image-panel .feature-panel__flex {
    align-items: stretch;
    gap: 4rem;
    height: 100%;
    max-width: none;
  }

  .foundation-panel .feature-panel__col:first-child {
    order: 2;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
  }

  .foundation-panel .feature-panel__col:nth-child(2) {
    order: 1;
    align-self: center;
    max-width: 34rem;
  }

  .early-years-panel .feature-panel__col:first-child,
  .primary-panel .feature-panel__col:first-child {
    order: 1;
    align-self: center;
    max-width: 34rem;
  }

  .early-years-panel .feature-panel__col:last-child,
  .primary-panel .feature-panel__col:last-child {
    order: 2;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
  }

  .edge-image-panel .feature-carousel {
    width: min(48vw, 44rem);
    max-width: none;
    height: 100%;
    aspect-ratio: auto;
    margin: 0;
    border-radius: 1rem 0 0 1rem;
  }

  .early-years-panel.edge-image-panel .ey-bento {
    width: min(48vw, 44rem);
    max-width: none;
    height: 100%;
    grid-auto-rows: minmax(0, 1fr);
    margin: 0;
    border-radius: 1rem 0 0 1rem;
    overflow: hidden;
  }
}

/* facility / activity chips */
.tag-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.5rem 0.875rem;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide3);
  transition: all 0.2s ease;
}

.tag-chip.on-navy {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(246, 244, 237, 0.7);
}

.tag-chip.on-navy:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(200, 162, 74, 0.3);
}

.tag-chip.on-paper {
  background: rgba(14, 76, 70, 0.08);
  border: 1px solid rgba(14, 76, 70, 0.15);
  color: var(--color-teal);
}

.tag-chip.on-paper:hover {
  background: rgba(14, 76, 70, 0.15);
}

/* ───────── Beyond panel (navy, two-col) ───────── */
.beyond-panel {
  background: var(--color-navy);
}

.beyond-panel__inner {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 4rem 1.5rem;
}

@media (min-width: 640px) {
  .beyond-panel__inner {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 1024px) {
  .beyond-panel__inner {
    padding-left: 7rem;
    padding-right: 0;
  }
}

.beyond-panel__grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .beyond-panel__grid {
    grid-template-columns: 5fr 7fr;
  }
}

.beyond-panel__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0;
}

@media (min-width: 1024px) {
  .beyond-panel__text {
    padding-right: 3rem;
  }
}

.beyond-panel__heading {
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--color-paper);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.beyond-panel__heading em {
  color: var(--color-gold);
  font-style: italic;
}

.beyond-panel__desc {
  font-size: 0.875rem;
  color: rgba(246, 244, 237, 0.65);
  line-height: 1.6;
  max-width: 28rem;
  margin-bottom: 2rem;
}

/* legacy carousel wrap — replaced by globe */
.beyond-panel__carousel-wrap {
  display: none;
}

/* ───────── Early Years Bento Grid ───────── */
.ey-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 100px;
  gap: 0.5rem;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  perspective: 800px;
}

@media (min-width: 640px) {
  .ey-bento {
    grid-auto-rows: 110px;
    gap: 0.625rem;
    max-width: 32rem;
  }
}

@media (min-width: 1024px) {
  .ey-bento {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 110px;
    max-width: 38rem;
    gap: 0.5rem;
    margin-bottom: 0;
  }
}

/* Align Early Years columns to the shared edge-image layout on desktop */
@media (min-width: 1024px) {
  .early-years-panel.edge-image-panel .feature-panel__inner {
    padding-bottom: 0;
  }
}

.ey-bento__item {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.45s ease,
    z-index 0s 0.45s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  animation: bento-pop-in 0.5s ease both;
  animation-delay: var(--delay, 0s);
}

.ey-bento__item--tall {
  grid-row: span 2;
}

.ey-bento__item--wide {
  grid-column: span 2;
}

.ey-bento__item:hover {
  transform: scale(1.08) rotateX(2deg) rotateY(-2deg) translateZ(20px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28), 0 0 0 2px rgba(200, 162, 74, 0.4);
  z-index: 10;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.35s ease,
    z-index 0s;
}

.ey-bento__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.ey-bento__item:hover img {
  transform: scale(1.12);
}

.ey-bento__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(transparent, rgba(27, 42, 74, 0.85));
  color: var(--color-paper);
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}

.ey-bento__item:hover .ey-bento__label {
  opacity: 1;
  transform: translateY(0);
}

@keyframes bento-pop-in {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ───────── Beyond — 3D Photo Globe ───────── */
.beyond-panel__globe-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  position: relative;
}

@media (min-width: 1024px) {
  .beyond-panel__globe-wrap {
    padding: 2rem 3rem;
  }
}

.photo-globe {
  width: min(340px, calc(100vw - 3rem));
  height: min(340px, calc(100vw - 3rem));
  position: relative;
  perspective: 1200px;
  cursor: grab;
  border-radius: 50%;
  isolation: isolate;
}

@media (min-width: 640px) {
  .photo-globe {
    width: 400px;
    height: 400px;
  }
}

@media (min-width: 1024px) {
  .photo-globe {
    width: 440px;
    height: 440px;
  }
}

.photo-globe:active {
  cursor: grabbing;
}

.photo-globe::before,
.photo-globe::after {
  content: '';
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  pointer-events: none;
}

.photo-globe::before {
  z-index: -1;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.16), transparent 24%),
    radial-gradient(circle at 50% 52%, rgba(235, 184, 66, 0.14), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45) 70%, transparent 72%);
  filter: blur(2px);
}

.photo-globe::after {
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 18px 18px 40px rgba(255, 255, 255, 0.05),
    inset -28px -28px 50px rgba(0, 0, 0, 0.28),
    0 24px 80px rgba(0, 0, 0, 0.34);
}

.photo-globe__scene {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: globe-spin 60s linear infinite;
}

.photo-globe.is-dragging .photo-globe__scene {
  animation: none;
}

.photo-globe__tile {
  position: absolute;
  width: var(--tile-w, 62px);
  height: var(--tile-h, 46px);
  left: 50%;
  top: 50%;
  margin-left: calc(var(--tile-w, 62px) / -2);
  margin-top: calc(var(--tile-h, 46px) / -2);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.46);
  backface-visibility: hidden;
  cursor: pointer;
  transform:
    translate3d(var(--tx), var(--ty), var(--tz)) rotateY(var(--rot-y)) rotateX(var(--rot-x)) scale(var(--tile-depth-scale, 1));
  opacity: var(--tile-opacity, 0.92);
  filter: saturate(var(--tile-sat, 0.95)) brightness(var(--tile-bright, 0.88));
  transition:
    transform 0.32s cubic-bezier(0.16, 0.84, 0.44, 1),
    opacity 0.32s ease,
    filter 0.32s ease,
    box-shadow 0.32s ease,
    border-color 0.32s ease;
}

@media (min-width: 640px) {
  .photo-globe__tile {
    --tile-w: 70px;
    --tile-h: 52px;
  }
}

@media (min-width: 1024px) {
  .photo-globe__tile {
    --tile-w: 76px;
    --tile-h: 56px;
  }
}

.photo-globe__tile:hover {
  transform:
    translate3d(var(--tx), var(--ty), var(--tz)) rotateY(var(--rot-y)) rotateX(var(--rot-x)) translateZ(60px) scale(1.62);
  opacity: 1;
  filter: saturate(1.12) brightness(1.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.58), 0 0 0 2px rgba(235, 184, 66, 0.72);
  border-color: rgba(235, 184, 66, 0.9);
  z-index: 100;
}

.photo-globe__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.photo-globe__hint {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(246, 244, 237, 0.35);
  animation: hint-pulse 3s ease-in-out infinite;
}

@keyframes globe-spin {
  0% {
    transform: rotateY(0deg) rotateX(-8deg);
  }

  100% {
    transform: rotateY(360deg) rotateX(-8deg);
  }
}

@keyframes hint-pulse {

  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 0.7;
  }
}

/* ───────── Globe Lightbox ───────── */
.globe-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(10, 15, 25, 0.94);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.globe-lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.globe-lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-paper);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.globe-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.globe-lightbox__img {
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  border-radius: 0.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  object-fit: contain;
  transform: scale(0.9);
  transition: transform 0.35s ease;
  background: rgba(255, 255, 255, 0.04);
}

.globe-lightbox.is-open .globe-lightbox__img {
  transform: scale(1);
}

/* ───────── Admissions panel ───────── */
.admissions-panel {
  background: var(--color-navy);
}

.admissions-panel__bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background: radial-gradient(ellipse at 30% 50%, #d9d5cb 0%, transparent 60%);
}

.admissions-panel__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 1.5rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) {
  .admissions-panel__inner {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 768px) {
  .admissions-panel__inner {
    padding-left: 5rem;
    padding-right: 5rem;
  }
}

@media (min-width: 1024px) {
  .admissions-panel__inner {
    padding: 0 7rem;
  }
}

.admissions-panel__heading {
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--color-paper);
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.admissions-panel__desc {
  font-size: 0.875rem;
  color: rgba(246, 244, 237, 0.6);
  margin-bottom: 2.5rem;
  max-width: 32rem;
  line-height: 1.6;
}

.steps-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 80rem;
}

@media (min-width: 768px) {
  .steps-row {
    flex-direction: row;
  }
}

.step-card {
  flex: 1;
  position: relative;
}

.step-card__inner {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.step-card__inner:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(200, 162, 74, 0.2);
}

.step-card__num {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-paper);
  font-weight: 500;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.step-card h3 {
  font-size: 1.125rem;
  color: var(--color-paper);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.75rem;
  color: rgba(246, 244, 237, 0.55);
  line-height: 1.6;
  flex: 1;
}

.admissions-panel__cta {
  margin-top: 2.5rem;
  align-self: flex-start;
}

/* ───────── Closing panel ───────── */
.closing-panel {
  background: var(--color-navy);
}

.closing-panel__content {
  max-width: 36rem;
}

.closing-panel__heading {
  font-size: clamp(2rem, 6vw, 4.5rem);
  color: var(--color-paper);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.closing-panel__heading em {
  color: var(--color-gold);
  font-style: italic;
}

.closing-panel__desc {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(246, 244, 237, 0.75);
  line-height: 1.6;
  max-width: 32rem;
  margin-bottom: 2.5rem;
}

.closing-panel__contact {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide3);
  color: rgba(246, 244, 237, 0.4);
}

.closing-panel__crest {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 80px;
  height: 80px;
  opacity: 0.1;
  display: none;
}

@media (min-width: 640px) {
  .closing-panel__crest {
    display: block;
    right: 4rem;
    bottom: 4rem;
    width: 128px;
    height: 128px;
  }
}

.closing-panel__crest div {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 2px solid var(--color-paper);
  display: flex;
  align-items: center;
  justify-content: center;
}

.closing-panel__crest span {
  font-family: var(--font-fraunces);
  color: var(--color-paper);
  font-size: 2.25rem;
  font-weight: 700;
}

@media (max-width: 899px),
(pointer: coarse) {
  .hero-panel__heading {
    font-size: clamp(2.25rem, 12vw, 3.5rem);
  }

  .hero-panel__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mission-panel__inner,
  .pillars-panel__inner,
  .feature-panel__inner,
  .beyond-panel__inner,
  .admissions-panel__inner {
    height: auto;
    padding: 3rem 1.25rem;
  }

  .mission-panel__grid,
  .feature-panel__flex,
  .beyond-panel__grid {
    gap: 2rem;
  }

  .quote-card {
    border-radius: 1rem;
    padding: 1.5rem;
  }

  .quote-card__mark {
    font-size: 84px;
  }

  .stats-panel__grid {
    height: auto;
    gap: 2.25rem;
    padding: 3rem 1.25rem;
  }

  .stats-panel__cards {
    gap: 1rem;
  }

  .stats-panel__marquee-wrap {
    height: 420px;
    width: 100%;
    padding: 0;
  }

  .stats-marquee {
    width: calc((100vw - 3.25rem) / 2);
    max-width: 180px;
  }

  .stats-marquee__item {
    width: calc((100vw - 3.25rem) / 2);
    max-width: 180px;
    height: 120px;
  }

  .feature-panel__chips,
  .site-footer__badges {
    gap: 0.45rem;
  }

  .chip,
  .tag-chip {
    max-width: 100%;
    white-space: normal;
    line-height: 1.25;
    border-radius: 0.75rem;
  }

  .feature-carousel {
    height: clamp(230px, 62vw, 340px);
  }

  .ey-bento {
    grid-auto-rows: clamp(76px, 24vw, 100px);
    gap: 0.4rem;
  }

  .ey-bento__label {
    display: none;
  }

  .beyond-panel__globe-wrap {
    padding: 1rem 0 0;
  }

  .photo-globe__tile:hover {
    transform:
      translate3d(var(--tx), var(--ty), var(--tz)) rotateY(var(--rot-y)) rotateX(var(--rot-x)) translateZ(28px) scale(1.25);
  }

  .steps-row {
    gap: 0.85rem;
  }
}

@media (max-width: 380px) {
  .stats-panel__marquee-wrap {
    height: 360px;
  }

  .stats-marquee__item {
    height: 104px;
  }

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

  .ey-bento__item--wide {
    grid-column: span 2;
  }
}