/* Shared refinements for public pages. */
:root{--ink:#111c34;--muted:#536178;--line:#dce4f0;--radius:1rem}
html{scroll-padding-top:6rem}
body{font-size:16px;line-height:1.65;-webkit-font-smoothing:antialiased}
::selection{background:#c9d9ff;color:#12234d}
:focus-visible{outline:3px solid #285ee7;outline-offset:4px}
.skip-link{position:fixed;z-index:100;top:.75rem;left:.75rem;transform:translateY(-200%);padding:.75rem 1rem;border-radius:.65rem;background:#12234d;color:#fff;font-weight:700}
.skip-link:focus{transform:translateY(0)}
.shell{width:min(calc(100% - 3rem),72rem)}
.section{padding-block:clamp(4rem,7vw,6.5rem)}
h1,h2,h3{text-wrap:balance;letter-spacing:-.03em}
h1{font-size:clamp(2.6rem,5vw,4.75rem);line-height:1.08}
h2{font-size:clamp(2rem,3.6vw,3.15rem);line-height:1.12}
.button{min-height:48px;padding:.8rem 1.25rem;border-radius:.8rem}
.button:focus-visible,.portfolio-card:focus-visible,.service-card:focus-visible{outline-offset:4px}
.site-nav{max-width:48rem;width:min(100%,48rem);min-height:60px;padding:.45rem .65rem;box-shadow:0 10px 30px #182b4e12}
.site-nav__left>a,.site-nav__right>a:not(.button),.service-menu summary,.site-nav__mobile summary{min-height:44px;display:inline-flex;align-items:center}
.site-nav__mobile>div{width:min(20rem,calc(100vw - 2.5rem));padding:.75rem;gap:.15rem}
.site-nav__mobile>div span{padding:.65rem .7rem .3rem;color:#66758b;font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.site-nav__mobile>div a{display:flex;align-items:center;min-height:44px;padding:.55rem .7rem}
.hero--home{padding:clamp(6rem,11vw,10rem) 0 clamp(5rem,9vw,8rem);background-position:center}
.hero__content{max-width:72rem;text-align:left}
.hero h1{max-width:17ch;margin:0;font-size:clamp(3.15rem,5.7vw,5.35rem);line-height:1.05}
.hero__lead{max-width:38rem;margin:1.5rem 0 0;font-size:1.1rem}
.hero .button-row{justify-content:flex-start;margin-top:2rem}
.hero__note{margin-top:1rem}
.clients__intro h2{max-width:29ch}
.client-logo-card{border-radius:1rem;box-shadow:none}
.stat-card{border-radius:1rem;box-shadow:none}
.section-heading h2{max-width:26ch;margin-inline:auto}
.section-heading--row h2{margin-inline:0}
.service-card,.portfolio-card,.insight-card,.case-card,.case-stat{border-radius:1rem;box-shadow:none}
.service-card{display:flex;flex-direction:column;gap:.35rem;padding:1.35rem}
.service-card__visual{margin-bottom:1rem}
.service-card small{min-height:0;margin-bottom:1.2rem;line-height:1.55}
.service-card .text-link{margin-top:auto}
.portfolio-grid{align-items:stretch}
.portfolio-card{display:flex;flex-direction:column}
.portfolio-card__image{height:auto;min-height:11rem;aspect-ratio:16/10}
.portfolio-card__body{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:.35rem}
.portfolio-card__body h3,.portfolio-card__body p{margin:0}
.portfolio-card__body small{line-height:1.55}
.portfolio-filters{gap:.4rem;padding:.5rem;border-radius:1rem}
.portfolio-filters a{display:inline-flex;align-items:center;min-height:44px;padding:.55rem .9rem;border-radius:.7rem;font-weight:700}
.portfolio-empty{padding:clamp(1.5rem,4vw,3rem);border:1px solid var(--line);border-radius:1rem;background:#fff}
.portfolio-empty p{color:var(--muted)}
.page-hero{padding:clamp(6rem,9vw,8rem) 0 clamp(4rem,6vw,5.5rem)}
.page-hero p:not(.eyebrow){max-width:42rem;margin-inline:auto}
.case-study__intro{gap:.7rem}
.case-study__band .case-study__hero{width:100%;max-width:56rem;max-height:min(34rem,65vh);object-fit:contain;border-radius:1rem}
.case-study__context>p{white-space:pre-line}
.case-study__body{max-width:70ch}
.case-study__body p,.case-study__body li{overflow-wrap:anywhere}
.case-figure{border-radius:1rem}
.case-figure>div{height:clamp(14rem,23vw,20rem)}
.contact-section>div{border-radius:1.25rem;padding:clamp(2rem,5vw,4rem)}
.site-footer{padding-bottom:max(2.5rem,env(safe-area-inset-bottom))}
@media(max-width:900px) and (min-width:721px){.portfolio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){
 .shell{width:min(calc(100% - 2.5rem),72rem)}
 .section{padding-block:4rem}
 .site-header{top:.5rem;padding-inline:.75rem}
 .site-nav{grid-template-columns:minmax(0,1fr) auto auto;gap:.25rem;min-height:60px;padding:.4rem .5rem}
 .site-logo{justify-self:start;min-width:0}.site-logo img{max-width:100%;height:1.4rem}
 .site-nav__right{padding:0}.site-nav__right>a:not(.button){display:none}.site-nav__right .button{min-height:44px;padding:.6rem .7rem;font-size:.75rem;white-space:nowrap}
 .site-nav__mobile summary{padding:.55rem .65rem;font-size:.8rem;font-weight:700}
 .site-nav__mobile>div{right:0;top:3rem}
 .hero--home{padding:5rem 0 4.5rem;background-position:60% center}
 .hero__content{text-align:left}.hero h1{font-size:clamp(2.45rem,9.7vw,3.5rem);max-width:15ch;line-height:1.08}
 .hero__lead{font-size:1rem;line-height:1.7}.hero .button-row{gap:.65rem}
 .hero .button-row .button{flex:1 1 auto}
 .clients__intro{text-align:left}.clients__intro h2{font-size:clamp(1.65rem,7vw,2.15rem);margin-inline:0}.clients__intro>.text-link{margin-top:.75rem}
 .stats{gap:.5rem}.stat-card{padding:.8rem .45rem}.stat-card strong{font-size:1.5rem}.stat-card span{font-size:.7rem;line-height:1.35}
 .portfolio-filters{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}.portfolio-filters a{flex:none;white-space:nowrap}
 .page-hero{padding:5rem 0 4rem}.page-hero h1{font-size:clamp(2.3rem,9vw,3.2rem)}
 .case-study__intro{align-items:flex-start;text-align:left}.case-study__intro p:not(.eyebrow){margin-inline:0}.case-study__intro .case-study__summary{margin-inline:0}.case-study__band .case-study__hero{max-height:22rem;margin-top:1.25rem}
 .case-study__context{gap:1rem}.case-study__stats{padding-bottom:0}
 .case-figure>div{height:17rem}
 .contact-section>div{text-align:left}.contact-section p:not(.eyebrow){margin-inline:0}
 .site-footer__inner{align-items:flex-start;text-align:left}.site-footer__inner>div{justify-content:flex-start}
}
@media(max-width:360px){.site-nav__right .button{font-size:.7rem;padding-inline:.55rem}.site-logo img{height:1.2rem}.hero h1{font-size:2.35rem}.hero .button-row .button{width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.service-card,.portfolio-card,.insight-card,.button{transition:none}}

/* Content stays readable even if a scroll observer is delayed or unavailable. */
html.js [data-reveal],html.js [data-stagger] > *{opacity:1;transform:none}
@media (prefers-reduced-motion:no-preference){
 html.js [data-reveal].is-visible{animation:content-arrive .65s cubic-bezier(.16,1,.3,1) both}
 html.js [data-reveal="left"].is-visible{animation-name:content-arrive-left}
 html.js [data-reveal="right"].is-visible{animation-name:content-arrive-right}
 html.js [data-reveal="scale"].is-visible{animation-name:content-arrive-scale}
 html.js [data-stagger].is-visible > *{animation:content-arrive .55s cubic-bezier(.16,1,.3,1) both}
 html.js [data-stagger].is-visible > :nth-child(2){animation-delay:.08s}html.js [data-stagger].is-visible > :nth-child(3){animation-delay:.16s}html.js [data-stagger].is-visible > :nth-child(4){animation-delay:.24s}
}
@keyframes content-arrive{from{opacity:.8;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes content-arrive-left{from{opacity:.8;transform:translateX(-12px)}to{opacity:1;transform:none}}
@keyframes content-arrive-right{from{opacity:.8;transform:translateX(12px)}to{opacity:1;transform:none}}
@keyframes content-arrive-scale{from{opacity:.8;transform:scale(.985)}to{opacity:1;transform:none}}

@media (max-width:720px){.portfolio-filters{flex-wrap:wrap;overflow:visible}}
@media (prefers-reduced-motion:reduce){.client-marquee{overflow-x:auto;overscroll-behavior-x:contain}.client-logo-card[aria-hidden="true"]{display:none}}

/* Portfolio: editorial project introductions and clearer story sections. */
.case-study__band{background:#edf3fa;text-align:left;overflow:hidden}
.case-study__intro{display:block;max-width:72rem}
.case-study__intro--visual{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:center;gap:clamp(2rem,5vw,5rem)}
.case-study__intro-copy{min-width:0;max-width:38rem}
.case-study__intro-copy>.text-link{display:inline-block;margin-bottom:2.5rem}
.case-study__intro-copy h1{margin-bottom:.65rem;font-size:clamp(2rem,3.6vw,3.4rem);overflow-wrap:break-word}
.case-study__intro-copy .case-study__summary{margin:1rem 0;color:#40516b;line-height:1.65}
.case-study__intro-copy .case-study__role{margin-top:1.2rem}
.case-study__hero-frame{padding:clamp(.65rem,2vw,1.25rem);border:1px solid #d6e1ef;border-radius:1.4rem;background:#fff;box-shadow:0 24px 55px #213b5a1a}
.case-study__band .case-study__hero{display:block;width:100%;max-height:32rem;margin:0;padding:0;border:0;border-radius:.75rem;background:#f5f7fa;box-shadow:none;object-fit:contain}
.case-study__section-heading{margin-bottom:2rem}.case-study__section-heading h2{margin:0}
.case-study__scope .case-card{position:relative;border-top:3px solid #2c61dc}
.case-study__gallery .case-figure>div{overflow:hidden}
.portfolio-card__action{display:flex;align-items:center;gap:.45rem;margin-top:auto;padding-top:1rem;color:#1d4ed8;font-size:.85rem;font-weight:750}
.portfolio-card__action span{transition:transform .2s ease}.portfolio-card:hover .portfolio-card__action span,.portfolio-card:focus-visible .portfolio-card__action span{transform:translateX(.3rem)}
@media(max-width:720px){.case-study__intro--visual{grid-template-columns:1fr;gap:2rem}.case-study__intro-copy>.text-link{margin-bottom:1.5rem}.case-study__band .case-study__hero{max-height:22rem;margin:0}.case-study__hero-frame{padding:.65rem}.case-study__section-heading{margin-bottom:1.4rem}}
@media(prefers-reduced-motion:reduce){.portfolio-card__action span{transition:none}}
