/* Final approved direction for the route and immersive beach-ball sections. */
.route-lab::before {
  display: none;
}
.route-map {
  min-height: 390px;
}
.route-line {
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.route-line-base {
  fill: none;
  stroke: transparent;
  stroke-width: 1.1;
  stroke-dasharray: 3 18;
}
.route-line-active {
  fill: none;
  stroke: #d1302e;
  stroke-width: 2.25;
  stroke-dasharray: 8 18;
  stroke-linecap: round;
}
.route-nodes {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: block;
}
.route-node,
.route-node-a,
.route-node-b,
.route-node-c,
.route-node-d {
  position: absolute;
  width: calc(25% - 20px);
  height: auto;
  grid-template-columns: 34px 1fr;
  grid-template-rows: 104px 52px;
}
.route-node-a {
  top: 44px;
  right: auto;
  bottom: auto;
  left: 14px;
}
.route-node-b {
  top: 126px;
  right: auto;
  bottom: auto;
  left: calc(25% + 5px);
}
.route-node-c {
  top: 54px;
  right: auto;
  bottom: auto;
  left: calc(50% + 4px);
}
.route-node-d {
  top: 136px;
  right: 14px;
  bottom: auto;
  left: auto;
}
.route-node::after {
  display: none;
}
.route-node img {
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
  height: 104px;
}
.route-node-letter {
  grid-column: 1;
  grid-row: 2;
  width: 30px;
  height: 30px;
  background: #07315c;
}
.route-node-copy {
  grid-column: 2;
  grid-row: 2;
  padding-block: 7px 4px;
}
.route-node-copy strong {
  font-size: 17px;
}
.route-map-note {
  top: auto;
  bottom: 13px;
  transform: translateX(-50%);
}

.horizon-experience.section {
  --taxidi-navy: #07315c;
  --taxidi-blue: #0d456d;
  --taxidi-sky: #5f89ab;
  --taxidi-red: #d1302e;
  --taxidi-white: #ffffff;
  --ball-takeover: 0;
  --ball-finale: 0;
  --ball-final-logo: 0;
  --ball-white-finale: 0;
  height: 280svh;
  min-height: 1950px;
  overflow: clip;
  background: var(--taxidi-white);
}
.horizon-sticky {
  color: var(--taxidi-navy);
  background:
    linear-gradient(rgba(13, 69, 109, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 69, 109, 0.045) 1px, transparent 1px),
    radial-gradient(
      circle at 50% 53%,
      var(--taxidi-white),
      rgba(255, 255, 255, 0.92) 48%,
      var(--taxidi-white)
    );
  background-size:
    48px 48px,
    48px 48px,
    auto;
}
.beach-ball-canvas {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.ball-finale {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at 34% 24%,
      rgba(255, 255, 255, 0.12),
      transparent 30%
    ),
    radial-gradient(
      ellipse 115% 105% at 50% 48%,
      #dd3b38 0%,
      #d1302e 60%,
      #b92528 100%
    );
  opacity: var(--ball-finale, 0);
  pointer-events: none;
}
.ball-finale::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: #fff;
  content: "";
  opacity: var(--ball-white-finale, 0);
}
.ball-finale-mark {
  position: relative;
  z-index: 1;
  width: clamp(460px, 52vw, 720px);
  opacity: var(--ball-final-logo, 0);
  transform: scale(calc(0.94 + var(--ball-final-logo, 0) * 0.06));
  transform-origin: center;
}
.ball-finale-mark img {
  display: block;
  width: 100%;
  height: auto;
}
.horizon-experience.is-ball-visible .beach-ball-canvas {
  opacity: 1;
}
.horizon-ring {
  border-color: rgba(13, 69, 109, 0.13);
}
.horizon-cross::before,
.horizon-cross::after {
  background: rgba(13, 69, 109, 0.1);
}
.horizon-word {
  color: rgba(7, 49, 92, 0.035);
  font-size: clamp(110px, 14vw, 215px);
  letter-spacing: -0.07em;
  opacity: calc(1 - var(--ball-takeover) * 1.8);
}
.horizon-caption {
  opacity: calc(1 - var(--ball-takeover) * 1.7);
}
.horizon-shadow {
  background: rgba(7, 49, 92, 0.13);
}
.horizon-caption > p,
.horizon-progress {
  color: rgba(7, 49, 92, 0.62);
}
.horizon-progress b {
  background: var(--taxidi-red);
}
.horizon-graphic {
  opacity: calc(0.48 - var(--ball-takeover) * 0.42);
  will-change: transform, opacity;
}
.music-credit {
  grid-column: 1 / -1;
  opacity: 0.62;
}

.sound-control {
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  justify-content: center;
  gap: 0;
  padding: 0;
  border-radius: 50%;
}

