/* Christmas mini sessions landing page (/christmas-mini-sessions/).
   Sits on style.css + page-kit.css + studio-booking.css (form rows and
   checkboxes); only adds what the page needs. Warm accents on the site's
   black base. Built by scripts/build-christmas.py. */

.xm-page {
  --xm-gold: hsl(38 62% 66%);
  --xm-red: hsl(354 62% 46%);
  --xm-red-dark: hsl(354 62% 38%);
  --xm-glow: hsl(30 80% 55% / 0.14);
}

/* ─── Slim header (no site nav: one action on this page) ───── */
.xm-top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.xm-top-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.xm-top-logo img { height: 2.5rem; width: auto; }
@media (min-width: 768px) {
  .xm-top-inner { height: 4.5rem; }
  .xm-top-logo img { height: 3rem; }
}

/* ─── Buttons ──────────────────────────────────────────────── */
.xm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  background: var(--xm-red);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 160ms ease, transform 160ms ease;
}
.xm-btn:hover { background: var(--xm-red-dark); }
.xm-btn:active { transform: scale(0.98); }
.xm-btn:focus-visible { outline: 2px solid var(--xm-gold); outline-offset: 3px; }
.xm-btn--full { width: 100%; }
.xm-btn--sm { min-height: 44px; padding: 0.6rem 1.25rem; font-size: 0.9375rem; }

/* ─── Hero ─────────────────────────────────────────────────── */
.xm-hero {
  position: relative;
  padding-top: clamp(7rem, 12vw, 9.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.xm-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(closest-side, var(--xm-glow), transparent 70%);
  pointer-events: none;
}
.xm-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.xm-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--xm-gold);
  margin-bottom: 1.25rem;
}
.xm-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--xm-red);
  box-shadow: 0 0 0 4px hsl(354 62% 46% / 0.25);
}
.xm-h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.xm-h1 em { font-style: normal; color: var(--xm-gold); }
.xm-lede {
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 34rem;
  text-wrap: pretty;
}
.xm-offer { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.85rem; }
.xm-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 4.5vw, 3.4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.xm-price-note { color: var(--muted-fg); font-size: 0.95rem; }
.xm-ctas { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.xm-friction { margin-top: 0.75rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.62); }
.xm-proofline {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted-fg);
  max-width: 34rem;
}

.xm-hero-media { position: relative; margin: 0; }
.xm-hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 46% 62%;
  border-radius: 10px;
  box-shadow: 0 30px 80px -30px hsl(30 80% 40% / 0.45);
}

/* Tick list: hero uses it inline. */
.xm-ticks { list-style: none; display: grid; gap: 0.6rem; }
.xm-ticks li {
  position: relative;
  padding-left: 1.75rem;
  color: rgba(255, 255, 255, 0.86);
}
.xm-ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--xm-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.xm-ticks--hero { margin-top: 1.25rem; }

/* ─── Section shared ───────────────────────────────────────── */
.xm-intro { max-width: 44rem; margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem); }
.xm-intro p { margin-top: 1rem; color: rgba(255, 255, 255, 0.72); font-size: 1.08rem; }

/* ─── Your 12 photos ───────────────────────────────────────── */
.xm-photos { border-top: 1px solid var(--border); }
.xm-photos-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.xm-scenes { list-style: none; display: grid; gap: 0; margin-bottom: 2rem; border-top: 1px solid var(--border); }
.xm-scenes li {
  display: flex;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.xm-scenes b {
  flex: none;
  width: 2.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  color: var(--xm-gold);
}
.xm-scenes h3 { font-size: 1.15rem; }
.xm-scenes p { margin-top: 0.2rem; color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }
.xm-set-media { margin: 0; }
.xm-set-media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.xm-set-media figcaption { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--muted-fg); }

/* ─── How it works ─────────────────────────────────────────── */
.xm-how { padding-top: 0; }
.xm-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (max-width: 960px) { .xm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.xm-steps li { counter-increment: step; border-top: 2px solid var(--xm-red); padding-top: 1.25rem; }
.xm-steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--xm-gold);
  margin-bottom: 0.5rem;
}
.xm-steps h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.xm-steps p { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }

/* ─── Booking ──────────────────────────────────────────────── */
.xm-book { background: var(--surface); border-top: 1px solid var(--border); }
.xm-book-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.xm-book-aside { position: sticky; top: 6.5rem; }
.xm-book-aside .pk-sub { margin-top: 1rem; }
.xm-book-sum { margin-top: 1.5rem; color: rgba(255, 255, 255, 0.78); }
.xm-book-sum b { color: var(--fg); }
.xm-book .contact-form-wrap { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: clamp(1.25rem, 3vw, 2rem); }
.xm-book .form-fineprint { margin-top: 0.85rem; font-size: 0.85rem; color: var(--muted-fg); text-align: center; }
.xm-slot-note { font-size: 0.82rem; color: var(--muted-fg); margin-top: 0.35rem; display: block; }

