/* =========================================================
   THE KENNEDY COMPANY OF VA, INC.
   Custom Cassiopeia Child Template
   CLEANED + HOMEPAGE SPACING AUDIT
   ========================================================= */

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-VariableFont.ttf') format('truetype');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'Oswald';
    src: url('../fonts/Oswald-VariableFont_wght.ttf') format('truetype');
    font-style: normal;
    font-weight: 200 700;
    font-display: swap;
}

:root {
    --kennedy-black: #000000;
    --kennedy-white: #ffffff;
    --kennedy-accent: #CCFF00;
    --kennedy-dark: #111111;
    --kennedy-gray: #6b6b6b;
    --kennedy-project-gray: #DEDEDB;
    --kennedy-light-gray: #F3F3F1;
    --kennedy-experience-gray: #F5F5F3;
    --kennedy-body-font: 'Inter', Arial, sans-serif;
    --kennedy-heading-font: 'Oswald', Arial, sans-serif;

    /* Shared homepage content boundary */
    --kennedy-home-max: 1440px;
    --kennedy-home-gutter: 3.5rem;
    --kennedy-home-gutter-mobile: 2rem;

    --cassiopeia-color-primary: #000000;
    --cassiopeia-color-hover: #000000;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: var(--kennedy-body-font);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--kennedy-heading-font);
    font-weight: 600;
}

/* Remove Joomla spacing around homepage content */
body.itemid-101 .site-grid,
body.itemid-101 .container-component,
body.itemid-101 main,
body.itemid-101 .com-content-article,
body.itemid-101 .com-content-article__body {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.itemid-101 .container-footer {
    margin-top: 0 !important;
}

/* =========================================================
   HEADER
   ========================================================= */

header.container-header {
    background: #000 !important;
    background-image: none !important;
    color: #fff !important;
    box-shadow: none !important;
}

header.container-header .grid-child {
    max-width: 1440px;
}

header.container-header .site-description {
    display: none;
}

header.container-header > .grid-child:first-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

header.container-header .navbar-brand {
    margin: 0 !important;
    padding: 0.5rem 0 0 !important;
}

header.container-header .navbar-brand a,
header.container-header .navbar-brand a:visited {
    color: #fff !important;
    text-decoration: none;
}

header.container-header .navbar-brand img {
    display: block;
    width: 300px;
    max-width: 100%;
    height: auto;
}

header.container-header .container-nav {
    margin-top: -2.5rem !important;
    padding-top: 0 !important;
    padding-bottom: 0.5rem !important;
}

header.container-header .container-nav nav {
    margin: 0 !important;
    padding: 0 !important;
}

header.container-header .mod-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

header.container-header .mod-menu > li > a,
header.container-header .mod-menu > li > a:visited {
    font-family: var(--kennedy-body-font);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff !important;
}

header.container-header .mod-menu > li > a:hover,
header.container-header .mod-menu > li.active > a,
header.container-header .mod-menu > li.current > a {
    color: var(--kennedy-accent) !important;
}

/* =========================================================
   MOBILE / TABLET MENU
   ========================================================= */

.kennedy-mobile-menu-toggle {
    display: none;
}

@media (max-width: 1100px) {
    header.container-header {
        position: relative;
        z-index: 1000;
        padding: 0 !important;
    }

    header.container-header > .grid-child:first-child {
        width: 100% !important;
        min-height: 88px;
        display: flex;
        align-items: center;
        padding: 0 1.5rem !important;
        margin: 0 !important;
    }

    header.container-header .navbar-brand {
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    header.container-header .navbar-brand img {
        width: 185px !important;
        max-width: 55vw !important;
    }

    .kennedy-mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.55rem;
        position: absolute;
        right: 1.5rem;
        bottom: 1.5rem;
        min-width: 94px;
        height: 42px;
        padding: 0 0.85rem;
        border: 1px solid var(--kennedy-accent);
        background: transparent;
        color: #fff;
        font-family: var(--kennedy-body-font);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        cursor: pointer;
        z-index: 1002;
    }

    .kennedy-mobile-menu-toggle .kennedy-menu-symbol {
        color: var(--kennedy-accent);
        font-size: 1.35rem;
        font-weight: 400;
        line-height: 1;
    }

    header.container-header .container-nav {
        display: none !important;
        position: absolute;
        top: 88px;
        left: 0;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #000 !important;
        z-index: 1001;
    }

    header.container-header #mod-menu1 {
        display: none !important;
    }

    header.container-header.kennedy-menu-open .container-nav {
        display: block !important;
    }

    header.container-header.kennedy-menu-open #mod-menu1 {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0.75rem 1.5rem 1.5rem !important;
        gap: 0 !important;
    }

    header.container-header.kennedy-menu-open #mod-menu1 > li {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid #292929;
        text-align: left !important;
    }

    header.container-header.kennedy-menu-open #mod-menu1 > li > a,
    header.container-header.kennedy-menu-open #mod-menu1 > li > a:visited {
        position: relative;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100% !important;
        margin: 0 !important;
        padding: 1rem 0 !important;
        color: #fff !important;
        text-decoration: none !important;
        font-size: 0.9rem !important;
        font-weight: 600;
        letter-spacing: 0.055em !important;
        line-height: 1.2 !important;
        text-transform: uppercase;
    }

    header.container-header.kennedy-menu-open #mod-menu1 > li > a::after {
        content: "›";
        color: var(--kennedy-accent);
        font-size: 1.35rem;
        font-weight: 400;
        line-height: 1;
    }

    header.container-header.kennedy-menu-open #mod-menu1 > li.active > a,
    header.container-header.kennedy-menu-open #mod-menu1 > li.current > a {
        color: var(--kennedy-accent) !important;
    }
}

@media (max-width: 768px) {
    header.container-header.kennedy-menu-open .container-nav {
        background: #000 !important;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    }

    header.container-header.kennedy-menu-open #mod-menu1 {
        padding-top: 0.4rem !important;
        padding-bottom: 0.8rem !important;
    }

    header.container-header.kennedy-menu-open #mod-menu1 > li > a,
    header.container-header.kennedy-menu-open #mod-menu1 > li > a:visited {
        padding-top: 0.78rem !important;
        padding-bottom: 0.78rem !important;
    }

    header.container-header.kennedy-menu-open .container-nav::after {
        content: "";
        display: block;
        height: 0.6rem;
        background: #000;
    }
}

/* =========================================================
   HOMEPAGE HERO
   ========================================================= */

.kennedy-hero {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: none;
    height: 570px;
    min-height: 0;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    background: #000;
    z-index: 1;
}

body.itemid-101 .kennedy-hero {
    margin-top: 0 !important;
}

.kennedy-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.96) 0%,
            rgba(0, 0, 0, 0.88) 34%,
            rgba(0, 0, 0, 0.46) 62%,
            rgba(0, 0, 0, 0.10) 100%
        ),
        url('/images/kennedy/The%20Kennedy%20Company%20of%20VA%20Inc.webp')
        center center / cover no-repeat;
    filter: grayscale(100%);
    z-index: 0;
}

.kennedy-hero__content {
    position: relative !important;
    z-index: 2;
    display: block !important;
    width: min(calc(100% - (2 * var(--kennedy-home-gutter))), var(--kennedy-home-max)) !important;
    max-width: var(--kennedy-home-max) !important;
    margin: 0 auto !important;
    padding: 3rem 0 4.5rem !important;
    box-sizing: border-box !important;
    color: #fff;
}

.kennedy-hero__eyebrow {
    margin: 0 0 2rem;
    font-family: var(--kennedy-body-font);
    font-size: clamp(0.95rem, 1.2vw, 1.25rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--kennedy-accent);
}

.kennedy-hero__eyebrow::after {
    content: "";
    display: block;
    width: 86px;
    height: 4px;
    margin-top: 1rem;
    background: var(--kennedy-accent);
}

.kennedy-hero__title {
    margin: 0 0 1.25rem !important;
    max-width: 760px;
    font-family: var(--kennedy-heading-font);
    font-size: clamp(3.25rem, 5.5vw, 6.25rem) !important;
    font-weight: 700;
    line-height: 0.93;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    color: #fff;
}

.kennedy-hero__button {
    position: relative !important;
    top: 0 !important;
    display: inline-flex !important;
    align-items: center;
    min-height: 38px !important;
    margin: 1rem 0 1.15rem !important;
    padding: 0 1.15rem !important;
    border: 2px solid var(--kennedy-accent);
    background: transparent;
    font-family: var(--kennedy-body-font);
    font-size: 0.72rem !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1 !important;
    text-decoration: none;
    color: var(--kennedy-accent) !important;
    transition: 0.2s ease;
}

.kennedy-hero__button:hover {
    color: #000 !important;
    background: var(--kennedy-accent);
}

.kennedy-hero__capabilities {
    position: static !important;
    display: block !important;
    width: auto !important;
    max-width: none !important;
    margin: 0.55rem 0 0 !important;
    font-size: clamp(0.95rem, 1.25vw, 1.2rem);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-align: left !important;
    color: #fff;
}

.kennedy-hero__capabilities span {
    padding: 0 0.8rem;
    color: var(--kennedy-accent);
}

/* =========================================================
   HOMEPAGE - 39 YEARS EXPERIENCE
   ========================================================= */

.kennedy-experience {
    position: relative;
    z-index: 2;
    left: 50%;
    width: 100vw;
    max-width: none;
    transform: translateX(-50%);
    margin-top: -52px;
    padding: calc(52px + 1.5rem) 0 2.5rem;
    clip-path: polygon(0 0, 100% 52px, 100% 100%, 0 100%);
    background: var(--kennedy-experience-gray);
    color: #000;
}

.kennedy-experience::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 56px;
    background: var(--kennedy-accent);
    clip-path: polygon(0 0, 100% 52px, 100% 56px, 0 4px);
    z-index: 10;
    pointer-events: none;
}

.kennedy-experience__inner {
    width: min(92%, 1280px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 30% 1fr;
    align-items: center;
    gap: 3.5rem;
}

.kennedy-experience__number {
    text-align: center;
    border-right: 1px solid #c7c7c7;
    padding-right: 3.5rem;
}

.kennedy-experience__39 {
    font-family: var(--kennedy-heading-font);
    font-size: clamp(9rem, 16vw, 14rem);
    font-weight: 700;
    line-height: 0.75;
    letter-spacing: -0.04em;
    color: #000;
}

.kennedy-experience__years {
    margin-top: 1.25rem;
    font-family: var(--kennedy-heading-font);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
}

.kennedy-experience__accent {
    width: 130px;
    height: 4px;
    margin: 1.35rem auto 0;
    background: var(--kennedy-accent);
}

.kennedy-experience__copy {
    max-width: 720px;
}

.kennedy-experience__eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #555;
}

.kennedy-experience__copy h2 {
    margin: 0;
    font-family: var(--kennedy-heading-font);
    font-size: clamp(2.4rem, 4vw, 4.25rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #000;
}

.kennedy-experience__line {
    width: 55px;
    height: 4px;
    margin: 1.35rem 0 1.5rem;
    background: var(--kennedy-accent);
}

.kennedy-experience__copy p {
    max-width: 650px;
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.65;
    color: #333;
}

.kennedy-experience__copy p:last-child {
    margin-bottom: 0;
}

.kennedy-experience__copy .kennedy-experience__lead {
    font-size: 1.08rem;
    color: #111;
}

/* =========================================================
   HOMEPAGE - FEATURED PROJECTS
   ========================================================= */

.kennedy-projects {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: none;
    transform: translateX(-50%);
    margin-bottom: 0 !important;
    padding: 5rem 0 3.5rem;
    background: var(--kennedy-project-gray);
    color: #111;
}

.kennedy-projects + * {
    margin-top: 0 !important;
}

.kennedy-projects__header,
.kennedy-projects__grid {
    width: min(calc(100% - (2 * var(--kennedy-home-gutter))), var(--kennedy-home-max));
    max-width: var(--kennedy-home-max);
    margin-left: auto;
    margin-right: auto;
}

.kennedy-projects__header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 2rem;
    margin-bottom: 2rem;
}

