/* On Seven pinned athlete story — stage 4
   Four-step scroll narrative plus lightweight SVG line drawing. */

body[data-page="home"] .journey-story {
  --journey-progress: 0;
  --journey-progress-width: 0%;
  --journey-accent: #c65316;
  height: 400svh;
  position: relative;
  overflow: visible;
  content-visibility: visible !important;
  contain-intrinsic-size: none !important;
  color: #fff;
  background: #07182f;
}

body[data-page="home"] .journey-sticky {
  position: sticky;
  top: 0;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  isolation: isolate;
}

body[data-page="home"] .journey-sticky::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.2) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.2) 1px,transparent 1px);
  background-size: 78px 78px;
  mask-image: linear-gradient(90deg,#000,transparent 72%);
}

body[data-page="home"] .journey-sticky::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -12vw;
  top: 50%;
  width: min(58vw,760px);
  aspect-ratio: 1;
  border: 1px solid rgba(245,185,31,.22);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgba(245,185,31,.022),
    0 0 0 96px rgba(245,185,31,.014);
  transform: translateY(-50%);
}

.journey-grid {
  width: min(1180px,calc(100% - 40px));
  margin: auto;
  display: grid;
  grid-template-columns: minmax(280px,.72fr) minmax(0,1.28fr);
  align-items: center;
  gap: clamp(48px,8vw,112px);
}

.journey-intro {
  position: relative;
  z-index: 4;
}

.journey-intro .eyebrow {
  color: #f5b91f;
}

.journey-intro h2 {
  margin: 24px 0 20px;
  font: 800 clamp(42px,5.4vw,74px)/.98 var(--font-heading);
  letter-spacing: -.055em;
}

.journey-intro > p:last-of-type {
  max-width: 460px;
  margin: 0;
  color: rgba(255,255,255,.6);
  font-size: 14px;
  line-height: 1.75;
}

.journey-steps {
  display: grid;
  margin-top: 34px;
  border-top: 1px solid rgba(255,255,255,.14);
}

.journey-step {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.38);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition:
    color 280ms var(--motion-ease-standard),
    transform 320ms var(--motion-ease-emphasized);
}

.journey-step small {
  color: #f5b91f;
  font: 700 10px/1 var(--font-heading);
}

.journey-step b {
  font: 700 14px/1.2 var(--font-heading);
}

.journey-step i {
  width: 20px;
  height: 1px;
  background: currentColor;
  transform: scaleX(.3);
  transform-origin: right;
  transition: transform 280ms var(--motion-ease-standard);
}

.journey-step.active {
  color: #fff;
  transform: translateX(8px);
}

.journey-step.active i {
  transform: scaleX(1);
  color: var(--journey-accent);
}

.journey-stage {
  min-height: 560px;
  position: relative;
  display: flex;
  align-items: center;
  border-left: 1px solid rgba(255,255,255,.14);
  padding-left: clamp(34px,5vw,70px);
}

.journey-panel {
  position: absolute;
  z-index: 4;
  left: clamp(34px,5vw,70px);
  right: 0;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0,32px,0);
  transition:
    opacity 400ms var(--motion-ease-standard),
    transform 520ms var(--motion-ease-emphasized),
    visibility 400ms;
  pointer-events: none;
}

.journey-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0,0,0);
  pointer-events: auto;
}

.journey-number {
  position: absolute;
  z-index: -1;
  right: 1%;
  top: -74px;
  color: transparent;
  font: 800 clamp(120px,17vw,230px)/.8 var(--font-heading);
  letter-spacing: -.08em;
  -webkit-text-stroke: 1px rgba(255,255,255,.09);
}

.journey-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(198,83,22,.65);
  color: #f5b91f;
}

.journey-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.journey-panel h3 {
  max-width: 650px;
  margin: 0 0 20px;
  font: 800 clamp(40px,5.5vw,70px)/1 var(--font-heading);
  letter-spacing: -.055em;
}

.journey-panel p {
  max-width: 570px;
  margin: 0;
  color: rgba(255,255,255,.62);
  font-size: 15px;
  line-height: 1.8;
}

