/* Text links use fine lines and small arrow movement; controls retain their button treatment. */
@media(min-width:801px){
 .header nav>a,.text-link,.story-next,.case-toc a,footer>a,.story-step,.model-buttons button,.lightbox-close,.lightbox-controls button,.photo-zoom,.case-cover-label{transition:color .18s ease,background-color .18s ease,box-shadow .18s ease,border-color .18s ease}
 .header nav>a:not(.nav-contact):is(:hover,:focus-visible),.header.is-scrolled nav>a:not(.nav-contact):is(:hover,:focus-visible){color:inherit;background:transparent;box-shadow:none}


 :is(.text-link,.story-next,.case-toc a):is(:hover,:focus-visible){color:inherit;background:transparent;border-color:currentColor;box-shadow:none}
 :is(.story-next,.case-toc a):is(:hover,:focus-visible){text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.35em}
 .header nav>a:not(.nav-contact):focus-visible::after{transform:scaleX(1)}
 .hero-intro .scroll-cue{width:fit-content;margin-inline:auto;padding-inline:10px;border-radius:4px;transition:color .18s ease,background-color .18s ease}
 .hero-intro .scroll-cue:is(:hover,:focus-visible){color:inherit;background:transparent}
 .hero-intro .scroll-cue:is(:hover,:focus-visible)>span:last-child{border-color:currentColor}
 .service-list summary:is(:hover,:focus-visible) .service-name-line>span:first-child{color:var(--blue);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.3em}
 .story-bottom .story-step:is(:hover,:focus-visible),.model-buttons button:not(:disabled):is(:hover,:focus-visible){background:var(--blue);color:var(--yellow);border-color:var(--blue)}
 .story-bottom .story-step:is(:hover,:focus-visible){box-shadow:7px 0 0 var(--blue),-7px 0 0 var(--blue);border-radius:3px}
 .gallery-trigger:is(:hover,:focus-visible) .photo-zoom,.case-cover:is(:hover,:focus-visible) .case-cover-label{background:var(--blue);color:var(--yellow)}
 .case-lightbox button:is(:hover,:focus-visible){color:var(--yellow);border-color:var(--yellow)}
 footer>a:is(:hover,:focus-visible){color:var(--yellow);text-decoration:underline;text-underline-offset:5px}
 .hero-intro .scroll-cue:focus-visible,:is(.text-link,.story-next,.case-toc a):focus-visible,.story-bottom .story-step:focus-visible,.model-buttons button:focus-visible,.gallery-trigger:focus-visible,.case-cover:focus-visible{outline-color:var(--blue)}
}
@media(forced-colors:active){
 .header nav>a:is(:hover,:focus-visible),:is(.text-link,.story-next,.case-toc a):is(:hover,:focus-visible),.hero-intro .scroll-cue:is(:hover,:focus-visible){color:HighlightText;background:Highlight;box-shadow:none}
}

@media(min-width:801px) and (prefers-reduced-motion:no-preference){
 .header nav>a:not(.nav-contact)::after{transition:transform .28s cubic-bezier(.22,1,.36,1)}
 :is(.text-link,.story-next)>[aria-hidden="true"],.hero-intro .scroll-cue>span:last-child{display:inline-block;transition:transform .25s cubic-bezier(.22,1,.36,1)}
 :is(.text-link,.story-next):is(:hover,:focus-visible)>[aria-hidden="true"]{transform:translate(3px,-3px)}
 .hero-intro .scroll-cue:is(:hover,:focus-visible)>span:last-child{transform:translateY(3px)}
}

/* Stable yellow/deep-blue contrast wins over generic subpage hover rules. */
:is(.header,.header.is-scrolled) nav>.nav-contact{background:#f8e6a0;color:#18345b;box-shadow:inset 0 0 0 1px transparent;scale:1}
:is(.header,.header.is-scrolled) nav>.nav-contact:is(:hover,:focus-visible,:active){background:#f8e6a0;color:#18345b;box-shadow:inset 0 0 0 1px #2e5aa7;scale:1}
:is(.header,.header.is-scrolled) nav>.nav-contact>span{color:inherit;background:transparent}
:is(.header,.header.is-scrolled) nav>.nav-contact:focus-visible{outline:2px solid #18345b;outline-offset:4px}
@media(prefers-reduced-motion:no-preference){
 :is(.header,.header.is-scrolled) nav>.nav-contact{transition:box-shadow .2s}
 :is(.header,.header.is-scrolled) nav>.nav-contact>span{transition:transform .25s cubic-bezier(.22,1,.36,1)}
 :is(.header,.header.is-scrolled) nav>.nav-contact:is(:hover,:focus-visible)>span{transform:translate(3px,-3px)}
 :is(.header,.header.is-scrolled) nav>.nav-contact:active>span{transform:translate(1px,-1px)}
}
@media(forced-colors:active){:is(.header,.header.is-scrolled) nav>.nav-contact,:is(.header,.header.is-scrolled) nav>.nav-contact:is(:hover,:focus-visible,:active){background:ButtonFace;color:ButtonText;border:1px solid ButtonText;box-shadow:none}}
