/* ==========================================================================
   Red Carpet Experience and Aftercare Support pages (round 26). Both reuse
   the Our Story structure (training.css + story.css: hero, light intro,
   split, cards, founder card, next panel, marquee, FAQ, soft closing band)
   and only add what those pages do not have. Copy verbatim from the two
   client PDFs ("Red Carpet Experience.pdf", "Aftercare Support.pdf").
   ========================================================================== */

/* ---- Heroes ------------------------------------------------------------ */
/* Red Carpet: the QUAD Curve render sits right of centre, copy stays left */
.sup-hero--rc .trn-hero__media img { object-position: 64% 50%; }
/* Aftercare: a light clinic photo, toned down to the Solutions black so the
   white copy keeps its contrast (filter on the img, GSAP moves the wrapper) */
.sup-hero--ac .trn-hero__media img { object-position: 40% 45%; filter: brightness(0.42) contrast(1.12); }

/* Split titles: balanced lines, no lone last word ("Behind It.") */
.sup .trn-split__copy .t-display { text-wrap: balance; }

/* ---- Dark section heads ------------------------------------------------ */
/* .trn-intro carries a light-section divider; on black it uses the dark rule */
.sup-head { border-bottom-color: var(--color-gray-800); }
.sup-head .t-display { text-wrap: balance; }
.sup-stage .sup-head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }

/* ---- Card grids -------------------------------------------------------- */
/* Five parts of the evening: three cards over two, on a 6 column grid */
.sup-cards--five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.sup-cards--five > :nth-child(-n + 3) { grid-column: span 2; }
.sup-cards--five > :nth-child(n + 4) { grid-column: span 3; }
/* Six support areas: three by two */
.sup-cards--six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sup-cards .trn-eyebrow { margin-bottom: calc(var(--space-2) * -1); }
.sup-cards .story-card__title { text-wrap: balance; }
.sup-card__btn { align-self: flex-start; margin-top: var(--space-3); }

/* ---- Six support areas: stacking cards (r27) ---------------------------- */
/* Wide cards: number, area and title on the left, the copy on the right.
   On desktop each card sticks a little lower than the one before, so the next
   card slides up over it and leaves its top edge showing like a file tab.
   support.js shrinks and darkens the cards underneath from live geometry
   (--dim drives the overlay). Below 1025 px or on short screens they are a
   plain list. */
.sup-stack { display: grid; gap: var(--space-4); max-width: 80rem; margin: 0 auto; padding: 0; list-style: none; }
.sup-stack__card {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-6) clamp(2rem, 5vw, 6rem); min-height: 25rem;
  padding: clamp(2rem, 3.5vw, 3.5rem); transform-origin: 50% 0;
  border-color: rgb(255 255 255 / 0.1); /* the edges of the stacked cards must read on black */
}
.sup-stack__card:hover { background: var(--color-gray-900); } /* solid: a translucent hover would show the cards underneath */
.sup-stack__card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: #000; opacity: var(--dim, 0); pointer-events: none;
}
.sup-stack__lead { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.sup-stack__lead .counter { margin-bottom: auto; padding-bottom: var(--space-8); }
.sup-stack__lead .trn-eyebrow { margin: 0; }
.sup-stack__lead .story-card__title { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2.25rem); text-wrap: balance; }
.sup-stack__lead .sup-card__btn { margin-top: var(--space-4); }
.sup-stack__body { display: grid; align-content: end; gap: var(--space-3); max-width: 38rem; }
@media (min-width: 1025px) and (min-height: 700px) {
  .sup-stack { gap: clamp(3rem, 10vh, 7rem); }
  .sup-stack__item { position: sticky; top: calc(6.5rem + var(--i) * 1.5rem); }
}

/* ---- Built around your brand (light feature card) ---------------------- */
/* The Our Story founder card, laid out wide with a landscape photo */
.sup-feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sup-feature__media { aspect-ratio: auto; min-height: 26rem; }
.sup-feature__body { justify-content: center; padding: var(--space-8) var(--space-8) var(--space-8) var(--space-4); }
.sup-feature__body .story-founder__name { font-size: var(--fs-display-2); line-height: 1.15; text-wrap: balance; }

