.footer-inner{align-items:center}
.footer-inner>.footer-links{margin:0;border:0;padding:0;gap:.25rem 1.2rem}
.footer-inner>span:first-child{display:inline-flex;align-items:center;min-height:44px}
.footer-inner>span:nth-child(2){order:3;margin-left:auto}
body>footer{padding-bottom:5rem}
main:has(>footer){padding-bottom:6rem}
.display-trigger{position:fixed;right:1rem;bottom:1rem;z-index:20;border:1px solid #d9e0e5;border-radius:999px;background:#14232e;color:#fff;box-shadow:0 3px 12px #0002;padding:.65rem 1rem;min-height:44px;font:600 .9rem/1.3 Manrope,system-ui,sans-serif;cursor:pointer;max-width:calc(100vw - 2rem)}
.display-trigger[hidden]{display:none}
.display-dialog{border:1px solid #586671;border-radius:12px;background:#fff;color:#14232e;width:min(440px,calc(100vw - 2rem));max-height:calc(100dvh - 2rem);overflow:auto;padding:1.4rem;font:1rem/1.5 Manrope,system-ui,sans-serif}
.display-dialog::backdrop{background:#14232e99}
.display-dialog .dialog-head{display:flex;flex-wrap:wrap;align-items:center;gap:1rem;justify-content:space-between}
.display-dialog h2{font-size:1.4rem;line-height:1.3;margin:0}
.display-dialog button,.display-dialog select{font:inherit;min-height:44px;border:1px solid #586671;border-radius:6px;padding:.4rem .7rem;background:#fff;color:#14232e;cursor:pointer}
.display-dialog .display-field{display:block;margin:1.2rem 0}
.display-dialog .display-field span{display:block;font-weight:600;margin-bottom:.4rem}
.display-dialog select{width:100%}
.display-dialog .display-check{display:flex;align-items:center;gap:.7rem;min-height:44px;margin:.5rem 0;cursor:pointer}
.display-dialog input[type=checkbox]{width:24px;height:24px;flex-shrink:0;accent-color:#2852ef}
.display-dialog .display-note{font-size:.88rem;color:#586671;margin-top:1rem}
body{font-size:1rem!important}
h1,h2,h3{overflow-wrap:anywhere}
.display-dialog{overflow-wrap:anywhere}
.top nav{max-width:100%}
.section>*,.hero>*,.project-head>*{min-width:0;max-width:100%}
p,li,.project-note,.stories summary{overflow-wrap:anywhere}
html[data-contrast=light]{--ink:#000;--muted:#000;--blue:#0000a8;--line:#000;--surface:#fff;--foreground:#000;--accent:#0000a8;color-scheme:light}
html[data-contrast=dark]{--ink:#fff;--muted:#fff;--blue:#ffe066;--line:#fff;--surface:#000;--foreground:#fff;--accent:#ffe066;color-scheme:dark}
html[data-contrast=light] body,html[data-contrast=dark] body{background:var(--surface)!important;color:var(--foreground)!important}
html[data-contrast=light] :is(footer,.legal-main footer,.display-dialog,.display-trigger,.contact-card),html[data-contrast=dark] :is(footer,.legal-main footer,.display-dialog,.display-trigger,.contact-card){background:var(--surface)!important;color:var(--foreground)!important;border-color:var(--foreground)!important}
html[data-contrast=light] :is(p,li,h1,h2,h3,small,.eyebrow,.text-muted,figcaption,.note,.project-note,summary,nav,span),html[data-contrast=dark] :is(p,li,h1,h2,h3,small,.eyebrow,.text-muted,figcaption,.note,.project-note,summary,nav,span){color:var(--foreground)!important}
html[data-contrast=light] :is(a,em,.monogram),html[data-contrast=dark] :is(a,em,.monogram){color:var(--accent)!important}
html[data-contrast=light] :is(button,select,code,.skip-link),html[data-contrast=dark] :is(button,select,code,.skip-link){background:var(--surface)!important;color:var(--foreground)!important;border-color:var(--foreground)!important}
html[data-contrast=light] :focus-visible,html[data-contrast=dark] :focus-visible{outline-color:var(--accent)!important}
html[data-contrast=light] svg text,html[data-contrast=dark] svg text{fill:var(--surface)!important}
html.reading-spacing :is(p,li,figcaption){line-height:2!important;letter-spacing:.03em;word-spacing:.08em}
html.underlined-links a{text-decoration:underline!important;text-underline-offset:.2em}
html.reduce-motion{scroll-behavior:auto!important}
html.reduce-motion *,html.reduce-motion *::before,html.reduce-motion *::after{animation:none!important;transition:none!important}
@media(max-width:650px){.footer-inner{gap:.25rem 1rem}.footer-inner>.footer-links{flex-basis:100%}.footer-inner>span:nth-child(2){margin-left:0;flex-basis:100%}body>footer{padding-bottom:5rem}}
@media print{.display-trigger,.display-dialog{display:none!important}}
