/* ═══════════════════════════════════════════════
   ELITE — Base Styles
   Reset, Typography, Global
   ═══════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

button, input, textarea {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

button { cursor: pointer; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--black);
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; font-weight: 500; }

p {
  max-width: 60ch;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.8;
}

/* ── Utility Classes ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.overline {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-padding {
  padding: var(--space-xl) var(--space-md);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Selection ── */
::selection {
  background: var(--accent-tint);
  color: var(--black);
}

/* ── Focus ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Lazy Images ── */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
img[loading="lazy"].loaded,
img[loading="lazy"][complete] {
  opacity: 1;
}