.journey-line-art {
  position: absolute;
  z-index: 1;
  right: -4%;
  bottom: -8%;
  width: min(52%,460px);
  height: auto;
  opacity: .15;
  pointer-events: none;
}

.journey-draw {
  fill: none;
  stroke: #fff;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--journey-progress));
}

.journey-draw-accent {
  stroke: #f5b91f;
  stroke-width: 9;
}

.journey-progress {
  position: absolute;
  z-index: 6;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255,255,255,.08);
}

.journey-progress span {
  display: block;
  width: var(--journey-progress-width);
  height: 100%;
  background: var(--journey-accent);
  will-change: width;
}

@media(max-width:820px) {
  body[data-page="home"] .journey-story {
    height: 360svh;
  }

  body[data-page="home"] .journey-sticky::before {
    background-size: 58px 58px;
    opacity: .08;
  }

  body[data-page="home"] .journey-sticky::after {
    right: -48vw;
    width: 100vw;
  }

  .journey-grid {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    align-content: center;
    gap: 22px;
    padding: 38px 0 34px;
  }

  .journey-intro h2 {
    margin: 17px 0 0;
    font-size: clamp(34px,10vw,48px);
  }

  .journey-intro > p:last-of-type {
    display: none;
  }

  .journey-steps {
    grid-template-columns: repeat(4,1fr);
    gap: 6px;
    margin-top: 20px;
    border: 0;
  }

  .journey-step {
    min-height: 47px;
    display: block;
    padding: 8px 3px;
    border: 0;
    border-bottom: 2px solid rgba(255,255,255,.14);
  }

  .journey-step small {
    display: block;
    margin-bottom: 5px;
  }

  .journey-step b {
    font-size: 9px;
  }

  .journey-step i {
    display: none;
  }

  .journey-step.active {
    border-color: var(--journey-accent);
    transform: none;
  }

  .journey-stage {
    min-height: 400px;
    border-left: 0;
    padding: 0;
    align-items: center;
  }

  .journey-panel {
    left: 0;
  }

  .journey-number {
    top: -32px;
    right: 0;
    font-size: clamp(94px,30vw,150px);
  }

  .journey-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
  }

  .journey-icon svg {
    width: 29px;
    height: 29px;
  }

  .journey-panel h3 {
    max-width: 92%;
    margin-bottom: 15px;
    font-size: clamp(34px,10.5vw,52px);
  }

  .journey-panel p {
    max-width: 92%;
    font-size: 13px;
    line-height: 1.65;
  }

  .journey-line-art {
    right: -8%;
    bottom: -10%;
    width: 62%;
    opacity: .1;
  }
}

@media(max-width:380px) {
  .journey-grid {
    padding-top: 28px;
  }

  .journey-intro h2 {
    font-size: 32px;
  }

  .journey-stage {
    min-height: 360px;
  }

  .journey-panel h3 {
    font-size: 34px;
  }
}

