.aai-client-layout {
    --canvas: #f8f4ef;
    --tint: #f1e9e0;
}
.aai-client-layout .site-header { background: var(--canvas); z-index: 15; }
.aai-client-layout .brand-row { min-height: 72px; }
.aai-client-layout .aai-brand img { width: 82px; height: auto; }
.aai-client-layout .aai-brand span { display: none; }
.aai-client-layout .header-actions { gap: 12px; }
.aai-client-layout .header-actions > a.search-button,
.aai-client-layout .aai-client-footer .search-button { color: var(--brand); }
.aai-header-search { display: flex; align-items: center; border: 1px solid #827579; }
.aai-header-search input { border: 0; background: transparent; padding: 8px 10px; width: min(17vw, 200px); }
.aai-client-layout .header-actions > [data-search] { display: none; }
.aai-client-layout .navigation { min-height: 53px; font-size: clamp(10px, 1.07vw, 14px); }
.aai-client-layout #navigation > .nav-disclosure > summary::after { content: none; }
.aai-client-layout #navigation > .nav-disclosure > summary::-webkit-details-marker { display: none; }
.aai-client-layout :is(#navigation > a, #navigation > .nav-disclosure > summary) {
    background: linear-gradient(var(--aai-menu-underline, var(--brand)), var(--aai-menu-underline, var(--brand)))
        left calc(50% + .85em) / 0 2px no-repeat;
    transition: background-size 180ms ease-out;
}
.aai-client-layout :is(#navigation > a, #navigation > .nav-disclosure > summary):focus-visible {
    background-size: 100% 2px;
}
@media (hover: hover) {
    .aai-client-layout :is(#navigation > a, #navigation > .nav-disclosure > summary):hover {
        background-size: 100% 2px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .aai-client-layout :is(#navigation > a, #navigation > .nav-disclosure > summary) { transition: none; }
}
.aai-client-layout .dropdown { font-size: 13px; color: var(--ink); }
.nav-subgroup > summary { padding: 12px; }
.nav-subgroup-links { padding-left: 12px; border-left: 1px solid var(--line); }
.aai-client-layout .dropdown .nav-subgroup-links a { padding: 7px 10px; }

@media (min-width: 851px) {
    .aai-client-layout.home .site-header { position: relative; }
    .aai-client-layout.home .navigation {
        --aai-menu-underline: var(--accent);
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        color: #fff;
        border-top: 0;
    }
    .aai-client-layout.home .navigation > a:hover,
    .aai-client-layout.home .nav-disclosure > summary:hover { color: #fff; }
    .aai-client-layout .nav-disclosure:nth-last-child(-n+2) > .dropdown { left: auto; right: 0; }
    .aai-client-layout .dropdown { width: min(340px, 38vw); max-height: calc(100vh - 142px); overflow: auto; }
    .aai-client-layout.home .navigation > a:focus-visible,
    .aai-client-layout.home .navigation > details > summary:focus-visible { outline-color: #fff; }
}

.aai-site .elementor .aai-client-home.e-con,
.aai-site .elementor .aai-client-home .e-con {
    --gap: 0;
    --padding-top: 0;
    --padding-right: 0;
    --padding-bottom: 0;
    --padding-left: 0;
    max-width: none;
}
.aai-site .elementor .aai-client-home.e-con { display: block; width: 100%; }
.aai-site .elementor .aai-client-home .aai-client-hero {
    width: 100%;
    margin: 0;
    min-height: clamp(490px, 64vw, 880px);
    align-content: start;
}
.aai-client-home .aai-client-hero .swiper-slide-inner::after {
    background:
        linear-gradient(180deg, #1b1714cc, #1b171400 120px),
        linear-gradient(270deg, #1a1713ba 0%, #1a171370 44%, #1a17130a 72%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
.aai-site .elementor .aai-client-home .aai-client-hero .aai-hero-overlay {
    width: min(1280px, calc(100% - 112px));
    align-items: flex-end;
    padding: clamp(112px, 14vw, 215px) 0 90px;
    text-align: right;
}
.aai-site .elementor .aai-client-home .aai-client-hero h1 {
    max-width: 38ch;
    font-size: clamp(23px, 2.12vw, 38px);
    font-weight: 600;
    line-height: 1.55;
    letter-spacing: 0;
}
.aai-site .elementor .aai-client-home .button {
    justify-content: center;
    background: var(--brand);
    border-color: transparent;
    color: #fff;
}
.aai-site .elementor .aai-client-home .button:hover { background: var(--brand-hover); color: #fff; }

.aai-site .elementor .aai-client-program.e-con {
    display: grid;
    grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
    gap: 0;
    font-size: clamp(14px, 1.2vw, 18px);
}
.aai-site .elementor .aai-client-program .aai-client-program-copy {
    justify-content: center;
    padding: clamp(24px, 5.5vw, 96px) clamp(24px, 6.25vw, 115px);
    line-height: 1.9;
}
.aai-site .elementor .aai-client-program .aai-client-program-panel {
    padding: clamp(28px, 4.4vw, 69px) clamp(24px, 6.25vw, 115px);
    background: var(--brand);
    color: #fff;
    line-height: 1.6;
}
.aai-site .elementor .aai-client-program h2 {
    font: 650 clamp(19px, 1.65vw, 28px)/1.5 var(--sans);
    text-transform: uppercase;
    letter-spacing: .08em;
    max-width: 32ch;
    color: #fff;
    margin-bottom: clamp(16px, 2.5vw, 35px);
}
.aai-site .elementor .aai-client-program-panel a {
    display: block;
    padding: .85em 0;
    border-top: 1px solid var(--accent);
    color: #fff;
}
.aai-client-program-panel a:hover { text-decoration: underline; }
.aai-client-program-panel a:focus-visible { outline-color: #fff !important; }

.aai-client-gallery { background: var(--tint); }
.aai-client-gallery-series { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.aai-client-gallery-series[hidden], .aai-client-gallery-controls[hidden] { display: none; }
.aai-client-gallery-series figure { position: relative; }
.aai-client-gallery-series img { width: 100%; height: auto; aspect-ratio: 1.2; object-fit: cover; }
.aai-client-gallery-series figcaption,
.aai-client-join-photo figcaption {
    position: absolute;
    bottom: .45rem;
    right: .45rem;
    max-width: calc(100% - .9rem);
    padding: .2rem .4rem;
    background: #181312e8;
    color: white;
    font-size: .7rem;
}
.aai-client-gallery-controls { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .35rem 0; }
.aai-site .elementor .aai-client-gallery-controls button { font-size: 1.55rem; line-height: 1; padding: .3rem .75rem; }
.aai-client-gallery-controls span { color: var(--muted); font-size: .82rem; }
.aai-site .elementor .aai-client-agenda { align-items: center; padding: 10px 24px 40px; background: var(--tint); }
.aai-client-agenda .button { justify-content: center; min-width: min(100%, 250px); text-transform: uppercase; letter-spacing: .09em; }

.aai-site .elementor .aai-client-stories { padding-block: clamp(34px, 5.4vw, 82px); }
.aai-site .elementor .aai-client-stories h2 {
    margin-bottom: clamp(20px, 2.4vw, 33px);
    font: 650 clamp(16px, 1.45vw, 22px)/1.2 var(--sans);
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: .08em;
}
.aai-client-stories .aai-revision-grid { gap: clamp(14px, 1.55vw, 24px); }
.aai-client-stories .aai-revision-card { background: transparent; border: 0; }
.aai-client-stories .aai-revision-card figure { position: relative; }
.aai-client-stories .aai-revision-card figcaption { font-size: .74rem; color: var(--muted); }
.aai-site .elementor .aai-client-stories .aai-revision-card h3 { padding: 0; margin: .5rem 0; font-size: clamp(17px, 1.4vw, 25px); line-height: 1.45; }
.aai-client-stories .aai-revision-card a { height: auto; }
.aai-client-stories .aai-revision-card p { color: var(--muted); font-size: .9rem; }
.aai-site .elementor .aai-client-stories .aai-story-link { display: inline-block; margin-top: .65rem; color: var(--brand); border-bottom: 1px solid var(--accent); }
.aai-site .elementor .aai-client-stories-all a { color: var(--brand); text-decoration: underline; text-underline-offset: .2em; }

.aai-site .elementor .aai-client-join {
    isolation: isolate;
    justify-content: center;
    position: relative;
    text-align: center;
    min-height: clamp(380px, 50vw, 720px);
    padding: 70px 24px;
    background: #1b3022;
    color: #fff;
}
.aai-site .elementor .aai-client-join-photo { position: absolute; inset: 0; margin: 0; }
.aai-client-join-photo :is(.elementor-widget-container, figure) { width: 100%; height: 100%; }
.aai-client-join-photo img { width: 100%; height: 100%; object-fit: cover; }
.aai-client-join::before {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    background: #08160cc0;
    pointer-events: none;
}
.aai-client-join-photo figcaption { z-index: 2; }
.aai-site .elementor .aai-client-join-copy { z-index: 2; align-self: center; align-items: center; width: min(650px, 100%); }
.aai-site .elementor .aai-client-join h2 { font-size: clamp(26px, 2.75vw, 42px); letter-spacing: 0; line-height: 1.35; color: #fff; }
.aai-site .elementor .aai-client-join p { margin-top: 1em; font-size: clamp(14px, 1.3vw, 19px); }
.aai-client-join .button:focus-visible { outline-color: white !important; }

.aai-site .aai-client-footer { background: var(--tint); padding: 38px 0 25px; }
.aai-client-footer-brand { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--accent); padding-bottom: 12px; }
.aai-client-footer-details { display: flex; justify-content: space-between; gap: 1rem; padding-top: 12px; font-size: .82rem; color: #4f4449; }
.aai-client-footer-details strong { text-transform: uppercase; letter-spacing: .07em; color: var(--brand); }
.aai-client-footer-details address { font-style: normal; }
.aai-client-footer .footer-links { width: auto; margin: 18px 0 0; padding: 0; font-size: .75rem; }
.aai-client-footer-details a,
.aai-client-footer .footer-links a { text-decoration: underline; }

.aai-client-layout .aai-revision-page .reading-body:has(.aai-overview-links) { max-width: none; }
.aai-client-layout .aai-revision-page .reading-body:has(.aai-overview-links) :where(.elementor-widget-container > p) {
    max-width: 75ch;
}
.aai-client-layout .aai-revision-page ul.aai-overview-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 1.5vw, 22px);
    padding: 0;
    margin: clamp(18px, 2vw, 32px) 0 0;
    list-style: none;
}
.aai-client-layout .aai-revision-page .aai-overview-links > li {
    display: flex;
    margin: 0;
    min-width: 0;
}
.aai-site.aai-client-layout .elementor .aai-overview-links > li > a {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 94px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font: 600 clamp(1.05rem, 1.4vw, 1.25rem)/1.4 var(--serif);
    overflow-wrap: anywhere;
    text-decoration: none;
    transition: border-color 180ms ease-out, color 180ms ease-out, background-color 180ms ease-out;
}
.aai-site.aai-client-layout .elementor .aai-overview-links > li > a:not(:has(.aai-overview-card-copy)) {
    justify-content: center;
    padding: clamp(16px, 2vw, 26px);
}
.aai-overview-card-media { position: relative; }
.aai-overview-card-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.aai-overview-card-media figcaption {
    position: absolute;
    inset-inline-end: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    padding: 3px 7px;
    background: #181312e8;
    color: #fff;
    font: 500 .7rem/1.4 var(--sans);
}
.aai-overview-card-copy { display: grid; gap: 8px; padding: clamp(16px, 2vw, 24px); }
.aai-overview-card-summary { color: var(--muted); font: 400 .875rem/1.6 var(--sans); }
.aai-site.aai-client-layout .elementor .aai-overview-links > li > a:is(:hover, :focus-visible) {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--canvas);
}
@media (max-width: 1000px) {
    .aai-client-layout .aai-revision-page ul.aai-overview-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .aai-client-layout .aai-revision-page ul.aai-overview-links { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .aai-site.aai-client-layout .elementor .aai-overview-links > li > a { transition: none; }
}

@media (max-width: 850px) {
    .aai-client-layout .navigation { font-size: .92rem; }
    .aai-client-layout .brand-row { min-height: 65px; }
    .aai-client-layout .aai-brand img { width: 70px; }
    .aai-client-layout .header-actions > [data-search] { display: flex; }
    .aai-header-search { display: none; }
}
@media (max-width: 700px) {
    .aai-site .elementor .aai-client-home .aai-client-hero { min-height: clamp(490px, 122vw, 610px); align-content: end; }
    .aai-site .elementor .aai-client-home .aai-client-hero .aai-hero-overlay { width: calc(100% - 40px); padding: 50px 0 110px; text-align: left; align-items: flex-start; }
    .aai-client-home .aai-client-hero .swiper-slide-inner::after { background: linear-gradient(0deg, #17110ef5, #17110eaa 58%, #17110e08 90%); }
    .aai-site .elementor .aai-client-home .aai-client-hero h1 { max-width: 26ch; font-size: clamp(23px, 5.6vw, 31px); line-height: 1.4; }
    .aai-site .elementor .aai-client-program.e-con { grid-template-columns: 100%; }
    .aai-client-gallery-series { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aai-client-footer-details { flex-direction: column; }
}
@media (max-width: 420px) {
    .aai-client-layout .header-actions { gap: 3px; }
    .aai-client-layout .brand-row { gap: 4px; }
    .aai-client-layout .header-actions .button { padding-inline: 9px; }
}
