/* Stable first paint: hero media must never appear as a temporary strip. */
.v11-hero-stage,
.v12-hero-visual,
.v13-application-visual {
  animation: none !important;
  clip-path: none !important;
  filter: none !important;
}

.v11-enter { animation-duration: .55s !important; }
.v11-hero-grid { align-items: stretch; }
.v11-hero-stage { min-height: 680px; background-position: center 62%; }
.v11-adults .v11-hero-stage { background-position: center 70%; }

.v12-hero-visual,
.v13-application-visual { min-height: 680px; background: #07111f; }

.v12-hero-visual img,
.v13-application-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

/* Restore real media that an older theme layer hides behind an opaque background. */
.pulse-page .page-intro-visual .page-intro-media {
  z-index: 0 !important;
  display: block !important;
  width: 100%;
  height: 100%;
  opacity: 1 !important;
  object-fit: cover;
}

.pulse-page .page-intro-visual .page-intro-overlay {
  z-index: 1 !important;
  display: block !important;
  background: linear-gradient(90deg,#050b14 0%,rgba(5,11,20,.94) 42%,rgba(5,11,20,.5) 72%,rgba(5,11,20,.18) 100%) !important;
}

.pulse-page .page-intro-visual > .shell { z-index: 2 !important; }
.pulse-page .page-intro-visual::before { display: none !important; }

/* Homepage course cards enhanced with the course assets already shipped by PULSE. */
.p9-program-grid > a[data-pulse-visual-ready='1'] {
  display: grid;
  grid-template-columns: minmax(210px,38%) 1fr;
  min-height: 390px;
  padding: 0 !important;
  overflow: hidden;
}

.pvf-program-visual {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #07111f;
}

.pvf-program-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,rgba(5,11,20,.06),rgba(5,11,20,.5));
  content: '';
}

.pvf-program-visual > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  transition: transform .65s cubic-bezier(.22,1,.36,1);
}

.p9-program-grid > a:hover .pvf-program-visual > img { transform: scale(1.035); }

.pvf-program-visual .p9-program-top {
  position: absolute;
  z-index: 1;
  top: 24px;
  right: 24px;
  left: 24px;
  color: #eaf3ff;
}

.pvf-program-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 30px;
}

.p9-program-grid .pvf-program-body h3 { margin: 44px 0 14px; }
.pvf-program-body .p9-program-meta { margin-top: auto; }

/* Events archive: put a real event visual into the unused right side of the hero. */
.lm-archive-hero { min-height: 760px; padding: 82px 0 0 !important; }
.pvf-events-grid { display: grid; grid-template-columns: 52% 48%; min-height: 678px; }
.pvf-events-copy { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 65px 58px 70px 0; }
.pvf-events-copy h1 { font-size: clamp(58px,6.2vw,92px); }
.pvf-events-visual { position: relative; min-height: 678px; margin: 0; overflow: hidden; border-left: 1px solid rgba(234,243,255,.13); background: #07111f; }
.pvf-events-visual::after { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(5,11,20,.34),transparent 28%),linear-gradient(0deg,rgba(5,11,20,.4),transparent 35%); content: ''; }
.pvf-events-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

@media (max-width: 1000px) {
  .v11-hero-stage,
  .v12-hero-visual,
  .v13-application-visual { min-height: 600px; }

  .p9-program-grid > a[data-pulse-visual-ready='1'] { grid-template-columns: minmax(190px,34%) 1fr; }
}

@media (max-width: 680px) {
  .v11-hero-stage,
  .v12-hero-visual,
  .v13-application-visual {
    min-height: 0;
    height: clamp(380px,112vw,480px);
    margin-inline: -16px;
    background-position: center 68%;
  }

  .v11-adults .v11-hero-stage { background-position: center 72%; }

  .pulse-page .page-intro-visual .page-intro-overlay {
    background: linear-gradient(180deg,#050b14 0%,rgba(5,11,20,.9) 45%,rgba(5,11,20,.24) 68%,#050b14 100%) !important;
  }

  .pulse-page .page-intro-visual .page-intro-media { object-position: 60% center; }

  .p9-program-grid > a[data-pulse-visual-ready='1'] { display: block; min-height: 0; }
  .pvf-program-visual { min-height: 0; height: 245px; }
  .pvf-program-visual > img { object-position: center 55%; }
  .pvf-program-body { min-height: 285px; padding: 22px; }
  .p9-program-grid .pvf-program-body h3 { margin: 20px 0 10px; }

  .lm-archive-hero { min-height: 0; padding-top: 74px !important; }
  .pvf-events-grid { display: flex; min-height: 0; flex-direction: column; }
  .pvf-events-copy { order: 1; padding: 55px 0 40px; }
  .pvf-events-copy h1 { font-size: clamp(43px,12vw,52px); }
  .pvf-events-visual { order: 2; min-height: 0; height: clamp(360px,105vw,460px); margin-inline: -16px; border: 0; border-top: 1px solid rgba(234,243,255,.13); }
}

@media (max-width: 380px) {
  .pvf-program-visual { height: 220px; }
  .pvf-program-body { min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .pvf-program-visual > img { transition: none; }
}

/* Developer credit: deliberately quiet, readable and crawlable. */
.pulse-studio-credit {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-top: 1px solid rgba(234,243,255,.1);
  background: #050b14;
  color: rgba(234,243,255,.48);
  font: 500 10px/1.4 "IBM Plex Mono",ui-monospace,monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pulse-studio-credit a {
  color: rgba(234,243,255,.8);
  transition: color .2s ease;
}

.pulse-studio-credit a:hover,
.pulse-studio-credit a:focus-visible { color: #fff; }

.pvf-mobile-login-item { display: none; }

@media (max-width: 1000px) {
  .pvf-mobile-login-item {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding-top: 18px;
    border-top: 1px solid rgba(234,243,255,.14);
  }

  .pvf-mobile-login-item > a {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid #2563ff;
    background: #2563ff;
    color: #fff !important;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .04em;
  }
}