/* ─── FAQ ──────────────────────────────────────────────────── */
.xm-faq { max-width: 52rem; }
.xm-faq details { border-bottom: 1px solid var(--border); }
.xm-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  font-weight: 600;
  font-size: 1.08rem;
}
.xm-faq summary::-webkit-details-marker { display: none; }
.xm-faq summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--xm-gold);
  transition: transform 200ms ease;
}
.xm-faq details[open] summary::after { transform: rotate(45deg); }
.xm-faq summary:focus-visible { outline: 2px solid var(--xm-gold); outline-offset: 4px; }
.xm-faq details p { padding: 0 0 1.25rem; color: rgba(255, 255, 255, 0.74); max-width: 46rem; }

/* ─── Slim footer ──────────────────────────────────────────── */
.xm-foot { border-top: 1px solid var(--border); padding-block: 2rem; }
.xm-foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; font-size: 0.875rem; color: var(--muted-fg); }
.xm-foot-inner img { height: 2rem; width: auto; }
.xm-foot-inner a { color: rgba(255, 255, 255, 0.8); text-decoration: underline; text-underline-offset: 3px; }
.xm-foot-inner p:last-child { margin-left: auto; }

/* ─── Mobile sticky bar ────────────────────────────────────── */
.xm-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: hsl(0 0% 4% / 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.xm-sticky.is-on { transform: translateY(0); }
.xm-sticky b { font-family: var(--font-display); font-size: 1.25rem; display: block; line-height: 1.1; }
.xm-sticky span { font-size: 0.8rem; color: var(--muted-fg); }
.xm-sticky .xm-btn { min-height: 46px; padding: 0.7rem 1.35rem; }

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .xm-hero-grid, .xm-photos-grid, .xm-book-grid { grid-template-columns: 1fr; }
  .xm-hero-media img { aspect-ratio: 4 / 3; object-position: 44% 66%; }
  .xm-set-media { max-width: 28rem; }
  .xm-book-aside { position: static; }
}
@media (max-width: 640px) {
  .xm-hero { padding-top: 5.5rem; }
  /* Phones: headline, price and CTA first; the photo follows. */
  .xm-hero-media { order: 1; }
  .xm-steps { grid-template-columns: 1fr; }
  .xm-sticky { display: flex; }
  .xm-ctas .xm-btn, .xm-photos .xm-btn { width: 100%; }
  .xm-foot-inner p:last-child { margin-left: 0; }
  body.xm-page { padding-bottom: 76px; }
}
/* ─── Version B gallery ────────────────────────────────────── */
.xm-gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem); }
.xm-gal figure { margin: 0; overflow: hidden; border-radius: 10px; background: var(--card); }
.xm-gal img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
/* Who it's for */
.xm-who-b { padding-top: 0; }
.xm-uses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.xm-uses article { background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.xm-uses img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.xm-uses h3 { font-size: 1.1rem; margin: 1rem 1.1rem 0.4rem; }
.xm-uses p { margin: 0 1.1rem 1.2rem; color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; }
.xm-uses-cta { margin-top: 2rem; }
@media (max-width: 960px) {
  .xm-uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.xm-gal figcaption { padding: 0.7rem 0.9rem; font-size: 0.85rem; color: var(--muted-fg); }
.xm-disclose { margin-top: 1rem; font-size: 0.8125rem; color: var(--muted-fg); }
@media (max-width: 640px) {
  .xm-gal { grid-template-columns: 1fr; }
  .xm-uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xm-uses-cta .xm-btn { width: 100%; }
}

/* ─── Google Calendar booking page (when BOOKING_URL is set) ─ */
.xm-embed iframe { display: block; width: 100%; height: 820px; border: 0; border-radius: 14px; background: #fff; }
/* Calendly: one centred column; the widget draws its own stacked card and resizes to fit (resize: true). */
.xm-book.xm-book--cal .xm-book-grid { grid-template-columns: 1fr; max-width: 46rem; margin-inline: auto; gap: 2rem; }
.xm-book--cal .xm-book-aside { position: static; text-align: center; }
.xm-book--cal .xm-book-aside .pk-sub { margin-inline: auto; max-width: 36rem; }
#xm-calendly { min-width: 320px; min-height: 700px; border-radius: 14px; overflow: hidden; background: var(--card); }
.xm-embed--cal #xm-calendly iframe { height: 100%; background: transparent; border-radius: 0; }
.xm-embed .form-fineprint a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* ─── Layout B: centred (/christmas-mini-sessions-b/) ──────── */
.xm-centre { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.xm-layout-centre .xm-hero-copy { display: flex; flex-direction: column; align-items: center; }
.xm-layout-centre .xm-lede { margin-inline: auto; max-width: 38rem; }
.xm-layout-centre .xm-offer, .xm-layout-centre .xm-ctas { justify-content: center; }
.xm-ticks--row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.75rem; }
.xm-hero-wide { margin: clamp(2rem, 4vw, 3rem) 0 0; width: 100%; max-width: 68rem; }
.xm-hero-wide img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; box-shadow: 0 30px 80px -30px hsl(30 80% 40% / 0.45); }
.xm-layout-centre .xm-proofline { border-top: 0; padding-top: 0; margin-inline: auto; }
.xm-layout-centre .xm-intro { margin-inline: auto; text-align: center; }
.xm-layout-centre .xm-intro p { margin-inline: auto; max-width: 38rem; }
.xm-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.xm-ways figure { margin: 0; overflow: hidden; border-radius: 12px; background: var(--card); border: 1px solid var(--border); }
.xm-ways img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.xm-ways figcaption { padding: 1.1rem 1.25rem 1.35rem; text-align: center; }
.xm-ways b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; line-height: 1; color: var(--xm-gold); }
.xm-ways h3 { font-size: 1.15rem; margin-top: 0.4rem; }
.xm-ways p { margin-top: 0.3rem; color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }
.xm-layout-centre .xm-disclose { text-align: center; }
.xm-centre-cta { margin-top: 2rem; text-align: center; }
.xm-who-c { padding-top: 0; }
.xm-faces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem; text-align: center; }
.xm-faces img { width: 8rem; height: 8rem; object-fit: cover; border-radius: 50%; margin: 0 auto 1rem; border: 2px solid hsl(38 62% 66% / 0.5); }
.xm-faces h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.xm-faces p { color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; }
.xm-layout-centre .xm-steps li { text-align: center; }
.xm-layout-centre .xm-book-grid { grid-template-columns: 1fr; max-width: 46rem; margin-inline: auto; }
.xm-layout-centre .xm-book-aside { position: static; text-align: center; }
.xm-layout-centre .xm-book-aside .pk-sub { margin-inline: auto; }
.xm-layout-centre .xm-faq { margin-inline: auto; }
.xm-layout-centre .pk-close-inner { margin-inline: auto; text-align: center; }
.xm-layout-centre .pk-close .hero-ctas { justify-content: center; }

