.winter-experience { --winter-unit: 1rem; background: #1c49d2; }
.winter-experience__canvas {
  position: relative;
  isolation: isolate;
  container: winter-experience / inline-size;
  /* A grid so the compact backdrop can span exactly the program and team rows. */
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: clip;
  border-radius: clamp(1.5rem, 3.57143vw, 4.285714rem) clamp(1.5rem, 3.57143vw, 4.285714rem) 0 0;
  padding-bottom: 2rem;
  background: #edeffd;
}
.winter-experience__background,
.winter-experience__middle-overlay,
.winter-experience__foreground {
  position: absolute;
  inset: 0 0 9rem;
  overflow: clip;
  pointer-events: none;
  border-radius: 0 0 2rem 2rem;
}
.winter-experience__background { z-index: -1; background: #052696; }
.winter-experience__background img,
.winter-experience__middle-overlay img,
.winter-experience__foreground img { display: block; position: absolute; top: 0; left: 50%; width: max(100%, 60rem); max-width: none; height: 100%; object-fit: cover; transform: translateX(-50%); }
.winter-experience__middle-overlay,
.winter-experience__foreground { display: none; }
/* Phone/tablet: the 1400×1942 desktop canvas stretched over the much taller
   compact column put its trees and snowflake under the copy. Instead the sky
   crop (y 0–880) tops the column and fades into the canvas's own blues; the
   team scene (y 880–1640) travels with the team carousel (winter-team.css). */
/* Same specificity as the layer rule above, so the compact-only sky crop never
   covers the desktop canvas (its trees, drifts and glow behind the team). */
.winter-experience__background .winter-experience__sky { display: none; }
@container winter-experience (width < 75rem) {
  .winter-experience__background { background: linear-gradient(#0c33b7 30rem, #052696 75%); }
  .winter-experience__canvas-art { display: none !important; }
  .winter-experience__background .winter-experience__sky {
    display: block;
    height: auto;
    aspect-ratio: 1400 / 880;
    object-fit: fill;
    mask-image: linear-gradient(#000 70%, transparent);
  }
}
.winter-experience__canvas > .winter-program { z-index: 1; }
.winter-experience__canvas > .winter-team { z-index: 3; }
.winter-experience__canvas > .winter-letter-block { z-index: 5; }
/* Phone/tablet: the blue backdrop ends with the team carousel; the letter card
   stands whole on the page colour below it, as in the reference, instead of
   being cut across by the backdrop's edge. Desktop keeps the Figma overlap. */
@container winter-experience (width < 75rem) {
  .winter-experience__background { position: relative; inset: auto; grid-area: 1 / 1 / 3 / 2; }
  .winter-experience__canvas > .winter-program { grid-area: 1 / 1; }
  .winter-experience__canvas > .winter-team { grid-area: 2 / 1; }
  .winter-experience__canvas > .winter-letter-block { grid-area: 3 / 1; }
}
@media (width >= 75rem) { .winter-experience { --winter-unit: var(--winter-canvas-unit); } }
@container winter-experience (width >= 75rem) {
  .winter-experience__background,
  .winter-experience__middle-overlay,
  .winter-experience__foreground { inset: 0 0 auto; height: calc(121.375 * var(--winter-unit)); border-radius: 0 0 calc(3.125 * var(--winter-unit)) calc(3.125 * var(--winter-unit)); }
  .winter-experience__background img,
  .winter-experience__middle-overlay img,
  .winter-experience__foreground img { width: calc(87.5 * var(--winter-unit)); height: calc(121.375 * var(--winter-unit)); object-fit: fill; }
  .winter-experience__middle-overlay { display: block; z-index: 2; }
  .winter-experience__foreground { display: block; z-index: 4; }
}
@media (width >= 75rem) {
  .winter-experience__canvas { padding-bottom: calc(.1875 * var(--winter-unit)); }
}
@container winter-experience (width > 120rem) {
  .winter-experience__background img,
  .winter-experience__middle-overlay img,
  .winter-experience__foreground img { mask-image: var(--winter-wide-edge); }
}
/* The rounded top corners rest on the end of the previous section (its glows
   continue under them), not on a flat strip that met it on a hard line. */
.winter-showcase + .winter-experience {
  --winter-seam: clamp(1.5rem, 3.57143vw, 4.285714rem);
  position: relative;
  z-index: 1;
  margin-top: calc(-1 * var(--winter-seam));
  background: transparent;
}
.winter-showcase:has(+ .winter-experience) { padding-bottom: clamp(1.5rem, 3.57143vw, 4.285714rem); }
