/* ============================================================
   JOURNEY HERO — "fog to clarity, ivory into navy"
   Engraved valley panorama + parallax layers behind the original
   Beautiful Pivot hero type. Scoped entirely under .hero--journey
   so all original hero animation styles keep working.
   ============================================================ */

.hero--journey {
  position: relative;
  overflow: hidden;
  background: var(--ivory);
}

/* ---------- layered scene ---------- */
.jl {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
}

/* far ridge: faint, multiply so paper vanishes, slowest layer.
   Horizontal ends feathered so the drawing never visibly "stops". */
.jl--ridge img {
  position: absolute;
  left: 50%;
  top: 16%;
  width: 86%;
  transform: translateX(-50%);
  mix-blend-mode: multiply;
  opacity: 0.42;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}

/* main panorama: full-bleed base, anchored to the bottom.
   Asset is the EXTENDED canvas (3040x1879; art occupies bottom-center at the
   original 2400px scale) — width compensated 112% -> 142% so the artwork
   renders at the identical size. Outer edges feathered via mask so no
   borderline can ever show during parallax or on odd viewports. */
.jl--pano img {
  position: absolute;
  left: 50%;
  bottom: -2%;
  width: 127%; /* extended canvas: art portion renders at the approved 100%-viewport scale */
  max-width: none; /* override the global img cap — it was causing edge slivers */
  min-width: 1520px;
  height: 118%;
  object-fit: cover;
  object-position: 50% 100%;
  transform: translateX(-50%);
}

/* foreground treeline: fastest layer, anchored to the bottom edge */
.jl--trees img {
  position: absolute;
  left: 50%;
  bottom: -4%;
  width: 124%;
  max-width: none; /* override the global img cap */
  min-width: 1400px;
  transform: translateX(-50%);
}

/* drifting fog bands (pure CSS, sit between pano and trees) */
.jl--fog::before,
.jl--fog::after {
  content: "";
  position: absolute;
  left: -30%;
  width: 160%;
  height: 38%;
  background:
    radial-gradient(60% 100% at 30% 50%, rgba(245,240,232,0.95), rgba(245,240,232,0) 70%),
    radial-gradient(50% 90% at 75% 40%, rgba(245,240,232,0.85), rgba(245,240,232,0) 70%);
  filter: blur(6px);
}
.jl--fog::before {
  top: 34%;
  animation: fogDrift 46s ease-in-out infinite alternate;
}
.jl--fog::after {
  top: 52%;
  opacity: 0.8;
  animation: fogDrift 62s ease-in-out infinite alternate-reverse;
}
@keyframes fogDrift {
  from { transform: translateX(-4%); }
  to   { transform: translateX(4%); }
}

/* ivory wash behind the type so the title always reads */
.jl--wash {
  background:
    radial-gradient(58% 46% at 50% 38%, rgba(245,240,232,0.92) 0%, rgba(245,240,232,0.55) 55%, rgba(245,240,232,0) 100%),
    linear-gradient(180deg, rgba(245,240,232,0.85) 0%, rgba(245,240,232,0) 30%);
}

/* the descent: hero dissolves into the navy world below */
.jl--dissolve {
  background: linear-gradient(180deg,
    rgba(10,14,26,0) 76%,
    rgba(10,14,26,0.45) 90%,
    var(--bg-navy) 100%);
}

/* ---------- recolor the original type for the ivory world ---------- */
.hero--journey .hero__inner { position: relative; z-index: 3; top: -6vh; }
.hero--journey .hero__title { color: var(--bg-navy); }
/* tagline + rule retired here: "Close the Gap" lives in the neural cue instead */
.hero--journey .hero__tagline { display: none; }
.hero--journey .hero__rule { display: none; }

/* ---------- expedition HUD ---------- */
.hud {
  position: absolute;
  z-index: 4;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(10, 14, 26, 0.55);
  pointer-events: none;
  white-space: nowrap;
}
.hud--bl { left: 2rem; bottom: 1.6rem; }
.hud--br { right: 2rem; bottom: 4.4rem; text-align: right; } /* clears the SOUND toggle */
.hud--tr { right: 2rem; top: 1.8rem; text-align: right; }
.hud .hud__gold { color: var(--gold); }

/* ---------- neural scroll cue: signal fires brain -> spine ---------- */
.cue-neural {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 0; /* the line touches the very bottom edge of the first page */
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  pointer-events: none;
}
/* Ironhill-exact line: half-opacity gold track + full-height solid gold
   inner line sweeping through it (translateY -100% -> 100%) */
.cue-neural__line {
  position: relative;
  display: block;
  width: 2px;
  height: 95px;
  background: rgba(201, 169, 110, 0.5);
  overflow: hidden;
}
.cue-neural__pulse {
  position: absolute;
  inset: 0;
  background: var(--gold);
  animation: linearMove 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes linearMove {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}
/* the tagline itself, scaled down: same family/weight/color as the original */
.cue-neural__label {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.71rem; /* desktop: +80% per art direction */
  letter-spacing: 0.45em;
  text-indent: 0.45em; /* optically recenters letterspaced text */
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 1px 10px rgba(10, 14, 26, 0.95), 0 0 22px rgba(10, 14, 26, 0.7);
  white-space: nowrap;
}

/* short windows: compact the cue so it never crowds the title */
@media (max-height: 760px) {
  .cue-neural__line { height: 78px; }
  .cue-neural { gap: 0.65rem; }
}

@media (max-width: 700px) {
  .hud--bl, .hud--br { display: none; }
  .jl--trees img { width: 220%; min-width: 0; }
  /* mobile: extra-bold gold, with a soft dark edge so it holds on bright fog */
  .cue-neural__label {
    font-size: 1rem;
    color: var(--gold);
    font-weight: 800;
    text-shadow:
      0 1px 6px rgba(10, 14, 26, 0.55),
      0 0 16px rgba(10, 14, 26, 0.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jl--fog::before, .jl--fog::after { animation: none; }
  .cue-neural__pulse { animation: none; }
}
