.page-hero:not(.page-hero--bg-image):not(.page-hero--featured-carousel)::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 10px 20px -6px rgba(0, 0, 0, 0.12);
    z-index: 10;
    pointer-events: none;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    margin: 0 auto;
    height: 100%;
}

.page-hero--testimonial-carousel .page-hero-inner,
.page-hero-inner {
    width: 84%;
    justify-content: space-evenly;
}

.page-hero-content {
    flex: 1;
    min-width: 0;
}

.page-hero--testimonial-carousel .page-hero-content {
    max-width: 525px;
}

.page-hero-image {
    background-color: var(--color-border);
}

.page-hero--posts .page-hero-image {
    background-color: transparent;
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
    z-index: 10;
}

.page-hero--50-50 .page-hero-inner,
.page-hero--50-50-carousel .page-hero-inner,
.page-hero--bg-image .page-hero-inner {
    width: 100%;
    min-height: 540px;
}

.page-hero--posts .page-hero-image figure {
    margin: 0;
    text-align: center;
    max-width: 320px;
}

.page-hero--posts .page-hero-image img {
    border-radius: 0;
    margin: 0 auto;
    object-fit: contain;
    object-position: center bottom;
}

.page-hero--50-50 .page-hero-image {
    flex: 1.5;
    align-self: stretch;
    overflow: hidden;
    display: flex;
    max-height: 600px;
}

.page-hero--50-50 .page-hero-image img {
    width: 100%;
    height: 100%;
    object-position: center;
    display: block;
}

.page-hero--three-point-header.page-hero {
    background: linear-gradient(to bottom, var(--color-site-bg) 25%, var(--color-container-bg) 100%);
}

.page-hero--three-point-header.page-hero::before {
    display: none;
}

/* Print Header: compact title band, buttons + "Print this page" on the right,
   tilted divider below (.page-hero-tilt, rendered after the section). */
.page-hero--print-header.page-hero {
    min-height: 0;
    background: var(--color-container-bg);
}

.page-hero--print-header.page-hero::before,
.page-hero--print-header.page-hero::after {
    display: none;
}

/* Same width as .cs-full-width so the title lines up with the page content. */
.page-hero--print-header .page-hero-inner {
    width: 80%;
    max-width: 1240px;
    padding: 2.5rem 0;
}

.page-hero--print-header .page-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
}

.page-hero--print-header .page-hero-text {
    flex: 1;
    min-width: 0;
}

.page-hero--print-header .page-hero-buttons {
    justify-content: flex-end;
    margin: 0;
}

.page-hero--print-header .page-hero-title {
    margin: 0;
}

.page-hero--print-header .page-hero-excerpt {
    margin-top: 0.75rem;
}

.page-hero-tilt {
    line-height: 0;
    pointer-events: none;
}

.page-hero-tilt svg {
    display: block;
    width: 100%;
    height: 65px;
    fill: var(--color-container-bg);
}

/* Same side inset as the Default hero's text below 1200px (full width + 1rem). */
@media (max-width: 1200px) {
    .page-hero--print-header .page-hero-inner {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        padding: 2rem 1rem;
    }
}

@media (max-width: 768px) {
    .page-hero--print-header .page-hero-content {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        text-align: left;
    }

    .page-hero--print-header .page-hero-buttons {
        justify-content: flex-start;
    }

    .page-hero-tilt svg {
        height: 32px;
    }
}

.page-hero--three-point-header .page-hero-buttons {
    justify-content: center;
}

.page-hero--three-point-header .page-hero-buttons .secondary-button {
    color: var(--color-site-bg);
    justify-content: center;
    text-align: center;
}

.page-hero--three-point-header .page-hero-inner {
    width: 88%;
    min-height: 480px;
}

.page-hero--three-point-header .page-hero-image {
    order: -1;
    flex: 1;
    align-self: center;
    background-color: transparent;
    max-height: 420px;
    display: flex;
    align-items: center;
}

