:root {
    --bd-navy: #080b49;
    --bd-blue: #044ed7;
    --bd-orange: #ff6e00;
    --bd-lavender: #a3abe5;
    --bd-warm-white: #f8f4f1;
    --bd-ink: #171a2f;
    --bd-muted: #6d7282;
    --shadow: 0 18px 34px rgba(8, 11, 73, .18);
}

@font-face {
    font-family: 'FSAlbertPro';
    src: url('https://matterport.bd-ids.com/FSAlbertPro-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--bd-ink);
    background: #fff;
    font-family: "FSAlbertPro", Arial, Helvetica, sans-serif;
}

img,
video {
    display: block;
    max-width: 100%;
}

.section-narrow {
    width: min(980px, calc(100% - 36px));
    margin: 0 auto;
}

.hero {
    position: relative;
    min-height: clamp(300px, 33vw, 480px);
    overflow: hidden;
    background: var(--bd-orange);
}

.hero__image {
    position: absolute;
    inset: 0 0 0 20%;
    background-position: center;
    background-size: cover;
    z-index: 1;
}

.bd-page--microbiologia .hero__image {
    background-position: center 42%;
}

.hero__orange {
    position: absolute;
    inset: 0 0 0 auto;
    width: 16%;
    background: var(--bd-orange);
}

.hero__panel {
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 2;
    width: min(58vw, 730px);
    padding-left: clamp(32px, 6vw, 82px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    background: var(--bd-navy);
    border-top-right-radius: 50% 100%;
    border-bottom-right-radius: 50% 100%;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.25rem, 4.4vw, 4.75rem);
    line-height: 1.04;
    font-weight: 600;
    letter-spacing: 0;
}

.hero p {
    margin: 18px 0 0;
    font-size: clamp(1rem, 1.45vw, 1.45rem);
    font-weight: 600;
}

.intro {
    padding: clamp(52px, 7vw, 82px) 0 0;
    text-align: center;
}

h2 {
    margin: 0 auto;
    max-width: 920px;
    color: var(--bd-navy);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: 0;
}

.intro p,
.details__lead,
.bridge {
    max-width: 800px;
    margin: 44px auto 0;
    font-size: clamp(1rem, 1.2vw, 1.14rem);
    line-height: 1.6;
    font-weight: 700;
}

.intro h3 {
    margin: 28px 0 34px;
    color: var(--bd-navy);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.15;
    font-weight: 800;
}

.tour-frame {
    width: min(900px, 100%);
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    background: #05072f;
    box-shadow: 0 16px 34px rgba(8, 11, 73, .14);
}

.tour-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.showcase {
    padding-top: clamp(80px, 13vw, 210px);
    text-align: center;
}

.bridge {
    margin-top: 0;
}

.carousel {
    position: relative;
    min-height: calc(var(--carousel-track-height, 620px) + 60px);
    margin-top: 56px;
}

.carousel__track {
    position: relative;
    height: var(--carousel-track-height, 620px);
    overflow: hidden;
    transition: height .25s ease;
}

.product-card {
    position: absolute;
    top: 28px;
    left: 50%;
    width: min(500px, 70vw);
    min-height: 460px;
    text-align: left;
    background: white;
    box-shadow: var(--shadow);
    opacity: .28;
    transform: translateX(calc(-50% + (var(--offset) * 330px))) scale(.78);
    transition: transform .3s ease, opacity .3s ease;
}

.product-card.is-active {
    z-index: 3;
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.product-card img {
    width: 100%;
    aspect-ratio: 1.6;
    object-fit: cover;
}

.product-card div {
    padding: 28px 32px 44px;
}

.product-card h4,
.feature-card h4 {
    margin: 0 0 18px;
    color: var(--bd-navy);
    font-size: 1.35rem;
    font-weight: 800;
}

.product-card p,
.feature-card p,
.flow-copy,
.closing {
    margin: 0;
    color: var(--bd-ink);
    font-size: 1rem;
    line-height: 1.55;
    font-weight: 700;
}

.carousel__button {
    position: absolute;
    top: 44%;
    z-index: 5;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: white;
    background: var(--bd-orange);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.carousel__button--prev {
    left: 2%;
}

.carousel__button--next {
    right: 2%;
}

.details {
    padding: 32px 0 clamp(92px, 12vw, 170px);
    text-align: center;
}

.details__lead {
    margin-top: 28px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 58px 110px;
    margin: 58px auto 0;
    width: min(760px, 100%);
}

.feature-card:last-child {
    grid-column: 1 / -1;
    width: min(380px, 100%);
    margin: 0 auto;
}

.feature-card img,
.feature-card .media-trigger {
    width: 100%;
    aspect-ratio: 1.6;
}

.feature-card h4 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 22px 0 18px;
    padding: 9px 20px;
    color: white;
    background: var(--bd-orange);
    font-size: .95rem;
}

.feature-card h4 span,
.badge-list span {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    color: white;
    background: var(--bd-orange);
    border-radius: 50%;
    font-weight: 800;
}

.feature-card h4 span {
    background: transparent;
    min-width: auto;
    height: auto;
}

.closing {
    max-width: 980px;
    margin: 92px auto 0;
    font-size: clamp(1.15rem, 1.6vw, 1.45rem);
    line-height: 1.45;
}

.feature-flow {
    margin-top: 64px;
}

.flow-row {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1.2fr;
    align-items: center;
    gap: 34px;
    min-height: 260px;
    text-align: left;
}

.flow-row--reverse {
    grid-template-columns: 1.2fr 1fr 1.15fr;
}

.flow-row--reverse .badge-list {
    grid-column: 3;
}

.flow-row--reverse figure {
    grid-column: 2;
    grid-row: 1;
}

.flow-row--reverse .flow-copy {
    grid-column: 1;
    grid-row: 1;
    text-align: center;
}

.badge-list p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    color: var(--bd-ink);
    font-weight: 800;
}

.flow-row figure {
    margin: 0;
    text-align: center;
}

.flow-row img,
.flow-row .media-trigger {
    width: 100%;
    aspect-ratio: 1.6;
}

.media-trigger {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    color: inherit;
    background: #eef2f7;
    cursor: pointer;
    overflow: hidden;
}

.media-trigger video,
.media-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-trigger span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 110, 0, .94);
    box-shadow: 0 12px 24px rgba(8, 11, 73, .25);
    transform: translate(-50%, -50%);
}

