/* ============================================================
   BASE — base.css
   Reset, html/body, typography, utility classes, keyframes.
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Utilities ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(2rem, 6vw, 4rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ── Section defaults ── */
.section {
  padding: clamp(5rem, 10vw, 9rem) 0;
  position: relative;
}

.section-dark {
  background: var(--bg-secondary);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--accent-copper);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--accent-copper);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  max-width: 700px;
}

.section-heading em {
  font-style: italic;
  color: var(--accent-copper);
}

.section-intro {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 3.5rem;
}

/* ── Keyframe animations ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes preloaderSlide {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(350%);
  }
}

@keyframes scrollDown {
  0% {
    top: -50%;
  }

  100% {
    top: 150%;
  }
}

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

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