/* ==========================================================================
   BASE — design tokens, reset, typography
   ========================================================================== */

:root {
  /* ---- Color system (per brief) ---- */
  --color-navy: #0B172A;       /* primary dark background */
  --color-deep-blue: #123B5D;  /* secondary panel background */
  --color-teal: #3B7A76;       /* primary accent (buttons, borders, large fills) */
  --color-teal-text: #6FB5B0;  /* lighter teal for small text on dark backgrounds —
                                   --color-teal only measures ~3.6:1 contrast on navy,
                                   which fails WCAG AA for text below 18pt/24px; this
                                   variant measures ~7.6:1 on navy and ~4.9:1 on
                                   deep-blue. Used for eyebrows/labels; buttons and
                                   large accents keep --color-teal unchanged. */
  --color-white: #F8FAFC;      /* light text / backgrounds */
  --color-gray: #94A3B8;       /* muted text, borders */
  --color-dark-text: #17212B;  /* body text on light backgrounds */

  /* derived tones */
  --color-navy-90: rgba(11, 23, 42, 0.94);
  --color-navy-70: rgba(11, 23, 42, 0.7);
  --color-teal-tint: rgba(59, 122, 118, 0.14);
  --color-teal-border: rgba(59, 122, 118, 0.4);
  --color-hairline: rgba(148, 163, 184, 0.18);
  --color-hairline-strong: rgba(148, 163, 184, 0.32);

  /* ---- Typography ---- */
  --font-display: "Manrope", "Inter", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --fs-eyebrow: 1rem;
  --fs-body: 1.0625rem;
  --fs-body-sm: 0.9375rem;
  --fs-h1: clamp(2.6rem, 6vw, 5.4rem);
  --fs-h2: clamp(2.1rem, 4.4vw, 3.6rem);
  --fs-h3: clamp(1.4rem, 2.4vw, 1.9rem);
  --fs-stat: clamp(2.6rem, 5.5vw, 4.4rem);

  /* ---- Spacing / layout ---- */
  --gutter: clamp(1.5rem, 5vw, 4.5rem);
  --section-pad-y: clamp(4.5rem, 10vw, 9rem);
  --max-width: 1360px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  /* ---- Motion ---- */
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.2s;
  --dur-med: 0.5s;
  --dur-slow: 0.9s;
}

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

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll; avoid double-smoothing */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

h1, h2, h3, h4, p, figure { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

/* ---- Utility text styles ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal-text);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--color-teal);
}

.section-heading {
  font-size: var(--fs-h2);
  color: var(--color-white);
}

.section-heading--dark { color: var(--color-dark-text); }

.body-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.65;
  color: var(--color-gray);
  max-width: 46ch;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- Focus states (accessibility) ---- */
:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 999;
  background: var(--color-teal);
  color: var(--color-navy);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--dur-fast) var(--ease-standard);
}

.skip-link:focus { top: 1rem; }

/* ---- Disabled-link utility (generic fallback; specific
   components like .btn and .contact-channel set their own
   opacity value at slightly higher specificity) ---- */
a[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* ---- Selection ---- */
::selection { background: var(--color-teal); color: var(--color-navy); }
