:root {
    --responsive-gutter: clamp(1rem, 4vw, 4.5rem);
}

html {
    overflow-x: clip;
}

body {
    min-width: 20rem;
    overflow-x: clip;
}

body.mobile-navigation-open {
    overflow: hidden;
}

.responsive-nav {
    isolation: isolate;
}

.about-header {
    position: relative;
    z-index: 60;
    overflow: visible;
}

.about-header .responsive-nav {
    position: relative;
    z-index: 60;
    overflow: visible;
}

.service-icon-block img {
    width: 2.8rem;
    height: 2.8rem;
    object-fit: contain;
}

.service-card:hover .service-icon-block--custom,
.service-card:focus-within .service-icon-block--custom {
    background: #f2673d;
}

.service-detail-icon img {
    width: 2.15rem;
    height: 2.15rem;
    object-fit: contain;
}

.service-detail-card:hover .service-detail-icon--custom,
.service-detail-card:focus-within .service-detail-icon--custom {
    background: #f2673d;
}

.service-detail-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.service-detail-body {
    display: flex;
    flex-direction: column;
}

.service-card-link {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    border-radius: inherit;
    color: inherit;
    text-decoration: none;
    isolation: isolate;
}

.service-card-link:focus-visible {
    outline: 3px solid #f28a3d;
    outline-offset: -5px;
}

.service-card-cta {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: inherit;
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1;
}

.service-card-cta svg {
    width: 1.1rem;
    height: 1.1rem;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .22s ease;
}

.service-card:hover .service-card-cta svg,
.service-card:focus-within .service-card-cta svg {
    transform: translate(.18rem, -.18rem);
}

.service-card-partner-link {
    position: absolute;
    right: clamp(1.6rem, 2.45vw, 3rem);
    bottom: clamp(1.8rem, 2.8vw, 3rem);
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: inherit;
    font-size: .94rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
}

.service-card-partner-link svg {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .22s ease;
}

.service-card-partner-link:hover svg,
.service-card-partner-link:focus-visible svg {
    transform: translate(.18rem, -.18rem);
}

.service-detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .8rem 1.1rem;
    margin-top: auto;
    padding-top: 1.5rem;
}

.service-detail-actions .service-detail-link,
.service-detail-actions .service-detail-partner-link {
    margin-top: 0;
}

.process-step-grid span img {
    width: 1.8rem;
    height: 1.8rem;
    object-fit: contain;
}

.service-detail-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    min-height: 48px;
    margin-top: 1.5rem;
    border-radius: .7rem;
    padding: .82rem 1.2rem;
    background: #f2673d;
    color: white;
    font-size: .96rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 .65rem 1.4rem rgba(242, 103, 61, .2);
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.service-detail-link svg {
    width: 1.05rem;
    height: 1.05rem;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease;
}

.service-detail-link:hover,
.service-detail-link:focus-visible {
    background: #de5a28;
    box-shadow: 0 .9rem 1.8rem rgba(222, 90, 40, .27);
    transform: translateY(-.12rem);
}

.service-detail-link:hover svg,
.service-detail-link:focus-visible svg {
    transform: translate(.15rem, -.15rem);
}

.service-detail-link:focus-visible {
    outline: 3px solid rgba(242, 138, 61, .4);
    outline-offset: 3px;
}

.service-detail-partner-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 48px;
    margin-top: 1.5rem;
    color: #0d1111;
    font-size: .96rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
}

.service-detail-partner-link svg {
    width: 1.05rem;
    height: 1.05rem;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease;
}

.service-detail-partner-link:hover,
.service-detail-partner-link:focus-visible {
    color: #f2673d;
}

.service-detail-partner-link:hover svg,
.service-detail-partner-link:focus-visible svg {
    transform: translate(.15rem, -.15rem);
}

.responsive-nav__actions {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: clamp(.55rem, 1.4vw, 1.4rem);
}

.responsive-nav__phone {
    min-height: 44px;
}

.responsive-language__mobile-label,
.mobile-menu-toggle,
.mobile-navigation {
    display: none;
}

.responsive-language [data-language-panel][hidden],
.mobile-navigation[hidden] {
    display: none !important;
}

.responsive-language button,
.mobile-menu-toggle {
    min-width: 44px;
    min-height: 44px;
}

.responsive-language [data-language-panel] {
    display: grid;
}

.responsive-nav a:focus-visible,
.responsive-nav button:focus-visible,
.site-footer a:focus-visible,
.button-primary:focus-visible,
.about-slider-cta:focus-visible,
.watch-video-button:focus-visible {
    outline: 3px solid #f28a3d;
    outline-offset: 3px;
}

.site-footer a,
.footer-legal-links a {
    min-height: 32px;
}

