.expertise-single {
    --expertise-width: 1344px;
    --expertise-space: clamp(72px, 6.25vw, 120px);
    background: radial-gradient(ellipse at 105% 40%, rgba(80,80,200,.16), transparent 35%), var(--bg-base);
    overflow: clip;
}
.expertise-single__inner { width: min(var(--expertise-width), calc(100% - 64px)); margin-inline: auto; }
:where(.expertise-single) section { padding: 0; }
.expertise-single :is(h1,h2,h3,p,a) { overflow-wrap: anywhere; }
.expertise-single h1 { font-size: clamp(36px, 2.71vw, 52px); line-height: 1.12; font-weight: 600; max-width: 620px; }
.expertise-single h2 { font-size: clamp(30px, 2.5vw, 48px); line-height: 1.2; font-weight: 600; }
.expertise-single h3 { font-size: 22px; line-height: 1.25; font-weight: 550; }
.expertise-single p { font-size: 16px; line-height: 1.65; }
.expertise-single .btn { margin-top: 24px; min-height: 44px; padding: 12px 28px; font-size: 14px; white-space: normal; }
.expertise-single :is(a,button):focus-visible { outline: 2px solid var(--accent-yellow); outline-offset: 5px; }
.expertise-single__compact { display: none; }
.expertise-single__hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; padding-block: calc(var(--nav-height) + 96px) 80px; }
.expertise-single__hero-copy > p { font-size: 20px; line-height: 1.6; margin-top: 24px; max-width: 690px; }
.expertise-single__hero-image { width: calc(100% + 140px); position: relative; border-radius: 26px; overflow: hidden; }
.expertise-single__hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(21,21,52,.85)); pointer-events: none; }
.expertise-single__hero-image img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; }
.expertise-single__hero--text-only { grid-template-columns: 1fr; min-height: 600px; }
.expertise-single__topics { background: var(--glass-bg); padding-block: 30px; }
.expertise-single__topics ol { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; list-style: none; }
.expertise-single__topics li { display: flex; gap: 6px; align-items: center; border: 1px solid var(--glass-border); border-radius: 100px; min-height: 38px; padding: 8px 14px; font-size: 12px; }
.expertise-single__topics li span { color: var(--text-2); }
.expertise-single__approach { display: grid; grid-template-columns: .9fr 1.1fr; gap: 120px; padding-top: var(--expertise-space); }
.expertise-single .expertise-single__lead { font-size: 24px; line-height: 1.4; font-weight: 550; color: var(--text-1); margin-bottom: 20px; }
.expertise-single__steps { list-style: none; }
.expertise-single__steps li { display: grid; grid-template-columns: 90px 1fr; gap: 60px; position: relative; padding-bottom: 42px; }
.expertise-single__steps li::before { content: ''; position: absolute; top: 14px; bottom: -14px; left: 120px; width: 1px; background: var(--glass-border-hover); }
.expertise-single__steps li:last-child::before { bottom: 42px; }
.expertise-single__steps li::after { content: ''; position: absolute; left: 114px; top: 12px; width: 13px; height: 13px; border-radius: 50%; background: var(--gradient-accent); }
.expertise-single__step-number { font-size: 64px; line-height: 1; color: var(--glass-border-hover); font-weight: 700; }
.expertise-single__steps p { margin-top: 12px; }
.expertise-single__stories { max-width: 1064px; margin-top: var(--expertise-space); }
.expertise-single__story { display: grid; grid-template-columns: 440fr 540fr; align-items: center; gap: 96px; margin-bottom: var(--expertise-space); }
.expertise-single__story:nth-child(odd) .expertise-single__story-copy { order: 2; }
.expertise-single__story img { width: 100%; height: auto; aspect-ratio: 440 / 324; object-fit: cover; border-radius: 20px; }
.expertise-single__story p { margin-top: 24px; }
.expertise-single__story--text-only { grid-template-columns: 1fr; max-width: 740px; }
.expertise-single__story--text-only:nth-child(even) { margin-left: auto; }
.expertise-single__principle { display: grid; grid-template-columns: 520fr 700fr; align-items: center; gap: 120px; margin-block: var(--expertise-space); }
.expertise-single__principle aside { border-radius: 24px; background: var(--glass-bg-hover); padding: 56px; }
.expertise-single__principle aside .section-label { color: var(--accent-pink); }
.expertise-single__principle aside p:last-child { margin-bottom: 0; }
.expertise-single__index { padding-top: 24px; }
.expertise-single__index h2 { font-size: 40px; margin-bottom: 32px; }
.expertise-single__cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.expertise-single__card { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 52px 48px; min-height: 300px; border-radius: 8px; background: var(--glass-bg); }
.expertise-single__card-toggle { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; width: 100%; opacity: 1; }
.expertise-single__card-toggle > span { display: block; }
.expertise-single__index-number { font-size: 12px; letter-spacing: .12em; color: var(--accent-pink); margin-bottom: 14px; }
.expertise-single__card h3 { font-size: 20px; }
.expertise-single__card p { font-size: 14px; line-height: 1.5; margin-top: 12px; }
.expertise-single__card-body a { display: inline-block; margin-top: 12px; color: var(--accent-pink); }
.expertise-single__card-toggle .expertise-single__card-control { display: none; }
.expertise-single__card-body[hidden] { display: none; }
.expertise-single__cta { text-align: center; padding-top: 100px; }
.expertise-single__cta h2 { max-width: 1200px; margin: 0 auto 24px; font-size: 40px; }
.expertise-single__cta p { font-size: 20px; }
.expertise-single__cta-middle { background: var(--gradient-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.expertise-single__cta .cta-section-curve { margin-top: 76px; }
@media (max-width: 1600px) {
    .expertise-single__hero-image { width: 100%; }
    .expertise-single__hero { gap: 60px; }
    .expertise-single__card { padding: 36px 28px; }
}
@media (max-width: 1024px) {
    .expertise-single__approach, .expertise-single__principle { gap: 48px; }
    .expertise-single__steps li { grid-template-columns: 58px 1fr; gap: 36px; }
    .expertise-single__steps li::before { left: 74px; }
    .expertise-single__steps li::after { left: 68px; }
    .expertise-single__step-number { font-size: 48px; }
    .expertise-single__story { gap: 48px; }
    .expertise-single__cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 768px) {
    .expertise-single__inner { width: calc(100% - 36px); }
    .expertise-single__wide { display: none; }
    .expertise-single__compact { display: block; }
    .expertise-single h1 { font-size: 28px; line-height: 1.4; max-width: 340px; }
    .expertise-single h2 { font-size: 30px; }
    .expertise-single p { font-size: 14px; line-height: 1.6; }
    .expertise-single__hero { grid-template-columns: 1fr; gap: 40px; padding-block: calc(var(--nav-height) + 40px) 28px; min-height: auto; }
    .expertise-single__hero-copy > p { font-size: 14px; line-height: 1.8; margin-top: 16px; }
    .expertise-single .btn { min-height: 50px; }
    .expertise-single__hero-image { border-radius: 18px; }
    .expertise-single__topics { background: transparent; padding-block: 0; }
    .expertise-single__topics ol { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 8px; }
    .expertise-single__topics li { min-height: 40px; }
    .expertise-single__topics li:nth-child(n+3) { grid-column: 1 / -1; justify-self: start; }
    .expertise-single__approach { grid-template-columns: 1fr; gap: 48px; padding-top: 64px; }
    .expertise-single .expertise-single__lead { font-size: 18px; line-height: 1.45; }
    .expertise-single__governance h2 { font-size: 26px; margin-bottom: 32px; }
    .expertise-single__steps li { display: block; padding: 0 0 28px 25px; }
    .expertise-single__steps li::before { content: '✓'; background: none; color: var(--accent-pink); top: 0; left: 0; width: auto; }
    .expertise-single__steps li::after, .expertise-single__step-number { display: none; }
    .expertise-single__steps h3 { font-size: 18px; line-height: 1.35; }
    .expertise-single__steps p { margin-top: 10px; }
    .expertise-single__stories { margin-top: 32px; }
    .expertise-single__story { display: flex; flex-direction: column; gap: 28px; margin-bottom: 56px; }
    .expertise-single__story:nth-child(odd) .expertise-single__story-copy { order: 0; }
    .expertise-single__story img { border-radius: 18px; }
    .expertise-single__story p { margin-top: 20px; }
    .expertise-single__principle { display: none; }
    .expertise-single__index { padding-top: 8px; }
    .expertise-single__index h2 { font-size: 26px; margin-bottom: 20px; }
    .expertise-single__cards { display: block; overflow: hidden; border: 1px solid var(--glass-border); border-radius: 16px; }
    .expertise-single__card { display: block; min-height: 0; border-radius: 0; padding: 14px 16px; }
    .expertise-single__card + .expertise-single__card { border-top: 1px solid var(--glass-border); }
    .expertise-single__card h3 { font-size: 16px; }
    .expertise-single__card-toggle { position: relative; padding-right: 32px; cursor: pointer; }
    .expertise-single__index-number { font-size: 11px; margin-bottom: 4px; }
    .expertise-single__card-toggle:not(:disabled) .expertise-single__card-control { display: grid; place-items: center; position: absolute; right: 0; top: 6px; width: 24px; height: 24px; border: 1px solid var(--glass-border-hover); border-radius: 50%; font-size: 14px; }
    .expertise-single__card-control::before { content: '+'; }
    .expertise-single__card-toggle[aria-expanded='true'] .expertise-single__card-control::before { content: '−'; }
    .expertise-single__card p { font-size: 12px; line-height: 1.5; margin-top: 8px; }
    .expertise-single__cta { padding-block: 56px 100px; }
    .expertise-single__cta h2 { font-size: 28px; line-height: 1.08; max-width: 354px; }
    .expertise-single__cta p { font-size: 14px; }
    .expertise-single__cta-middle { background: none; color: inherit; }
    .expertise-single__cta-end { background: var(--gradient-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .expertise-single__cta .cta-section-curve { display: none; }
}
/* The compact footer composition is specific to the Expertise template. */
body:has(.expertise-single) #site-footer .footer-grid { grid-template-columns: minmax(300px,2fr) repeat(3,1fr); }
@media (max-width: 768px) {
    body:has(.expertise-single) #site-footer .footer-grid { grid-template-columns: 1fr; }
    body:has(.expertise-single) #site-footer .footer-logo-wrap { display: flex; }
    body:has(.expertise-single) #site-footer .footer-col :is(a,span) { display: block; }
    body:has(.expertise-single) #site-footer .footer-col { order: initial; }
    body:has(.expertise-single) #site-footer .footer-col h5 { margin-bottom: 16px; }
    body:has(.expertise-single) #site-footer { padding-inline: 18px; }
}
