*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font-body); font-size: var(--fs-base); line-height: 1.65; color: var(--ink); background: var(--oat); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 var(--sp-2); color: var(--pine); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--sp-2); }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding-block: var(--sp-7); }
.section--alt { background: var(--alabaster); }
.section--dark { background: var(--pine); color: var(--oat); }
.section--dark h2, .section--dark h3 { color: var(--oat); }
.section--sand { background: var(--sand); }

.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--sage); margin-bottom: var(--sp-2); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section--dark .eyebrow { color: #A9C7A8; }
.lead { font-size: var(--fs-lg); color: var(--ink-muted); max-width: 60ch; }
.section--dark .lead { color: rgba(246,243,236,.78); }
.section-head { max-width: 760px; margin-bottom: var(--sp-5); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head--center .eyebrow::before { display: none; }
.mono { font-family: var(--font-mono); }

/* Buttons */
.btn { background: transparent; color: inherit; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .95rem 1.6rem; border-radius: var(--r-pill); border: 1.5px solid transparent; font-weight: 600; font-size: .95rem; text-decoration: none; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--pine); color: var(--oat); }
.btn-primary:hover { background: var(--pine-soft); box-shadow: var(--shadow-md); }
.btn-secondary { border-color: var(--pine); color: var(--pine); background: transparent; }
.btn-secondary:hover { background: var(--pine); color: var(--oat); }
.btn-ghost { color: var(--pine); padding-inline: .4rem; }
.btn-light { background: var(--oat); color: var(--pine); }
.btn-light:hover { background: #fff; box-shadow: var(--shadow-md); }
.btn-outline-light { border-color: rgba(246,243,236,.5); color: var(--oat); }
.btn-outline-light:hover { background: var(--oat); color: var(--pine); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }

.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: var(--r-pill); background: var(--sage-light); color: var(--pine); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .02em; }
.badge--outline { background: transparent; border: 1px solid var(--line); color: var(--ink-muted); }
.badge--terra { background: #F3DFD2; color: #8A4A28; }

.grid { display: grid; gap: var(--sp-3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
.no-js .reveal { opacity: 1; transform: none; }
