.hero-primary {
    --hero-gradient-start: #006765;
    --hero-gradient-end: #008f8c;
    overflow: hidden;
    min-height: 680px;
    padding-top: 70px;
    padding-right: 0;
    padding-bottom: 130px;
    padding-left: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
}
.hero-primary.hero-primary--compact {
    min-height: 0;
    padding-bottom: 130px;
}
/* Keep exactly 60px of bottom padding when buttons are the final element. */
.hero-primary.hero-primary--buttons-last {
    min-height: 0;
    padding-bottom: 60px;
}
/* The final image sits flush with the bottom of the hero at every viewport size. */
.hero-primary.hero-primary--image-last {
    min-height: 0;
    padding-bottom: 0;
}
.hero-primary .hero-primary__heading {
    margin: 100px 70px 35px;
    color: #fff;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: normal;
}
.hero-primary .hero-primary__content {
    max-width: 1120px;
    margin: 32px auto 0;
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 600;
    line-height: 1.35;
}
.hero-primary .hero-primary__content > :last-child {
    margin-bottom: 0;
}
.hero-primary .hero-primary__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: center;
    justify-content: center;
    margin-top: 42px;
}
.hero-primary .hero-primary__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 235px;
    min-height: 62px;
    padding: 16px 30px;
    border-radius: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
}
.hero-primary .hero-primary__button--white {
    color: #282d37;
    background: #fff;
}
.hero-primary .hero-primary__button--aqua {
    color: #2b2e36;
    background: #a8ffff;
}
.hero-primary .hero-primary__button:hover,
.hero-primary .hero-primary__button:focus-visible {
    color: #282d37;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
.hero-primary .hero-primary__button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}
/* Display only the uploaded image, without a decorative backing or frame. */
.hero-primary .hero-primary__image-wrap {
    margin-top: 64px;
    margin-bottom: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}
.hero-primary .hero-primary__image-wrap::before,
.hero-primary .hero-primary__image-wrap::after {
    content: none;
    display: none;
}
.hero-primary .hero-primary__image {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}
@media (max-width: 991.98px) {
    .hero-primary .hero-primary__image-wrap {
        margin-top: 48px;
    }
}
@media (max-width: 575.98px) {
    .hero-primary {
        min-height: 0;
    }
    .hero-primary .hero-primary__heading {
        font-size: 42px;
    }
    .hero-primary .hero-primary__content {
        font-size: 19px;
    }
    .hero-primary .hero-primary__buttons {
        gap: 16px;
        margin-top: 32px;
    }
    .hero-primary .hero-primary__button {
        width: 100%;
        min-width: 0;
    }
    .hero-primary .hero-primary__image-wrap {
        margin-top: 40px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .hero-primary .hero-primary__button {
        transition: none;
    }
    .hero-primary .hero-primary__button:hover,
    .hero-primary .hero-primary__button:focus-visible {
        transform: none;
    }
}

/* Homepage screen: a gentle one-time 3D lift into view. */
.hero-primary__image.screen-flip-pending {
    opacity: 0;
    transform: perspective(1200px) translateY(48px) translateZ(-100px) rotateX(80deg) scale(.9);
    transform-origin: center bottom;
}
.hero-primary__image.screen-flip-active {
    transform-origin: center bottom;
    animation: chemistry-screen-flip 1800ms cubic-bezier(.4, 0, .2, 1) both;
}
@keyframes chemistry-screen-flip {
    from { opacity: 0; transform: perspective(1200px) translateY(48px) translateZ(-100px) rotateX(80deg) scale(.9); }
    20% { opacity: 1; }
    to { opacity: 1; transform: perspective(1200px) translateY(0) translateZ(0) rotateX(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-primary__image.screen-flip-pending,
    .hero-primary__image.screen-flip-active {
        opacity: 1;
        transform: none;
        animation: none;
    }
}
@media print {
    .hero-primary__image.screen-flip-pending,
    .hero-primary__image.screen-flip-active { opacity: 1; transform: none; animation: none; }
}