.page-hero--three-point-header .page-hero-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

.page-hero--three-point-header .page-hero-content {
    flex: 1.2;
}

.page-hero-points {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.page-hero-points .tph-point {
    position: relative;
    display: grid;
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
    column-gap: 1rem;
    row-gap: 0.4rem;
}

.page-hero-points .tph-point::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: color-mix(in srgb, var(--color-primary) 60%, transparent);
}

.page-hero-points .tph-point:first-child::before {
    top: 18px;
}

.page-hero-points .tph-point:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 17px;
    bottom: -0.75rem;
    height: 0.75rem;
    width: 3px;
    background: color-mix(in srgb, var(--color-primary) 60%, transparent);
}

.page-hero-points .tph-dot {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
}

.page-hero-points .tph-point-heading {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    color: var(--color-primary);
    margin: 0;
    font-size: 1.15rem;
}

.page-hero-points .tph-point-content {
    grid-column: 2;
    grid-row: 2;
}

.page-hero-points .tph-point-content p:last-child {
    margin-bottom: 0;
}

.page-hero--text-only .page-hero-content {
    margin: 4rem auto;
    max-width: 710px;
    text-align: center;
}

.page-hero--50-50 .page-hero-inner .page-hero-title,
.page-hero--50-50 .page-hero-inner .page-hero-buttons,
.page-hero--50-50 .page-hero-inner .page-hero-badge,
.page-hero--50-50 .page-hero-inner .page-hero-excerpt,
.page-hero--50-50-carousel .page-hero-title,
.page-hero--50-50-carousel .page-hero-buttons,
.page-hero--50-50-carousel .page-hero-badge,
.page-hero--50-50-carousel .page-hero-excerpt {
    margin: 1.75rem 0 1.75rem auto;
    max-width: 550px;
}

.page-hero--bg-image .page-hero-inner .page-hero-title,
.page-hero--bg-image .page-hero-inner .page-hero-buttons,
.page-hero--bg-image .page-hero-inner .page-hero-badge,
.page-hero--bg-image .page-hero-inner .page-hero-excerpt {
    margin: 1.75rem 0;
}

.page-hero--testimonial-carousel .page-hero-excerpt {
    margin: 1.5rem 0 2rem 0;
}

.page-hero-image img {
    width: 100%;
    display: block;
}

.page-hero--text-only .page-hero-badge,
.page-hero--text-only .page-hero-buttons {
    justify-content: center;
}

.page-hero--posts {
    background-color: var(--color-primary);
}

.page-hero--posts .page-hero-content {
    padding: 3rem 0;
    max-width: 80%;
}

.page-hero-carousel-track {
    display: grid;
    max-width: 788px;
}

.page-hero-carousel-slide {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0s 0.5s;
    pointer-events: none;
}

.page-hero-carousel-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0s;
    pointer-events: auto;
}

.page-hero-carousel-slide img {
    flex: 0 0 54%;
    width: 54%;
    aspect-ratio: 4 / 5;
    max-height: 500px;
    object-fit: cover;
    object-position: center top;
    align-self: flex-end;
}

.page-hero-carousel-track {
    flex: 1.4;
    align-content: center;
    justify-content: space-between;
    height: 100%;
    margin-top: 4rem;
}

.page-hero-carousel-content {
    flex: 0 0 calc(46% - 2rem);
    margin-left: auto;
    align-content: center;
    text-align: left;
}

.page-hero-carousel-content blockquote p:first-child::before {
    content: '\201C';
}

.page-hero-carousel-content blockquote p:last-child::after {
    content: '\201D';
}

.page-hero--posts .page-hero-title,
.page-hero--posts .page-hero-badge,
.page-hero--posts .page-hero-excerpt {
    color: var(--color-site-bg);
    margin: 1.5rem 0;
}

.page-hero--posts .page-hero-inner {
    text-align: left;
}

.page-hero--posts .page-hero-badge,
.page-hero--posts .page-hero-buttons {
    justify-content: flex-start;
}

