/* ============ 01 · Apagamos todo ============ */
.frame--intro { z-index: 3; }

.intro__line {
  position: absolute;
  left: 0; right: 0;
  top: var(--horizon);
  height: 1px;
  display: flex;
  justify-content: center;
}
.intro__line-fill {
  display: block;
  width: calc(100% - var(--pad) * 2);
  height: 1px;
  transform: scaleX(var(--line-w));
  background: linear-gradient(90deg, rgba(243,241,234,0) 0%, var(--light) 18%, #fff 50%, var(--light) 82%, rgba(243,241,234,0) 100%);
  box-shadow: 0 0 14px 1px rgba(243, 241, 234, 0.45), 0 0 60px 4px rgba(243, 241, 234, 0.12);
  transition: transform 700ms var(--ease-out);
}

.intro__word {
  position: absolute;
  font-family: var(--f-display);
  font-weight: 200;
  font-stretch: 125%;
  font-size: var(--t-display);
  line-height: 0.86;
  letter-spacing: -0.02em;
  color: var(--light);
  white-space: nowrap;
}
.intro__word--top {
  left: var(--pad);
  bottom: calc(100% - var(--horizon) + 0.12em);
}
.intro__word--bottom {
  right: var(--pad);
  top: calc(var(--horizon) + 0.1em);
}

.intro__sub {
  position: absolute;
  left: var(--pad);
  bottom: calc(var(--pad) * 1.6 + 16px);
  font-size: clamp(16px, 1.25vw, 21px);
  line-height: 1.35;
  font-weight: 300;
  color: var(--light-dim);
}

.intro__cue {
  position: absolute;
  right: var(--pad);
  bottom: calc(var(--pad) * 1.6 + 16px);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
}
.intro__cue-inner { display: grid; }
.intro__cue-inner > span { grid-area: 1 / 1; transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); justify-self: end; }
.intro__cue-ready { opacity: 0; transform: translateY(6px); color: var(--light); display: inline-flex; gap: 12px; align-items: center; }
.intro__cue-ready::after {
  content: "";
  width: 1px; height: 28px;
  background: linear-gradient(var(--light), rgba(243,241,234,0));
  animation: cue 2.2s var(--ease-io) infinite;
  transform-origin: 50% 0;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}
.is-loaded .intro__cue-load { opacity: 0; transform: translateY(-6px); }
.is-loaded .intro__cue-ready { opacity: 1; transform: none; }

/* ============ 02 · La luz dibuja el auto ============ */
.caption {
  position: absolute;
  left: var(--pad);
  bottom: calc(var(--pad) * 1.6 + 24px);
}
.caption .label { margin-bottom: 14px; }
.caption__text {
  font-weight: 250;
  font-stretch: 112%;
  font-size: var(--t-caption);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.brand {
  position: absolute;
  right: var(--pad);
  bottom: calc(var(--pad) * 1.6 + 16px);
  width: min(380px, 80vw);
}
.brand .label { margin-bottom: 14px; }
.brand__text {
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 1.32;
  font-weight: 300;
  margin-bottom: 18px;
  text-wrap: pretty;
}

/* ============ 03 · Donde cae la luz ============ */
.scene-title {
  position: absolute;
  left: var(--pad);
  top: calc(var(--pad) * 2.4);
}
.scene-title .label { margin-bottom: 12px; }
.scene-title__text {
  font-weight: 250;
  font-stretch: 112%;
  font-size: clamp(26px, 2.5vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.callout {
  --reveal: 1;
  position: fixed;
  left: 0; top: 0;
  width: 0; height: 0;
  will-change: transform;
}
.callout__dot {
  position: absolute;
  left: -6px; top: -6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1px solid var(--light);
  box-shadow: 0 0 18px 2px rgba(243, 241, 234, 0.35);
}
.callout__dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--light);
}
.callout__lead {
  position: absolute;
  left: 0; top: 0;
  width: 130px; height: 1px;
  background: linear-gradient(90deg, rgba(243,241,234,0.2), var(--light));
  transform-origin: 0 0;
  transform: rotate(-34deg) scaleX(var(--reveal));
}
.callout__body {
  position: absolute;
  bottom: 73px;
  width: max-content;
  max-width: 280px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hair-2);
  opacity: var(--reveal);
}
.callout--right .callout__body { left: 108px; }
.callout--left .callout__lead { transform: rotate(-146deg) scaleX(var(--reveal)); }
.callout--left .callout__body { right: 108px; text-align: right; }
.callout--down .callout__lead { transform: rotate(34deg) scaleX(var(--reveal)); }
.callout--down.callout--left .callout__lead { transform: rotate(146deg) scaleX(var(--reveal)); }
.callout--down .callout__body {
  bottom: auto;
  top: 73px;
  padding: 12px 0 0;
  border-bottom: 0;
  border-top: 1px solid var(--hair-2);
}
.callout .label { margin-bottom: 8px; }
.callout__value {
  font-weight: 250;
  font-stretch: 115%;
  font-size: clamp(26px, 2.6vw, 46px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--light-dim);
  white-space: nowrap;
}
.callout__value em { font-style: normal; color: var(--light); font-weight: 350; }
.callout__note {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ash);
}

