/* ===================================================================
   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; }
.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: column;
  gap: 0.75rem;
  overflow: hidden;
  height: 100%;
  padding: 3rem 0;
  justify-content: center;
  /* subtle left-edge and right-edge fade */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}
@media (min-width: 1024px) { .stats-panel__marquee-wrap { padding: 2rem 0; } }

.stats-marquee {
  overflow: hidden;
  width: 100%;
}

.stats-marquee__track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  will-change: transform;
}

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

/* Row 2 — scrolls right (reverse) */
.stats-marquee--right .stats-marquee__track {
  animation: marquee-right 28s linear infinite;
}

/* 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);
}

@keyframes marquee-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-right {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(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; }
.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; } }

/* 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 bottom so images touch the bottom side of the page */
@media (min-width: 1024px) {
  .early-years-panel .feature-panel__inner {
    align-items: stretch;
    padding-bottom: 0;
  }
  .early-years-panel .feature-panel__flex {
    align-items: stretch;
    height: 100%;
  }
  .early-years-panel .feature-panel__col:first-child {
    align-self: center;
  }
  .early-years-panel .feature-panel__col:last-child {
    align-self: flex-end;
    margin-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: 340px; height: 340px;
  position: relative;
  perspective: 1200px;
  cursor: grab;
}
@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__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: 70px; height: 52px;
  left: 50%; top: 50%;
  margin-left: -35px; margin-top: -26px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  backface-visibility: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
@media (min-width: 640px) {
  .photo-globe__tile { width: 82px; height: 60px; margin-left: -41px; margin-top: -30px; }
}
@media (min-width: 1024px) {
  .photo-globe__tile { width: 90px; height: 66px; margin-left: -45px; margin-top: -33px; }
}

.photo-globe__tile:hover {
  transform: translateZ(30px) scale(1.2) !important;
  box-shadow: 0 8px 30px rgba(200,162,74,0.4), 0 0 0 2px rgba(200,162,74,0.6);
  border-color: rgba(200,162,74,0.7);
  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;
  background: rgba(10,15,25,0.92);
  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: 90vw; max-height: 85vh;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  object-fit: contain;
  transform: scale(0.9);
  transition: transform 0.35s ease;
}
.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; }