.page-hero--50-50.dots-rtl::before,
.page-hero--50-50-carousel.dots-rtl::before {
    right: auto;
    left: 0;
    width: 50%;
}

.page-hero--posts.dots-rtl::before {
    right: 0;
    left: auto;
}

.page-hero--posts.dots-rtl::before {
    background-image: linear-gradient(to right,
            color-mix(in srgb, var(--color-border) 10%, transparent), transparent);
}

body.pattern-grid .page-hero--posts.dots-rtl::before {
    background-image:
        repeating-linear-gradient(to right, color-mix(in srgb, var(--color-border) 16%, transparent) 0 1px, transparent 1px 22px),
        repeating-linear-gradient(to bottom, color-mix(in srgb, var(--color-border) 16%, transparent) 0 1px, transparent 1px 22px);
}

body.pattern-diagonal .page-hero--posts.dots-rtl::before {
    background-image: repeating-linear-gradient(45deg, color-mix(in srgb, var(--color-border) 18%, transparent) 0 1px, transparent 1px 12px);
}

.page-hero--text-only .cs-search-form {
    margin: 0 auto 1.75rem auto;
    display: flex;
    justify-content: center;
}

.page-hero--text-only .cs-archive-search-rows {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.page-hero--text-only .cs-archive-search-rows .cs-search-wrap {
    max-width: 100%;
}

.page-hero-image-carousel {
    flex: 1.5;
    align-self: stretch;
    overflow: hidden;
    position: relative;
    display: flex;
    min-height: 600px;
}

.page-hero-image-carousel-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex: 1;
    transform: translateX(100%);
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.page-hero-image-carousel-slide.is-active {
    transform: translateX(0);
}

.page-hero-image-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-hero-img-nav {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.75rem;
    z-index: 2;
}

.page-hero-img-carousel-btn:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

.post-hero-date {
    margin: 2rem 0;
    color: var(--color-site-bg);
}

.post-hero-caption {
    text-align: center;
    color: var(--color-site-bg);
    margin: 0.5rem auto 0;
}

.post-hero-share {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.post-hero-share .cs-social-icon {
    width: 38px;
    height: 38px;
    font-size: 0.875rem;
}

.post-hero-share .cs-social-icon--circle {
    border-color: color-mix(in srgb, var(--color-primary) 28%, transparent);
    color: color-mix(in srgb, var(--color-primary) 65%, transparent);
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.post-hero-share .cs-social-icon--circle:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 8%, transparent);
    opacity: 1;
}

.page-hero-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    letter-spacing: .6px;
    line-height: 1.33;
    text-transform: uppercase;
}

.card-grid-body .page-hero-badge,
.ff-text-col .page-hero-badge,
.ff-edge-text-col .page-hero-badge {
    font-size: .875rem;
}

.page-hero-badge::before {
    content: '';
    display: inline-block;
    flex-shrink: 0;
    width: 2rem;
    height: 2px;
    background: color-mix(in srgb, var(--color-secondary) 95%, transparent);
}

