/* Public section palettes only; admin UI keeps its own color system. */
:is(.theme-topbar,.theme-header,.theme-main,.theme-hero,.theme-services,.theme-benefits,.theme-stats,.theme-cta,.theme-newsflash,.theme-footer){background:var(--section-background)!important;color:var(--section-text)!important}
:is(.theme-hero,.theme-benefits,.theme-stats,.theme-cta)>div.absolute{opacity:0!important}
:is(.theme-topbar,.theme-header,.theme-main,.theme-footer) :is(h1,h2,h3,h4,h5,h6){color:var(--section-heading)}
:is(.theme-hero,.theme-services,.theme-benefits,.theme-stats,.theme-cta,.theme-newsflash) :is(h1,h2,h3,h4){color:var(--section-heading)!important;background-image:none!important;-webkit-text-fill-color:var(--section-heading)}
:is(.theme-topbar,.theme-header,.theme-main,.theme-footer) :is(p,[class*="text-gray-"],[class*="text-slate-"]):not(button):not([role=button]){color:var(--section-text)}
:is(.theme-topbar,.theme-header,.theme-footer) a:not([class*="bg-"]){color:var(--section-text)}
:is(.theme-topbar,.theme-header,.theme-main,.theme-footer) :is(.text-bank-accent,.text-bank-primary){color:var(--section-accent)}
:is(.theme-topbar,.theme-header,.theme-footer) a:hover{color:var(--section-accent)}
.theme-main .theme-services .bg-white{background:var(--section-background)}
:is(.theme-hero,.theme-benefits,.theme-stats,.theme-cta) p{color:var(--section-text)!important}
:is(.theme-hero,.theme-services,.theme-benefits,.theme-stats,.theme-cta) .bg-bank-primary{background-color:var(--section-accent)}
:is(.theme-services,.theme-benefits) .text-bank-primary{color:var(--section-accent)}
.theme-newsflash .news-flash-label{background:var(--section-accent);color:var(--section-background)!important;-webkit-text-fill-color:var(--section-background)}
.theme-newsflash .news-flash-copy p{color:var(--section-text)}.theme-newsflash .news-flash-copy a{color:var(--section-accent)}
.theme-footer .border-white\/10{border-color:color-mix(in srgb,var(--section-text) 20%,transparent)}

