/* The document is a complete project index before scroll enhancement. */
.work-journey { position: relative; isolation: isolate; background: var(--navy); }
.journey-pin { position: relative; }
.journey-shell { position: relative; padding-block: clamp(48px,7vw,108px); }
.journey-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.journey-head h2 { font-size: clamp(40px,5.1vw,80px); line-height: 1; }
.journey-head h2 em { color: #c8aaff; }
.journey-switch {
  display: inline-flex; align-items: center; gap: 9px; flex: none; min-height: 44px; padding: 8px 12px;
  border: 0; background: transparent; color: #eae5f6; font-size: 14px; font-weight: 550;
}
.journey-switch:hover { color: var(--yellow); }
.list-mark { width: 14px; height: 11px; border-block: 1.5px solid currentColor; position: relative; }
.list-mark::after { content: ""; position: absolute; inset: 45% 0 auto; border-top: 1.5px solid currentColor; }
.journey-landscape, .journey-foot, .note-folio { display: none; }
.catalogue-window { display: contents; }
.journey-cases { display: grid; gap: clamp(55px,8vw,126px); margin-block-start: clamp(38px,5.5vw,86px); }
.journey-project { min-width: 0; display: grid; grid-template-columns: minmax(0,.45fr) minmax(0,1fr); align-items: start; column-gap: 4%; }
.project-label { min-width: 0; padding-top: 8px; }
.project-kind {
  display: flex; align-items: center; gap: 10px; color: #dfd9f2; font-size: clamp(13px,1.12vw,17px);
  line-height: 1.35; letter-spacing: .025em; margin-bottom: clamp(10px,1.5vw,21px);
}
.project-kind i { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); flex: none; }
.project-label h3 { font-size: clamp(38px,4.6vw,84px); font-weight: 500; line-height: .98; letter-spacing: -.068em; }
.project-carrier, .project-screen { min-width: 0; }
.project-image, .project-image img { border-radius: 5px; }
.project-image img { width: 100%; height: auto; aspect-ratio: 1.6; object-fit: contain; background: var(--capture-ground,#17162d); }
.project-note { padding-block: 19px 0; }
.note-text { font-size: clamp(17px,1.4vw,22px); line-height: 1.48; max-width: 52ch; text-wrap: pretty; }
.project-link { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; padding-block: 8px; font-size: 15px; font-weight: 650; text-decoration: underline; text-underline-offset: 5px; }
.project-link span { text-decoration: none; }
.project-link:hover { text-decoration-thickness: 2px; }

.journey-active .journey-pin, .journey-catalogue .journey-pin {
  height: calc(100svh - var(--head)); position: sticky; top: var(--head); overflow: clip;
  background: var(--navy);
}
.journey-catalogue .journey-shell {
  height: 100%; display: grid; grid-template-rows: auto minmax(0,1fr);
  padding-block: clamp(18px,3.3svh,44px) clamp(16px,2.5svh,32px);
  gap: clamp(12px,2.5svh,32px);
}
.journey-catalogue .catalogue-window {
  display: block; overflow: clip; container-type: size;
}
.journey-catalogue .journey-cases {
  display: grid; height: 100%; margin: 0; isolation: isolate;
  grid-template: ". art" 1fr "copy art" auto ". art" 1fr / minmax(0,.54fr) minmax(0,1fr);
  column-gap: clamp(22px,5vw,88px); row-gap: 0;
}
.journey-catalogue .journey-project { display: contents; }
.journey-catalogue .project-label { grid-area: copy; align-self: start; opacity: 0; pointer-events: none; }
.journey-catalogue .catalogue-current .project-label { opacity: 1; pointer-events: auto; transition: opacity 150ms ease-out; }
.journey-catalogue .project-carrier {
  grid-area: art; display: grid; place-items: center; overflow: clip;
  container-type: size; pointer-events: none;
}
.journey-catalogue .project-screen {
  width: min(100%, calc(160cqh - 40px)); padding-top: 20px; overflow: clip;
}
.journey-catalogue .project-image {
  position: relative; overflow: clip; border-radius: 7px; transform-origin: top center;
  box-shadow: 0 2px 6px #09081355;
}
.journey-catalogue .project-image::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: #111122; opacity: var(--stack-shade, 0);
}
.journey-catalogue .project-image img { border-radius: 0; }
.journey-active .journey-landscape { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.journey-active .journey-shell { width: 100%; height: 100%; padding: 0; }
.journey-active .journey-head, .journey-active .journey-foot {
  position: absolute; left: 0; right: 0; z-index: 2;
  padding-inline: max(var(--gutter), calc((100% - 1512px) / 2));
}
.journey-active .journey-head {
  top: 0; align-items: flex-start; padding-block: clamp(20px,3.3svh,46px) 32px;
  background: linear-gradient(180deg, #14142e 0%, #14142e85 50%, transparent);
  pointer-events: none;
}
.journey-active .journey-head h2 { font-size: clamp(40px,4.6vw,78px); }
.journey-active .journey-switch { pointer-events: auto; }
.journey-active .journey-cases { position: absolute; inset: 0; display: block; margin: 0; isolation: isolate; }
.journey-active .journey-project {
  display: block; position: absolute; top: 0; left: 0;
  width: min(48vw,calc((100svh - var(--head)) * .84), 900px);
  transform-origin: 0 0; visibility: hidden; pointer-events: none;
}
.journey-active .journey-project.in-shot { visibility: visible; }
.journey-active .project-carrier {
  position: relative; width: 100%; aspect-ratio: 1.6; container-type: inline-size;
  --ad-mix: 0;
}
.journey-active .project-carrier::after {
  content: ""; position: absolute; inset: 0; z-index: 2; background: #625576;
  opacity: var(--haze,0); border-radius: 3px; pointer-events: none;
}
.journey-active .project-screen {
  position: absolute; inset: 0; z-index: 1; overflow: hidden; isolation: isolate; background: #181627;
  border: clamp(3px,.35vw,6px) solid #312c42; border-bottom: 0; border-radius: 4px 4px 0 0;
  box-shadow: 0 -1px 0 #b5b2b7, 2px 1px 0 #171719;
}
/* The pixel surface and the bezel stay in place throughout the ad change. */
.journey-active .project-screen::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: radial-gradient(circle at center, #09091c66 .5px, transparent .85px);
  background-size: 3px 3px; opacity: calc(.10 + .23 * var(--ad-mix));
}

/* The two posts end at the projected shoulder, even on a bend or a small screen. */
.journey-active .journey-project::after {
  content: ""; position: absolute; z-index: -1; top: 99%; left: 20%; right: 20%;
  height: var(--legs, 0);
  background: linear-gradient(90deg, #241d38 0%, #8d8294 .8%, #5b4e68 1.8%, #352d47 2.5%, transparent 2.6%,
    transparent 97.4%, #272038 97.5%, #8a7e8d 98.4%, #4e435a 99.4%, #2e293e 100%);
}
.journey-active .journey-project::before {
  content: ""; position: absolute; top: calc(99% + var(--legs,0px) - 2px); left: 20%; width: 60%; height: 5px;
  background: linear-gradient(90deg,transparent,#1511259c 50%,#151125cb); border-radius: 50%; transform: skew(-33deg);
}
.journey-active .project-image, .journey-active .project-note { position: absolute; inset: 0; border-radius: 0; }
.journey-active .project-image { background: #211e30; opacity: calc(1 - var(--ad-mix)); }
.journey-active .project-image img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.journey-active .project-image::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--lamp,0);
  background: radial-gradient(ellipse at 30% -16%,#fff5c42b,transparent 45%), radial-gradient(ellipse at 72% -16%,#fff5c425,transparent 45%);
}
.journey-active .project-label {
  display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 14px;
  position: absolute; z-index: 2; top: 100%; width: 100%; padding: 9px clamp(12px,1.2vw,20px) 10px;
  border-radius: 0 0 3px 3px; border-top: 1px solid #72636a; border-bottom: 3px solid #2e253d;
  background: linear-gradient(115deg,#242037,#31273e); box-shadow: 2px 1px 0 #151222;
}
.journey-active .project-label h3 {
  flex: 1; color: #fff7df; font-weight: 570; letter-spacing: -.042em;
  font-size: clamp(19px,2.1vw,34px); line-height: 1.05; text-wrap: initial;
}
.journey-active .project-kind { flex: none; gap: 7px; margin: 0; color: #e7d9e2; letter-spacing: .01em; font-size: clamp(11px,1vw,16px); }
.journey-active .project-kind i { width: 5px; height: 5px; background: #ffe18b; }
.journey-active .project-note {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(15px,6cqw,48px); opacity: var(--ad-mix); color: #fff8ec;
  background: #211e36;
}
.journey-active .note-folio {
  display: flex; justify-content: space-between; gap: 12px; color: #d4baf6; font-weight: 620;
  font-size: clamp(11px,2.05cqw,15px); font-variant-numeric: tabular-nums;
}
.journey-active .note-body { margin-block: auto; }
.journey-active .note-text { font-size: clamp(16px,4.65cqw,36px); letter-spacing: -.034em; line-height: 1.17; max-width: 29ch; }
.journey-active .project-link { margin-top: clamp(2px,1.6cqw,16px); color: #ffe574; }
.journey-active .can-read .project-link { pointer-events: auto; }
.journey-active .journey-foot {
  display: flex; bottom: 0; align-items: center; gap: clamp(12px,2vw,32px); color: #f2e9f1;
  padding-block: 34px clamp(20px,3.5svh,44px); pointer-events: none;
  font-size: clamp(13px,1.05vw,16px); font-weight: 520;
  background: linear-gradient(0deg,#14142e 0%,#14142eb3 46%,transparent);
}
.journey-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.journey-count b { color: var(--yellow); font-weight: 650; }
.journey-stops { display: flex; align-items: center; gap: 4px; width: clamp(70px,12vw,190px); }
.journey-stops i { display: block; flex: 1; height: 2px; background: #877d96; }
.journey-stops .passed { background: #c3a3ff; }
.journey-stops .here { background: var(--yellow); }
.journey-cue { margin-left: auto; }
.journey-cue > span:first-child { color: var(--yellow); margin-right: 5px; }
@media (min-width:741px) and (max-width:1000px) and (orientation:portrait) {
  .journey-active .journey-project { width: 59vw; }
}
@media (max-width: 740px) {
  .journey-active .journey-project.in-shot { will-change: transform, opacity; }
  .journey-head h2, .journey-active .journey-head h2 { font-size: clamp(36px,8.4vw,56px); }
  .journey-switch { padding-inline: 4px; font-size: 13px; }
  .journey-project { grid-template-columns: 1fr; gap: 17px; }
  .project-kind { margin-bottom: 7px; }
  .project-label h3 { font-size: clamp(37px,8.8vw,60px); }
  .journey-catalogue .journey-cases {
    grid-template: "copy" auto "art" minmax(0,calc(62.5cqw + 26px)) / minmax(0,1fr);
    align-content: center; gap: clamp(8px,2.4cqh,22px);
  }
  .journey-catalogue .project-label { padding: 0; }
  .journey-catalogue .project-note { padding-top: 10px; }
  .journey-active .journey-project { width: min(86vw,calc((100svh - var(--head)) * 1.02)); }
  .journey-active .journey-head { padding-block: 19px 28px; }
  .journey-active .project-label { padding: 9px 10px; gap: 7px; }
  .journey-active .project-kind { font-size: clamp(10px,2.8vw,13px); gap: 5px; }
  .journey-active .project-label h3 { font-size: clamp(18px,4.7vw,26px); }
  .journey-active .journey-foot { gap: 9px; font-size: 12px; padding-block: 30px 23px; }
  .journey-stops { width: clamp(30px,10vw,65px); gap: 2px; }
  .journey-active .project-link { margin-top: 0; font-size: 14px; }
}

@media (max-width: 740px) and (max-height: 640px) {
  .journey-catalogue .note-text { font-size: 16px; line-height: 1.4; }
}

/* In the road view the end link lands at the tunnel's reading stop. */
.catalogue-anchor, .journey-end-anchor { position: absolute; width: 1px; height: 1px; pointer-events: none; }
.catalogue-anchor { top: 0; }
.journey-end-anchor { bottom: 0; }
.journey-active .journey-end-anchor { top: var(--end-stop); bottom: auto; }

/* The enamel plaque is mounted on the crown of the mountain portal. */
.journey-outro { display: none; }
.journey-ahead {
  container-type: inline-size;
}
.ahead-sign {
  position: relative; display: grid; align-items: center;
  grid-template-columns: 11% 1fr auto; gap: 5%;
  padding: 4.5% 6%; color: #292334; background: #f7d66b;
  border-radius: 1.35cqw; outline: .65cqw solid #463c39; outline-offset: -.95cqw;
  box-shadow: 0 1cqw 0 #554951;
}
.ahead-sign::before, .ahead-sign::after {
  content: ""; position: absolute; top: 45%; width: 1.05cqw; aspect-ratio: 1;
  background: #675845; border-radius: 50%;
}
.ahead-sign::before { left: 2.5%; }
.ahead-sign::after { right: 2.5%; }
.ahead-arrow { width: 100%; height: auto; }
.ahead-message { font-size: 6.8cqw; line-height: 1.04; font-weight: 700; letter-spacing: -.047em; }
.ahead-distance {
  padding-left: 3.5cqw; border-left: .5cqw solid #a88c48; white-space: nowrap;
  font-size: 5.2cqw; font-weight: 650; line-height: 1.45; letter-spacing: -.035em;
}
.journey-active .journey-outro { display: contents; }
.journey-active .journey-ahead {
  position: absolute; left: 0; top: 0; z-index: 1; width: 480px;
  visibility: hidden; pointer-events: none; transform-origin: 0 0;
}
.journey-active .journey-ahead.in-shot { visibility: visible; }
@media (max-width:740px) {
  .journey-active .journey-project::after {
    left: var(--post-a-x); right: auto; width: 5px; height: var(--post-a-height); transform: translateX(-50%);
    background: linear-gradient(90deg,#403a50,#afa5ab 40%,#706578 63%,#373247);
  }
  .journey-active .journey-project::before {
    left: var(--post-b-x); right: auto; top: 99%; width: 5px; height: var(--post-b-height);
    transform: translateX(-50%); border-radius: 0;
    background: linear-gradient(90deg,#403a50,#afa5ab 40%,#706578 63%,#373247);
  }
}