.page-hero-badge--tri::before {
    height: 4px;
    width: 28px;
    border-radius: 4px;
    background: linear-gradient(to right,
            color-mix(in srgb, var(--color-secondary) 80%, #000) 0 33.33%,
            var(--color-secondary) 33.33% 66.66%,
            color-mix(in srgb, var(--color-secondary) 75%, #fff) 66.66% 100%);
}

.page-hero .page-hero-badge--tri::before {
    height: 6px;
    width: 48px;
}

.page-hero-badge--pill {
    background: color-mix(in srgb, var(--color-accent) 12%, transparent);
    color: var(--color-accent);
    border: 1px solid color-mix(in srgb, var(--color-accent) 28%, transparent);
    border-radius: 100px;
    padding: 0.2em 0.85em;
    align-self: flex-start;
}

.page-hero-badge--pill::before {
    display: none;
}

.page-hero--text-only .page-hero-badge--pill,
.page-hero--archive .page-hero-badge--pill {
    align-self: center;
}

.page-hero-title {
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-primary);
    font-size: clamp(calc(var(--size-h1) * 0.62), calc(var(--size-h1) * 0.5 + 0.85vw), calc(var(--size-h1) * 0.92));
    hyphens: auto;
    overflow-wrap: anywhere;
}

.page-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.page-hero--testimonial-carousel {
    background: linear-gradient(to right, var(--color-border) 68%, var(--color-site-bg) 68%);
}

.page-hero-carousel-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.page-hero-carousel-name {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0.08px;
}

.page-hero-carousel-nav {
    display: flex;
    gap: 1.15rem;
    margin-top: 1.25rem;
    margin-bottom: .5rem;
}

.page-hero-carousel-btn:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

.page-hero-subnav {
    background: var(--color-site-bg);
    border-bottom: 2px solid var(--color-border);
}

.page-hero-subnav-inner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 78%;
    margin: 0 auto;
}

.page-hero-subnav-title {
    display: flex;
    align-items: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    padding-right: 2rem;
    border-right: 2px solid var(--color-border);
    margin: 0;
    flex-shrink: 0;
}

.page-hero-subnav-menu {
    list-style: none;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 1.75rem;
    padding: 1rem 2rem;
    text-transform: uppercase;
}

.page-hero-subnav-menu li {
    display: flex;
    align-items: center;
}


.page-hero--bg-image {
    background-color: var(--color-site-bg);
    color: inherit;
}

.page-hero--bg-image::before {
    display: none;
}

.page-hero-bg-img {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero-bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.page-hero--bg-fit-contain .page-hero-bg-img {
    background-color: var(--color-site-bg);
}

.page-hero--bg-image::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to right,
            color-mix(in srgb, var(--color-site-bg) 92%, transparent) 0%,
            color-mix(in srgb, var(--color-site-bg) 75%, transparent) 38%,
            color-mix(in srgb, var(--color-site-bg) 18%, transparent) 62%,
            transparent 80%);
    pointer-events: none;
}

.page-hero--bg-image .page-hero-inner {
    position: relative;
    z-index: 2;
    margin: 0;
    min-height: unset;
    align-items: center;
    justify-content: flex-start;
    padding-left: 8%;
    padding-right: 8%;
}

.page-hero--bg-image .page-hero-content {
    max-width: 45%;
}

.page-hero--bg-image .page-hero-title {
    color: var(--color-primary);
}

.page-hero--bg-image .page-hero-excerpt {
    color: inherit;
}

.page-hero--bg-image-no-img {
    background-color: var(--color-site-bg);
    color: inherit;
    min-height: unset;
    margin-bottom: 2rem;
    padding-top: .75rem;
}

.page-hero--bg-image-no-img::after {
    display: none;
}

.page-hero--bg-image-no-img .page-hero-title,
.page-hero--bg-image-no-img .page-hero-excerpt {
    color: var(--color-primary);
}

.page-hero--bg-image-no-img .page-hero-excerpt {
    font-size: var(--size-h4);
    font-weight: 600;
}