.footnote {
  position: absolute;
  right: var(--pad);
  bottom: calc(var(--pad) * 0.6);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash-2);
}

/* ============ 04 · Luz del norte ============ */
.aurora__title { font-weight: 200; }
.aurora__line {
  position: absolute;
  display: block;
  font-family: var(--f-display);
  font-weight: 200;
  font-stretch: 125%;
  font-size: clamp(56px, 8.6vw, 170px);
  line-height: 0.88;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.aurora__line--north { left: var(--pad); top: calc(var(--pad) * 2.2); }
.aurora__line--south { right: var(--pad); bottom: calc(var(--pad) * 0.9 + 14px); text-align: right; }

.aurora__text {
  position: absolute;
  right: var(--pad);
  top: calc(var(--pad) * 2.2 + 70px);
  width: min(320px, 80vw);
  font-size: 15px;
  line-height: 1.55;
  color: var(--light-dim);
  font-weight: 300;
}
.aurora__text .label { color: var(--aurora-1); letter-spacing: 0.1em; }

/* ============ 05 · La ruta ============ */
.route-title {
  position: absolute;
  left: var(--pad);
  top: calc(var(--pad) * 2.3);
  width: min(360px, 80vw);
}
.route-title .label { margin-bottom: 14px; }
.route-title__text {
  font-weight: 250;
  font-stretch: 118%;
  font-size: clamp(40px, 4.6vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.route-title__body {
  font-size: 15px;
  line-height: 1.55;
  font-weight: 300;
  color: var(--light-dim);
}

.waypoint {
  position: fixed;
  left: 0; top: 0;
  width: 0; height: 0;
  will-change: transform;
}
.waypoint > span {
  position: absolute;
  left: 14px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.waypoint::before {
  content: "";
  position: absolute;
  left: -4px; top: -4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--light);
  box-shadow: 0 0 12px 3px rgba(140, 245, 201, 0.45);
  transform: scale(0);
  transition: transform 500ms var(--ease-out);
}
.waypoint__time {
  top: -20px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--aurora-1);
}
.waypoint__name {
  top: -4px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--light);
}
.waypoint.is-on::before { transform: scale(1); }
.waypoint.is-on > span { opacity: 1; transform: none; }
.waypoint--flip > span { left: auto; right: 14px; text-align: right; }

.route-clock {
  position: fixed;
  left: 0; top: 0;
  width: 0; height: 0;
  will-change: transform;
}
.route-clock__t {
  position: absolute;
  left: 12px; top: 10px;
  padding: 5px 8px 4px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--night);
  background: var(--light);
  border-radius: 2px;
  font-variant-numeric: tabular-nums;
}

.map-label {
  position: fixed;
  left: 0; top: 0;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(140, 245, 201, 0.55);
  white-space: nowrap;
  will-change: transform;
  width: 0;
  display: flex;
  justify-content: center;
  margin: -0.7em 0 0 0;
}
.map-label--park { color: rgba(243, 241, 234, 0.32); letter-spacing: 0.24em; }

/* ============ mobile compositions ============ */
@media (max-width: 760px) {
  .intro__word { font-size: 16vw; font-stretch: 108%; }
  .intro__word--top { left: calc(var(--pad) - 0.04em); }
  .intro__sub { bottom: calc(var(--pad) * 1.2 + 34px); font-size: 16px; }
  .intro__cue { bottom: calc(var(--pad) * 1.2 + 34px); }
  .intro__cue-inner > span { justify-self: end; }

  .caption { bottom: calc(18vh + 20px); }
  .brand { left: var(--pad); right: auto; bottom: calc(var(--pad) + 30px); width: calc(100vw - var(--pad) * 2); }
  .brand__text { font-size: 18px; }

  .scene-title { top: calc(var(--pad) * 3.6); }
  .callout .callout__lead,
  .callout--left .callout__lead { width: 64px; transform: rotate(90deg) scaleX(var(--reveal)); }
  .callout .callout__body,
  .callout--left .callout__body,
  .callout--right .callout__body {
    left: var(--bx, 0px);
    right: auto;
    top: 76px;
    bottom: auto;
    width: calc(100vw - var(--pad) * 2);
    max-width: none;
    text-align: left;
    padding: 12px 0 0;
    border-bottom: 0;
    border-top: 1px solid var(--hair-2);
  }
  .callout__value { font-size: 34px; }
  .callout__note { font-size: 13px; }

  .aurora__line { white-space: normal; font-size: 16.5vw; }
  .aurora__line--north { top: calc(var(--pad) * 4.2); }
  .aurora__line--south { top: calc(var(--pad) * 4.2 + 36vw); bottom: auto; }
  .aurora__text { top: auto; right: auto; left: var(--pad); bottom: calc(var(--pad) + 30px); width: calc(100vw - var(--pad) * 2); font-size: 14px; }

  .route-title { top: calc(var(--pad) * 3.6); width: calc(100vw - var(--pad) * 2); }
  .route-title .label { margin-bottom: 8px; }
  .route-title__text { font-size: 36px; margin-bottom: 8px; }
  .route-title__text br { display: none; }
  .route-title__body { font-size: 13px; max-width: 300px; }
  .waypoint__name { font-size: 12px; }
  .footnote { bottom: calc(var(--pad) + 30px); }
}
