:root {
  --xm-ember: #e75a2b;
  --xm-gold: #f3b548;
  --xm-teal: #0f6c74;
  --xm-ink: #172033;
  --xm-mist: #f6f0e7;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(243, 181, 72, 0.24), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(15, 108, 116, 0.16), transparent 24%),
    linear-gradient(180deg, #fffdfa 0%, #f6f0e7 100%);
}

.page-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.18;
  background-image:
    radial-gradient(rgba(23, 32, 51, 0.08) 0.55px, transparent 0.55px),
    radial-gradient(rgba(231, 90, 43, 0.04) 0.55px, transparent 0.55px);
  background-position: 0 0, 18px 18px;
  background-size: 24px 24px, 24px 24px;
  mix-blend-mode: multiply;
}

main {
  position: relative;
  z-index: 2;
}

.floating-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.65;
  animation: float-orb 10s ease-in-out infinite;
}

.floating-orb-one {
  top: 8rem;
  right: -3rem;
  height: 16rem;
  width: 16rem;
  background: rgba(231, 90, 43, 0.22);
}

.floating-orb-two {
  bottom: 6rem;
  left: -2rem;
  height: 14rem;
  width: 14rem;
  background: rgba(15, 108, 116, 0.18);
  animation-delay: -4s;
}

.hero-stage {
  position: relative;
}

.hero-stage::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 2.8rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(231, 90, 43, 0.12), rgba(15, 108, 116, 0.12));
  z-index: -1;
  opacity: 0.7;
}

.program-nav {
  position: sticky;
  top: 1rem;
  z-index: 40;
  transition: transform 240ms ease, box-shadow 240ms ease, background-color 240ms ease;
}

.program-nav.is-condensed {
  box-shadow: 0 18px 50px rgba(23, 32, 51, 0.14);
  background: rgba(255, 255, 255, 0.9);
}

.program-link {
  position: relative;
  white-space: nowrap;
  transition: color 220ms ease, background-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.program-link:hover {
  transform: translateY(-1px);
  color: var(--xm-ink);
}

.program-link.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--xm-ember), var(--xm-teal));
  box-shadow: 0 16px 30px rgba(23, 32, 51, 0.18);
}

.program-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 80px rgba(23, 32, 51, 0.1);
  backdrop-filter: blur(22px);
  transition: transform 280ms ease, box-shadow 280ms ease;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 90px rgba(23, 32, 51, 0.14);
}

.program-card-media {
  position: relative;
  height: 17rem;
  overflow: hidden;
}

.program-card-media img {
  transition: transform 700ms ease;
}

.program-card:hover .program-card-media img {
  transform: scale(1.04);
}

.program-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 32, 51, 0.02), rgba(23, 32, 51, 0.22));
}

.program-card-body {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1.75rem;
}

.program-card-icon {
  margin-top: -3rem;
  margin-bottom: 1rem;
  display: inline-flex;
  width: 3.5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 1.25rem;
  box-shadow: 0 18px 40px rgba(23, 32, 51, 0.12);
}

.program-section {
  position: relative;
  scroll-margin-top: 7rem;
}

.program-section::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(231, 90, 43, 0), rgba(231, 90, 43, 0.3), rgba(15, 108, 116, 0.3), rgba(15, 108, 116, 0));
}

.section-panel {
  position: relative;
  overflow: hidden;
  border-radius: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.76);
  padding: 2rem;
  box-shadow: 0 24px 80px rgba(23, 32, 51, 0.11);
  backdrop-filter: blur(24px);
}

.section-panel::after {
  content: '';
  position: absolute;
  inset: auto -5rem -5rem auto;
  height: 12rem;
  width: 12rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(243, 181, 72, 0.22), transparent 70%);
}

.media-panel {
  position: relative;
  overflow: hidden;
  border-radius: 2.4rem;
  padding: 1rem;
  box-shadow: 0 24px 80px rgba(23, 32, 51, 0.16);
}

.media-panel img {
  display: block;
}

.media-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.media-panel-ember::before {
  background: linear-gradient(145deg, rgba(231, 90, 43, 0.95), rgba(23, 32, 51, 0.92));
}

.media-panel-teal::before {
  background: linear-gradient(145deg, rgba(15, 108, 116, 0.95), rgba(23, 32, 51, 0.92));
}

.media-panel-gold::before {
  background: linear-gradient(145deg, rgba(243, 181, 72, 0.96), rgba(23, 32, 51, 0.92));
}

.media-panel > * {
  position: relative;
  z-index: 1;
}

.media-panel-copy {
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 2rem;
  z-index: 2;
}

.media-panel-copy::before {
  content: '';
  position: absolute;
  inset: -1rem;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(23, 32, 51, 0), rgba(23, 32, 51, 0.6));
  z-index: -1;
}

.focus-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(23, 32, 51, 0.06);
  background: rgba(255, 255, 255, 0.9);
  padding: 1.25rem;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.focus-card:hover {
  transform: translateY(-4px);
  border-color: rgba(231, 90, 43, 0.18);
  box-shadow: 0 18px 40px rgba(23, 32, 51, 0.1);
}

.focus-card h4 {
  margin-top: 1rem;
  color: var(--xm-ink);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}

.focus-card p {
  margin-top: 0.6rem;
  color: rgb(71 85 105);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.7;
}

.focus-icon {
  width: 1.3rem;
  height: 1.3rem;
  color: var(--xm-ember);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: transform 750ms cubic-bezier(0.22, 1, 0.36, 1), opacity 750ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

@keyframes float-orb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -16px, 0) scale(1.05);
  }
}

@media (max-width: 1023px) {
  .program-nav {
    top: 0.75rem;
  }

  .program-section::before {
    left: 1rem;
    right: 1rem;
  }

  .media-panel-copy {
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
  }
}

@media (max-width: 767px) {
  .section-panel,
  .program-card-body {
    padding: 1.35rem;
  }

  .media-panel {
    padding: 0.8rem;
  }

  .media-panel-copy h2 {
    font-size: 1.9rem;
  }

  .program-card-icon {
    width: 3rem;
    height: 3rem;
    margin-top: -2.65rem;
  }
}