.spain-offer {
  --atlas-unit: min(.385vw, .625vh);
  --atlas-unit: min(.385vw, .625svh);
  --poster-focus-x: 73%;
  --poster-focus-y: 50%;
  position: relative;
  min-height: var(--screen);
  overflow: hidden;
  isolation: isolate;
  background: #061b2c;
}
.spain-visual, .spain-frames, .offer-shade { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.spain-visual { overflow: hidden; }
.spain-visual img { position: absolute; display: block; max-width: none; pointer-events: none; }
/* Both poster layers use the same final photographic camera as the moving map. */
.spain-visual .context-plate {
  left: calc(var(--poster-focus-x) - 1613.239875 * var(--atlas-unit));
  top: calc(var(--poster-focus-y) - 776.299393 * var(--atlas-unit));
  width: calc(2528.75 * var(--atlas-unit));
  height: calc(1754.375 * var(--atlas-unit));
}
.spain-visual .continent-plate {
  left: calc(var(--poster-focus-x) - 475.739875 * var(--atlas-unit));
  top: calc(var(--poster-focus-y) - 575.049393 * var(--atlas-unit));
  width: calc(1008 * var(--atlas-unit));
  height: calc(700 * var(--atlas-unit));
  object-fit: fill;
}
.iberia-plate {
  left: calc(var(--poster-focus-x) - 202 * var(--atlas-unit));
  top: calc(var(--poster-focus-y) - 163.33333 * var(--atlas-unit));
  width: calc(420 * var(--atlas-unit)); height: calc(323 * var(--atlas-unit));
}
.spain-visual .spain-light {
  left: calc(var(--poster-focus-x) - 210 * var(--atlas-unit));
  top: calc(var(--poster-focus-y) - 54 * var(--atlas-unit));
  width: calc(292 * var(--atlas-unit)); height: calc(197.333333 * var(--atlas-unit));
  opacity: .67;
}
.base-location {
  position: absolute; width: 0; height: 0;
  left: calc(var(--poster-focus-x) + 26.130583 * var(--atlas-unit));
  top: calc(var(--poster-focus-y) - 8.437368 * var(--atlas-unit));
}
.base-location { scroll-margin-block-start: 32svh; }
@supports (width: 1cqw) {
  .spain-visual { container: spain-map / size; }
  .spain-visual > :is(img,.base-location) {
    --atlas-unit: min(.385cqw,.625cqh); --poster-focus-x: 73%; --poster-focus-y: 50%;
  }
  @container spain-map (max-aspect-ratio: 1/1) {
    .spain-visual > :is(img,.base-location) {
      --atlas-unit: min(.635cqw,.575cqh); --poster-focus-x: 53%; --poster-focus-y: 34%;
    }
  }
}
.city-point {
  position: absolute; left: -5px; top: -5px; width: 10px; height: 10px;
  border: 2px solid #0b2331; border-radius: 50%; background: #fff5d5;
  box-shadow: 0 0 0 1px #ffe4a9;
}
.city-point::before {
  content: ""; position: absolute; inset: -5px;
  border: 1px solid #fff0c1; border-radius: 50%;
}
.city-caption {
  position: absolute; left: 0; top: 23px;
  display: grid; gap: 2px; justify-items: center; width: max-content;
  transform: translateX(-50%); padding: 6px 12px 7px;
  background: #082130f2; border-radius: 3px;
  font-size: clamp(.85rem,1.16vw,1.15rem); line-height: 1.12; color: #fffaf0;
}
.city-caption::before {
  content: ""; position: absolute; bottom: 100%; left: 50%; height: 16px; width: 1px;
  background: #0b2535; box-shadow: 1px 0 0 #ffe0a3;
}
.city-caption strong { font-weight: 620; letter-spacing: -.025em; }
.city-caption i { color: var(--gold); font: italic 400 1.12em/1 Instrument,Georgia,serif; }
.motion .spain-visual .spain-light {
  left: 0; top: 0; width: 667.42857143px; height: 451.04761905px;
  transform-origin: 0 0; opacity: var(--spain-glow,0);
}
.motion .base-location { left: 0; top: 0; opacity: calc(var(--pin-in,0) * var(--pin-hold,1)); }
.motion .city-point::before { transform: scale(calc(.66 + .55 * var(--place-in,0))); }
.motion .city-caption {
  opacity: var(--place-in,0);
  transform: translate(-50%,calc((1 - var(--place-in,0)) * -6px));
}
.spain-frames, .offer-shade { display: none; }
.offer-anchor {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center;
  padding-inline: var(--edge);
  pointer-events: none;
}
.spain-offer .offer-copy {
  position: relative;
  display: grid; justify-items: start;
  max-width: 100%; width: max-content;
  color: var(--paper);
  white-space: nowrap;
  font-size: clamp(3rem, min(7.2vw, 11.6vh), 9rem);
  font-weight: 520;
  letter-spacing: -.065em;
  line-height: .99;
}
.spain-offer .offer-copy h2 {
  display: grid; justify-items: start; max-width: 100%;
  font: inherit; letter-spacing: inherit;
}
.offer-note {
  max-width: 31ch; margin-top: clamp(.8rem,1.6vw,1.4rem);
  font: 400 clamp(1rem,1.25vw,1.24rem)/1.44 Inter,Arial,sans-serif;
  white-space: normal; letter-spacing: -.018em; color: #f3f1e9;
}
.motion .offer-note {
  opacity: var(--offer-note-in,0); transform: translateY(calc((1 - var(--offer-note-in,0)) * 5px));
}
.offer-lead { display: block; }
.offer-lead span { display: inline-block; }
.offer-copy .offer-fees {
  display: flex; align-items: center; gap: .46em;
  margin-top: .27em;
  color: var(--gold);
  font: italic 400 .53em/1.09 Instrument, Georgia, serif;
  letter-spacing: -.028em;
}
.offer-fees::before {
  content: ""; width: .95em; height: 1px;
  background: currentColor;
}
.motion .offer-lead span {
  opacity: var(--word-in, 1);
  transform: translate3d(calc((1 - var(--word-in,1)) * .16em),calc((1 - var(--word-in,1)) * .58em),0);
}
.motion .offer-fees {
  transform: translate3d(0, var(--offer-fees-y, 0em), 0);
}
.motion .offer-fees::before {
  opacity: var(--fee-rule, 1);
  transform-origin: left center;
  transform: scaleX(var(--fee-rule, 1));
}
.motion .offer-fees span {
  display: block;
  padding-right: .06em;
  clip-path: inset(-.1em var(--fees-mask,0%) -.1em -.12em);
  opacity: var(--offer-fees-ink, 1);
  transform: translate3d(var(--fees-x,0em),0,0);
}
.motion .spain-offer {
  position: absolute; inset: 0;
  min-height: 100%; isolation: auto; pointer-events: none;
  visibility: var(--story-visible, hidden); background: transparent;
}
.motion .spain-visual { z-index: 0; opacity: var(--approach-in, 0); }
.motion .spain-frames { display: block; opacity: 0; transition: opacity .16s ease-out; }
.motion .spain-frames.ready { opacity: 1; }
.motion .iberia-plate { opacity: var(--fallback-iberia, 0); }
.motion .context-plate, .motion .continent-plate { opacity: var(--fallback-continent, 0); }
.motion .offer-shade {
  display: block; opacity: var(--approach-shade, 1);
  background: linear-gradient(90deg, rgba(3,20,34,.93), rgba(3,20,34,.72) 25%, transparent 57%);
}
.motion .offer-copy {
  opacity: var(--copy-opacity, 0);
  transform: translate3d(0,var(--copy-y, 0px),0);
  clip-path: var(--caption-clip, none);
}
@media (max-aspect-ratio: 1/1) {
  .spain-offer {
    --atlas-unit: min(.635vw, .575svh);
    --poster-focus-x: 53%; --poster-focus-y: 34%;
  }
  .offer-anchor { align-items: flex-end; padding-bottom: 19svh; }
  .spain-offer .offer-copy { font-size: clamp(2.25rem, min(12.8vw, 9.3svh), 6.2rem); }
}
@media (max-height: 500px) and (orientation: landscape) {
  .spain-offer .offer-copy { font-size: clamp(2rem, 11.6vh, 3.6rem); }
}
@media (max-aspect-ratio: 4/5) {
  .motion .offer-shade {
    height: var(--approach-height, 81%);
    background: linear-gradient(to bottom, transparent 50%, rgba(4,25,42,.3) 69%, var(--sea) 100%);
  }
}
