/* Mobile Home overrides. Loaded after the main stylesheets by design. */
@media (max-width: 620px) {
  body {
    overflow-x: hidden;
  }

  .hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 34dvh minmax(0, 1fr) !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    padding: 64px 0 0 !important;
    overflow: hidden !important;
  }

  .hero > .section-name {
    display: none !important;
  }

  .hero-portrait,
  .hero-copy,
  .hero-utility-links {
    grid-column: 1 !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .hero-portrait {
    position: relative !important;
    grid-row: 1 !important;
    width: 100% !important;
    height: 34dvh !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  .hero-portrait img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 5% !important;
    transform: none !important;
  }

  .portrait-caption {
    right: 12px !important;
    bottom: 10px !important;
    left: 12px !important;
    gap: 2px !important;
    padding: 8px 10px !important;
  }

  .portrait-caption span {
    font-size: .92rem !important;
  }

  .portrait-caption strong {
    font-size: .48rem !important;
    letter-spacing: .1em !important;
  }

  .hero-copy {
    display: flex !important;
    grid-row: 2 !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 14px 16px 76px !important;
    overflow: hidden !important;
  }

  .hero-copy > * {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .scene-label {
    margin-bottom: 5px !important;
    font-size: .53rem !important;
    letter-spacing: .13em !important;
  }

  .hero-slogan {
    gap: 2px !important;
    margin-bottom: 8px !important;
  }

  .hero-slogan .slogan-support {
    font-size: .72rem !important;
    line-height: 1.24 !important;
  }

  .hero-slogan .slogan-focus {
    font-size: clamp(2.08rem, 10.6vw, 2.9rem) !important;
    line-height: .9 !important;
  }

  .hero-summary {
    margin-bottom: 0 !important;
    font-size: .73rem !important;
    line-height: 1.32 !important;
  }

  .hero-summary p {
    margin: 0 0 4px !important;
  }

  .hero-summary p:last-child {
    margin-bottom: 0 !important;
  }

  .hero-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 7px !important;
    margin-top: 10px !important;
  }

  .hero-actions .button {
    justify-content: center !important;
    width: 100% !important;
    min-height: 36px !important;
    padding: 7px 8px !important;
    font-size: .54rem !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }

  .hero-meta {
    gap: 4px 10px !important;
    margin-top: 9px !important;
    font-size: .48rem !important;
    letter-spacing: .07em !important;
    line-height: 1.3 !important;
  }

  .hero-utility-links {
    right: 16px !important;
    bottom: max(9px, env(safe-area-inset-bottom)) !important;
    left: 16px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 6px 10px !important;
    max-width: none !important;
    padding-top: 7px !important;
    border-top: 1px solid rgba(23, 71, 58, .2) !important;
  }

  .hero-social-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
    min-width: 0 !important;
  }

  .hero-social-actions a,
  .hero-social-actions button {
    gap: 4px !important;
    min-width: 0 !important;
    min-height: 27px !important;
    padding: 3px 5px !important;
    overflow: hidden !important;
    font-size: .45rem !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }

  .hero-social-actions span {
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px !important;
    font-size: .43rem !important;
  }

  .hero-firm-link {
    align-self: center !important;
    font-size: .46rem !important;
    letter-spacing: .05em !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 390px), (max-width: 620px) and (max-height: 720px) {
  .hero {
    grid-template-rows: 31dvh minmax(0, 1fr) !important;
  }

  .hero-portrait {
    height: 31dvh !important;
  }

  .hero-copy {
    padding-top: 10px !important;
  }

  .hero-slogan .slogan-focus {
    font-size: clamp(1.88rem, 9.8vw, 2.4rem) !important;
  }

  .hero-summary {
    font-size: .68rem !important;
    line-height: 1.26 !important;
  }

  .hero-meta {
    margin-top: 6px !important;
  }
}