.sound-control b {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.assistant-trigger {
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  justify-content: center;
  gap: 0;
  padding: 0;
  border-radius: 50%;
  font-size: 0;
}

.assistant-trigger span {
  width: 28px;
  height: 28px;
  font-size: 13px;
}

.cinema-break {
  position: relative;
  z-index: 4;
  height: 165svh;
  min-height: 1120px;
  overflow: clip;
  background: #020e18;
}
.cinema-break-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: #020e18;
}
.cinema-break video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transform: scale(1.045);
  transition:
    opacity 1.1s ease,
    transform 7s cubic-bezier(0.2, 0.65, 0.25, 1);
}
.cinema-break.is-active video {
  opacity: 1;
  transform: scale(1);
}
.cinema-manifesto {
  --cinema-progress: 0;
  height: 245svh;
  min-height: 1760px;
}
.cinema-break.cinema-manifesto video {
  transform: scale(calc(1.075 - var(--cinema-progress) * 0.075));
  transition: opacity 1s ease;
}
.cinema-manifesto-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 18, 12, 0.38), transparent 62%),
    linear-gradient(0deg, rgba(24, 18, 12, 0.3), transparent 48%);
  pointer-events: none;
}
.cinema-audio-start {
  position: absolute;
  z-index: 3;
  top: 112px;
  right: clamp(24px, 5vw, 72px);
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 13px 18px;
  border: 1px solid rgba(250, 244, 231, 0.5);
  color: #faf4e7;
  background: rgba(24, 18, 12, 0.38);
  font:
    400 12px/1 "Source Sans 3",
    sans-serif;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  backdrop-filter: blur(10px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.cinema-manifesto.needs-audio .cinema-audio-start {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cinema-manifesto-copy {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: clamp(62px, 10vh, 104px);
  left: 0;
  display: grid;
  max-width: 1040px;
  color: rgba(250, 244, 231, 0.92);
  font-family: "Nothing You Could Do", "Bradley Hand", cursive;
  font-size: clamp(22px, 2.6vw, 38px);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.012em;
  text-shadow: 0 5px 34px rgba(2, 14, 24, 0.44);
  pointer-events: none;
}
.cinema-manifesto-copy span {
  display: block;
  width: fit-content;
  opacity: 0;
  transform-origin: left center;
  will-change: transform, opacity, filter;
}
.cinema-manifesto-copy span:nth-child(2) {
  margin-left: 5vw;
}
.cinema-manifesto-copy span:nth-child(3) {
  margin-top: 0.18em;
  margin-left: 2vw;
}
.cinema-manifesto-copy span:nth-child(4) {
  margin-top: 0.12em;
  margin-left: 9vw;
}
.cinema-manifesto-copy em {
  color: #ef534f;
  font-style: italic;
  font-weight: 300;
}

.hero-media img,
.hero-ocean-canvas {
  filter: none;
}
.hero-overlay {
  inset: 0;
  width: auto;
  height: auto;
  background: none;
  filter: none;
}
.hero-overlay::before,
.hero-overlay::after {
  position: absolute;
  content: "";
  pointer-events: none;
}
.hero-overlay::before {
  inset: 0 auto auto 0;
  width: 96%;
  height: 52%;
  background: radial-gradient(
    ellipse 96% 82% at 18% 0%,
    rgba(2, 22, 39, 0.74) 0%,
    rgba(7, 49, 92, 0.52) 52%,
    rgba(7, 49, 92, 0.2) 72%,
    transparent 88%
  );
}
.hero-overlay::after {
  inset: 29% 37% 0 0;
  background: linear-gradient(
    90deg,
    rgba(2, 22, 39, 0.68) 0%,
    rgba(2, 22, 39, 0.4) 48%,
    rgba(2, 22, 39, 0.12) 76%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
}
.hero-copy,
.hero-meta,
.hero-foot {
  text-shadow: 0 2px 18px rgba(2, 22, 39, 0.38);
}

@media (max-width: 820px) {
  .route-map {
    min-height: 650px;
  }
  .route-line {
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
  }
  .route-map::after {
    display: none;
  }
  .route-nodes {
    position: absolute;
    inset: 0;
    display: block;
  }
  .route-node,
  .route-node-a,
  .route-node-b,
  .route-node-c,
  .route-node-d {
    position: absolute;
    width: calc(50% - 32px);
    height: auto;
    grid-template-columns: 28px 1fr;
    grid-template-rows: 76px 54px;
  }
  .route-node-a {
    top: 18px;
    right: auto;
    bottom: auto;
    left: 10px;
  }
  .route-node-b {
    top: 174px;
    right: 10px;
    bottom: auto;
    left: auto;
  }
  .route-node-c {
    top: 330px;
    right: auto;
    bottom: auto;
    left: 10px;
  }
  .route-node-d {
    top: 486px;
    right: 10px;
    bottom: auto;
    left: auto;
  }
  .route-node img {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    height: 76px;
  }
  .route-node-letter {
    grid-column: 1;
    grid-row: 2;
    width: 24px;
    height: 24px;
  }
  .route-node-copy {
    grid-column: 2;
    grid-row: 2;
    padding: 7px 0 4px;
  }
  .route-node-copy strong {
    font-size: 15px;
  }
  .route-node-copy small {
    font-size: 6px;
  }
  .route-map-note {
    display: none;
  }
  .horizon-word {
    font-size: 27vw;
  }
  .horizon-shadow {
    top: 72%;
    width: min(58vw, 240px);
  }
  .ball-finale-mark {
    width: min(90vw, 520px);
  }
  .cinema-manifesto {
    height: 230svh;
    min-height: 1560px;
  }
  .cinema-manifesto-copy {
    bottom: 88px;
    font-size: clamp(20px, 6.1vw, 28px);
    line-height: 1.16;
  }
  .cinema-manifesto-copy span:nth-child(n) {
    max-width: 94%;
    margin-left: 0;
  }
  .cinema-manifesto-copy span:nth-child(2),
  .cinema-manifesto-copy span:nth-child(4) {
    margin-left: 6vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .beach-ball-canvas {
    opacity: 1;
    transition: none;
  }
  .ball-finale {
    display: none;
  }
}
