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

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

:root {
  --green-dark: #162D0D;
  --green-mid: #1f4012;
  --green-deep: #0f2008;
  --bg: #ffffff;
  --bg-2: #f7fbf4;
  --bg-3: #eef6e8;
  --bg-dark: #162D0D;
  --bg-dark-2: #1a3510;
  --ink: #162D0D;
  --ink-dim: #4a6340;
  --ink-on-dark: #ffffff;
  --ink-dim-on-dark: rgba(255, 255, 255, 0.78);
  --line: rgba(22, 45, 13, 0.1);
  --line-2: rgba(22, 45, 13, 0.18);
  --line-on-dark: rgba(255, 255, 255, 0.12);
  --line-on-dark-2: rgba(255, 255, 255, 0.22);
  --accent: #D9FF3F;
  --accent-2: #FF7A00;
  --accent-3: #ff2d8b;
  --accent-4: #3a8dff;
  --accent-glow: rgba(217, 255, 63, 0.45);
  --orange-glow: rgba(255, 122, 0, 0.35);
  --on-accent: #162D0D;
  --display: 'Anton', 'Impact', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Bricolage Grotesque', system-ui, sans-serif;
  --radius: 20px;
  --radius-pill: 100px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --reveal-duration: 800ms;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}

/* Typography */
h1, h2, h3, h4, .display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
}

em.serif, .headline em, h2 em, h3 em {
  font-family: var(--serif);
  font-style: italic;
  text-transform: lowercase;
  font-weight: 400;
  letter-spacing: 0;
}

.headline .accent,
.accent-text {
  color: var(--accent);
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 1rem;
}

p {
  color: var(--ink-dim);
}

p strong {
  color: var(--ink);
  font-weight: 600;
}

/* Utilities — padding overridden in responsive.css */
.container {
  width: min(1200px, 100%);
  margin-inline: auto;
}

.container-wide {
  width: min(1400px, 100%);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section {
  padding-block: clamp(80px, 10vw, 120px);
}

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

.section-header.center {
  text-align: center;
}

.section-header h2 {
  font-size: clamp(36px, 5vw, 64px);
  color: var(--ink);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--reveal-duration) var(--ease),
              transform var(--reveal-duration) var(--ease);
}

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

.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 400ms; }

.hidden {
  display: none !important;
}

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