/* The lower deck is part of the pinned hero: the entire visible area is a
   keyboard-accessible shortcut to the same destination as Sakura's flight. */
.hero__tour {
  --tour-axis: .66;
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  min-height: 6.25rem; padding: var(--space-3) max(var(--space-5), calc((100% - var(--stage-width)) / 2));
  color: var(--screen-fg); text-decoration: none;
  border-block: var(--border-width) solid color-mix(in srgb, var(--crystal-cyan) 32%, var(--stage-ink));
  background: radial-gradient(ellipse at 67% 42%, color-mix(in srgb, var(--crystal-rose) 13%, transparent), transparent 52%),
    linear-gradient(120deg, var(--hero-base), var(--stage-ink));
}
.hero__tour::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--screen-muted) 28%, transparent) .65px, transparent 1px)
    0 0 / 1.75rem 1.75rem;
}
.tour-terrain { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tour-caption {
  position: relative; display: grid; justify-items: start; gap: var(--space-2);
  text-shadow: 0 1px .4rem var(--hero-base), 0 0 1.2rem var(--stage-ink);
}
.tour-caption::before {
  content: ""; position: absolute; z-index: -1; inset: -80% -38% -70%;
  background: radial-gradient(ellipse, var(--hero-base), transparent 71%); pointer-events: none;
}
.tour-caption strong { font-size: clamp(1.35rem, 2vw, 3.3rem); letter-spacing: -.055em; line-height: 1.05; }
.tour-destination { display: inline-flex; align-items: center; gap: .65em; color: var(--screen-muted); font: 550 clamp(.73rem, .8vw, 1rem)/1.35 var(--font-mono); }
.tour-destination .icon { width: 1.2em; height: 1.2em; color: var(--crystal-cyan); }
.tour-beacon {
  position: absolute; left: calc(var(--tour-axis) * 100%); top: 35%;
  width: clamp(2.45rem, 4.8svh, 5rem); aspect-ratio: 1; transform: translate(-50%, -50%);
  display: grid; place-content: center; justify-items: center; color: var(--crystal-cyan);
}
.tour-beacon::before, .tour-beacon::after { content: ""; position: absolute; inset: 0; border: 1px solid currentColor; }
.tour-beacon::before { transform: rotate(45deg) scale(.85); background: var(--hero-base); box-shadow: 0 0 1.25rem color-mix(in srgb, var(--crystal-cyan) 19%, transparent); }
.tour-beacon::after { transform: rotate(45deg) scale(1.12); opacity: .5; border-color: var(--crystal-rose) transparent; }
.tour-beacon i { position: relative; width: 24%; min-width: .55rem; aspect-ratio: 1; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-20%) rotate(45deg); }
.tour-beacon i + i { margin-top: -.15rem; color: var(--crystal-rose); }
.tour-lights { position: absolute; top: 34%; bottom: 0; width: 28%; left: calc(var(--tour-axis) * 100% - 14%); }
.tour-lights i { position: absolute; inset: 0; transform-origin: 50% 0; opacity: 0; }
.tour-lights i::before, .tour-lights i::after {
  content: ""; position: absolute; top: 0; width: 50%; height: clamp(.45rem, 1.2svh, 1.25rem);
}
.tour-lights i::before {
  left: 0; background: linear-gradient(90deg, var(--crystal-cyan), transparent);
  clip-path: polygon(0 0, 100% 84%, 100% 100%, 0 22%);
}
.tour-lights i::after {
  right: 0; background: linear-gradient(270deg, var(--crystal-rose), transparent);
  clip-path: polygon(100% 0, 100% 22%, 0 100%, 0 84%);
}
.tour-meter { position: absolute; bottom: 0; left: 0; width: 100%; height: .25rem; background: color-mix(in srgb, var(--screen-muted) 18%, transparent); }
.tour-meter i { display: block; height: 100%; background: linear-gradient(90deg,var(--crystal-cyan),var(--crystal-rose)); transform: scaleX(0); transform-origin: left; }
.hero__tour:is(:hover,:focus-visible) .tour-caption strong { color: var(--crystal-cyan); }
.hero__tour:focus-visible { outline-color: var(--crystal-cyan); outline-offset: calc(-1 * var(--focus-width)); }
@media (prefers-reduced-motion: no-preference) {
  .tour-meter i { --pose: tour-progress; }
  .tour-terrain { --pose: tour-parallax; transform-origin: calc(var(--tour-axis) * 100%) 34%; }
  .tour-lights i { animation: tour-approach 3.6s cubic-bezier(.48,.22,.65,.75) infinite; }
  .tour-lights i:nth-child(2) { animation-delay: -1.2s; }
  .tour-lights i:nth-child(3) { animation-delay: -2.4s; }
  .tour-beacon i { animation: tour-down 2.8s ease-in-out infinite; }
  .tour-beacon i + i { animation-delay: .16s; }
}
@keyframes tour-approach {
  0% { opacity: 0; transform: translateY(0) scale(.04); }
  18% { opacity: .9; } 84% { opacity: 1; }
  100% { opacity: 0; transform: translateY(100%) scale(1); }
}
@keyframes tour-down { 0%, 65%, 100% { transform: translateY(-20%) rotate(45deg); } 38% { transform: translateY(14%) rotate(45deg); } }
@keyframes tour-parallax { from { transform: none; } to { transform: scale(1.12, 1.22); } }
@keyframes tour-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 48rem) {
  .hero__tour { --tour-axis: .77; min-height: clamp(4.75rem, 10svh, 6.5rem); padding-inline: var(--space-4); }
  .tour-caption { gap: var(--space-1); }
  .tour-beacon { top: 42%; width: 2rem; }
}

