/* Base: reset, typography, layout primitives. Uses tokens only. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + var(--space-4)); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-text);
  background: var(--color-surface);
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--color-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--color-navy-900); }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-sm); }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Headings */
h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-heading);
  color: var(--color-navy-900);
  margin: 0 0 var(--space-4);
}
h1, .h1 { font-size: var(--text-h1); text-transform: uppercase; }
h2, .h2 { font-size: var(--text-h2); text-transform: uppercase; }
h3, .h3 { font-size: var(--text-h3); line-height: var(--leading-snug); }
h4, .h4 { font-size: var(--text-h4); line-height: var(--leading-snug); }
.display { font-size: var(--text-display); line-height: 0.98; text-transform: uppercase; font-weight: 800; }
.display .muted, h1 .muted, h2 .muted { color: var(--color-steel-600); }
p { margin: 0 0 var(--space-4); }
.lead { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 62ch; }
.muted { color: var(--color-text-muted); }
.small { font-size: var(--text-sm); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-body); font-size: var(--text-eyebrow); font-weight: 600;
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--color-blue-600); margin-bottom: var(--space-4);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; transform: skewX(var(--slash-angle)); }

/* Layout */
.container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--container-gutter); }
.section { padding-block: var(--section-padding); position: relative; }
.section--alt { background: var(--color-surface-alt); }
.section--dark { background: var(--color-surface-dark); color: var(--color-white); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--color-white); }
.section--dark .muted, .section--dark .lead { color: var(--color-navy-200); }
.section--dark .eyebrow { color: var(--color-amber-500); }
.section-head { max-width: 760px; margin-bottom: var(--space-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-5); }
.section-head--split > div { max-width: 680px; }

.grid { display: grid; gap: var(--grid-gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4, .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-8); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: var(--space-6); } }

.stack > * + * { margin-top: var(--space-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* Diagonal slash accents (logo geometry) */
.slash-divider { height: 10px; display: flex; gap: 6px; }
.slash-divider span { width: 34px; height: 100%; transform: skewX(var(--slash-angle)); background: var(--color-steel-400); }
.slash-divider span:nth-child(2) { background: var(--color-navy-900); }
.tread-divider {
  height: 18px;
  background:
    repeating-linear-gradient(115deg, var(--color-slate-200) 0 10px, transparent 10px 22px),
    var(--color-surface);
  opacity: .9;
}
.section--dark + .tread-divider, .tread-divider--dark { background: repeating-linear-gradient(115deg, var(--color-navy-900) 0 10px, var(--color-navy-800) 10px 22px); }

/* AI image placeholder fallback */
.img-ph {
  background: linear-gradient(135deg, var(--color-navy-800), var(--color-blue-700));
  color: var(--color-navy-200); display: grid; place-items: center; font-size: var(--text-xs);
  letter-spacing: .1em; text-transform: uppercase;
}
[hidden] { display: none !important; }
