/* =============================================
   Our Journey — Hero Section
============================================= */

.journey-hero {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100dvh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center; /* Center content vertically */
  z-index: 1;
  background: #030e17;
}

.journey-hero-bg-transition {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.journey-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(3, 14, 23, 0.9) 0%,
    rgba(3, 14, 23, 0.4) 50%,
    rgba(3, 14, 23, 0.1) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.journey-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 3vw;
  display: grid;
  grid-template-columns: 35% 65%;
  align-items: center;
  gap: 4rem;
  height: 100%;
  padding-top: 80px; /* offset for header */
}

/* Left: Text Wrapper */
.hero-text-wrapper {
  max-width: 700px;
}

.mask { 
  overflow: hidden; 
  padding: 0 0.5em;
  margin: 0 -0.5em;
}

[data-anim] {
  transform: translateY(0%);
  opacity: 1;
  transition: transform 700ms cubic-bezier(0.25,1,0.5,1),
              opacity 500ms ease;
  will-change: transform, opacity;
}

.hero-subtitle-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.journey-hero-eyebrow {
  font-family: var(--primary-font);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.journey-hero-title {
  font-family: var(--primary-font);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  padding-top: 5px; /* So masks don't clip ascenders */
}

.journey-hero-subtitle {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  max-width: 400px;
}

/* Right: Carousel wrapper */
.hero-carousel-wrapper {
  min-width: 0; /* allows flex children to shrink/scroll */
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 30vh;
}

.hero__track-mask {
  overflow: hidden; /* clips the sliding queue */
  padding: 2rem;
  padding-left: 20vw;
  margin: -2rem;
  margin-left: -20vw;
  margin-right: calc(-50vw + 50%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, transparent 15vw, black 20vw);
  mask-image: linear-gradient(to right, transparent 0, transparent 15vw, black 20vw);
  pointer-events: none;
}

.hero__track {
  display: flex;
  gap: 1.5rem;
  will-change: transform;
  transition: transform 900ms cubic-bezier(0.25, 1, 0.5, 1);
  padding-right: 3vw;
  pointer-events: auto;
}

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

/* Clone used during the FLIP size-up transition */
.flip-clone {
  position: absolute;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

/* Individual Card */
.hero-card {
  flex-shrink: 0;
  width: clamp(176px, 16vw, 224px);
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hero-card:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.hero-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease;
}

.hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
}

.hero-card-content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
}

.hero-card-eyebrow {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-card-title {
  font-size: 16px;
  font-family: var(--primary-font);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-transform: uppercase;
}

/* Controls below carousel */
.hero-controls {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-nav-buttons {
  display: flex;
  gap: 1rem;
}

.hero-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.hero-progress-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
}

.hero-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #2a85ff;
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-page-number {
  font-family: var(--primary-font);
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  display: inline-block;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .journey-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 2rem;
    padding-bottom: 3rem;
  }
  .hero-text-wrapper {
    flex: none;
    width: 100%;
    max-width: 100%;
  }
  .hero-carousel-wrapper {
    flex: none;
    width: 100%;
  }
  .hero-card {
    width: 128px;
  }
  .journey-hero-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(3,14,23,0.8) 50%, #030e17 100%);
  }
}
