.journey {
  position: relative;
  height: auto;
  background: #171713;
}
.journey .journey-screen {
  position: relative;
  top: auto;
  height: 100svh;
  min-height: 0;
  width: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background: #131312;
}
.journey-screen .journey-scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #151925;
}
.journey-screen .frames,
.journey-screen .journey-shade,
.journey-screen .journey-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.journey-screen .frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% center;
  opacity: 1;
  clip-path: inset(0 0 0 100%);
}
.journey-screen .frame:first-child { clip-path: none; }
.journey-screen .journey-shade {
  pointer-events: none;
  background:
    linear-gradient(0deg, #0b0c0df5, transparent 26%),
    linear-gradient(115deg, #0e1526eb, transparent 49%),
    linear-gradient(270deg, #1719237d, transparent 29%);
}
.journey-screen .journey-lines { pointer-events: none; }
.journey-lines line {
  stroke: #ffffffa6;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  opacity: 0;
}
.journey-screen .journey-title {
  position: absolute;
  z-index: 1;
  top: max(92px, 13%);
  left: 4%;
}
.journey-screen .journey-title h1 {
  font-size: clamp(42px, 5.4vw, 132px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.05em;
  margin: 0;
}
.journey-screen .journey-title strong { color: #ff872b; font-weight: 780; }
.journey-screen .journey-title p {
  font-size: clamp(16px, 1.85vw, 42px);
  margin: 8px 0 0;
}
.journey-screen .journey-title::after {
  content: "";
  display: block;
  width: clamp(32px, 3.75vw, 115px);
  height: 3px;
  margin-top: 12px;
  background: #ff872b;
}
.journey-screen .timeline {
  z-index: 1;
  position: absolute;
  top: max(96px, 21%);
  right: 2.5%;
  gap: 0;
  display: flex;
  flex-direction: column;
}
.journey-screen .timeline button {
  min-height: clamp(35px, 6.4vh, 110px);
  display: grid;
  grid-template-columns: 2ch 1fr;
  position: relative;
  gap: .75em;
  align-items: center;
  padding: 0 0 0 1.65em;
  background: none;
  color: white;
  border: 0;
  text-align: left;
  font-size: clamp(.84rem, 1vw, 1.9rem);
  text-shadow: 0 1px 6px #121212;
}
.journey-screen .timeline button::before,
.journey-screen .timeline button::after {
  content: "";
  position: absolute;
  left: .35em;
  width: 1px;
  height: 100%;
  top: 50%;
  background: #fffb;
}
.journey-screen .timeline button:last-child::before { display: none; }
.journey-screen .timeline button::after {
  height: .7em;
  width: .7em;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
}
.journey-screen .timeline button.active::after {
  box-shadow: 0 0 0 2px #fff, 0 0 12px 4px #ff872b;
  background: #ff872b;
}
.journey-screen .timeline button span:first-child { font-weight: 700; }
.journey-screen .journey-caption {
  position: absolute;
  inset: auto 4% 3.5%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 14px;
}
.journey-caption strong { display: block; letter-spacing: .17em; font-size: clamp(.94rem, 1.3vw, 2.4rem); }
.journey-caption small {
  display: block;
  font-size: clamp(.63rem, .76vw, 1.35rem);
  letter-spacing: .09em;
}
.showroom-controls { display: flex; gap: 8px; justify-self: end; }
.showroom-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #ffffff63;
  border-radius: 50%;
  background: #1118279c;
  color: #fff;
}
.showroom-controls svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.journey-screen .journey-bottom {
  position: relative;
  inset: auto;
  background: #141413;
  padding: clamp(8px, 1.2vw, 28px) 3%;
  border-top: 1px solid #fff3;
  color: white;
}
.journey-bottom .phase-progress { position: absolute; inset: -2px 0 auto; margin: 0; height: 2px; background: transparent; }
.journey-bottom .phase-progress i { width: 0; }
.journey-screen .thumbs { gap: clamp(5px, .9vw, 20px); }
.journey-screen .thumbs button {
  min-width: 0;
  min-height: 44px;
  border: 0;
  border-radius: clamp(4px, .6vw, 14px);
  position: relative;
  background: #252321;
  box-shadow: inset 0 0 0 1px #ffffff47;
}
.journey-screen .thumbs button.active { outline: 2px solid #ff872b; outline-offset: -2px; z-index: 1; }
.journey-screen .thumbs img {
  object-fit: cover;
  height: clamp(30px, 11vh, 230px);
}
.journey-screen .thumbs .thumb-label {
  display: flex;
  gap: .45em;
  align-items: baseline;
  padding: clamp(4px, .45vw, 16px);
  font-size: clamp(.69rem, .92vw, 1.75rem);
  line-height: 1.2;
}
.journey-screen .thumbs .thumb-label span { display: inline; padding: 0; font-size: inherit; }
.journey-screen button:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.journey-screen:fullscreen,
.journey-screen.is-showroom-fallback { width: 100%; height: 100dvh; }
.journey-screen.is-showroom-fallback {
  position: fixed !important;
  inset: 0 !important;
  transform: none !important;
  max-width: none !important;
  max-height: none !important;
  width: 100% !important;
  height: 100dvh !important;
  z-index: 100;
}
html.journey-showroom { overflow: hidden; }
.journey-screen:fullscreen .journey-title,
.journey-screen.is-showroom-fallback .journey-title { top: 7%; }
.hero-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 700px) and (orientation: portrait) {
  .journey .journey-screen { height: 100svh; }
  .journey-screen .frames,
  .journey-screen .journey-lines { top: 27%; height: 56%; overflow: hidden; }
  .journey-screen .timeline,
  .journey-hint { display: none !important; }
  .journey-screen .journey-caption { grid-template-columns: 1fr auto; }
  .journey-screen .journey-title { top: max(70px, 8%); }
  .journey-screen .journey-title h1 { font-size: clamp(38px, 11vw, 66px); }
  .journey-screen .thumbs img { height: 40px; }
  .journey-screen .thumbs .thumb-label { justify-content: center; }
  .journey-screen .thumbs .thumb-label span { display: none; }
}
@media (max-height: 450px) and (orientation: landscape) {
  .journey-screen .journey-title { top: 54px; }
  .journey-screen .journey-title h1 { font-size: clamp(32px, 10vh, 48px); }
  .journey-screen .timeline { top: 51px; }
  .journey-screen .timeline button { min-height: 28px; }
  .journey-screen .thumbs img { height: 27px; }
  .journey-screen .showroom-controls button { width: 36px; height: 36px; }
}

/* Keep the wide source framing on taller displays as well as 16:9 video walls. */
.journey-screen .journey-scene {
  background: linear-gradient(170deg, #101827, #2b3545 48%, #171513);
}
.journey-screen .frames,
.journey-screen .journey-lines {
  top: 50%;
  height: min(100%, 34vw);
  transform: translateY(-44%);
}
.journey-screen .frames {
  mask-image: linear-gradient(transparent, #000 12%, #000 86%, transparent);
}
.journey-screen .journey-lines {
  mask-image: linear-gradient(transparent, #000 13%, #000 83%, transparent);
}
.journey-screen .frame { object-position: center; }
.showroom-controls .pause-icon,
.showroom-controls .is-playing .play-icon { display: none; }
.showroom-controls .is-playing .pause-icon { display: block; }
.showroom-logo {
  display: none;
  position: absolute;
  top: 16px;
  right: 4%;
  width: clamp(34px, 4vw, 84px);
  height: auto;
  border-radius: 50%;
}
.journey-screen:fullscreen .showroom-logo,
.journey-screen.is-showroom-fallback .showroom-logo { display: block; }
@media (max-width: 700px) and (orientation: portrait) {
  .journey-screen .frames,
  .journey-screen .journey-lines {
    height: min(43vw, 48%);
    transform: translateY(-32%);
  }
}