/* ─── Layout C: 3x3 grid, offer in the centre tile (-c) ───── */
.xm-hero--grid { padding-top: clamp(5.5rem, 8vw, 6.5rem); }
.xm-mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.xm-mosaic > figure { margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--card); }
.xm-mosaic > figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xm-mosaic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.25rem, 2.2vw, 2rem);
  border-radius: 10px;
  background: linear-gradient(180deg, hsl(30 30% 12%), var(--card));
  border: 1px solid hsl(38 40% 40% / 0.45);
}
.xm-mosaic-card .xm-kicker { margin-bottom: 0.75rem; font-size: 0.72rem; }
.xm-mosaic-card .xm-h1 { font-size: clamp(1.6rem, 2.5vw, 2.4rem); }
.xm-mosaic-sub { margin-top: 0.6rem; font-size: 0.95rem; color: rgba(255, 255, 255, 0.75); }
.xm-mosaic-card .xm-offer { margin-top: 0.9rem; justify-content: center; }
.xm-mosaic-card .xm-price { font-size: clamp(2rem, 3vw, 2.6rem); }
.xm-mosaic-card .xm-btn { margin-top: 1rem; }
.xm-mosaic-card .xm-friction { font-size: 0.8125rem; }
.xm-mosaic-foot { margin-top: 1rem; font-size: 0.8125rem; color: var(--muted-fg); }
.xm-trio { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.xm-trio li { border-top: 2px solid var(--xm-gold); padding-top: 1.25rem; }
.xm-trio b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; line-height: 1; color: var(--xm-gold); }
.xm-trio h3 { font-size: 1.2rem; margin-top: 0.5rem; }
.xm-trio p { margin-top: 0.35rem; color: rgba(255, 255, 255, 0.7); }
.xm-who-d { padding-top: 0; }
.xm-who-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; max-width: 60rem; }
.xm-who-list div { border-left: 2px solid var(--xm-red); padding-left: 1.25rem; }
.xm-who-list h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.xm-who-list p { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }

