/* ============ Base: reset, typography, layout primitives ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: var(--orange-700); text-underline-offset: 3px; }
h1,h2,h3,h4,h5 {
  font-family: var(--font-heading); font-weight: 700;
  line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 var(--s-2);
}
h1 { font-size: clamp(38px, 5vw, 60px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
p  { margin: 0 0 var(--s-2); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--orange-600); outline-offset: 2px; }
::selection { background: rgba(242,163,60,.35); }

.container { max-width: 1180px; margin-inline: auto; padding-inline: var(--s-3); }
.container-narrow { max-width: 880px; margin-inline: auto; padding-inline: var(--s-3); }

.section { padding: var(--s-10) 0; }
.section-tight { padding: var(--s-8) 0; }
.section-head { max-width: 720px; margin-bottom: var(--s-6); }
.section-head.center { margin-inline: auto; text-align: center; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange-700); margin-bottom: var(--s-2);
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--orange); }
.on-dark .kicker { color: var(--orange); }

.lead { font-size: 19px; line-height: 1.65; color: var(--muted); max-width: 58ch; }
.text-muted { color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-2); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }

/* Scroll-reveal */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive (desktop-first) */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; gap: var(--s-5); }
}
@media (max-width: 680px) {
  .section { padding: var(--s-8) 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: 1fr 1fr; }
}