@media(prefers-reduced-motion:reduce) {
  body[data-page="home"] .journey-story {
    height: auto;
    padding: 82px 0;
  }

  body[data-page="home"] .journey-sticky {
    position: relative;
    min-height: 0;
    overflow: hidden;
  }

  .journey-grid {
    align-items: start;
  }

  .journey-steps,
  .journey-progress {
    display: none;
  }

  .journey-stage {
    min-height: 0;
    display: grid;
    gap: 36px;
  }

  .journey-panel,
  .journey-panel.active {
    position: relative;
    left: auto;
    right: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .journey-number {
    display: none;
  }

  .journey-line-art {
    opacity: .08;
  }

  .journey-draw {
    stroke-dashoffset: 0;
  }
}

html[data-motion-mode="reduced"] body[data-page="home"] .journey-story {
  height: auto;
  padding: 82px 0;
}

html[data-motion-mode="reduced"] body[data-page="home"] .journey-sticky {
  position: relative;
  min-height: 0;
}

html[data-motion-mode="reduced"] .journey-steps,
html[data-motion-mode="reduced"] .journey-progress {
  display: none;
}

html[data-motion-mode="reduced"] .journey-stage {
  min-height: 0;
  display: grid;
  gap: 36px;
}

html[data-motion-mode="reduced"] .journey-panel,
html[data-motion-mode="reduced"] .journey-panel.active {
  position: relative;
  left: auto;
  right: auto;
  opacity: 1;
  visibility: visible;
  transform: none;
}


html[data-motion-mode="reduced"] .journey-panel,
html[data-motion-mode="reduced"] .journey-panel.active {
  pointer-events: auto;
}

html[data-motion-mode="reduced"] .journey-number {
  display: none;
}

html[data-motion-mode="reduced"] .journey-line-art {
  opacity: .08;
}

html[data-motion-mode="reduced"] .journey-draw {
  stroke-dashoffset: 0;
}


/* Mobile pin fallback: avoids long blank space when an ancestor uses overflow-x:hidden. */
html.journey-pin-ready,
html.journey-pin-ready body[data-page="home"] {
  overflow-x: clip !important;
}

@media(max-width:820px) {
  body[data-page="home"] .journey-story:not(.is-pinned):not(.is-complete) .journey-sticky {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
  }

  body[data-page="home"] .journey-story.is-pinned .journey-sticky {
    position: fixed;
    z-index: 20;
    top: 68px;
    right: 0;
    left: 0;
    width: 100%;
    min-height: calc(100svh - 68px);
    height: calc(100svh - 68px);
  }

  body[data-page="home"] .journey-story.is-complete .journey-sticky {
    position: absolute;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
  }
}


/* Stage 4 cinematic editorial redesign — real club media, restrained motion. */
body[data-page="home"] .journey-story {
  --journey-accent: #d85d1a;
  background: #06152a;
}

body[data-page="home"] .journey-sticky::before {
  opacity: .07;
  background-size: 96px 96px;
}

body[data-page="home"] .journey-grid {
  grid-template-columns: minmax(250px,.62fr) minmax(0,1.38fr);
  gap: clamp(28px,5vw,76px);
}

body[data-page="home"] .journey-intro h2 {
  max-width: 470px;
  margin: 20px 0 18px;
  font-size: clamp(40px,4.4vw,64px);
}

body[data-page="home"] .journey-steps {
  position: relative;
  margin-top: 30px;
  padding-left: 18px;
  border-top: 0;
}

body[data-page="home"] .journey-steps::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 3px;
  width: 1px;
  background: rgba(255,255,255,.15);
}

body[data-page="home"] .journey-step {
  min-height: 50px;
  grid-template-columns: 34px 1fr auto;
  border-bottom-color: rgba(255,255,255,.1);
}

body[data-page="home"] .journey-step::before {
  content: "";
  position: absolute;
  left: -19px;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(255,255,255,.36);
  background: #06152a;
  transform: rotate(45deg);
  transition: border-color 220ms ease,background 220ms ease,transform 300ms ease;
}

body[data-page="home"] .journey-step.active::before {
  border-color: var(--journey-accent);
  background: var(--journey-accent);
  transform: rotate(135deg) scale(1.12);
}

body[data-page="home"] .journey-stage {
  min-height: min(72svh,680px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: #09182c;
  isolation: isolate;
}

body[data-page="home"] .journey-panel {
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(34px,5vw,68px);
  overflow: hidden;
  transform: translate3d(34px,0,0);
}

body[data-page="home"] .journey-panel::before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 0;
  background-image: var(--journey-image,none);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  filter: saturate(.78) contrast(1.06);
  transition: opacity 600ms ease,transform 1400ms cubic-bezier(.2,.75,.2,1);
}

body[data-page="home"] .journey-panel::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: rgba(3,15,31,.72);
  box-shadow: inset 0 -240px 180px -120px rgba(1,8,19,.96);
}

body[data-page="home"] .journey-panel.active {
  transform: translate3d(0,0,0);
}

