/* "Scroll the hole" (journey.py, journey.js). One sticky stage under the site bar; the page's scroll drives a camera along
   the hole on the golden photo. The one loud thing is the countdown number; everything else stays quiet. Colours come
   from site.css. --jr-h is the journey's length in screens x 100, set per hole by journey.py (short holes scroll less). */
.jr { position: relative; height: calc(var(--jr-h, 400) * 1vh); height: calc(var(--jr-h, 400) * 1svh); background: var(--navy-deep); }
.jr__stage { position: sticky; top: var(--jr-top, 55px); height: calc(100vh - var(--jr-top, 55px)); height: calc(100svh - var(--jr-top, 55px)); z-index: 10; overflow: hidden;
  background: var(--navy-deep); display: grid; justify-items: center; }
.jr__frame { position: relative; height: 100%; width: min(100vw, 62vh); overflow: hidden; background: var(--navy); }
.jr__layer { position: absolute; left: 0; top: 0; width: 1080px; height: 1920px; transform-origin: 0 0; will-change: transform; }
.jr__layer img, .jr__layer svg { position: absolute; inset: 0; width: 1080px; height: 1920px; max-width: none; }
.jr__layer svg { overflow: visible; }
.jr__aim { fill: none; stroke: var(--gold); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.jr__aimbg { fill: none; stroke: rgb(10 22 40 / .55); stroke-width: 15; stroke-linecap: round; stroke-linejoin: round; }
.jr__route { fill: none; stroke: rgb(255 255 255 / .7); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1 16; }
.jr__ring { fill: rgb(242 193 78 / .2); stroke: var(--gold); stroke-width: 6; }
.jr__miss { fill: none; stroke: var(--hazard); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 26 20; }
.jr__missbg { fill: none; stroke: #FFFFFF; stroke-width: 15; stroke-linecap: round; stroke-dasharray: 26 20; }
.jr__gb { fill: rgb(232 67 46 / .16); stroke: var(--hazard); stroke-width: 5; }
.jr__teedot { fill: #FFFFFF; stroke: rgb(0 0 0 / .5); stroke-width: 4; }
.jr__flag line { stroke: #FFFFFF; stroke-width: 6; stroke-linecap: round; }
.jr__flag path { fill: var(--hazard); }
.jr__ball { fill: #FFFFFF; stroke: var(--gold); stroke-width: 6; }
.jr__fade { opacity: 0; transition: opacity .35s ease; }
.jr__fade.on { opacity: 1; }

.jr__shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgb(10 22 40 / .62) 0, rgb(10 22 40 / 0) 16%, rgb(10 22 40 / 0) 46%, rgb(10 22 40 / .9) 82%, rgb(10 22 40 / .96) 100%); }
.jr__top { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 12px var(--gut-r) 0 var(--gut-l); color: var(--white); }
.jr__where { font-size: .9375rem; line-height: 1.2; text-shadow: 0 1px 6px rgb(10 22 40 / .9); }
.jr__where b { display: block; font: 400 1.75rem/1.1 var(--display); letter-spacing: .01em; }
.jr__skip { flex: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--copper); color: var(--navy-deep);
  font-weight: 700; font-size: 1rem; text-decoration: none; box-shadow: 0 2px 10px rgb(10 22 40 / .45); }
.jr__skip:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

.jr__hud { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 calc(var(--gut-r) + 14px) calc(env(safe-area-inset-bottom, 0px) + 18px) var(--gut-l); color: var(--white); display: grid; gap: 10px; }
.jr__cap { min-height: 5.2rem; display: grid; align-content: end; gap: 2px; }
.jr__cap.in { animation: jr-cap .28s ease; }
@keyframes jr-cap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.jr__k { font-weight: 700; font-size: 1rem; color: var(--gold); }
.jr__k[data-tone="hz"] { color: #FF9A88; }
.jr__k[data-tone="ok"] { color: #9FE0B0; }
.jr__v { font-weight: 700; font-size: 1.3125rem; line-height: 1.25; text-wrap: balance; }
.jr__num { display: flex; align-items: flex-end; gap: 12px; }
.jr__m { font: 400 clamp(5.5rem, 31vw, 9.5rem)/.82 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.jr__u { font-size: .9375rem; line-height: 1.3; padding-bottom: .35rem; color: var(--mist); }
.jr__u b { display: block; color: var(--white); font-size: 1.0625rem; }

.jr__rail { position: absolute; right: 8px; top: 22%; bottom: 22%; width: 4px; border-radius: 2px; background: rgb(255 255 255 / .28); }
.jr__rail i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-radius: 2px; background: var(--copper); }
.jr__hint { position: absolute; left: 0; right: 0; top: 44%; text-align: center; color: var(--white); font-weight: 700; font-size: 1.125rem;
  text-shadow: 0 1px 8px rgb(10 22 40 / .95); transition: opacity .3s ease; pointer-events: none; }
.jr__hint::after { content: ""; display: block; width: 14px; height: 14px; margin: 10px auto 0; border-right: 3px solid var(--copper); border-bottom: 3px solid var(--copper);
  transform: rotate(45deg); animation: jr-nudge 1.6s ease-in-out infinite; }
.jr__hint.off { opacity: 0; }
@keyframes jr-nudge { 0%, 100% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(8px) rotate(45deg); } }
#plan { scroll-margin-top: 120px; }
@media (prefers-reduced-motion: reduce) { .jr__hint::after { animation: none; } .jr__fade { transition: none; } .jr__cap.in { animation: none; } }
@media print { .jr { display: none; } }
