/* Bell 206 scroll tour overlay */

.heli-tour {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  color: var(--text, #e8f0f2);
  font-family: var(--font-sans, "IBM Plex Sans", sans-serif);
  background: #05080e;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.heli-tour.is-open {
  display: block;
}

body.heli-tour-open {
  overflow: hidden;
}

.heli-tour__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.heli-tour__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.heli-tour__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 60% 45%, transparent 30%, rgba(5, 8, 14, 0.35) 75%, rgba(5, 8, 14, 0.72) 100%),
    linear-gradient(90deg, rgba(5, 8, 14, 0.82) 0%, rgba(5, 8, 14, 0.35) 38%, transparent 62%);
}

.heli-tour__chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 18px 22px;
  pointer-events: none;
}

.heli-tour__brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
}

.heli-tour__brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.heli-tour__brand-qiniruk {
  color: var(--accent, #64d8d0);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.heli-tour__brand-sep {
  display: inline-block;
  width: 1px;
  height: 0.72em;
  margin: 0 2px;
  background: rgba(232, 240, 242, 0.35);
  flex-shrink: 0;
  align-self: center;
}

.heli-tour__brand-fly {
  font-family: var(--font-sans, "IBM Plex Sans", sans-serif);
  color: var(--amber, #f4c06a);
  font-size: 0.95rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.08em;
}

.heli-tour__brand-sub {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted, #8fa3a8);
}

.heli-tour__close {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  pointer-events: auto;
  cursor: pointer;
  border: 1px solid rgba(140, 210, 230, 0.28);
  background: rgba(10, 16, 24, 0.72);
  color: var(--text, #e8f0f2);
  border-radius: 12px;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.heli-tour__close:hover,
.heli-tour__close:focus-visible {
  border-color: rgba(100, 216, 208, 0.65);
  color: #fff;
  outline: none;
}

.heli-tour__scroll {
  position: relative;
  z-index: 2;
  margin-top: -100vh;
  pointer-events: none;
}

.heli-tour__chapters {
  width: min(420px, calc(100% - 40px));
  margin: 0;
  padding: 0 0 40vh;
  list-style: none;
}

.heli-tour__chapter {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 12vh 24px 12vh 28px;
  pointer-events: none;
}

.heli-tour__card {
  pointer-events: auto;
  width: 100%;
  padding: 22px 22px 20px;
  border-radius: 16px;
  border: 1px solid rgba(140, 210, 230, 0.22);
  background:
    radial-gradient(circle at 20% 0%, rgba(120, 220, 255, 0.12), transparent 50%),
    rgba(10, 16, 24, 0.78);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  opacity: 0.42;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.25s ease;
}

.heli-tour__chapter.is-active .heli-tour__card {
  opacity: 1;
  transform: none;
  border-color: rgba(100, 216, 208, 0.45);
}

.heli-tour__kicker {
  margin: 0 0 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent, #64d8d0);
}

.heli-tour__card h2 {
  margin: 0 0 10px;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
}

.heli-tour__card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--muted, #8fa3a8);
}

.heli-tour__footer {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 24px 48px;
  pointer-events: auto;
  text-align: left;
}

.heli-tour__closing {
  margin: 0 0 28px;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text, #e8f0f2);
}

.heli-tour__footer p {
  margin: 0 0 8px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted, #8fa3a8);
}

.heli-tour__footer .heli-tour__closing {
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  line-height: 1.25;
  color: var(--text, #e8f0f2);
}

.heli-tour__footer a {
  color: var(--accent, #64d8d0);
}

.heli-tour__hint {
  position: fixed;
  left: 50%;
  top: 92px;
  z-index: 3;
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(200, 230, 240, 0.32);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0.06) 40%,
      rgba(10, 16, 24, 0.4) 100%
    ),
    rgba(12, 20, 28, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 8px 20px rgba(0, 0, 0, 0.3);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text, #e8f0f2);
  pointer-events: none;
  opacity: 0.95;
  transform: translateX(-50%);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  transition: opacity 0.4s ease;
}

.heli-tour__hint.is-hidden {
  opacity: 0;
}

.airframe-plate {
  cursor: pointer;
}

.airframe-plate:focus-visible {
  outline: 2px solid rgba(100, 216, 208, 0.7);
  outline-offset: 4px;
}

@property --plate-chase-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes plate-chase-orbit {
  to {
    --plate-chase-angle: 360deg;
  }
}

.airframe-plate__cue {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 2;
  margin: 0;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(244, 192, 106, 0.28);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.28) 0%,
      rgba(255, 255, 255, 0.08) 38%,
      rgba(10, 16, 24, 0.35) 100%
    ),
    rgba(12, 20, 28, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 0 14px rgba(201, 162, 39, 0.18),
    0 8px 22px rgba(0, 0, 0, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.2);
  color: var(--text, #e8f0f2);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  isolation: isolate;
  overflow: visible;
}

/* Gold chase light — same idea as the flight HUD rim. */
.airframe-plate__cue::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--plate-chase-angle),
    transparent 0deg,
    transparent 250deg,
    rgb(255 212 121 / 0%) 280deg,
    rgb(255 212 121 / 55%) 310deg,
    #fff4d0 332deg,
    #c9a227 348deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: plate-chase-orbit 2.4s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .airframe-plate__cue::before {
    animation: none;
    --plate-chase-angle: 320deg;
  }
}

@media (max-width: 720px) {
  .heli-tour__chapters {
    width: min(100%, calc(100% - 24px));
  }

  .heli-tour__chapter {
    padding: 10vh 14px;
    min-height: 90vh;
  }

  .heli-tour__vignette {
    background:
      linear-gradient(180deg, rgba(5, 8, 14, 0.55) 0%, transparent 35%, rgba(5, 8, 14, 0.75) 100%),
      linear-gradient(90deg, rgba(5, 8, 14, 0.55) 0%, transparent 55%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .heli-tour__card {
    transition: none;
  }
}