@media (max-width: 960px) {
  .xm-faces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xm-mosaic-card .xm-friction { display: none; }
}
@media (max-width: 640px) {
  .xm-ways { grid-template-columns: 1fr; }
  .xm-ways img { aspect-ratio: 3 / 2; }
  .xm-centre-cta .xm-btn { width: 100%; }
  /* Grid on phones: the offer first, then the eight photos as a 4 x 2 strip. */
  .xm-mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; }
  .xm-mosaic-card { grid-column: 1 / -1; order: -1; margin-bottom: 0.35rem; }
  .xm-mosaic-card .xm-friction { display: block; }
  .xm-mosaic-card .xm-btn { width: 100%; }
  .xm-mosaic > figure { border-radius: 6px; }
  .xm-trio, .xm-who-list { grid-template-columns: 1fr; }
}
/* ─── B: 4-photo gallery under the hero ────────────────────── */
.xm-quad { width: 100%; max-width: 68rem; margin-top: 0.75rem; display: grid; grid-template-columns: 1fr 1.5fr 1fr; grid-template-rows: auto auto; gap: 0.75rem; }
.xm-quad figure { margin: 0; overflow: hidden; border-radius: 10px; background: var(--card); }
.xm-quad img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 3 / 2; }
.xm-quad .xm-quad-tall { grid-row: span 2; }
.xm-quad .xm-quad-tall img { aspect-ratio: auto; }
.xm-quad figure:nth-child(2) { grid-column: 2; grid-row: 1; }
.xm-quad figure:nth-child(3) { grid-column: 2; grid-row: 2; }
.xm-quad figure:nth-child(4) { grid-column: 3; grid-row: 1 / span 2; }

/* ─── Where to find us (map) ───────────────────────────────── */
.xm-where-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.xm-where .pk-sub { margin-top: 0.9rem; }
.xm-where-link { margin-top: 1rem; }
.xm-where-link a { color: var(--xm-gold); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.xm-map { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--card); aspect-ratio: 16 / 10; }
.xm-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.35); }
.xm-layout-centre .xm-where-grid { grid-template-columns: 1fr; max-width: 46rem; margin-inline: auto; text-align: center; }
.xm-layout-centre .xm-where .pk-sub { margin-inline: auto; }

@media (max-width: 960px) {
  .xm-where-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  /* Centred tick lists: keep the block centred but the lines left-aligned,
     so a wrapped line sits under its own text, not under the tick. */
  .xm-ticks--row { display: grid; justify-content: center; justify-items: start; text-align: left; gap: 0.55rem; }
  .xm-quad { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 0.5rem; }
  .xm-quad figure:nth-child(n) { grid-column: auto; grid-row: auto; }
  .xm-quad img, .xm-quad .xm-quad-tall img { aspect-ratio: 4 / 5; height: auto; }
  .xm-map { aspect-ratio: 4 / 3; }
}
/* ─── Mobile tidy-up (25 Nov) ──────────────────────────────── */
.xm h1, .xm h2, .xm h3 { text-wrap: balance; }
.xm p, .xm li { text-wrap: pretty; }
.xm-k-short { display: none; }
@media (max-width: 640px) {
  .xm-k-long { display: none; }
  .xm-k-short { display: inline; }
  /* Who it's for: one card per row, photo left, text right */
  .xm-uses { grid-template-columns: 1fr; gap: 0.75rem; }
  .xm-uses article { display: grid; grid-template-columns: 7.5rem 1fr; grid-template-rows: auto 1fr; align-items: start; }
  .xm-uses img { grid-column: 1; grid-row: 1 / span 2; }
  .xm-uses img { grid-row: span 2; height: 100%; aspect-ratio: auto; min-height: 9.5rem; }
  .xm-uses h3 { margin: 0.9rem 1rem 0.3rem; }
  .xm-uses p { margin: 0 1rem 1rem; font-size: 0.9rem; }
  .xm-faces { grid-template-columns: 1fr; gap: 1.25rem; text-align: left; }
  .xm-faces > div { display: grid; grid-template-columns: 5.5rem 1fr; column-gap: 1rem; align-items: center; }
  .xm-faces img { width: 5.5rem; height: 5.5rem; margin: 0; grid-row: span 2; }
  .xm-faces h3 { margin: 0 0 0.25rem; align-self: end; }
  .xm-faces p { align-self: start; font-size: 0.9rem; }
  /* C mosaic: zoom the small square tiles in on the people */
  .xm-mosaic > figure img { transform: scale(1.45); transform-origin: 50% 58%; }
}
@media (prefers-reduced-motion: reduce) {
  .xm-sticky, .xm-btn, .xm-faq summary::after { transition: none; }
}
