/* ==========================================================================
   FEATURES on phones (< 640px): layout J, tilted tiles. One card per row, image beside the text,
   sides alternate; the image tile pokes out of its card and is tilted a few degrees.
   Wider screens keep the grid / bento from style.css (nothing here applies).
   Backups of the other layouts (C zigzag, I editorial): design-backups/features/ at the repo root.
   ========================================================================== */
@media (max-width: 639px) {
  #features { overflow-x: clip; } /* tilted tiles may poke out; never cause sideways scroll */
  #features .feature-card:hover { transform: none; }
  #features .features-grid { gap: 20px; padding-top: 6px; }
  #features .feature-card { flex-direction: row; align-items: center; gap: 0; margin-left: 14px; padding: 12px 12px 12px 0; border-radius: 22px; overflow: visible; }
  #features .feature-card:nth-child(even) { flex-direction: row-reverse; margin: 0 14px 0 0; padding: 12px 0 12px 12px; }
  #features .feature-card__img {
    flex: 0 0 42%; width: 42%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 42%;
    margin-left: -14px; border-radius: 18px; clip-path: none; transform: rotate(-3deg);
    box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(190, 188, 255, 0.28);
  }
  #features .feature-card:nth-child(even) .feature-card__img { margin: 0 -14px 0 0; transform: rotate(3deg); }
  #features .feature-card__body { flex: 1 1 auto; min-width: 0; gap: 6px; padding: 4px 2px 4px 14px; }
  #features .feature-card:nth-child(even) .feature-card__body { padding: 4px 14px 4px 2px; }
  #features .feature-card__title { font-size: 16.5px; line-height: 1.2; letter-spacing: -0.02em; }
  #features .feature-card__desc { font-size: 13px; line-height: 1.45; }

  #features .features-footnote { text-align: left; }
}