.kennedy-projects__eyebrow {
    margin: 0 0 0.55rem;
    color: var(--kennedy-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.kennedy-projects__header h2 {
    margin: 0;
    font-family: var(--kennedy-heading-font);
    font-size: clamp(2.8rem, 4.6vw, 5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #111;
}

.kennedy-projects__all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 1.3rem;
    border: 1px solid #111;
    color: #111 !important;
    font-size: 0.72rem;
    font-weight: 800;
    text-decoration: none;
}

.kennedy-projects__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.kennedy-project-card {
    display: block;
    background: #fff;
    color: #111 !important;
    text-decoration: none;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kennedy-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.kennedy-project-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: grayscale(25%);
}

.kennedy-project-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.kennedy-project-card:nth-child(3) .kennedy-project-card__image img {
    object-position: center top;
}

.kennedy-project-card__content {
    padding: 1.25rem 1.35rem 1.4rem;
}

.kennedy-project-card h3 {
    margin: 0 0 0.55rem;
    font-family: var(--kennedy-heading-font);
    font-size: 1.35rem;
    line-height: 1;
}

.kennedy-project-card__location {
    margin: 0 0 0.2rem;
    font-size: 0.68rem;
    font-weight: 600;
}

.kennedy-project-card__type {
    margin: 0 0 1.2rem;
    color: #B7FF00;
    font-size: 0.68rem;
    font-weight: 800;
}

.kennedy-project-card__link {
    font-size: 0.72rem;
    font-weight: 800;
}

/* =========================================================
   HOMEPAGE - SPECIALIZED CAPABILITIES
   ========================================================= */

.kennedy-capabilities {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: none;
    transform: translateX(-50%);
    padding: 4.5rem 0 2.75rem;
    background: var(--kennedy-light-gray);
    color: #111;
}

.kennedy-capabilities__inner {
    width: min(
        calc(100% - (2 * var(--kennedy-home-gutter))),
        var(--kennedy-home-max)
    );

    max-width: var(--kennedy-home-max);
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.45fr repeat(4, 1fr);

    align-items: stretch;
}

.kennedy-capabilities__intro {
    padding: 0 3rem 0 0;
}


.kennedy-capabilities__intro h2 {
    margin: 0;
    color: #111;
    font-family: var(--kennedy-heading-font);
    font-size: clamp(2.4rem, 3vw, 3.6rem);
    font-weight: 700;
    line-height: 0.98;
    text-transform: uppercase;
}

.kennedy-capabilities__intro h2 span {
    color: var(--kennedy-accent);
}

.kennedy-capabilities__accent {
    width: 55px;
    height: 5px;
    margin: 2rem 0;
    background: var(--kennedy-accent);
}

.kennedy-capabilities__intro p {
    max-width: 310px;
    margin: 0 0 2.2rem;
    color: #111;
    font-size: 1rem;
    line-height: 1.75;
}

.kennedy-capabilities__all {
    display: inline-block;
    margin: 0;
    padding: 1rem 1.5rem;
    border: 1px solid #111;
    color: #111 !important;
    font-weight: 700;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: 0.2s ease;
}

.kennedy-capabilities__all:hover {
    background: #111;
    color: var(--kennedy-accent) !important;
}

.kennedy-capability {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 2rem;
    box-sizing: border-box;
    color: #111 !important;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
}


.kennedy-capability__icon {
    display: block;
    position: static;
    width: 125px;
    height: 125px;
    max-width: 125px;
    margin: 0 auto 2.25rem;
    object-fit: contain;
    object-position: center;
    transform: scale(1.35);
    transform-origin: center center;
}

/* Optical corrections retained from the current desktop layout */
.kennedy-capabilities__inner > .kennedy-capability:nth-child(2) .kennedy-capability__icon {
    transform: translateX(-16px) scale(1.35);
}

.kennedy-capabilities__inner > .kennedy-capability:nth-child(3) .kennedy-capability__icon {
    transform: translateX(8px) scale(1.35);
}

.kennedy-capabilities__inner > .kennedy-capability:nth-child(4) .kennedy-capability__icon {
    transform: translateX(-18px) scale(1.35);
}

.kennedy-capabilities__inner > .kennedy-capability:nth-child(5) .kennedy-capability__icon {
    transform: translateX(8px) scale(1.35);
}

.kennedy-capability h3,
.kennedy-capability p {
    width: 190px;
    max-width: 190px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.kennedy-capability h3 {
    margin-top: 0;
    margin-bottom: 1.6rem;
    color: #111;
    font-family: var(--kennedy-heading-font);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.kennedy-capability h3::after {
    content: "";
    display: block;
    width: 42px;
    height: 4px;
    margin-top: 0.9rem;
    background: var(--kennedy-accent);
}

.kennedy-capability p {
    margin-top: 0;
    margin-bottom: 0;
    color: #111;
    font-size: 0.95rem;
    line-height: 1.75;
}

.kennedy-capability:hover h3,
.kennedy-capability:hover p {
    color: #111 !important;
}

/* =========================================================
   FOOTER
   ========================================================= */

.container-footer {
    display: block !important;
    width: 100% !important;
}

.container-footer .grid-child {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.container-footer .mod-custom {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.kennedy-footer {
    width: 100%;
    background: #000;
    color: #fff;
}

.kennedy-footer__inner {
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(82vw, 1180px) !important;
    max-width: 1180px !important;
    margin: 0 !important;
    padding: 2.5rem 0 1.5rem !important;
    box-sizing: border-box !important;
}

.kennedy-footer__top {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3rem !important;
    width: 100% !important;
    padding-bottom: 1.75rem;
}

.kennedy-footer__brand img {
    display: block;
    width: 180px !important;
    max-width: 180px !important;
    height: auto !important;
}

.kennedy-footer__nav {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2.5rem !important;
    flex-wrap: nowrap !important;
}

.kennedy-footer .kennedy-footer__nav a {
    font-family: var(--kennedy-body-font) !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: #fff;
    text-decoration: none;
}

.kennedy-footer__nav a:hover,
.kennedy-footer__nav a:focus {
    color: var(--kennedy-accent);
}

.kennedy-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--kennedy-body-font);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

@media (max-width: 1100px) {
.kennedy-capabilities__inner {
    width: calc(100% - (2 * var(--kennedy-home-gutter-mobile)));

    grid-template-columns:
        260px
        minmax(0, 1fr)
        minmax(0, 1fr);

    column-gap: 2.25rem;
    row-gap: 2rem;
}

.kennedy-capabilities__intro {
    grid-column: 1;
    grid-row: 1 / 3;

    width: auto;
    padding: 0;
}

.kennedy-capabilities__intro p {
    max-width: 260px;
}

.kennedy-capability {
    min-width: 0;
    padding: 0 0.75rem;
}

.kennedy-capability__icon,
.kennedy-capabilities__inner > .kennedy-capability:nth-child(2) .kennedy-capability__icon,
.kennedy-capabilities__inner > .kennedy-capability:nth-child(3) .kennedy-capability__icon,
.kennedy-capabilities__inner > .kennedy-capability:nth-child(4) .kennedy-capability__icon,
.kennedy-capabilities__inner > .kennedy-capability:nth-child(5) .kennedy-capability__icon {
    transform: none;
}

}
/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {
    /* One shared homepage left/right boundary */
    .kennedy-hero__content,
    .kennedy-projects__header,
    .kennedy-projects__grid,
    .kennedy-capabilities__inner {
        width: calc(100% - (2 * var(--kennedy-home-gutter-mobile))) !important;
        max-width: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }

    /* Hero */
    .kennedy-hero {
        height: auto;
        min-height: auto;
    }

    .kennedy-hero::before {
        background-position: 70% center !important;
    }

    .kennedy-hero__content {
        padding: 1.5rem 0 3.4rem !important;
    }

    .kennedy-hero__eyebrow {
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }

    .kennedy-hero__eyebrow::after {
        width: 70px;
        height: 3px;
        margin-top: 0.8rem;
    }

    .kennedy-hero__title {
        max-width: 82% !important;
        font-size: clamp(2.4rem, 10.5vw, 3.25rem) !important;
        line-height: 0.92 !important;
    }

.kennedy-hero__button {
    min-height: 42px !important;
    margin-top: 0.8rem !important;
    margin-bottom: 0.55rem !important;
    padding: 0 1.15rem !important;
    border-width: 1px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
}

    .kennedy-hero__capabilities {
        display: none !important;
    }

    /* Experience */
    .kennedy-experience {
        padding-top: 3rem !important;
        padding-bottom: 2.5rem !important;
    }

    .kennedy-experience__inner {
        width: calc(100% - (2 * var(--kennedy-home-gutter-mobile)));
        margin: 0 auto;
        display: grid !important;
        grid-template-columns: 1fr 28% !important;
        gap: 1rem !important;
        align-items: start !important;
    }

    .kennedy-experience__copy {
        order: 1 !important;
    }

    .kennedy-experience__number {
        order: 2 !important;
        position: relative;
        padding: 2.2rem 0 0 0.8rem !important;
        border-left: 1px solid #d5d5d5 !important;
        border-right: 0 !important;
        border-bottom: 0 !important;
        text-align: center !important;
    }

    .kennedy-experience__number::after {
        display: none !important;
    }

    .kennedy-experience__39 {
        font-size: clamp(4.8rem, 19vw, 6rem) !important;
    }

    .kennedy-experience__years {
        margin-top: 0.55rem !important;
        font-size: 1.15rem !important;
    }

    .kennedy-experience__accent {
        width: 70px;
        margin-top: 1rem;
    }

    .kennedy-experience__eyebrow {
        font-size: 0.68rem;
        letter-spacing: 0.06em;
    }

    .kennedy-experience__copy h2 {
        font-size: clamp(1.65rem, 6.5vw, 2rem) !important;
        line-height: 0.98;
    }

    .kennedy-experience__line {
        margin: 1rem 0 1.1rem;
    }

    .kennedy-experience__copy p,
    .kennedy-experience__copy .kennedy-experience__lead {
        font-size: 0.88rem;
        line-height: 1.55;
    }

    /* Featured Projects */
    .kennedy-projects {
        left: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        padding: 3rem 0 2.75rem;
        overflow: hidden;
        box-sizing: border-box;
    }

    .kennedy-projects__header {
        display: block;
        margin-bottom: 1.5rem;
    }

    .kennedy-projects__all {
        margin-top: 1.25rem;
    }

    .kennedy-projects__grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .kennedy-project-card,
    .kennedy-project-card__image,
    .kennedy-project-card__image img {
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    /* Specialized Capabilities */
    .kennedy-capabilities {
        left: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        padding: 3.5rem 0 2.75rem;
        overflow: hidden;
        box-sizing: border-box;
    }

    .kennedy-capabilities__inner {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        column-gap: 18px !important;
        row-gap: 1.5rem !important;
    }

    .kennedy-capabilities__intro {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 0 1.5rem !important;
    }

    .kennedy-capabilities__intro p {
        margin-bottom: 1.75rem !important;
    }

    .kennedy-capabilities__all {
        margin: 0 !important;
    }

    .kennedy-capability {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0.4rem 0.25rem 1rem !important;
        box-sizing: border-box !important;
    }

    .kennedy-capability__icon,
    .kennedy-capabilities__inner > .kennedy-capability:nth-child(2) .kennedy-capability__icon,
    .kennedy-capabilities__inner > .kennedy-capability:nth-child(3) .kennedy-capability__icon,
    .kennedy-capabilities__inner > .kennedy-capability:nth-child(4) .kennedy-capability__icon,
    .kennedy-capabilities__inner > .kennedy-capability:nth-child(5) .kennedy-capability__icon {
        width: 90px !important;
        height: 90px !important;
        max-width: 90px !important;
        margin: 0 auto 0.75rem !important;
        object-fit: contain !important;
        object-position: center !important;
        transform: none !important;
    }


    .kennedy-capability h3,
    .kennedy-capability p {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        text-align: left !important;
    }

    .kennedy-capability h3 {
        margin-top: 0 !important;
        margin-bottom: 0.9rem !important;
        font-size: 1.35rem !important;
    }

    .kennedy-capability p {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        font-size: 0.88rem !important;
        line-height: 1.45 !important;
    }

    .kennedy-capability:hover {
        transform: none;
    }

    /* Footer */
    .kennedy-footer__inner {
        width: 90% !important;
        max-width: 90% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 2.25rem 0 1.5rem !important;
    }

    .kennedy-footer__top {
        flex-direction: column !important;
        gap: 1.75rem !important;
        width: 100% !important;
        padding-bottom: 1.75rem;
    }

    .kennedy-footer__brand img {
        width: 190px !important;
        max-width: 190px !important;
        margin: 0 auto !important;
    }

    .kennedy-footer__nav {
        width: 100% !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 1rem 1.5rem !important;
    }

    .kennedy-footer__nav a {
        font-size: 0.82rem !important;
        font-weight: 500 !important;
        letter-spacing: 0.05em !important;
    }

    .kennedy-footer__bottom {
        margin-top: 0 !important;
        padding-top: 1.35rem !important;
        font-size: 0.72rem !important;
        line-height: 1.5 !important;
    }
}
/* ==========================================================
   COMPANY PAGE — HERO
   ========================================================== */

.kennedy-company-hero {
    position: relative;
    width: 100%;
    background: #f3f3f0;
}

.kennedy-company-hero__inner {
    display: grid;
    grid-template-columns: 40% 60%;
    min-height: 620px;
}


/* LEFT SIDE
---------------------------------------------------------- */

.kennedy-company-hero__copy {
    padding: 70px 55px 70px max(
        var(--kennedy-home-gutter, 55px),
        calc((100vw - 1440px) / 2)
    );

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kennedy-company-hero__eyebrow {
    font-family: var(--kennedy-body-font);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #555;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.kennedy-company-hero__eyebrow::after {
    content: "";
    display: block;
    width: 58px;
    height: 4px;
    background: #ccff00;
    margin-top: 12px;
}


/* MAIN HEADLINE
---------------------------------------------------------- */

.kennedy-company-hero h1 {
    font-family: var(--kennedy-heading-font);
    font-size: clamp(3.5rem, 4.5vw, 5.2rem);
    line-height: 0.94;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    margin: 0 0 28px;
}


/* FOUNDED LINE
---------------------------------------------------------- */

.kennedy-company-hero__founded {
    font-family: var(--kennedy-body-font);
    font-size: 1.25rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #9cc900;
    text-transform: uppercase;
    margin-bottom: 28px;
}


/* BODY COPY
---------------------------------------------------------- */

.kennedy-company-hero__copy p {
    font-family: var(--kennedy-body-font);
    font-size: 1.05rem;
    line-height: 1.7;
    color: #111;
    max-width: 590px;
    margin: 0 0 32px;
}


/* HISTORY BUTTON
---------------------------------------------------------- */

.kennedy-company-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    padding: 15px 25px;

    border: 1px solid #111;

    font-family: var(--kennedy-body-font);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;

    color: #111;
    text-decoration: none;

    transition: background-color 0.2s ease,
                color 0.2s ease,
                border-color 0.2s ease;
}

.kennedy-company-hero__button:hover {
    background: #111;
    color: #ccff00;
    border-color: #111;
    text-decoration: none;
}


/* TEMPORARY IMAGE AREA
   We'll replace this with your photograph later.
---------------------------------------------------------- */

.kennedy-company-hero__image {
    position: relative;
    z-index: 0;
    min-height: 520px;

    margin-left: 0;
    width: 100%;

    overflow: visible;
}

/* Fade the concrete side into the future photograph */
.kennedy-company-hero__image::before {
    content: "";
    position: absolute;
    z-index: 2;

    top: 0;
    bottom: 0;
    left: -260px;
    width: 520px;

background: linear-gradient(
    90deg,
    rgba(243,243,240,1) 0%,
    rgba(243,243,240,1) 55%,
    rgba(243,243,240,0.95) 65%,
    rgba(243,243,240,0.70) 76%,
    rgba(243,243,240,0.38) 86%,
    rgba(243,243,240,0.12) 94%,
    rgba(243,243,240,0) 100%
);

    pointer-events: none;
}
/* Make Company hero full-width outside Joomla article container */
.kennedy-company-hero {
    position: relative;
    width: 100vw;
    max-width: none;

    left: auto;
    transform: none;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
/* Allow Company hero to escape the Joomla article container */
.com-content-article:has(.kennedy-company-hero),
.com-content-article__body:has(.kennedy-company-hero) {
    overflow: visible !important;
}
/* Remove Joomla spacing above Company hero */
body:has(.kennedy-company-hero) main,
body:has(.kennedy-company-hero) .site-grid {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.kennedy-company-hero {
    margin-top: 0 !important;
}


/* ==========================================================
   COMPANY HERO — TABLET
   ========================================================== */

@media (max-width: 1100px) {

    .kennedy-company-hero__inner {
        grid-template-columns: 50% 50%;
        min-height: 520px;
    }

    .kennedy-company-hero__copy {
        padding: 55px 38px;
    }

    .kennedy-company-hero__image {
        min-height: 520px;
    }

}


/* ==========================================================
   COMPANY HERO — MOBILE
   Scale like homepage hero
   ========================================================== */

@media (max-width: 700px) {

    .kennedy-company-hero {
        overflow: hidden;
    }

    .kennedy-company-hero__inner {
        position: relative;
        display: block;
        min-height: 530px;
    }

    /* Future photo stays behind the hero instead of
       becoming a separate tall column */
.kennedy-company-hero__image {
    position: absolute;
    z-index: 0;

    top: 0;
    right: 0;
    bottom: 0;

    width: 50%;
    min-height: 0;

    overflow: visible;
}

    /* Softer transition from concrete into image */
    .kennedy-company-hero__image::before {
        content: "";
        position: absolute;
        z-index: 2;

        top: 0;
        bottom: 0;
        left: -110px;
        width: 180px;

        background: linear-gradient(
            to right,
            rgba(243,243,240,1) 0%,
            rgba(243,243,240,0.96) 25%,
            rgba(243,243,240,0.72) 50%,
            rgba(243,243,240,0.30) 76%,
            rgba(243,243,240,0) 100%
        );

        pointer-events: none;
    }

    .kennedy-company-hero__image::after {
        display: none;
    }

.kennedy-company-hero__copy {
    position: relative;
    z-index: 5;

    width: 50%;
    min-width: 0;

padding:
    1.25rem 1.35rem
    1.25rem
    var(--kennedy-home-gutter-mobile, 2rem);

    box-sizing: border-box;
}

    .kennedy-company-hero__eyebrow {
        margin-bottom: 1.25rem;
        font-size: 0.72rem;
        line-height: 1.2;
        white-space: nowrap;
    }

    .kennedy-company-hero__eyebrow::after {
        width: 44px;
        height: 3px;
        margin-top: 0.7rem;
    }

.kennedy-company-hero h1 {
    margin: 0 0 1.25rem;

    font-size: clamp(1.75rem, 7.2vw, 2.35rem);
    line-height: 0.94;
    white-space: nowrap;
}

    .kennedy-company-hero__founded {
        margin-bottom: 1.25rem;

        font-size: 0.78rem;
        line-height: 1.2;

        white-space: nowrap;
    }

    .kennedy-company-hero__copy p {
        width: 100%;
        max-width: 100%;

        margin: 0;

        font-size: 0.78rem;
        line-height: 1.55;
    }
}
/* ==========================================================
   COMPANY PAGE — HISTORY / CLIPPER ARTICLE
   ========================================================== */

.kennedy-company-history {
    position: relative;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 4.5rem 0;
    background: #fff;
    color: #111;
}

.kennedy-company-history__inner {
    width: min(
        calc(100% - (2 * var(--kennedy-home-gutter))),
        var(--kennedy-home-max)
    );
    max-width: var(--kennedy-home-max);
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 4.5rem;
    align-items: center;
}


/* Clipper article
---------------------------------------------------------- */

.kennedy-company-history__image {
    width: 100%;
}

.kennedy-company-history__image img {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
}


/* History text
---------------------------------------------------------- */

.kennedy-company-history__copy {
    width: 100%;
    max-width: 620px;
}

.kennedy-company-history__eyebrow {
    margin: 0 0 0.9rem;

    font-family: var(--kennedy-body-font);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: var(--kennedy-accent);
}

.kennedy-company-history__copy h2 {
    margin: 0;

    font-family: var(--kennedy-heading-font);
    font-size: clamp(2.6rem, 3.5vw, 4rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.02em;
    text-transform: uppercase;

    color: #111;
}

.kennedy-company-history__line {
    width: 56px;
    height: 4px;
    margin: 1.25rem 0 1.75rem;
    background: var(--kennedy-accent);
}

.kennedy-company-history__copy p {
    margin: 0 0 1.15rem;

    font-family: var(--kennedy-body-font);
    font-size: 1rem;
    line-height: 1.7;

    color: #222;
}

.kennedy-company-history__copy p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   COMPANY HISTORY — TABLET
   ========================================================== */

@media (max-width: 1100px) {

    .kennedy-company-history {
        padding: 4rem 0;
    }

    .kennedy-company-history__inner {
        width: calc(100% - (2 * var(--kennedy-home-gutter-mobile)));
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 3rem;
    }

    .kennedy-company-history__copy h2 {
        font-size: clamp(2.3rem, 4vw, 3.4rem);
    }
}


/* ==========================================================
   COMPANY HISTORY — MOBILE
   ========================================================== */

@media (max-width: 700px) {

    .kennedy-company-history {
        padding: 3rem 0;
    }

    .kennedy-company-history__inner {
        width: calc(100% - (2 * var(--kennedy-home-gutter-mobile)));
        display: flex;
        flex-direction: column;
        gap: 2.25rem;
    }

    .kennedy-company-history__image img {
        width: 100%;
        max-width: 100%;
    }

    .kennedy-company-history__copy {
        max-width: none;
    }

    .kennedy-company-history__copy h2 {
        font-size: 2.5rem;
    }

    .kennedy-company-history__copy p {
        font-size: 0.95rem;
        line-height: 1.65;
    }
}
/* Company hero photo - black and white */
.kennedy-company-hero__photo {
    filter: grayscale(100%);
}
/* ==========================================================
   COMPANY HERO — FINAL DESKTOP PHOTO TREATMENT
   ========================================================== */
/* ==========================================================
   COMPANY HERO — DESKTOP
   MATCH STANDARD INTERIOR HERO
   ========================================================== */

/* ==========================================================
   COMPANY HERO — FINAL DESKTOP PHOTO TREATMENT
   ========================================================== */

@media (min-width: 701px) {

    /* COMPANY HERO — MATCH MASTER INTERIOR HERO */

    .kennedy-company-hero:not(.kennedy-capabilities-page-hero)
    .kennedy-company-hero__inner {
        position: relative;
        display: block;
        min-height: 560px;
        overflow: hidden;
        background: #f3f3f0;
    }

    .kennedy-company-hero:not(.kennedy-capabilities-page-hero)
    .kennedy-company-hero__image {
        position: absolute;
        z-index: 0;
        inset: 0;

        width: 100%;
        height: 100%;
        min-height: 0;

        margin: 0;
        overflow: hidden;
    }

    .kennedy-company-hero:not(.kennedy-capabilities-page-hero)
    .kennedy-company-hero__photo {
        position: absolute;
        inset: 0;

        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: left 20%;

        filter: grayscale(100%);
    }

    /* KEEP THIS FADE — MASTER INTERIOR HERO FADE */
    .kennedy-company-hero:not(.kennedy-capabilities-page-hero)
    .kennedy-company-hero__image::before {
        content: "";
        position: absolute;
        z-index: 2;

        top: 0;
        bottom: 0;
        left: 0;
        width: 62%;

        background: linear-gradient(
            90deg,
            rgba(243,243,240,1) 0%,
            rgba(243,243,240,1) 18%,
            rgba(243,243,240,0.88) 34%,
            rgba(243,243,240,0.46) 62%,
            rgba(243,243,240,0.10) 82%,
            rgba(243,243,240,0) 100%
        );

        pointer-events: none;
    }

    .kennedy-company-hero:not(.kennedy-capabilities-page-hero)
    .kennedy-company-hero__copy {
        position: relative;
        z-index: 3;

        width: 40%;
        min-height: 560px;

        box-sizing: border-box;
        background: transparent;
    }

    .kennedy-company-hero:not(.kennedy-capabilities-page-hero)
    .kennedy-company-hero__copy h1 {
        max-width: 430px;
    }

    .kennedy-company-hero:not(.kennedy-capabilities-page-hero)
    .kennedy-company-hero__founded {
        max-width: 300px;
    }

    .kennedy-company-hero:not(.kennedy-capabilities-page-hero)
    .kennedy-company-hero__copy > p:last-of-type {
        max-width: 300px;
    }
}


/* Company hero photo - mobile fit */
@media (max-width: 700px) {

    .kennedy-company-hero__photo {
        position: absolute;
        inset: 0;

        display: block;
        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center;

        filter: grayscale(100%);
    }
    .kennedy-company-hero__image::before {
        content: "";
        position: absolute;
        z-index: 2;

        top: 0;
        bottom: 0;
        left: 0;
        width: 110px;

        background: linear-gradient(
            to right,
            rgba(243,243,240,1) 0%,
            rgba(243,243,240,0.92) 18%,
            rgba(243,243,240,0.68) 40%,
            rgba(243,243,240,0.34) 65%,
            rgba(243,243,240,0.10) 82%,
            rgba(243,243,240,0) 100%
        );

        pointer-events: none;
    }  

}
/* ==========================================================
   CAREERS HERO — MOBILE ONLY
   Text over photo with top-to-bottom fade
   ========================================================== */

@media (max-width: 700px) {

.kennedy-careers-page-hero .kennedy-company-hero__inner {
    position: relative !important;
    display: block !important;

    width: 100% !important;

    overflow: hidden !important;
    background: #f3f3f0;
}


    /* PHOTO FILLS ENTIRE HERO */
    .kennedy-careers-page-hero .kennedy-company-hero__image {
        position: absolute !important;
        inset: 0 !important;

        width: 100% !important;
        height: 100% !important;

        overflow: hidden !important;
    }


    /* PHOTO */
    .kennedy-careers-page-hero__photo {
        position: absolute !important;
        inset: 0 !important;

        width: 100% !important;
        height: 100% !important;

        object-fit: cover !important;
        object-position: 50% 50% !important;

        filter: grayscale(100%) !important;
    }


    /* TOP-TO-BOTTOM GRAY FADE */
    .kennedy-careers-page-hero .kennedy-company-hero__image::before {
        content: "" !important;

        display: block !important;

        position: absolute !important;
        z-index: 2 !important;

        top: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        left: 0 !important;

        width: 100% !important;
        height: 47% !important;

        background: linear-gradient(
            180deg,
            rgba(243,243,240,1) 0%,
            rgba(243,243,240,1) 18%,
            rgba(243,243,240,0.96) 28%,
            rgba(243,243,240,0.82) 42%,
            rgba(243,243,240,0.55) 58%,
            rgba(243,243,240,0.24) 76%,
            rgba(243,243,240,0) 100%
        ) !important;

        pointer-events: none;
    }


/* TEXT SITS ON TOP OF PHOTO */
.kennedy-careers-page-hero .kennedy-company-hero__copy {
    position: relative !important;
    z-index: 3 !important;

    width: 100% !important;
    min-height: 0 !important;

    padding:
        1.5rem
        var(--kennedy-home-gutter-mobile, 2rem)
        0 !important;

    box-sizing: border-box;

    background: transparent !important;
}


    /* CAREERS */
    .kennedy-careers-page-hero .kennedy-company-hero__eyebrow {
        margin: 0 0 1.1rem !important;

        font-size: 0.72rem !important;
        line-height: 1.2 !important;
    }


    /* HEADLINE */
.kennedy-careers-page-hero .kennedy-company-hero h1 {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;

    font-size: clamp(2.35rem, 9.5vw, 3.1rem) !important;
    line-height: 0.92 !important;

    white-space: normal !important;
}


    /* HIDE ONLY ON MOBILE */
    .kennedy-careers-page-hero .kennedy-company-hero__founded,
    .kennedy-careers-page-hero .kennedy-company-hero__copy > p:last-of-type {
        display: none !important;
    }

}

@media (min-width: 701px) {
    .kennedy-careers-page-hero__photo {
        object-position: 45% bottom !important;
    }
}


/* =========================================================
   COMPANY PAGE — FAMILY LEGACY
   BLACK 3-COLUMN LAYOUT
   ========================================================= */

.kennedy-family-legacy {
    position: relative;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    padding: 2.75rem 0 3rem;
    background: #050505;
    color: #fff;
}

.kennedy-family-legacy__inner {
    width: min(
        calc(100% - (2 * var(--kennedy-home-gutter))),
        var(--kennedy-home-max)
    );
    max-width: var(--kennedy-home-max);
    margin: 0 auto;

    display: grid;
    grid-template-columns:
        minmax(300px, 0.95fr)
        minmax(360px, 1.05fr)
        minmax(300px, 0.88fr);

    gap: 3rem;
    align-items: start;
}
.kennedy-family-legacy {
    position: relative;
    overflow: hidden;
}
.kennedy-family-legacy::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 34px;

    background: #f3f3f0;

    clip-path: polygon(
        0% 70%,
        3% 58%,
        6% 68%,
        10% 55%,
        14% 72%,
        18% 62%,
        22% 74%,
        27% 60%,
        31% 70%,
        36% 57%,
        41% 72%,
        46% 62%,
        51% 76%,
        56% 60%,
        61% 70%,
        66% 56%,
        71% 72%,
        76% 61%,
        81% 75%,
        86% 60%,
        91% 70%,
        96% 58%,
        100% 68%,
        100% 100%,
        0% 100%
    );

    z-index: 5;
    pointer-events: none;
}

/* =========================================================
   LEFT COPY
   ========================================================= */

.kennedy-family-legacy__copy {
    padding: 1rem 0 0;
}

.kennedy-family-legacy__eyebrow {
    display: inline-block;
    margin: 0 0 1.5rem;

    color: var(--kennedy-accent);
    font-family: var(--kennedy-body-font);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.kennedy-family-legacy__eyebrow::after {
    content: "";
    display: block;
    width: 58px;
    height: 2px;
    margin-top: 0.7rem;
    background: var(--kennedy-accent);
}

.kennedy-family-legacy h2 {
    margin: 0;

    font-family: var(--kennedy-heading-font);
    font-size: clamp(3rem, 4vw, 4.5rem);
    font-weight: 700;
    line-height: 0.94;
    letter-spacing: -0.02em;
    text-transform: uppercase;

    color: #fff;
}

.kennedy-family-legacy__line {
    width: 55px;
    height: 3px;
    margin: 1.7rem 0 1.6rem;
    background: var(--kennedy-accent);
}

.kennedy-family-legacy__statement {
    margin: 0 0 2rem;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    font-weight: 600;
    font-style: italic;
    line-height: 1.5;

    color: var(--kennedy-accent);
}

.kennedy-family-legacy__copy p:not(.kennedy-family-legacy__statement) {
    margin: 0 0 1.4rem;
    max-width: 440px;

    font-family: var(--kennedy-body-font);
    font-size: 0.94rem;
    line-height: 1.7;

    color: rgba(255,255,255,0.88);
}


/* =========================================================
   BOTH PHOTOS
   ========================================================= */

.kennedy-family-legacy__photo {
    margin: 0;
    background: #111;
    border: 1px solid #343434;
}

.kennedy-family-legacy__photo img {
    display: block;
    width: 100%;
    height: auto;

    filter: grayscale(100%) contrast(1.08);
}


/* 1986 PHOTO — LARGE + TALL */

.kennedy-family-legacy__photo--1986 img {
    width: 100%;
    height: auto;

    object-fit: cover;
    object-position: center center;
}


/* =========================================================
   PHOTO CAPTIONS
   ========================================================= */

.kennedy-family-legacy__photo figcaption {
    display: flex;
    align-items: center;
    min-height: 48px;

    padding: 0 1rem;

    background: #090909;
    font-family: var(--kennedy-heading-font);
    text-transform: uppercase;
}

.kennedy-family-legacy__photo figcaption span {
    padding-right: 1rem;
    margin-right: 1rem;

    border-right: 1px solid #555;

    color: var(--kennedy-accent);
    font-size: 0.9rem;
    font-weight: 600;
}

.kennedy-family-legacy__photo figcaption strong {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}


/* =========================================================
   RIGHT / TODAY COLUMN
   ========================================================= */

.kennedy-family-legacy__today {
    padding-top: 1rem;
}

.kennedy-family-legacy__today-heading {
     margin-bottom: 0;
}

.kennedy-family-legacy__today-heading h3 {
    margin: 0;

    font-family: var(--kennedy-heading-font);
    font-size: clamp(2rem, 2.6vw, 2.8rem);
    font-weight: 700;
    line-height: 0.98;
    text-transform: uppercase;

    color: #fff;
}

.kennedy-family-legacy__today-heading h3 span {
    color: var(--kennedy-accent);
}

.kennedy-family-legacy__today-line {
    width: 48px;
    height: 3px;
    margin: 1rem 0 1.25rem;
    background: var(--kennedy-accent);
}

.kennedy-family-legacy__today-heading p {
    max-width: 330px;
    margin: 0;

    font-size: 0.95rem;
    line-height: 1.65;

    color: rgba(255,255,255,0.88);
}


/* TODAY PHOTO — TALL CROP AROUND THE PEOPLE */

.kennedy-family-legacy__photo--today img {
    width: 100%;
    height: 450px;

    object-fit: cover;

    /* Crops away much of the empty room on the sides */
    object-position: 45% center;
}
/* Align the bottoms of the 1986 and Today photo cards */

.kennedy-family-legacy__inner {
    align-items: start;
}

.kennedy-family-legacy__photo--1986 {
    display: flex;
    flex-direction: column;
    height: 100% !important;
}

.kennedy-family-legacy__photo--1986 img {
    width: 100%;
    height: 100%;
    flex: 1;

    object-fit: cover;
    object-position: center center;
}

.kennedy-family-legacy__today {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.kennedy-family-legacy__photo--today {
    margin-top: 1.25rem;
}
/* =========================================================
   FAMILY LEGACY — MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .kennedy-family-legacy {
        padding: 2.5rem 0 3rem;
    }

    .kennedy-family-legacy__inner {
        display: block;
        width: calc(100% - 2rem);
        margin: 0 auto;
    }

    .kennedy-family-legacy__copy {
        padding: 0;
        margin-bottom: 2rem;
    }

    .kennedy-family-legacy h2 {
        font-size: 3rem;
        line-height: 0.95;
    }

    .kennedy-family-legacy__statement {
        font-size: 1rem;
    }

    .kennedy-family-legacy__copy p:not(.kennedy-family-legacy__statement) {
        max-width: none;
    }

    /* 1986 PHOTO */

    .kennedy-family-legacy__photo--1986 {
        width: 100%;
        height: auto;
        margin: 0 0 2.5rem;
    }

    .kennedy-family-legacy__photo--1986 img {
        width: 100%;
        height: 500px;

        object-fit: cover;
        object-position: center center;
    }

    /* THREE GENERATIONS AREA */

    .kennedy-family-legacy__today {
        display: block;
        padding: 0;
    }

    .kennedy-family-legacy__today-heading {
        margin: 0 0 1.5rem;
    }

    .kennedy-family-legacy__today-heading h3 {
        font-size: 2.4rem;
    }

    .kennedy-family-legacy__today-heading p {
        max-width: none;
    }

    /* TODAY PHOTO */

    .kennedy-family-legacy__photo--today {
        width: 100%;
        margin: 0;
    }

    .kennedy-family-legacy__photo--today img {
        width: 100%;
        height: 470px;

        object-fit: cover;
        object-position: center center;
    }

    /* CAPTIONS */

    .kennedy-family-legacy__photo figcaption {
        min-height: 44px;
        padding: 0 0.75rem;
    }

    .kennedy-family-legacy__photo figcaption span,
    .kennedy-family-legacy__photo figcaption strong {
        font-size: 0.75rem;
    }
}
/* =========================================================
   FAMILY LEGACY — FINAL PHOTO CARD FIX
   ========================================================= */

.kennedy-family-legacy__photo {
    align-self: start;
    height: auto !important;
    min-height: 0 !important;
}

.kennedy-family-legacy__photo--today {
    height: auto !important;
    min-height: 0 !important;
}

.kennedy-family-legacy__photo figcaption {
    min-height: 0;
    padding: 0.7rem 1rem;
    line-height: 1.15;
}
/* =========================================================
   FAMILY LEGACY — DESKTOP PHOTO ALIGNMENT
   ========================================================= */

@media (min-width: 701px) {

    /* Give the middle and right columns the exact same total height */
    .kennedy-family-legacy__photo--1986,
    .kennedy-family-legacy__today {
        height: 610px !important;
        min-height: 610px !important;
        align-self: start;
    }

    /* 1986 card fills its whole column */
    .kennedy-family-legacy__photo--1986 {
        display: flex;
        flex-direction: column;
    }

    .kennedy-family-legacy__photo--1986 img {
        height: 0 !important;
        min-height: 0 !important;
        flex: 1 1 auto;
        object-fit: cover;
    }

    /* Right column */
    .kennedy-family-legacy__today {
        display: flex;
        flex-direction: column;
        padding-top: 0;
    }

    /* Keep only a small intentional gap under the text */
    .kennedy-family-legacy__photo--today {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        margin-top: 1.25rem;
        min-height: 0 !important;
    }

    .kennedy-family-legacy__photo--today img {
        height: 0 !important;
        min-height: 0 !important;
        flex: 1 1 auto;
        object-fit: cover;
        object-position: 45% center;
    }
}
/* Slightly shrink the 1986 photo without cropping more of it */
.kennedy-family-legacy__photo--1986 {
    width: 76% !important;
    justify-self: end;
}
/* =========================================================
   FAMILY LEGACY — MOBILE FINAL LAYOUT
   ========================================================= */

@media (max-width: 700px) {

    .kennedy-family-legacy {
        padding: 2.25rem 0 2.75rem;
    }

    .kennedy-family-legacy__inner {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0 0.75rem !important;
        width: calc(100% - 2rem) !important;
        margin: 0 auto !important;
    }

    /* MAIN LEGACY TEXT */
    .kennedy-family-legacy__copy {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        margin: 0 0 1.5rem !important;
        padding: 0 !important;
    }

    .kennedy-family-legacy h2 {
        font-size: clamp(2.6rem, 11vw, 3.45rem) !important;
        line-height: 0.94 !important;
    }

    .kennedy-family-legacy__statement {
        font-size: 0.95rem !important;
        line-height: 1.45 !important;
        margin-bottom: 1.2rem !important;
    }

    .kennedy-family-legacy__copy p:not(.kennedy-family-legacy__statement) {
        font-size: 0.84rem !important;
        line-height: 1.55 !important;
        margin-bottom: 1rem !important;
    }


    /* THREE GENERATIONS WRAPPER
       contents lets its heading + photo participate
       directly in the main grid */
    .kennedy-family-legacy__today {
        display: contents !important;
    }


    /* THREE GENERATIONS TEXT */
    .kennedy-family-legacy__today-heading {
        display: block !important;
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        margin: 0 0 1.5rem !important;
        padding: 0 !important;
    }

    .kennedy-family-legacy__today-heading h3 {
        font-size: 2.25rem !important;
        line-height: 0.98 !important;
    }

    .kennedy-family-legacy__today-heading p {
        max-width: none !important;
        font-size: 0.84rem !important;
        line-height: 1.55 !important;
    }


    /* 1986 PHOTO — LEFT */
    .kennedy-family-legacy__photo--1986 {
        grid-column: 1 !important;
        grid-row: 3 !important;

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;

        display: flex !important;
        flex-direction: column !important;
    }


    /* TODAY PHOTO — RIGHT */
    .kennedy-family-legacy__photo--today {
        grid-column: 2 !important;
        grid-row: 3 !important;

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;

        display: flex !important;
        flex-direction: column !important;
    }


    /* SAME PHOTO HEIGHT */
    .kennedy-family-legacy__photo--1986 img,
    .kennedy-family-legacy__photo--today img {
        display: block !important;

        width: 100% !important;
        height: 300px !important;

        flex: none !important;

        object-fit: cover !important;
        object-position: center center !important;
    }


    /* CAPTIONS */
    .kennedy-family-legacy__photo figcaption {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        min-height: 42px !important;
        padding: 0.45rem 0.3rem !important;

        text-align: center !important;
        line-height: 1.05 !important;
    }

    .kennedy-family-legacy__photo figcaption span,
    .kennedy-family-legacy__photo figcaption strong {
        font-size: 0.62rem !important;
    }

    .kennedy-family-legacy__photo figcaption span {
        padding-right: 0.35rem !important;
        margin-right: 0.35rem !important;
    }
}
/* Let the new visuals wrapper disappear from the desktop grid */
@media (min-width: 701px) {
    .kennedy-family-legacy__visuals {
        display: contents;
    }
}
/* =========================================================
   FAMILY LEGACY — MOBILE TWO-COLUMN VISUALS
   ========================================================= */

@media (max-width: 700px) {

    /* Main legacy copy stays full width above the photos */
    .kennedy-family-legacy__inner {
        display: block !important;
        width: calc(100% - 2rem) !important;
        margin: 0 auto !important;
    }

    .kennedy-family-legacy__copy {
        width: 100% !important;
        margin: 0 0 2rem !important;
        padding: 0 !important;
    }


    /* NEW WRAPPER = TWO SIDE-BY-SIDE COLUMNS */
    .kennedy-family-legacy__visuals {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;

        width: 100% !important;
        margin: 0 !important;

        align-items: end !important;
    }


    /* LEFT — 1986 PHOTO */
    .kennedy-family-legacy__photo--1986 {
        display: flex !important;
        flex-direction: column !important;

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
        justify-self: auto !important;
        align-self: end !important;
    }


    /* RIGHT — HEADING + TODAY PHOTO */
    .kennedy-family-legacy__today {
        display: flex !important;
        flex-direction: column !important;

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    /* Keep THREE GENERATIONS with second photo */
    .kennedy-family-legacy__today-heading {
        display: block !important;
        margin: 0 0 1rem !important;
        padding: 0 !important;
    }

    .kennedy-family-legacy__today-heading h3 {
        margin: 0 !important;
        font-size: clamp(1.45rem, 6.2vw, 2rem) !important;
        line-height: 0.95 !important;
    }

    .kennedy-family-legacy__today-line {
        width: 40px !important;
        height: 3px !important;
        margin: 0.7rem 0 0.8rem !important;
    }

    .kennedy-family-legacy__today-heading p {
        margin: 0 !important;
        max-width: none !important;

        font-size: 0.72rem !important;
        line-height: 1.45 !important;
    }


    /* BOTH PHOTOS */
    .kennedy-family-legacy__photo--1986 img,
    .kennedy-family-legacy__photo--today img {
        display: block !important;

        width: 100% !important;
        height: 285px !important;

        flex: none !important;

        object-fit: cover !important;
        object-position: center center !important;
    }


    /* TODAY CARD */
    .kennedy-family-legacy__photo--today {
        display: flex !important;
        flex-direction: column !important;

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
    }


    /* SMALL MOBILE CAPTIONS */
    .kennedy-family-legacy__photo figcaption {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        min-height: 38px !important;
        padding: 0.4rem 0.25rem !important;

        text-align: center !important;
        white-space: normal !important;
        line-height: 1.05 !important;
    }

    .kennedy-family-legacy__photo figcaption span,
    .kennedy-family-legacy__photo figcaption strong {
        font-size: 0.58rem !important;
    }

    .kennedy-family-legacy__photo figcaption span {
        padding-right: 0.3rem !important;
        margin-right: 0.3rem !important;
    }
  .kennedy-family-legacy__photo--1986 {
    width: 100% !important;
}
  /* MOBILE: legacy photos side by side */
.kennedy-family-legacy__visuals {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    align-items: start !important;
}

.kennedy-family-legacy__photo--1986 {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    margin: 0 !important;
}

.kennedy-family-legacy__today {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    margin: 0 !important;
}

.kennedy-family-legacy__today-heading {
    margin: 0 0 12px 0 !important;
}

.kennedy-family-legacy__photo--today {
    width: 100% !important;
    margin: 0 !important;
}

.kennedy-family-legacy__photo img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}
}
/* =========================================================
   COMPANY PAGE — MEET THE TEAM
   ========================================================= */

.kennedy-team {
    position: relative;
    width: 100vw;
    max-width: none;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    padding: 3rem 0 4.5rem;

    background: #f3f3f0;
    color: #111;
}

.kennedy-team__inner {
    width: min(
        calc(100% - (2 * var(--kennedy-home-gutter))),
        var(--kennedy-home-max)
    );

    max-width: var(--kennedy-home-max);
    margin: 0 auto;
}


/* MEET THE TEAM HEADING
--------------------------------------------------------- */

.kennedy-team__header {
    margin: 0 0 2.5rem;
}

.kennedy-team__eyebrow {
    font-family: var(--kennedy-body-font);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #555;
    text-transform: uppercase;

    margin: 0 0 28px;
}

.kennedy-team__eyebrow::after {
    content: "";
    display: block;
    width: 58px;
    height: 4px;
    background: var(--kennedy-accent);
    margin-top: 12px;
}

.kennedy-team__header h2 {
    margin: 0;

    font-family: var(--kennedy-heading-font);
    font-size: clamp(3rem, 4vw, 4.5rem);
    font-weight: 700;
    line-height: 0.94;
    letter-spacing: -0.02em;
    text-transform: uppercase;

    color: #111;
}

/* ==============================
   MEET THE TEAM - OPTION A SIZE
   ============================== */

.kennedy-team__grid {
    display: grid;
    grid-template-columns: repeat(4, 200px);
    justify-content: center;
    gap: 42px;
    align-items: start;
}

.kennedy-team-card {
    width: 200px;
    background: #111;
    overflow: hidden;
}

.kennedy-team-card__photo {
    width: 200px;
    height: 280px;
    overflow: hidden;
    background: #111;
}

.kennedy-team-card__photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(100%);
}

/* NAME + TITLE PANEL
--------------------------------------------------------- */

.kennedy-team-card__info {
    min-height: 0;
    padding: 12px 20px 13px;
    background: #111;
}

.kennedy-team-card__info h3 {
    margin: 0 0 0.65rem;

    font-family: var(--kennedy-heading-font);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0.045em;

    text-transform: uppercase;

    color: #fff;
}

.kennedy-team-card__info p {
    margin: 0;

    font-family: var(--kennedy-body-font);
    font-size: 0.78rem;
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: 0.08em;

    text-transform: uppercase;

    color: var(--kennedy-accent);
}


/* =========================================================
   MEET THE TEAM — TABLET
   ========================================================= */

@media (max-width: 900px) {

.kennedy-team__grid {
    width: 75vw;
    margin-left: auto;
    margin-right: auto;

    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
    gap: 14px;
}

.kennedy-team-card {
    width: 100%;
}

.kennedy-team-card__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 7;
}
}


/* =========================================================
   MEET THE TEAM — MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .kennedy-team {
        padding: 3rem 0 3.25rem;
    }

    .kennedy-team__inner {
        width: calc(100% - 2rem);
    }

    .kennedy-team__header {
        margin-bottom: 1.75rem;
    }

    .kennedy-team__header h2 {
        font-size: 2.5rem;
    }


.kennedy-team__grid {
    width: 75vw;
    margin-left: auto;
    margin-right: auto;

    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
    gap: 10px;
}

.kennedy-team-card {
    width: 100%;
}

.kennedy-team-card__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 7;
}


    .kennedy-team-card__info {
        min-height: 92px;
        padding: 1rem 0.8rem 1.1rem;
    }

    .kennedy-team-card__info h3 {
        margin-bottom: 0.5rem;

        font-size: 1.05rem;
        line-height: 1.05;
        letter-spacing: 0.025em;
    }

    .kennedy-team-card__info p {
        font-size: 0.63rem;
        line-height: 1.25;
        letter-spacing: 0.055em;
    }
}
/* Remove gap between Meet the Team and footer */
.kennedy-team {
    padding-bottom: 35px !important;
    margin-bottom: 0 !important;
}

.kennedy-team + * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body:has(.kennedy-team) .com-content-article,
body:has(.kennedy-team) .com-content-article__body,
body:has(.kennedy-team) main,
body:has(.kennedy-team) .container-component {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body:has(.kennedy-team) .container-footer {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* =========================================================
   CONTACT PAGE — HERO
   ========================================================= */

.kennedy-contact-hero {
    position: relative;

    width: 100vw;
    max-width: none;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    background: #f3f3f0;
    color: #111;
}

.kennedy-contact-hero__inner {
    display: grid;
    grid-template-columns: 40% 60%;

    min-height: 520px;
}


/* LEFT COPY
--------------------------------------------------------- */

.kennedy-contact-hero__copy {
    position: relative;
    z-index: 5;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding:
        70px
        35px
        70px
        max(
            var(--kennedy-home-gutter, 55px),
            calc((100vw - 1440px) / 2)
        );

    background: #f3f3f0;
}

.kennedy-contact-hero__eyebrow {
    margin: 0 0 30px;

    font-family: var(--kennedy-body-font);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;

    text-transform: uppercase;
    color: #555;
}

.kennedy-contact-hero__eyebrow::after {
    content: "";

    display: block;

    width: 58px;
    height: 4px;

    margin-top: 12px;

    background: var(--kennedy-accent);
}

.kennedy-contact-hero h1 {
    margin: 0 0 28px;

    font-family: var(--kennedy-heading-font);
    font-size: clamp(3.8rem, 5vw, 5.8rem);
    font-weight: 700;
    line-height: 0.94;
    letter-spacing: -0.02em;

    text-transform: uppercase;
    color: #222;
}

.kennedy-contact-hero__copy p {
    max-width: 440px;
    margin: 0;

    font-family: var(--kennedy-body-font);
    font-size: 1.1rem;
    line-height: 1.6;

    color: #222 !important;
}


/* RIGHT PHOTO
--------------------------------------------------------- */

.kennedy-contact-hero__image {
    position: relative;

    min-height: 520px;

    overflow: visible;
}

.kennedy-contact-hero__photo {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;

    filter: grayscale(100%);
}


/* SOFT COMPANY-PAGE STYLE FADE
--------------------------------------------------------- */

.kennedy-contact-hero__image::before {
    content: "";

    position: absolute;
    z-index: 2;

    top: 0;
    bottom: 0;
    left: 0;

    width: 300px;

background: linear-gradient(
    to right,
    rgba(243,243,240,1) 0%,
    rgba(243,243,240,0.95) 10%,
    rgba(243,243,240,0.75) 25%,
    rgba(243,243,240,0.45) 45%,
    rgba(243,243,240,0.20) 65%,
    rgba(243,243,240,0.06) 82%,
    rgba(243,243,240,0) 100%
);

    pointer-events: none;
}


/* REMOVE JOOMLA SPACE AROUND CONTACT HERO
--------------------------------------------------------- */

body:has(.kennedy-contact-hero) main,
body:has(.kennedy-contact-hero) .site-grid {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.com-content-article:has(.kennedy-contact-hero),
.com-content-article__body:has(.kennedy-contact-hero) {
    overflow: visible !important;
}
/* Match Contact hero visual height to Company hero */
@media (min-width: 1101px) {

    .kennedy-contact-hero__inner {
        min-height: 560px;
    }

    .kennedy-contact-hero__image {
        min-height: 560px;
    }
}
/* =========================================================
   CONTACT HERO — MATCH MASTER INTERIOR HERO
   DESKTOP ONLY
   ========================================================= */

@media (min-width: 701px) {

    .kennedy-contact-hero__inner {
        position: relative;
        display: block;
        min-height: 560px;
        overflow: hidden;
        background: #f3f3f0;
    }

    .kennedy-contact-hero__image {
        position: absolute;
        z-index: 0;
        inset: 0;

        width: 100%;
        height: 100%;
        min-height: 0;

        margin: 0;
        overflow: hidden;
    }

    .kennedy-contact-hero__photo {
        position: absolute;
        inset: 0;

        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center center;

        filter: grayscale(100%);
    }

    /* MASTER INTERIOR HERO FADE — KEEP UNCHANGED */
    .kennedy-contact-hero__image::before {
        content: "";
        position: absolute;
        z-index: 2;

        top: 0;
        bottom: 0;
        left: 0;
        width: 62%;

        background: linear-gradient(
            90deg,
            rgba(243,243,240,1) 0%,
            rgba(243,243,240,1) 18%,
            rgba(243,243,240,0.88) 34%,
            rgba(243,243,240,0.46) 62%,
            rgba(243,243,240,0.10) 82%,
            rgba(243,243,240,0) 100%
        );

        pointer-events: none;
    }

    .kennedy-contact-hero__copy {
        position: relative;
        z-index: 3;

        width: 40%;
        min-height: 560px;

        box-sizing: border-box;
        background: transparent;
    }
}

/* =========================================================
   CONTACT HERO — MOBILE
   MATCH COMPANY / CAREERS HERO
   ========================================================= */

@media (max-width: 700px) {

    .kennedy-contact-hero {
        overflow: hidden;
    }

    .kennedy-contact-hero__inner {
        position: relative;
        display: block;
        min-height: 530px;
    }

    .kennedy-contact-hero__image {
        position: absolute;
        z-index: 0;
        top: 0;
        right: 0;
        bottom: 0;

        width: 50%;
        min-height: 0;
        overflow: visible;
    }

    .kennedy-contact-hero__photo {
        position: absolute;
        inset: 0;

        display: block;
        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center center;

        filter: grayscale(100%);
    }

    .kennedy-contact-hero__image::before {
        content: "";
        position: absolute;
        z-index: 2;

        top: 0;
        bottom: 0;
        left: 0;

        width: 110px;

        background: linear-gradient(
            to right,
            rgba(243,243,240,1) 0%,
            rgba(243,243,240,0.92) 18%,
            rgba(243,243,240,0.68) 40%,
            rgba(243,243,240,0.34) 65%,
            rgba(243,243,240,0.10) 82%,
            rgba(243,243,240,0) 100%
        );

        pointer-events: none;
    }

    .kennedy-contact-hero__copy {
        position: relative;
        z-index: 5;

        width: 50%;
        min-width: 0;

        padding:
            1.25rem
            1.35rem
            1.25rem
            var(--kennedy-home-gutter-mobile, 2rem);

        box-sizing: border-box;
        background: transparent;
    }

    .kennedy-contact-hero__eyebrow {
        margin: 0 0 1.25rem;
        font-size: 0.72rem;
        line-height: 1.2;
        white-space: nowrap;
    }

    .kennedy-contact-hero__eyebrow::after {
        width: 44px;
        height: 3px;
        margin-top: 0.7rem;
    }

    .kennedy-contact-hero h1 {
        margin: 0 0 1.25rem;

        font-size: clamp(1.75rem, 7.2vw, 2.35rem);
        line-height: 0.94;

        white-space: normal;
        max-width: 100%;
    }

    .kennedy-contact-hero__copy p {
        width: 100%;
        max-width: 100%;

        margin: 0;

        font-size: 0.78rem;
        line-height: 1.55;
    }
}

/* =========================================================
   CONTACT PAGE — LOCATION + CONTACT DETAILS
   ========================================================= */

.kennedy-contact-info {
    position: relative;

    width: 100vw;
    max-width: none;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    background: #050505;
}

.kennedy-contact-info__inner {
    display: grid;
    grid-template-columns: 32% 68%;

    width: 100%;
    min-height: 500px;
}


/* LEFT CONTACT PANEL
--------------------------------------------------------- */

.kennedy-contact-info__details {
    padding:
        3.2rem
        2.8rem
        3.2rem
        max(
            var(--kennedy-home-gutter, 55px),
            calc((100vw - 1440px) / 2)
        );

    background: #080808;
    color: #fff;
}

.kennedy-contact-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 1.25rem;

    padding: 1.6rem 0;

    border-bottom: 1px solid rgba(255,255,255,0.18);
}

.kennedy-contact-item:first-child {
    padding-top: 0.5rem;
}

.kennedy-contact-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}


/* ICONS */

.kennedy-contact-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    border: 1px solid var(--kennedy-accent);
    border-radius: 50%;

    color: var(--kennedy-accent);

    font-size: 1.6rem;
    line-height: 1;
}
/* Address icon — map with location pin */
.kennedy-contact-item:first-child .kennedy-contact-item__icon::before {
    content: "";
    display: block;

width: 30px;
height: 30px;

transform: translateX(3px);

background-color: var(--kennedy-accent);

    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6.5l5-2.5 8 3 5-2.5v13l-5 2.5-8-3-5 2.5z'/%3E%3Cpath d='M8 4v13'/%3E%3Cpath d='M16 12v8'/%3E%3Cpath d='M16 3.5a3 3 0 0 0-3 3c0 2.5 3 5.5 3 5.5s3-3 3-5.5a3 3 0 0 0-3-3z'/%3E%3Ccircle cx='16' cy='6.5' r='.8'/%3E%3C/svg%3E") center / contain no-repeat;

    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6.5l5-2.5 8 3 5-2.5v13l-5 2.5-8-3-5 2.5z'/%3E%3Cpath d='M8 4v13'/%3E%3Cpath d='M16 12v8'/%3E%3Cpath d='M16 3.5a3 3 0 0 0-3 3c0 2.5 3 5.5 3 5.5s3-3 3-5.5a3 3 0 0 0-3-3z'/%3E%3Ccircle cx='16' cy='6.5' r='.8'/%3E%3C/svg%3E") center / contain no-repeat;
}


/* LABELS */

.kennedy-contact-item h2 {
    margin: 0 0 0.65rem;

    font-family: var(--kennedy-body-font);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.07em;

    color: #fff;
}


/* CONTACT TEXT */

.kennedy-contact-item p {
    margin: 0;

    font-family: var(--kennedy-body-font);
    font-size: 0.95rem;
    line-height: 1.55;

    color: rgba(255,255,255,0.92);
}

.kennedy-contact-item a {
    color: #fff !important;
    text-decoration: none;
}

.kennedy-contact-item a:hover {
    color: var(--kennedy-accent) !important;
}

.kennedy-contact-item__note {
    margin-top: 0.7rem !important;

    font-size: 0.82rem !important;
    font-style: italic;

    color: rgba(255,255,255,0.65) !important;
}


/* GOOGLE MAP
--------------------------------------------------------- */

.kennedy-contact-info__map {
    position: relative;

    min-height: 500px;

    background: #e7e7e4;

    overflow: hidden;
}

.kennedy-contact-info__map iframe {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    border: 0;

    filter: grayscale(100%) contrast(90%) brightness(108%);
}
@media (max-width: 1100px) {

    .kennedy-contact-info__inner {
        grid-template-columns: 38% 62%;
    }

    .kennedy-contact-info__details {
        padding: 2.75rem 2rem;
    }

}
@media (max-width: 700px) {

    .kennedy-contact-info__inner {
        display: block;
        min-height: 0;
    }

    .kennedy-contact-info__details {
        padding: 2rem var(--kennedy-home-gutter-mobile);
    }

    .kennedy-contact-item {
        grid-template-columns: 46px 1fr;
        gap: 1rem;

        padding: 1.35rem 0;
    }

    .kennedy-contact-item__icon {
        width: 42px;
        height: 42px;

        font-size: 1.25rem;
    }

    .kennedy-contact-info__map {
        min-height: 360px;
    }

}
/* Match Company + Contact hero height exactly on desktop */
@media (min-width: 1101px) {

    .kennedy-company-hero__inner,
    .kennedy-company-hero__image,
    .kennedy-contact-hero__inner,
    .kennedy-contact-hero__image {
        height: 560px;
        min-height: 560px;
    }
}
/* Remove white gap between Contact section and footer */
body:has(.kennedy-contact-info) .com-content-article,
body:has(.kennedy-contact-info) .com-content-article__body,
body:has(.kennedy-contact-info) main,
body:has(.kennedy-contact-info) .container-component {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body:has(.kennedy-contact-info) .container-footer {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.kennedy-contact-info {
    margin-bottom: 0 !important;
}

/* =========================================================
   CAREERS PAGE — HERO
   ========================================================= */

.kennedy-careers-hero {
    position: relative;

    width: 100vw;
    max-width: none;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    background: #f3f3f0;
    color: #111;
}

.kennedy-careers-hero__inner {
    display: grid;
    grid-template-columns: 40% 60%;

    min-height: 560px;
}


/* LEFT COPY
--------------------------------------------------------- */

.kennedy-careers-hero__copy {
    position: relative;
    z-index: 5;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding:
        70px
        35px
        70px
        max(
            var(--kennedy-home-gutter, 55px),
            calc((100vw - 1440px) / 2)
        );

    background: #f3f3f0;
}

.kennedy-careers-hero__eyebrow {
    margin: 0 0 30px;

    font-family: var(--kennedy-body-font);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;

    text-transform: uppercase;
    color: #555;
}

.kennedy-careers-hero__eyebrow::after {
    content: "";

    display: block;

    width: 58px;
    height: 4px;

    margin-top: 12px;

    background: var(--kennedy-accent);
}

.kennedy-careers-hero h1 {
    margin: 0 0 28px;

    font-family: var(--kennedy-heading-font);
    font-size: clamp(3.8rem, 5vw, 5.8rem);
    font-weight: 700;
    line-height: 0.94;
    letter-spacing: -0.02em;

    text-transform: uppercase;
    color: #222;
}

.kennedy-careers-hero__copy p {
    max-width: 440px;
    margin: 0;

    font-family: var(--kennedy-body-font);
    font-size: 1.1rem;
    line-height: 1.6;

    color: #222;
}


/* RIGHT PHOTO
--------------------------------------------------------- */

.kennedy-careers-hero__image {
    position: relative;

    min-height: 560px;

    overflow: visible;
}

.kennedy-careers-hero__photo {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: 35% bottom;

    filter: grayscale(100%);
}


/* SOFT COMPANY-PAGE STYLE FADE
--------------------------------------------------------- */

.kennedy-careers-hero__image::before {
    content: "";

    position: absolute;
    z-index: 2;

    top: 0;
    bottom: 0;
    left: 0;

    width: 300px;

    background: linear-gradient(
        to right,
        rgba(243,243,240,1) 0%,
        rgba(243,243,240,0.95) 10%,
        rgba(243,243,240,0.75) 25%,
        rgba(243,243,240,0.45) 45%,
        rgba(243,243,240,0.20) 65%,
        rgba(243,243,240,0.06) 82%,
        rgba(243,243,240,0) 100%
    );

    pointer-events: none;
}


/* REMOVE JOOMLA SPACE AROUND CAREERS HERO
--------------------------------------------------------- */

body:has(.kennedy-careers-hero) main,
body:has(.kennedy-careers-hero) .site-grid {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.com-content-article:has(.kennedy-careers-hero),
.com-content-article__body:has(.kennedy-careers-hero) {
    overflow: visible !important;
}


/* =========================================================
   CAREERS PAGE — WORK WITH US
   ========================================================= */

.kennedy-careers-work {
    position: relative;

    width: 100vw;
    max-width: none;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    background: #ffffff;
}

.kennedy-careers-work__inner {
    width: min(
        calc(100% - (2 * var(--kennedy-home-gutter))),
        var(--kennedy-home-max)
    );

    max-width: var(--kennedy-home-max);
    margin: 0 auto;

    display: grid;
    grid-template-columns: 38% 62%;
    gap: 4rem;

    padding: 3.25rem 0;
    box-sizing: border-box;
}

.kennedy-careers-work__intro {
    max-width: 520px;
}


/* LEFT SIDE
--------------------------------------------------------- */

.kennedy-careers-work__intro h2 {
    margin: 0;

    font-family: var(--kennedy-heading-font);
    font-size: clamp(3rem, 4vw, 4.6rem);
    font-weight: 700;
    line-height: 0.95;

    text-transform: uppercase;
    color: #111;
}

.kennedy-careers-work__line {
    width: 58px;
    height: 4px;

    margin: 18px 0 1.6rem;

    background: var(--kennedy-accent);
}

.kennedy-careers-work__intro p {
    max-width: 520px;

    margin: 0 0 1.2rem;

    font-family: var(--kennedy-body-font);
    font-size: 1rem;
    line-height: 1.55;

    color: #222;
}


/* RIGHT SIDE — 2 x 2 GRID
--------------------------------------------------------- */

.kennedy-careers-work__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

.kennedy-careers-feature {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: center;
    gap: 1.35rem;

    min-height: 175px;
    padding: 1.5rem 2rem;
}


/* Dividers between the four blocks */

.kennedy-careers-feature:nth-child(1),
.kennedy-careers-feature:nth-child(2) {
    border-bottom: 1px solid #d8d8d4;
}

.kennedy-careers-feature:nth-child(1),
.kennedy-careers-feature:nth-child(3) {
    border-right: 1px solid #d8d8d4;
}


/* ALL FOUR ICONS — IDENTICAL DISPLAY SIZE */

.kennedy-careers-feature__icon {
    display: block;

    width: 100px;
    height: 100px;

    object-fit: contain;

    margin: 0 auto;
}


/* FEATURE TEXT */

.kennedy-careers-feature__content h3 {
    margin: 0 0 0.45rem;

    font-family: var(--kennedy-heading-font);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;

    text-transform: uppercase;
    color: #111;
}

.kennedy-careers-feature__content p {
    margin: 0;

    font-family: var(--kennedy-body-font);
    font-size: 0.95rem;
    line-height: 1.45;

    color: #333;
}


/* =========================================================
   WORK WITH US — MOBILE
   ========================================================= */
@media (max-width: 800px) {

    .kennedy-careers-work__inner {
        display: block;

        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;

        padding:
            3rem
            var(--kennedy-home-gutter-mobile, 2rem) !important;

        box-sizing: border-box;
    }

    .kennedy-careers-work__intro {
        width: 100%;
        max-width: none;
        margin: 0 0 2.5rem;
    }

    .kennedy-careers-work__intro h2 {
        margin: 0;
        font-size: 2.5rem;
        line-height: 0.95;
    }

    .kennedy-careers-work__line {
        width: 44px;
        height: 3px;
        margin: 0.9rem 0 1.5rem;
    }

    .kennedy-careers-work__intro p {
        width: 100%;
        max-width: none;

        margin: 0 0 1.2rem;

        font-size: 0.95rem;
        line-height: 1.55;
    }

    .kennedy-careers-work__features {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .kennedy-careers-feature {
        display: flex;
        flex-direction: column;
        align-items: flex-start;

        min-width: 0;
        min-height: 220px;

        gap: 0.8rem;
        padding: 1.4rem 1rem;
    }

    .kennedy-careers-feature__icon {
        width: 78px;
        height: 78px;

        margin: 0 0 0.85rem;
    }

    .kennedy-careers-feature__content h3 {
        margin: 0 0 0.45rem;

        font-size: 1.05rem;
        line-height: 1.05;
    }

    .kennedy-careers-feature__content p {
        margin: 0;

        font-size: 0.82rem;
        line-height: 1.4;
    }
}


/* =========================================================
   SMALL PHONES — KEEP FEATURES 2 x 2
   ========================================================= */

@media (max-width: 520px) {

    .kennedy-careers-work__inner {
        padding: 2.75rem var(--kennedy-home-gutter-mobile, 2rem);
    }

    .kennedy-careers-work__features {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        column-gap: 14px;
        row-gap: 0;
    }

    .kennedy-careers-feature {
        display: flex;
        flex-direction: column;
        align-items: flex-start;

        min-width: 0;
        min-height: 220px;

        padding: 1.25rem 0.65rem;
    }

    .kennedy-careers-feature__icon {
        width: 78px;
        height: 78px;

        margin: 0 0 0.85rem;
    }

    .kennedy-careers-feature__content h3 {
        font-size: 1.05rem;
        line-height: 1.05;
    }

    .kennedy-careers-feature__content p {
        font-size: 0.82rem;
        line-height: 1.4;
    }

    /* Restore the 2 x 2 divider pattern */
    .kennedy-careers-feature:nth-child(1),
    .kennedy-careers-feature:nth-child(3) {
        border-right: 1px solid #d8d8d4 !important;
    }

    .kennedy-careers-feature:nth-child(1),
    .kennedy-careers-feature:nth-child(2) {
        border-bottom: 1px solid #d8d8d4 !important;
    }

    .kennedy-careers-feature:nth-child(3),
    .kennedy-careers-feature:nth-child(4) {
        border-bottom: 0 !important;
    }
}

.kennedy-careers-openings {
    position: relative;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 0 !important;
    background: var(--kennedy-light-gray);
}

/* Remove gap between Careers Open Positions and footer */
body:has(.kennedy-careers-openings) .com-content-article,
body:has(.kennedy-careers-openings) .com-content-article__body,
body:has(.kennedy-careers-openings) main,
body:has(.kennedy-careers-openings) .container-component {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body:has(.kennedy-careers-openings) .container-footer {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.kennedy-careers-openings__inner {
    width: min(
        calc(100% - (2 * var(--kennedy-home-gutter))),
        var(--kennedy-home-max)
    );
    max-width: var(--kennedy-home-max);
    margin: 0 auto;
    padding: 3.5rem 0;
    box-sizing: border-box;
}

.kennedy-careers-openings__heading {
    margin-bottom: 2rem;
}

.kennedy-careers-openings__heading h2 {
    margin: 0;
    font-family: var(--kennedy-heading-font);
    font-size: clamp(3rem, 4vw, 4.6rem);
    font-weight: 700;
    line-height: 0.95;
    text-transform: uppercase;
    color: #111;
}

.kennedy-careers-openings__line {
    width: 58px;
    height: 4px;
    margin: 1rem 0 1.3rem;
    background: var(--kennedy-accent);
}

.kennedy-careers-openings__heading p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #222;
}


/* JOB CARD */

.kennedy-careers-job {
    width: 82%;
    max-width: 1100px;
    margin: 0 auto;

    background: #fff;
    border: 2px solid #d8d8d8;
    padding: 2rem 2.25rem;
    box-sizing: border-box;
}

.kennedy-careers-job__header {
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #ddd;
}

.kennedy-careers-job__header h3 {
    margin: 0 0 0.55rem;
    font-family: var(--kennedy-heading-font);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    color: #111;
}

.kennedy-careers-job__location {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.kennedy-careers-job__location-icon {
    font-size: 0.7rem;
}

.kennedy-careers-job__intro {
    padding: 1.25rem 0 1.5rem;
}

.kennedy-careers-job__intro p {
    margin: 0;
    max-width: none;
    font-size: 1rem;
    line-height: 1.55;
}


/* TOP TWO COLUMNS */

.kennedy-careers-job__columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1.5rem;
}

.kennedy-careers-job__block {
    min-width: 0;
}

.kennedy-careers-job__columns .kennedy-careers-job__block:first-child {
    padding-right: 2rem;
    border-right: 1px solid #ddd;
}

.kennedy-careers-job__columns .kennedy-careers-job__block:last-child {
    padding-left: 2rem;
}

.kennedy-careers-job__block h4 {
    margin: 0;
    font-family: var(--kennedy-heading-font);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    color: #111;
}

.kennedy-careers-job__small-line {
    width: 40px;
    height: 3px;
    margin: 0.7rem 0 0.9rem;
    background: var(--kennedy-accent);
}

.kennedy-careers-job__block ul {
    margin: 0;
    padding-left: 1.2rem;
}

.kennedy-careers-job__block li {
    margin-bottom: 0.35rem;
    font-size: 0.98rem;
    line-height: 1.4;
}


/* FULL WIDTH ROWS */

.kennedy-careers-job__block--full {
    margin-top: 1.65rem;
}

.kennedy-careers-job__inline-list {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.65;
}

.kennedy-careers-job__inline-list span {
    margin: 0 0.45rem;
    color: #777;
}

/* APPLY AREA */

.kennedy-careers-job__apply {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 2rem;
    align-items: stretch;

    margin-top: 2rem;
    padding-top: 1.6rem;

    border-top: 1px solid #ddd;
}

.kennedy-careers-job__apply-label {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100px;

    background: var(--kennedy-accent);

    font-family: var(--kennedy-heading-font);
    font-size: 1.35rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #111;
}

.kennedy-careers-job__apply-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
    row-gap: 0.6rem;
    align-content: center;

    min-width: 0;
}

.kennedy-careers-job__apply-title {
    grid-column: 1 / -1;

    margin: 0 0 0.35rem;

    font-family: var(--kennedy-body-font);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.kennedy-careers-job__apply-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;

    margin: 0;

    font-size: 0.92rem;
    line-height: 1.45;
}

.kennedy-careers-job__apply-icon {
    flex: 0 0 auto;
    width: 32px;
    font-size: 32px;
    line-height: 32px;
    text-align: center;
}

.kennedy-careers-job__apply-item a {
    color: #111;
    font-weight: 700;
    text-decoration: none;
}

.kennedy-careers-job__apply-item a:hover {
    text-decoration: underline;
}


/* =========================================================
   CAREERS OPEN POSITIONS — MOBILE
   ========================================================= */

@media (max-width: 800px) {

    .kennedy-careers-openings__inner {
        width: 100%;
        max-width: none;
        padding:
            3rem
            var(--kennedy-home-gutter-mobile, 2rem);
        box-sizing: border-box;
    }

.kennedy-careers-job__apply-options {
    display: block;
}

    .kennedy-careers-openings__heading h2 {
        font-size: 2.5rem;
        line-height: 0.95;
    }

    .kennedy-careers-openings__line {
        width: 44px;
        height: 3px;
        margin: 0.9rem 0 1.3rem;
    }

    .kennedy-careers-openings__heading p {
        font-size: 0.95rem;
    }

    .kennedy-careers-job {
        padding: 1.4rem 1.2rem;
    }

    .kennedy-careers-job__header h3 {
        font-size: 1.75rem;
    }

    .kennedy-careers-job__intro p {
        font-size: 0.92rem;
    }

    .kennedy-careers-job__columns {
        display: block;
    }

    .kennedy-careers-job__columns .kennedy-careers-job__block:first-child,
    .kennedy-careers-job__columns .kennedy-careers-job__block:last-child {
        padding: 0;
        border: 0;
    }

    .kennedy-careers-job__columns .kennedy-careers-job__block:last-child {
        margin-top: 1.7rem;
    }

    .kennedy-careers-job__block h4 {
        font-size: 1.15rem;
    }

    .kennedy-careers-job__block li,
    .kennedy-careers-job__inline-list {
        font-size: 0.9rem;
    }

    .kennedy-careers-job__apply {
        display: block;
        margin-top: 1.7rem;
        padding-top: 1.4rem;
    }

    .kennedy-careers-job__apply-label {
        width: 100%;
        min-height: 58px;
        margin-bottom: 1.25rem;
    }

.kennedy-careers-job__apply-item {
    font-size: 0.86rem;
    margin-top: 1rem;
}
.kennedy-careers-job__apply-item strong {
    display: inline !important;
}
.kennedy-careers-job__apply-title {
    margin-bottom: 1rem;
}
}/* closes @media (max-width: 800px) */
/* ==========================================================
   CAPABILITIES PAGE HERO
   Uses standard Kennedy Company hero formatting
   ========================================================== */

.kennedy-capabilities-page-hero__photo {
    object-fit: cover !important;
    object-position: right 62% !important;
    filter: grayscale(100%) contrast(1.25);
}

/* ==========================================================
   CAPABILITIES HERO — MASTER DESKTOP FADE
   Homepage-style transition using light gray
   ========================================================== */

/* ==========================================================
   CAPABILITIES HERO — MASTER DESKTOP
   Same fade geometry as homepage hero
   ========================================================== */

@media (min-width: 701px) {

    .kennedy-capabilities-page-hero .kennedy-company-hero__inner {
        position: relative;
        display: block;
        min-height: 560px;
        overflow: hidden;
        background: #f3f3f0;
    }

    /* Photo fills the ENTIRE hero, just like homepage */
    .kennedy-capabilities-page-hero .kennedy-company-hero__image {
        position: absolute;
        z-index: 0;
        inset: 0;

        width: 100%;
        height: 100%;
        min-height: 0;

        margin: 0;
        overflow: hidden;
    }

.kennedy-capabilities-page-hero .kennedy-company-hero__photo {
    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover !important;
    object-position: left 65% !important;

    filter: grayscale(100%) contrast(1.25);
}

    /* EXACT homepage fade positions — light gray instead of black */
.kennedy-capabilities-page-hero .kennedy-company-hero__image::before {
    content: "";
    position: absolute;
    z-index: 2;

    top: 0;
    bottom: 0;

    left: 0;
    width: 62%;

    background: linear-gradient(
        90deg,
        rgba(243,243,240,1) 0%,
        rgba(243,243,240,1) 18%,
        rgba(243,243,240,0.88) 34%,
        rgba(243,243,240,0.46) 62%,
        rgba(243,243,240,0.10) 82%,
        rgba(243,243,240,0) 100%
    );

    pointer-events: none;
}

    /* Text sits above photo/fade */
    .kennedy-capabilities-page-hero .kennedy-company-hero__copy {
        position: relative;
        z-index: 3;

        width: 40%;
        min-height: 560px;

        box-sizing: border-box;

        background: transparent;
    }
  /* Keep capabilities hero text inside the solid/fade area */
.kennedy-capabilities-page-hero .kennedy-company-hero__copy h1 {
    max-width: 430px;
}

.kennedy-capabilities-page-hero .kennedy-company-hero__founded {
    max-width: 300px;
}

.kennedy-capabilities-page-hero .kennedy-company-hero__copy > p:last-of-type {
    max-width: 300px;
}
}
body:has(.kennedy-capabilities-page-hero) main,
body:has(.kennedy-capabilities-page-hero) .site-grid {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.com-content-article:has(.kennedy-capabilities-page-hero),
.com-content-article__body:has(.kennedy-capabilities-page-hero) {
    overflow: visible !important;
}  
/* ==========================================================
   CAPABILITIES HERO — MOBILE TEXT FIT
   Match Company hero proportions
   ========================================================== */

@media (max-width: 700px) {

    .kennedy-capabilities-page-hero .kennedy-company-hero__copy {
        width: 50%;
        padding:
            1.25rem
            1.35rem
            1.25rem
            var(--kennedy-home-gutter-mobile, 2rem);
    }

    .kennedy-capabilities-page-hero .kennedy-company-hero__eyebrow {
        margin: 0 0 1.25rem !important;
    }

    .kennedy-capabilities-page-hero .kennedy-company-hero h1 {
        width: 100%;
        max-width: 100%;
        margin: 0 0 1.25rem;

        font-size: clamp(1.55rem, 6.4vw, 2.1rem);
        line-height: 0.94;

        white-space: nowrap;
    }

    .kennedy-capabilities-page-hero .kennedy-company-hero__founded {
        margin: 0 0 1.25rem;
        font-size: 0.78rem;
        line-height: 1.2;
        white-space: nowrap;
    }

    .kennedy-capabilities-page-hero .kennedy-company-hero__copy > p:last-of-type {
        width: 100%;
        max-width: 100%;
        margin: 0;

        font-size: 0.78rem;
        line-height: 1.55;
    }

.kennedy-capabilities-page-hero__photo {
    object-position: 78% top !important;
}
  } /* closes Capabilities hero mobile media */
/* =========================================================
   CAPABILITIES PAGE — CAPABILITIES OVERVIEW
   ========================================================= */

.kennedy-capabilities-overview {
    width: 100%;
    background: #ffffff;
}

.kennedy-capabilities-overview__inner {
    width: min(
        calc(100% - (2 * var(--kennedy-home-gutter))),
        var(--kennedy-home-max)
    );
    max-width: var(--kennedy-home-max);
    margin: 0 auto;
    padding: 1.9rem 0 2rem;
    box-sizing: border-box;
}

/* SECTION HEADING */

.kennedy-capabilities-overview__heading {
    text-align: center;
    margin-bottom: 1.75rem;
}

.kennedy-capabilities-overview__heading h2 {
    margin: 0;
    font-family: var(--kennedy-heading-font);
    font-size: clamp(2.5rem, 3.5vw, 3.6rem);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    color: #111;
}

.kennedy-capabilities-overview__line {
    width: 58px;
    height: 4px;
    margin: 0.9rem auto 0;
    background: var(--kennedy-accent);
}

/* FOUR CAPABILITIES */

.kennedy-capabilities-overview__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
    align-items: start;
    max-width: 1050px;
    margin: 0 auto;
}

.kennedy-capabilities-overview__item {
    text-align: center;
    min-width: 0;
}

.kennedy-capabilities-overview__icon {
    display: block;
    width: 135px;
    height: 135px;
    object-fit: contain;
    margin: 0 auto 0.8rem;
}

.kennedy-capabilities-overview__item h3 {
    margin: 0;
    font-family: var(--kennedy-heading-font);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    color: #111;
}

/* DESCRIPTION BELOW ICONS */

.kennedy-capabilities-overview__description {
    max-width: 820px;
    margin: 1.6rem auto 0;
    text-align: center;
    font-size: 1rem;
    line-height: 1.55;
    color: #222;
}


/* =========================================================
   CAPABILITIES OVERVIEW — MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .kennedy-capabilities-overview__inner {
        width: 100%;
        max-width: none;
        padding: 2.75rem var(--kennedy-home-gutter-mobile, 2rem);
        box-sizing: border-box;
    }

    .kennedy-capabilities-overview__heading {
        margin-bottom: 2rem;
    }

    .kennedy-capabilities-overview__heading h2 {
        font-size: 2.35rem;
    }

    .kennedy-capabilities-overview__line {
        width: 44px;
        height: 3px;
        margin-top: 0.75rem;
    }

    .kennedy-capabilities-overview__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1rem;
        row-gap: 2rem;
        max-width: 420px;
    }

    .kennedy-capabilities-overview__icon {
        width: 92px;
        height: 92px;
        margin-bottom: 0.65rem;
    }

    .kennedy-capabilities-overview__item h3 {
        font-size: 1.25rem;
    }

    .kennedy-capabilities-overview__description {
        margin-top: 2rem;
        font-size: 0.9rem;
        line-height: 1.5;
    }
}
/* =========================================================
   CAPABILITIES PAGE — INDIVIDUAL CAPABILITY SECTIONS
   ========================================================= */

.kennedy-capability-details {
    width: 100%;
}

/* EACH FULL-WIDTH ROW */

.kennedy-capability-row {
    width: 100%;
    background: #ffffff;
}

.kennedy-capability-row--gray {
    background: var(--kennedy-light-gray, #F3F3F1);
}


/* INNER CONTENT */

.kennedy-capability-row__inner {
    width: min(
        calc(100% - (2 * var(--kennedy-home-gutter))),
        var(--kennedy-home-max)
    );
    max-width: var(--kennedy-home-max);
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;

    padding: 3.25rem 0;
    box-sizing: border-box;
}


/* ALTERNATING LAYOUT */

.kennedy-capability-row__inner--reverse
.kennedy-capability-row__copy {
    order: 2;
}

.kennedy-capability-row__inner--reverse
.kennedy-capability-row__image {
    order: 1;
}


/* TEXT */

.kennedy-capability-row__copy {
    max-width: 540px;
}

.kennedy-capability-row__copy h2 {
    margin: 0;

    font-family: var(--kennedy-heading-font);
    font-size: clamp(2.8rem, 3.6vw, 4rem);
    font-weight: 700;
    line-height: 0.95;

    color: #111;
    text-transform: uppercase;
}


/* LIME LINE */

.kennedy-capability-row__line {
    width: 58px;
    height: 4px;

    margin: 0.9rem 0 1.35rem;

    background: var(--kennedy-accent);
}


/* DESCRIPTION */

.kennedy-capability-row__copy p {
    max-width: 500px;
    margin: 0 0 1.2rem;

    font-size: 1rem;
    line-height: 1.55;

    color: #222;
}


/* BULLET LIST */

.kennedy-capability-row__copy ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.kennedy-capability-row__copy li {
    position: relative;

    margin: 0 0 0.4rem;
    padding-left: 1.7rem;

    font-size: 0.98rem;
    line-height: 1.4;

    color: #222;
}

.kennedy-capability-row__copy li::before {
    content: "";

    position: absolute;
    left: 0;
    top: 0.45em;

    width: 9px;
    height: 9px;

    background: var(--kennedy-accent);
}


/* =========================================================
   PHOTOS — ALL EXACTLY SAME SIZE
   ========================================================= */

.kennedy-capability-row__image {
    width: 100%;
    max-width: 460px;
    height: 310px;

    overflow: hidden;
    justify-self: center;
}

.kennedy-capability-row__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    filter: grayscale(100%) contrast(1.08);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 800px) {

    .kennedy-capability-row__inner {
        width: 100%;
        max-width: none;

        display: flex;
        flex-direction: column;

        gap: 1.75rem;

        padding:
            2.75rem
            var(--kennedy-home-gutter-mobile, 2rem);
    }


    /* Always put text first on mobile */

    .kennedy-capability-row__copy,
    .kennedy-capability-row__inner--reverse
    .kennedy-capability-row__copy {
        order: 1;
        width: 100%;
        max-width: none;
    }

    .kennedy-capability-row__image,
    .kennedy-capability-row__inner--reverse
    .kennedy-capability-row__image {
        order: 2;
    }


    /* MOBILE HEADING */

    .kennedy-capability-row__copy h2 {
        font-size: 2.5rem;
    }

    .kennedy-capability-row__line {
        width: 44px;
        height: 3px;

        margin: 0.75rem 0 1.15rem;
    }

    .kennedy-capability-row__copy p {
        font-size: 0.92rem;
    }

    .kennedy-capability-row__copy li {
        font-size: 0.9rem;
    }


    /* SAME-SIZE MOBILE PHOTOS */

    .kennedy-capability-row__image {
        width: 100%;
        max-width: 390px;
        height: 260px;
    }
}
/* =========================================================
   CAPABILITIES PAGE — PROJECTS CTA
   ========================================================= */

.kennedy-capabilities-projects-cta {
    position: relative;

    width: 100vw;
    max-width: none;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    overflow: hidden;

    background: #000;
    color: #fff;
}


/* SAME PHOTO AS HOMEPAGE HERO */

.kennedy-capabilities-projects-cta::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.98) 0%,
            rgba(0,0,0,0.92) 28%,
            rgba(0,0,0,0.74) 55%,
            rgba(0,0,0,0.48) 78%,
            rgba(0,0,0,0.38) 100%
        ),
        url('/images/kennedy/capabilities/The%20Kennedy%20Company%20of%20VA%20Inc-Tunnel.webp')
        center center / cover no-repeat;

    filter: grayscale(100%);

    z-index: 0;
}


/* CONTENT */

.kennedy-capabilities-projects-cta__inner {
    position: relative;
    z-index: 2;

    width: min(
        calc(100% - (2 * var(--kennedy-home-gutter))),
        var(--kennedy-home-max)
    );

    max-width: var(--kennedy-home-max);

    margin: 0 auto;
    padding: 3.5rem 0;

    display: grid;
    grid-template-columns: 0.9fr 1.8fr 0.9fr;

    align-items: center;
    gap: 3rem;
}


/* LEFT SIDE */

.kennedy-capabilities-projects-cta__intro {
    padding-right: 2.25rem;

    border-right: 1px solid rgba(255,255,255,0.55);
}

.kennedy-capabilities-projects-cta__intro h2 {
    margin: 0;

    font-family: var(--kennedy-heading-font);
    font-size: clamp(3rem, 4vw, 4.6rem);
    font-weight: 700;
    line-height: 0.95;

    text-transform: uppercase;
    color: #fff;
}

.kennedy-capabilities-projects-cta__line {
    width: 70px;
    height: 4px;

    margin: 1.25rem 0 1.6rem;

    background: var(--kennedy-accent);
}

.kennedy-capabilities-projects-cta__intro p {
    margin: 0;

    font-size: 1.1rem;
    line-height: 1.5;

    color: #fff;
}


/* ICONS */

.kennedy-capabilities-projects-cta__icons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 1.5rem;

    align-items: start;
}

.kennedy-capabilities-projects-cta__item {
    text-align: center;
}

.kennedy-capabilities-projects-cta__item img {
    display: block;

    width: 110px;
    height: 110px;

    object-fit: contain;

    margin: 0 auto 0.7rem;
}

.kennedy-capabilities-projects-cta__item span {
    display: block;

    font-family: var(--kennedy-heading-font);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;

    color: #fff;

    text-transform: uppercase;
}


/* RIGHT SIDE */

.kennedy-capabilities-projects-cta__action {
    text-align: center;
}

.kennedy-capabilities-projects-cta__button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 1rem;

    min-height: 58px;

    padding: 0 2rem;

    background: var(--kennedy-accent);

    font-family: var(--kennedy-heading-font);
    font-size: 1.25rem;
    font-weight: 700;

    text-transform: uppercase;
    text-decoration: none !important;

    color: #000 !important;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.kennedy-capabilities-projects-cta__button span {
    font-size: 1.6rem;
    line-height: 1;
}

.kennedy-capabilities-projects-cta__button:hover {
    background: #fff;
    color: #000 !important;
}

.kennedy-capabilities-projects-cta__tagline {
    margin-top: 1.2rem;

    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.55;

    letter-spacing: 0.22em;

    color: #fff;

    text-transform: uppercase;
}


/* =========================================================
   PROJECTS CTA — MOBILE
   ========================================================= */

@media (max-width: 800px) {

    .kennedy-capabilities-projects-cta__inner {
        width: 100%;
        max-width: none;

        display: block;

        padding:
            2.75rem
            var(--kennedy-home-gutter-mobile, 2rem);

        box-sizing: border-box;
    }


    .kennedy-capabilities-projects-cta__intro {
        padding-right: 0;
        padding-bottom: 2rem;

        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,0.4);
    }


    .kennedy-capabilities-projects-cta__intro h2 {
        font-size: 2.8rem;
    }


    .kennedy-capabilities-projects-cta__icons {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 1.8rem;

        margin: 2.25rem 0;
    }


    .kennedy-capabilities-projects-cta__item img {
        width: 90px;
        height: 90px;
    }


    .kennedy-capabilities-projects-cta__item span {
        font-size: 1.15rem;
    }


    .kennedy-capabilities-projects-cta__action {
        padding-top: 0.5rem;
    }


    .kennedy-capabilities-projects-cta__button {
        min-height: 54px;

        padding: 0 1.6rem;

        font-size: 1.1rem;
    }

}
/* Remove gap between Projects CTA and footer */
.kennedy-capabilities-projects-cta {
    margin-bottom: 0 !important;
}

body:has(.kennedy-capabilities-projects-cta) .container-footer {
    margin-top: 0 !important;
}

body:has(.kennedy-capabilities-projects-cta) main {
    padding-bottom: 0 !important;
}
/* ==========================================================
   PROJECTS PAGE HERO
   Matches current Capabilities hero
   ========================================================== */

.kennedy-projects-page-hero__photo {
    object-fit: cover !important;
    object-position: left -50px !important;
    filter: grayscale(100%) contrast(1.25);
}

.kennedy-projects-page-hero .kennedy-company-hero__image::before {
    content: "";
    position: absolute;
    z-index: 2;

    top: 0;
    bottom: 0;
    left: 0;
    width: 300px;

    background: linear-gradient(
        to right,
        rgba(243,243,240,1) 0%,
        rgba(243,243,240,0.95) 10%,
        rgba(243,243,240,0.75) 25%,
        rgba(243,243,240,0.45) 45%,
        rgba(243,243,240,0.20) 65%,
        rgba(243,243,240,0.06) 82%,
        rgba(243,243,240,0) 100%
    );

    pointer-events: none;
}

body:has(.kennedy-projects-page-hero) main,
body:has(.kennedy-projects-page-hero) .site-grid {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.com-content-article:has(.kennedy-projects-page-hero),
.com-content-article__body:has(.kennedy-projects-page-hero) {
    overflow: visible !important;
}


/* ==========================================================
   PROJECTS HERO — MOBILE
   Matches current Capabilities hero
   ========================================================== */

@media (max-width: 700px) {

    .kennedy-projects-page-hero .kennedy-company-hero__copy {
        width: 50%;

        padding:
            1.25rem
            1.35rem
            1.25rem
            var(--kennedy-home-gutter-mobile, 2rem);
    }

    .kennedy-projects-page-hero .kennedy-company-hero__eyebrow {
        margin: 0 0 1.25rem !important;
    }

    .kennedy-projects-page-hero .kennedy-company-hero h1 {
        width: 100%;
        max-width: 100%;

        margin: 0 0 1.25rem;

        font-size: clamp(1.55rem, 6.4vw, 2.1rem);
        line-height: 0.94;

        white-space: nowrap;
    }

    .kennedy-projects-page-hero .kennedy-company-hero__founded {
        margin: 0 0 1.25rem;

        font-size: 0.78rem;
        line-height: 1.2;

        white-space: nowrap;
    }

    .kennedy-projects-page-hero
    .kennedy-company-hero__copy > p:last-of-type {
        width: 100%;
        max-width: 100%;

        margin: 0;

        font-size: 0.78rem;
        line-height: 1.55;
    }

    .kennedy-projects-page-hero__photo {
        object-position: 78% top !important;
    }
}
/* =========================================================
   PROJECTS PAGE — FEATURED PROJECTS
   ========================================================= */

.kennedy-featured-projects {
    width: 100vw;
    max-width: none;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    background: #fff;
}

.kennedy-featured-projects__inner {
    width: min(
        calc(100% - (2 * var(--kennedy-home-gutter))),
        var(--kennedy-home-max)
    );

    max-width: var(--kennedy-home-max);

    margin: 0 auto;
    padding: 2.75rem 0 4.5rem;
}


/* SECTION HEADING */

.kennedy-featured-projects__heading {
    margin-bottom: 2.25rem;
}

.kennedy-featured-projects__heading h2 {
    margin: 0;

    font-family: var(--kennedy-heading-font);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1;

    color: #000;
    text-transform: uppercase;
}

.kennedy-featured-projects__line {
    width: 62px;
    height: 4px;

    margin-top: 0.9rem;

    background: var(--kennedy-accent);
}


/* FOUR PROJECT GRID */

.kennedy-featured-projects__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 1.5rem;
    align-items: stretch;
}


/* PROJECT CARD */

.kennedy-featured-projects__card {
    display: flex;
    flex-direction: column;

    margin: 0;

    background: #fff;
    border: 1px solid #dedede;
}


/* PROJECT PHOTO */

.kennedy-featured-projects__image {
    width: 100%;
    height: 230px;

    overflow: hidden;

    background: #eee;
}

.kennedy-featured-projects__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    filter: grayscale(100%) contrast(1.08);
}


/* PROJECT TEXT */

.kennedy-featured-projects__content {
    flex: 1;

    padding: 1.35rem 1.4rem 1.5rem;
}

.kennedy-featured-projects__content h3 {
    margin: 0 0 0.75rem;

    font-family: var(--kennedy-heading-font);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.08;

    color: #000;
    text-transform: uppercase;
}

.kennedy-featured-projects__location {
    position: relative;

    margin: 0 0 1rem;
    padding-left: 1rem;

    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;

    color: #555;
}

.kennedy-featured-projects__location::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0.45em;

    width: 6px;
    height: 6px;

    background: var(--kennedy-accent);
}

.kennedy-featured-projects__description {
    margin: 0;

    font-size: 0.95rem;
    line-height: 1.55;

    color: #333;
}


/* =========================================================
   FEATURED PROJECTS — TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .kennedy-featured-projects__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

}


/* =========================================================
   FEATURED PROJECTS — MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .kennedy-featured-projects__inner {
        width: 100%;
        max-width: none;

        box-sizing: border-box;

        padding:
            3rem
            var(--kennedy-home-gutter-mobile, 2rem)
            3.5rem;
    }

    .kennedy-featured-projects__heading {
        margin-bottom: 1.75rem;
    }

    .kennedy-featured-projects__heading h2 {
        font-size: 2.4rem;
    }

    .kennedy-featured-projects__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .kennedy-featured-projects__image {
        height: 220px;
    }

    .kennedy-featured-projects__content {
        padding: 1.25rem 1.3rem 1.4rem;
    }

    .kennedy-featured-projects__content h3 {
        font-size: 1.4rem;
    }

}
/* =========================================================
   PROJECTS PAGE — SMALL PROJECT GALLERY
   "SEE WHAT WE'VE BEEN WORKING ON"
   ========================================================= */

.kennedy-project-gallery {
    width: 100vw;
    max-width: none;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    background: #fff;
}

.kennedy-project-gallery__inner {
    width: min(
        calc(100% - (2 * var(--kennedy-home-gutter))),
        var(--kennedy-home-max)
    );

    max-width: var(--kennedy-home-max);

    margin: 0 auto;

    padding: 3.25rem 0 4.5rem;
}


/* =========================================================
   HEADING AREA
   ========================================================= */

.kennedy-project-gallery__heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 3rem;

    margin-bottom: 2.4rem;
}

.kennedy-project-gallery__heading h2 {
    margin: 0;

    font-family: var(--kennedy-heading-font);
    font-size: clamp(2.8rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 0.98;

    color: #000;
    text-transform: uppercase;
}

.kennedy-project-gallery__line {
    width: 64px;
    height: 4px;

    margin: 0.9rem 0 1rem;

    background: var(--kennedy-accent);
}

.kennedy-project-gallery__heading p {
    max-width: 600px;

    margin: 0;

    font-size: 1rem;
    line-height: 1.55;

    color: #222;
}

.kennedy-project-gallery__tagline {
    padding-top: 0.6rem;

    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;

    letter-spacing: 0.24em;

    color: #333;

    text-transform: uppercase;
    white-space: nowrap;
}


/* =========================================================
   PROJECT GRID
   5 ACROSS ON DESKTOP
   ========================================================= */

.kennedy-project-gallery__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));

    column-gap: 1.2rem;
    row-gap: 2rem;
}


