.preview-ribbon {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem max(24px, calc((100vw - var(--shell)) / 2));
  color: #fbf8f2;
  background: #17474a;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.preview-ribbon a { color: inherit; text-underline-offset: .18em; }

.site-home main > .bridge-journey {
  --journey-height: 100vh;
  --journey-height: 100dvh;
  padding: 0;
  background: #17474a;
}

.site-home main > .bridge-journey::before,
.site-home main > .bridge-journey::after { content: none; }

.site-home main > .bridge-journey.is-scroll-enabled {
  height: calc(var(--journey-height) + 175vh);
  height: calc(var(--journey-height) + 175dvh);
  padding: 0;
}

.site-home main > .bridge-journey.is-static-fallback {
  height: auto;
  padding: 0;
}

.is-static-fallback .bridge-journey__stage { position: relative; top: auto; }

.bridge-journey__stage {
  position: relative;
  width: 100%;
  height: var(--journey-height);
  overflow: hidden;
  background: #17474a;
}

.is-scroll-enabled .bridge-journey__stage {
  position: sticky;
  top: 0;
}

.bridge-journey__poster,
.bridge-journey__poster img,
.bridge-journey__video,
.bridge-journey__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bridge-journey__poster img,
.bridge-journey__video { object-fit: cover; object-position: center; }
.bridge-journey__video { opacity: 0; transition: opacity .55s ease; }
.bridge-journey.is-video-ready .bridge-journey__video { opacity: 1; }

.bridge-journey__shade {
  background:
    linear-gradient(180deg, rgb(244 238 225 / 24%), transparent 15%, transparent 55%, rgb(10 47 52 / 76%) 100%),
    linear-gradient(90deg, rgb(10 47 52 / 22%), transparent 70%);
  pointer-events: none;
}

.bridge-journey__copy {
  position: absolute !important;
  inset: auto 0 clamp(44px, 7vh, 88px);
  inset: auto 0 clamp(44px, 7dvh, 88px);
  z-index: 2;
  display: grid;
  justify-items: start;
  color: #fbf8f2;
  text-shadow: 0 2px 18px rgb(8 37 42 / 65%);
  pointer-events: none;
}

.bridge-journey__copy p {
  max-width: 16ch;
  color: inherit;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.5vw, 4.5rem);
  line-height: 1.08;
  text-wrap: balance;
}

.bridge-journey__copy p::after {
  display: block;
  width: clamp(110px, 12vw, 170px);
  height: 2px;
  margin-top: 1.25rem;
  background: #e6c583;
  content: "";
}

@media (max-width: 700px) {
  .preview-ribbon { align-items: center; font-size: .69rem; line-height: 1.25; }
  .preview-ribbon span { max-width: 13ch; }
  .preview-ribbon a { max-width: 17ch; text-align: right; }

  .bridge-journey__copy { bottom: max(48px, calc(env(safe-area-inset-bottom) + 24px)); width: calc(100% - 48px); }
  .bridge-journey__copy p { max-width: 14ch; font-size: clamp(2rem, 8vw, 3.15rem); }
  .bridge-journey__shade {
    background: linear-gradient(180deg, rgb(244 238 225 / 15%), transparent 16%, transparent 48%, rgb(9 41 47 / 82%) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-home main > .bridge-journey.is-scroll-enabled { height: auto; padding: 0; }
  .bridge-journey__stage,
  .is-scroll-enabled .bridge-journey__stage { position: relative; top: auto; }
  .bridge-journey__video { display: none; }
}
