/* Progressive enhancements shared by all pages. Content remains usable without them. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-wrap: break-word; }
.nav { flex-wrap: wrap; }
.nav-actions { flex-wrap: wrap; }
img, picture { max-width: 100%; }
picture { display: block; }
button, input, select, textarea { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
input, select, textarea { font-size: max(16px, 1em); }
.profile-photo { margin: 0 0 32px; max-width: 440px; }
.profile-photo picture { border-radius: 12px; overflow: hidden; background: var(--panel); }
.profile-photo img { display: block; width: 100%; height: auto; aspect-ratio: 800 / 1057; object-fit: cover; }
.profile-photo figcaption { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; padding-top: 14px; font-size: 14px; }
.profile-photo figcaption span { color: var(--muted); font-size: 11px; }
.contact-photo { width: 150px; margin: 0 auto 32px; }
.contact-photo img { display: block; width: 150px; height: 150px; object-fit: cover; object-position: 50% 25%; border-radius: 50%; border: 1px solid var(--line); }
.about-grid > *, .case-grid > *, .case-layout > *, .section-head > * { min-width: 0; }
article { min-width: 0; }
pre, #brief-text { white-space: pre-wrap; overflow-wrap: anywhere; }
:target { scroll-margin-top: 18px; }
@media (hover: none) { .button:hover { transform: none; } }
@media (max-width: 760px) {
 .profile-photo { max-width: 100%; }
 .nav nav.open { max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); overflow-y: auto; overscroll-behavior: contain; }
 .actions { flex-wrap: wrap; }
 .button { max-width: 100%; white-space: normal; }
 .case-header h1 { font-size: clamp(32px, 9.5vw, 43px); }
}
@media (max-height: 500px) and (orientation: landscape) {
 .nav { position: relative; }
 html { scroll-padding-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation: none !important; }
}
@media (forced-colors: active) {
 .button, .project, input, select, textarea, .menu-toggle { border: 1px solid ButtonText; }
 a { text-decoration: underline; }
 .hero-art, .case-visual { display: none; }
}
@media print {
 .profile-photo { max-width: 220px; }
 .contact-photo, .hero-art, .filters, .portfolio-search, #brief-form { display: none !important; }
 .nav { position: static; }
 .section { break-inside: auto; }
 h1, h2, h3 { break-after: avoid; }
 img { break-inside: avoid; }
}