/* =========================================================
   INDIVIDUAL PROJECT
   ========================================================= */

.kennedy-project-gallery__item {
    min-width: 0;
}

.kennedy-project-gallery__item img {
    display: block;

    width: 100%;
    height: 145px;

    object-fit: cover;
    object-position: center;

    margin: 0 0 0.65rem;

    filter: grayscale(100%) contrast(1.08);

    background: #eee;
}


/* PROJECT TITLE */

.kennedy-project-gallery__item h3 {
    margin: 0 0 0.38rem;

    font-family: var(--kennedy-heading-font);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.12;

    color: #000;

    text-transform: none;
}


/* LOCATION */

.kennedy-project-gallery__item p {
    position: relative;

    margin: 0;

    padding-left: 1rem;

    font-size: 0.8rem;
    line-height: 1.35;

    color: #555;
}

.kennedy-project-gallery__item p::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0.45em;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #111;
}


/* =========================================================
   HIDDEN PROJECTS
   ========================================================= */

.kennedy-project-gallery__item--more {
    display: none;
}

.kennedy-project-gallery__item--more.kennedy-project-gallery__item--visible {
    display: block;
}


/* =========================================================
   VIEW MORE BUTTON
   ========================================================= */

.kennedy-project-gallery__button-wrap {
    display: flex;
    justify-content: center;

    margin-top: 2.75rem;
}