.media-trigger span::after {
    content: "";
    position: absolute;
    left: 22px;
    top: 16px;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 16px solid white;
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: clamp(16px, 4vw, 42px);
    background: rgba(5, 7, 47, .92);
}

.video-modal[hidden] {
    display: none;
}

.video-modal video {
    width: min(1180px, 100%);
    max-height: 86vh;
    aspect-ratio: 16 / 9;
    background: black;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .42);
}

.video-modal__close {
    position: fixed;
    right: clamp(18px, 3vw, 34px);
    top: clamp(14px, 3vw, 28px);
    z-index: 101;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: white;
    background: var(--bd-orange);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.flow-row figcaption {
    margin-top: 12px;
    font-weight: 700;
}

.flow-copy {
    text-align: center;
}

.footer {
    position: relative;
    display: grid;
    grid-template-columns: minmax(300px, 36%) 1fr;
    gap: clamp(36px, 6vw, 82px);
    align-items: center;
    min-height: 186px;
    padding: 30px clamp(32px, 6vw, 78px);
    color: white;
    background: var(--bd-orange);
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 1;
    width: min(430px, 39vw);
    background: var(--bd-lavender);
    border-top-right-radius: 48% 100%;
    border-bottom-right-radius: 48% 100%;
}

.footer::after {
    content: "";
    position: absolute;
    inset: 0 38px 0 0;
    z-index: 0;
    background: var(--bd-navy);
    border-top-right-radius: 100px 50%;
    border-bottom-right-radius: 100px 50%;
}

.footer__brand,
.footer ol {
    position: relative;
    z-index: 2;
}

.footer__brand {
    max-width: 345px;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    color: var(--bd-navy);
    font-size: 1.42rem;
    font-weight: 800;
    line-height: 1;
}

.footer__logo img {
    width: 27px;
    height: 27px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(8%) sepia(65%) saturate(2326%) hue-rotate(230deg) brightness(83%) contrast(113%);
}

.footer p,
.footer li {
    margin: 0;
    font-size: .77rem;
    line-height: 1.45;
    font-weight: 700;
}

.footer p {
    color: var(--bd-navy);
}

.footer ol {
    margin: 0;
    padding-left: 22px;
    color: white;
}

.home {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--bd-warm-white);
}

