/* Phones (Pascal, 2026-11-20): one column, a tighter rhythm between sections, at least 16px from both screen
   edges, nothing that scrolls sideways, and every button and link at least 44px to tap.
   Loaded last on every page with media="(max-width: 767px)", and wrapped in the same query, so the desktop and
   tablet layouts never read a line of it (verify/desktop-lock.mjs proves it). Checked by verify/mobile.mjs. */
@media (max-width: 767px) {

  /* ---------- rhythm: about 130px between two sections instead of about 200 ---------- */
  :root { --rhythm: 64px; }
  .close { padding-bottom: 56px; }
  .close--plain { padding-top: 64px; }
  .stats-sec { padding-block: 48px 56px; }
  .phero { padding-bottom: 32px; }

  /* ---------- taps: 44px or more ---------- */
  .btn { min-height: 52px; }
  .link { min-height: 44px; min-width: 44px; }
  .nav__logo { padding-block: 9px; margin-block: -9px; }
  .ftp__logo { padding-block: 3px; margin-block: -3px; }
  .ftp__col { gap: 0; }
  .ftp__col a { display: flex; align-items: center; min-height: 44px; min-width: 44px; padding-block: 0; }
  .ftp__col a::after { bottom: 9px; }
  .pw-talk__a { padding-block: 9px; }   /* a link inside a sentence: a taller tap area, the line stays put */
  .aform__priv { display: inline-flex; align-items: center; min-height: 44px; vertical-align: middle; }

  /* the event address opens the phone's maps (retreats) */
  .rt-map { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
  .rt-map:active { opacity: .6; }

  /* ---------- side by side → stacked ---------- */
  /* member numbers: one under the other, a hairline between */
  .stats { grid-template-columns: 1fr; row-gap: 0; }
  .stats .stat, .stats .stat:nth-child(odd) { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .stats .stat:first-child { padding-top: 0; border-top: 0; }
  .stats .stat:last-child { padding-bottom: 0; }

  /* footer: brand, then each column of links, then the email box over its button */
  .ftp__grid { grid-template-columns: 1fr; gap: 36px; }
  .ftp__form fieldset, .ftp__row { flex-direction: column; box-shadow: none; gap: 10px; }
  .ftp__input { min-height: 52px; box-shadow: inset 0 0 0 1.5px rgba(225, 221, 200, .3); }
  .ftp__go { min-height: 52px; border-left: 0; box-shadow: inset 0 0 0 1.5px rgba(225, 221, 200, .3); }

  /* home · what you get: the nine cards one under the other (no swipe row) */
  .hx__track { display: grid; grid-template-columns: 1fr; gap: 12px; overflow: visible; scroll-snap-type: none; }
  .hx__c { width: auto; aspect-ratio: 3 / 2; }
  .hx__rail { display: none; }

  /* home · past speakers: one under the other, the face kept in the crop */
  .fx-row.spx { display: grid; grid-template-columns: 1fr; gap: 32px; overflow: visible; scroll-snap-type: none; margin-inline: 0; padding-inline: 0; }
  .spx .fx, .spx .fx.is-open ~ .fx { flex: none; }
  .spx .fx picture { aspect-ratio: 4 / 3; }
  .spx .fx__ph, .spx .fx.is-open .fx__ph { object-position: 50% 22%; }

  /* membership · what the year includes: one under the other (no swipe row) */
  .gx__list { display: grid; grid-template-columns: 1fr; gap: 36px; overflow: visible; scroll-snap-type: none; }
  .gx__item { flex: none; }
  .gx__ph { aspect-ratio: 16 / 9; margin-bottom: 16px; }
  .gx__rail { display: none; }

  /* about · the founders, and the three chapter photos */
  .duo { grid-template-columns: 1fr; gap: 32px; }
  .duo__ph { height: min(108vw, 440px); }
  .ch__trio { grid-template-columns: 1fr; }
  .ch__trio .frame, .ch__trio .frame:first-child { grid-column: auto; aspect-ratio: 3 / 2; }

  /* partner with us · the photo strip inside the margins, and the partners already with us in a column */
  .pw-strip__row { grid-template-columns: 1fr; gap: 12px; padding: 12px var(--m) 0; }
  .pw-strip__row .frame { height: auto; aspect-ratio: 16 / 9; }
  .pw-with__marquee:not(.is-marquee) .pw-with__row { flex-direction: column; align-items: flex-start; gap: 20px; }   /* without motion: one under the other */

  /* our partners · a card's links one under the other */
  .pc__links { flex-direction: column; align-items: flex-start; gap: 4px; }
  .pc__links:has(.pc__perk) { align-items: stretch; gap: 10px; }
  .pc__links .pc__perk + .link { align-self: flex-start; }

  /* retreats · the two prices one under the other */
  .rt-prices { grid-template-columns: 1fr; }

  /* ---------- edges: 16px or more ---------- */
  .aply__card { margin-inline: calc(var(--m) * -1 + 16px); }
}
