/* Seasonal landing variant. One shared hero/header/CTA; artwork and copy come
   from the landing record. The approved desktop canvas is 1400 × 700. */
:root {
  --color-page: #fdfdff;
  /* The rounded hero sits on the next section's colour, as on the Figma page. */
  --seasonal-hero-radius: 1.625rem;
}
@media (48rem <= width < 75rem) { :root { --seasonal-hero-radius: 2.125rem; } }
@media (width >= 75rem) { :root { --seasonal-hero-radius: calc(3.125 * clamp(.857142857rem, 1.142857143vw, 1.371428571rem)); } }
.hero--seasonal {
  --seasonal-unit: clamp(.857142857rem, 1.142857143vw, 1.371428571rem);
  --hero-desktop-min-height: calc(43.75 * var(--seasonal-unit));
  --hero-title-font-size: 3.0821875rem;
  --hero-offer-font-size: 1.019875rem;
  --hero-compact-sky: #071e76;
  --hero-image-overlay: none;
  --hero-compact-ratio: var(--character-compact-width) / var(--character-compact-height);
  --hero-compact-fade: linear-gradient(transparent, var(--hero-compact-sky));
  container: seasonal-hero / inline-size;
  z-index: 1;
  /* The scene's own edge colours: dark navy at the top, deep blue at the
     bottom, so the scene dissolves into the sky without a visible band. */
  background: linear-gradient(#040c50, #07156b 45%, #061b6f);
}
.hero--seasonal .hero__art { max-width: none; }
/* Copy, CTA and header stay above the snow canvas inserted at the end of the hero. */
.hero--seasonal .hero__top { position: relative; z-index: 2; }
.hero--seasonal :is(.hero__intro, .hero__cta) { position: relative; z-index: 1; }
.hero--seasonal .hero__art::after { display: none; }
.hero--seasonal .hero__description {
  font-size: clamp(1.3125rem, calc(1.0625rem + 1.25vw), 1.99925rem);
  font-weight: 600;
  line-height: .99;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}
.hero--seasonal .hero__offer { opacity: .8; }
.hero--seasonal .hero__offer strong::before { background: #7e90ff; opacity: .975; }
.hero--seasonal::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  /* The source's gradient stroke, kept separate from layout and artwork. */
  background: linear-gradient(5.268deg, rgb(255 255 255 / 37%) 10.7%, rgb(255 255 255 / 7.4%) 79.31%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.hero--seasonal .site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: .803px;
  border-radius: inherit;
  background: linear-gradient(rgb(255 255 255 / 37%), rgb(255 255 255 / 7.4%));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

@media (width >= 75rem) {
  .hero--seasonal {
    padding-block: calc(.875 * var(--seasonal-unit)) 0;
    border-radius: 0 0 var(--seasonal-hero-radius) var(--seasonal-hero-radius);
  }
  .hero--seasonal .hero__intro,
  .hero--seasonal .hero__cta,
  .hero--seasonal .hero__top {
    width: calc(72.5 * var(--seasonal-unit));
    max-width: calc(100% - 2 * var(--page-gutter));
  }
  /* Header stays at its shared readable size at the 1200px boundary. */
  .hero--seasonal .hero__top { min-width: min(72.5rem, calc(100% - 2 * var(--page-gutter))); }
  .hero--seasonal .breadcrumbs {
    margin-top: calc(7.125 * var(--seasonal-unit) - .875 * var(--seasonal-unit) - 3.0625rem);
    font-size: calc(.69875 * var(--seasonal-unit));
  }
  .hero--seasonal .hero__content {
    width: calc(34 * var(--seasonal-unit));
    max-width: 100%;
    padding-top: calc(3.1875 * var(--seasonal-unit));
  }
  .hero--seasonal h1 { max-width: none; font-size: calc(3.0821875 * var(--seasonal-unit)); }
  .hero--seasonal .hero__description {
    margin-top: calc(1.6969375 * var(--seasonal-unit));
    font-size: calc(1.99925 * var(--seasonal-unit));
  }
  .hero--seasonal .hero__offer {
    margin: calc(2.2213125 * var(--seasonal-unit)) 0 0 calc(.0625 * var(--seasonal-unit));
    font-size: calc(1.019875 * var(--seasonal-unit));
  }
  .hero--seasonal .hero__offer strong { margin-inline: .2em 0; }
  .hero--seasonal .hero__offer strong::before {
    left: calc(-.203125 * var(--seasonal-unit));
    width: calc(100% + .148475 * var(--seasonal-unit));
    height: calc(1.556719 * var(--seasonal-unit));
    top: calc(-.215844 * var(--seasonal-unit));
  }
  .hero--seasonal .split-button {
    --button-height: calc(4.875 * var(--seasonal-unit));
    --arrow-size: var(--button-height);
    width: calc(23.6875 * var(--seasonal-unit));
    max-width: 100%;
    gap: 0;
    margin-top: calc(3.063875 * var(--seasonal-unit));
    font-size: calc(1.0625 * var(--seasonal-unit));
  }
  .hero--seasonal .hero__media { min-height: 0; }
  .hero--seasonal .hero__art {
    inset: 0 auto auto 50%;
    width: calc(87.5 * var(--seasonal-unit));
    height: calc(43.75 * var(--seasonal-unit));
    margin: 0;
    translate: -50% 0;
    mask-image: none;
  }
  .hero--seasonal .hero__art img { object-fit: fill; object-position: center top; }
}

@media (width >= 112.5rem) {
  .hero--seasonal .breadcrumbs { margin-top: calc(6.25 * var(--seasonal-unit) - 4rem); }
}
@media (width > 120rem) {
  .hero--seasonal .hero__art { mask-image: var(--winter-wide-edge, linear-gradient(to right, transparent, #000 5%, #000 95%, transparent)); }
}

/* Compact composition follows the Quest Kids reference (kids/newyear.html):
   one continuous sky, the scene rising under the offer line and dissolving
   into that sky at both ends, the CTA resting on the lower fade. Font sizes of
   the title, description and offer are the reference's own. */
@media (width < 75rem) {
  .hero--seasonal {
    --hero-compact-radius: var(--seasonal-hero-radius);
    --hero-compact-cta-overlap: 1rem;
    min-height: 0;
    padding-bottom: 3rem;
  }
  /* The star texture fades out before the scene, so the sky meets the
     scene's own top edge colour and no horizontal seam shows. */
  .hero--seasonal::before {
    background-size: 350% auto;
    mask-image: linear-gradient(#000, transparent 14rem);
  }
  .hero--seasonal .hero__intro { position: relative; z-index: 1; }
  .hero--seasonal .hero__content { width: 100%; padding-block: max(1rem, 5vw) 0; }
  .hero--seasonal h1 { font-size: clamp(1.896875rem, calc(-.09rem + 9.934vw), 3.88375rem); }
  .hero--seasonal .hero__description {
    max-width: 30rem;
    /* Client feedback 12.10.2026: more air between the title lines below. */
    margin: clamp(1rem, calc(.5rem + 2.5vw), 1.5rem) auto 0;
    font-size: clamp(1.04625rem, calc(.36375rem + 3.4125vw), 1.72875rem);
    line-height: 1.1;
    text-wrap: balance;
  }
  .hero--seasonal .hero__offer { max-width: 32rem; margin: 1rem auto 0; font-size: 1.0625rem; text-wrap: balance; }
  .hero--seasonal .hero__media {
    width: 100%;
    aspect-ratio: auto;
    max-height: none;
    /* The scene starts below the offer line instead of rising under it. */
    margin: clamp(.5rem, 2vw, 1rem) auto 0;
  }
  .hero--seasonal .hero__art {
    --seasonal-scene-fade: linear-gradient(transparent, rgb(0 0 0 / 10%) 3%, rgb(0 0 0 / 35%) 7%, rgb(0 0 0 / 70%) 11%, rgb(0 0 0 / 92%) 14%, #000 17%, #000 70%, rgb(0 0 0 / 86%) 78%, rgb(0 0 0 / 52%) 87%, rgb(0 0 0 / 16%) 95%, transparent);
    mask-image: var(--seasonal-scene-fade);
  }
  .hero--seasonal .hero__art img { object-position: var(--character-focal-x, 100%) 20%; }
  .hero--seasonal .hero__art::after { display: none; }
  .hero--seasonal .hero__cta { margin-top: calc(-1 * var(--hero-compact-cta-overlap)); padding-bottom: 0; background: none; }
  .hero--seasonal .split-button { margin-top: 0; }
}

@media (width < 40rem) {
  .hero--seasonal { padding-bottom: var(--page-gutter); }
  .hero--seasonal .hero__media {
    /* Keep the approved crop tied to width: browser bars must not shrink the
       scene and move the right-hand characters. Short windows scroll normally.
       The former bottom spacing still enlarges the scene above the CTA. */
    height: calc(100cqw * var(--character-compact-height) / var(--character-compact-width) + 3rem - var(--page-gutter));
  }
  /* Bring the staff inside the crop; percentages avoid a blank edge when
     the image already fits the width on a short landscape screen. */
  .hero--seasonal .hero__art img { object-position: 95% 20%; }
}

/* Carry the scene's blue light into the mobile sky behind the photo. The
   photo mask stays intact so the first face is already fully opaque. Both
   ends of this background fade out, including through the side mask at 640px. */
@media (width < 48rem) {
  .hero--seasonal .hero__media::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -3rem 0 65%;
    background: linear-gradient(90deg, #0c2491, #4057ba 48%, #0c1f70);
    mask-image: linear-gradient(transparent, rgb(0 0 0 / 6%) 15%, rgb(0 0 0 / 22%) 30%, rgb(0 0 0 / 48%) 45%, rgb(0 0 0 / 78%) 60%, #000 75%, rgb(0 0 0 / 50%) 88%, transparent);
    pointer-events: none;
  }
}

@media (40rem <= width < 75rem) {
  .hero--seasonal { --hero-compact-cta-overlap: 2.75rem; }
  .hero--seasonal .hero__content { padding-top: clamp(1rem, calc(-2.3125rem + 16.5625vw), 4.3125rem); }
  .hero--seasonal .hero__offer { margin-top: 1.5rem; font-size: 1.125rem; }
  .hero--seasonal .hero__media {
    width: min(100%, 57.5rem);
    height: auto;
    aspect-ratio: var(--hero-compact-ratio);
    margin-top: clamp(.5rem, 1.5vw, 1rem);
  }
  /* Narrower than the hero on wide tablets: the side edges dissolve as well. */
  .hero--seasonal .hero__art {
    mask-image: var(--seasonal-scene-fade), linear-gradient(90deg, transparent, rgb(0 0 0 / 12%) 3%, rgb(0 0 0 / 50%) 7%, rgb(0 0 0 / 88%) 11%, #000 16%, #000 84%, rgb(0 0 0 / 88%) 89%, rgb(0 0 0 / 50%) 93%, rgb(0 0 0 / 12%) 97%, transparent);
    mask-composite: intersect;
  }
  .hero--seasonal .hero__art img { object-position: var(--character-focal-x, 100%) top; }
}

/* Content capacity, rather than the nominal viewport, controls 200% text.
   Reuse the compact sequence so a longer city name can grow in normal flow. */
@media (width >= 75rem) {
  @container seasonal-hero (width < 70em) {
    .hero--seasonal .breadcrumbs { margin-top: 1.5rem; }
    .hero--seasonal .hero__content { width: 100%; padding-block: 1.5rem 2rem; text-align: center; }
    .hero--seasonal .hero__description { margin-top: 1.25rem; }
    .hero--seasonal .hero__offer { margin: 1.5rem auto 0; line-height: 1.5; }
    .hero--seasonal .hero__intro { order: 0; }
    .hero--seasonal .hero__media { order: 1; position: relative; flex: none; width: 100%; aspect-ratio: var(--hero-compact-ratio); max-height: 700px; }
    .hero--seasonal .hero__art { inset: 0; width: 100%; height: 100%; translate: none; mask-image: linear-gradient(transparent, #000 7%); }
    .hero--seasonal .hero__art img { object-fit: cover; object-position: var(--character-focal-x, 100%) top; }
    .hero--seasonal .hero__art::after { display: block; inset: auto 0 0; height: 5rem; background: var(--hero-compact-fade); }
    .hero--seasonal .hero__cta { order: 2; position: relative; width: 100%; padding: 0 1rem 2rem; text-align: center; background: none; }
    .hero--seasonal .split-button { margin-top: 0; }
  }
}

/* Entrance and ambient motion after the reference: the copy rises in a
   cascade, the scene settles, the discount plate catches a light sweep.
   Snow and sparkles come from winter-motion.js. */
@keyframes seasonal-rise { from { opacity: 0; translate: 0 var(--seasonal-rise, 16px); } }
@keyframes seasonal-settle { from { scale: .98; } }
@keyframes seasonal-plate-shine { 0%, 70% { background-position: 150% 0, 0 0; } 94%, 100% { background-position: -50% 0, 0 0; } }
.hero--seasonal .hero__offer strong::before {
  background:
    linear-gradient(110deg, transparent 35%, rgb(255 255 255 / 40%) 50%, transparent 65%) 150% 0 / 250% 100% no-repeat,
    #7e90ff;
}
@media (prefers-reduced-motion: no-preference) {
  .hero--seasonal { --seasonal-rise: 16px; }
  .hero--seasonal .hero__content { animation: none; }
  .hero--seasonal :is(h1, .hero__description, .hero__offer, .hero__cta) { animation: seasonal-rise 560ms var(--ease-out) backwards; }
  .hero--seasonal .hero__description { animation-delay: 80ms; }
  .hero--seasonal .hero__offer { animation-delay: 160ms; }
  .hero--seasonal .hero__cta { animation-delay: 240ms; }
  .hero--seasonal .hero__art picture { display: block; animation: seasonal-settle 700ms var(--ease-out) backwards; }
  .winter-motion .hero--seasonal .hero__offer strong::before { animation: seasonal-plate-shine 5.5s ease-in-out 1.9s infinite; }
  .winter-motion .hero--seasonal.is-winter-paused .hero__offer strong::before { animation-play-state: paused; }
}
@media (width < 48rem) and (prefers-reduced-motion: no-preference) {
  .hero--seasonal { --seasonal-rise: 12px; }
  .hero--seasonal :is(h1, .hero__description, .hero__offer, .hero__cta) { animation-duration: 480ms; }
}