.home__wrap {
    width: min(560px, calc(100% - 36px));
    padding: 40px;
    text-align: center;
    background: white;
    box-shadow: var(--shadow);
}

.home__wrap img {
    width: 78px;
    margin: 0 auto 20px;
}

.home__wrap h1 {
    color: var(--bd-navy);
}

.home__wrap a {
    display: block;
    margin: 14px 0;
    padding: 16px 18px;
    color: white;
    background: var(--bd-blue);
    text-decoration: none;
    font-weight: 800;
}

@media (max-width: 820px) {
    .hero {
        min-height: 390px;
    }

    .hero__image {
        inset: 0;
        border-bottom-left-radius: 0;
    }

    .hero__panel {
        width: 86%;
        padding: 34px 28px;
        border-top-right-radius: 46% 100%;
        border-bottom-right-radius: 46% 100%;
    }

    .intro p,
    .bridge,
    .details__lead {
        margin-top: 28px;
    }

    .tour-frame {
        aspect-ratio: 4 / 3;
    }

    .carousel {
        min-height: calc(var(--carousel-track-height, 580px) + 56px);
    }

    .carousel__track {
        height: var(--carousel-track-height, 580px);
    }

    .product-card {
        width: min(430px, 78vw);
        min-height: 430px;
        transform: translateX(calc(-50% + (var(--offset) * 245px))) scale(.74);
    }

    .feature-grid,
    .flow-row,
    .flow-row--reverse {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .feature-card:last-child {
        grid-column: auto;
    }

    .flow-row--reverse .badge-list,
    .flow-row--reverse figure,
    .flow-row--reverse .flow-copy {
        grid-column: auto;
        grid-row: auto;
    }

    .badge-list {
        width: max-content;
        max-width: 100%;
        margin: 0 auto;
    }

    .footer {
        grid-template-columns: 1fr;
        padding: 30px 28px;
    }

    .footer::before {
        width: 72%;
    }
}

@media (max-width: 560px) {
    .section-narrow {
        width: min(100% - 24px, 980px);
    }

    .hero {
        min-height: 330px;
    }

    .hero__panel {
        width: 94%;
        padding-left: 24px;
    }

    h2 {
        font-size: 1.62rem;
    }

    .intro h3 {
        font-size: 1.85rem;
    }

    .showcase {
        padding-top: 72px;
    }

    .carousel {
        min-height: auto;
        padding: 0 0 72px;
    }

    .carousel__track {
        height: auto;
        overflow: visible;
    }

    .product-card,
    .product-card.is-active {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        min-height: auto;
        margin: 0 auto;
        opacity: 1;
        transform: none;
        display: none;
    }

    .product-card.is-active {
        display: block;
    }

    .carousel__button {
        top: auto;
        bottom: 8px;
    }

    .carousel__button--prev {
        left: calc(50% - 56px);
    }

    .carousel__button--next {
        right: calc(50% - 56px);
    }

    .feature-card h4 {
        display: flex;
        justify-content: center;
        font-size: .86rem;
        padding: 9px 12px;
    }

    .footer::before {
        inset: 0 auto auto 0;
        width: calc(100% - 28px);
        height: 116px;
        border-radius: 0px 1000px 1000px 0px;

    }

    .footer::after {
        inset: 102px 28px 0 0;
        width: auto;
        border-radius: 0px 1000px 1000px 0px;
    }

    .footer {
        grid-template-columns: 1fr;
        gap: 18px;
        min-height: 0;
        padding: 24px 26px 28px;
        background: var(--bd-orange);
    }

    .footer__brand {
        max-width: calc(100% - 22px);
    }

    .footer__logo {
        margin-bottom: 8px;
        font-size: 1.05rem;
    }

    .footer__logo img {
        width: 22px;
        height: 22px;
    }

    .footer p {
        max-width: 260px;
        font-size: .58rem;
        line-height: 1.35;
    }

    .footer ol {
        margin-top: 16px;
        padding: 22px 26px 18px 24px;
        color: white;
    }

    .footer li {
        font-size: .62rem;
        line-height: 1.42;
    }
}