/* ═══════════════════════════════════════════════════════
   STILLNESS — BASE STYLES
   Reset, typography, global utilities
   ═══════════════════════════════════════════════════════ */

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

/* Отключаем JS-smooth scroll на тач — браузер справится сам через CSS */
@media (hover: none) and (pointer: coarse) {
  html { scroll-behavior: auto; }
}
img, svg { display: block; max-width: 100%; }
button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  touch-action: manipulation;   /* убирает 300ms delay на мобиле */
  -webkit-tap-highlight-color: transparent;
}
a {
  text-decoration: none;
  color: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
ul, ol { list-style: none; }

/* ── Body ────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

/* ── Typography Scale ────────────────────────────────── */
.display-1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8.5rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.display-2 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.01em;
}

.heading-1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.heading-2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.1;
}

.label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.body-lg { font-size: 1.1rem; line-height: 1.7; font-weight: 300; }
.body-sm { font-size: 0.875rem; line-height: 1.65; }
.caption  { font-size: 0.75rem; letter-spacing: 0.05em; }

em { font-style: italic; color: var(--accent); }

/* ── Layout Utilities ────────────────────────────────── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.section-pad {
  padding-top:    clamp(72px, 10vw, 128px);
  padding-bottom: clamp(72px, 10vw, 128px);
}

.section-header { margin-bottom: clamp(40px, 6vw, 64px); }

/* ── Flex / Grid helpers ─────────────────────────────── */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-sm      { gap: var(--space-sm); }
.gap-md      { gap: var(--space-md); }
.gap-lg      { gap: var(--space-lg); }

/* ── Scroll Reveal ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--dur-slower) var(--ease-out),
    transform var(--dur-slower) var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-up   { transform: translateY(28px); }
.reveal-left { transform: translateX(-28px); }

.delay-1 { transition-delay: 80ms; }
.delay-2 { transition-delay: 160ms; }
.delay-3 { transition-delay: 240ms; }
.delay-4 { transition-delay: 320ms; }
.delay-5 { transition-delay: 400ms; }
