:root {
    --kma-bg: #f8f8f8;
    --kma-ink: #000;
    --kma-orange: #E1401E;
    --kma-blue-dark: #093040;
    --kma-gutter: 40px;
    --kma-content-max: 1728px;
    --kma-page-gutter: 24px;
    --kma-copy-link: #0000EE;
}

/* Keep browser-blue links scoped to authored copy, not sitewide components. */
:where(
    .elementor-widget-text-editor,
    .elementor-widget-theme-post-content,
    .kma-news-template__content,
    .kma-project-template__content,
    .kma-person-profile__body,
    .kma-person-modal__copy
) a:not(.elementor-button) {
    color: var(--kma-copy-link);
}

/* Keep every page-level H1 consistently black, including Elementor headings. */
body h1,
body h1 * {
    color: #000000 !important;
}
body .kma-home-hero > h1,
body .kma-home-hero > h1 * {
    color: #ffffff !important;
}
body #kma-projects-index-title {
    color: #E1401E !important;
}
body #kma-news-index-title {
    color: #E1401E !important;
}

.kma-site-header, .kma-overlay-navigation, .kma-site-footer, .kma-project-template, .kma-news-template, .kma-home-page { font-family: "helvetica-neue-lt-pro", "Helvetica Neue", Helvetica, Arial, sans-serif; }

