/* ══════════════════════════════════════════════════════════════════════
   KEYNOTE CARDS - Speaking page, "#choose" section only
   Card style modeled on a poster layout: photo across the top that fades
   into black, everything centered, thin gold frame, square corners.
   Fonts, colors, copy and the hero are unchanged.

   Loaded only by services/speaking.html. To remove the style, delete
   its <link> line there.
   ══════════════════════════════════════════════════════════════════════ */

#choose .xs-choose-grid {
  gap: 1.5rem;
  align-items: stretch;
}

/* The frame: black card, thin gold border all round, square corners */
#choose .xs-choose-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  align-items: center;
  text-align: center;
  background: #000;
  border: 2px solid var(--accent-gold);
  border-radius: 0;
  padding: 13rem 2.5rem 2.75rem;
}

/* Photo across the top of the card, fading into the black below it */
#choose .xs-choose-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22rem;
  z-index: -1;
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .45) 40%, rgba(0, 0, 0, .9) 72%, #000 100%),
    var(--kn-photo);
  background-size: cover, cover;
  background-position: center, var(--kn-pos, center 30%);
  background-repeat: no-repeat;
}
#choose .xs-choose-card:nth-child(1) {
  --kn-photo: url(../images/backgrounds/corporate-hero.webp);
  --kn-pos: center 30%;
}
#choose .xs-choose-card:nth-child(2) {
  --kn-photo: url(../images/backgrounds/community-hero.webp);
  --kn-pos: 30% 20%;
}

/* Label above the title */
#choose .xs-choose-tag {
  font-size: var(--fs-13);
  letter-spacing: 0.12em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .8);
}

/* Big centered title sitting on the fade */
#choose .xs-choose-title {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.02;
  margin: 0.6rem 0 1rem;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .7));
}
/* Gold words are gradient-clipped text: a text-shadow would paint over them */
#choose .xs-choose-title,
#choose .xs-choose-title .italic-accent { text-shadow: none; }

/* Bold subtitle */
#choose .xs-choose-promise {
  font-weight: 700;
  font-size: var(--fs-18);
  max-width: 30rem;
  margin: 0 auto 1rem;
}

/* One plain description line */
#choose .xs-choose-for {
  max-width: 30rem;
  margin: 0 auto 1.75rem;
  color: #d6d5d2;
}

/* "Your audience leaves with": centered, no bullets */
#choose .xs-choose-label {
  margin-bottom: 1rem;
}
#choose .xs-choose-list {
  align-items: center;
  gap: 1rem;
  max-width: 30rem;
  margin: 0 auto 2.25rem;
}
#choose .xs-choose-list li {
  padding-left: 0;
}
#choose .xs-choose-list li::before {
  display: none;
}
#choose .xs-choose-list strong {
  display: block;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

/* Button centered, date link under it */
#choose .xs-choose-actions {
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

@media (max-width: 860px) {
  #choose .xs-choose-card { padding: 10rem 1.5rem 2rem; }
  #choose .xs-choose-card::before { height: 17rem; }
  #choose .xs-choose-card:nth-child(1) { --kn-pos: 30% 30%; }
}

/* ── Coming-soon cards (Men's Coaching, Advisory): side by side under the
      keynote cards, lined up with the keynote grid. Stacked on phones. ── */

/* Coming-soon titles: always visible. They used to wait for their own
   scroll-triggered fade, and stayed invisible whenever it didn't fire.
   The whole section still fades in as one block. */

/* ── Keynote pages: the "other keynote" card picks its own photo (2026-10-16) ── */
#choose .xs-choose-card.xs-kn-card-corporate { --kn-photo: url(../images/backgrounds/corporate-hero.webp); --kn-pos: center 30%; }
#choose .xs-choose-card.xs-kn-card-community { --kn-photo: url(../images/backgrounds/community-hero.webp); --kn-pos: 30% 20%; }

/* ── Even cards (2026-10-16): every row lines up across the two cards.
   Each card is a subgrid that spans the same rows of the shared grid, so the
   label + title block, promise, "Best for", list and button sit at the same
   height in both cards. Both category labels sit level at the top of the row;
   a one-line title is centered vertically in the space the two-line title uses,
   so "SOLVE FOR X." sits between "WHY ME BECAME" and "WATCH ME." (Xavier, Oct 16). ── */
#choose .xs-choose-card {
  display: grid;
  grid-row: span var(--kn-rows, 6);
  grid-template-rows: subgrid;
  row-gap: 0;
  justify-items: center;
}
#choose .xs-choose-head { align-self: stretch; display: flex; flex-direction: column; align-items: center; text-align: center; }
/* Labels stay level at the top; a one-line title is centered in the space of the two-line title (Xavier, Oct 16) */
#choose .xs-choose-head .xs-choose-title { margin: auto 0; padding: 0.6rem 0 1rem; }
#choose .xs-choose-promise,
#choose .xs-choose-for,
#choose .xs-choose-label,
#choose .xs-choose-list { align-self: start; }
#choose .xs-choose-actions { align-self: end; }
.xs-home-keynotes#choose .xs-choose-card { --kn-rows: 4; }
.xs-kn-other#choose .xs-choose-card { --kn-rows: 3; }