.theme-slideshow,.theme-slideshow .home-slideshow-image{background:var(--section-background)!important;color:var(--section-text)}
.theme-slideshow:focus-visible{outline:2px solid var(--section-accent);outline-offset:4px}
.public-site[data-topbar=false] .theme-topbar{display:none!important}
.public-site[data-nav-sticky=false] .theme-header{position:relative!important}
.public-site[data-nav-density=compact]{--nav-height:64px;--nav-gap:12px}
.public-site[data-nav-density=comfortable]{--nav-height:80px;--nav-gap:24px}
.public-site[data-nav-density=spacious]{--nav-height:96px;--nav-gap:32px}
.public-site .theme-header .h-20{height:var(--nav-height)}
.public-site .theme-header nav{gap:var(--nav-gap)}
.public-site .theme-header nav> *{margin-left:0!important;margin-right:0!important}
.public-site .theme-header .site-dropdown-panel{top:var(--nav-height)}
.public-site[data-nav-density=compact] .theme-header img{max-height:48px;width:auto}
.public-site[data-nav-style=minimal] .theme-header nav .absolute.bottom-0,.public-site[data-nav-style=pills] .theme-header nav .absolute.bottom-0{display:none}
.public-site[data-nav-style=pills] .theme-header nav>a,.public-site[data-nav-style=pills] .theme-header nav>.site-dropdown>button{border-radius:999px;padding:10px 14px;height:auto}
.public-site[data-nav-style=pills] .theme-header nav>a:hover,.public-site[data-nav-style=pills] .theme-header nav>.site-dropdown>button:hover{background:color-mix(in srgb,var(--section-accent) 12%,transparent)}
.public-site .theme-header nav{flex-wrap:wrap;align-content:center}
.public-site .theme-header a:focus-visible,.public-site .theme-header button:focus-visible{outline:2px solid var(--section-accent);outline-offset:3px}
/* Downward spikes replace the footer brush divider. */
.theme-footer{position:relative;border-top:0;padding-top:88px;overflow:hidden}
.theme-footer::before{content:"";display:block;position:absolute;top:-1px;left:0;width:100%;height:17px;pointer-events:none;background:var(--main-background,#fff);--footer-spike-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='17' viewBox='0 0 48 17'%3E%3Cpath fill='white' d='M0 0H48V1L24 17L0 1Z'/%3E%3C/svg%3E");-webkit-mask:var(--footer-spike-mask) left top/48px 17px repeat-x;mask:var(--footer-spike-mask) left top/48px 17px repeat-x}
.theme-footer .footer-copyright{border-top:0;padding-top:24px}
@media(max-width:767px){.theme-footer{padding-top:64px}.theme-footer::before{height:13px;-webkit-mask-size:36px 13px;mask-size:36px 13px}}
/* Category controls override main-content colors on inner-page banners. */
.public-site[class*="page-category-"]:not(.page-category-home) .theme-main{--section-background:var(--page-content-background);--section-heading:var(--page-content-heading);--section-text:var(--page-content-text);font-family:var(--page-font);background:var(--page-content-background)!important;color:var(--page-content-text)!important}
.public-site .theme-main .page-banner{--section-background:var(--page-background);--section-heading:var(--page-heading);--section-text:var(--page-text);--section-accent:var(--page-accent);background:var(--page-background)!important;color:var(--page-text)!important;padding-top:var(--page-padding);padding-bottom:var(--page-padding);text-align:var(--page-alignment);font-family:var(--page-font)}
.public-site .theme-main .page-banner h1{color:var(--page-heading)!important;font-size:var(--page-mobile-size);font-weight:var(--page-weight);line-height:1.2;text-align:var(--page-alignment);overflow-wrap:anywhere}
.public-site .theme-main .page-banner p{color:var(--page-text)!important;font-size:var(--page-body-size);line-height:1.65;text-align:var(--page-alignment)}
.public-site .theme-main .page-banner .text-bank-accent{color:var(--page-accent)!important}
.public-site .theme-main .page-banner>div.absolute{opacity:.15}
.public-site .theme-main .page-banner .text-center{ text-align:var(--page-alignment)}
.public-site .theme-main .category-article-title{font-family:var(--page-font);font-size:var(--page-mobile-size);font-weight:var(--page-weight);color:var(--page-content-heading);line-height:1.2}
.public-site[class*="page-category-"]:not(.page-category-home) .theme-main>section:not(.page-banner){background-color:var(--page-content-background)}
@media(min-width:768px){.public-site .theme-main .page-banner h1,.public-site .theme-main .category-article-title{font-size:var(--page-title-size)}}

/* Small downward spikes finish the hero in the next section’s theme color. */
.theme-hero.home-hero{--hero-blend-target:var(--hero-next-background);padding-bottom:28px;border-bottom:0}
.theme-hero.home-hero:has(+ .theme-newsflash){--hero-blend-target:var(--newsflash-background,var(--main-background))}
.theme-hero.home-hero::after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:17px;z-index:21;pointer-events:none;background:var(--hero-blend-target);--spike-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='17' viewBox='0 0 48 17'%3E%3Cpath fill='white' d='M0 0L24 16L48 0V17H0Z'/%3E%3C/svg%3E");-webkit-mask:var(--spike-mask) left bottom/48px 17px repeat-x;mask:var(--spike-mask) left bottom/48px 17px repeat-x}
@media(min-width:1024px){.theme-hero.home-hero{padding-bottom:36px}}
@media(max-width:767px){.theme-hero.home-hero{padding-bottom:26px}.theme-hero.home-hero::after{height:13px;-webkit-mask-size:36px 13px;mask-size:36px 13px}}
/* Footer geometry echoes the hero while leaving navigation unobstructed. */
.theme-footer{isolation:isolate}
.theme-footer>div>div{position:relative;z-index:1}
.footer-orbits,.footer-bubbles,.footer-corners{position:absolute;inset:0;pointer-events:none;z-index:0;--footer-edge:color-mix(in srgb,var(--section-accent) 28%,transparent);--footer-fill:color-mix(in srgb,var(--section-accent) 6%,transparent)}
.footer-orbits::before,.footer-orbits::after{content:"";position:absolute;border:1px solid var(--footer-edge);border-radius:50%;box-shadow:0 0 0 12px var(--footer-fill),0 0 0 24px color-mix(in srgb,var(--section-accent) 3%,transparent)}
.footer-orbits::before{width:150px;height:150px;left:-82px;top:110px}
.footer-orbits::after{width:190px;height:190px;right:-110px;bottom:58px}
.footer-bubbles::before,.footer-bubbles::after{content:"";position:absolute;border:1px solid var(--footer-edge);border-radius:50%;background:radial-gradient(circle at 30% 25%,color-mix(in srgb,var(--section-accent) 14%,transparent),var(--footer-fill) 60%,transparent)}
.footer-bubbles::before{width:24px;height:24px;left:19%;top:48px;box-shadow:40px 8px 0 -7px var(--footer-fill),72px -4px 0 -9px var(--footer-edge)}
.footer-bubbles::after{width:30px;height:30px;right:22%;bottom:18px;box-shadow:-42px 7px 0 -9px var(--footer-fill)}
.footer-corners::before,.footer-corners::after{content:"";position:absolute;width:38px;height:38px;border-color:var(--footer-edge);border-style:solid}
.footer-corners::before{top:82px;right:18px;border-width:2px 2px 0 0;border-radius:0 18px 0 0}
.footer-corners::after{bottom:18px;left:18px;border-width:0 0 2px 2px;border-radius:0 0 0 18px}
@media(max-width:767px){.footer-orbits::before{width:100px;height:100px;left:-65px}.footer-orbits::after{width:120px;height:120px;right:-80px}.footer-bubbles::before{top:28px;width:18px;height:18px}.footer-bubbles::after{width:20px;height:20px;bottom:12px}.footer-corners::before,.footer-corners::after{width:24px;height:24px}.footer-corners::before{right:10px;top:58px}.footer-corners::after{left:10px;bottom:10px}}
.footer-center-accents{position:absolute;left:50%;top:50%;width:200px;height:150px;transform:translate(-50%,-35%);pointer-events:none;z-index:0}
.footer-center-accents::before{content:"";position:absolute;left:36px;top:18px;width:104px;height:104px;border:1px solid color-mix(in srgb,var(--section-accent) 16%,transparent);border-radius:50%;box-shadow:0 0 0 12px color-mix(in srgb,var(--section-accent) 4%,transparent),0 0 0 24px color-mix(in srgb,var(--section-accent) 2%,transparent)}
.footer-center-accents::after{content:"";position:absolute;right:8px;top:4px;width:22px;height:22px;border:1px solid color-mix(in srgb,var(--section-accent) 22%,transparent);border-radius:50%;background:radial-gradient(circle at 30% 25%,color-mix(in srgb,var(--section-accent) 12%,transparent),transparent 75%);box-shadow:-148px 108px 0 -5px color-mix(in srgb,var(--section-accent) 12%,transparent),28px 78px 0 -7px color-mix(in srgb,var(--section-accent) 16%,transparent)}
@media(max-width:767px){.footer-center-accents{transform:translate(-50%,-35%) scale(.75)}}
.grouped-navigation{display:flex;align-items:center;gap:var(--nav-gap,24px);height:100%}
.navigation-group{position:relative}
#app .navigation-group>button{display:flex;align-items:center;gap:8px;min-height:44px;padding:10px 4px;background:transparent;border:0;color:var(--section-text);font:600 14px/1.4 Sen,system-ui,sans-serif;cursor:pointer;white-space:nowrap}
#app .navigation-group>button:hover,#app .navigation-group>button[aria-expanded=true]{color:var(--section-accent)}
.navigation-group-links{position:absolute;top:100%;left:0;min-width:240px;padding:10px;background:var(--section-background);border:1px solid color-mix(in srgb,var(--section-text) 15%,transparent);border-radius:12px;box-shadow:0 16px 40px #0f172a26;z-index:60}
.navigation-group:last-child .navigation-group-links{left:auto;right:0}
.navigation-group-links[hidden]{display:none}
.theme-header .navigation-group-links a{display:block;padding:12px 14px;border-radius:8px;text-decoration:none;font-size:14px;line-height:1.5;color:var(--section-text)}
.theme-header .navigation-group-links a:hover{background:color-mix(in srgb,var(--section-accent) 8%,var(--section-background));color:var(--section-accent)}
.grouped-navigation-mobile{display:block;height:auto}.grouped-navigation-mobile .navigation-group{border-bottom:1px solid #e2e8f0}.grouped-navigation-mobile .navigation-group>button{width:100%;justify-content:space-between;padding:14px 12px!important}.grouped-navigation-mobile .navigation-group-links{position:static;min-width:0;box-shadow:none;border:0;padding:0 12px 12px}
.public-site[data-nav-style=pills] .navigation-group>button{border-radius:24px;padding-inline:14px!important}.public-site[data-nav-style=pills] .navigation-group>button[aria-expanded=true]{background:color-mix(in srgb,var(--section-accent) 10%,transparent)!important}
.public-site[data-nav-style=underline] .navigation-group>button[aria-expanded=true]{box-shadow:inset 0 -2px var(--section-accent)}
#why-choose-us{scroll-margin-top:110px}

/* Compact photographic introductions for the homepage service cards. */
.theme-services .home-services-grid { gap: 24px; margin-top: 28px; grid-auto-rows: 1fr; }
.theme-services .service-photo-card { padding: 0; }
.theme-services .service-card-content { display: flex; flex-direction: column; height: 100%; }
.theme-services .service-card-link { border-radius: 16px; }
.theme-services .service-card-link:focus-visible { outline: 3px solid var(--section-accent, #2563eb); outline-offset: 4px; }
.theme-services .service-card-explore { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 22px 20px; color: var(--section-heading, #0f172a); font-size: 14px; font-weight: 600; }
.theme-services .service-card-explore span { color: var(--section-accent, #2563eb); }
.theme-services .service-card-photo { height: 180px; flex-shrink: 0; overflow: hidden; background: #e8edf3; }
.theme-services .service-card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .35s ease; }
.theme-services .service-photo-card:hover .service-card-photo img { transform: scale(1.035); }
.theme-services .service-photo-card .w-14 { display: none; }
.theme-services .service-photo-card h3 { margin: 18px 22px 8px; }
.theme-services .service-photo-card p { margin: 0 22px 18px; line-height: 1.6; flex: 1; display: block; overflow: visible; -webkit-line-clamp: unset; }
@media (max-width: 767px) {
    .theme-services .home-services-grid { gap: 20px; margin-top: 24px; grid-auto-rows: auto; }
    .theme-services .service-card-explore { margin-inline: 20px; }
    .theme-services .service-card-photo { height: 170px; }
    .theme-services .service-photo-card h3 { margin: 18px 20px 8px; }
    .theme-services .service-photo-card p { margin: 0 20px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .theme-services .service-card-photo img { transition: none; }
    .theme-services .service-photo-card:hover .service-card-photo img { transform: none; }
}

/* A more prominent brand and comfortably sized primary navigation. */
.public-site .theme-header { box-shadow: 0 4px 18px #0f172a08; }
.public-site .theme-header .site-header-row { height: 84px; gap: 16px; }
.public-site .theme-header .site-brand { gap: 2px; }
.public-site .theme-header .site-brand img { width: 80px; height: 80px; max-height: 80px; flex-shrink: 0; }
.public-site .theme-header .site-brand h1 { font-size: 24px; letter-spacing: .04em; }
.public-site .theme-header .site-brand p { font-size: 13px; margin-top: 4px; }
#app .theme-header .navigation-group > button { font-size: 16px; font-weight: 600; padding-block: 10px; transition: color .18s ease, background-color .18s ease; }
.theme-header .navigation-group > button > span { font-size: 14px; transition: transform .18s ease; }
.theme-header .navigation-group > button[aria-expanded=true] > span { transform: rotate(180deg); }
.theme-header .navigation-group-links { min-width: 260px; padding: 10px; border-top: 2px solid var(--section-accent); box-shadow: 0 14px 35px #0f172a1a; }
.theme-header .navigation-group-links a { font-size: 15px; padding: 12px 14px; transition: background-color .18s ease, color .18s ease; }
@media (max-width: 1199px) and (min-width: 1024px) {
    .theme-header .grouped-navigation { gap: min(var(--nav-gap, 24px), 18px); }
    .public-site .theme-header .site-header-row { gap: 12px; }
    .public-site .theme-header .site-brand h1 { font-size: 22px; }
}
@media (max-width: 1023px) {
    .public-site .theme-header .site-header-row { height: 76px; }
    .public-site .theme-header .site-brand img { width: 68px; height: 68px; max-height: 68px; }
    .public-site .theme-header .site-brand h1 { font-size: 22px; }
    .public-site .theme-header .site-brand p { font-size: 12px; }
    .theme-header .grouped-navigation-mobile .navigation-group-links { min-width: 0; box-shadow: none; border-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
    #app .theme-header .navigation-group > button,
    .theme-header .navigation-group > button > span,
    .theme-header .navigation-group-links a { transition: none; }
}

.article-news-slider { padding: 16px 0; }
.article-news-inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; gap: 28px; }
.article-news-heading { flex: 0 0 150px; }
.article-news-heading h2 { font-size: 18px; font-weight: 700; color: var(--section-heading); margin: 0 0 4px; }
.article-news-heading a,.article-news-read { font-size: 12px; color: var(--section-accent); font-weight: 600; }
.article-news-story { flex: 1; min-width: 0; }
.article-news-link { display: flex; align-items: center; gap: 14px; min-height: 70px; }
.article-news-link img { width: 60px; height: 70px; flex: 0 0 60px; object-fit: cover; border-radius: 8px; background: #e2e8f0; }
.article-news-link h3 { font-size: 16px; font-weight: 600; line-height: 1.45; color: var(--section-heading); margin: 0 0 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-news-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 12px; }
#app .article-news-controls button { min-width: 36px; min-height: 36px; border: 1px solid color-mix(in srgb,var(--section-text) 20%,transparent); border-radius: 8px; padding: 6px 9px; color: var(--section-text); background: transparent; cursor: pointer; }
#app .article-news-controls button:hover { background: color-mix(in srgb,var(--section-accent) 12%,transparent); }
.article-news-slider :is(a,button):focus-visible { outline: 2px solid var(--section-accent); outline-offset: 3px; }
@media (max-width: 767px) {
    .article-news-inner { padding: 0 16px; gap: 12px; flex-wrap: wrap; }
    .article-news-heading { flex-basis: 100%; display: flex; align-items: center; justify-content: space-between; }
    .article-news-story { flex-basis: 100%; }
    .article-news-controls { margin-left: auto; }
}

/* Light, readable closing invitation to match the service cards. */
.public-site .theme-cta {
    --section-background: #ffffff;
    --section-heading: #0f172a;
    --section-text: #475569;
    --section-accent: #2563eb;
}
#app .theme-cta a:first-child button { background: var(--section-accent); color: #fff; border-color: var(--section-accent); }
#app .theme-cta a:first-child button:hover { background: #1d4ed8; border-color: #1d4ed8; }
#app .theme-cta a:last-child button { background: transparent; color: var(--section-heading); border-color: #cbd5e1; }
#app .theme-cta a:last-child button:hover { background: #f1f5f9; border-color: var(--section-heading); }

/* Statistics use the same light treatment as the closing invitation. */
.public-site .theme-stats {
    --section-background: #ffffff;
    --section-heading: #0f172a;
    --section-text: #475569;
    --section-accent: #2563eb;
    border-color: #e2e8f0;
}
.theme-stats .grid > .group { background: #fff; border-color: #e2e8f0; box-shadow: 0 2px 8px #0f172a05; }
.theme-stats .grid > .group:hover { background: #f8fafc; border-color: #cbd5e1; box-shadow: 0 6px 18px #0f172a0a; }
.theme-stats .grid > .group:nth-child(1) .w-14 { color: #a16207; background: #fffbeb; border-color: #fde68a; }
.theme-stats .grid > .group:nth-child(2) .w-14 { color: #7e22ce; background: #faf5ff; border-color: #e9d5ff; }
.theme-stats .grid > .group:nth-child(3) .w-14 { color: #0369a1; background: #f0f9ff; border-color: #bae6fd; }
.theme-stats .grid > .group:nth-child(4) .w-14 { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }

/* Image left, service article right, joined by a directional accent. */
.services-showcase { margin-top: 24px; }
.services-showcase-slide { display: grid; grid-template-columns: minmax(0,1fr) 64px minmax(0,1fr); align-items: center; background: var(--section-background); border: 1px solid #e2e8f0; border-radius: 20px; padding: 16px; }
.services-showcase-photo { border-radius: 14px; overflow: hidden; background: #e2e8f0; }
.services-showcase-photo img { display: block; width: 100%; height: 300px; object-fit: cover; object-position: center 25%; animation: service-arrive .5s ease; }
.services-showcase-connector { display: grid; place-items: center; width: 48px; height: 48px; margin: auto; border-radius: 50%; background: color-mix(in srgb,var(--section-accent) 9%,var(--section-background)); color: var(--section-accent); font-size: 28px; }
.services-showcase-copy { padding: 24px; animation: service-arrive .5s ease; }
.services-showcase-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--section-text); }
.services-showcase-copy h3 { font-size: clamp(24px,2.5vw,34px); font-weight: 700; line-height: 1.2; margin: 12px 0 16px; }
.services-showcase-copy p { font-size: 16px; line-height: 1.7; color: var(--section-text); min-height: 82px; margin: 0 0 24px; }
.services-showcase-link { display: inline-flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 600; color: var(--section-heading); }
.services-showcase-link span { color: var(--section-accent); }
.services-showcase-controls { display: flex; align-items: center; gap: 8px; padding-top: 14px; }
.services-showcase-picker { display: flex; margin-right: auto; }
#app .services-showcase-controls button { min-width: 40px; min-height: 40px; padding: 6px 12px; border: 1px solid #cbd5e1; border-radius: 9px; background: transparent; color: var(--section-heading); cursor: pointer; font-size: 13px; }
#app .services-showcase-picker button { border: 0; padding: 8px; min-width: 28px; display: grid; place-items: center; }
.services-showcase-picker button span { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb,var(--section-text) 35%,transparent); }
.services-showcase-picker button[aria-current=true] span { background: var(--section-accent); width: 18px; border-radius: 6px; }
.services-showcase-count { font-size: 12px; color: var(--section-text); margin-right: 8px; }
.services-showcase :is(a,button):focus-visible { outline: 2px solid var(--section-accent); outline-offset: 3px; }
@keyframes service-arrive { from { opacity: .2; } to { opacity: 1; } }
@media(max-width:767px) {
 .services-showcase-slide { grid-template-columns: 1fr; padding: 12px; }
 .services-showcase-photo img { height: 200px; }
 .services-showcase-connector { width: 36px; height: 36px; transform: rotate(90deg); margin: 10px auto 0; font-size: 23px; }
 .services-showcase-copy { padding: 12px 8px; min-height: 236px; }
 .services-showcase-copy p { min-height: 0; margin-bottom: 20px; }
 .services-showcase-controls { flex-wrap: wrap; gap: 6px; }
 .services-showcase-count { margin-right: 0; }
}
@media(prefers-reduced-motion:reduce) { .services-showcase-photo img,.services-showcase-copy { animation: none; } }

/* The photograph itself points toward the service article. */
.services-showcase-slide { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; }
.services-showcase-connector { display: none; }
.services-showcase-photo { border-radius: 14px 0 0 14px; clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 50%, calc(100% - 36px) 100%, 0 100%); }
@media(max-width:767px) {
    .services-showcase-slide { grid-template-columns: 1fr; gap: 12px; }
    .services-showcase-photo { border-radius: 14px 14px 0 0; clip-path: polygon(0 0,100% 0,100% calc(100% - 22px),50% 100%,0 calc(100% - 22px)); }
}

.services-showcase-menu { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
#app .services-showcase-menu button { flex: 1 1 auto; min-height: 44px; padding: 10px 16px; border: 1px solid #cbd5e1; border-radius: 10px; background: transparent; color: var(--section-heading); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .18s ease, border-color .18s ease; }
#app .services-showcase-menu button:hover { background: color-mix(in srgb,var(--section-accent) 8%,var(--section-background)); border-color: var(--section-accent); }
#app .services-showcase-menu button[aria-current=true] { background: color-mix(in srgb,var(--section-accent) 12%,var(--section-background)); border-color: var(--section-accent); box-shadow: inset 0 -2px var(--section-accent); }
@media(max-width:767px) { .services-showcase-menu { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); } #app .services-showcase-menu button { padding: 10px 8px; font-size: 13px; } }
@media(prefers-reduced-motion:reduce) { #app .services-showcase-menu button { transition: none; } }

/* One integrated frame for service navigation, imagery and article content. */
.services-showcase { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 20px; background: var(--section-background); box-shadow: 0 8px 28px #0f172a08; }
.services-showcase-menu { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 0; margin: 0; padding: 0 12px; background: color-mix(in srgb,var(--section-heading) 3%,var(--section-background)); border-bottom: 1px solid #e2e8f0; }
#app .services-showcase-menu button { position: relative; min-height: 64px; padding: 14px 10px; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 13px; line-height: 1.4; }
#app .services-showcase-menu button::after { content: ''; position: absolute; bottom: 0; left: 18%; right: 18%; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
#app .services-showcase-menu button[aria-current=true] { background: color-mix(in srgb,var(--section-accent) 7%,var(--section-background)); box-shadow: none; }
#app .services-showcase-menu button[aria-current=true]::after { background: var(--section-accent); }
#app .services-showcase-menu button:hover { background: color-mix(in srgb,var(--section-accent) 5%,var(--section-background)); }
.services-showcase-slide { border: 0; border-radius: 0; padding: 20px; }
.services-showcase-controls { padding: 0 20px 16px; }
.services-showcase-menu button:focus-visible { outline-offset: -4px; }
@media(max-width:767px) {
 .services-showcase-menu { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 0 6px; }
 #app .services-showcase-menu button { min-height: 56px; padding: 10px 6px; font-size: 12px; }
 .services-showcase-slide { padding: 12px; }
 .services-showcase-controls { padding: 0 12px 12px; }
}

.hero-full-article { padding: 40px 20px 56px; }
.hero-full-article article { max-width: 820px; margin: auto; }
.hero-article-back { display: inline-block; font-size: 14px; margin-bottom: 28px; color: var(--section-accent); }
.hero-article-category-label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.hero-full-article h1 { font-size: clamp(28px,4vw,46px); font-weight: 700; line-height: 1.2; margin-bottom: 28px; overflow-wrap: anywhere; }
.hero-article-prose p { font-size: 18px; line-height: 1.85; margin: 0 0 22px; white-space: pre-line; overflow-wrap: anywhere; }
.services-showcase[data-transition] :is(.services-showcase-photo img,.services-showcase-copy) { animation-duration: var(--service-transition-duration,500ms); }
.services-showcase[data-transition=none] :is(.services-showcase-photo img,.services-showcase-copy) { animation: none; }
.services-showcase[data-transition=slide] :is(.services-showcase-photo img,.services-showcase-copy) { animation-name: services-slide-in; }
.services-showcase[data-transition=zoom] .services-showcase-photo img { animation-name: campaign-zoom; }
@keyframes services-slide-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* Compact spacing for the services introduction and integrated slideshow. */
.theme-services.home-section-compact { padding-block: 20px; }
.theme-services > .max-w-7xl > .text-center { margin-bottom: 16px; }
.theme-services > .max-w-7xl > .text-center h2 { margin-bottom: 8px; }
.theme-services > .max-w-7xl > .text-center > .h-1 { margin-top: 12px; }
.theme-services .services-showcase { margin-top: 16px; }
.theme-services .services-showcase-slide { padding: 14px; gap: 16px; }
.theme-services .services-showcase-copy { padding: 14px; }
.theme-services .services-showcase-copy h3 { margin: 8px 0 12px; }
.theme-services .services-showcase-copy p { margin-bottom: 16px; }
.theme-services .services-showcase-controls { padding: 0 14px 10px; }
#app .theme-services .services-showcase-menu button { min-height: 52px; padding-block: 10px; }
@media(max-width:767px) {
 .theme-services.home-section-compact { padding-block: 16px; }
 .theme-services .services-showcase-slide { padding: 10px; gap: 8px; }
 .theme-services .services-showcase-copy { padding: 8px; min-height: 0; }
 .theme-services .services-showcase-controls { padding: 0 10px 10px; }
}

/* Offset gradient backing for the arrow-shaped services photography. */
.services-showcase-photo-stack { position: relative; isolation: isolate; min-width: 0; padding: 0 30px 20px 0; }
.services-showcase-photo-backdrop { position: absolute; inset: 20px 0 0 30px; z-index: -1; pointer-events: none; border-radius: 14px 0 0 14px; clip-path: polygon(0 0,calc(100% - 36px) 0,100% 50%,calc(100% - 36px) 100%,0 100%); background: linear-gradient(155deg,rgba(170,198,255,.6),rgba(170,198,255,.28) 40%,rgba(170,198,255,.08) 72%,transparent); }
@media(max-width:767px) {
 .services-showcase-photo-stack { padding: 0 18px 14px 0; }
 .services-showcase-photo-backdrop { inset: 14px 0 0 18px; border-radius: 14px 14px 0 0; clip-path: polygon(0 0,100% 0,100% calc(100% - 22px),50% 100%,0 calc(100% - 22px)); }
}
