/* Home page only; mobile styles follow the md breakpoint. */
@font-face {
  font-family: "Mali Punchline";
  src: url("../fonts/Mali-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@media (width < 48rem) {
  #main-content > section {
    padding-block: 2rem;
  }
  #main-content > #hero {
    padding-top: 1.5rem;
  }
  #stats,
  #support {
    background-color: #fff7ed;
  }
  #main-content h2 {
    font-size: clamp(1.25rem, 5.5vw, 1.625rem);
    line-height: 1.4;
    text-wrap: pretty;
  }
  #main-content section > div > p.uppercase,
  #main-content > section > div > h2 + p,
  #hero > div > div > p.uppercase,
  #hero aside > div > span,
  #seo-content {
    display: none;
  }
  #hero .hero-heading {
    position: relative;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 1.5rem 0.75rem 1rem;
    font-size: clamp(1.375rem, 6vw, 2rem);
    font-weight: 600 !important;
    line-height: 1.65;
    letter-spacing: -0.025em;
    text-align: center;
    text-shadow: none;
  }
  #hero .hero-heading,
  #hero .hero-heading span {
    font-family: "Mali Punchline", "Anuphan", sans-serif;
  }
  #hero .hero-heading::before,
  #hero .hero-heading::after {
    position: absolute;
    color: #1261a6;
    font-family: Georgia, serif;
    font-size: 3rem;
    font-weight: 400;
    line-height: 1;
    opacity: 0.4;
  }
  #hero .hero-heading::before {
    content: "“";
    top: 0;
    left: 0.25rem;
  }
  #hero .hero-heading::after {
    content: "”";
    right: 0.25rem;
    bottom: -0.375rem;
  }
  #hero .hero-heading > span:last-child {
    width: fit-content;
    margin: 0.25rem auto 0;
    padding-inline: 0.25rem;
    background: linear-gradient(transparent 78%, #d97706 78%, #d97706 94%, transparent 94%);
  }
  #hero .hero-heading .hero-mlm {
    display: none;
  }
  #hero > div > div:first-child > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  #hero > div > div:first-child > div > span {
    align-self: center;
    width: min(16rem, 80vw);
    height: 9rem;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  #hero > div > div:first-child img {
    width: 100%;
    height: auto;
    align-self: start;
    transform: translateY(-18%);
  }
  #hero .hero-content-grid {
    margin-top: 1.25rem;
    gap: 1rem;
  }
  #hero .hero-content-grid p,
  #main-content section > div > p:not(.uppercase) {
    font-size: 1rem;
    line-height: 1.75;
  }
  #hero .hero-content-grid h2 {
    margin-top: 1rem;
    font-size: 1.125rem;
    line-height: 1.6;
  }
  #hero .hero-content-grid > div > div:last-child {
    display: none;
  }
  #hero aside {
    padding: 1rem;
    background: #1261a6;
    border-color: #0b5797;
    box-shadow: 0 12px 28px rgba(18, 97, 166, 0.2);
  }
  #hero aside p {
    margin-top: 0;
    color: #fff !important;
    text-shadow: none;
  }
  #hero aside strong {
    color: #fff;
  }
  #hero aside .grid {
    margin-top: 1rem;
    padding-top: 0.75rem;
    gap: 0.5rem;
    color: #e5f2ff;
    border-color: rgba(255, 255, 255, 0.3);
  }
  #main-content section > div > .grid,
  #faq > div > .divide-y,
  #showcase .carousel {
    margin-top: 1.25rem;
    gap: 0.75rem;
  }
  #main-content section > div > p:not(.uppercase) {
    margin-top: 0.75rem;
  }
  #portfolio > div > .grid > a,
  #why-us article,
  #support article,
  #showcase .carousel-slide {
    padding: 1rem;
  }
  #portfolio .grid > a > div:first-child {
    margin-bottom: 1rem;
  }
  #showcase .carousel-slide {
    gap: 1rem;
  }
  #showcase .banner-copy h3 {
    margin-top: 0.5rem;
    font-size: 1.0625rem;
  }
  #showcase .banner-copy p {
    margin-top: 0.5rem;
  }
  #showcase .carousel-dots {
    margin-top: 1rem;
  }
  #stats > div > .grid,
  #support > div > .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #why-us article,
  #support article {
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr);
    align-content: start;
    align-items: start;
    column-gap: 0.5rem;
    row-gap: 0.625rem;
    min-width: 0;
  }
  #support article {
    padding: 0.875rem 0.625rem;
  }
  #why-us article > span:first-child,
  #support article > span:first-child {
    width: 1.5rem;
    height: 1.5rem;
  }
  #main-content article [data-lucide],
  #portfolio .grid > a [data-lucide] {
    width: 0.875rem;
    height: 0.875rem;
  }
  #why-us article h3,
  #support article h3,
  #portfolio .grid > a h3 {
    margin-top: 0;
    font-size: 1rem;
    line-height: 1.5;
  }
  #support article h3 {
    font-size: 0.875rem;
  }
  #why-us article > p,
  #support article > p {
    grid-column: 1 / -1;
    margin-top: 0;
  }
  #support article > p {
    font-size: 0.8125rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }
  #stats article {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: center;
    column-gap: 0.375rem;
    min-width: 0;
    padding: 0.875rem 0.5rem;
  }
  #stats article > span:first-child {
    width: 1.5rem;
    height: 1.5rem;
  }
  #stats article > span:nth-child(2) {
    color: #d97706;
    margin-top: 0;
    font-size: clamp(1.25rem, 5vw, 1.625rem);
    line-height: 1.25;
  }
  #stats article > span:nth-child(3) {
    grid-column: 1 / -1;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    letter-spacing: 0;
  }
  #stats article > p {
    display: none;
  }
  #faq details {
    padding-block: 0.75rem;
  }
  #faq summary {
    gap: 1rem;
    font-size: 1rem;
  }
  #contact > div {
    padding: 1.25rem;
  }
  #contact a {
    margin-top: 1.25rem;
    padding-inline: 1rem;
  }
}
