#journey .journey-theater {
  --journey-gutter: clamp(26px, 4.25vw, 62px);
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 30px var(--journey-gutter) 23px;
  border-radius: clamp(24px, 2.5vw, 36px);
  background: #101d2e;
  color: #fff;
  box-shadow: 0 20px 44px rgb(19 38 67 / .18);
}

#journey .journey-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#journey .journey-heading h2 {
  font-size: clamp(30px, 3.3vw, 47px);
  font-weight: 760;
  letter-spacing: -.055em;
  line-height: 1.12;
}

#journey .journey-period,
#journey .journey-attribution {
  color: #d0dce8;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .065em;
}

#journey .journey-period { margin-top: 7px; }
#journey .journey-attribution { margin-top: 8px; }

#journey .journey-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  align-items: stretch;
  gap: clamp(20px, 4.4vw, 64px);
  height: clamp(330px, 41vh, 387px);
}

#journey .year-stage {
  position: static;
  display: flex;
  align-items: center;
  isolation: auto;
  overflow: visible;
  min-width: 0;
  min-height: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#journey .stage-media {
  z-index: -2;
  inset: -6px -26px;
  pointer-events: none;
}

#journey .year-stage::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(8 17 32 / .79), rgb(10 21 37 / .28) 38%, rgb(7 17 31 / .52) 69%, rgb(6 13 23 / .81)),
    linear-gradient(95deg, rgb(8 19 35 / .19), rgb(8 18 33 / .47) 65%, rgb(8 18 33 / .63));
}

#journey .stage-media .photo {
  object-position: var(--journey-framing, 48%) 55%;
  transition: opacity .46s ease, object-position .65s var(--spring), filter .46s ease;
}

#journey .stage-gate {
  opacity: 0;
  filter: brightness(.76) saturate(.73);
}

#journey .stage-aerial {
  opacity: 1;
  filter: brightness(.78) saturate(.76);
}

#journey .year-stage[data-scene="growth"] .stage-gate { opacity: 1; }
#journey .year-stage[data-scene="growth"] .stage-aerial { opacity: 0; }
#journey .year-stage[data-scene="energy"] .stage-aerial { filter: brightness(.76) saturate(.85) hue-rotate(13deg); }
#journey .year-stage[data-scene="celebration"] .stage-aerial { filter: brightness(.86) saturate(.91) sepia(.13); }

#journey .stage-copy {
  position: static;
  min-width: 0;
  padding-inline-start: clamp(4px, 4vw, 64px);
  text-shadow: 0 4px 27px rgb(5 13 21 / .42);
}

#journey .stage-copy strong {
  margin: 0;
  font-size: clamp(100px, 12.2vw, 178px);
  font-weight: 770;
  letter-spacing: -.084em;
  line-height: .88;
}

#journey .stage-copy p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 17px;
  color: #f4f7fa;
  font-size: clamp(17px, 2.25vw, 31px);
  font-weight: 640;
  letter-spacing: -.025em;
  line-height: 1.25;
}

#journey .journey-date-arrow {
  flex: none;
  color: #e4edf4;
  font-size: .92em;
  font-weight: 500;
  opacity: .85;
}

#journey .year-record {
  --journey-record-subtle: #c9d8e7;
  justify-content: center;
  gap: 18px;
  padding: 16px 0;
  color: #fff;
}

#journey .journey-phase {
  margin: 0 0 8px;
  color: var(--journey-record-subtle);
  font-size: clamp(14px, 1.55vw, 21px);
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.25;
}

#journey .year-record h3 {
  max-width: 15em;
  font-size: clamp(26px, 3.12vw, 44px);
  font-weight: 760;
  letter-spacing: -.045em;
  line-height: 1.18;
}

#journey #record-description {
  max-width: 35em;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid rgb(215 230 244 / .28);
  color: #f0f5fb;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.66;
}

#journey .journey-source {
  min-height: 42px;
  padding-inline: 17px;
  border-color: rgb(255 255 255 / .25);
  background: linear-gradient(120deg, #ff896f, #ff735d);
  color: #2b1414;
  font-weight: 740;
  box-shadow: 0 4px 14px rgb(6 16 31 / .22);
}

#journey .journey-source:hover { background: #ffa08a; }

