/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, picture, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

/* Tokens — S3A palette (white base, gold + navy per logo) */
:root {
  --bg: #FFFFFF;
  --bg-soft: #F8F8F8;
  --bg-alt: #F8F8F8;
  --ink: #0E1C38;
  --ink-soft: #4A5A78;
  --rule: #E0E5EC;
  --accent: #AF802C;
  --accent-ink: #FFFFFF;
  --surface: #F2F2F2;
  --ink-invert: #0E1C38;

  --font-display: 'Syne', 'Inter Tight', system-ui, sans-serif;
  --font-italic: 'Syne', 'Inter Tight', system-ui, sans-serif;
  --font-body: 'Inter Tight', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --space-1: 8px;  --space-2: 16px; --space-3: 24px;
  --space-4: 32px; --space-5: 40px; --space-6: 48px;
  --space-7: 56px; --space-8: 64px; --space-10: 80px; --space-12: 96px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 300ms;
  --dur-med: 600ms;
  --dur-slow: 1200ms;

  --container: 1440px;
  --gutter: 40px;
  --nav-gap: 20px;

  /* Vertical rhythm between sections. One knob so every section stays consistent. */
  --section-y: clamp(40px, 4vh, 60px);
}

@media (max-width: 767px) {
  :root { --gutter: 20px; --section-y: 22px; }
}

/* Dark theme overrides */
html[data-theme="dark"] {
  --bg: #0E0E0E;
  --bg-soft: #1A1A1A;
  --bg-alt: #161616;
  --ink: #DFD8C6;
  --ink-soft: #9A9485;
  --rule: rgba(255,255,255,0.1);
  --surface: #181818;
  --ink-invert: #0E0E0E;
}
html[data-theme="dark"] body { color-scheme: dark; }

/* Base typography */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

/* Italic disabled site-wide: keep em as accent-color emphasis only */
em, i, address, cite, dfn, var {
  font-style: normal;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.0;
  color: var(--ink);
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(46px, 6vw, 96px); }
h2 { font-size: clamp(34px, 4.4vw, 72px); }
h3 { font-size: clamp(20px, 1.8vw, 30px); font-weight: 500; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--bg-alt); }
.section--ink { background: var(--ink-invert); color: var(--accent-ink); }

/* Focus */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

/* Utilities */
.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

html, body { overflow-x: hidden; }
:target { scroll-margin-top: 120px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-tagline], .hero__headline [data-tagline] { opacity: 1 !important; position: relative !important; }
  .principle { opacity: 1 !important; }
  .card__media { clip-path: none !important; }
}
