/* Small layout refinements; preserve the existing colors and photo grids. */
html { scroll-padding-top: 100px; }
img { max-width: 100%; }
#header nav a { white-space: nowrap; }
#menu-btn { min-width: 24px; }
#menu-btn:focus-visible, a:focus-visible, button:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: 5px;
}
#mobile-menu { overflow-y: auto; padding: 88px 24px 96px; }
body.menu-open { overflow: hidden !important; }
html.dialog-open { overflow: hidden !important; }
#lightbox { z-index: 150 !important; }
#lightbox-caption { letter-spacing: .04em; line-height: 1.8; }
section[id], .case-card[id], #philosophy { scroll-margin-top: 100px; }
.form-status { padding: 16px; margin-bottom: 24px; background: #f4f6fa; border-left: 2px solid #0066cc; font-size: 13px; line-height: 1.9; letter-spacing: .03em; color: #475569; }
.form-status a { color: #0066cc; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
form button:disabled { opacity: .55; cursor: not-allowed; }
@media (min-width: 1024px) and (max-width: 1279px) {
    #header { padding-left: 24px; padding-right: 24px; }
    #header nav { gap: 20px; }
    #header nav a { margin-left: 0 !important; letter-spacing: .1em; }
}
@media (max-width: 767px) {
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)) !important; }
    #header + #mobile-menu + section { min-height: 320px; }
    #header + #mobile-menu + section > div.relative { padding-left: 24px; padding-right: 24px; }
    h1 { font-size: clamp(28px, 8vw, 40px) !important; letter-spacing: .1em !important; overflow-wrap: anywhere; }
    h2, h3 { overflow-wrap: anywhere; }
    #hero-section { min-height: 420px; }
    #mobile-menu { gap: 22px; }
    #mobile-menu > * { margin-top: 0 !important; }
    #mobile-menu > div { padding-top: 12px; }
    #philosophy li { line-height: 2; letter-spacing: .03em; }
    input, select, textarea { font-size: 16px !important; }
    #company-overview { margin-bottom: 64px; }
    .lg\:hidden.fixed.bottom-0 { padding-bottom: env(safe-area-inset-bottom); }
    .lg\:hidden.fixed.bottom-0 a { min-height: 58px; }
}
@media (max-height: 620px) {
    #mobile-menu { justify-content: flex-start; gap: 16px; padding-top: 90px; }
    #mobile-menu > * { margin-top: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