/* ---- One night, a bigger opportunity ----------------------------------- */
.sup-after .sup-head { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.sup-after .trn-intro__copy .btn { justify-self: start; margin-top: var(--space-2); }

/* ---- Panels ------------------------------------------------------------ */
/* support.js drifts the panel photo at scale 1.08: clip it to its column so it
   does not spill past the dark fade into the copy side */
.sup .trn-next__media { overflow: hidden; }
.sup-rc .trn-next__media img { object-position: 62% 50%; }
/* Aftercare Red Carpet teaser: frame the right leg of the Curve render */
.sup .story-more .trn-next__media img { object-position: 72% 45%; }
/* Red Carpet "We Help You Introduce It": the wide dome render cropped too hard in
   the tall column, so it uses the portrait-friendly handpiece shot, centred on the device */
.sup .sup-introduce .trn-next__media img { object-position: 82% 50%; }

/* ---- QUAD resources: light slider over the light CTA texture (r28) -----
   The Training modules slider (training.css + support.js) in its light skin:
   whole tiles only, sized by JS through --card-w. Behind it, the closing band
   texture (support-texture.jpg) in a light version: the same silk folds,
   inverted and pressed into pale greys (img/support-texture-light.jpg, white
   down to about #d7). Masked at both ends so it melts into the white, and it
   drifts slightly slower than the page. */
.sup-resources { position: relative; overflow: hidden; }
.sup-resources > .container { position: relative; z-index: 1; }
.sup-resources__tex {
  position: absolute; z-index: 0; inset: -6% 0; pointer-events: none;
  background: url("../img/support-texture-light.jpg") 60% 50% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 80%, transparent 100%);
  /* r28c (Ana: "más tenue"): the folds are a whisper, not a pattern */
  opacity: 0.4;
}
.sup-res .counter { border-color: rgb(0 0 0 / 0.14); color: var(--color-gray-450); }
.sup-res .counter b { color: #000; }
.sup-res .trn-slider__name { color: #000; }
.sup-res .trn-slider__bar { background: #e6e6e6; }
.sup-res .trn-slider__bar span { width: calc(100% / 6); background: #000; }
.sup-tile {
  flex: none; width: var(--card-w, clamp(16.5rem, 23vw, 22rem)); min-height: 22rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-8); border-radius: var(--radius-md);
  /* a touch see-through so the silk folds read faintly behind the tiles */
  background: rgb(242 242 242 / 0.88); border: 1px solid rgb(0 0 0 / 0.05);
  transition: background var(--dur-base) var(--ease-out), opacity var(--dur-slow) var(--ease-out);
  user-select: none;
}
.sup-tile:hover { background: rgb(234 234 234 / 0.9); }
.sup-tile.is-past { opacity: 0.35; }
.sup-tile__icon { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; margin-bottom: auto; border-radius: 50%; background: #000; color: #fff; }
.sup-tile__icon svg { width: 1.125rem; height: 1.125rem; }
.sup-tile h3 { margin-top: var(--space-10); font-family: var(--font-display); font-weight: var(--weight-light); font-size: var(--fs-title-sm); line-height: 1.25; color: #000; }
/* room for four lines, so every title sits on the same line across the row */
.sup-tile p { min-height: calc(var(--lh-body) * 4em); font-size: var(--fs-body); line-height: var(--lh-body); color: var(--color-gray-550); }

/* ---- Support should feel personal -------------------------------------- */
.sup-personal { position: relative; overflow: hidden; padding: var(--section-y) 0; }
.sup-personal__bg {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.8;
  background: linear-gradient(180deg, #000 0%, rgb(0 0 0 / 0.4) 40%, rgb(0 0 0 / 0.4) 60%, #000 100%), url("../img/hero-bg.webp") 20% 50% / cover no-repeat;
}
.sup-personal__inner { position: relative; display: grid; justify-items: center; gap: var(--space-5); }
/* the container keeps its side padding; the column width lives on the children */
.sup-personal__inner > * { max-width: 46rem; }
.sup-personal .t-display { margin-bottom: var(--space-2); text-wrap: balance; }
.sup-personal .t-body { max-width: 36rem; color: var(--color-gray-150); }
.sup-personal__line { margin-top: var(--space-2); font-family: var(--font-display); font-weight: var(--weight-light); font-size: var(--fs-title-lg); line-height: 1.3; color: #fff; }
.sup-personal .btn { margin-top: var(--space-3); }

/* ---- Closing band ------------------------------------------------------ */
/* "Talk to Us About Your Red Carpet Experience" is longer than the card on a
   phone: let the label wrap instead of widening the card's grid track */
.sup .story-close .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.3; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 1200px) {
  .sup-cards--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sup-cards--five > :nth-child(n) { grid-column: auto; }
  .sup-cards--five > :last-child { grid-column: 1 / -1; }
  .sup-cards--six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .sup-feature { grid-template-columns: 1fr; }
  .sup-feature__media { min-height: 0; aspect-ratio: 16 / 9; }
  .sup-feature__body { padding: var(--space-2) var(--space-4) var(--space-6); }
  /* Stacked 16:9 panel: keep the handpiece head in frame */
  .sup .sup-introduce .trn-next__media img { object-position: 50% 0%; }
}
@media (max-width: 760px) {
  .sup-cards--five, .sup-cards--six { grid-template-columns: 1fr; }
  .sup-cards--five > :last-child { grid-column: auto; }
  .sup-stack__card { grid-template-columns: 1fr; min-height: 0; padding: var(--space-8) var(--space-6); }
  .sup-stack__lead .counter { padding-bottom: var(--space-4); }
  .sup-tile { min-height: 0; padding: var(--space-6); }
  .sup-tile h3 { margin-top: var(--space-8); }
  .sup-resources__tex { background-position: 70% 50%; }
}
@media (max-width: 640px) {
  .sup-hero--rc .trn-hero__media img { object-position: 66% 55%; }
  .sup-hero--ac .trn-hero__media img { object-position: 42% 45%; }
}
