/* ===== Phone layer =====
   Loaded last on every page. Desktop is untouched: every rule sits inside the
   phone breakpoint. The idea: one idea per screen. Peer items become swipe rails
   with a visible peek, detail sits behind a tap, and vertical air is tighter. */

@media (max-width: 640px) {
  :root { --section: 64px; }

  /* --- Swipe rail: shared by every list of peer items --- */
  .m-rail {
    display: flex !important;
    gap: 10px !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter));
    padding: 2px var(--gutter) 4px;
    scroll-padding-inline: var(--gutter);
    border-top: 0 !important;
  }
  .m-rail::-webkit-scrollbar { display: none; }
  .m-rail > * { flex: 0 0 78%; scroll-snap-align: start; }
  .m-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
  .m-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--rule); transition: width .25s ease, background .25s ease; }
  .m-dots i.on { width: 18px; border-radius: 3px; background: var(--c, var(--ink)); }

  /* --- Practice hero: less dead space above the headline --- */
  .practice-hero .hero__title { margin-top: 56px; }
  .practice-hero { padding-bottom: 24px; }
  .practice-hero .lead { font-size: 16px; line-height: 1.5; }

  /* --- "In short": kept for search and AI engines, folded to three lines --- */
  .practice-short { margin-bottom: 8px; font-size: 15px; line-height: 23px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .practice-short.is-open { display: block; }
  .m-more { margin: 0 0 36px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--c, var(--ink)); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

  /* --- Numbers we move: a swipe rail of compact cards --- */
  .metrics.m-rail > .metric { flex-basis: 70%; padding: 20px 18px !important; border: 1px solid var(--line) !important; border-radius: 16px; background: #fff; }
  .practice-metrics--words .metric__name { font-size: 21px !important; line-height: 1.15; }
  .metrics.m-rail .metric__def { margin-top: 8px; font-size: 14px; line-height: 1.4; }

  /* --- "Sound familiar" / "Where revenue leaks": quote cards --- */
  .familiar { gap: 20px; }
  ul.familiar__list.m-rail > li { flex-basis: 72%; padding: 18px !important; border: 1px solid var(--line) !important; border-radius: 16px; background: #fff; font-size: 17px; line-height: 1.35; display: block; min-height: 0; }
  ul.familiar__list.m-rail .q { display: block; font-size: 30px; line-height: .6; margin-bottom: 6px; }

  /* Numbered step lists stay vertical, just tighter */
  ol.familiar__list li { padding: 12px 0 !important; font-size: 16px !important; line-height: 1.35 !important; }

  /* --- Journey: a horizontal track you can swipe --- */
  .journey { padding: 20px 0 !important; overflow: hidden; }
  .journey__track { display: flex !important; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 0 18px; gap: 0; }
  .journey__track::-webkit-scrollbar { display: none; }
  .journey__track::before { display: none; }
  .journey__track .step { flex: 0 0 112px; display: block; text-align: left; padding: 0 12px 0 0; position: relative; scroll-snap-align: start; }
  .journey__track .step::after { content: ""; position: absolute; left: 30px; right: 0; top: 11px; height: 2px; background: var(--t, var(--convert-tint)); }
  .journey__track .step:last-child::after { display: none; }
  .journey__track .step__node { margin: 0; }
  .journey__track .step__name { margin-top: 12px; font-size: 15px; line-height: 1.25; }
  .journey__track .step__note { font-size: 12.5px; line-height: 1.3; }

  /* --- Capabilities: names first, the one-liner opens on tap --- */
  .included.m-acc .offering { padding: 14px 0 !important; cursor: pointer; grid-template-columns: 16px 1fr 20px !important; }
  .included.m-acc .offering .h4, .included.m-acc .offering h4 { font-size: 17px !important; line-height: 23px !important; grid-column: 2; }
  .included.m-acc .offering::after { content: "+"; grid-column: 3; grid-row: 1; justify-self: end; font-size: 20px; line-height: 22px; color: var(--muted); transition: transform .2s ease; }
  .included.m-acc .offering.is-open::after { transform: rotate(45deg); }
  .included.m-acc .offering p { display: none; grid-column: 2 / 4; }
  .included.m-acc .offering.is-open p { display: block; }
  .head-row { margin-bottom: 20px; }

  /* --- AI + people: quieter --- */
  .aip { gap: 14px; }
  .aip p { font-size: 17px; line-height: 1.5; }

  /* --- Start here --- */
  .start__l, .start__r { padding: 22px 18px; }
  .start__l .start__title { padding-top: 24px; }
  .start__get li { font-size: 15px; padding-block: 10px; }

  /* --- Proof card --- */
  .case-wide .media__visual { min-height: 180px; }

  /* ===== Homepage ===== */

  /* Results strip: a 2x2 that fits one screen */
  .concept-b .strip { margin-top: 12px; }

  /* What we do: one panel per swipe */
  .sw.m-rail > .sw__row { flex-basis: 86%; padding: 20px 16px !important; gap: 18px !important; }
  .sw__word { font-size: 44px !important; }
  .concept-b .sw__copy h3 { font-size: 20px; margin: 12px 0 6px; }
  .sw__copy p { font-size: 15px; line-height: 1.45; }
  .sw .mock { padding: 12px !important; }

  /* Team: portraits on one swipeable row */
  .team.m-rail > .person, .about-team.m-rail > .person { flex-basis: 40%; }
  .team.m-rail .person__name { font-size: 15px; margin-top: 8px; }
  .team.m-rail .person__role { font-size: 12.5px; }
  .ag2 { padding: 16px; gap: 14px; margin-top: 18px; }
  .ag2__field { display: none !important; }
  .ag2__tools ul { gap: 8px 12px; }

  /* ===== About ===== */
  .about-founder__photo { max-width: 62%; }

  /* ===== Enable / Operate ===== */
  .en-stats.m-rail > li { flex-basis: 70%; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
  .en-formats.m-rail > * { flex-basis: 84%; }
  .en-collage { aspect-ratio: 16 / 10; gap: 8px; }

  /* ===== Footer: one screen, not two ===== */
  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 12px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col li { min-height: 44px; }
  .footer__col a, .footer__col li { font-size: 14px; }
  .footer__built { display: none; }

  /* ===== Tap targets: 44px for footer links and inline text CTAs (20 Oct 2026) ===== */
  .footer__col a, .footer__legal a, .footer__email { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__col ul { gap: 0; }
  .link, .lv__more, .pv-more, .cj__foot a, .ck-link, .contact-direct__email, .contact-direct__social a, .lm__alt .link, .st__alt .link {
    display: inline-flex; align-items: center; min-height: 44px; padding-block: 10px;
  }
  .lm__consent input { flex: none; width: 20px; height: 20px; margin-top: 0; }
}

/* Phone-only helpers are invisible on larger screens */
@media (min-width: 641px) { .m-dots, .m-more { display: none; } }
