/* =========================================================
   MICRON — breakpoint overrides (min-width, mobile first)
   ========================================================= */

/* ---------- sm ≥ 640 ---------- */
@media (min-width: 640px) {
  .container { max-width: 640px; }
  .contact__title { font-size: 3rem; line-height: 1; }
  .contact__form-wrap { padding: 40px 0; }
  .contact-form { padding: 24px; }
  .contact-form__row--names { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- md ≥ 768 ---------- */
@media (min-width: 768px) {
  .container { max-width: 768px; }
  .businesses__item { width: 160px; height: 160px; }
  .contact-form__row--phone { grid-template-columns: repeat(3, 1fr); }
  .contact-form__row--phone .field--tel { grid-column: span 2 / span 2; }
}

/* ---------- lg ≥ 1024 ---------- */
@media (min-width: 1024px) {
  .container { max-width: 1024px; }

  /* Header + menu */
  .site-header__bar { padding: 20px 40px; }
  .menu-panel { width: 30%; padding: 40px 0; }
  .menu-panel__title { font-size: 1rem; line-height: 1.5rem; }
  .menu-panel__link { font-size: 1.5rem; line-height: 2rem; }
  .menu-panel__copy { font-size: 1rem; line-height: 1.5rem; }

  /* Footer */
  .site-footer .container { padding: 0; }
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
  .footer-brand { align-items: flex-start; }
  .footer-brand img { width: 300px; }
  .footer-quick { margin: 0 auto; }
  .footer-contact { display: block; }
  .footer-social { margin-left: 40px; text-align: left; }
  .footer-social__label { margin-bottom: 28px; }
  .footer-bottom { padding: 24px 40px 0; font-size: 16px; line-height: 1.5rem; flex-direction: row; justify-content: space-between; }
  .footer-bottom__links { gap: 40px; }

  /* Home */
  .panel--hero video { position: relative; }
  .panel--tagline-mobile { display: none; }
  .panel--tagline { display: flex; position: sticky; top: 0; height: 50vh; background: var(--c-white); }
  .panel--tagline img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
  .panel--businesses { height: 60vh; }
  .businesses { display: grid; grid-template-columns: 1fr; gap: 24px; }
  .businesses__title { font-size: 1.5rem; line-height: 2rem; padding-bottom: 0; }
  .businesses__list { flex-wrap: nowrap; }
  .businesses__item { width: 240px; height: 240px; padding: 20px; margin-right: 20px; }

  /* Projects page */
  .projects-banner { margin-top: 80px; }
  .projects-wellbeing { position: sticky; top: 0; }
  .project-card__media { height: 700px; }
  .project-card__overlay { padding: 40px; }
  .project-card__title { font-size: 2.25rem; line-height: 2.5rem; }
  .project-card__location { font-size: 1.25rem; line-height: 1.75rem; margin-top: 20px; }
  .project-card__toggle { font-size: 1.125rem; line-height: 1.75rem; }
  .project-details__inner { padding-left: 128px; padding-right: 128px; }
  .project-details__inner > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .project-details__heading { font-size: 1.875rem; line-height: 2.25rem; margin-top: 80px; }
  .project-details__text { font-size: 0.875rem; line-height: 1.25rem; }
  .project-details__category { font-size: 0.875rem; line-height: 1.25rem; }
  .project-details__map { padding: 12px; margin-top: 20px; }
  .project-stats { position: relative; left: 80px; width: 350px; margin-top: 56px; }
  .project-stats dl { padding-top: 40px; padding-bottom: 40px; }
  .project-stats dt { font-size: 1.125rem; line-height: 1.75rem; }
  .project-stats dd { font-size: 1.5rem; line-height: 2rem; }

  /* Legacy */
  .legacy-since { padding-bottom: 96px; }
  .founders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .founders__photo img { width: 700px; height: 700px; }
  .founders__text { margin-top: 80px; }
  .founders__heading { padding: 20px 0; }
  .vm { margin-bottom: 40px; padding: 40px 0; }
  .vm__item { padding: 40px 208px; }
  .vm__bar--v { left: -48px; }
  .vm__title { font-size: 3.75rem; line-height: 1; }
  .vm__item.is-active .vm__bar--h { width: 40px; }
  .vm__item.is-active .vm__bar--v { width: 32px; }

  /* Contact */
  .contact { padding: 40px; }
  .contact__inner { margin-top: 80px; max-width: 80rem; }
  .contact__title { letter-spacing: 12px; }
  .contact__form-wrap { padding: 20px 0; }

  /* Legal */
  .legal-crumbs { margin: 140px 80px 0; }
  .legal { margin: 0 80px; }
  .legal__title { margin: 40px 0; }
  .legal__lead, .legal__sub, .legal p { margin-bottom: 40px; }
  .legal p { font-size: 16px; }
}

/* ---------- xl ≥ 1280 ---------- */
@media (min-width: 1280px) {
  .container { max-width: 1280px; }
  .project-details__heading { font-size: 2.25rem; line-height: 2.5rem; }
  .project-details__text { font-size: 1.125rem; line-height: 1.75rem; }
  .project-details__category, .project-details__map { font-size: 1.25rem; line-height: 1.75rem; }
  .project-stats { left: 160px; width: 440px; }
  .project-stats dt { font-size: 1.5rem; line-height: 2rem; }
}

/* ---------- 2xl ≥ 1536 ---------- */
@media (min-width: 1536px) {
  .container { max-width: 1536px; padding-left: 40px; padding-right: 40px; }
  .site-footer .container { padding-left: 40px; padding-right: 40px; }
}
