/* The journey: the six steps as one drawn port scene. Without journey.js, or with reduced motion, this is a plain
   section: heading, the steps as a list, and the scene standing still at the arrival. */
.gsg-journey-steps{list-style:none;margin:clamp(28px,4vw,56px) 0 0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:36px 32px}
.gsg-journey-steps li{display:grid;grid-template-columns:auto 1fr;gap:10px 16px;align-items:center}
.gsg-journey-n{width:56px;height:56px;border-radius:50%;background:var(--red);color:#fff;display:grid;place-items:center;font-size:1.6rem;font-variant-numeric:tabular-nums}
.gsg-journey-steps h3{margin:0;font-size:clamp(1.45rem,1.75vw,1.9rem)}
.gsg-journey-steps p{grid-column:1/-1;margin:0;max-width:34ch;color:var(--ink-2);font-size:.98rem}
.gsg-journey-scene{margin:clamp(32px,5vw,64px) calc(var(--gut)*-1) 0;aspect-ratio:5/2}
.gsg-journey-rail{display:none}

.gsg-journey svg{display:block;width:100%;height:100%;fill:none;stroke:var(--ink);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.gsg-j-p{fill:var(--panel)}
.gsg-j-k{fill:var(--sunk)}
.gsg-j-s{fill:var(--steel)}
.gsg-j-i{fill:var(--ink);stroke:none}
.gsg-j-t,.gsg-j-wh{stroke:var(--steel);stroke-width:2}
.gsg-j-f,.gsg-j-n,.gsg-j-glow{stroke:none}
.gsg-j-r{stroke:var(--red)}
.gsg-j-rf{fill:var(--red);stroke:none}
.gsg-j-tyre{fill:var(--j-tyre)}
.gsg-j-far{fill:var(--j-far);stroke:none}
.gsg-j-sun{fill:var(--j-sun);stroke:var(--rule);stroke-width:2}
.gsg-j-win{stroke:var(--j-far);stroke-linecap:butt}
.gsg-j-lamp{fill:var(--j-lamp)}
.gsg-j-cone{fill-opacity:.11}
.gsg-j-pile{stroke:var(--rule);stroke-width:22;stroke-linecap:butt;stroke-dasharray:3 117}
.gsg-j-wash{fill:var(--red);stroke:none;opacity:.12}
.gsg-j-d{stroke-dasharray:100 101}
.gsg-j-ln .gsg-j-d{stroke-dashoffset:var(--o,0)}
.gsg-j-dash{stroke-dasharray:.8 .9}
.gsg-j-sign,.gsg-j-drv{fill:#fff;stroke:none;font:900 27px var(--display);text-anchor:middle;text-transform:uppercase;letter-spacing:.02em}
.gsg-j-drv{fill:var(--ink);font-size:16px;text-anchor:start}
.gsg-j-g0,.gsg-j-g1{stop-color:var(--ground)}
.gsg-j-g2{stop-color:var(--red-wash)}
.gsg-j-n{fill:var(--ink);opacity:var(--j-night)}
/* Dark is dusk at the port, not the light scene inverted: stars out, lamps and windows lit. The switch is made of
   custom properties because a theme selector does not reach the shapes drawn through <use>. */
.gsg-journey{--j-night:0;--j-tyre:var(--ink);--j-far:var(--sunk);--j-sun:var(--panel);--j-lamp:var(--panel)}
[data-theme=dark] .gsg-journey{--j-night:.9;--j-tyre:var(--sunk);--j-far:var(--panel);--j-sun:var(--ink-2);--j-lamp:var(--ink)}
[data-theme=dark] .gsg-j-win{stroke:var(--ink-2)}

@media (max-width:860px){
.gsg-journey-steps{grid-template-columns:1fr 1fr}
.gsg-journey-scene{aspect-ratio:5/4}
}
@media (max-width:520px){
.gsg-journey-steps{grid-template-columns:1fr}
}

/* journey.js adds this class when motion is allowed: a tall track with the stage held on screen. */
.gsg-journey-on{height:500vh;padding:0}
.gsg-journey-on .gsg-journey-stage{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden;padding:clamp(36px,7vh,80px) var(--gut) 0}
.gsg-journey-on .gsg-h2,.gsg-journey-on .gsg-journey-steps{position:relative;z-index:1}
.gsg-journey-on .gsg-h2{font-size:clamp(2rem,min(5vw,8vh),4.6rem);max-width:16ch}
.gsg-journey-on .gsg-journey-steps{grid-template-columns:1fr;gap:0;max-width:27rem;margin-top:clamp(14px,2.6vh,28px)}
.gsg-journey-on li{grid-area:1/1;align-self:start;opacity:0;transition:opacity .15s}
.gsg-journey-on li.gsg-on{opacity:1;transition:opacity .4s .14s}
.gsg-journey-on .gsg-journey-scene{position:absolute;inset:18% 0 52px;margin:0;aspect-ratio:auto}
.gsg-journey-on .gsg-journey-rail{display:flex;gap:6px;position:absolute;inset:auto calc(var(--gut) + 76px) 24px var(--gut)}
.gsg-journey-rail i{flex:1;height:3px;border-radius:2px;background:var(--rule)}
.gsg-journey-rail .gsg-on{background:var(--red)}
.gsg-journey-live .gsg-j-w,.gsg-journey-live .gsg-j-pk,.gsg-journey-live .gsg-j-ship{will-change:transform}
@media (max-width:860px){
.gsg-journey-on{height:450svh}
.gsg-journey-on .gsg-journey-stage{--jh:max(45svh,100svh - 340px);padding-top:calc(var(--jh) + 22px)}
.gsg-journey-on .gsg-journey-scene{inset:0 0 auto;height:var(--jh)}
.gsg-journey-on .gsg-h2{font-size:clamp(1.7rem,7.4vw,2.4rem)}
}
