/* The two prints come from the front and back of the studio card. */
.trail-scene {
  position: relative; width: 100%; aspect-ratio: 1086 / 602; isolation: isolate;
  background: #0a0d16; overflow: hidden; color-scheme: dark;
}
.trail-map { display: block; width: 100%; height: 100%; object-fit: contain; }
.trail-pair {
  position: absolute; left: 32%; bottom: 23%; display: flex; align-items: end;
  width: 17%; gap: 2%; filter: drop-shadow(0 2px 0 #0b0d10);
}
.trail-hiker { display: block; width: 49%; height: auto; overflow: visible; }
.trail-hiker.sebastian { translate: 0 -3px; }
.trail-beacon {
  position: absolute; left: var(--trail-x,91%); top: var(--trail-y,35%);
  width: clamp(5px,.8vw,9px); aspect-ratio: 1; background: #ff9a50; translate: -50% -50%;
  outline: 2px solid #11141a; box-shadow: 0 0 0 3px #ffb37b;
}

/* Portrait and landscape share the same map and a native, scrollable modal. */
.guide-dialog {
  --guide-paper: #f7f5f1; --guide-ink: #161921; --guide-line: #c8c8cb; --guide-hover: #eae8f3;
  inset: 0; margin: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none;
  padding: 0; border: none; border-radius: 0; box-shadow: none; background: var(--guide-paper); color: var(--guide-ink);
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
}
.guide-dialog[open] { display: flex; flex-direction: column; }
.guide-cap {
  position: sticky; top: 0; z-index: 2; flex-shrink: 0; background: #10131c; color: #f6f5f2;
  padding: max(9px,env(safe-area-inset-top)) max(clamp(16px,4vw,62px),env(safe-area-inset-right)) 9px max(clamp(16px,4vw,62px),env(safe-area-inset-left));
  border-bottom: 1px solid #373b4a;
}
.guide-cap strong { font: 560 18px/1.2 var(--font-title); letter-spacing: -.035em; }
.guide-cap .season-icon { width: 32px; height: 32px; }
.guide-close { width: 44px; height: 44px; border: 1px solid #757d8f; color: #fff; }
.guide-close:hover { background: #343947; }
.guide-spread {
  flex: 1 0 auto; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.92fr);
  grid-template-areas: "choices map"; align-items: center;
}
.guide-atlas {
  grid-area: map; align-self: stretch; display: grid; align-content: center; background: #0a0d16;
  overflow: hidden; position: relative;
}
.guide-atlas::after {
  content: ""; position: absolute; inset: auto 0 0; height: 5px;
  background: linear-gradient(90deg,#ff7229 0 16%,#383c50 16% 49%,#989ab3 49% 64%,#242939 64%);
}
.guide-dialog[data-stop="zuhause"] { --trail-x: 52%; --trail-y: 69%; }
.guide-dialog[data-stop="kosten"] { --trail-x: 64%; --trail-y: 66%; }
.guide-dialog[data-stop="gruppe"] { --trail-x: 75%; --trail-y: 49%; }
.guide-dialog[data-stop="produkte"] { --trail-x: 87%; --trail-y: 41%; }
.guide-body { grid-area: choices; width: min(100%,670px); margin-inline: auto; }
.guide-step { padding: clamp(23px,5vw,84px); }
.guide-step .guide-progress { color: var(--signal-text); margin-bottom: 15px; }
.guide-step h2 {
  font: 580 clamp(31px,4.25vw,67px)/1.02 var(--font-title); letter-spacing: -.061em;
  color: var(--guide-ink); margin: 0 0 clamp(18px,3vh,36px); text-wrap: balance;
}
.guide-options,.guide-options :is(a,button) { border-color: var(--guide-line); }
.guide-options :is(a,button) { min-height: 49px; padding: 12px 5px; color: var(--guide-ink); font-size: clamp(14px,1.23vw,18px); }
.guide-options :is(a,button):is(:hover,:focus-visible) { background: var(--guide-hover); }
.guide-options span { color: var(--signal-text); }
.guide-back { color: var(--guide-ink); margin-top: 10px; }
.guide-step :is(a,button):focus-visible { outline-offset: -3px; }
@media (max-width: 660px) {
  .guide-spread { display: flex; flex-direction: column; align-items: stretch; }
  .guide-atlas { flex: none; height: clamp(100px,23svh,190px); display: flex; align-items: center; justify-content: center; }
  .guide-atlas .trail-scene { flex: none; width: min(100%,calc(clamp(100px,23svh,190px) * 1.80)); }
  .guide-atlas .trail-map { mask-image: linear-gradient(to right,transparent,#000 6% 94%,transparent); }
  .guide-atlas::after { height: 3px; }
  .guide-body { margin: auto; }
  .guide-step { padding: clamp(20px,4.2vh,45px) max(22px,env(safe-area-inset-right)) max(25px,env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left)); }
}
@media (max-width: 600px) and (max-height: 650px) {
  .guide-atlas { height: 56px; }
  .guide-atlas .trail-scene { width: 101px; }
  .guide-step { padding-top: 12px; padding-bottom: 16px; }
  .guide-step h2 { margin-block: 8px 12px; font-size: 26px; }
  .guide-options :is(a,button) { min-height: 44px; padding-block: 8px; }
}
@media (max-height:470px) and (min-width:490px) {
  .guide-spread { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,.7fr); }
  .guide-atlas { height: auto; display: grid; }
  .guide-step { padding: 18px 22px; }
  .guide-step h2 { font-size: 27px; }
}

/* Keeping the complete illustration opaque preserves its printed ink colours. */
.origin-hero {
  --origin-gutter: clamp(18px,5vw,72px);
  margin: 0 0 clamp(30px,5vw,68px); padding: clamp(22px,5vw,68px) var(--origin-gutter) 0;
  background: #f9f6f1; color: #151925; border: 1px solid #d7d2cc; overflow: hidden;
}
.origin-copy { position: relative; max-width: 52rem; z-index: 1; }
.origin-copy h1 { font: 570 clamp(40px,6.3vw,93px)/.97 var(--font-title); letter-spacing: -.066em; margin: 14px 0 18px; }
.origin-copy h1 span { display: block; }
.origin-copy > p:last-child { max-width: 56ch; font-size: clamp(15px,1.45vw,18px); line-height: 1.5; }
.origin-panorama { width: 100%; height: auto; display: block; margin: clamp(13px,2vw,26px) 0 0; }
@media screen and (prefers-reduced-motion:no-preference) {
  html { scroll-behavior: smooth; }
  .page-arrival main { animation: page-arrives 210ms var(--ease-settle); }
  @keyframes page-arrives { from { opacity: .78; transform: translateY(4px); } }
  .with-pixel-intro .pixel-intro {
    display: grid !important; place-items: center; position: fixed; inset: 0; z-index: 20;
    pointer-events: none; background: var(--canvas,var(--brand-surface)); overflow: hidden;
  }
  .with-pixel-intro .pixel-intro { animation: finish-journey 620ms ease-out both; }
  .journey-print { width: min(88vw,78vh,620px); position: relative; }
  .journey-print .trail-scene { clip-path: var(--pixel-cut); }
  .journey-mark { width: clamp(108px,16vw,180px); height: auto; position: relative; z-index: 1; display: block; margin: 0 0 10px; }
  .journey-print .trail-map { image-rendering: pixelated; animation: atlas-reveal 410ms var(--ease-settle) both; }
  .with-pixel-intro .trail-pair,.guide-dialog[open] .trail-pair { animation: hiking 650ms steps(7,end) both; }
  .trail-stride { transform-box: fill-box; transform-origin: center bottom; }
  :is(.with-pixel-intro,.guide-dialog[open]) .trail-stride { animation: footfall 170ms steps(2,end) 4 alternate; }
  :is(.with-pixel-intro,.guide-dialog[open]) .sebastian .trail-stride { animation-delay: -80ms; }
  :is(.with-pixel-intro,.guide-dialog[open]) .boot-front { animation: stride-front 160ms steps(2,end) 4 alternate; }
  :is(.with-pixel-intro,.guide-dialog[open]) .boot-back { animation: stride-back 160ms steps(2,end) 4 alternate; }
  .guide-dialog[open]:not([data-closing]) { animation: atlas-reveal 400ms var(--ease-settle) both; transform-origin: center; }
  .guide-dialog[open] .guide-atlas .trail-map { animation: atlas-approach 660ms var(--ease-settle) backwards; }
  .guide-dialog[open] .trail-beacon { transition: left 360ms steps(9,end),top 360ms steps(9,end); }
  .guide-dialog[open] .guide-step:not([hidden]) .guide-options > * { animation: choice-in 280ms var(--ease-settle) var(--choice-delay,0ms) backwards; }
  .guide-options > :nth-child(2) { --choice-delay: 24ms; }
  .guide-options > :nth-child(3) { --choice-delay: 48ms; }
  .guide-options > :nth-child(n+4) { --choice-delay: 72ms; }
  @keyframes atlas-reveal {
    from { clip-path: polygon(0 0,0 0,0 25%,0 25%,0 50%,0 50%,0 75%,0 75%,0 100%,0 100%); }
    to { clip-path: polygon(0 0,130% 0,130% 25%,120% 25%,120% 50%,110% 50%,110% 75%,100% 75%,100% 100%,0 100%); }
  }
  @keyframes atlas-approach { from { transform: scale(1.07); } }
  @keyframes hiking { from { transform: translate(-20%,4%); } to { transform: none; } }
  @keyframes footfall { to { transform: translateY(-1px); } }
  @keyframes stride-front { to { transform: translateX(-3px); } }
  @keyframes stride-back { to { transform: translateX(3px); } }
  @keyframes choice-in { from { opacity: .35; transform: translateX(-6px); } }
  @keyframes finish-journey { 0%,50% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
}
@media print { .guide-dialog,.pixel-intro { display: none !important; } .origin-hero { break-inside: avoid; } }
