.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
}

.hero-slider {
    height: calc(100svh - 94px);
    min-height: 560px;
    max-height: none;
}

.hero-slide {
    grid-template-columns: 50% 50%;
}

.hero-image {
    height: 78%;
    object-fit: cover;
}

.hero-copy {
    width: min(100%, 760px);
    padding: 44px clamp(34px, 6.5vw, 110px);
    justify-self: start;
}

.hero-copy .eyebrow {
    display: block;
    min-height: 1.5em;
    font-size: clamp(12px, 1vw, 16px);
    line-height: 1.5;
}

.hero-copy h1 {
    min-height: 2.24em;
    margin: 18px 0 12px;
    font-size: clamp(34px, 3.5vw, 62px);
    line-height: 1.12;
    text-wrap: balance;
}

.hero-copy p {
    max-width: 620px;
    min-height: 3.9em;
    margin: 0;
    font-size: clamp(14px, 1.15vw, 18px);
    line-height: 1.45;
}

.section:has(.showcase),
.testimonial,
.career-teaser {
    min-height: calc(100svh - 94px);
}

.intro-grid {
    position: relative;
    display: grid;
    grid-template-columns: 46% 54%;
    align-items: center;
    min-height: clamp(520px, 33vw, 640px);
}

.intro-grid > .blue-panel {
    align-self: start;
    height: clamp(420px, 27vw, 520px);
    min-height: 0;
}

.blue-panel {
    display: flex;
    justify-content: center;
    padding: 64px clamp(36px, 5vw, 96px);
}

.about-copy {
    width: min(100%, 650px);
    margin-inline: auto;
    text-align: left;
}

.about-copy .eyebrow {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    font-size: 15px;
    letter-spacing: 1.3px;
}

.about-copy .eyebrow i {
    display: inline-block;
    width: 52px;
    height: 1px;
    background: #fff;
}

.about-copy h2 {
    margin: 22px 0 18px;
    font-size: clamp(34px, 3vw, 56px);
    line-height: 1.15;
}

.about-copy p {
    margin: 0 0 28px;
    color: #edf2fb;
    font-size: clamp(16px, 1.15vw, 20px);
    line-height: 1.65;
    max-width: 600px;
}

.about-copy .button {
    padding: 15px 26px;
    font-size: 15px;
}

.about-video {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: absolute;
    left: 46%;
    top: 54%;
    width: 54%;
    transform: translateY(-50%);
    z-index: 1;
}

.about-video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #18232b;
}

.section:has(.showcase),
.products-section,
.testimonial,
.career-teaser {
    display: flex;
    align-items: center;
}

.section:has(.showcase) > .wrap,
.testimonial > .wrap,
.career-teaser > .wrap {
    width: min(1110px, calc(100% - 48px));
}

.products-section {
    display: block;
    min-height: 0;
    padding-top: 82px;
    padding-bottom: 72px;
}

.products-section .section-heading {
    margin-bottom: 38px;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, clamp(190px, 20vw, 290px));
    overflow: hidden;
}

.product-tile {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #e9edf2;
    outline-offset: -4px;
}

.product-tile > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.product-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 24px;
    color: #fff;
    background: linear-gradient(105deg, rgb(185 31 37 / 96%), rgb(185 31 37 / 88%));
    opacity: 0;
    transition: opacity .3s ease;
}

.product-number {
    display: grid;
    place-items: center;
    flex: 0 0 54px;
    height: 54px;
    margin: -24px 0 0 -24px;
    background: #99191f;
    font: 700 19px Manrope, sans-serif;
}

.product-overlay h3 {
    margin: 12px 0 14px;
    color: #fff;
    font: 700 clamp(16px, 1.35vw, 22px) Manrope, sans-serif;
}

.product-overlay p {
    max-width: 290px;
    margin: 0;
    color: #fff;
    font-size: clamp(13px, 1vw, 17px);
    line-height: 1.6;
}

.product-tile:hover .product-overlay,
.product-tile:focus-visible .product-overlay {
    opacity: 1;
}

.product-tile:hover > img,
.product-tile:focus-visible > img {
    transform: scale(1.04);
}

.testimonial .wrap {
    position: relative;
    width: min(1080px, calc(100% - 48px));
}

.testimonial-carousel {
    position: relative;
    width: 100%;
    max-width: 1020px;
    margin-inline: auto;
    padding-inline: 48px;
    overflow: hidden;
    container-type: inline-size;
}

.quote-grid {
    display: flex;
    flex-flow: row nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 24px;
    width: 100%;
    overflow: visible;
    transition: transform .55s cubic-bezier(.22,.68,0,1.05);
    will-change: transform;
}

.quote-grid .testimonial-card.is-visible {
    flex: 0 0 calc((100% - 48px) / 3);
    width: calc((100% - 48px) / 3);
    max-width: calc((100% - 48px) / 3);
}

.quote-grid .testimonial-card {
    flex-shrink: 0;
}

.testimonial-card {
    position: relative;
    display: none;
    width: 100%;
    min-width: 0;
    min-height: 310px;
    margin: 0;
    padding: 58px 24px 26px;
    background: #fff;
    color: var(--muted);
    text-align: center;
    box-shadow: 0 10px 30px rgb(20 40 75 / 14%);
}

.testimonial-card[hidden] {
    display: none !important;
}

.quote-grid.no-transition {
    transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-carousel .quote-grid { transition: none; }
}