.kennedy-project-gallery__button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 1rem;

    min-width: 190px;
    min-height: 48px;

    padding: 0.8rem 1.6rem;

    border: 0;
    border-radius: 999px;

    background: var(--kennedy-accent);

    font-family: var(--kennedy-heading-font);
    font-size: 1rem;
    font-weight: 700;

    color: #000;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.kennedy-project-gallery__button:hover {
    background: #fff;
    outline: 2px solid var(--kennedy-accent);
}

.kennedy-project-gallery__button:active {
    transform: translateY(1px);
}

.kennedy-project-gallery__button-symbol {
    font-family: Arial, sans-serif;
    font-size: 1.45rem;
    line-height: 1;
}


/* =========================================================
   TABLET
   3 ACROSS
   ========================================================= */

@media (max-width: 1050px) {

    .kennedy-project-gallery__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));

        column-gap: 1.25rem;
        row-gap: 2rem;
    }

    .kennedy-project-gallery__item img {
        height: 170px;
    }

    .kennedy-project-gallery__heading {
        gap: 2rem;
    }

}


/* =========================================================
   SMALL TABLET / LARGE MOBILE
   2 ACROSS
   ========================================================= */

@media (max-width: 760px) {

    .kennedy-project-gallery__inner {
        width: 100%;
        max-width: none;

        box-sizing: border-box;

        padding:
            2.75rem
            var(--kennedy-home-gutter-mobile, 2rem)
            3.75rem;
    }

    .kennedy-project-gallery__heading {
        display: block;

        margin-bottom: 2rem;
    }

    .kennedy-project-gallery__heading h2 {
        font-size: 2.55rem;
    }

    .kennedy-project-gallery__tagline {
        margin-top: 1.5rem;
        padding-top: 0;

        white-space: normal;
    }

    .kennedy-project-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 1.6rem 1rem;
    }

    .kennedy-project-gallery__item img {
        height: 135px;
    }

    .kennedy-project-gallery__item h3 {
        font-size: 0.95rem;
    }

    .kennedy-project-gallery__item p {
        font-size: 0.75rem;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .kennedy-project-gallery__heading h2 {
        font-size: 2.2rem;
    }

    .kennedy-project-gallery__grid {
        grid-template-columns: 1fr 1fr;
    }

    .kennedy-project-gallery__item img {
        height: 110px;
    }

    .kennedy-project-gallery__button {
        min-width: 175px;
        min-height: 46px;

        font-size: 0.95rem;
    }

}
/* =========================================================
   CONTACT PAGE — HERO PHONE + LOWER CONTACT SECTION
   ========================================================= */


