/* Styles for the mobile and tablet layouts. */
@media screen and (max-width: 1024px) {
    body {
        font-size: 15px;
        line-height: 1.75;
    }

    /* Keep section labels, counters and other display typography. */
    #page main :is(p, dd, blockquote):not(:where(
        [class*="eyebrow"], [class*="label"], [class*="number"],
        [class*="__en"], [class*="__value"], [class*="__count"],
        .works-archive-filter__heading
    )),
    #page :is(
        .front-concept__text, .front-industry__heading-content,
        .works-single-story__body, .information-single__body, .gilp-rich,
        .contact-consent, .front-contact__description, .front-contact__lead
    ) {
        font-size: 15px;
        line-height: 1.75;
        overflow-wrap: anywhere;
    }

    #page main :is(h1, h2, h3, dt),
    #page :is(.site-footer__company-info, .site-footer__nav-list a) {
        overflow-wrap: anywhere;
    }

    /* Embedded content can have widths set by the WordPress editor. */
    #page :is(.works-single-story__body, .information-single__body, .gilp-rich) :is(img, video) {
        max-inline-size: 100%;
        height: auto;
    }

    #page :is(.works-single-story__body, .information-single__body, .gilp-rich) iframe {
        max-inline-size: 100%;
    }

    #page :is(.works-single-story__body, .information-single__body, .gilp-rich) :is(table, pre),
    #page .wp-block-table {
        display: block;
        max-inline-size: 100%;
        overflow-x: auto;
    }

    /* Match the drawer to the existing desktop dropdown breakpoint. */
    #page .site-header__nav {
        display: none;
    }

    #page .site-header__menu-button {
        display: block;
    }

    #page .site-header__sp-nav {
        overscroll-behavior-y: contain;
        padding-bottom: max(40px, env(safe-area-inset-bottom));
    }

    #page .site-header__sp-menu li > a {
        min-height: 48px;
        font-size: 15px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    #page .site-header__sp-menu .menu-item-has-children > a::after {
        content: none;
    }

    /* Allow longer CTA labels, form options and archive filters to fit. */
    #page :is(.hero-button, .front-contact__action, .front-contact__sub-button,
        .industry-contact__button, .gilp-button, .works-archive-filter__button) {
        min-inline-size: 0;
        max-inline-size: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    #page .works-archive-filter__button {
        min-height: 44px;
    }

    #page .contact-form :is(input:not([type="checkbox"], [type="radio"]), select, textarea) {
        max-inline-size: 100%;
        font-size: 16px;
    }

    #page .contact-consent label {
        min-height: 44px;
        align-items: flex-start;
        text-align: start;
    }

    #page .gilp-mv__button {
        font-size: 15px;
    }

    #page .front-industry-card__link {
        min-inline-size: 0;
        padding-inline: 10px;
    }

    #page .front-industry-card__title {
        font-size: 15px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    #page .front-industry-card__subtitle {
        overflow-wrap: anywhere;
    }

    #page .site-footer__nav-list a {
        display: inline-block;
        padding-block: 5px;
        font-size: 15px;
        line-height: 1.6;
    }

    #page .site-footer__company-info {
        font-size: 15px;
        line-height: 1.7;
    }

    #page .site-footer__navigation {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
}

@media screen and (width > 900px) and (max-width: 1024px) {
    #page .site-header.is-scrolled {
        background: var(--color-white);
    }

    #page .site-header__inner {
        height: 80px;
    }

    #page .site-header__inner::before {
        display: none;
    }

    #page .site-header.is-scrolled .site-header__logo {
        transform: none;
    }
}

@media screen and (width > 767px) and (max-width: 1024px) {
    #page .front-industry__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #page .front-news-contact {
        padding-top: 80px;
    }
}

@media screen and (max-width: 767px) {
    #page :is(.hero__title, .gilp-mv h1) {
        text-wrap: balance;
    }

    #page .hero__title br {
        display: initial;
    }

    #page .hero-button {
        gap: 8px;
        padding-inline: 10px;
        font-size: 13px;
        line-height: 1.45;
    }

    /* Reflow copy whose line breaks were set for the desktop measure. */
    #page :is(.hero__description, .front-concept__text, .front-service__lead,
        .front-strength__lead, .front-contact__lead, .front-contact__description,
        .contact-note) br {
        display: none;
    }

    #page .front-news-contact {
        padding-top: 55px;
    }

    #page .site-footer__service-columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    #page .gilp-mv__points {
        grid-template-columns: minmax(0, 1fr);
    }

    #page .gilp-mv__points li {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        aspect-ratio: auto;
        min-height: 44px;
        padding: 10px 14px;
        border-radius: 24px;
        text-align: start;
        font-size: 15px;
        line-height: 1.7;
        overflow-wrap: anywhere;
    }

    #page .gilp-mv__number {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    #page .gilp-mv__actions {
        grid-template-columns: minmax(0, 1fr);
    }

    #page .contact-card {
        padding-inline: clamp(14px, 4vw, 24px);
    }
}

@media screen and (max-width: 1024px) {
    #page .company-hero__heading > .company-hero__title {
        font-size: clamp(46px, 12vw, 84px);
        line-height: 1;
    }
	.philosophy-vision::before {
		display:none;
	}
}