/* ── Base & Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { min-height: 100vh; overflow-x: hidden; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Navigation ── */
#nav { background: transparent; }
#nav.scrolled {
    background: rgba(254, 253, 251, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.04);
}

/* ── Mobile Menu ── */
#mobile-menu.open { opacity: 1; pointer-events: all; }
#mobile-menu.closed { opacity: 0; pointer-events: none; }
.mobile-link { transition: opacity 0.3s, transform 0.3s; }
.mobile-link:hover { opacity: 0.7; }

/* ── Menu Toggle ── */
#menu-toggle:hover .menu-line { opacity: 0.6; }
#menu-toggle.active .menu-line:nth-child(1) { transform: translateY(4px) rotate(45deg); }
#menu-toggle.active .menu-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
#menu-toggle.active .menu-line:nth-child(3) { transform: translateY(-4px) rotate(-45deg); width: 1.5rem; }

/* ── Reveal Animations ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    img { transition: none !important; }
}

/* ── Menu List Item Hover ── */
#menu li {
    border-bottom: 1px solid rgba(123, 45, 59, 0.06);
    padding-bottom: 1rem;
}
#menu li:last-child { border-bottom: none; }

/* ── Form Focus ── */
input:focus, textarea:focus {
    border-bottom-color: rgba(123, 45, 59, 0.5) !important;
}

/* ── Selection ── */
::selection { background: rgba(123, 45, 59, 0.12); color: #3a1219; }
</style>
