/* ── Reset & Base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { display: block; max-width: 100%; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }

/* ── Hero Gradient ──────────────────────────────── */
.hero-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(6, 95, 70, 0.6) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(5, 150, 105, 0.4) 0%, transparent 55%),
    radial-gradient(ellipse 90% 70% at 50% 50%, rgba(2, 78, 59, 0.85) 0%, rgba(2, 44, 34, 0.95) 50%, #022c22 100%);
}

/* ── Hero Dot Pattern ───────────────────────────── */
.hero-pattern {
  background-image: radial-gradient(rgba(254, 253, 248, 0.8) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ── About Grid Pattern ─────────────────────────── */
.about-grid {
  background-image:
    linear-gradient(rgba(254,253,248,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(254,253,248,0.5) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ── Scroll Reveal ──────────────────────────────── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-hidden {
  opacity: 0;
  transform: translateY(28px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ── Stagger children ───────────────────────────── */
.reveal-group > .reveal { transition-delay: calc(var(--i, 0) * 0.08s); }

/* ── Header ─────────────────────────────────────── */
#site-header {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
#site-header.scrolled {
  background: rgba(254, 253, 248, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(26,26,26,0.08);
}

/* ── Mobile Menu Animation ──────────────────────── */
#menu-toggle[aria-expanded="true"] #bar-a {
  transform: rotate(45deg) translate(3px, 3px);
}
#menu-toggle[aria-expanded="true"] #bar-b {
  opacity: 0;
}
#menu-toggle[aria-expanded="true"] #bar-c {
  transform: rotate(-45deg) translate(3px, -3px);
  width: 1.5rem;
}

/* ── Smooth Focus ───────────────────────────────── */
a:focus-visible, button:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Selection ──────────────────────────────────── */
::selection { background: rgba(5, 150, 105, 0.2); }

/* ── Subtle card hover ──────────────────────────── */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.12);
}
