/* Homepage components. Shared Bootstrap layout and other pages remain independent. */
.home-page { color: #242329; }
.home-page [id] { scroll-margin-top: 100px; }
.home-page .home-solutions, .home-page .home-innovations { background: #f6f6f7; }
.home-page .home-section-label { color: #7100c7; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.home-page .home-section-title { font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 700; }
.home-page .home-copy { color: #4b4b54; line-height: 1.65; }
.home-page .home-text-link, .home-page .home-directory__links a { color: #6500aa; text-decoration: underline; text-underline-offset: 3px; }
.home-page .home-text-link:hover, .home-page .home-directory__links a:hover { color: #3d0068; }
.home-page a:focus-visible, .home-page button:focus-visible { outline: 3px solid #7100c7; outline-offset: 4px; }
.home-page .home-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-page .home-button { border: 2px solid #7100c7; background: #7100c7; color: #fff; padding: 10px 18px; font-weight: 600; }
.home-page .home-button:hover { background: #560099; border-color: #560099; color: #fff; }
.home-page .home-button--outline { border-color: #fff; background: transparent; }
.home-page .home-button--outline:hover { background: #fff; border-color: #fff; color: #242329; }
.home-page .home-hero { background: #19141f; color: #fff; }
.home-page .home-hero .carousel-inner { display: grid; }
/* Every slide contributes to the same row height, including the longest mobile copy. */
.home-page .home-hero .carousel-item { display: block; grid-area: 1 / 1; float: none; margin-right: 0; visibility: hidden; transition: none; }
/* Grid items are already laid out. Set up the incoming slide instantly offscreen,
   then animate only Bootstrap's directional phase instead of reversing that setup. */
.home-page .home-hero .carousel-item-left,
.home-page .home-hero .carousel-item-right { transition: transform 1.1s cubic-bezier(.4, 0, .2, 1); }
.home-page .home-hero .carousel-item.active,
.home-page .home-hero .carousel-item-next,
.home-page .home-hero .carousel-item-prev { visibility: visible; }
.home-page .home-hero .carousel-item::after { content: ""; position: absolute; inset: 0; background: rgba(15, 12, 24, .64); }
.home-page .home-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--hero-shift, 0px), 0); }
.home-page .home-hero__image--eox { object-position: center top; }
.home-page .home-hero__body { position: relative; z-index: 1; display: flex; align-items: center; height: 100%; min-height: 400px; padding-top: 36px; padding-bottom: 100px; }
.home-page .home-hero__copy { max-width: 650px; }
.home-page .home-hero__eyebrow { font-size: .85rem; letter-spacing: .05em; margin-bottom: 14px; }
.home-page .home-hero__title { font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.08; font-weight: 700; margin-bottom: 18px; }
.home-page .home-hero__description { font-size: 1.1rem; line-height: 1.55; margin-bottom: 24px; }
.home-page .home-hero__navigation { position: absolute; z-index: 2; left: 0; right: 0; bottom: 18px; }
.home-page .home-hero__choices { position: static; justify-content: flex-start; gap: 8px; margin: 0; }
.home-page .home-hero__choices button { flex: 1; min-width: 0; min-height: 44px; border: 1px solid rgba(255,255,255,.7); border-radius: 3px; padding: 9px 8px; background: rgba(15,12,24,.5); color: #fff; font-size: .875rem; line-height: 1.2; }
.home-page .home-hero__choices button.active { background: #fff; border-color: #fff; color: #242329; font-weight: 700; }
.home-page .home-hero a:focus-visible, .home-page .home-hero button:focus-visible, .home-page .home-contact a:focus-visible { outline-color: #fff; }
.home-page .home-card { display: flex; overflow: hidden; border: 1px solid #e0dfe5; border-radius: 4px; background: #fff; color: #242329; text-decoration: none; min-height: 118px; }
.home-page .home-card:hover { border-color: #7100c7; color: #6500aa; }
.home-page .home-card__media { position: relative; display: block; flex: 0 0 96px; }
.home-page .home-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-page .home-card__body { flex: 1; min-width: 0; padding: 16px; }
.home-page .home-card__title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 8px; font-size: 1.15rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.home-page .home-card__title span { flex-shrink: 0; color: #7100c7; }
.home-page .home-card__description { color: #55545d; font-size: .95rem; line-height: 1.5; }
.home-page .home-trust__links { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; border-left: 3px solid #7100c7; padding-left: 24px; }
.home-page .home-contact { color: #fff; background: #21152c; }
.home-page .home-contact__details a { display: inline-block; max-width: 100%; color: #fff; font-size: clamp(1.05rem, 1.8vw, 1.4rem); padding: 6px 0; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.home-page .home-contact__details p { color: #ded7e5; }
@media (min-width: 576px) {
    .home-page .home-card { flex-direction: column; }
    .home-page .home-card__media { flex: none; width: 100%; aspect-ratio: 16 / 9; }
    .home-page .home-hero__choices button { flex: none; padding-left: 18px; padding-right: 18px; }
}
@media (min-width: 992px) {
    .home-page .home-hero__body { min-height: 480px; padding-top: 54px; }
    .home-page .home-hero .carousel-item::after { background: linear-gradient(90deg, rgba(15,12,24,.78), rgba(15,12,24,.60) 75%, rgba(15,12,24,.12)); }
}
@media (prefers-reduced-motion: reduce) {
    .home-page .home-hero .carousel-item { transition: none; }
    .home-page .home-hero__image { transform: none; }
}

.home-page .home-directory {
    background: #fff;
    border-top: 1px solid #e4e4e8;
    scroll-margin-top: 90px;
}

.home-page .home-directory__models {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
}

.home-page .home-directory__links li {
    display: flex;
    min-width: 0;
}

.home-page .home-directory__links a {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #dedee4;
}

.home-page .home-directory__links span {
    flex-shrink: 0;
}

@media (min-width: 576px) {
    .home-page .home-directory__grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 30px;
    }

    .home-page .home-directory__group {
        display: grid;
        grid-template-rows: subgrid;
        grid-row: 6 / span 4;
        min-width: 0;
    }

    .home-page .home-directory__group:first-child {
        grid-column: 1 / -1;
        /* One heading plus four rows for the seven model links. */
        grid-row: 1 / span 5;
    }

    .home-page .home-directory__links {
        display: grid;
        grid-template-rows: subgrid;
        grid-row: 2 / -1;
        row-gap: 0;
    }

    .home-page .home-directory__group h3 {
        align-self: start;
        margin-bottom: 0;
    }
}

@media (min-width: 992px) {
    .home-page .home-directory__grid {
        grid-template-columns: 5fr 3fr 4fr;
        row-gap: 0;
    }

    .home-page .home-directory__group,
    .home-page .home-directory__group:first-child {
        grid-column: auto;
        grid-row: 1 / span 5;
    }

    .home-page .home-directory__group h3 {
        margin-bottom: 16px;
    }
}
