/* Desktop scroll stage: holds each panel in place while JavaScript slides it. */
@media (min-width: 992px) {
  .story-section {
    position: relative;
    height: 100vh;
  }

  .story-track {
    position: relative;
    width: 400%;
    height: 70vh;
    animation: story-flow 24s linear infinite;
  }

  .story-panel {
    width: 25%;
  }

  .story-panel {
    width: calc(25% - 56px);
    height: 70vh;
    margin: 28px;
    border: 1px solid rgba(214, 167, 44, .38);
    border-radius: 24px;
    background: rgba(255, 255, 255, .045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 45px rgba(0, 8, 24, .2);
  }

  .story-controls {
    position: absolute;
    z-index: 4;
    right: 42px;
    bottom: 42px;
    display: flex;
    gap: 10px;
  }

  .story-control {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(214, 167, 44, .55);
    border-radius: 50%;
    background: rgba(0, 22, 46, .58);
    color: #d6a72c;
    font-size: 1.1rem;
    transition: .2s ease, color .2s ease, transform .2s ease;
  }

  .story-control:hover,
  .story-control:focus-visible {
    background: #d6a72c;
    color: #00162e;
    transform: translateY(-2px);
    outline: none;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes story-flow {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}


@keyframes draw-arrow {
  from {
    opacity: 0;
  }

  to {
    opacity: 100%;
  }
}


/* Keep the discovery cue comfortably inside short mobile viewports. */
.hero-scroll {
  bottom: auto;
  top: 72%;
  font-size: 12px;
  letter-spacing: 2px;
  animation: discovery-pulse 2.2s ease-in-out infinite;
}

.hero-scroll i {
  font-size: 1.35rem;
  animation: discovery-bounce 1.25s ease-in-out infinite;
}

@keyframes discovery-pulse {

  0%,
  100% {
    opacity: .55;
  }

  50% {
    opacity: 1;
  }
}

@keyframes discovery-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(7px);
  }
}



@media (prefers-reduced-motion: reduce) {

  .hero-scroll,
  .hero-scroll i,
  .story-track {
    animation: none;
  }
}

/* Supporting credentials: distinct, readable cards without competing with the headline. */
.hero-side {
  position: relative;
  z-index: 1;
}

.coach-portrait {
  height: 300px;
  overflow: hidden;
  transition: 3s;

  /* border: 1px solid rgba(214,167,44,.48);
  border-radius: 22px;
  background: #03244a;
  box-shadow: 14px 16px 0 rgba(214,167,44,.72), 0 20px 42px rgba(0,8,24,.25); */
}

.coach-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  transition: 3s;
}

.background {
  position: absolute;
  opacity: 0.1;
}
.scaleUp{
  scale: 1.2;
  transition: all 2s ease-in;
}
.hero-stats>div {
  position: relative;
  padding: 10px;
  min-width: 200px;
  border: 1px solid rgba(214, 167, 44, .55);
  border-radius: 16px;
  background: rgba(3, 36, 74, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 10px 25px rgba(0, 8, 24, .22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .25s ease;
  animation: popup 3.5s infinite;

}
.hero-stats>div:nth-child(2){animation-delay: 0.5s;}
.hero-stats>div:nth-child(3){animation-delay: 1s;}
.hero-stats>div:nth-child(4){animation-delay: 1.5s;}

.hero-stats>div>i {
  position: absolute;
  top: 16px;
  right: 16px;
  color: #d6a72c;
  font-size: 1.15rem;
}

.hero-stats>div:hover {
  transform: translateY(-3px);
  background: rgba(3, 36, 74, .9);
  border: 1px solid rgba(214, 167, 44, .55);
  box-shadow: 0px 2px rgba(214, 167, 44, .9);
}

@keyframes popup {

  0%,60% {
    transform: translateY(0);
    background: rgba(3, 36, 74, .72);
    border:1px solid rgba(214, 167, 44, .55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 10px 25px rgba(0, 8, 24, .22);
  }

  30% {
    transform: translateY(-3px);
    background: rgba(3, 36, 74, .9);
    border-color: rgba(214, 167, 44, .9);
    box-shadow: 0px 2px rgba(214, 167, 44, .9);
  }
}

.hero-stats p {
  margin-bottom: 0;
}