/* ==========================================================================
   LEPTIR — Responsive. Mobile-first overrides layer down from the base,
   which is written for small screens where noted.
   ========================================================================== */

@media (max-width: 1080px) {
  .ep3 { grid-template-columns: repeat(2, 1fr); }
  .ep3__cell:nth-child(2) { border-right: 0; }
  .ep3__cell:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .opener { grid-template-columns: 1fr; align-items: start; }
  .showcase { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow__node { padding-right: 0; }
  .road { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; }
  .eco__item { grid-template-columns: 2.75rem minmax(0, 1fr); grid-template-areas: "g n" ". s" ". t"; row-gap: 0.4rem; }
  .eco__glyph { grid-area: g; width: 32px; height: 32px; }
  .eco__name { grid-area: n; }
  .eco__say { grid-area: s; }
  .eco__state { grid-area: t; text-align: left; }
}

@media (max-width: 720px) {
  .contrast { grid-template-columns: 1fr; gap: var(--sp-5); }
  .article-row { grid-template-columns: 1fr; gap: 0.3rem; }
  .hero { min-height: 88svh; padding-top: 7.5rem; align-items: flex-start; }
  .hero__sub { font-size: var(--step-0); }
  .cookiebar { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 520px) {
  .ep3 { grid-template-columns: 1fr; }
  .ep3__cell { border-right: 0; border-bottom: 1px solid var(--line-soft); padding-right: 0; }
  .steps { grid-template-columns: 1fr; }
  .theme-switch { display: none; }
}

/* Touch targets */
@media (pointer: coarse) {
  .nav__link, .footer a, .drawer a { min-height: 44px; display: flex; align-items: center; }
  .btn { min-height: 46px; }
}

/* Reduced motion — parallax and ambient animation are removed, hierarchy stays */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .field__layer { transform: none !important; }
}

@media print {
  .masthead, .drawer, .cookiebar, .field { display: none !important; }
  body { background: #fff; color: #000; }
}
