/* ═══════════════════════════════════════════════════════
   GLOBAL — reset, base, typography, scrollbar
   ═══════════════════════════════════════════════════════ */

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base */
html {
  /* smooth scrolling handled via JS to avoid DevTools resize jumps */
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
}

/* Scrollbar */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 2px; }

/* Selection */
::selection {
  background: rgba(224,90,26,0.3);
  color: var(--white);
}

/* Focus ring — visible only for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* ── Page load fade-in ── */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body {
  animation: pageFadeIn 0.5s ease both;
}

/* ── Scroll reveal ── */
.sr {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity  0.7s ease,
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--sr-delay, 0ms);
  will-change: opacity, transform;
}
.sr.in-view {
  opacity: 1;
  transform: none;
}

/* ── Subtle glow pulse for accent elements ── */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224,90,26,0); }
  50%       { box-shadow: 0 0 20px 4px rgba(224,90,26,0.18); }
}

/* ── Shimmer for loading states ── */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* ── Fade up for staggered children ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* ── Counter animation helper ── */
.count-ready { display: inline-block; }
