/* ═══════════════════════════════════════════════════════
   TOULTRA GLOBAL STYLES
   Reset, Typography rules, Layout Scaffolding.
   ═══════════════════════════════════════════════════════ */

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

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

body {
  background: var(--surface-0);
  color: var(--ink-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

/* Clamp scaling for responsive headers */
h1 { font-size: clamp(32px, 6vw, 60px); margin-bottom: var(--space-md); }
h2 { font-size: clamp(24px, 4vw, 42px); margin-bottom: var(--space-md); }
h3 { font-size: clamp(20px, 3vw, 28px); margin-bottom: var(--space-sm); }
h4 { font-size: clamp(16px, 2vw, 20px); margin-bottom: var(--space-xs); }

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

p {
  color: var(--ink-secondary);
  font-size: 16.5px;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.text-small { font-size: 14px; }
.text-caption { font-size: 12px; color: var(--ink-tertiary); }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }

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

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 16px;
}

/* ─── LAYOUT & SCAFFOLDING ─── */
.wrap {
  max-width: var(--max-w-container);
  margin: 0 auto;
  padding: 0 var(--pad-inline-desktop);
}

section {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border-hairline);
}

section.alt {
  background: var(--surface-1);
  border-top-color: transparent;
}

.sec-head {
  max-width: 720px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}

.grid {
  display: grid;
  gap: var(--space-md);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ─── ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

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

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .wrap {
    padding: 0 var(--pad-inline-mobile);
  }
  
  section {
    padding: var(--space-lg) 0;
  }
  
  .sec-head {
    margin-bottom: var(--space-lg);
  }

  p {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; transition: none; }
}