/* HERO PHONE */

.kennedy-contact-hero__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;

    margin-top: 1.5rem;

    color: #111 !important;
    text-decoration: none !important;

    font-family: var(--kennedy-heading-font);
    font-size: clamp(1.6rem, 2.2vw, 2.5rem);
    font-weight: 700;
    line-height: 1;
}

.kennedy-contact-hero__phone:hover {
    color: #111 !important;
    text-decoration: none !important;
}

.kennedy-contact-hero__phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    border-radius: 50%;

    background: var(--kennedy-accent);
    color: #000;

    font-family: Arial, sans-serif;
    font-size: 1.3rem;
}

.kennedy-contact-hero__line {
    width: 62px;
    height: 4px;

    margin: 1.1rem 0 0.4rem;

    background: var(--kennedy-accent);
}

/* =========================================================
   LOWER CONTACT AREA
   HOURS + LOCATION LEFT / WIDE MAP RIGHT
   ========================================================= */

.kennedy-contact-details {
    position: relative;

    width: 100vw;
    max-width: none;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    background: #f7f7f5;
}


/* CENTER THE WHOLE CONTACT AREA */

.kennedy-contact-details__inner {
    width: min(
        calc(100% - (2 * var(--kennedy-home-gutter))),
        var(--kennedy-home-max)
    );

    max-width: var(--kennedy-home-max);

    margin: 0 auto;
    padding: 3.5rem 0 4rem;

    display: grid;

    /* LEFT ~1/3 / RIGHT ~2/3 */
    grid-template-columns:
        minmax(300px, 1fr)
        minmax(0, 2fr);

    column-gap: 3.25rem;

    align-items: stretch;

    box-sizing: border-box;
}