.kma-site-header { position: absolute; inset: 0 0 auto; z-index: 9990; pointer-events: none; }
.kma-site-header__logo { position: absolute; top: 40px; left: var(--kma-gutter); width: 265px; max-width: 21vw; pointer-events: auto; }
.kma-site-header__logo img, .kma-overlay-navigation__logo img { display: block; width: 100%; height: auto; }
.kma-menu-toggle { position: fixed; top: 40px; right: var(--kma-gutter); z-index: 9992; display: grid; place-items: center; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 0; background: var(--kma-orange); color: #fff; cursor: pointer; pointer-events: auto; }
.kma-menu-toggle__dots { display: flex; gap: 5px; }
.kma-menu-toggle__dots i { width: 7px; height: 7px; background: currentColor; }
.kma-overlay-navigation[hidden] { display: none; }
.kma-overlay-navigation { position: fixed; inset: 0; z-index: 9995; overflow: auto; padding: 40px var(--kma-gutter) 64px; background: var(--kma-bg); color: var(--kma-ink); pointer-events: auto; }
.kma-overlay-navigation__bar { display: flex; justify-content: space-between; align-items: flex-start; }
.kma-overlay-navigation__logo { width: 265px; max-width: 21vw; }
.kma-menu-close { position: relative; width: 64px; height: 64px; border: 0; background: var(--kma-ink); color: #fff; cursor: pointer; }
.kma-menu-close span[aria-hidden]::before, .kma-menu-close span[aria-hidden]::after { content: ''; position: absolute; top: 31px; left: 17px; width: 30px; height: 2px; background: currentColor; transform: rotate(45deg); }
.kma-menu-close span[aria-hidden]::after { transform: rotate(-45deg); }
.kma-overlay-navigation__content { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(220px, .7fr); gap: clamp(32px, 4vw, 80px); max-width: 1728px; margin: clamp(72px, 10vh, 140px) auto 0; }
.kma-nav-group h2 { margin: 0 0 24px; font-size: clamp(32px, 3.5vw, 54px); font-weight: 500; line-height: 1.1; }
.kma-nav-group ul { margin: 0; padding: 0; list-style: none; }
.kma-nav-group a { display: inline-block; padding: 5px 0; color: inherit; font-size: clamp(18px, 1.45vw, 24px); line-height: 1.25; text-decoration: none; }
.kma-nav-group a:hover, .kma-nav-group a:focus-visible, .kma-site-footer a:hover, .kma-site-footer a:focus-visible { color: var(--kma-orange); }
.kma-arrow-link { display: inline-flex; gap: 10px; align-items: center; align-self: end; color: inherit; font-size: 18px; font-weight: 500; line-height: 24px; text-transform: uppercase; text-decoration: none; }
.kma-arrow-link > span {
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 15px;
    background-color: var(--kma-orange);
    font-size: 0;
    line-height: 0;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 15'%3E%3Cpath d='M0 6.5h16.2L11.1 1.4 12.5 0 20 7.5 12.5 15l-1.4-1.4 5.1-5.1H0z'/%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 20 15'%3E%3Cpath d='M0 6.5h16.2L11.1 1.4 12.5 0 20 7.5 12.5 15l-1.4-1.4 5.1-5.1H0z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.kma-nav-open { overflow: hidden; }

.kma-site-footer { background: var(--kma-bg); color: var(--kma-ink); }
.kma-site-footer__lead { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 7vw, 120px); padding: clamp(72px, 9vw, 150px) var(--kma-gutter); background: var(--kma-blue-dark); color: #fff; }
.kma-site-footer__lead > h2 { max-width: 900px; margin: 0; font-size: clamp(46px, 5.7vw, 90px); font-weight: 500; line-height: 1.08; letter-spacing: -1px; }
.kma-site-footer h3 { margin: 0 0 20px; font-size: 20px; font-weight: 500; }
.kma-site-footer__directory { display: grid; grid-template-columns: minmax(220px, .85fr) minmax(0, 2.2fr) minmax(280px, 1.05fr); gap: clamp(28px, 3.5vw, 72px); align-items: start; padding: clamp(72px, 8vw, 130px) var(--kma-gutter); }
.kma-site-footer__identity { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.kma-site-footer__identity img { width: 220px; height: auto; margin-bottom: 20px; }
.kma-site-footer address { max-width: 270px; font-style: normal; }
.kma-site-footer a { color: inherit; text-decoration: none; }
.kma-footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 2.5vw, 52px); }
.kma-footer-nav__column { display: flex; flex-direction: column; gap: clamp(34px, 4vw, 64px); }
.kma-footer-nav__group { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.kma-footer-nav__group h3 { margin-bottom: 8px; }
.kma-footer-nav__group > a { line-height: 1.25; }
.kma-site-footer__newsletter { min-width: 0; }
.kma-site-footer__newsletter p { max-width: 440px; font-size: 14px; }
.kma-site-footer__bottom { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 28px var(--kma-gutter); border-top: 1px solid rgba(0,0,0,.2); font-size: 14px; }
.kma-site-footer__socials, .kma-site-footer__legal { display: flex; gap: 22px; }
.kma-project-gallery { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-width: thin; }
.kma-project-gallery figure { margin: 0; scroll-snap-align: start; }
.kma-project-gallery img { display: block; width: 100%; object-fit: cover; }
.kma-project-template__intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(360px, .6fr); gap: clamp(48px, 8vw, 140px); align-items: start; }
.kma-project-template__intro h1, .kma-news-template__heading h1 { margin: 0; font-size: clamp(54px, 7vw, 118px); font-weight: 500; line-height: .98; letter-spacing: -.035em; }
.kma-project-template__content, .kma-news-template__content { max-width: 1040px; font-size: clamp(19px, 1.6vw, 26px); line-height: 1.5; }
.kma-news-meta { display: flex; gap: 18px; align-items: center; margin-bottom: 32px; color: var(--kma-orange); text-transform: uppercase; }
.kma-news-meta span::after { content: ''; display: inline-block; width: 1px; height: 1.2em; margin-left: 18px; vertical-align: middle; background: currentColor; }
.kma-news-template > .elementor-widget-theme-post-featured-image img { display: block; width: 100%; max-height: 86vh; object-fit: cover; }
.kma-home-hero { min-height: 100vh; background: var(--kma-blue-dark); color: #fff; }
.kma-home-hero > h1 { position: relative; z-index: 2; max-width: 1450px; margin: 0 0 clamp(70px, 10vw, 170px); font-size: clamp(58px, 7.2vw, 124px); font-weight: 500; line-height: .96; letter-spacing: -.04em; }
.kma-home-hero__projects, .kma-home-project-rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: inline mandatory; scrollbar-width: thin; }
.kma-home-hero__projects .kma-project-card { flex: 0 0 min(72vw, 1150px); }
.kma-home-project-rail { background: #fff; }
.kma-home-project-rail .kma-project-card { flex: 0 0 min(39vw, 660px); }
.kma-project-card { position: relative; scroll-snap-align: start; }
.kma-project-card > a { position: relative; display: block; color: inherit; text-decoration: none; }
.kma-project-card__image { display: block; overflow: hidden; }
.kma-project-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.kma-project-card h3 { margin: 15px 0 0; font-size: clamp(26px, 2.7vw, 48px); font-weight: 500; line-height: 1.05; }
.kma-project-card__count { display: block; margin-top: 16px; font-size: 13px; }
.kma-project-card .kma-arrow-link { margin-top: 16px; }
.kma-home-about, .kma-home-services { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 150px); align-items: center; }
.kma-home-about h2, .kma-home-services h2, .kma-home-news h2 { margin: 0; font-size: clamp(48px, 5.5vw, 92px); font-weight: 500; line-height: 1; letter-spacing: -.035em; }
.kma-home-about p, .kma-home-services p { max-width: 760px; font-size: clamp(20px, 1.6vw, 27px); line-height: 1.45; }
.kma-home-about img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.kma-home-manifesto { text-align: center; background: #fff; }
.kma-home-manifesto h2 { max-width: 1500px; margin: 0 auto 42px; font-size: clamp(42px, 5vw, 82px); font-weight: 500; line-height: 1.08; }
.kma-home-services { background: var(--kma-blue-dark); color: #fff; }
.kma-home-services__links h3 { margin: 0; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.45); font-size: clamp(34px, 4vw, 68px); font-weight: 500; }
.kma-home-services__links a { color: inherit; text-decoration: none; }
.kma-latest-news { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 60px; }
.kma-latest-news a { color: inherit; text-decoration: none; }
.kma-latest-news img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.kma-latest-news time { display: block; margin-top: 16px; color: var(--kma-orange); font-size: 13px; }
.kma-latest-news h3 { margin: 9px 0 0; font-size: clamp(22px, 1.8vw, 32px); font-weight: 500; line-height: 1.12; }
.kma-index__heading { display: grid; grid-template-columns: 1.4fr .6fr; gap: 40px; align-items: end; margin-bottom: clamp(60px, 8vw, 130px); }
.kma-index__heading h1 { margin: 0; font-size: clamp(76px, 11vw, 190px); font-weight: 500; line-height: .85; letter-spacing: -.055em; }
.kma-index__heading p { max-width: 560px; margin: 0 0 10px; font-size: clamp(20px, 1.7vw, 28px); line-height: 1.35; }
.kma-filter-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 52px; padding: 20px 0; border-block: 1px solid currentColor; }
.kma-filter-nav a { color: inherit; font-size: 15px; text-decoration: none; text-transform: uppercase; }
.kma-filter-nav a[aria-current="page"] { color: var(--kma-orange); text-decoration: underline; text-underline-offset: 6px; }
.kma-index-grid { display: grid; gap: clamp(24px, 3vw, 48px); }
.kma-index-grid--projects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kma-index-grid--news { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kma-index-card a { display: block; color: inherit; text-decoration: none; }
.kma-index-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.kma-index-card h2 { margin: 12px 0 0; font-size: clamp(26px, 2.7vw, 48px); font-weight: 500; line-height: 1.05; }
.kma-index-grid--news h2 { font-size: clamp(24px, 2vw, 36px); }
.kma-index-card p, .kma-index-card time { display: block; margin: 9px 0 0; color: var(--kma-orange); font-size: 13px; text-transform: uppercase; }
.kma-infinite-scroll {
    position: relative;
    display: grid;
    min-height: 72px;
    place-items: center;
    margin-top: 48px;
    text-align: center;
}
.kma-infinite-scroll__status { margin: 0; font-size: 15px; }
.kma-infinite-scroll__fallback { color: inherit; text-underline-offset: 4px; }
.kma-infinite-scroll.is-auto .kma-infinite-scroll__fallback { display: none; }
.kma-infinite-scroll.is-loading::after,
.kma-person-modal__status::after {
    position: absolute;
    width: 28px;
    height: 28px;
    border: 2px solid rgba(0,0,0,.2);
    border-top-color: var(--kma-orange);
    border-radius: 50%;
    animation: kma-infinite-scroll-spin .7s linear infinite;
    content: '';
}
.kma-infinite-scroll.is-loading .kma-infinite-scroll__status,
.kma-person-modal__status-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.kma-infinite-scroll.is-complete { min-height: 0; margin-top: 0; }
.kma-infinite-scroll.is-complete .kma-infinite-scroll__status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
@keyframes kma-infinite-scroll-spin { to { transform: rotate(360deg); } }
.kma-split-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(48px, 8vw, 140px); align-items: center; min-height: 100vh; }
.kma-services-heading > .elementor-widget-heading:first-child, .kma-eyebrow { color: var(--kma-orange); font-size: 20px; text-transform: uppercase; }
.kma-split-hero h1, .kma-services-heading h1 { margin: 0; font-size: clamp(54px, 6.5vw, 108px); font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.kma-split-hero img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.kma-firm-story, .kma-firm-cta { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 140px); }
.kma-firm-story h2, .kma-firm-cta h2 { margin: 0; font-size: clamp(46px, 5.5vw, 90px); font-weight: 500; line-height: 1; }
.kma-firm-story p, .kma-firm-cta p { font-size: clamp(19px, 1.6vw, 26px); line-height: 1.5; }
.kma-timeline-scroll {
    position: relative;
    left: 0;
    width: calc(100% + 48px);
    max-width: none;
    margin-left: -24px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    background-color: #FFFFFF;
    background-image: radial-gradient(ellipse 48% 72% at 92% 92%, color-mix(in srgb, var(--kma-orange) 17%, transparent) 0%, color-mix(in srgb, var(--kma-orange) 8%, transparent) 44%, transparent 74%);
    scrollbar-width: thin;
    scrollbar-color: var(--kma-orange) transparent;
}
.kma-timeline { --kma-timeline-item: clamp(290px, 17vw, 350px); position: relative; display: flex; width: max-content; min-width: 100%; height: clamp(500px, 35vw, 620px); margin: 0; padding: 0; list-style: none; }
.kma-timeline::before { position: absolute; top: 50%; right: calc(var(--kma-timeline-item) / 2); left: calc(var(--kma-timeline-item) / 2); border-top: 2px solid var(--kma-orange); content: ""; }
.kma-timeline li { position: relative; flex: 0 0 var(--kma-timeline-item); min-width: 0; padding: 0; border: 0; }
.kma-timeline__wave { position: absolute; z-index: 0; left: 50%; width: 100%; height: clamp(64px, 5vw, 86px); overflow: visible; pointer-events: none; }
.kma-timeline__curve { display: none; }
.kma-timeline li:last-child .kma-timeline__wave { display: none; }
.kma-timeline li:last-child .kma-timeline__curve { display: none; }
.kma-timeline li:nth-child(odd) .kma-timeline__wave { top: calc(50% - clamp(64px, 5vw, 86px)); }
.kma-timeline li:nth-child(even) .kma-timeline__wave { top: 50%; }
.kma-timeline__wave path { fill: none; stroke: color-mix(in srgb, var(--kma-orange) 48%, transparent); stroke-width: 1.35px; stroke-dasharray: 2px 4px; stroke-linecap: round; }
.kma-timeline__marker { position: absolute; z-index: 2; top: 50%; left: 50%; width: 15px; height: 15px; border-radius: 50%; background: var(--kma-orange); transform: translate(-50%, -50%); }
.kma-timeline__stem { position: absolute; z-index: 1; left: 50%; width: 1px; height: 72px; background: var(--kma-orange); transform: translateX(-50%); }
.kma-timeline li:nth-child(odd) .kma-timeline__stem { bottom: 50%; }
.kma-timeline li:nth-child(even) .kma-timeline__stem { top: 50%; }
.kma-timeline__event { position: absolute; left: 0; width: 100%; padding-inline: 12px; text-align: center; }
.kma-timeline li:nth-child(odd) .kma-timeline__event { bottom: calc(50% + 82px); }
.kma-timeline li:nth-child(even) .kma-timeline__event { top: calc(50% + 82px); }
.kma-timeline time { display: block; margin-bottom: 4px; color: var(--kma-orange); font-size: clamp(16px, 1.1vw, 22px); line-height: 1.1; }
.kma-timeline p { max-width: 330px; margin: 0 auto; font-size: clamp(20px, 1.45vw, 29px); font-weight: 500; line-height: 1.12; }
.kma-firm-cta { background: var(--kma-blue-dark); color: #fff; }
.kma-about-people-carousel { width: 100%; overflow: hidden; background: var(--kma-bg); }
.kma-about-people-carousel::-webkit-scrollbar { display: none; }
.kma-about-people-rail { gap: 10px; background: var(--kma-bg); }
.kma-about-people-card { display: block; flex: 0 0 calc((100vw - 30px) / 4); width: calc((100vw - 30px) / 4); color: inherit; text-decoration: none; scroll-snap-align: start; }
.kma-about-people-card img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.kma-people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.kma-person-card a { color: inherit; text-decoration: none; }
.kma-person-card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.kma-person-card h2 { margin: 13px 0 0; font-size: clamp(25px, 2.3vw, 40px); font-weight: 500; line-height: 1.05; }
.kma-person-card h2 span { font-size: .48em; }
.kma-person-card p { margin: 7px 0 0; color: var(--kma-orange); text-transform: uppercase; }
.kma-person-page { padding: clamp(110px, 10vw, 190px) clamp(24px, 3vw, 58px) clamp(60px, 7vw, 120px); }
.kma-person-profile { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(48px, 8vw, 140px); padding-top: 40px; }
.kma-person-profile__back { grid-column: 1 / -1; color: inherit; text-decoration: none; text-transform: uppercase; }
.kma-person-profile img { display: block; width: 100%; height: auto; }
.kma-person-profile h2 { margin: 0 0 30px; font-size: clamp(50px, 6vw, 100px); font-weight: 500; line-height: .95; }
.kma-person-profile__body > p { font-size: clamp(18px, 1.4vw, 23px); line-height: 1.55; }
.kma-person-modal[hidden] { display: none; }
.kma-person-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: block;
    padding: 50px 80px;
    overflow-y: auto;
    background: #f8f8f8;
}
.kma-person-modal-open { overflow: hidden; }
body button.kma-person-modal__backdrop,
body button.kma-person-modal__backdrop:hover,
body button.kma-person-modal__backdrop:focus {
    position: absolute;
    inset: 0;
    z-index: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: default;
}
.kma-person-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    height: calc(100vh - 100px);
    max-height: none;
    margin-inline: auto;
    overflow: auto;
    background: #fff;
    box-shadow: none;
}
.kma-person-modal__status {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    min-height: 0;
    margin: 0;
    padding: 0;
    place-items: center;
}
.kma-person-modal__status[hidden] { display: none; }
.kma-person-modal__content { min-height: 100%; }
.kma-person-modal__profile {
    display: grid;
    grid-template-columns: 25% minmax(0, 1fr);
    gap: 0;
    min-height: calc(100vh - 100px);
    padding: 0;
}
.kma-person-modal__photo { background: #f8f8f8; }
.kma-person-modal__photo img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.kma-person-modal__profile .kma-person-profile__body { min-width: 0; background: #fff; }
.kma-person-modal__header { min-height: 0; padding: 40px 40px 20px; background: #4f4f4f; color: #fff; }
.kma-person-modal__header h2 { margin: 0 0 8px; color: #fff; font-family: helvetica-neue-lt-pro, sans-serif; font-size: 54px; font-weight: 500; line-height: 1.2; letter-spacing: -1px; }
.kma-person-modal__header .kma-eyebrow { margin: 5px 0 0; color: #fff; font-family: helvetica-neue-lt-pro, sans-serif; font-size: 20px; font-weight: 500; line-height: 1.2; text-transform: none; }
.kma-person-modal__email { display: block; margin-top: 20px; font-family: helvetica-neue-lt-pro, sans-serif; font-size: 20px; font-weight: 500; line-height: 1.2; text-decoration: none; }
body .kma-person-modal__header a.kma-person-modal__email,
body .kma-person-modal__header a.kma-person-modal__email:visited,
body .kma-person-modal__header a.kma-person-modal__email:hover,
body .kma-person-modal__header a.kma-person-modal__email:active,
body .kma-person-modal__header a.kma-person-modal__email:focus-visible { color: #fff; }
.kma-person-modal__email:hover, .kma-person-modal__email:focus-visible { text-decoration: underline; }
.kma-person-modal__copy { padding: 40px; color: #000; font-family: helvetica-neue-lt-pro, sans-serif; font-size: 16px; line-height: 1.6; }
.kma-person-modal__copy p { max-width: none; margin: 0 0 16px; font-size: 16px; line-height: 1.6; }
.kma-person-modal__back { display: block; margin: 0; padding: 30px 0; font-family: helvetica-neue-lt-pro, sans-serif; font-size: 16px; font-weight: 500; line-height: 1.6; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; }
body .kma-person-modal__copy a.kma-person-modal__back,
body .kma-person-modal__copy a.kma-person-modal__back:visited,
body .kma-person-modal__copy a.kma-person-modal__back:hover,
body .kma-person-modal__copy a.kma-person-modal__back:active,
body .kma-person-modal__copy a.kma-person-modal__back:focus-visible { color: var(--kma-orange); }
body button.kma-person-modal__close {
    position: fixed;
    z-index: 3;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #000 !important;
    color: #fff !important;
    box-shadow: none !important;
}
.kma-person-modal__close span::before,
.kma-person-modal__close span::after { position: absolute; top: 23px; left: 9px; width: 30px; height: 2px; background: currentColor; content: ''; transform: rotate(45deg); }
.kma-person-modal__close span::after { transform: rotate(-45deg); }
body button.kma-person-modal__previous,
body button.kma-person-modal__next {
    position: fixed;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: calc(100vh - 100px);
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #9b9b9b !important;
    font-size: 64px;
    font-weight: 200;
    line-height: 1 !important;
    box-shadow: none !important;
    transform: translateY(-50%);
}
.kma-person-modal__previous { left: 20px; }
.kma-person-modal__next { right: 20px; }
body button.kma-person-modal__previous:hover,
body button.kma-person-modal__previous:focus-visible,
body button.kma-person-modal__next:hover,
body button.kma-person-modal__next:focus-visible { color: var(--kma-orange) !important; }
@media (max-width: 991px) {
    .kma-person-modal { padding: 20px 12px; }
    .kma-person-modal__panel { height: auto; min-height: calc(100vh - 40px); max-height: none; overflow: visible; }
    .kma-person-modal__profile { grid-template-columns: 1fr; min-height: 0; }
    .kma-person-modal__photo img { max-height: none; }
    .kma-person-modal__header { padding: 20px 40px; }
    .kma-person-modal__header h2 { font-size: 32px; }
    .kma-person-modal__header .kma-eyebrow,
    .kma-person-modal__email { font-size: 18px; }
    .kma-person-modal__copy { padding: 40px; }
    body button.kma-person-modal__previous,
    body button.kma-person-modal__next { display: none; }
}
.kma-services-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.kma-service-card { position: relative; overflow: hidden; }
.kma-service-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.kma-service-card h2 { position: absolute; inset: auto 24px 24px; margin: 0; color: #fff; font-size: clamp(28px, 3vw, 52px); font-weight: 500; }
.kma-service-card a { color: inherit; text-decoration: none; }
.kma-service-card:hover img { transform: scale(1.025); }
.kma-service-detail__copy > .elementor-widget-heading:first-child, .kma-category-heading > .elementor-widget-heading:first-child { color: var(--kma-orange); text-transform: uppercase; }
.kma-service-detail__copy h1 { max-width: 1500px; margin: 0; font-size: clamp(50px, 6.5vw, 110px); font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.kma-service-detail__copy p { max-width: 900px; margin: 0; font-size: clamp(20px, 1.8vw, 29px); line-height: 1.5; }
.kma-service-detail__images { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.kma-service-detail__image { position: relative; }
.kma-service-detail__image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.kma-service-detail__image h2 { position: absolute; inset: auto 24px 24px; margin: 0; color: #fff; font-size: clamp(24px, 2.5vw, 44px); font-weight: 500; }
.kma-category-heading h1 { max-width: 1500px; margin: 0; font-size: clamp(70px, 10vw, 170px); font-weight: 500; line-height: .88; letter-spacing: -.055em; }
.kma-contact-heading { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(50px, 8vw, 140px); align-items: end; background: var(--kma-blue-dark); color: #fff; }
.kma-contact-heading h1 { margin: 0; font-size: clamp(64px, 8vw, 140px); font-weight: 500; line-height: .92; letter-spacing: -.05em; }
.kma-contact-heading address { font-style: normal; }
.kma-contact-heading a { color: inherit; }
.kma-contact-main { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(50px, 8vw, 140px); }
.kma-contact-main h2 { margin: 0 0 30px; font-size: clamp(46px, 5vw, 84px); font-weight: 500; }
.kma-contact-careers { background: var(--kma-bg); }
.kma-legal-heading .elementor-heading-title { margin: 0; font-size: clamp(70px, 10vw, 170px); font-weight: 500; line-height: .9; }
.kma-legal-content { max-width: 980px; font-size: clamp(18px, 1.5vw, 24px); line-height: 1.55; }
.kma-search-results header h1 { max-width: 1300px; margin: 0; font-size: clamp(60px, 8vw, 140px); font-weight: 500; line-height: .92; }
.kma-search-results form { max-width: 900px; margin-top: 50px; }
.kma-search-results form > div { display: grid; grid-template-columns: 1fr auto; }
.kma-search-results input { min-width: 0; padding: 18px; border: 1px solid currentColor; font: inherit; }
.kma-search-results button { padding: 18px 30px; border: 0; background: var(--kma-orange); color: #fff; font: inherit; }
.kma-search-results__list { margin-top: 70px; }
.kma-search-results__list article { display: grid; grid-template-columns: .25fr 1fr; gap: 30px; padding: 28px 0; border-top: 1px solid currentColor; }
.kma-search-results__list article > p { color: var(--kma-orange); text-transform: uppercase; }
.kma-search-results__list h2 { margin: 0; font-size: clamp(30px, 3.2vw, 56px); font-weight: 500; }
.kma-search-results__list a { color: inherit; text-decoration: none; }
.kma-error-page { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; background: var(--kma-blue-dark); color: #fff; }
.kma-error-page > .elementor-widget-heading:first-child { color: var(--kma-orange); font-size: clamp(70px, 10vw, 170px); }
.kma-error-page h1 { max-width: 1200px; margin: 0; font-size: clamp(60px, 8vw, 135px); font-weight: 500; line-height: .95; }
.kma-project-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid currentColor; }
.kma-project-details > div { display: grid; grid-template-columns: minmax(110px, .4fr) 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid currentColor; }
.kma-project-details dt { font-weight: 500; text-transform: uppercase; }
.kma-project-details dd { margin: 0; }
.kma-site-header :focus-visible, .kma-site-footer :focus-visible, .kma-project-details :focus-visible { outline: 3px solid var(--kma-orange); outline-offset: 4px; }

@media (max-width: 991px) {
    :root { --kma-gutter: 20px; }
    .kma-site-header__logo { top: 20px; width: 170px; max-width: 45vw; }
    .kma-menu-toggle { top: 20px; width: 52px; height: 52px; }
    .kma-overlay-navigation { padding-top: 20px; }
    .kma-overlay-navigation__logo { width: 170px; max-width: 45vw; }
    .kma-menu-close { width: 52px; height: 52px; }
    .kma-menu-close span[aria-hidden]::before, .kma-menu-close span[aria-hidden]::after { top: 25px; left: 13px; width: 26px; }
    .kma-overlay-navigation__content { grid-template-columns: 1fr 1fr; margin-top: 64px; }
    .kma-site-footer__lead, .kma-site-footer__directory { grid-template-columns: 1fr; }
    .kma-footer-nav { grid-template-columns: 1fr 1fr; }
    .kma-site-footer__bottom { grid-template-columns: 1fr; }
    .kma-project-template__intro, .kma-project-details { grid-template-columns: 1fr; }
    .kma-home-about, .kma-home-services { grid-template-columns: 1fr; }
    .kma-home-project-rail .kma-project-card { flex-basis: 72vw; }
    .kma-about-people-carousel {
        overflow: hidden;
        scroll-snap-type: none;
        scrollbar-width: none;
    }
    .kma-about-people-rail {
        display: flex;
        width: max-content;
        gap: 10px;
    }
    .kma-about-people-card {
        flex: 0 0 calc((100vw - 10px) / 2);
        width: calc((100vw - 10px) / 2);
    }
    .kma-timeline-scroll {
        width: calc(100% + 40px);
        margin-left: -20px;
        overflow: visible;
    }
    .kma-timeline {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-width: 0;
        height: auto;
        padding: 80px 12px;
    }
    .kma-timeline::before {
        top: 80px;
        right: auto;
        bottom: 80px;
        left: 50%;
        border-top: 0;
        border-left: 2px solid var(--kma-orange);
    }
    .kma-timeline li {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        width: 50%;
        min-height: 100px;
        padding-block: 12px;
    }
    .kma-timeline li:nth-child(odd) { margin: 0; padding-right: 20px; }
    .kma-timeline li:nth-child(even) { margin-left: 50%; padding-left: 20px; }
    .kma-timeline__stem, .kma-timeline__wave { display: none; }
    .kma-timeline__curve {
        display: block;
        position: absolute;
        z-index: 0;
        top: 50%;
        width: 50px;
        height: 100%;
        overflow: visible;
        pointer-events: none;
    }
    .kma-timeline__curve path {
        fill: none;
        stroke: color-mix(in srgb, var(--kma-orange) 48%, transparent);
        stroke-width: 1.35px;
        stroke-dasharray: 2px 4px;
        stroke-linecap: round;
    }
    .kma-timeline li:nth-child(odd) .kma-timeline__curve { right: auto; left: 100%; }
    .kma-timeline li:nth-child(even) .kma-timeline__curve { right: 100%; left: auto; }
    .kma-timeline__marker {
        top: 50%;
        width: 11px;
        height: 11px;
    }
    .kma-timeline li:nth-child(odd) .kma-timeline__marker { right: 0; left: auto; transform: translate(50%, -50%); }
    .kma-timeline li:nth-child(even) .kma-timeline__marker { left: 0; transform: translate(-50%, -50%); }
    .kma-timeline__event,
    .kma-timeline li:nth-child(odd) .kma-timeline__event,
    .kma-timeline li:nth-child(even) .kma-timeline__event {
        position: static;
        width: 100%;
        padding: 0;
    }
    .kma-timeline li:nth-child(odd) .kma-timeline__event { text-align: right; }
    .kma-timeline li:nth-child(even) .kma-timeline__event { text-align: left; }
    .kma-timeline time { margin-bottom: 4px; font-size: 16px; }
    .kma-timeline p { max-width: none; margin: 0; font-size: 18px; line-height: 1.2; }
    .kma-latest-news { grid-template-columns: 1fr 1fr; }
    .kma-index__heading { grid-template-columns: 1fr; }
    .kma-index-grid--news { grid-template-columns: 1fr 1fr; }
    .kma-split-hero, .kma-firm-story, .kma-firm-cta, .kma-person-profile { grid-template-columns: 1fr; }
    .kma-people-grid { grid-template-columns: 1fr 1fr; }
    .kma-service-detail__images { grid-template-columns: 1fr; }
    .kma-contact-heading, .kma-contact-main { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .kma-person-page { padding: 96px 24px 64px; }
    .kma-overlay-navigation__content, .kma-footer-nav { grid-template-columns: 1fr; }
    .kma-overlay-navigation__cta { margin-top: 24px; }
    .kma-home-hero__projects .kma-project-card, .kma-home-project-rail .kma-project-card { flex-basis: 86vw; }
    .kma-latest-news { grid-template-columns: 1fr; }
    .kma-index-grid--projects, .kma-index-grid--news { grid-template-columns: 1fr; }
    .kma-people-grid, .kma-services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 799px) {
    .kma-about-people-card {
        flex-basis: 100vw;
        width: 100vw;
    }
}

/* Keep the shared footer contact panel identical to the Home page's Elementor footer. */
.kma-site-footer__lead {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 20px 24px;
    padding: clamp(80px, 6vw, 124px) 24px clamp(100px, 7vw, 144px);
    background: var(--kma-orange);
}
.kma-site-footer__lead > h2 {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    max-width: 650px;
    font-size: clamp(54px, 3.52vw, 72px);
    line-height: 1.2;
    letter-spacing: -1px;
}
.kma-site-footer__contact { display: contents; }
.kma-site-footer__contact > h3 {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    margin: 0;
    color: #fff;
    font-size: clamp(54px, 3.52vw, 72px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -1px;
}
.kma-site-footer__contact > .gform_wrapper {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
}
.kma-site-footer__contact .gform_wrapper,
.kma-site-footer__contact form,
.kma-site-footer__contact .gform_fields,
.kma-site-footer__contact .gfield { color: #fff; }
.kma-site-footer__contact .gform_required_legend { display: none; }
.kma-site-footer__contact .gfield_required { color: #fff !important; }
.kma-site-footer__contact .gfield_label {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 20px !important;
    text-transform: uppercase;
}
.kma-site-footer__contact input:not([type='submit']),
.kma-site-footer__contact textarea {
    width: 100% !important;
    padding: 10px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgb(255 255 255 / .65) !important;
    border-radius: 0 !important;
    outline: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 24px !important;
    line-height: 36px !important;
}
.kma-site-footer__contact textarea {
    height: 100px !important;
    min-block-size: 100px !important;
    resize: vertical;
}
.kma-site-footer__contact textarea::placeholder {
    color: #fff;
    opacity: 1;
}
.kma-site-footer__contact .gform-footer {
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.kma-site-footer__contact .gform-footer::after {
    content: '→';
    display: block;
    color: #fff;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
}
.kma-site-footer__contact .gform_button {
    min-height: 38px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 16px !important;
    text-transform: uppercase;
}

@media (max-width: 991px) {
    .kma-site-footer__lead {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 24px;
        padding: 64px 20px 72px;
    }
    .kma-site-footer__lead > h2,
    .kma-site-footer__contact > h3,
    .kma-site-footer__contact > .gform_wrapper {
        grid-column: 1;
        grid-row: auto;
    }
    .kma-site-footer__contact > h3 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; }
}

/* Live-site visual parity pass. Elementor boxed containers add an inner
   wrapper, so the production grids are recreated on that wrapper. */
html, body { background: var(--kma-bg); }
body { overflow-x: clip; }
.kma-site-header, .kma-overlay-navigation, .kma-site-footer, .kma-project-template,
.kma-news-template, .kma-home-page, .kma-firm-page, .kma-service-detail,
.kma-category-page, .kma-contact-page, .kma-legal-page, .kma-index-page {
    font-family: "helvetica-neue-lt-pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Header dimensions match the original 52px wordmark and 48px toggle. */
.kma-site-header__logo { top: 40px; left: 24px; width: auto; max-width: none; }
.kma-site-header__logo img { width: auto; height: 52px; }
body button.kma-menu-toggle {
    top: 40px;
    right: 24px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--kma-orange) !important;
    color: #fff !important;
    line-height: 1 !important;
    box-shadow: none !important;
    appearance: none;
}
body.admin-bar button.kma-menu-toggle {
    top: calc(40px + var(--wp-admin--admin-bar--height, 0px));
}
.kma-menu-toggle__dots { gap: 4px; }
.kma-menu-toggle__dots i { width: 6px; height: 6px; }

/* Production split-screen overlay navigation. */
.kma-overlay-navigation {
    overflow: hidden;
    padding: 40px 12px;
    background: linear-gradient(to right, #fff 0 50%, var(--kma-orange) 50% 100%);
    color: #fff;
}
.kma-overlay-navigation__bar {
    position: relative;
    z-index: 2;
    height: 52px;
    padding: 0 12px;
}
.kma-overlay-navigation__logo { width: auto; max-width: none; }
.kma-overlay-navigation__logo img { width: auto; height: 52px; }
body button.kma-menu-close {
    width: 48px;
    height: 48px;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #fff !important;
    line-height: 1 !important;
    box-shadow: none !important;
    appearance: none;
}
.kma-menu-close span[aria-hidden]::before,
.kma-menu-close span[aria-hidden]::after {
    top: 23px;
    left: 9px;
    width: 30px;
    height: 2px;
}
.kma-overlay-navigation__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: min(506px, calc(100vh - 132px));
    margin-top: 40px;
}
.kma-overlay-navigation__image {
    align-self: start;
    margin: 0;
    padding: 0 50px 0 38px;
}
.kma-overlay-navigation__image img {
    display: block;
    width: 100%;
    height: auto;
}
.kma-overlay-navigation__content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    height: 100%;
    gap: 0;
    margin: 0;
    padding: 0 12px 0 50px;
}
.kma-overlay-navigation__groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-inline: -12px;
}
.kma-overlay-navigation__column {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 28px;
}
.kma-nav-group { min-width: 0; padding: 0 12px; }
.kma-nav-group h2 {
    margin: 0 0 12.5px;
    color: #fff;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
}
.kma-nav-group li { margin-bottom: 10.5px; }
.kma-nav-group a {
    padding: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-transform: uppercase;
    transition: color .4s ease;
}
.kma-nav-group h2 a {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-transform: none;
}
.kma-nav-group a:hover,
.kma-nav-group a:focus-visible { color: #000; }
.kma-overlay-navigation__cta {
    gap: 10px;
    align-self: flex-start;
    margin: auto 0 0;
    color: #fff;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: none;
    transition: color .4s ease;
}
.kma-overlay-navigation__cta > span {
    flex-basis: 38px;
    width: 38px;
    height: 24px;
    background-color: #fff;
    transition: background-color .4s ease;
}
.kma-overlay-navigation__cta:hover,
.kma-overlay-navigation__cta:focus-visible { color: #000; }
.kma-overlay-navigation__cta:hover > span,
.kma-overlay-navigation__cta:focus-visible > span { background-color: #000; }

/* Production homepage: full-viewport, photographic carousel treatment. */
.kma-home-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    background-color: #1b2d3f;
}
.kma-home-hero__slides,
.kma-home-hero__slide,
.kma-home-hero__image,
.kma-home-hero__slide-shade,
.kma-home-hero__old-overlay,
.kma-home-hero__new-overlay { position: absolute; inset: 0; }
.kma-home-hero__slide { visibility: hidden; opacity: 0; }
.kma-home-hero__slide.is-active { visibility: visible; opacity: 1; }
.kma-home-hero__image,
.kma-home-hero__old-overlay,
.kma-home-hero__new-overlay { background-position: center; background-repeat: no-repeat; background-size: cover; }
.kma-home-hero__slide-shade,
.kma-home-hero__old-overlay::after,
.kma-home-hero__new-overlay::after { content: ''; background: rgba(0,0,0,var(--kma-hero-shade,.4)); }
.kma-home-hero__old-overlay,
.kma-home-hero__new-overlay { z-index: 2; opacity: 0; pointer-events: none; }
.kma-home-hero__new-overlay { z-index: 3; }
.kma-home-hero__old-overlay::after,
.kma-home-hero__new-overlay::after { position: absolute; inset: 0; }
.kma-home-hero > h1 {
    position: relative;
    z-index: 4;
    width: calc(100% - 96px);
    max-width: 1420px;
    margin: auto auto;
    text-align: center;
    font-size: 72px;
    line-height: 1.2;
    letter-spacing: -1px;
    text-shadow: 2px 2px 10px rgba(0,0,0,.5);
}
.kma-home-hero__details {
    position: absolute;
    z-index: 5;
    inset: auto 24px 28px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: end;
    width: auto;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .35s ease-out, transform .35s ease-out;
}
.kma-home-hero__slide.is-active .kma-home-hero__details.is-visible { opacity: 1; transform: translateY(0); }
.kma-home-hero__details .kma-arrow-link { color: #fff; font-size: 16px; }
.kma-home-hero__progress { position: absolute; z-index: 6; inset: auto 0 0; height: 4px; overflow: hidden; background: #e2e2e2; }
.kma-home-hero__progress-fill { width: 0; height: 100%; background: var(--kma-orange); }

/* Shared two-column page composition. */
.kma-split-hero,
.kma-home-about,
.kma-home-services,
.kma-firm-story,
.kma-firm-cta,
.kma-contact-heading,
.kma-contact-main { display: block; }
.kma-split-hero > .e-con-inner,
.kma-home-about > .e-con-inner,
.kma-home-services > .e-con-inner,
.kma-firm-story > .e-con-inner,
.kma-firm-cta > .e-con-inner,
.kma-contact-heading > .e-con-inner,
.kma-contact-main > .e-con-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
    max-width: 1728px;
}
.kma-split-hero { min-height: 0; }
.kma-split-hero > .e-con-inner {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    column-gap: calc(100% / 12);
    align-items: stretch;
}
.kma-split-hero__copy { justify-content: center; }
.kma-split-hero h1 { margin: 0; font-size: 54px; line-height: 1.2; letter-spacing: -1px; }
.kma-split-hero .elementor-widget-image,
.kma-split-hero .elementor-widget-image .elementor-widget-container,
.kma-split-hero .elementor-widget-image a { height: 100%; }
.kma-split-hero img { height: 100%; min-height: 500px; aspect-ratio: 1 / 1; }

.kma-firm-story h2, .kma-firm-cta h2, .kma-home-about h2,
.kma-home-services h2, .kma-home-news h2 { font-size: 54px; line-height: 1.2; letter-spacing: -1px; }
.kma-firm-story p, .kma-firm-cta p, .kma-home-about p, .kma-home-services p { font-size: 20px; line-height: 1.2; }
.kma-firm-cta { background: var(--kma-bg); color: #000; }
.kma-timeline time { font-size: clamp(16px, 1.1vw, 22px); }
.kma-timeline p { font-size: clamp(20px, 1.45vw, 29px); line-height: 1.12; }

/* Live homepage intro: five-column copy, one-column gutter, six-column image. */
.kma-home-page { gap: 0; background: #fff; color: #000; }
.kma-home-page .elementor-heading-title,
.kma-home-page .elementor-widget-text-editor { color: #000; }
.kma-home-about {
    background: #f8f8f8;
}
.kma-home-about > .e-con-inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: calc(100% / 12);
    align-items: stretch;
}
.kma-home-about__copy {
    gap: 0;
    justify-content: center;
    color: #000;
}
.kma-home-about p { max-width: none; margin: 0; }
.kma-home-about > .e-con-inner > .elementor-widget-image,
.kma-home-about > .e-con-inner > .elementor-widget-image .elementor-widget-container { height: 100%; }
.kma-home-about img { width: 100%; height: 100%; min-height: 377px; aspect-ratio: 5 / 3; object-fit: cover; }

/* Global Elementor CTA treatment from the production arrow links. */
.elementor-widget-button .elementor-button {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--kma-orange);
    font-family: "helvetica-neue-lt-pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-transform: uppercase;
}
.elementor-widget-button .elementor-button:hover,
.elementor-widget-button .elementor-button:focus-visible { background: transparent; color: var(--kma-orange); }
.elementor-widget-button .elementor-button-content-wrapper { display: inline-flex; gap: 10px; align-items: center; }
.elementor-widget-button .elementor-button-content-wrapper::after {
    content: '';
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 15px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 15'%3E%3Cpath d='M0 6.5h16.2L11.1 1.4 12.5 0 20 7.5 12.5 15l-1.4-1.4 5.1-5.1H0z'/%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 20 15'%3E%3Cpath d='M0 6.5h16.2L11.1 1.4 12.5 0 20 7.5 12.5 15l-1.4-1.4 5.1-5.1H0z'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .2s ease;
}
.elementor-widget-button .elementor-button:hover .elementor-button-content-wrapper::after,
.elementor-widget-button .elementor-button:focus-visible .elementor-button-content-wrapper::after { transform: translateX(5px); }
.kma-home-manifesto { background: #fff; }
.kma-home-manifesto h2 { margin-bottom: 0; font-size: 54px; line-height: 1.2; }
.kma-home-project-carousel { overflow: hidden; background: #fff; }
.kma-home-project-rail {
    display: flex;
    align-items: flex-start;
    width: max-content;
    gap: 10px;
    padding: 0;
    overflow: visible;
    background: #fff;
    scroll-snap-type: none;
    scrollbar-width: none;
    will-change: transform;
}
.kma-home-project-rail .kma-project-card {
    flex: 0 0 calc((100vw - 20px) / 3);
    width: calc((100vw - 20px) / 3);
}
.kma-home-project-rail .kma-project-card__image { aspect-ratio: 5 / 3; }
.kma-home-project-rail .kma-project-card img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    transition: transform .5s ease;
}
.kma-home-project-rail .kma-project-card a:hover img,
.kma-home-project-rail .kma-project-card a:focus-visible img { transform: scale(1.05); }
.kma-home-project-rail .kma-project-card a:hover h3,
.kma-home-project-rail .kma-project-card a:focus-visible h3 {
    color: #000;
    text-decoration: underline;
}
.kma-home-project-rail .kma-project-card__count,
.kma-home-project-rail .kma-arrow-link { display: none; }
.kma-home-project-rail .kma-project-card h3 {
    margin: 15px 0 0;
    color: #000;
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    text-align: center;
}
.kma-home-services { background: #f8f8f8; color: #000; }
.kma-home-services > .e-con-inner {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}
.kma-home-services__copy { grid-column: 1 / span 6; align-self: start; height: auto; }
.kma-home-services > .e-con-inner > .elementor-widget-text-editor {
    grid-column: 8 / span 5;
    align-self: start;
    width: auto;
    height: auto;
}
.kma-home-services > .e-con-inner > .elementor-widget-text-editor p { margin: 0; }
.elementor-widget-kma-services-carousel {
    grid-column: 1 / -1;
    width: calc(100% + 24px);
    max-width: none !important;
}
.kma-services-carousel { position: relative; height: max(700px, 80vh); overflow: hidden; background: #111; }
.kma-services-carousel__slides,
.kma-services-carousel__slide { position: absolute; inset: 0; }
.kma-services-carousel__slide {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity .55s ease;
}
.kma-services-carousel__slide.is-active { opacity: 1; pointer-events: auto; }
.kma-services-carousel__shade { position: absolute; inset: 50% 0 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.8)); }
.kma-services-carousel h3 {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0 90px;
    color: #fff;
    font-size: 90px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    transform: translateY(-50%);
}
.kma-services-carousel h3 a { color: inherit; text-decoration: none; }
.kma-services-carousel h3 a:hover,
.kma-services-carousel h3 a:focus-visible { text-decoration: underline; }
.kma-services-carousel__nav {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 60px;
    height: 60px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}
body button.kma-services-carousel__nav {
    min-width: 60px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    outline: 0;
    background: transparent !important;
    color: #fff !important;
    box-shadow: none;
    appearance: none;
}
body button.kma-services-carousel__nav:hover,
body button.kma-services-carousel__nav:focus-visible {
    background: transparent !important;
    color: #fff !important;
}
body button.kma-services-carousel__nav:focus:not(:focus-visible) { outline: 0; }
body button.kma-services-carousel__nav:focus-visible {
    outline: 2px solid rgba(255,255,255,.9);
    outline-offset: 3px;
}
.kma-services-carousel__nav::before {
    content: '';
    position: absolute;
    inset: 10px 14px;
    border-top: 5px solid rgba(255,255,255,.75);
    border-right: 5px solid rgba(255,255,255,.75);
    transform: rotate(45deg);
}
.kma-services-carousel__nav--prev { left: 32px; }
.kma-services-carousel__nav--prev::before { transform: rotate(-135deg); }
.kma-services-carousel__nav--next { right: 32px; }
.kma-home-news { background: #fff; text-align: center; }
.kma-home-news .kma-latest-news {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    width: calc(100% + 48px);
    text-align: left;
}
.kma-latest-news article { min-width: 0; padding: 0 12px; }
.kma-latest-news__image { display: block; overflow: hidden; aspect-ratio: 1 / .9; }
.kma-latest-news__image img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    transition: transform .5s ease;
}
.kma-latest-news article a:hover img,
.kma-latest-news article a:focus-visible img { transform: scale(1.05); }
.kma-home-news .kma-latest-news h3 {
    margin: 12px 0 0;
    color: #000;
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    text-align: center;
}

@media (max-width: 1199px) {
    .kma-home-news .kma-latest-news { grid-template-columns: 1fr; row-gap: 24px; }
}

/* Page indexes mirror the production label, pill filters and card proportions. */
.kma-index__heading { display: block; margin-bottom: 20px; }
.kma-index__heading h1 { color: var(--kma-orange); font-size: 24px; line-height: 1.2; letter-spacing: 0; text-transform: uppercase; }
.kma-index__heading p { display: none; }
.kma-filter-nav { gap: 10px; margin: 30px 0 40px; padding: 0; border: 0; }
.kma-filter-nav a {
    padding: 10px 24px;
    border-radius: 999px;
    background: #d9d9d9;
    color: #000;
    font-size: 18px;
    font-weight: 500;
    text-transform: none;
}
.kma-filter-nav a[aria-current="page"] { background: var(--kma-orange); color: #fff; text-decoration: none; }
.kma-index-grid { gap: 24px; }
.kma-index-grid--projects {
    transition: opacity 160ms ease, transform 220ms cubic-bezier(.22, 1, .36, 1);
}
.kma-index-grid--projects.is-filtering {
    opacity: .18;
    transform: translateY(5px);
    pointer-events: none;
}
.kma-index-grid--projects.is-entering .kma-index-card {
    animation: kma-project-card-enter 360ms cubic-bezier(.22, 1, .36, 1) both;
}
.kma-index-grid--projects.is-entering .kma-index-card:nth-child(3n + 2) { animation-delay: 35ms; }
.kma-index-grid--projects.is-entering .kma-index-card:nth-child(3n) { animation-delay: 70ms; }
@keyframes kma-project-card-enter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.kma-index-card.kma-infinite-card-enter,
.kma-index-card.kma-initial-card-enter {
    animation: kma-project-card-enter 480ms cubic-bezier(.22, 1, .36, 1) both;
    animation-delay: calc(var(--kma-load-index, 0) * 45ms);
}
@media (prefers-reduced-motion: reduce) {
    .kma-index-grid--projects { transition: none; }
    .kma-index-grid--projects.is-filtering { opacity: 1; transform: none; }
    .kma-index-grid--projects.is-entering .kma-index-card { animation: none; }
    .kma-index-card.kma-infinite-card-enter,
    .kma-index-card.kma-initial-card-enter { animation: none; }
}
.kma-index-card img { aspect-ratio: 1 / .6; }
.kma-index-card h2 { margin-top: 8px; text-align: center; font-size: 32px; line-height: 1.2; }
.kma-index-card p, .kma-index-card time { text-align: center; }
.kma-index-card a:hover h2,
.kma-index-card a:focus-visible h2 {
    color: #000;
    text-decoration: underline;
}
.kma-index-grid--projects .kma-index-card h2 {
    font-size: 20px;
    line-height: 24px;
}

/* Elementor inner wrappers for repeating card grids. */
.kma-services-grid, .kma-service-detail__images { display: block; }
.kma-services-grid > .e-con-inner,
.kma-service-detail__images > .e-con-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
    max-width: 1728px;
}
.kma-services-heading > .e-con-inner > .elementor-widget-heading:first-child,
.kma-services-heading > .e-con-inner > .elementor-widget-heading:first-child .elementor-heading-title {
    margin-bottom: 0;
    color: var(--kma-orange);
    font-family: "helvetica-neue-lt-pro", sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: none;
}
.kma-services-heading h1 {
    margin: 0 0 10px;
    color: #000;
    font-family: "helvetica-neue-lt-pro", sans-serif;
    font-size: 64px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: normal;
}
@media (min-width: 992px) {
    .kma-services-heading > .e-con-inner {
        gap: 8px;
        padding-top: 132px;
        padding-bottom: 0;
    }
}

/* KMA review pass: preserve full-width color bands while keeping page content
   aligned to the production 1728px grid at wide/zoomed desktop viewports. */
.kma-firm-page,
.kma-service-detail,
.kma-category-page,
.kma-index-page,
.kma-project-template { background: var(--kma-bg); }
body:has(.kma-firm-page),
body:has(.kma-service-detail),
body:has(.kma-category-page),
body:has(.kma-index-page),
body:has(.kma-project-template),
body:has(.kma-news-template) { background: var(--kma-bg) !important; }

.kma-index {
    width: 100%;
    max-width: var(--kma-content-max);
    margin-inline: auto;
}

body .elementor .elementor-element.kma-service-detail {
    width: 100%;
    max-width: var(--kma-content-max) !important;
    margin-inline: auto;
}

body .elementor .elementor-element.kma-services-grid {
    --padding-block-end: 24px !important;
    --padding-bottom: 24px !important;
    padding-bottom: 0 !important;
}

/* The service return action is the one CTA whose direction is backward. */
.kma-service-detail__copy .elementor-button-content-wrapper::after { display: none !important; }
.kma-service-detail__copy .elementor-button-content-wrapper::before {
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 15px;
    background-color: currentColor;
    content: '';
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 15'%3E%3Cpath d='M0 6.5h16.2L11.1 1.4 12.5 0 20 7.5 12.5 15l-1.4-1.4 5.1-5.1H0z'/%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 20 15'%3E%3Cpath d='M0 6.5h16.2L11.1 1.4 12.5 0 20 7.5 12.5 15l-1.4-1.4 5.1-5.1H0z'/%3E%3C/svg%3E") center / contain no-repeat;
    transform: rotate(180deg);
    transition: transform .2s ease;
}
.kma-service-detail__copy .elementor-button:hover .elementor-button-content-wrapper::before,
.kma-service-detail__copy .elementor-button:focus-visible .elementor-button-content-wrapper::before {
    transform: translateX(-5px) rotate(180deg);
}

/* Single news uses the production darker title panel and lighter article canvas. */
.kma-news-template { background: var(--kma-bg); }
.kma-news-template__heading { background: #e2e2e2; }
.kma-news-template__content { background: var(--kma-bg); }
.kma-news-template__other {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0 !important;
}
.kma-news-template__other > .elementor-widget-container { width: 100%; }
.kma-other-news {
    margin-top: 20px;
    padding: 50px var(--kma-page-gutter) 20px;
    border-top: 1px solid #e2e2e2;
    background: var(--kma-bg);
}
.kma-other-news__inner { width: 100%; max-width: var(--kma-content-max); margin-inline: auto; }
.kma-other-news h2 {
    margin: 0 0 40px;
    color: #000;
    font-size: 54px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -1px;
}
.kma-other-news__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.kma-other-news__card a { display: block; color: #000; text-decoration: none; }
.kma-other-news__card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / .9;
    object-fit: cover;
    transition: transform .35s ease;
}
.kma-other-news__card h3 { margin: 12px 0 0; color: #000; text-align: center; font-size: 20px; font-weight: 500; line-height: 1.2; }
.kma-other-news__card a:hover h3,
.kma-other-news__card a:focus-visible h3 { color: #000; text-decoration: underline; }
.kma-other-news__card a:hover img,
.kma-other-news__card a:focus-visible img { transform: scale(1.025); }

/* Native text decoration underlines every rendered line of wrapping card titles. */
.kma-index-card h2,
.kma-other-news__card h3,
.kma-home-project-rail .kma-project-card h3,
.kma-latest-news h3 {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-skip-ink: auto;
}
.kma-index-card a:hover h2,
.kma-index-card a:focus-visible h2,
.kma-other-news__card a:hover h3,
.kma-other-news__card a:focus-visible h3,
.kma-home-project-rail .kma-project-card a:hover h3,
.kma-home-project-rail .kma-project-card a:focus-visible h3,
.kma-latest-news a:hover h3,
.kma-latest-news a:focus-visible h3 { text-decoration-line: underline; }

/* Footer backgrounds remain full bleed; their contents share the page grid. */
.kma-site-footer__lead { display: block; padding: 80px var(--kma-page-gutter); }
.kma-site-footer__lead-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 20px 24px;
    width: 100%;
    max-width: var(--kma-content-max);
    margin-inline: auto;
}
.kma-site-footer__lead-inner > h2 {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    max-width: 650px;
    margin: 0;
    font-size: clamp(54px, 3.52vw, 72px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -1px;
}
.kma-site-footer__directory { display: block; padding: 40px var(--kma-page-gutter); }
.kma-site-footer__directory-inner {
    display: grid;
    grid-template-columns: minmax(220px, .75fr) minmax(0, 1.65fr) minmax(394px, 1.25fr);
    gap: clamp(28px, 3.5vw, 72px);
    align-items: start;
    width: 100%;
    max-width: var(--kma-content-max);
    margin-inline: auto;
}
.kma-site-footer__bottom { display: block; padding: 28px var(--kma-page-gutter); }
.kma-site-footer__bottom-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    width: 100%;
    max-width: var(--kma-content-max);
    margin-inline: auto;
}
body .kma-site-footer__lead { padding: 80px var(--kma-page-gutter); }
.kma-site-footer__directory h3,
.kma-site-footer .gform_button { text-transform: uppercase !important; }

@media (max-width: 991px) {
    :root { --kma-page-gutter: 20px; }
    body .kma-site-footer__lead { padding: 64px 20px 72px; }
    .kma-site-footer__lead-inner,
    .kma-site-footer__directory-inner,
    .kma-site-footer__bottom-inner { grid-template-columns: 1fr; }
    .kma-site-footer__lead-inner { grid-template-rows: auto; gap: 24px; }
    .kma-site-footer__lead-inner > h2,
    .kma-site-footer__contact > h3,
    .kma-site-footer__contact > .gform_wrapper { grid-column: 1; grid-row: auto; }
    .kma-site-footer__lead-inner > h2 { font-size: 32px; line-height: 1.2; }
    .kma-site-footer__contact > h3 { font-size: 32px; }
    .kma-other-news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kma-other-news h2 { font-size: 42px; }
}

@media (max-width: 600px) {
    .kma-other-news__grid { grid-template-columns: 1fr; }
}
.kma-service-card {
    aspect-ratio: 5 / 3;
}
.kma-service-card::after {
    content: '';
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    height: 30%;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .506));
    pointer-events: none;
}
.kma-service-card > .elementor-widget-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.kma-service-card > .elementor-widget-image .elementor-widget-container {
    width: 100%;
    height: 100%;
}
.kma-service-card > .elementor-widget-heading {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
}
.kma-service-card img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
}
.kma-service-card h2 {
    z-index: 2;
    inset: auto 20px 20px;
    color: #fff;
    font-family: "helvetica-neue-lt-pro", sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: normal;
    text-align: center;
    text-transform: none;
}
.kma-service-detail__copy > .e-con-inner > .elementor-widget-heading:first-child,
.kma-service-detail__copy > .e-con-inner > .elementor-widget-heading:first-child .elementor-heading-title {
    color: var(--kma-orange);
    font-family: "helvetica-neue-lt-pro", sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: none;
}
.kma-service-detail__copy h1 {
    color: #000;
    font-family: "helvetica-neue-lt-pro", sans-serif;
    font-size: 46px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -1px;
}
.kma-service-detail__copy p {
    color: #000;
    font-family: "helvetica-neue-lt-pro", sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
}
.kma-category-heading h1 { font-size: 64px; line-height: 1.2; letter-spacing: -1px; }
.kma-service-detail {
    display: grid;
    grid-template-columns: 1.208fr 1fr;
    gap: 10vw;
    align-items: stretch;
    width: 100%;
    max-width: 1728px;
}
@media (min-width: 992px) {
    body.page-id-1299 .kma-service-detail { padding-top: 152px; }
}
.kma-service-detail__images > .e-con-inner {
    grid-template-columns: 1fr;
    gap: 20px;
}
.kma-service-detail__image {
    position: relative;
    display: block;
    overflow: hidden;
}
.kma-service-detail__image::after {
    content: '';
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .4));
    pointer-events: none;
}
.kma-service-detail__image > .elementor-widget-image,
.kma-service-detail__image > .elementor-widget-image .elementor-widget-container {
    width: 100%;
    height: auto;
}
.kma-service-detail__image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / .7;
    object-fit: cover;
}
.kma-service-detail__image h2 {
    z-index: 2;
    inset: auto 20px 20px;
    color: #fff;
    font-family: "helvetica-neue-lt-pro", sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: normal;
    text-align: left;
}
@media (min-width: 992px) {
    .kma-service-detail__copy { position: relative; }
    .kma-service-detail__copy > .e-con-inner {
        display: flex;
        flex-direction: column;
        justify-content: center !important;
        gap: 0;
        min-height: 100%;
        padding: 0;
    }
    .kma-service-detail__copy > .e-con-inner > .elementor-widget-heading:first-child {
        margin: 0 0 10px;
    }
    .kma-service-detail__copy > .e-con-inner > .elementor-widget-heading:nth-child(2) {
        margin: 0 0 50px;
    }
    .kma-service-detail__copy > .e-con-inner > .elementor-widget-text-editor {
        margin: 0 !important;
    }
    .kma-service-detail__copy > .e-con-inner > .elementor-widget-button {
        position: absolute;
        bottom: 12px;
        left: 0;
        margin: 0;
    }
}
.kma-category-heading > .e-con-inner { gap: 10px; }
.kma-category-heading > .e-con-inner > .elementor-widget-heading:first-child { color: var(--kma-orange); font-size: 24px; }
.kma-category-heading h1 { max-width: 1160px; font-size: 54px; }
.kma-category-grid .kma-index-grid--projects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kma-category-grid .kma-index-card h2 { font-size: 24px; }

/* Project single hero and title placement follow the legacy carousel. */
.kma-project-template { position: relative; }
.kma-project-gallery-shell { --kma-project-hero-height: 600px; position: relative; height: var(--kma-project-hero-height); overflow: hidden; }
body .kma-project-gallery-shell .kma-project-gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    grid-template-rows: 100%;
    align-items: stretch;
    height: 100%;
    gap: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    touch-action: pan-y;
    cursor: grab;
}
.kma-project-gallery.is-dragging { scroll-behavior: auto; cursor: grabbing; }
.kma-project-gallery::-webkit-scrollbar { display: none; }
.kma-project-gallery-shell .kma-project-gallery figure,
.kma-project-gallery-shell .kma-project-gallery img {
    height: var(--kma-project-hero-height) !important;
    min-height: var(--kma-project-hero-height) !important;
    max-height: var(--kma-project-hero-height) !important;
    block-size: var(--kma-project-hero-height);
    min-block-size: var(--kma-project-hero-height);
    max-block-size: var(--kma-project-hero-height);
}
.kma-project-gallery-shell .kma-project-gallery figure { width: 100%; align-self: stretch; overflow: hidden; }
.kma-project-gallery-shell .kma-project-gallery img { display: block; object-fit: cover; }
.kma-project-gallery__cover {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(0,0,0,.1), rgba(0,0,0,.3));
    pointer-events: none;
}
body button.kma-project-gallery__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255,255,255,.6);
    box-shadow: none;
    appearance: none;
    transform: translateY(-50%);
    cursor: pointer;
}
body button.kma-project-gallery__nav:hover,
body button.kma-project-gallery__nav:focus-visible { border: 0; background: transparent; color: rgba(255,255,255,.85); box-shadow: none; }
body button.kma-project-gallery__nav:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.kma-project-gallery__nav span {
    position: absolute;
    inset: 8px;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
}
.kma-project-gallery__nav--prev { left: 32px; }
.kma-project-gallery__nav--prev span { transform: rotate(-135deg); }
.kma-project-gallery__nav--next { right: 32px; }
.kma-project-gallery__nav--next span { transform: rotate(45deg); }
.kma-project-template__intro { padding: 50px 24px 80px; }
.kma-project-template__intro { position: relative; }
.kma-project-template__intro .elementor-widget-shortcode:has(.kma-dynamic-title) {
    position: absolute;
    z-index: 2;
    top: -105px;
    right: 0;
    width: min(760px, 70vw);
}
body .kma-project-template__intro h1,
body .kma-project-template__intro h1 * {
    position: static;
    max-width: 760px;
    color: #fff !important;
    text-align: right;
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -1px;
    text-shadow: 1px 1px 6px rgba(0,0,0,.5);
}

.kma-project-template__content { color: #000; }
.kma-project-template__details { position: sticky; top: 30px; align-self: flex-start; }
.kma-project-details dt { font-weight: 400; }
.kma-project-template__related > .e-con-inner {
    margin-top: 0;
    margin-bottom: -35px;
}

/* News and people cards follow the four-column production grids. */
.kma-index:has(.kma-index-grid--news) .kma-index__heading { display: block; }
.kma-index-grid--news { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kma-index-grid--news .kma-index-card img { aspect-ratio: 1 / .9; }
.kma-index-grid--news .kma-index-card h2 { font-size: 20px; line-height: 1.2; }
.kma-people-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.kma-person-card { position: relative; overflow: hidden; }
.kma-person-card img { aspect-ratio: 1 / 1; }
.kma-person-card::after { content: ''; position: absolute; inset: 60% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.8)); pointer-events: none; }
.kma-person-card h2, .kma-person-card p { position: absolute; z-index: 1; left: 20px; color: #fff; }
.kma-person-card h2 { right: 20px; bottom: 52px; margin: 0; font-size: 24px; }
.kma-person-card p { right: 20px; bottom: 20px; margin: 0; font-size: 16px; text-transform: none; }

/* People page typography and canvas match the production team section. */
.kma-firm-page:has(.kma-people-wrap) .kma-firm-story,
.kma-firm-page:has(.kma-people-wrap) .kma-people-wrap {
    background: #fff;
    color: #000;
    font-family: "helvetica-neue-lt-pro", sans-serif;
}
.kma-firm-page:has(.kma-people-wrap) .kma-firm-story h2,
.kma-firm-page:has(.kma-people-wrap) .kma-firm-story p { color: #000; }
.kma-firm-page:has(.kma-people-wrap) .kma-person-card h2 {
    font-family: "helvetica-neue-lt-pro", sans-serif;
    line-height: 1.2;
}
.kma-firm-page:has(.kma-people-wrap) .kma-person-card h2 span {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
}
.kma-firm-page:has(.kma-people-wrap) .kma-person-card p {
    font-family: "helvetica-neue-lt-pro", sans-serif;
    line-height: 1.5;
}

/* Production single-news composition: split hero, native featured image, and centered article column. */
.kma-news-template {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    background: #fff;
    color: #000;
}
.kma-news-template__heading {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: none;
    padding: 0 24px;
    background: var(--kma-bg);
}
.kma-news-template__heading > .e-con-inner {
    display: flex;
    flex-direction: column;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 0;
    width: 100%;
    max-width: none;
    min-height: 40vw;
    padding: 0;
}
.kma-news-template__heading > .e-con-inner > .elementor-widget-shortcode { margin: 0; }
.kma-news-meta {
    display: block;
    margin: 0 0 18.8px;
    color: var(--kma-orange);
    font-family: "helvetica-neue-lt-pro", sans-serif;
    text-transform: none;
}
.kma-news-meta__type {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
}
.kma-news-meta__type a,
.kma-news-meta__type strong {
    color: inherit;
    font: inherit;
    text-decoration: none;
}
.kma-news-meta span::after { content: none; }
.kma-news-meta time {
    display: block;
    margin-top: 19.2px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
}
.kma-news-template__heading h1 {
    margin: 0;
    color: #000;
    font-family: "helvetica-neue-lt-pro", sans-serif;
    font-size: 54px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -1px;
}
.kma-news-template__featured {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    height: 40vw;
}
.kma-news-template__featured,
.kma-news-template__featured > .elementor-widget-container,
.kma-news-template__featured .elementor-shortcode,
.kma-news-featured-image {
    width: 100%;
    height: 100%;
}
.kma-news-featured-image { margin: 0; }
.kma-news-featured-image img {
    display: block;
    width: 100%;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover;
}
.kma-news-template__content {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: none;
    padding: 0;
    background: #fff;
    color: #000;
}
.kma-news-template__content > .e-con-inner {
    display: block;
    width: 100%;
    max-width: none;
    padding: 50px 0;
}
.kma-news-template__content .elementor-widget-shortcode { width: 100%; }
.kma-news-template__content .elementor-shortcode {
    width: 64%;
    margin-inline: auto;
    color: #000;
    font-family: "helvetica-neue-lt-pro", sans-serif;
    font-size: 20px;
    line-height: 1.4;
}
.kma-news-template__content h3 {
    margin: 0 0 8px;
    color: #000;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
}

@media (max-width: 991px) {
    .kma-news-template { grid-template-columns: 1fr; }
    .kma-news-template__heading {
        grid-column: 1;
        grid-row: 1;
        padding-inline: 20px;
    }
    .kma-news-template__heading > .e-con-inner {
        min-height: 0;
        padding: 140px 0 64px;
    }
    .kma-news-template__heading h1 { font-size: 42px; }
    .kma-news-template__featured {
        grid-column: 1;
        grid-row: 2;
        height: auto;
        aspect-ratio: 5 / 4;
    }
    .kma-news-template__content {
        grid-column: 1;
        grid-row: 3;
        padding-inline: 20px;
    }
    .kma-news-template__content .elementor-shortcode { width: 100%; }
}

/* Contact and legal pages use the light production canvas. */
.kma-contact-page { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: none; }
.kma-contact-heading {
    background-color: var(--kma-bg);
    background-image: radial-gradient(ellipse 90% 75% at 100% 100%, rgba(225,64,30,.28) 0%, rgba(225,64,30,.14) 40%, rgba(225,64,30,.04) 68%, transparent 82%);
    color: #000;
}
.kma-contact-heading > .e-con-inner {
    grid-template-columns: 1fr;
    grid-template-rows: max-content max-content;
    justify-content: flex-start;
    align-content: start !important;
    gap: 30px;
}
.kma-contact-heading h1 { font-size: 54px; line-height: 1.2; letter-spacing: -1px; }
.kma-contact-heading address,
.kma-contact-heading .elementor-widget-text-editor p {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
}
.kma-contact-heading .elementor-widget-text-editor p {
    margin: 60.8px 0 0;
    line-height: 44.8px;
}
.kma-contact-main > .e-con-inner { grid-template-columns: 1fr; gap: 0; max-width: none; }
.kma-contact-form { gap: 0; background: var(--kma-orange); color: #fff; }
.kma-contact-main h2 {
    margin: 0 0 20px;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
}
body:has(.kma-contact-page) button.kma-menu-toggle {
    background: #fff !important;
    color: var(--kma-orange) !important;
}
body:has(.kma-contact-page) .kma-site-footer__lead { display: none; }
.kma-contact-careers {
    position: absolute;
    z-index: 2;
    top: 542.375px;
    left: 24px;
    bottom: auto;
    width: calc(50% - 48px);
    background: transparent;
    color: #000;
    transform: translateX(-50vw);
    gap: 0;
}
.kma-contact-careers h2 {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 500;
}
.kma-contact-careers .elementor-widget {
    margin: 0;
    margin-block-end: 0 !important;
}
.kma-contact-careers .elementor-widget-text-editor p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 19.2px;
}
.kma-contact-careers .elementor-button {
    padding: 0;
    background: transparent;
    color: #000;
    font-size: 16px;
    font-weight: 500;
    line-height: 19.2px;
    text-transform: none;
}
.kma-contact-careers .elementor-button::after { display: none; }
.kma-contact-careers .elementor-button-content-wrapper::after { display: none !important; }
.kma-legal-heading { display: none; }
.kma-legal-content { max-width: 1090px; margin-inline: auto; font-size: 16px; line-height: 1.2; }

/* Production Gravity Forms treatment for the contact page. */
.kma-contact-form .gform_wrapper,
.kma-contact-form form,
.kma-contact-form .gform_fields,
.kma-contact-form .gfield { color: #fff; }
.kma-contact-form .gform_required_legend { display: none; }
.kma-contact-form .gfield_required { color: #fff !important; }
.kma-contact-form .gfield_label {
    color: #fff !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 20px !important;
    text-transform: uppercase;
}
.kma-contact-form :is(input:not([type='submit']), textarea) {
    width: 100% !important;
    padding: 10px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.5) !important;
    border-radius: 3px !important;
    outline: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    line-height: 38px !important;
}
.kma-contact-form .gfield textarea {
    height: 100px !important;
    min-block-size: 100px !important;
    line-height: 36px !important;
    resize: vertical;
}
.kma-contact-form textarea::placeholder { color: #fff; opacity: 1; }
.kma-contact-form .gform-footer {
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.kma-contact-form .gform-footer::after {
    content: '';
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 15px;
    background: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 15'%3E%3Cpath d='M0 6.5h16.2L11.1 1.4 12.5 0 20 7.5 12.5 15l-1.4-1.4 5.1-5.1H0z'/%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 20 15'%3E%3Cpath d='M0 6.5h16.2L11.1 1.4 12.5 0 20 7.5 12.5 15l-1.4-1.4 5.1-5.1H0z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.kma-contact-form .gform_button {
    min-height: 38px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 3px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 16px !important;
    text-transform: none;
}

/* Keep every contact-form submit label and arrow on the production baseline. */
:is(.kma-contact-form, .kma-site-footer__contact) .gform-footer {
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}
:is(.kma-contact-form, .kma-site-footer__contact) .gform-footer::after {
    content: '';
    position: relative;
    top: -2px;
    display: inline-block !important;
    flex: 0 0 20px;
    width: 20px !important;
    height: 20px !important;
    background: #fff;
    color: transparent;
    font-size: 0;
    line-height: 0;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 15'%3E%3Cpath d='M0 6.5h16.2L11.1 1.4 12.5 0 20 7.5 12.5 15l-1.4-1.4 5.1-5.1H0z'/%3E%3C/svg%3E") center / 20px 15px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 15'%3E%3Cpath d='M0 6.5h16.2L11.1 1.4 12.5 0 20 7.5 12.5 15l-1.4-1.4 5.1-5.1H0z'/%3E%3C/svg%3E") center / 20px 15px no-repeat;
}
:is(.kma-contact-form, .kma-site-footer__contact) .gform_button {
    padding-inline: 16px !important;
}
.kma-contact-form .gform-footer .gform_button,
.kma-site-footer__contact .gform-footer .gform_button {
    padding: 0 16px !important;
}
.kma-contact-form .gform-footer .gform_button {
    padding-inline: 18.665px !important;
}

/* Keep entered values and placeholders compact across both contact forms. */
:is(.kma-contact-form, .kma-site-footer__contact)
    :is(input:not([type='submit']):not([type='hidden']), textarea) {
    font-size: 18px !important;
    line-height: 28px !important;
}

/* Production newsletter form: one field row with the disclaimer below. */
.kma-site-footer__directory {
    grid-template-columns: minmax(220px, .75fr) minmax(0, 1.65fr) minmax(394px, 1.25fr);
}
.kma-site-footer__newsletter h3 {
    margin: 0 0 20px;
    color: #000;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
}
.kma-site-footer__newsletter form {
    display: flex !important;
    align-items: stretch;
    width: 100%;
    min-height: 54px;
}
.kma-site-footer__newsletter .gform-body {
    flex: 1 1 0;
    min-width: 0;
}
.kma-site-footer__newsletter .gform_fields,
.kma-site-footer__newsletter .gfield,
.kma-site-footer__newsletter .ginput_container {
    height: 100%;
}
.kma-site-footer__newsletter input[type='email'] {
    width: 100% !important;
    height: 54px !important;
    padding: 0 12px !important;
    border: 1px solid #e2e2e2 !important;
    border-right: 0 !important;
    border-radius: 3px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #000 !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 38px !important;
}
.kma-site-footer__newsletter .gform-footer {
    flex: 0 0 auto;
    align-items: center !important;
    width: auto !important;
    min-height: 54px;
    margin: 0 !important;
    padding: 0 16px !important;
    border: 1px solid #e2e2e2;
    border-left: 0;
    border-radius: 0;
}
.kma-site-footer__newsletter .gform_button {
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border: 1px solid transparent !important;
    border-radius: 3px !important;
    background: var(--kma-orange) !important;
    box-shadow: none !important;
    color: #fff !important;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 14px !important;
}
.kma-site-footer__newsletter > p {
    max-width: none;
    margin: 10px 0 0;
    color: #000;
    font-size: 14px;
    line-height: 21px;
}
.kma-site-footer__directory { padding: 40px 24px; }
.kma-site-footer__identity img { width: auto; height: 52px; }
.kma-site-footer__bottom { padding-inline: 24px; }

/* Live-site-inspired content reveals. Motion is added progressively by JS so
   content remains visible when scripts are unavailable. */
html.kma-motion-pending body h1 { visibility: hidden; }
.kma-reveal-heading,
.kma-reveal-copy {
    will-change: opacity, transform;
}
.kma-reveal-heading:not(.kma-reveal-heading--words) {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
}
.kma-reveal-heading:not(.kma-reveal-heading--words).kma-reveal-ready {
    transition: opacity .62s ease, transform .8s cubic-bezier(.16, 1, .3, 1);
}
.kma-reveal-heading:not(.kma-reveal-heading--words).is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}
.kma-reveal-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}
.kma-reveal-word__inner {
    display: inline-block;
}
.kma-reveal-heading--words .kma-reveal-word__inner {
    transform: translate3d(0, 105%, 0);
}
.kma-reveal-heading--words.kma-reveal-ready .kma-reveal-word__inner {
    transition: transform .8s cubic-bezier(.16, 1, .3, 1);
    transition-delay: min(calc(var(--kma-word-index, 0) * 34ms), 374ms);
}
.kma-reveal-heading--words.is-visible .kma-reveal-word__inner {
    transform: translate3d(0, 0, 0);
}
.kma-reveal-copy {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
}
.kma-reveal-copy.kma-reveal-ready {
    transition: opacity .58s ease, transform .72s cubic-bezier(.16, 1, .3, 1);
    transition-delay: calc(var(--kma-copy-index, 0) * 60ms);
}
.kma-reveal-copy.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (max-width: 991px) {
    .kma-site-footer__directory { grid-template-columns: 1fr; }
    .kma-site-header__logo { top: 20px; left: 20px; }
    .kma-site-header__logo img { height: 40px; }
    body button.kma-menu-toggle { top: 20px; right: 20px; }
    body.admin-bar button.kma-menu-toggle { top: calc(20px + var(--wp-admin--admin-bar--height, 0px)); }
    .kma-home-hero > h1 { width: calc(100% - 40px); font-size: 46px; }
    .kma-home-hero__details { inset: auto 20px 24px; grid-template-columns: 1fr; }
    .kma-home-hero__details .kma-arrow-link { display: none; }
    .kma-split-hero > .e-con-inner,
    .kma-home-about > .e-con-inner,
    .kma-home-services > .e-con-inner,
    .kma-firm-story > .e-con-inner,
    .kma-firm-cta > .e-con-inner,
    .kma-contact-heading > .e-con-inner,
    .kma-contact-main > .e-con-inner { grid-template-columns: 1fr; }
    .kma-split-hero__copy,
    .kma-split-hero > .e-con-inner > .elementor-widget-image { padding-inline: 0; }
    /* Let Elementor's responsive container Gap control own this value. */
    .kma-home-about > .e-con-inner { gap: var(--gap); }
    .kma-home-about img { min-height: 0; aspect-ratio: 4 / 3; }
    .kma-home-project-rail:not(.kma-about-people-rail) {
        display: grid;
        grid-template-columns: 1fr;
        width: auto;
        gap: 24px;
        transform: none !important;
    }
    .kma-home-project-rail:not(.kma-about-people-rail) .kma-project-card { width: 100%; }
    .kma-home-project-rail:not(.kma-about-people-rail) .kma-project-card h3 { margin-top: 8px; font-size: 18px; line-height: 21.6px; }
    .kma-home-services > .e-con-inner { grid-template-columns: 1fr; gap: 0; }
    .kma-home-services__copy,
    .kma-home-services > .e-con-inner > .elementor-widget-text-editor,
    .elementor-widget-kma-services-carousel { grid-column: 1; }
    .elementor-widget-kma-services-carousel { width: 100%; }
    .kma-services-carousel { height: 56vw; min-height: 300px; }
    .kma-services-carousel h3 { padding-inline: 52px; font-size: 36px; }
    body button.kma-services-carousel__nav { top: 50%; width: 48px; height: 48px; min-width: 48px; }
    .kma-services-carousel__nav::before { inset: 13px 15px; border-width: 3px; }
    .kma-services-carousel__nav--prev { left: 12px; }
    .kma-services-carousel__nav--next { right: 12px; }
    .kma-home-news .kma-latest-news { width: calc(100% + 24px); }
    .kma-contact-page { grid-template-columns: 1fr; }
    .kma-contact-careers { position: static; width: auto; transform: none; }
    .kma-split-hero h1, .kma-firm-story h2, .kma-firm-cta h2,
    .kma-home-about h2, .kma-home-services h2, .kma-home-news h2,
    .kma-home-manifesto h2, .kma-contact-heading h1,
    .kma-contact-main h2, .kma-service-detail__copy h1 { font-size: 32px; }
    .kma-split-hero img { min-height: 0; }
    .kma-services-grid > .e-con-inner,
    .kma-service-detail__images > .e-con-inner { grid-template-columns: 1fr; }
    .kma-service-detail { grid-template-columns: 1fr; gap: 20px; }
    .kma-category-grid .kma-index-grid--projects { grid-template-columns: 1fr; }
    .kma-project-gallery-shell { --kma-project-hero-height: 500px; }
    body button.kma-project-gallery__nav { width: 30px; height: 30px; min-width: 30px; }
    .kma-project-gallery__nav span { inset: 6px; border-width: 2px; }
    .kma-project-gallery__nav--prev { left: 12px; }
    .kma-project-gallery__nav--next { right: 12px; }
    .kma-project-template__details { position: static; }
    body .elementor .elementor-element.kma-project-template__intro { margin-bottom: -32px; }
    body .elementor .elementor-element.kma-project-template__intro > .e-con-inner { padding-bottom: 0; }
    body .elementor .elementor-element.kma-project-template__content { z-index: 1; background: #fff; }
    .kma-project-template__related > .e-con-inner { margin-top: 50px; margin-bottom: -30px; }
    .kma-project-template__intro .elementor-widget-shortcode:has(.kma-dynamic-title) { top: -75px; right: 0; width: calc(100vw - 40px); }
    body .kma-project-template__intro h1 { font-size: 24px; }
    .kma-index-grid--news { grid-template-columns: 1fr 1fr; }
    .kma-people-grid { grid-template-columns: 1fr 1fr; }
    .kma-services-heading h1, .kma-category-heading h1 { font-size: 48px; }
    .kma-index-grid--projects, .kma-index-grid--news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .kma-index-grid--projects, .kma-index-grid--news { grid-template-columns: 1fr; }
    .kma-overlay-navigation {
        overflow-x: hidden;
        overflow-y: auto;
        padding: 20px;
        background: var(--kma-orange);
    }
    .kma-overlay-navigation__bar {
        height: 48px;
        padding: 0;
    }
    .kma-overlay-navigation__logo img {
        height: 40px;
        filter: brightness(0) invert(1);
    }
    .kma-overlay-navigation__body {
        display: block;
        height: auto;
        min-height: calc(100vh - 108px);
        margin-top: 40px;
    }
    .kma-overlay-navigation__image { display: none; }
    .kma-overlay-navigation__content {
        display: block;
        height: auto;
        padding: 0;
    }
    .kma-overlay-navigation__groups {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        margin: 0;
    }
    .kma-overlay-navigation__column { gap: 32px; }
    .kma-nav-group { padding: 0; }
    .kma-nav-group h2 {
        margin-bottom: 10px;
        font-size: 28px;
    }
    .kma-nav-group li { margin-bottom: 8px; }
    .kma-nav-group a {
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .kma-overlay-navigation__cta {
        margin: 40px 0 20px;
        font-size: 28px;
    }
    body button.kma-person-modal__close { top: 20px; right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    html.kma-motion-pending body h1 { visibility: visible; }
    .kma-infinite-scroll.is-loading::after,
    .kma-person-modal__status::after { animation: none; }
    .kma-nav-group a,
    .kma-overlay-navigation__cta,
    .kma-overlay-navigation__cta > span { transition: none; }
    .kma-home-hero__details { transition: none; }
    .kma-home-hero__progress-fill { display: none; }
    .kma-reveal-heading,
    .kma-reveal-copy,
    .kma-reveal-word__inner {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Final cascade guards for Elementor document styles and the single-news
   composition declared above. */
body:has(.kma-firm-page),
body:has(.kma-service-detail),
body:has(.kma-category-page),
body:has(.kma-index-page),
body:has(.kma-project-template),
body:has(.kma-news-template) { background: var(--kma-bg) !important; }
.kma-firm-page,
.kma-category-page,
.kma-index-page,
.kma-project-template { background: var(--kma-bg); }
body .elementor .elementor-element.kma-service-detail {
    max-width: var(--kma-content-max) !important;
    margin-inline: auto;
    background: var(--kma-bg);
}
.kma-news-template { background: var(--kma-bg); }
.kma-news-template__heading { background: #e2e2e2; }
.kma-news-template__content { background: var(--kma-bg); }
