/* Shared mobile layer. Loaded after page styles so it can avoid heavy overrides. */
@media (max-width: 768px) {
  .header {
    overflow: visible;
  }

  .header__container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    grid-template-columns: none;
    gap: 12px;
    min-height: 56px;
    height: auto;
    max-width: 100%;
    padding-top: 6px;
    padding-bottom: 0;
    row-gap: 6px;
  }

  .header__logo {
    min-width: 0;
  }

  .header__controls {
    order: 0;
    width: auto;
    margin-left: auto;
    margin-top: 0;
    justify-self: end;
    justify-content: flex-end;
    min-width: 0;
  }

  .header-mobile-link {
    display: none;
  }

  .header-phone,
  .u-header-phone {
    display: none;
  }

  .header__nav {
    order: 4;
    display: flex;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 4px 14px;
    overflow: visible;
    padding: 8px 0;
    border-top: 1px solid var(--ms-line-navy, rgba(255,255,255,0.10));
  }

  .header__nav::-webkit-scrollbar {
    display: none;
  }

  .header__link {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 26px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .hero,
  .hero__container,
  .hero-copy-narrow,
  .site-section,
  section,
  footer {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero__container,
  .hero-copy-narrow {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .hero__container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero__title,
  .section-title,
  .hero__sub,
  p,
  h1,
  h2,
  h3 {
    max-width: calc(100vw - 36px);
    overflow-wrap: anywhere;
  }

  .hero__sub {
    width: 100%;
    max-width: calc(100vw - 70px);
    white-space: normal;
  }

  .hero-actions,
  .hero__stats,
  .hero-stat-strip {
    width: 100%;
  }

  .hero__stats,
  .hero-stat-strip,
  .ms-hero__stats,
  .home-stats-grid {
    justify-content: flex-start;
    justify-items: start;
    text-align: left;
  }

  .hero-stat-strip,
  .ms-hero__stats {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hero__stat,
  .hero-stat-strip__item,
  .ms-hero__stat,
  .stat-box,
  .stat-mint,
  .stat-sand {
    text-align: left;
  }

  .hero-stat-strip__item {
    padding-left: 0;
    flex: 1 1 100%;
    width: 100%;
  }

  .ms-hero__stat {
    width: 100%;
  }

  .hero-stat-strip .stat-value,
  .hero-stat-strip .stat-value-sm,
  .ms-hero__stat-value {
    font-size: 36px;
    line-height: 1.05;
    letter-spacing: 0;
  }

  .hero-stat-strip .stat-label,
  .ms-hero__stat-label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 4px;
  }

  .ms-hero__stat-divider {
    display: none;
  }

  .site-footer__sections {
    display: none;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer__grid > div:nth-child(2),
  .site-footer__grid > div:nth-child(2) .site-footer__col,
  .site-footer__grid > div:nth-child(2) .site-footer__link {
    width: 100%;
  }

  .home-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    justify-items: stretch;
    gap: 12px;
  }

  .home-stats-grid .stat-box {
    min-height: 116px;
    height: 100%;
    display: flex;
    align-items: flex-start;
    padding: 18px 16px;
  }

  .home-stats-grid .stat-mint,
  .home-stats-grid .stat-sand {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .header__link {
    font-size: 9.5px;
  }

  .tb-steps__grid {
    grid-template-columns: 1fr;
  }

  .tb-step-card__num {
    font-size: 72px;
    margin-bottom: 14px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid > div {
    grid-column: span 1;
  }

  .hero-stat-strip__item {
    flex: 1 1 100%;
  }
}

@media (max-width: 420px) {
  .header__container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .header__logo img {
    height: 34px;
  }

  .header__controls {
    gap: 10px;
  }

  .header-whatsapp,
  .u-header-icon-link {
    width: 36px;
    height: 36px;
  }

  .hero__sub {
    font-size: 16px;
    line-height: 1.65;
  }
}
