/* Mockup carousel — crossfade + controls. Pairs with assets/js/carousel.js.
   The slides are already position:absolute (their Framer classes handle sizing
   and centring); this stylesheet only stacks and crossfades them and makes the
   arrows behave like buttons. */

[data-carousel] { position: relative; }

/* Slides occupy the same spot and crossfade via opacity. The first slide carries
   `is-active` in the markup so exactly one shows before JS runs (and if JS fails). */
[data-carousel] [data-carousel-slide] {
  transition: opacity 0.6s ease;
}
[data-carousel] [data-carousel-slide]:not(.is-active) {
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
[data-carousel] [data-carousel-slide].is-active {
  opacity: 1;
  z-index: 1;
}

/* Controls sit above the slides. Arrows are never dimmed: the loop wraps, so
   "previous" from the first slide is always valid. */
[data-carousel] [data-carousel-nav] { z-index: 2; }
[data-carousel] [data-carousel-prev],
[data-carousel] [data-carousel-next] {
  cursor: pointer;
  opacity: 1 !important;
  -webkit-tap-highlight-color: transparent;
}
[data-carousel] [data-carousel-prev]:focus-visible,
[data-carousel] [data-carousel-next]:focus-visible {
  outline: 2px solid rgb(232, 80, 58);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  [data-carousel] [data-carousel-slide] { transition: none; }
}

/* ------------------------------------------------------------------------
   NST mockup marquee (Core Admissions Timeline)
   A continuous horizontal filmstrip of phone mockups that pauses on hover.
   Same seamless-loop trick as the site marquee: the 5 items are duplicated
   once in the markup and the track slides translateX(0) -> -50%, so the
   second set lands exactly where the first began. Each item carries its gap
   as margin-right (incl. the last of each set) to keep -50% pixel-exact.
   Scoped to this section — no relation to the crossfade engine above. */
.nst-mockup-marquee {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.nst-mockup-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: nst-mockup-scroll var(--nst-marquee-dur, 40s) linear infinite;
}
.nst-mockup-marquee:hover .nst-mockup-track {
  animation-play-state: paused;
}
.nst-mockup {
  flex: none;
  width: 256px;               /* was 300 — scaled down ~15%, felt too dominant */
  height: 530px;              /* keeps the 1026x2122 mockup ratio */
  margin-right: 40px;
}
.nst-mockup img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
@keyframes nst-mockup-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .nst-mockup-track { animation: none; }
}
