/* Every breakpoint and reduced-motion override. Loads last. */

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .hero__device { right: 4vw; opacity: .55; }
  .readout { display: none; }
  .index__list a { grid-template-columns: 50px 1fr 40px; }
  .ix-desc,
  .ix-plat { display: none; }
}
@media (max-width: 860px) {
  .hero__device { right: 50%; transform: translate(50%, -46%); opacity: .4; }
  .index__head,
  .g-comm__head { grid-template-columns: 1fr; }
  .index__head p,
  .g-comm__head p { justify-self: start; }
  .g-feat { grid-template-columns: 1fr; }
  .g-feat__visual { position: sticky; top: calc(var(--nav-h) + 4px); order: -1; z-index: 2; background: #eef2f8; padding: 6px 0 14px; }
  .gemma__sticky::after { background: linear-gradient(0deg, rgba(6, 7, 10, .95) 0%, rgba(6, 7, 10, .8) 48%, rgba(6, 7, 10, 0) 64%); }
  .mx-na { font-size: 12px; padding: 8px 10px; }
  .g-play__hint { display: none; }
  .mx-dl { padding: 8px 12px; font-size: 13px; white-space: nowrap; gap: 0; }
  .mx-dl i { display: none; }
  .g-tile { max-width: 340px; margin: 0 auto; }
  .g-step { min-height: 60vh; }
  .f-hero { grid-template-columns: 1fr; }
  .f-hero__viz { order: 0; width: 100%; max-width: 560px; margin-right: 0; justify-self: center; aspect-ratio: 1.05; }
  .f-card { grid-template-columns: 1fr; position: relative; top: 0; }
  .fm-head { grid-template-columns: 1fr; }
  .fm-pin { height: 340vh; }
  .fm-copy { top: auto; bottom: 4vh; right: var(--pad); width: auto; transform: none; }
  .fm-tabs { margin-bottom: 18px; }
  .fm-tab b { font-size: 18px; margin-bottom: 2px; }
  .fm-act h3 { font-size: 26px; margin: 12px 0 10px; }
  .fm-act p { font-size: 15px; margin: 0; }
  .gemma__cols { grid-template-columns: 1fr; }
  .mx-row { grid-template-columns: 1fr 1fr 1fr; }
  .mx-row > :first-child { grid-column: 1 / -1; }
  .mx-row--head > :first-child { display: none; }
  .e-h { height: auto; }
  .e-h__sticky { position: relative; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px 0 40px; }
  .e-h__track { transform: none !important; }
  .e-panel { scroll-snap-align: center; }
  .e-media--phone { height: 64vh; padding: 22px; }
  .e-media--wide { height: auto; width: 84vw; padding: 20px; }
  /* Nav: the long handwritten wordmark needs the full bar, so drop the CTA. */
  .nav__cta { display: none; }
  /* Hero: no app pills; icons + title + subtitle sit at the bottom, above the scroll cue. */
  .hero { align-items: flex-end; }
  .hero__inner { padding-bottom: 112px; }
  .hero__sub { margin-bottom: 0; }
  .hero__apps { display: none; }
  /* Gemma: copy closer to the bottom edge. */
  .gemma__copy { bottom: 32px; }
  /* Get the apps: breathing room between the download buttons and the row divider. */
  .mx-row:not(.mx-row--head) { padding-bottom: 20px; }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { min-height: 0; }
  .polish__head { flex-direction: column; align-items: flex-start; }
  .gemma__desc { font-size: 13px; line-height: 1.35; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