.footer-links a,
.footer-legal-links a {
    display: inline-flex;
    align-items: center;
}

.footer-links {
    display: grid;
    justify-items: start;
}

.footer-links a {
    width: fit-content;
}

.socials {
    flex-wrap: wrap;
}

.socials a {
    flex: 0 0 3rem;
    margin-bottom: 0;
    overflow: hidden;
}

.socials a img {
    display: block;
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    margin: 0;
    aspect-ratio: 1;
    object-fit: contain;
}

.project-category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .7rem;
    width: min(100%, 76rem);
    margin: 0 auto clamp(2.5rem, 5vw, 4.5rem);
}

.project-category-filter a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid #d8d8d3;
    border-radius: 999px;
    padding: .65rem 1.1rem;
    background: white;
    color: #343839;
    font-size: .92rem;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.project-category-filter a:hover,
.project-category-filter a:focus-visible,
.project-category-filter a.is-active {
    border-color: #f2673d;
    background: #f2673d;
    color: white;
}

.window-project-card {
    display: block;
    text-decoration: none;
}

.window-project-details {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    width: fit-content;
    margin-top: 1.35rem;
    color: #f2673d;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    transition: color .22s ease, transform .22s ease;
}

.window-project-card:hover .window-project-details,
.window-project-card:focus-visible .window-project-details {
    color: #de5a28;
    transform: translateX(.12rem);
}

@media (max-width: 1180px) {
    .responsive-nav {
        position: relative;
        z-index: 60;
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 5.25rem;
        padding: .75rem var(--responsive-gutter);
    }

    .responsive-nav--overlay {
        position: absolute;
        background: linear-gradient(180deg, rgba(8, 10, 10, .72), rgba(8, 10, 10, 0));
    }

    .responsive-nav--solid {
        border-bottom: 1px solid rgba(13, 17, 17, .08);
        background: white;
    }

    .responsive-nav--solid.is-menu-open {
        color: white;
    }

    .responsive-nav--solid.is-menu-open .brand--image img {
        filter: brightness(0) invert(1);
    }

    .responsive-nav .brand {
        position: relative;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        width: fit-content;
        min-height: 44px;
    }

    .responsive-nav__actions {
        position: relative;
        z-index: 2;
    }

    .responsive-nav .brand--image img {
        max-width: min(180px, 42vw) !important;
        max-height: 52px !important;
    }

    .responsive-nav__desktop-links,
    .responsive-nav__phone {
        display: none !important;
    }

    .responsive-language__desktop-label {
        display: none;
    }

    .responsive-language__mobile-label {
        display: inline;
        font-weight: 500;
        letter-spacing: .04em;
    }

    .responsive-language button {
        justify-content: center;
        width: auto !important;
        height: 48px !important;
        min-height: 48px !important;
        border-radius: 999px;
        padding: 0 .9rem !important;
    }

    .responsive-language [data-language-panel] {
        top: calc(100% + .6rem);
        min-width: 9rem;
    }

    .mobile-menu-toggle {
        position: relative;
        display: grid;
        width: 48px;
        height: 48px;
        place-content: center;
        gap: 5px;
        border: 1px solid currentColor;
        border-radius: 50%;
        color: inherit;
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 19px;
        height: 1.5px;
        background: currentColor;
        transition: transform .2s ease, opacity .2s ease;
    }

    .is-menu-open .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    .is-menu-open .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .is-menu-open .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    .mobile-navigation {
        position: fixed;
        z-index: 1;
        inset: 0;
        display: grid;
        grid-template-rows: 1fr auto;
        overflow-y: auto;
        padding: clamp(7rem, 15vh, 9rem) var(--responsive-gutter) 2rem;
        background: #0d1111;
        color: white;
    }

    .mobile-navigation__links {
        display: grid;
        align-content: center;
        width: min(100%, 50rem);
        margin: 0 auto;
    }

    .mobile-navigation__links a {
        display: grid;
        grid-template-columns: 2.6rem minmax(0, 1fr);
        align-items: center;
        min-height: 4.2rem;
        border-bottom: 1px solid rgba(255, 255, 255, .14);
        color: white;
        font-size: clamp(1.65rem, 5.5vw, 3rem);
        line-height: 1;
        text-decoration: none;
    }

    .mobile-navigation__links a span {
        color: #f2673d;
        font-size: .72rem;
        letter-spacing: .08em;
    }

    .mobile-navigation__links a.is-active {
        color: rgba(255, 255, 255, .52);
    }

    .mobile-navigation__phone {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: min(100%, 28rem);
        min-height: 3.25rem;
        margin: 2rem auto 0;
        border-radius: 999px;
        background: #f2673d;
        color: white;
        text-decoration: none;
    }

    .site-footer a,
    .footer-legal-links a {
        min-height: 44px;
    }
}