body[data-page="home"] .journey-panel.active::before {
  opacity: .48;
  transform: scale(1);
}

body[data-page="home"] .journey-number {
  z-index: 1;
  top: 34px;
  right: 38px;
  color: rgba(255,255,255,.72);
  font-size: clamp(34px,4vw,54px);
  line-height: 1;
  letter-spacing: -.05em;
  -webkit-text-stroke: 0;
}

body[data-page="home"] .journey-icon {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  border-color: rgba(216,93,26,.78);
  background: rgba(6,21,42,.78);
}

body[data-page="home"] .journey-panel h3,
body[data-page="home"] .journey-panel p {
  position: relative;
  z-index: 2;
}

body[data-page="home"] .journey-panel h3 {
  max-width: 660px;
  margin-bottom: 16px;
  font-size: clamp(38px,5vw,68px);
}

body[data-page="home"] .journey-panel p {
  max-width: 600px;
  color: rgba(255,255,255,.76);
}

body[data-page="home"] .journey-line-art {
  z-index: 1;
  right: -6%;
  bottom: -12%;
  opacity: .26;
  mix-blend-mode: screen;
}

body[data-page="home"] .journey-sweep {
  position: absolute;
  z-index: 12;
  inset: 0;
  background: var(--journey-accent);
  pointer-events: none;
  transform: translateX(-101%);
}

body[data-page="home"] .journey-stage.is-switching .journey-sweep {
  animation: journeyEditorialSweep 560ms cubic-bezier(.76,0,.24,1) both;
}

@keyframes journeyEditorialSweep {
  0% { transform: translateX(-101%); }
  46% { transform: translateX(0); }
  54% { transform: translateX(0); }
  100% { transform: translateX(101%); }
}

@media(max-width:820px) {
  body[data-page="home"] .journey-grid {
    width: calc(100% - 28px);
    height: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0,1fr);
    align-content: stretch;
    gap: 14px;
    padding: 18px 0 16px;
  }

  body[data-page="home"] .journey-intro h2 {
    max-width: 310px;
    margin: 11px 0 0;
    font-size: clamp(29px,8.8vw,38px);
  }

  body[data-page="home"] .journey-steps {
    grid-template-columns: repeat(4,1fr);
    margin-top: 14px;
    padding-left: 0;
  }

  body[data-page="home"] .journey-steps::before,
  body[data-page="home"] .journey-step::before {
    display: none;
  }

  body[data-page="home"] .journey-step {
    min-height: 42px;
  }

  body[data-page="home"] .journey-stage {
    width: 100%;
    min-height: 0;
    height: 100%;
    border-left: 1px solid rgba(255,255,255,.14);
  }

  body[data-page="home"] .journey-panel {
    padding: 22px 20px 26px;
  }

  body[data-page="home"] .journey-number {
    top: 20px;
    right: 20px;
    font-size: 34px;
  }

  body[data-page="home"] .journey-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
  }

  body[data-page="home"] .journey-icon svg {
    width: 25px;
    height: 25px;
  }

  body[data-page="home"] .journey-panel h3 {
    max-width: 95%;
    margin-bottom: 11px;
    font-size: clamp(29px,8.9vw,39px);
  }

  body[data-page="home"] .journey-panel p {
    max-width: 96%;
    font-size: 12px;
    line-height: 1.6;
  }

  body[data-page="home"] .journey-line-art {
    width: 58%;
    opacity: .18;
  }
}

@media(prefers-reduced-motion:reduce) {
  body[data-page="home"] .journey-panel::before,
  body[data-page="home"] .journey-sweep {
    transition: none;
    animation: none;
  }
}


/* Final mobile geometry safeguards. */
body[data-page="home"] .journey-step {
  position: relative;
}

@media(max-width:820px) {
  body[data-page="home"] .journey-grid {
    align-items: stretch;
  }

  body[data-page="home"] .journey-stage {
    height: auto;
    min-height: 360px;
  }

  body[data-page="home"] .journey-story.is-pinned .journey-stage {
    height: auto;
    min-height: 0;
  }
}
