/* Let the main wordmark set the width; the editable caption follows that measure. */
.page-curtain{display:none!important}
.brand-wordmark{display:inline-grid;grid-template-columns:max-content;row-gap:2px}
.brand-wordmark .brand-service{contain:inline-size;width:100%;min-width:0;padding:0 0 0 2px;text-align:left;letter-spacing:0;font-size:var(--brand-service-size,11px);line-height:1.5}
.brand-service-text{display:inline-block;white-space:nowrap;font:inherit;letter-spacing:0}

/* These states share their hit areas with desktop hover without opening anything. */
.is-scroll-active .story-photo-hover{transform:scale(1.055) translateX(-.7%)}
.photo-story-pair>.story-photo:nth-child(2).is-scroll-active .story-photo-hover{transform:scale(1.07) translateY(-1.1%)}
.editorial-photo.is-scroll-active>img,.pathway-picture.is-scroll-active img{transform:scale(1.04)}
.opportunity-image.is-scroll-active img{transform:scale(1.045)}
.connection-index a.is-scroll-active::before{transform:scaleX(1);transform-origin:left}
.service-index-links>a.is-scroll-active h2,.service summary.is-scroll-active h3,.service summary.is-scroll-active .service-en{color:var(--accent)}
:is(.service,.faq) summary.is-scroll-active .expand{background:var(--accent);border-color:var(--accent);transform:rotate(90deg)}
:is(.service,.faq) summary.is-scroll-active .expand::before,:is(.service,.faq) summary.is-scroll-active .expand::after{background:white}
.group-ledger>a.is-scroll-active i{box-shadow:0 0 0 17px #cc352e20;transform:scale(1.25)}
.group-ledger>a.is-scroll-active::after{transform:scaleX(1);transform-origin:left}
.text-link.is-scroll-active::after{width:100%}
.contact-jump.is-scroll-active,.back-top.is-scroll-active{background:var(--accent);color:white}
.footer-directory>div:not(:first-child):has(.footer-link.is-scroll-active)::before{transform:scaleY(1)}

/* Keep reading text steady in these two areas; tap/keyboard feedback is separate. */
@media (hover:none),(pointer:coarse),(max-width:700px){
 .group-ledger>a:not(:active):not(:focus-visible) h3{color:inherit}
 .group-ledger>a:is(:active,:focus-visible) h3{color:#e6817c}
 .rich-footer .footer-link:not(:active):not(:focus-visible),
 .rich-footer .footer-link:not(:active):not(:focus-visible) .tracking-text{color:#eee}
 .rich-footer .footer-link:is(:active,:focus-visible),
 .rich-footer .footer-link:is(:active,:focus-visible) .tracking-text{color:#ef625a}
}

@media(max-width:700px){
 .brand-wordmark{row-gap:0}
 .brand-wordmark .brand-name{line-height:1}
 .brand-wordmark .brand-service{line-height:1.2}
 .rich-footer .footer-bottom{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:6px;padding-top:22px}
 .rich-footer .footer-bottom p,.rich-footer .footer-bottom small{margin:0;font-size:12px;line-height:1.7;max-width:100%;overflow-wrap:anywhere}
}
@media(prefers-reduced-motion:reduce){
 .is-scroll-active .story-photo-hover,.editorial-photo.is-scroll-active>img,.pathway-picture.is-scroll-active img,.opportunity-image.is-scroll-active img{transform:none!important}
}