#journey .journey-rail {
  position: relative;
  isolation: isolate;
  margin-inline: calc(16px - var(--journey-gutter));
}

#journey .journey-rail::before {
  position: absolute;
  z-index: -1;
  inset: 14px 0;
  border: 1px solid rgb(255 255 255 / .92);
  border-radius: 17px;
  background: linear-gradient(135deg, #fff, #f6f8fd);
  box-shadow: 0 7px 23px rgb(3 11 24 / .2);
  content: "";
}

#journey #journey-years {
  position: relative;
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  padding: 14px 10px;
}

#journey .year-step {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 107px;
  padding: 0 clamp(6px, .9vw, 14px);
  border-radius: 13px;
  background: transparent;
  color: #55647a;
  text-align: left;
  transition: color .18s ease;
}

#journey .year-step::before {
  position: absolute;
  z-index: -1;
  inset: -12px 1px;
  border: 1px solid rgb(255 231 219 / .57);
  border-radius: 14px;
  background: linear-gradient(145deg, #ff8b71, #f25746 89%);
  box-shadow: 0 9px 24px rgb(41 15 14 / .26), inset 0 1px 1px rgb(255 244 228 / .46);
  pointer-events: none;
  opacity: 0;
  transform: scaleY(.83);
  transition: opacity .19s ease, transform .24s var(--spring);
  content: "";
}

#journey .year-step[aria-pressed="true"] { color: #2b1518; }

#journey .year-step[aria-pressed="true"]::before {
  opacity: 1;
  transform: scaleY(1);
}

#journey .year-step:focus-visible {
  outline-color: #00499b;
  outline-offset: -2px;
}

#journey .journey-tick-year {
  font-size: clamp(23px, 2.4vw, 34px);
  font-weight: 740;
  letter-spacing: -.065em;
  line-height: 1;
}

#journey .journey-tick-caption {
  overflow: hidden;
  max-width: 100%;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 960px) {
  #journey #journey-years {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    padding-inline: 8px;
    scrollbar-color: #92a2b8 transparent;
    scrollbar-width: thin;
  }

  #journey .year-step {
    flex: 0 0 88px;
    min-height: 91px;
  }

  #journey .journey-rail::before { bottom: 17px; }
}

@media (max-width: 740px) {
  #journey .journey-theater {
    --journey-gutter: clamp(17px, 5.2vw, 29px);
    padding-block: 18px 12px;
  }

  #journey .journey-layout {
    grid-template-columns: 1fr;
    gap: 8px;
    height: auto;
  }

  #journey .year-stage { min-height: clamp(100px, 16svh, 139px); }

  #journey .year-stage::after {
    background: linear-gradient(180deg, rgb(9 20 37 / .74), rgb(9 20 37 / .43) 23%, rgb(9 21 38 / .79) 66%, rgb(6 13 23 / .88));
  }

  #journey .stage-copy { padding: 6px 0 0; }

  #journey .stage-copy strong {
    font-size: clamp(73px, 18vw, 123px);
    letter-spacing: -.075em;
  }

  #journey .stage-copy p { gap: 8px; margin-top: 9px; }
  #journey .year-record { gap: 12px; padding: 0 0 12px; }
  #journey .journey-phase { margin-bottom: 5px; }
  #journey .year-record h3 { font-size: clamp(23px, 5.6vw, 35px); }
  #journey #record-description { margin-top: 9px; padding-top: 9px; line-height: 1.58; }

  #journey .journey-rail { margin-inline: calc(7px - var(--journey-gutter)); }
  #journey .journey-rail::before { inset-block: 12px 15px; }
  #journey #journey-years { padding-block: 12px; }

  #journey .year-step {
    flex-basis: 75px;
    gap: 4px;
    min-height: 70px;
    padding-inline: 8px;
  }

  #journey .year-step:not([data-major]):not([aria-pressed="true"]) { color: #55647a; }
  #journey .year-step:not([data-major]):not([aria-pressed="true"])::after { content: none; }
  #journey .year-step::before { inset-block: -9px; }
  #journey .journey-tick-year { font-size: 25px; }
}

@media (max-width: 740px) and (any-hover: hover) and (any-pointer: fine) {
  /* Long milestones need room without moving the hover targets below them. */
  #journey .year-record { min-height: clamp(220px, calc(344px - 15vw), 294px); }
}
