/* ==========================================================================
   01 BASE: reset, typography, page-wide helpers.
   ========================================================================== */

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: radial-gradient(70% 45% at 85% 0, var(--color-primary-glow), transparent 70%) fixed, var(--color-bg);
  color: var(--color-soft);
  font: 300 var(--text-body)/1.75 var(--font-body);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }

/* ---- Headings ---- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  text-transform: var(--heading-case);
  margin: 0 0 0.5em;
}
h1 { font-size: var(--text-h1); line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: var(--text-h2); line-height: 1.2; }
h3 { font-size: var(--text-h3); line-height: 1.3; }

p { margin: 0 0 1em; max-width: 62ch; color: var(--color-muted); }

/* Gold italic phrase, e.g. <span class="accent">One expert crew.</span> */
.accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: none;
}

/* ---- Layout helpers ---- */
.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }

.section       { padding-block: var(--space-section); }
.section--alt  { background: var(--color-bg-alt); border-block: 1px solid var(--color-divider); }
.spacer        { height: var(--space-gap); }

.section-head          { margin-bottom: 44px; }
.section-head h2       { margin-bottom: 0.4em; }

.btn-row         { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-row--center { justify-content: center; }

/* ---- Accessibility ---- */
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--color-primary); color: var(--color-bg);
  padding: 8px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 8px; }

/* ---- Scroll reveal (JS adds .is-visible) ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s, transform 1s; transition-delay: var(--delay, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
