/* =====================================================================
   BASE — reset, typography, shared primitives.
   You should rarely need to edit this file. Per-client changes belong
   in tokens.css; per-section changes belong in components.css.
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.7;
  overflow-x: clip;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  color: var(--text);
  font-weight: var(--fw-black);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -.01em;
}
h1 { font-size: var(--fs-hero); letter-spacing: -.03em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: .02em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--btn-ink); }

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--btn-bg); color: var(--btn-ink);
  padding: 12px 20px; z-index: 999;
  font-size: var(--fs-label); font-weight: var(--fw-black);
  letter-spacing: var(--track-btn); text-transform: uppercase;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---- Layout primitives ------------------------------------------------ */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--alt {
  background:
    radial-gradient(90% 60% at 50% 0%, var(--accent-soft), transparent 70%),
    var(--bg-alt);
  border-top: 1px solid var(--line-faint);
  border-bottom: 1px solid var(--line-faint);
}

/* ---- Eyebrow: the small gold-ruled kicker above every heading --------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-label);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--accent);
  flex: none;
}

/* An accented full stop, used at the end of section headings. */
.dot { font-style: normal; color: var(--accent); }

/* ---- Buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 16px 34px;
  border-radius: var(--radius);
  font-size: var(--fs-small);
  font-weight: var(--fw-black);
  letter-spacing: var(--track-btn);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.btn--solid {
  background: var(--btn-bg);
  color: var(--btn-ink);
  border: 1px solid var(--btn-bg);
}
.btn--solid:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: var(--btn-ink);
}
.btn--solid svg { width: 15px; height: 15px; transition: transform var(--t-fast); }
.btn--solid:hover svg { transform: translateX(3px); }

.btn--ghost {
  background: transparent;
  color: var(--text-body);
  border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: var(--text); color: var(--text); }

.btn--text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: var(--fw-bold);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-body);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.btn--text:hover { color: var(--accent-bright); border-color: var(--accent-bright); }

.btn--block { width: 100%; }

/* ---- Section heading: title left, optional link right ----------------- */

.sechead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.sechead h2 { margin: 0; }

/* ---- Scroll reveal ---------------------------------------------------- */

/* Content is visible by DEFAULT. The hidden state is only applied once JS
   has confirmed it can actually animate these in (it puts .reveal-ready on
   <html>), so a missing, stalled or stubbed IntersectionObserver can never
   leave a section permanently invisible. */
.reveal-ready .reveal { opacity: 0; transform: translateY(24px); }
.reveal-ready .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform .6s ease;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ---- Utility ---------------------------------------------------------- */

.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;
}

@media (max-width: 900px) {
  .section { padding-top: var(--section-y-sm); padding-bottom: var(--section-y-sm); }
  .sechead { flex-direction: column; align-items: flex-start; margin-bottom: 30px; }
}