.testimonial-card.is-visible {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 38px;
}

.testimonial-card p {
    width: 100%;
    overflow-wrap: anywhere;
}

.testimonial-person {
    position: absolute;
    top: 22px;
    left: 50%;
    width: 68px;
    height: 68px;
    padding: 4px;
    border: 3px solid #e6edf9;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
}

.testimonial-person img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 28%;
}

.testimonial-avatar {
    display: grid;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    place-items: center;
    background: var(--blue);
    color: #fff;
    font-size: 22px;
}

.quote-mark {
    position: absolute;
    top: 14px;
    right: 18px;
    color: #eef2f9;
    font: 800 75px/1 Manrope, sans-serif;
}

.testimonial-card p {
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
    margin: 14px 0 20px;
    font-size: 14px;
    text-align: center;
}

.testimonial-card b {
    color: var(--ink);
}

.testimonial-card small {
    margin-top: 4px;
}

.testimonial-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--blue);
    font-size: 30px;
    cursor: pointer;
    transform: translateY(-50%);
}

.testimonial-prev { left: 0; }
.testimonial-next { right: 0; }

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    background: #ffffff80;
    cursor: pointer;
}

.testimonial-dot.is-active { background: #fff; }

.admin-edit-float {
    position: fixed;
    z-index: 30;
    right: 20px;
    bottom: 88px;
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 14px;
    background: var(--blue);
    color: #fff;
    box-shadow: 0 6px 20px rgb(20 40 75 / 24%);
    transition: background .2s ease, transform .2s ease;
}

.admin-edit-float:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}

.admin-edit-float svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

@media (max-width: 700px) {
    .admin-edit-float {
        right: 18px;
        bottom: 82px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 1000px) {
    .hero-slider {
        height: calc(100svh - 72px);
        min-height: 530px;
    }

    .about-video {
        left: 46%;
        width: 54%;
    }

    .intro-grid {
        min-height: 540px;
    }

    .intro-grid > .blue-panel {
        height: 440px;
    }

    .section:has(.showcase),
    .testimonial,
    .career-teaser {
        min-height: max(600px, calc(100svh - 72px + 50px));
    }

    .hero-copy {
        padding-inline: 6%;
    }

    .hero-copy h1 {
        font-size: clamp(32px, 4.5vw, 48px);
    }

    .product-gallery {
        grid-template-rows: repeat(2, clamp(180px, 27vw, 250px));
    }

    .product-overlay {
        gap: 16px;
        padding: 20px;
    }

    .product-number {
        flex-basis: 44px;
        height: 44px;
        margin: -20px 0 0 -20px;
    }

    .testimonial-carousel { max-width: 900px; padding-inline: 42px; }
    .quote-grid { gap: 16px; }
    .testimonial-card { min-height: 320px; padding-inline: 18px; }
}

@media (max-width: 700px) {
    .hero-slider {
        height: calc(100svh - 72px);
        min-height: 620px;
    }

    .hero-image {
        height: 48%;
        min-height: 280px;
    }

    .hero-slide:before {
        inset: 46% 0 0;
    }

    .hero-copy {
        padding: 24px 28px 65px;
    }

    .hero-copy h1 {
        min-height: 0;
        font-size: clamp(32px, 8vw, 44px);
        line-height: 1.08;
    }

    .hero-copy p {
        min-height: 0;
        font-size: 14px;
        line-height: 1.4;
    }

    .section:has(.showcase),
    .testimonial,
    .career-teaser {
        display: flex;
        min-height: 0;
        align-items: stretch;
    }

    .intro-grid {
        display: flex;
        min-height: 0;
        flex-direction: column;
        align-items: stretch;
    }

    .intro-grid > .blue-panel {
        height: auto;
        min-height: 450px;
        padding: 58px 28px;
    }

    .intro-grid > .about-video {
        position: relative;
        inset: auto;
        width: 100%;
        padding: 0 20px 40px;
        background: var(--blue);
        transform: none;
    }

    .about-video iframe {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .product-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(3, 190px);
    }

    .testimonial .wrap { width: calc(100% - 32px); }
    .quote-grid { display: flex; flex-direction: column; align-items: center; }
    .quote-grid .testimonial-card.is-visible { flex-basis: auto; width: 100%; max-width: 420px; }
    .testimonial-carousel { max-width: 480px; padding-inline: 34px; }
    .testimonial-card { min-height: 270px; padding-inline: 22px; }
    .quote-grid { gap: 0; }
    .quote-grid .testimonial-card.is-visible { flex: 0 0 100%; width: 100%; max-width: 100%; }

    .product-overlay {
        gap: 12px;
        padding: 14px;
    }

    .product-number {
        flex-basis: 34px;
        height: 34px;
        margin: -14px 0 0 -14px;
        font-size: 14px;
    }

    .product-overlay h3 {
        margin-top: 10px;
        font-size: 15px;
    }

    .product-overlay p {
        font-size: 12px;
        line-height: 1.4;
    }

    @media (hover: none) {
        .product-overlay {
            opacity: 1;
            align-items: flex-end;
            padding-top: 44px;
            background: linear-gradient(0deg, rgb(185 31 37 / 94%), rgb(185 31 37 / 0%) 78%);
        }

        .product-number {
            position: absolute;
            top: 14px;
            left: 14px;
            margin: 0;
        }
    }

    .career-teaser .wrap {
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 30px;
    }
}