/* =========================================================
   LEFT COLUMN — HOURS + LOCATION
   ========================================================= */

.kennedy-contact-details__left {
    display: flex;
    flex-direction: column;

    min-width: 0;

    padding-right: 2.5rem;

    border-right: 1px solid #d4d4d4;
}


/* INDIVIDUAL LEFT ITEMS */

.kennedy-contact-details__left .kennedy-contact-details__item {
    display: grid;

    grid-template-columns: 62px minmax(0, 1fr);

    gap: 1rem;

    min-height: 0;

    margin: 0;
    padding: 0;

    border: 0;
}


/* HOURS */

.kennedy-contact-details__item--hours {
    padding-bottom: 2.8rem !important;
}


/* DIVIDER BETWEEN HOURS AND LOCATION */

.kennedy-contact-details__item--hours::after {
    content: "";

    grid-column: 1 / -1;

    display: block;

    width: 100%;
    height: 1px;

    margin-top: 2rem;

    background: #d4d4d4;
}


/* LOCATION */

.kennedy-contact-details__item--location {
    padding-top: 0.25rem !important;
}


/* =========================================================
   ICONS
   ========================================================= */

.kennedy-contact-details__icon {
    display: flex;
    align-items: flex-start;
    justify-content: center;

    width: 54px;
    height: 54px;

    background: transparent;
}

