.program {
  --program-card: #fdfcff;
  --program-border: rgb(178 152 251 / 37%);
  --program-accent: #7d69d9;
  --program-title: #3a2b43;
  --program-text: rgb(58 43 67 / 51%);
  --program-label: rgb(58 43 67 / 40%);
  --program-number-fill: #e4dbf7;
  --program-number-text: #a08fd0;
  --program-radius: 1rem;
  --program-list-gap: .75rem;
  --program-list-inset: 3.25rem;
  --program-number-size: 1.625rem;
  --program-number-offset: 3.25rem;
  --program-section-bottom: 2.125rem;
  --page-gutter: var(--compact-page-gutter);
  position: relative;
  isolation: isolate;
  background: linear-gradient(#f0eafd, var(--color-page) 34%);
  padding-block: 1.875rem var(--program-section-bottom);
  overflow: clip;
  overflow-wrap: anywhere;
}
.program__container { container: program / inline-size; }
.program__glows { display: contents; }
.program__glow { position: absolute; z-index: -1; width: 38.625rem; height: 38.625rem; max-width: none; pointer-events: none; }
.program__glow--glowSoft, .program__glow--glowSoft-left, .program__glow--glowSpot { z-index: 1; }
.program__glow--glowLeft { left: calc(50% - 49.6875rem); top: -4.3125rem; }
/* The right glow reaches below the section (83 % of its height at the Figma
   size); it fades out before that edge instead of ending on a straight cut
   (client 27.10.2026). */
.program__glow--glowRight { left: calc(50% + 11.625rem); top: 13.5625rem; mask-image: linear-gradient(#000 50%, transparent 78%); }
.program__glow--glowSoft { left: calc(50% + .6875rem); top: -2.1875rem; }
.program__glow--glowSoft-left { left: calc(50% - 41.125rem); top: -3.75rem; }
.program__glow--glowSpot { left: calc(50% + 4.375rem); top: 6.375rem; width: 6.25rem; height: 5rem; }
.program__layout { display: flex; flex-direction: column; align-items: center; }
.program__header { position: relative; z-index: 3; width: min(calc(100% - .5rem), 39rem); text-align: center; }
.program__eyebrow { display: inline-flex; justify-content: center; align-items: center; min-height: 2rem; padding: .4375rem 1.125rem; border: 0; border-radius: var(--radius-pill); background: #e8e1fa; color: var(--program-label); font-size: .8125rem; font-weight: 500; line-height: 1.2; }
.program h2 { max-width: 20ch; margin: 1rem auto 0; color: var(--program-title); opacity: .82; font-size: clamp(1.6875rem, calc(1.625rem + .3125vw), 1.875rem); font-weight: 600; line-height: 1.14; letter-spacing: 0; text-wrap: balance; }
.program__heading-accent { color: var(--program-accent); }
.program__figure { position: relative; flex: none; width: min(calc(100% + 2 * var(--page-gutter)), 36.25rem); aspect-ratio: 554 / 612; margin: .375rem 0 0; }
.program__scene, .program__scene img { display: block; width: 100%; height: 100%; }
.program__scene { position: relative; z-index: 0; }
.program__scene-copy { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.program__decoration { position: absolute; z-index: 3; max-width: none; object-fit: contain; pointer-events: none; }
.program__decoration--foreground { left: -2.888%; top: 34.64%; width: 102.53%; height: 20.915%; }
.program__decoration--foreground-under { mix-blend-mode: darken; }
.program__decoration--decorationLeft { left: -8.845%; top: 2.124%; width: 47.383%; height: 115.85%; mix-blend-mode: darken; }
.program__decoration--decorationRight { left: 83.348%; top: -31.536%; width: 46.289%; height: 59.314%; mix-blend-mode: darken; }
/* Peripheral blur belongs to the desktop scene. Compact keeps the actors,
   original small stars and ribbon without covering the title or the list. */
@media (width < 75rem) {
  /* Let the final connector continue behind the next rounded card. The
     card's own opaque surface hides the line exactly at its curved edge. */
  .program { --program-connector-overlap: 2.5rem; overflow: visible; }
  /* Start at the page colour the previous block ends in (the catalogue, or the
     hero on character pages), retaining the original glow below. */
  :is(.catalog, .hero) + .program::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 auto;
    height: 6rem;
    background: linear-gradient(var(--color-page), transparent);
    pointer-events: none;
  }
  .program__glows { display: none; }
  .program__figure { mix-blend-mode: darken; isolation: isolate; }
  .program__decoration--decorationLeft, .program__decoration--decorationRight { display: none; }
}
/* The export contains a stray text fragment in an otherwise empty corner.
   Mask only that corner; actors, hands, ribbon and stars remain fully opaque. */
/* Client 27.10.2026: the export's light backdrop ended in a visible rectangle
   over the section glow. Its edges dissolve; the left one only over the last
   4 %, where the open hand already meets the frame. */
.program__scene, .program__scene-copy {
  mask-image:
    radial-gradient(ellipse 16% 12% at 0 100%, transparent 50%, #000 100%),
    linear-gradient(to right, transparent, #000 4%, #000 90%, transparent),
    linear-gradient(transparent, #000 10%, #000 88%, transparent);
  mask-composite: intersect;
}
.program__list { display: grid; gap: var(--program-list-gap); width: min(100%, 44rem); margin: 1.75rem 0 0; padding: 0 0 0 var(--program-list-inset); list-style: none; }
.program__item { position: relative; z-index: 2; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); column-gap: .625rem; row-gap: .5rem; align-items: center; align-content: center; min-width: 0; padding: .875rem 1rem 1rem clamp(1.25rem, 6vw, 1.5rem); border: 0; border-radius: var(--program-radius); background: var(--program-card); box-shadow: 0 .375rem 1.125rem rgb(90 60 130 / 6%); }
.program__item::after { content: ""; position: absolute; z-index: 0; top: calc(-1 * var(--program-list-gap)); bottom: calc(-1 * var(--program-list-gap)); left: calc(-1 * var(--program-number-offset) + var(--program-number-size) / 2 - .5px); width: 1px; background: #d9cdf0; }
.program__item:first-child::after { top: 50%; }
.program__item:last-child::after { bottom: calc(-1 * (var(--program-section-bottom) + var(--program-connector-overlap, var(--compact-offer-radius)))); }
.program__number { position: absolute; z-index: 1; top: 50%; left: calc(-1 * var(--program-number-offset)); display: grid; place-items: center; width: var(--program-number-size); height: var(--program-number-size); translate: 0 -50%; border: 0; border-radius: var(--radius-pill); background: var(--program-number-fill); color: var(--program-number-text); font-size: .6875rem; font-weight: 600; line-height: 1; }
.program__icon { grid-column: 1; grid-row: 1; align-self: center; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; }
.program__icon img { width: 100%; height: 100%; object-fit: contain; }
.program__item h3 { grid-column: 2; margin: 0; color: #1b1b1b; font-size: clamp(1rem, calc(.975rem + .125vw), 1.0625rem); font-weight: 500; line-height: 1.2; letter-spacing: 0; text-wrap: pretty; }
.program__description { grid-column: 1 / -1; color: var(--program-text); font-size: .875rem; line-height: 1.35; text-wrap: pretty; }
/* A single continuous track stays still while the existing cards reveal.
   Without enhancement the per-item connectors above remain the fallback. */
@media (width < 75rem) {
  .program__list { position: relative; }
  .program__list--progress::before,
  .program__list--progress::after {
    content: "";
    position: absolute;
    top: var(--program-line-start);
    left: calc(var(--program-list-inset) - var(--program-number-offset) + var(--program-number-size) / 2 - 1px);
    width: 2px;
    height: var(--program-line-length);
    border-radius: 2px;
    pointer-events: none;
  }
  /* The part still ahead is a dashed trail; the travelled part is a solid
     line that deepens along its length. Clipping instead of scaling keeps the
     gradient fixed to the track and lets the glow spill sideways. */
  .program__list--progress::before { border-radius: 0; background: repeating-linear-gradient(#cbbde9 0 .375rem, transparent .375rem .75rem); }
  .program__list--progress::after {
    background: linear-gradient(#b8a6f4, var(--program-accent) 45%, #5f48c4);
    box-shadow: 0 0 .5rem rgb(125 105 217 / 55%);
    clip-path: inset(0 -1rem calc((1 - var(--program-progress, 0)) * 100%) -1rem);
  }
  .program__list--progress .program__item::after { visibility: hidden; }
  /* A number lights up once the line reaches it; the latest one keeps a soft
     pulse and its card is outlined, so the eye follows the reader's position. */
  .program__list--progress .program__number { transition: background-color .35s var(--ease-out), color .35s var(--ease-out), box-shadow .35s var(--ease-out), scale .35s cubic-bezier(.34, 1.56, .64, 1); }
  .program__list--progress .program__item--reached .program__number { background: var(--program-accent); color: #fff; box-shadow: 0 0 0 .1875rem var(--color-page), 0 .25rem .75rem rgb(125 105 217 / 45%); scale: 1.12; }
  .program__list--progress .program__item { transition: box-shadow .45s var(--ease-out); }
  .program__list--progress .program__item--current { box-shadow: 0 .5rem 1.75rem rgb(125 105 217 / 18%), inset 0 0 0 1px rgb(125 105 217 / 22%); }
  .program__list--progress .program__icon { transition: scale .45s cubic-bezier(.34, 1.56, .64, 1); }
  .program__list--progress .program__item--current .program__icon { scale: 1.08; }
  .program__list--progress .program__item--current .program__number::before { content: ""; position: absolute; inset: -.375rem; border-radius: inherit; border: 2px solid rgb(125 105 217 / 45%); animation: program-stop-pulse 1.8s ease-out infinite; pointer-events: none; }
}
@keyframes program-stop-pulse { from { opacity: 1; scale: .8; } to { opacity: 0; scale: 1.35; } }
@container program (max-width: 17em) {
  .program__item { grid-template-columns: minmax(0, 1fr); }
  .program__icon { grid-column: 1; grid-row: auto; }
  .program__item h3, .program__description { grid-column: 1; }
}
/* A wide phone already has enough room for an icon alongside both text rows. */
@container program (min-width: 26.25em) {
  .program__item { grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: 1.125rem; row-gap: .375rem; padding: 1.125rem 1.25rem; }
  .program__icon { grid-row: 1 / span 2; width: 3.5rem; height: 3.5rem; }
  .program__description { grid-column: 2; }
}
@media (48rem <= width < 75rem) {
  .program { --program-radius: 1.375rem; --program-list-gap: .875rem; --program-list-inset: 3rem; --program-number-size: 1.75rem; --program-section-bottom: 2.75rem; padding-top: 2.875rem; background: linear-gradient(#efe8fd, var(--color-page) 40%); }
  .program__header { max-width: 43rem; }
  .program__eyebrow { min-height: 2.125rem; padding: .5rem 1.25rem; font-size: .875rem; }
  .program h2 { margin-top: 1.375rem; }
  .program__figure { margin-top: .875rem; }
  .program__list { margin-top: 2.25rem; }
  .program__item { padding: 1.375rem 1.75rem; }
  .program__number { font-size: .75rem; }
}
@media (width >= 75rem) {
  .program { --page-gutter: var(--desktop-page-gutter); --program-card: #f9f5ff; --program-text: rgb(58 43 67 / 51%); --program-label: rgb(58 43 67 / 40%); --program-number-fill: rgb(178 152 251 / 77%); --program-number-text: rgb(255 255 255 / 60%); --program-radius: 1.25rem; padding-block: 0; background: var(--color-page); }
  @container program (min-width: 70em) {
    .program__layout { display: grid; grid-template-columns: minmax(0, 340fr) minmax(0, 480fr) minmax(0, 340fr); min-height: var(--program-layout-height, 45.75rem); padding-top: var(--program-layout-top, 2.0625rem); align-items: start; }
    .program__header { grid-area: 1 / 2; justify-self: center; width: min(100%, 26rem); }
    .program__eyebrow { min-width: 7.8125rem; min-height: 1.875rem; padding: .375rem .75rem; background: rgb(204 197 254 / 19%); font-size: .875rem; }
    .program h2 { max-width: none; margin-top: 1.125rem; color: var(--program-title); opacity: .82; font-size: 1.875rem; font-weight: 600; line-height: 1.11; letter-spacing: 0; }
    .program__figure { grid-area: 1 / 2; align-self: end; justify-self: center; width: calc(100% + 4.625rem); max-width: 34.625rem; margin: 0 0 -.375rem -.875rem; }
    .program__list { grid-area: 1 / 1 / 2 / -1; grid-template-columns: subgrid; grid-template-rows: repeat(4, minmax(8.9375rem, auto)); grid-auto-flow: column; gap: .625rem 0; width: 100%; margin-top: var(--program-list-top, 3.125rem); padding: 0; }
    .program__item { grid-column: 1; grid-template-columns: 5.25rem minmax(0, 1fr); grid-template-rows: auto auto 1fr; gap: 0; align-items: normal; padding: 1.125rem 1.1875rem; border: 1px solid var(--program-border); background: var(--program-card); box-shadow: none; }
    .program__item:nth-child(n + 5) { grid-column: 3; margin-block: .5rem -.5rem; }
    .program__item::after { display: none; }
    .program__number { position: static; grid-column: 2; grid-row: 1; width: 2.3125rem; height: 1.4453125rem; border: 0; translate: none; font-size: .8671875rem; font-weight: 500; }
    /* Each illustration keeps its Figma dimensions and optical alignment
       within the shared grid slot. Text still determines the card height. */
    .program__icon { grid-row: 1 / span 3; justify-self: start; width: var(--program-icon-width); height: var(--program-icon-height); margin-inline-start: calc(var(--program-icon-left) - 1.25rem); translate: 0 calc(var(--program-icon-center) - 4.46875rem); border-radius: 0; background: none; }
    .program__item h3 { grid-row: 2; margin-top: .8125rem; font-size: 1.0625rem; font-weight: 500; color: #1b1b1b; line-height: .99; letter-spacing: 0; text-wrap: wrap; }
    .program__description { grid-column: 2; grid-row: 3; margin-top: .625rem; color: var(--program-text); font-size: .875rem; line-height: 1.25; text-wrap: wrap; }
  }
}
/* A replaceable character scene inside the same program/list component. The
   crop describes media only; headings and all eight items remain in flow. */
.program--character {
  --program-layout-height: 50.75rem;
  --program-layout-top: 5.1875rem;
  --program-list-top: 5rem;
}
.program--character h2 {
  text-wrap: wrap;
  /* The first gradient stop is negative in Figma's gradientTransform. */
  background-image: linear-gradient(90deg, rgb(178 152 251 / 64%), rgb(178 152 251 / 64%)), linear-gradient(120.101111668deg, #6652e9 -58.064815414%, #f6cafc 131.010740341%), linear-gradient(90deg, #bc9ef9, #bc9ef9);
  background-clip: text;
}
.program--character .program__heading-accent { color: transparent; }
.program__figure--photo { aspect-ratio: var(--program-photo-ratio); max-height: 38.875rem; mix-blend-mode: normal; }
.program__figure--photo .program__scene { mask-image: none; }
.program__figure--photo .program__scene img { object-fit: contain; }
.program__figure--layered {
  aspect-ratio: var(--program-crop-width) / var(--program-crop-height);
  mix-blend-mode: normal;
  isolation: auto;
  overflow: clip;
}
.program__layer-canvas {
  position: absolute;
  left: calc(-100% * var(--program-crop-x) / var(--program-crop-width));
  top: calc(-100% * var(--program-crop-y) / var(--program-crop-height));
  width: calc(100% * var(--program-scene-width) / var(--program-crop-width));
  height: calc(100% * var(--program-scene-height) / var(--program-crop-height));
  pointer-events: none;
}
.program__layer {
  position: absolute;
  z-index: 0;
  left: var(--program-layer-x);
  top: var(--program-layer-y);
  width: var(--program-layer-width);
  height: var(--program-layer-height);
  mix-blend-mode: var(--program-layer-blend, normal);
  transform: var(--program-layer-transform, none);
  transform-origin: 0 0;
}
.program__layer--foreground { z-index: 3; }
/* Client 27.10.2026: layers that reach past the haze (desktop ribbons, the
   compressed haze's gap, hard-light glows painted above it, a photo's last
   pixel row) were cut by the scene/section edge into a light band with a hard
   edge. From 48 scene px above the line where the haze turns solid the scene
   blends into the page colour down to (and across) the edge; the floating
   foreground layers stay above. */
.program__layer-canvas[data-scene-fade]::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: var(--program-scene-fade-top);
  bottom: -1px;
  left: -100vw;
  right: -100vw;
  background: linear-gradient(transparent, var(--program-scene-bg) var(--program-scene-fade-solid));
}
/* Cloud ribbons are Figma image crops whose clouds run into the crop edge; the
   cards hid that straight cut in Figma. Data lists the cut edges
   (`edgeFeather`), which dissolve here, in the layer's own (rotated) frame. */
.program__layer[data-feather] {
  --feather-l: 0%; --feather-r: 0%; --feather-t: 0%; --feather-b: 0%;
  --from-l: #000; --from-r: #000; --from-t: #000; --from-b: #000;
  mask-image:
    linear-gradient(to right, var(--from-l), #000 var(--feather-l), #000 calc(100% - var(--feather-r)), var(--from-r)),
    linear-gradient(to bottom, var(--from-t), #000 var(--feather-t), #000 calc(100% - var(--feather-b)), var(--from-b));
  mask-composite: intersect;
}
.program__layer[data-feather~="left"] { --feather-l: 30%; --from-l: transparent; }
.program__layer[data-feather~="right"] { --feather-r: 30%; --from-r: transparent; }
.program__layer[data-feather~="top"] { --feather-t: 40%; --from-t: transparent; }
.program__layer[data-feather~="bottom"] { --feather-b: 40%; --from-b: transparent; }
/* Full-scene hard-light glows painted above the cards fade out in the same band. */
.program__layer-canvas[data-scene-fade] .program__layer[data-scene-fade-mask] {
  mask-image: linear-gradient(#000 var(--program-scene-fade-top), transparent calc(var(--program-scene-fade-top) + 100% * 48 / var(--program-scene-height)));
}
.program__layer img { display: block; width: 100%; height: 100%; max-width: none; object-fit: fill; }
/* Peripheral desktop glows and ribbons sit behind the side cards. Compact
   layouts use the shared photo-first composition without those wide layers. */
.program__figure--layered .program__layer--desktop-only,
.program__figure--layered [data-program-layer="glows"],
.program__figure--layered [data-program-layer="ribbons"] { display: none; }
@media (width >= 75rem) {
  @container program (min-width: 70em) {
    .program--character .program__layout { grid-template-rows: auto 1fr; }
    .program--character .program__list { grid-area: 1 / 1 / 3 / -1; }
    .program__figure--layered .program__layer--desktop-only,
.program__figure--layered [data-program-layer="glows"],
    .program__figure--layered [data-program-layer="ribbons"] { display: block; }
    /* Client 23.10.2026: the Figma bottom haze was a long greyish band that
       still let the photo's straight cut show through. The photo dissolves in
       a short band ending where the haze turns solid (or at its own cut), and
       the haze layers are compressed towards that line: shorter, firmer, no
       visible edge. */
    .program__figure--layered .program__layer[data-edge-fade] { mask-image: none; }
    .program__figure--layered .program__layer[data-photo-fade] { mask-image: linear-gradient(#000 var(--program-photo-fade-start), transparent var(--program-photo-fade-end)); }
    .program__figure--layered .program__layer[data-bottom-fade] { transform: scaleY(.6); transform-origin: 0 var(--program-fade-to); }
    .program__figure--photo { grid-area: 2 / 2; margin: 1rem 0 0; }
    .program__figure--layered {
      grid-area: 2 / 2;
      overflow: visible;
      width: calc(var(--program-crop-width) * 1px);
      max-width: none;
      /* Only the empty sky at the top of the art overlaps the heading row.
         Longer character names expand the row and move the scene down. */
      margin: -2.5625rem 0 0;
    }
  }
}

/* Desktop hover: the card lifts onto a lilac outline, a faint sheen crosses
   it, the number fills with the accent and the illustration springs. Pointer
   only, so touch screens never keep a stuck state; motion only when allowed. */
@media (width >= 75rem) and (hover: hover) and (pointer: fine) {
  @container program (min-width: 70em) {
    .program__item {
      background:
        linear-gradient(110deg, transparent 35%, rgb(178 152 251 / 16%) 50%, transparent 65%) 160% 0 / 260% 100% no-repeat,
        var(--program-card);
      transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
      /* Icons carry a light backdrop that DARKEN hides only over the card's own
         surface; clipping keeps a sprung icon from showing it past the edge.
         At rest every icon already fits, so the clip changes nothing there. */
      overflow: clip;
    }
    .program__number { transition: background-color .3s var(--ease-out), color .3s var(--ease-out); }
    .program__item:hover { border-color: rgb(125 105 217 / 45%); box-shadow: 0 1rem 2.5rem rgb(125 105 217 / 16%); }
    .program__item:hover .program__number { background: var(--program-accent); color: #fff; }
  }
}
@media (width >= 75rem) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  @container program (min-width: 70em) {
    .program__item { transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out), translate .35s var(--ease-out), background-position 0s; }
    .program__item:hover { translate: 0 -.3125rem; background-position: -60% 0, 0 0; transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out), translate .35s var(--ease-out), background-position .9s var(--ease-out); }
    .program__icon img { transition: rotate .5s cubic-bezier(.34, 1.56, .64, 1), scale .5s cubic-bezier(.34, 1.56, .64, 1); }
    .program__item:hover .program__icon img { rotate: -6deg; scale: 1.1; }
  }
}