.page-hero--bg-image .page-hero-image {
    background-color: transparent;
    flex-shrink: 0;
    margin-left: auto;
    align-self: stretch;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.page-hero--bg-image .page-hero-image img {
    width: 300px;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

@media(max-width: 1780px) {
    .page-hero-subnav-inner {
        width: 80%;
    }
}

@media(max-width: 1700px) {
    .page-hero-subnav-inner {
        width: 84%;
    }
}

@media (max-width: 1500px) {
    .page-hero-subnav-inner {
        width: 92%;
    }

    .page-hero--testimonial-carousel .page-hero-inner {
        width: 95%;
    }

    .page-hero--50-50 .page-hero-inner .page-hero-title,
    .page-hero--50-50 .page-hero-inner .page-hero-buttons,
    .page-hero--50-50 .page-hero-inner .page-hero-badge,
    .page-hero--50-50 .page-hero-inner .page-hero-excerpt,
    .page-hero--50-50-carousel .page-hero-inner .page-hero-title,
    .page-hero--50-50-carousel .page-hero-inner .page-hero-buttons,
    .page-hero--50-50-carousel .page-hero-inner .page-hero-badge,
    .page-hero--50-50-carousel .page-hero-inner .page-hero-excerpt {
        width: 90%;
    }
}

@media (max-width: 1200px) {
    .page-hero-inner {
        gap: 0;
    }

    .page-hero-title {
        width: 100%;
    }

    .page-hero--posts .page-hero-inner {
        width: 90%;
        gap: 1rem;
    }

    .page-hero--posts .page-hero-inner .page-hero-content {
        padding: 2rem 0;
    }

    .page-hero--50-50 .page-hero-content,
    .page-hero--50-50-carousel .page-hero-content {
        padding: 1rem;
    }

    .page-hero-subnav-inner {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .page-hero-subnav-title {
        border-right: none;
        border-bottom: 2px solid var(--color-border);
        width: 100%;
        padding: 1rem;
    }

    .page-hero-image img {
        object-position: top;
    }

    .page-hero--50-50 .page-hero-inner .page-hero-title,
    .page-hero--50-50 .page-hero-inner .page-hero-buttons,
    .page-hero--50-50 .page-hero-inner .page-hero-badge,
    .page-hero--50-50 .page-hero-inner .page-hero-excerpt {
        width: 100%;
    }

    .page-hero--50-50-carousel .page-hero-content,
    .page-hero--testimonial-carousel .page-hero-content {
        background: var(--color-border);
    }

    .page-hero--bg-image .page-hero-inner {
        padding-left: 5%;
        padding-right: 5%;
    }

    .page-hero--bg-image .page-hero-content {
        max-width: 52%;
    }

    .page-hero-carousel-track {
        margin-top: 2rem;
    }

    .page-hero--testimonial-carousel {
        background: var(--color-site-bg);
        height: 100%;
    }

    .page-hero--testimonial-carousel .page-hero-inner {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .page-hero--testimonial-carousel .page-hero-carousel-track {
        order: -1;
        flex: none;
    }

    .page-hero--testimonial-carousel .page-hero-content {
        flex: none;
        width: 100%;
        box-sizing: border-box;
        padding: 2rem;
        max-width: unset;
    }

    .page-hero-carousel {
        flex: none;
        min-height: 400px;
        order: -1;
        width: 100%;
        margin: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .page-hero--50-50.dots-ltr::before,
    .page-hero--posts.dots-ltr::before,
    .page-hero--testimonial-carousel.dots-ltr::before {
        top: 45%;
        left: 50%;
        width: 1600px;
        height: 100vw;
        transform-origin: center center;
        transform: translate(-50%, -50%) rotate(90deg);
    }

}

@media (max-width: 1140px) {

    .page-hero--bg-image::after {
        background: color-mix(in srgb, var(--color-site-bg) 68%, transparent);
    }

    .page-hero--bg-image .page-hero-inner {
        flex-direction: column;
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
        width: 84%;
        margin: 0 auto;
    }

    .page-hero--bg-image .page-hero-content {
        max-width: 710px;
        text-align: center;
        margin: 3rem auto 0;
    }

    .page-hero--bg-image .page-hero-inner .page-hero-badge,
    .page-hero--bg-image .page-hero-inner .page-hero-buttons {
        justify-content: center;
    }

    .page-hero--bg-image .page-hero-image {
        align-self: center;
        margin: 2rem auto;
    }

    .page-hero--bg-image .page-hero-image img {
        width: 100%;
        height: auto;
    }

    .page-hero--posts .page-hero-content {
        max-width: 100%;
    }
}

@media (max-width: 1000px) {
    .page-hero--text-only .cs-search-form {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-hero--posts .page-hero-content {
        padding: 1.5rem 0;
    }

    .page-hero--posts .page-hero-inner {
        flex-direction: column;
    }

    .page-hero-image-carousel {
        flex: none;
        width: 100%;
        min-height: 400px;
    }

    .page-hero-inner {
        flex-direction: column-reverse;
        width: 100%;
        gap: 0rem;
    }

    .page-hero-inner .page-hero-badge.page-hero-badge--tri.cs-in-view,
    .page-hero-inner .page-hero-buttons.cs-in-view,
    .page-hero-inner .page-hero-badge.cs-in-view,
    .page-hero-inner {
        justify-content: center;
        text-align: center;
    }

    .page-hero--posts .page-hero-inner,
    .page-hero--posts .page-hero-inner .page-hero-badge.page-hero-badge--tri.cs-in-view,
    .page-hero--posts .page-hero-inner .page-hero-buttons.cs-in-view,
    .page-hero--posts .page-hero-inner .page-hero-badge.cs-in-view {
        justify-content: flex-start;
        text-align: left;
    }

    .page-hero--50-50.dots-rtl::before,
    .page-hero--50-50-carousel.dots-rtl::before {
        top: 50%;
        left: 50%;
        right: auto;
        width: 800px;
        height: 100vw;
        mask-size: auto 16px;
        transform-origin: center center;
        transform: translate(-50%, -50%) rotate(90deg);
    }

    .page-hero--text-only .cs-archive-search-rows,
    .page-hero-carousel-slide {
        flex-direction: column;
    }

    .page-hero-carousel-slide {
        gap: 0;
    }

    .page-hero-carousel-slide img {
        flex: none;
        align-self: center;
        width: auto;
        height: 360px;
        max-width: 95%;
    }

    .page-hero-carousel-nav {
        justify-content: center;
    }

    .page-hero-image.cs-in-view {
        padding: 0;
    }

    .page-hero--three-point-header .page-hero-image {
        order: 0;
    }

    .page-hero-carousel-content {
        flex: none;
        width: 90%;
        margin: 0 auto;
    }
}

@media (max-width: 660px) {
    .page-hero--posts .page-hero-excerpt {
        display: none;
    }

    .page-hero--posts.dots-rtl::before {
        top: 50%;
        left: 50%;
        right: auto;
        width: 1600px;
        height: 100vw;
        transform-origin: center center;
        transform: translate(-50%, -50%) rotate(90deg);
    }

    .page-hero-subnav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {

    .page-hero-carousel-track {
        width: 100%;
        margin: 2rem auto;
    }
}

.page-hero--featured-carousel {
    position: relative;
    overflow: hidden;
    background: var(--color-primary);
    display: block;
    min-height: 0;
}

.page-hero--featured-carousel::before {
    display: none;
}

.page-hero--featured-carousel .page-hero-inner {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

.page-hero-featured-track {
    position: relative;
    min-height: clamp(320px, 46vh, 420px);
}

.phf-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* --phf-gap matches the 1.75rem rhythm of the default page hero; --phf-card-overlap is how far the
   featured cards pull up into the hero, so the bottom padding leaves exactly one gap above them. */
.page-hero--featured-carousel,
.phf-cards {
    --phf-gap: 1.75rem;
    --phf-card-overlap: 2.5rem;
}

.phf-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    min-height: clamp(320px, 46vh, 420px);
    padding: 4rem 10% calc(var(--phf-card-overlap) + var(--phf-gap));
}

.phf-content-stack {
    position: relative;
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 820px;
}

.page-hero-featured-slide {
    grid-area: 1 / 1;
    position: relative;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0s 0.6s;
    pointer-events: none;
}

.page-hero-featured-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0s;
    pointer-events: auto;
}

.phf-bg-video,
.phf-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.phf-bg-color {
    width: 100%;
    height: 100%;
    display: block;
}

.phf-bg-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.phf-bg-slide.is-active {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .phf-bg-slide {
        transition: none;
    }
}

.phf-overlay {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--color-primary) 90%, transparent);
    backdrop-filter: blur(6px);
}

.phf-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--phf-gap);
}

.phf-content > * {
    margin: 0;
}

/* Entrance cascade (eyebrow → heading → text → button), replayed each time a slide becomes active.
   Keyframes (not [data-anim]) so content is never left hidden without JS. */
@keyframes phf-rise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.page-hero-featured-slide.is-active .phf-content > * {
    animation: phf-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.page-hero-featured-slide.is-active .phf-content > :nth-child(1) { animation-delay: 0.15s; }
.page-hero-featured-slide.is-active .phf-content > :nth-child(2) { animation-delay: 0.27s; }
.page-hero-featured-slide.is-active .phf-content > :nth-child(3) { animation-delay: 0.39s; }
.page-hero-featured-slide.is-active .phf-content > :nth-child(4) { animation-delay: 0.51s; }

.phf-card {
    animation: phf-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.phf-card:nth-child(1) { animation-delay: 0.6s; }
.phf-card:nth-child(2) { animation-delay: 0.7s; }
.phf-card:nth-child(3) { animation-delay: 0.8s; }

@media (prefers-reduced-motion: reduce) {
    .page-hero-featured-slide.is-active .phf-content > *,
    .phf-card {
        animation: none;
    }
}

.phf-content .page-hero-badge:not(.page-hero-badge--pill) {
    color: var(--color-site-bg);
}

.phf-content .page-hero-badge:not(.page-hero-badge--pill):not(.page-hero-badge--tri)::before {
    background: var(--color-site-bg);
}

.phf-heading {
    color: var(--color-site-bg);
}

.phf-text {
    color: color-mix(in srgb, var(--color-site-bg) 92%, transparent);
    max-width: 68ch;
}

.phf-text p {
    margin: 0 0 0.5rem;
}

.phf-text p:last-child {
    margin-bottom: 0;
}

.phf-button.arrow-link {
    color: var(--color-site-bg);
}

.phf-nav {
    align-self: flex-end;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.phf-dots {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.phf-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: color-mix(in srgb, var(--color-site-bg) 40%, transparent);
    cursor: pointer;
    transition: background 0.2s ease, width 0.2s ease;
}

.phf-dot.is-active {
    background: var(--color-site-bg);
    width: 22px;
    border-radius: 4px;
}

.phf-btn.btn-square {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    font-size: 0.8rem;
}

.phf-btn:focus-visible {
    outline: 2px solid var(--color-site-bg);
    outline-offset: 2px;
}

.phf-cards {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    width: 72%;
    margin: calc(var(--phf-card-overlap) * -1) auto 0;
}

.phf-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--color-container-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.phf-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.3);
}

.phf-card-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.phf-card-title {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-primary);
    text-transform: uppercase;
}

.phf-card-subtitle {
    color: var(--color-text);
    font-size: 0.9rem;
    opacity: 0.75;
}

.phf-card-icon {
    color: var(--color-accent);
    flex-shrink: 0;
}

/* Tablet and below: the 3 featured cards stack instead of sitting side by side */
@media (max-width: 768px) {
    .phf-cards {
        grid-template-columns: 1fr;
        width: 90%;
        margin: calc(var(--phf-card-overlap) * -1) auto 0;
    }

    .page-hero--featured-carousel,
    .phf-cards {
        --phf-card-overlap: 1.5rem;
    }

    .phf-row {
        padding: 2.25rem 6% calc(var(--phf-card-overlap) + var(--phf-gap));
        min-height: clamp(280px, 52vh, 380px);
        gap: 1rem;
    }

    .page-hero-featured-track {
        min-height: clamp(280px, 52vh, 380px);
    }

    .phf-row {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .phf-content-stack {
        width: 100%;
        max-width: 100%;
    }
    
    .phf-content {
        text-align: left;
    }
}