/* base.css: reset, layout primitives, buttons, motion gating. */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 1rem); background: var(--bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
a { color: inherit; text-underline-offset: .2em; }
p, li { max-width: 65ch; text-wrap: pretty; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; text-wrap: balance; font-weight: 650; font-stretch: 118%; letter-spacing: -.03em; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 0; }
::selection { background: var(--accent); color: var(--accent-contrast); }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: var(--z-overlay); padding: .6rem 1rem; background: var(--text); color: var(--bg); }
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.h2 { font-size: clamp(2.25rem, 4.4vw, 4rem); line-height: 1; padding-bottom: .06em; }
.muted { color: var(--text-muted); }
.eyebrow { font-family: var(--font-body); font-size: .8125rem; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--text-muted); }
.ico { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }

/* ---------- Buttons: parallelograms that echo the logo's slant ---------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .9rem 1.7rem;
  font-weight: 600; font-size: .98rem; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(-14deg);
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn--primary { color: var(--accent-contrast); }
.btn--primary::before { background: var(--accent); }
.btn--primary:hover::before { background: #e2e2de; }
.btn--ghost { color: var(--text); }
.btn--ghost::before { border: 1px solid var(--text-2); }
.btn--ghost:hover::before { border-color: var(--text); background: rgb(244 244 242 / .06); }
.btn:focus-visible { box-shadow: none; outline: 2px solid var(--text); outline-offset: 4px; }

/* ---------- Motion gating ---------- */
html.js:not(.motion-off) [data-reveal],
html.js:not(.motion-off) [data-split],
html.js:not(.motion-off) [data-strike],
html.js:not(.motion-off) [data-hero-item] { visibility: hidden; }
html.motion-off [data-reveal], html.motion-off [data-split], html.motion-off [data-strike], html.motion-off [data-hero-item] {
  visibility: visible !important; opacity: 1 !important; transform: none !important; clip-path: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Grain ---------- */
.grain::after {
  content: ""; position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
