/*
 * Phones: shorter pages. Card grids that stack into long columns become rows the visitor swipes
 * sideways (the next card peeks in at the edge to show there is more), the team shows two people
 * per row, and long reference text folds into a "More" section (details.phone-more, closed on
 * phones by scripts/main.js; on larger screens it is always open and its summary is hidden).
 */
@media (max-width: 720px) {
  .industry-grid, .case-grid, .example-grid, .icon-card-grid, .process, .approach, .pillars, .question-groups, .client-groups, .challenge-grid, .tier-grid, .signal-grid {
    display: flex;
    gap: 14px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 2px var(--gutter) 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
  }
  .industry-grid > *, .case-grid > *, .example-grid > *, .icon-card-grid > *, .process > *, .approach > *, .pillars > *, .question-groups > *, .client-groups > *, .challenge-grid > *, .tier-grid > *, .signal-grid > * { flex: 0 0 84%; scroll-snap-align: start; }

  /* The five-step approach: each step becomes a card in the row. */
  .approach { border-top: 0; }
  .approach__step { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); }

  .team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .team-member { padding: 18px 10px 16px; }
  .team-member img { width: 84px; height: 84px; }
  .team-member h4 { margin-top: 12px; font-size: var(--text-base); }
  .team-member__role, .team-member__focus { font-size: var(--text-xs); }
}

.phone-more > summary { display: none; }
@media (max-width: 720px) {
  .phone-more > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; margin-top: 24px; padding: 12px 16px; border: 1px solid var(--input); border-radius: var(--radius-sm); font-weight: 700; color: var(--primary); cursor: pointer; list-style: none; }
  .phone-more > summary::-webkit-details-marker { display: none; }
  .phone-more > summary::after { content: '+'; font-size: var(--text-xl); line-height: 1; }
  .phone-more[open] > summary::after { content: '−'; }
  .phone-more--on-dark > summary { border-color: var(--line-on-brand); color: var(--on-brand); }
  .phone-more[open] > summary { margin-bottom: 16px; }
  /* The summary already says "Why not just ask AI?", so the heading inside is not repeated. */
  .phone-more .engine-ai .statement { display: none; }
}