@media (max-width: 820px) {
    .responsive-nav {
        min-height: 4.75rem;
        padding: .6rem 1rem;
    }

    .responsive-nav .brand--image img {
        max-width: min(145px, 34vw) !important;
        max-height: 44px !important;
    }

    .responsive-nav__actions {
        gap: .45rem;
    }

    .responsive-language button,
    .mobile-menu-toggle {
        width: 44px;
        height: 44px !important;
        min-height: 44px !important;
    }

    .responsive-language button {
        padding: 0 .72rem !important;
    }

    .project-category-filter {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        margin-bottom: 2.5rem;
        padding: 0 1rem .5rem;
        scroll-padding-inline: 1rem;
        scrollbar-width: thin;
    }

    .project-category-filter a {
        flex: 0 0 auto;
        max-width: 16rem;
    }

    .responsive-language button svg {
        display: none;
    }

    .site-header,
    .hero,
    .hero-media {
        min-height: max(43rem, 100svh);
    }

    .hero-media {
        height: max(43rem, 100svh);
    }

    .hero-content {
        top: 34%;
        transform: translateY(-10%);
    }

    .hero-content h1 {
        max-width: 22rem;
        font-size: clamp(2.8rem, 12.5vw, 4rem);
        line-height: .96;
    }

    .hero-content p {
        margin-bottom: 1rem;
    }

    .hero-content > .button-primary {
        margin-top: 1.5rem;
    }

    .hero-caption {
        max-width: 20rem;
        bottom: 5.4rem;
        font-size: 1.05rem;
        line-height: 1.3;
    }

    .hero-scroll {
        min-height: 44px;
        bottom: 1rem;
    }

    .button-primary,
    .about-slider-cta,
    .watch-video-button,
    .projects-cta-link,
    .projects-pagination a,
    .project-back-link,
    .service-card-content a,
    .window-project-copy a,
    .window-project-details,
    .service-detail-body a,
    .projects-index-copy a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .service-detail-body .service-detail-link {
        min-height: 48px;
    }

    .legal-details a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .intro-section,
    .faq-section,
    .contact-section,
    .services-grid-section,
    .work-process-section,
    .projects-index-section,
    .projects-cta-section,
    .contact-page-section,
    .project-detail-hero,
    .project-detail-body-section,
    .project-gallery-section,
    .about-company-section,
    .watch-video-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .intro-copy h2,
    .section-heading h2,
    .faq-intro h2,
    .contact-form h2,
    .services-page-heading h1,
    .work-process-heading h2,
    .projects-index-heading h1,
    .projects-cta-section h2,
    .contact-info-panel h1,
    .contact-form-card h2,
    .project-detail-copy h1,
    .project-gallery-heading h2,
    .about-company-header h1,
    .watch-video-primary h2,
    .testimonials-heading h2 {
        overflow-wrap: anywhere;
        font-size: clamp(2.25rem, 10vw, 3.15rem);
        line-height: 1;
    }

    .contact-form-card input,
    .contact-form-card textarea {
        min-height: 48px;
        font-size: 1rem;
    }

    .contact-form-card textarea {
        min-height: 10rem;
    }

    .contact-consent {
        align-items: flex-start;
        gap: .75rem;
    }

    .contact-consent input {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
    }

    .site-footer {
        gap: 2.4rem;
        padding: 4rem 1rem 2rem;
    }

    .site-footer > div {
        min-width: 0;
    }

    .footer-links a,
    .footer-legal-links a {
        display: flex;
        align-items: center;
    }

    .footer-bottom,
    .footer-legal-links {
        width: 100%;
    }

    .footer-legal-links {
        display: grid;
        grid-template-columns: 1fr;
    }

    .footer-legal-links a {
        border-top: 1px solid rgba(255, 255, 255, .1);
    }
}

@media (max-width: 520px) {
    .about-slide-media {
        min-height: 26rem;
    }

    .about-slide-image-main {
        width: 82%;
        height: 25rem;
    }

    .about-slide-image-float {
        width: 56%;
        right: 0;
    }

    .about-experience-card {
        right: 0;
        min-width: 10.8rem;
    }

    .about-stat-pair,
    .watch-video-stats,
    .numbers-top,
    .numbers-bottom,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .about-stat-pair article + article {
        border-top: 1px solid #dddcd8;
        border-left: 0;
        padding-top: 1rem;
        padding-left: 0;
    }

    .faq-contact-strip {
        grid-template-columns: 1fr;
    }

    .faq-rating-avatar {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-menu-toggle span {
        transition: none;
    }
}
