/* ==========================================================================
   SCROLL-DRIVEN 4-STEP FLIGHT ITINERARY ROUTE MAP (FOCUSED STEP SHOWCASE)
   ========================================================================== */

.s2ncr-process-section {
  background-color: var(--ncr-white);
  border-top: 1px solid var(--ncr-line);
  border-bottom: 1px solid var(--ncr-line);
  position: relative;
}

/* Scroll Track Container (Desktop height provides scroll distance for pinning) */
.s2ncr-process-scroll-wrapper {
  position: relative;
}

@media (min-width: 992px) {
  .s2ncr-process-scroll-wrapper {
    height: 380vh; /* Smooth, comfortable scroll duration across 4 steps */
  }

  /* Pinned / Sticky Stage in Viewport */
  .s2ncr-process-sticky-stage {
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
    min-height: 600px;
    max-height: 840px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 24px 0 28px 0;
    background: radial-gradient(circle at 50% 30%, rgba(30, 62, 133, 0.035) 0%, transparent 70%);
  }
}

@media (max-width: 991px) {
  .s2ncr-process-sticky-stage {
    padding: 44px 0 48px 0;
  }
}

/* Stage Header with Milestone Pill */
.s2ncr-process-stage-header {
  text-align: center;
  margin-bottom: 16px;
}

.s2ncr-process-milestone-tag {
  font-family: var(--ncr-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ncr-royal);
  background: rgba(30, 62, 133, 0.08);
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(30, 62, 133, 0.16);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.s2ncr-process-milestone-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--ncr-gold);
  animation: s2ncr-gate-blink 1.8s infinite;
}

/* Connected Flight Track on Desktop */
.s2ncr-flight-track {
  position: relative;
  margin: 12px 0 20px 0;
}

.s2ncr-flight-track-line {
  position: absolute;
  top: 24px;
  left: calc(12.5% - 12px);
  right: calc(12.5% - 12px);
  height: 3px;
  border-top: 2px dashed rgba(30, 62, 133, 0.22);
  z-index: 1;
}

.s2ncr-flight-track-active {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--ncr-gold), var(--ncr-royal));
  box-shadow: 0 0 10px rgba(227, 169, 61, 0.6);
  transition: width 0.25s linear;
}

/* Flying Airplane / Beacon Marker */
.s2ncr-flight-plane-marker {
  position: absolute;
  top: -8px;
  left: 0%;
  width: 22px;
  height: 22px;
  color: var(--ncr-gold);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: left 0.25s linear;
  filter: drop-shadow(0 2px 6px rgba(227, 169, 61, 0.6));
  z-index: 3;
}

/* 4 Step Waypoint Nodes */
.s2ncr-waypoint-nodes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 2;
}

.s2ncr-waypoint-node-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
}

.s2ncr-waypoint-node {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ncr-font-mono);
  font-size: 15px;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  background-color: var(--ncr-white);
  border: 2px solid var(--ncr-line);
  color: var(--ncr-charcoal-muted);
  box-shadow: 0 4px 10px rgba(21, 42, 92, 0.06);
  cursor: pointer;
}

.s2ncr-waypoint-node:hover {
  border-color: var(--ncr-royal);
  color: var(--ncr-royal);
  transform: scale(1.08);
}

/* Active Step Beacon Node */
.s2ncr-waypoint-node.s2ncr-active {
  background: linear-gradient(135deg, var(--ncr-gold), #df9b28);
  border-color: var(--ncr-gold);
  color: var(--ncr-ink);
  box-shadow: 0 6px 18px rgba(227, 169, 61, 0.45);
  animation: s2ncr-radar-pulse 2.5s infinite;
  transform: scale(1.12);
}

/* Completed Step Node */
.s2ncr-waypoint-node.s2ncr-completed {
  background-color: var(--ncr-royal);
  border-color: var(--ncr-royal);
  color: var(--ncr-white);
  box-shadow: 0 4px 12px rgba(30, 62, 133, 0.25);
}

.s2ncr-waypoint-node-label {
  font-family: var(--ncr-font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ncr-charcoal-muted);
  text-transform: uppercase;
  margin-top: 8px;
  transition: color 0.3s ease;
}

.s2ncr-waypoint-node-wrap.s2ncr-active .s2ncr-waypoint-node-label {
  color: var(--ncr-ink);
  font-weight: 700;
}

/* ==========================================================================
   FOCUSED SINGLE-STEP SHOWCASE STAGE DECK
   ========================================================================== */

.s2ncr-process-showcase-wrap {
  position: relative;
  min-height: 310px;
  margin: 12px 0 16px 0;
}

@media (min-width: 992px) {
  .s2ncr-process-showcase-wrap {
    min-height: 310px;
  }
}

/* Individual Showcase Step Card */
.s2ncr-showcase-card {
  background: #FFFFFF;
  border: 1px solid var(--ncr-line);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(21, 42, 92, 0.09);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.55fr auto 1fr;
  align-items: stretch;
  opacity: 0;
  pointer-events: none;
  transform: translateY(26px) scale(0.96);
  filter: blur(4px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 992px) {
  .s2ncr-showcase-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
}

/* Top Accent Line */
.s2ncr-showcase-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ncr-gold), var(--ncr-royal));
  z-index: 2;
}

