/* ── Brand tokens ──────────────────────────────────────────── */
:root {
  --blue:   #0052E5;
  --cream:  #FAF7F2;
  --sand:   #E8DFD0;
  --slate:  #2D3A3A;
  --rust:   #C4714A;
  --pine:   #4A6741;
  --white:  #FFFFFF;

  --font-heading: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--slate);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Grain texture (applied via class) ─────────────────────── */
.grain {
  position: relative;
  isolation: isolate;
}
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0.042;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ── Typography helpers ─────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rust);
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow .tri { font-size: 9px; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-style: italic;
  font-optical-sizing: auto;
  line-height: 1.0;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 150ms ease, transform 150ms ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:hover { filter: brightness(0.92); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-blue { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-rust { background: var(--rust); color: var(--white); border-color: var(--rust); }
.btn-outline-slate { background: transparent; color: var(--slate); border-color: var(--slate); }
.btn-outline-cream { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-white-on-blue { background: var(--white); color: var(--blue); border-color: var(--white); border-radius: 4px; }

/* ── Section base spacing ───────────────────────────────────── */
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Scroll reveal ──────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 550ms ease-out, transform 550ms ease-out;
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  .reveal-delay-1 { transition-delay: 80ms; }
  .reveal-delay-2 { transition-delay: 160ms; }
  .reveal-delay-3 { transition-delay: 240ms; }
}

/* ── Mobile base ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }
}