.kennedy-contact-details__icon img {
    display: block;

    width: 54px;
    height: 54px;

    object-fit: contain;
}


/* =========================================================
   TITLES
   ========================================================= */

.kennedy-contact-details__content h2,
.kennedy-contact-details__map-heading h2 {
    margin: 0;

    font-family: var(--kennedy-heading-font);

    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;

    color: #111;

    text-transform: uppercase;
}


/* LIME UNDERLINE */

.kennedy-contact-details__line {
    width: 50px;
    height: 4px;

    margin: 0.65rem 0 1.15rem;

    background: var(--kennedy-accent);
}


/* BODY COPY */

.kennedy-contact-details__content p {
    margin: 0 0 0.7rem;

    font-family: var(--kennedy-body-font);

    font-size: 1rem;
    line-height: 1.5;

    color: #222;
}

.kennedy-contact-details__content p:last-child {
    margin-bottom: 0;
}

.kennedy-contact-details__note {
    margin-top: 0.85rem !important;

    color: #555 !important;
}


/* =========================================================
   RIGHT COLUMN — FIND US + MAP
   ========================================================= */

.kennedy-contact-details__right {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.kennedy-contact-details__item--map {
    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;

    min-width: 0;

    margin: 0;
    padding: 0;

    border: 0;
}


/* FIND US HEADING */

.kennedy-contact-details__map-heading {
    display: grid;

    grid-template-columns: 62px minmax(0, 1fr);

    gap: 1rem;

    align-items: start;

    width: 100%;

    margin: 0 0 1.1rem;
}


/* =========================================================
   MAP
   ========================================================= */

.kennedy-contact-details__map {
    position: relative;

    width: 100%;
    min-width: 0;

    flex: 1 1 auto;

    overflow: hidden;

    background: #e7e7e4;
}


/* MAP MODULE WRAPPERS — FORCE FULL WIDTH */

.kennedy-contact-details__map > *,
.kennedy-contact-details__map .mod-custom,
.kennedy-contact-details__map .mod-custom > *,
.kennedy-contact-details__map .custom {
    width: 100% !important;
    max-width: none !important;
}


/* GOOGLE MAP */

.kennedy-contact-details__map iframe {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    height: 430px !important;

    margin: 0 !important;

    border: 0 !important;

    filter: grayscale(100%);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .kennedy-contact-details__inner {
        width: calc(
            100% - (2 * var(--kennedy-home-gutter-mobile))
        );

        grid-template-columns:
            minmax(250px, 0.9fr)
            minmax(0, 1.8fr);

        column-gap: 2rem;
    }

    .kennedy-contact-details__left {
        padding-right: 1.75rem;
    }

    .kennedy-contact-details__map iframe {
        height: 400px !important;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .kennedy-contact-details__inner {
        width: 100%;
        max-width: none;

        display: block;

        padding:
            2.5rem
            var(--kennedy-home-gutter-mobile, 2rem)
            3rem;

        box-sizing: border-box;
    }


    /* LEFT COLUMN */

    .kennedy-contact-details__left {
        display: block;

        width: 100%;

        padding: 0;

        border-right: 0;
    }


    .kennedy-contact-details__left
    .kennedy-contact-details__item {
        grid-template-columns: 50px minmax(0, 1fr);

        gap: 0.9rem;

        width: 100%;
    }


    .kennedy-contact-details__item--hours {
        padding-bottom: 1.8rem !important;
    }


    .kennedy-contact-details__item--hours::after {
        margin-top: 1.5rem;
    }


    .kennedy-contact-details__item--location {
        padding-top: 0 !important;
        padding-bottom: 2.25rem !important;
    }


    /* RIGHT COLUMN */

    .kennedy-contact-details__right {
        width: 100%;

        padding-top: 2.25rem;

        border-top: 1px solid #d4d4d4;
    }


    .kennedy-contact-details__item--map {
        width: 100%;
    }


    .kennedy-contact-details__map-heading {
        grid-template-columns: 50px minmax(0, 1fr);

        gap: 0.9rem;
    }


    /* SMALLER ICONS */

    .kennedy-contact-details__icon,
    .kennedy-contact-details__icon img {
        width: 44px;
        height: 44px;
    }


    .kennedy-contact-details__content h2,
    .kennedy-contact-details__map-heading h2 {
        font-size: 1.3rem;
    }


    /* MOBILE MAP */

    .kennedy-contact-details__map {
        width: 100%;
    }

    .kennedy-contact-details__map iframe {
        width: 100% !important;
        height: 300px !important;
    }

}
/* =========================================================
   MOBILE HERO HEIGHT — INTERIOR PAGES ONLY
   Does NOT affect homepage hero
   ========================================================= */

@media (max-width: 700px) {

    .kennedy-company-hero__inner,
    .kennedy-contact-hero__inner,
    .kennedy-careers-hero__inner {
        min-height: 370px !important;
        height: 370px !important;
    }

    .kennedy-company-hero__image,
    .kennedy-contact-hero__image,
    .kennedy-careers-hero__image {
        min-height: 0 !important;
        height: 100% !important;
    }

}
/* CAREERS HERO — DESKTOP PHOTO POSITION */
@media (min-width: 701px) {
    .kennedy-careers-page-hero .kennedy-company-hero__photo {
        object-fit: cover !important;
        object-position: center bottom !important;
        transform: translateX(70px) !important;
    }
}
/* =========================================================
   ALL INTERIOR HEROS — MOBILE MASTER FADE
   Same fade as desktop
   ========================================================= */

/* =========================================================
   ALL INTERIOR HEROES — MOBILE MASTER FADE
   Match desktop fade geometry
   ========================================================= */

@media (max-width: 700px) {

    /* Make photo span the whole hero, like desktop */
    .kennedy-company-hero__image,
    .kennedy-contact-hero__image,
    .kennedy-careers-hero__image {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    /* Exact desktop-style gray fade */
    .kennedy-company-hero__image::before,
    .kennedy-contact-hero__image::before,
    .kennedy-careers-hero__image::before {
        content: "";
        position: absolute;
        z-index: 2;

        top: 0;
        bottom: 0;
        left: 0;

        width: 62% !important;

        background: linear-gradient(
            90deg,
            rgba(243,243,240,1) 0%,
            rgba(243,243,240,1) 30%,
            rgba(243,243,240,0.88) 34%,
            rgba(243,243,240,0.46) 62%,
            rgba(243,243,240,0.10) 82%,
            rgba(243,243,240,0) 100%
        ) !important;

        pointer-events: none;
    }
}
/* COMPANY HERO — MOBILE PHOTO POSITION */
@media (max-width: 700px) {
    .kennedy-company-hero:not(.kennedy-capabilities-page-hero)
    .kennedy-company-hero__photo {
        object-position: center center !important;
        transform: translateX(80px) scale(1.12);
        transform-origin: center center;
    }
}
/* =========================================================
   INTERIOR HEROES — MOBILE TEXT WRAPPING
   Capabilities + Projects + Careers + Contact
   ========================================================= */

@media (max-width: 700px) {

    /* MAIN HEADLINE */
  .kennedy-company-hero:not(.kennedy-capabilities-page-hero):not(.kennedy-projects-page-hero):not(.kennedy-careers-page-hero)
.kennedy-company-hero__copy h1,
.kennedy-capabilities-page-hero .kennedy-company-hero__copy h1,
.kennedy-projects-page-hero .kennedy-company-hero__copy h1,
.kennedy-contact-hero .kennedy-contact-hero__copy h1 {
    width: 145px !important;
    max-width: 145px !important;
    white-space: normal !important;
}  
  .kennedy-capabilities-page-hero .kennedy-company-hero__copy h1,
    .kennedy-projects-page-hero .kennedy-company-hero__copy h1,
        width: 145px !important;
        max-width: 145px !important;

    .kennedy-capabilities-page-hero .kennedy-company-hero__founded,
    .kennedy-projects-page-hero .kennedy-company-hero__founded,
    .kennedy-careers-page-hero .kennedy-company-hero__founded {
        width: 145px !important;
        max-width: 145px !important;
        white-space: normal !important;
    }

    /* SMALL BODY TEXT */
  .kennedy-company-hero:not(.kennedy-capabilities-page-hero):not(.kennedy-projects-page-hero):not(.kennedy-careers-page-hero)
.kennedy-company-hero__copy > p:last-of-type,
    .kennedy-capabilities-page-hero .kennedy-company-hero__copy > p:last-of-type,
    .kennedy-projects-page-hero .kennedy-company-hero__copy > p:last-of-type,
    .kennedy-careers-page-hero .kennedy-company-hero__copy > p:last-of-type,
    .kennedy-contact-hero .kennedy-contact-hero__copy > p:last-of-type {
        width: 135px !important;
        max-width: 135px !important;
    }
}
/* CAREERS HERO — MOBILE PHOTO POSITION */

@media (max-width: 700px) {

    .kennedy-careers-page-hero .kennedy-company-hero__photo {
        object-fit: cover !important;
        object-position: 42% center !important;
        transform: translateX(0) scale(1) !important;
    }

}
/* =========================================================
   CONTACT HERO — MOBILE PHONE NUMBER
   ========================================================= */

@media (max-width: 700px) {

    .kennedy-contact-hero__phone-number {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        line-height: 1.05;
    }

    .kennedy-contact-hero__phone-area,
    .kennedy-contact-hero__phone-local {
        display: block;
        white-space: nowrap;
    }

}
/* =========================================================
   CONTACT HERO — PHONE NUMBER
   ========================================================= */

.kennedy-contact-hero__phone {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.kennedy-contact-hero__phone-number {
    font-family: var(--kennedy-body-font) !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    line-height: 1 !important;
}
/* =========================================================
   CONTACT PAGE — REMOVE GAP ABOVE FOOTER
   ========================================================= */

body:has(.kennedy-contact-details) .com-content-article,
body:has(.kennedy-contact-details) .com-content-article__body,
body:has(.kennedy-contact-details) main,
body:has(.kennedy-contact-details) .container-component {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body:has(.kennedy-contact-details) .container-footer {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.kennedy-contact-details {
    margin-bottom: 0 !important;
}
/* =========================================================
   HOMEPAGE — LARGE SCREEN SCALING
   Keeps proportions comfortable on wide monitors
   ========================================================= */

@media (min-width: 1600px) {

    /* Slightly narrower content area */
    body.itemid-101 {
        --kennedy-home-max: 1320px;
    }

    /* HERO */
    body.itemid-101 .kennedy-hero {
        height: 580px;
    }

    body.itemid-101 .kennedy-hero__content {
        padding-top: 2.5rem !important;
        padding-bottom: 3.75rem !important;
    }

    body.itemid-101 .kennedy-hero__title {
        font-size: 5.25rem !important;
        max-width: 650px;
    }

    body.itemid-101 .kennedy-hero__eyebrow {
        font-size: 1rem;
    }

    /* 39 YEARS SECTION */
    body.itemid-101 .kennedy-experience__39 {
        font-size: 11rem;
    }

    body.itemid-101 .kennedy-experience__years {
        font-size: 2.15rem;
    }

    body.itemid-101 .kennedy-experience__copy h2 {
        font-size: 3.6rem;
    }

    /* FEATURED PROJECTS */
    body.itemid-101 .kennedy-projects__header h2 {
        font-size: 4rem;
    }

    /* SPECIALIZED CAPABILITIES */
    body.itemid-101 .kennedy-capabilities__intro h2 {
        font-size: 3rem;
    }

    body.itemid-101 .kennedy-capability h3 {
        font-size: 1.75rem;
    }

}
/* =========================================================
   COMPANY HERO — LARGE SCREEN
   Match regular desktop proportions
   ========================================================= */

@media (min-width: 1600px) {

    .kennedy-company-hero:not(.kennedy-capabilities-page-hero)
    .kennedy-company-hero__copy {
        width: 40%;
    }

    .kennedy-company-hero:not(.kennedy-capabilities-page-hero)
    .kennedy-company-hero__copy h1 {
        width: 600px !important;
        max-width: 600px !important;
        font-size: 4.5rem !important;
        line-height: 0.94 !important;
    }

    .kennedy-company-hero:not(.kennedy-capabilities-page-hero)
    .kennedy-company-hero__founded {
        max-width: 350px;
    }

    .kennedy-company-hero:not(.kennedy-capabilities-page-hero)
    .kennedy-company-hero__copy > p:last-of-type {
        max-width: 320px;
    }

}
/* =========================================================
   REMAINING INTERIOR HEROES — LARGE SCREEN
   Match regular desktop proportions
   Capabilities + Projects + Careers + Contact
   ========================================================= */

@media (min-width: 1600px) {

    /* =====================================================
       CAPABILITIES
       ===================================================== */

    .kennedy-capabilities-page-hero
    .kennedy-company-hero__copy {
        width: 40% !important;
    }

    .kennedy-capabilities-page-hero
    .kennedy-company-hero__copy h1 {
        width: 600px !important;
        max-width: 600px !important;
        font-size: 4.5rem !important;
        line-height: 0.94 !important;
    }

    .kennedy-capabilities-page-hero
    .kennedy-company-hero__founded {
        max-width: 350px !important;
    }

    .kennedy-capabilities-page-hero
    .kennedy-company-hero__copy > p:last-of-type {
        max-width: 320px !important;
    }


    /* =====================================================
       PROJECTS
       ===================================================== */

    .kennedy-projects-page-hero
    .kennedy-company-hero__copy {
        width: 40% !important;
    }

    .kennedy-projects-page-hero
    .kennedy-company-hero__copy h1 {
        width: 600px !important;
        max-width: 600px !important;
        font-size: 4.5rem !important;
        line-height: 0.94 !important;
    }

    .kennedy-projects-page-hero
    .kennedy-company-hero__founded {
        max-width: 350px !important;
    }

    .kennedy-projects-page-hero
    .kennedy-company-hero__copy > p:last-of-type {
        max-width: 320px !important;
    }


    /* =====================================================
       CAREERS
       ===================================================== */

    .kennedy-careers-page-hero
    .kennedy-company-hero__copy {
        width: 40% !important;
    }

    .kennedy-careers-page-hero
    .kennedy-company-hero__copy h1 {
        width: 600px !important;
        max-width: 600px !important;
        font-size: 4.5rem !important;
        line-height: 0.94 !important;
    }

    .kennedy-careers-page-hero
    .kennedy-company-hero__founded {
        max-width: 350px !important;
    }

    .kennedy-careers-page-hero
    .kennedy-company-hero__copy > p:last-of-type {
        max-width: 320px !important;
    }


    /* =====================================================
       CONTACT
       ===================================================== */

    .kennedy-contact-hero__copy {
        width: 40% !important;
    }

    .kennedy-contact-hero__copy h1 {
        width: 600px !important;
        max-width: 600px !important;
        font-size: 4.5rem !important;
        line-height: 0.94 !important;
    }

    .kennedy-contact-hero__phone {
        max-width: 350px !important;
    }

}
/* =========================================================
   CAREERS HERO — LARGE SCREEN PHOTO POSITION
   Show more of the top of the people
   ========================================================= */

@media (min-width: 1600px) {

    .kennedy-careers-page-hero .kennedy-company-hero__photo {
        object-fit: cover !important;
        object-position: center 35% !important;
        transform: translateX(70px) !important;
    }

}
/* =========================================================
   HEADER — LARGE SCREEN
   Move logo and navigation outward
   ========================================================= */

@media (min-width: 1600px) {

    /* LOGO SIDE */
    header.container-header > .grid-child:first-child {
        width: 100% !important;
        max-width: none !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        padding-left: 65px !important;
        padding-right: 65px !important;

        box-sizing: border-box;
    }

    header.container-header .navbar-brand {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }


    /* MENU SIDE */
    header.container-header .container-nav {
        width: 100% !important;
        max-width: none !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        padding-left: 65px !important;
        padding-right: 65px !important;

        box-sizing: border-box;
    }

}
/* =========================================================
   ALL HEROES — LARGE SCREEN LEFT ALIGNMENT
   Align hero copy with header logo
   ========================================================= */

@media (min-width: 1600px) {

    /* HOME */
    .kennedy-hero__content {
        left: 65px !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    /* COMPANY + CAPABILITIES + PROJECTS + CAREERS */
    .kennedy-company-hero__copy {
        left: 65px !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    /* CONTACT */
    .kennedy-contact-hero__copy {
        left: 65px !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

}
/* =========================================================
   CONTACT HERO — PHONE GRAPHIC
   Tight under heading + left aligned
   ========================================================= */

.kennedy-contact-hero__phone--graphic {
    display: block !important;

    width: 100% !important;
    max-width: 430px !important;

    margin-top: 0 !important;
    margin-left: -24px !important;
    margin-right: auto !important;

    padding: 0 !important;

    text-decoration: none !important;
}

.kennedy-contact-hero__phone-graphic {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;

    margin: 0 !important;
}


/* DESKTOP — tighten heading-to-phone spacing */
@media (min-width: 701px) {

    .kennedy-contact-hero h1 {
        margin-bottom: 12px !important;
    }

}


/* MOBILE */
@media (max-width: 700px) {

    .kennedy-contact-hero h1 {
        margin-bottom: 10px !important;
    }

    .kennedy-contact-hero__phone--graphic {
        width: 100% !important;
        max-width: 290px !important;

        margin-top: 0 !important;
        margin-left: 0 !important;
    }

}


/* LARGE SCREENS */
@media (min-width: 1600px) {

    .kennedy-contact-hero__phone--graphic {
        max-width: 430px !important;
        margin-left: 0 !important;
    }

}
/* =========================================================
   ALL INTERIOR HEROES — MOBILE MASTER FADE
   Solid left edge with smooth transition
   Company + Capabilities + Projects + Careers + Contact
   ========================================================= */

@media (max-width: 700px) {

    .kennedy-company-hero__image::before,
    .kennedy-contact-hero__image::before,
    .kennedy-careers-hero__image::before {
        width: 72% !important;

        background: linear-gradient(
            90deg,
            rgba(243,243,240,1) 0%,
            rgba(243,243,240,1) 12%,
            rgba(243,243,240,0.98) 17%,
            rgba(243,243,240,0.94) 23%,
            rgba(243,243,240,0.86) 31%,
            rgba(243,243,240,0.72) 42%,
            rgba(243,243,240,0.54) 54%,
            rgba(243,243,240,0.34) 67%,
            rgba(243,243,240,0.16) 82%,
            rgba(243,243,240,0) 100%
        ) !important;
    }

}
/* =========================================================
   COMPANY HISTORY — ARCHIVAL PHOTO STACK
   MATCH ORIGINAL MOCKUP MORE CLOSELY
   ========================================================= */

.kennedy-company-history {
    position: relative;
    width: 100vw;
    max-width: none;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    background: #f3f3f0;
}


/* =========================================================
   MAIN TWO-COLUMN LAYOUT
   ========================================================= */

.kennedy-company-history__inner {
    display: grid;

    grid-template-columns:
        minmax(520px, 0.95fr)
        minmax(540px, 1.05fr);

    align-items: center;

    gap: 5.5rem;

    width: min(100% - 120px, 1480px);
    margin: 0 auto;

    padding: 5.5rem 0 6.5rem;

    box-sizing: border-box;
}


/* =========================================================
   LEFT SIDE
   ========================================================= */

.kennedy-company-history__visual {
    position: relative;

    width: 100%;
    max-width: 690px;

    margin-left: 10px;
}


.kennedy-company-history__photo-stack {
    position: relative;

    width: 100%;

    padding-bottom: 78px;
}


/* =========================================================
   NEWSPAPER — LARGE BACK PHOTO
   ========================================================= */

.kennedy-company-history__newspaper {
    position: relative;
    z-index: 1;

    width: 82%;

    margin-left: 0;

    padding: 7px;

    background: #ecebe6;

    transform: rotate(-0.7deg);
    transform-origin: center;

    box-shadow:
        0 12px 24px rgba(0,0,0,0.12),
        0 3px 7px rgba(0,0,0,0.08);
}


.kennedy-company-history__newspaper img {
    display: block;

    width: 100%;
    height: auto;

    filter:
        grayscale(100%)
        contrast(1.03)
        brightness(1.01);
}


/* =========================================================
   SIGN — SMALLER OVERLAPPING ARCHIVAL PRINT
   ========================================================= */

.kennedy-company-history__sign {
    position: absolute;
    z-index: 5;

    width: 52%;

    right: 1%;
    bottom: 5px;

    padding: 7px;

    background: #ecebe6;

    transform: rotate(-1.7deg);
    transform-origin: center;

    box-shadow:
        0 14px 28px rgba(0,0,0,0.20),
        0 3px 8px rgba(0,0,0,0.11);
}


.kennedy-company-history__sign img {
    display: block;

    width: 100%;
    height: auto;

    filter:
        grayscale(100%)
        contrast(1.05)
        brightness(0.96);
}


/* =========================================================
   LIGHT AGED-PHOTO EFFECT
   ========================================================= */

.kennedy-company-history__newspaper::after,
.kennedy-company-history__sign::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            rgba(255,255,255,0.04),
            rgba(235,232,220,0.08)
        );

    mix-blend-mode: multiply;
}


/* =========================================================
   ARCHIVE CAPTION
   ========================================================= */

.kennedy-company-history__archive-caption {
    width: 50%;

    margin-top: 0.8rem;
    margin-left: 48%;

    text-align: left;
}


.kennedy-company-history__archive-caption span {
    display: block;

    font-size: 0.68rem;
    font-weight: 700;

    line-height: 1.3;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    color: #444;
}


.kennedy-company-history__archive-line {
    width: 50px;
    height: 3px;

    margin-top: 8px;

    background: #CCFF00;
}


/* =========================================================
   RIGHT SIDE COPY
   ========================================================= */

.kennedy-company-history__copy {
    min-width: 0;
}


.kennedy-company-history__eyebrow {
    margin-bottom: 1rem;

    font-size: 0.82rem;
    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    color: #555;
}


.kennedy-company-history__copy h2 {
    max-width: 600px;

    margin: 0;

    font-family: var(--kennedy-heading-font);

    font-size: clamp(3rem, 4.2vw, 4.7rem);

    line-height: 0.94;

    letter-spacing: -0.02em;

    text-transform: uppercase;

    color: #202020;
}


.kennedy-company-history__line {
    width: 58px;
    height: 4px;

    margin: 1.5rem 0 2rem;

    background: #CCFF00;
}


.kennedy-company-history__copy p {
    max-width: 600px;

    margin: 0 0 1rem;

    font-size: 1rem;

    line-height: 1.62;

    color: #292929;
}




/* =========================================================
   LARGE SCREENS
   ========================================================= */

@media (min-width: 1600px) {

    .kennedy-company-history__inner {
        width: calc(100% - 130px);
        max-width: none;

        grid-template-columns:
            minmax(600px, 0.95fr)
            minmax(620px, 1.05fr);

        gap: 6.5rem;
    }


    .kennedy-company-history__visual {
        max-width: 730px;
    }


    .kennedy-company-history__copy h2 {
        font-size: 4.6rem;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .kennedy-company-history__inner {
        display: flex;
        flex-direction: column;

        width: 100%;

        gap: 2.5rem;

        padding:
            3.5rem
            var(--kennedy-home-gutter-mobile, 2rem)
            4rem;
    }


    /* photos first, like desktop story flow */

    .kennedy-company-history__visual {
        order: 1;

        width: 100%;
        max-width: none;

        margin: 0;
    }


    .kennedy-company-history__copy {
        order: 2;
    }


    .kennedy-company-history__photo-stack {
        padding-bottom: 55px;
    }


    .kennedy-company-history__newspaper {
        width: 86%;

        padding: 5px;

        transform: rotate(-0.5deg);
    }


    .kennedy-company-history__sign {
        width: 54%;

        right: 0;
        bottom: 0;

        padding: 5px;

        transform: rotate(-1.3deg);
    }


    .kennedy-company-history__archive-caption {
        width: 54%;

        margin-left: 46%;
        margin-top: 0.65rem;
    }


    .kennedy-company-history__archive-caption span {
        font-size: 0.58rem;
        letter-spacing: 0.08em;
    }


    .kennedy-company-history__copy h2 {
        max-width: 320px;

        font-size: clamp(2.35rem, 10vw, 3.25rem);
    }


    .kennedy-company-history__copy p {
        max-width: none;

        font-size: 0.92rem;

        line-height: 1.58;
    }

}
/* =========================================================
   COMPANY HISTORY — ARCHIVAL TEXTURE
   ========================================================= */

.kennedy-company-history__visual {
    position: relative !important;
    isolation: isolate;
    overflow: visible !important;
}


/* TEXTURE BEHIND THE PHOTO COLLAGE */

.kennedy-company-history__visual::before {
    content: "";

    position: absolute;
    z-index: 0;

    top: -75px;
    left: -95px;

    width: 135%;
    height: 125%;

    background-image: url("/images/kennedy/texture.webp");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

    opacity: 0.42;

    filter:
        contrast(0.95)
        brightness(1.02);

    mix-blend-mode: multiply;

/* Fade texture smoothly on ALL FOUR SIDES */
-webkit-mask-image:
    linear-gradient(to right,
        transparent 0%,
        #000 9%,
        #000 74%,
        transparent 100%
    ),
    linear-gradient(to bottom,
        transparent 0%,
        #000 8%,
        #000 76%,
        transparent 100%
    );

    -webkit-mask-composite: source-in;

    mask-image:
        linear-gradient(to right,
            transparent 0%,
            #000 9%,
            #000 86%,
            transparent 100%
        ),
        linear-gradient(to bottom,
            transparent 0%,
            #000 8%,
            #000 88%,
            transparent 100%
        );

    mask-composite: intersect;

    pointer-events: none;
}


/* NO SECOND TEXTURE LAYER */

.kennedy-company-history__visual::after {
    content: none !important;
    display: none !important;
}


/* PHOTOS ABOVE TEXTURE */

.kennedy-company-history__photo-stack {
    position: relative;
    z-index: 2;
}

.kennedy-company-history__newspaper {
    position: relative;
    z-index: 2;
}

.kennedy-company-history__sign {
    position: absolute;
    z-index: 4;
}


/* REMOVE OLD TEXTURE LAYERS */

.kennedy-company-history__photo-stack::before,
.kennedy-company-history__photo-stack::after {
    content: none !important;
    display: none !important;
}


/* MOBILE */

@media (max-width: 700px) {

    .kennedy-company-history__visual::before {
        top: -40px;
        left: -45px;

        width: 125%;
        height: 115%;

        background-position: center;
        background-size: cover;

        opacity: 0.32;

        filter:
            contrast(0.95)
            brightness(1.02);
    }

}
/* =========================================================
   COMPANY HISTORY — MOCKUP MATCH
   DESKTOP FINAL OVERRIDE
   ========================================================= */

@media (min-width: 701px) {

    /* LEFT COLLAGE AREA */
    .kennedy-company-history__visual {
        position: relative !important;

        width: 100% !important;
        max-width: 720px !important;

        margin-left: 0 !important;

        /* Align newspaper near OUR HISTORY heading */
        transform: translateY(10px) !important;

        isolation: isolate;
        overflow: visible !important;
    }


    /* PHOTO STACK */
    .kennedy-company-history__photo-stack {
        position: relative !important;

        width: 100% !important;

        /* enough room for sign + caption */
        padding-bottom: 95px !important;
    }


    /* NEWSPAPER */
    .kennedy-company-history__newspaper {
        position: relative !important;
        z-index: 2 !important;

        width: 88% !important;

        margin-left: 0 !important;

        padding: 7px !important;

        transform: rotate(-0.5deg) !important;

        background: #ecebe6 !important;
    }


    /* SIGN */
    .kennedy-company-history__sign {
        position: absolute !important;
        z-index: 4 !important;

        width: 60% !important;

        right: -5% !important;

        /*
         * This places the sign about halfway down the newspaper,
         * like the mockup.
         */
        bottom: 72px !important;

        padding: 7px !important;

        transform: rotate(-1.7deg) !important;
    }


    /* ARCHIVE CAPTION */
    .kennedy-company-history__archive-caption {
        position: relative !important;
        z-index: 5 !important;

        width: 58% !important;

        margin-left: 46% !important;
        margin-top: -52px !important;
    }
}
/* =========================================================
   COMPANY HISTORY — WIDE MOCKUP TEXTURE
   Extends texture to RIGHT of newspaper
   ========================================================= */

@media (min-width: 701px) {

    .kennedy-company-history__visual::before {
        content: "" !important;

        position: absolute !important;
        z-index: 0 !important;

        /*
         * Start outside the newspaper on the left,
         * but extend FAR into the open area on the right.
         */
        top: -55px !important;
        left: -90px !important;

        width: 165% !important;
        height: 118% !important;

        background-image:
            url("/images/kennedy/texture.webp") !important;

        background-repeat: no-repeat !important;

        /*
         * IMPORTANT:
         * enlarge the texture itself so the distressed
         * portion reaches farther to the right
         */
        background-size: 110% 118% !important;

        /*
         * Anchor the distressed portion toward the left
         * instead of centering the transparent PNG.
         */
        background-position: left center !important;

        opacity: 0.34 !important;

        filter:
            contrast(0.90)
            brightness(1.08) !important;

        mix-blend-mode: multiply !important;

        pointer-events: none !important;
    }

}
/* =========================================================
   COMPANY HISTORY — REDUCE TOP / BOTTOM DEAD SPACE
   ========================================================= */

@media (min-width: 701px) {

    .kennedy-company-history {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .kennedy-company-history__inner {
        padding-top: 2rem !important;
        padding-bottom: 2.5rem !important;
    }

}
@media (max-width: 700px) {

    .kennedy-company-history {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .kennedy-company-history__inner {
        gap: 1.5rem !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

}