/* ── Base & Utilities ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal[data-reveal="hidden"] {
  opacity: 0;
  transform: translateY(32px);
}
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(32px); }
  .reveal.visible { opacity: 1; transform: translateY(0); }
}

/* ── Floating Animation ── */
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.05); }
}
.animate-float {
  animation: float 3.5s ease-in-out infinite;
}

/* ── Mobile Menu Animation ── */
.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}
#menu-btn[aria-expanded="true"] .menu-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
#menu-btn[aria-expanded="true"] .menu-line:nth-child(2) {
  opacity: 0;
}
#menu-btn[aria-expanded="true"] .menu-line:nth-child(3) {
  width: 1.5rem;
  transform: translateY(-4px) rotate(-45deg);
}

/* ── Header Scroll State ── */
#site-header.scrolled {
  box-shadow: 0 4px 20px rgba(12,12,14,.08);
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f7f7f8; }
::-webkit-scrollbar-thumb { background: #ff6b4a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #e83611; }

/* ── Focus Visible ── */
:focus-visible {
  outline: 2px solid #ff6b4a;
  outline-offset: 2px;
}

/* ── Selection ── */
::selection {
  background: #ff4f2b;
  color: #fff;
}
