/* main.css: reset, layout primitives, page scaffolding */

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

html { scroll-behavior: smooth; }

img { max-width: 100%; display: block; }

ul[class] { list-style: none; }

a { text-decoration: none; transition: color 200ms ease, opacity 200ms ease; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.container-narrow {
  width: min(760px, 92%);
  margin-inline: auto;
}

main { display: block; }

section { padding-block: var(--space-xl); }

.section-alt { background: var(--color-bg-alt); }

.section-deep {
  background: linear-gradient(160deg, var(--color-primary-deep) 0%, var(--color-primary) 85%);
  color: var(--color-text-inverse);
}

.section-deep h2, .section-deep h3 { color: #FFFFFF; }
.section-deep p { color: rgba(244, 247, 250, 0.86); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--color-accent);
}

.lede {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 60ch;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.stack > * + * { margin-top: var(--space-sm); }
.stack-lg > * + * { margin-top: var(--space-md); }

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

.section-head { max-width: 62ch; margin-bottom: var(--space-lg); }

/* Reveal on load */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 700ms ease forwards;
}
.reveal-1 { animation-delay: 80ms; }
.reveal-2 { animation-delay: 200ms; }
.reveal-3 { animation-delay: 320ms; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; opacity: 1; transform: none; }
  * { transition-duration: 0.01ms !important; }
}

@media (max-width: 860px) {
  section { padding-block: var(--space-lg); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

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