/* Active State */
.s2ncr-showcase-card.s2ncr-is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  filter: blur(0);
  z-index: 5;
}

/* Past / Exited State (for smooth exit) */
.s2ncr-showcase-card.s2ncr-is-past {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-26px) scale(0.96);
  filter: blur(3px);
  z-index: 1;
}

/* Main Section of Showcase Card */
.s2ncr-showcase-main {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.s2ncr-showcase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.s2ncr-showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ncr-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ncr-royal);
  background: rgba(30, 62, 133, 0.08);
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(30, 62, 133, 0.14);
}

.s2ncr-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--ncr-gold);
}

.s2ncr-showcase-code {
  font-family: var(--ncr-font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ncr-charcoal-muted);
  background: rgba(21, 42, 92, 0.04);
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px dashed var(--ncr-line);
}

.s2ncr-showcase-title {
  font-family: var(--ncr-font-sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--ncr-ink);
  line-height: 1.25;
  margin-bottom: 8px;
}

.s2ncr-showcase-desc {
  font-size: 13.5px;
  color: var(--ncr-charcoal-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  max-width: 620px;
}

.s2ncr-showcase-perks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.s2ncr-showcase-perk {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ncr-charcoal);
}

.s2ncr-showcase-perk svg {
  color: var(--ncr-green);
  flex-shrink: 0;
}

/* Perforation Divider with Notches */
.s2ncr-showcase-perforation {
  position: relative;
  width: 1px;
  border-left: 2px dashed rgba(21, 42, 92, 0.14);
  background-color: transparent;
}

.s2ncr-showcase-notch-top,
.s2ncr-showcase-notch-bottom {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--ncr-white);
  border: 1px solid var(--ncr-line);
  transform: translateX(-50%);
  z-index: 3;
}

.s2ncr-showcase-notch-top {
  top: -11px;
}

.s2ncr-showcase-notch-bottom {
  bottom: -11px;
}

/* Right Aside Clearance Stub */
.s2ncr-showcase-aside {
  background: #FAF8F3;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.s2ncr-aside-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed var(--ncr-line);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.s2ncr-aside-gate {
  font-family: var(--ncr-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ncr-royal);
  letter-spacing: 0.06em;
}

.s2ncr-aside-status {
  font-family: var(--ncr-font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ncr-green);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.s2ncr-aside-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.s2ncr-aside-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.s2ncr-aside-lbl {
  font-family: var(--ncr-font-mono);
  font-size: 10.5px;
  color: var(--ncr-charcoal-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.s2ncr-aside-val {
  font-weight: 600;
  color: var(--ncr-ink);
  font-size: 12.5px;
}

.s2ncr-aside-cta {
  width: 100%;
  justify-content: center;
}

/* Stage Bottom Controller & Indicators */
.s2ncr-process-stage-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(21, 42, 92, 0.08);
  padding-top: 14px;
  margin-top: 4px;
}

.s2ncr-process-stage-indicator {
  display: flex;
  align-items: center;
  gap: 20px;
}

.s2ncr-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ncr-font-mono);
  font-size: 11.5px;
  color: var(--ncr-charcoal-muted);
}

.s2ncr-scroll-hint svg {
  animation: s2ncr-float 2s infinite ease-in-out;
  color: var(--ncr-royal);
}

.s2ncr-step-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.s2ncr-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--ncr-line);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.s2ncr-step-dot:hover {
  background-color: var(--ncr-royal);
}

.s2ncr-step-dot.s2ncr-active {
  width: 26px;
  border-radius: 12px;
  background-color: var(--ncr-gold);
  box-shadow: 0 0 8px rgba(227, 169, 61, 0.5);
}

.s2ncr-step-quick-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.s2ncr-step-nav-btn {
  background: transparent;
  border: 1px solid var(--ncr-line);
  border-radius: 6px;
  padding: 5px 12px;
  font-family: var(--ncr-font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ncr-charcoal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.s2ncr-step-nav-btn:hover {
  background: rgba(30, 62, 133, 0.08);
  border-color: var(--ncr-royal);
  color: var(--ncr-royal);
}

.s2ncr-step-nav-divider {
  width: 1px;
  height: 16px;
  background-color: var(--ncr-line);
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 991px) {
  .s2ncr-flight-track {
    display: none;
  }
  
  .s2ncr-showcase-card {
    display: none;
    grid-template-columns: 1fr;
    position: relative;
    opacity: 1;
    transform: none;
    filter: none;
    margin-bottom: 16px;
  }

  .s2ncr-showcase-card.s2ncr-is-active {
    display: flex;
    flex-direction: column;
  }

  .s2ncr-showcase-perforation {
    width: 100%;
    height: 1px;
    border-left: none;
    border-top: 2px dashed rgba(21, 42, 92, 0.14);
  }

  .s2ncr-showcase-notch-top,
  .s2ncr-showcase-notch-bottom {
    display: none;
  }

  .s2ncr-process-stage-footer {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}

@media (max-width: 575px) {
  .s2ncr-showcase-main {
    padding: 20px 16px;
  }
  .s2ncr-showcase-aside {
    padding: 20px 16px;
  }
  .s2ncr-showcase-title {
    font-size: 18px;
  }
}
