/* ==========================================================================
   Design System · Base — reset, document defaults, layout primitives
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  background: var(--c-light);
  color: var(--c-navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: var(--fw-regular); line-height: var(--lh-heading); overflow-wrap: anywhere; }
p { overflow-wrap: anywhere; }
::selection { background: var(--c-accent); color: var(--c-white); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px;
  padding: var(--sp-3) var(--sp-5); background: var(--c-accent); color: var(--c-white);
  z-index: 100; transition: top var(--dur-fast);
}
.skip-link:focus { top: var(--sp-4); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---- Type styles ---------------------------------------------------- */
.t-display-xl { font-size: var(--fs-display-xl); font-weight: var(--fw-light); line-height: var(--lh-tight); }
.t-display-lg { font-size: var(--fs-display-lg); font-weight: var(--fw-light); line-height: var(--lh-display); }
.t-display-md { font-size: var(--fs-display-md); font-weight: var(--fw-regular); line-height: var(--lh-heading); }
.t-h1   { font-size: var(--fs-h1); font-weight: var(--fw-light); line-height: var(--lh-display); }
.t-h2   { font-size: var(--fs-h2); font-weight: var(--fw-regular); line-height: var(--lh-heading); }
.t-h3   { font-size: var(--fs-h3); font-weight: var(--fw-regular); line-height: var(--lh-heading); }
.t-h4   { font-size: var(--fs-h4); font-weight: var(--fw-medium); line-height: var(--lh-body); }
.t-lead { font-size: var(--fs-body-lg); line-height: var(--lh-relaxed); }
.t-body { font-size: var(--fs-body); line-height: var(--lh-body); }
.t-small{ font-size: var(--fs-small); line-height: var(--lh-body); }
.t-caps { text-transform: uppercase; letter-spacing: var(--ls-caps); }
.t-muted{ color: var(--fg-muted); }
.t-accent{ color: var(--accent); }
.t-gradient { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Layout --------------------------------------------------------- */
.container {
  width: 100%; max-width: var(--container-max); margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--inset { padding-inline: var(--gutter-lg); }
.section { padding-block: var(--section-y); }
.section--flush { padding-block: 0; }
.stack > * + * { margin-top: var(--sp-6); }
.stack--sm > * + * { margin-top: var(--sp-3); }
.stack--lg > * + * { margin-top: var(--sp-9); }
.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--5-7 { grid-template-columns: 5fr 7fr; }
@media (max-width: 1024px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--5-7 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}
.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); align-items: center; }
.row { display: flex; align-items: center; gap: var(--sp-5); }
.row--between { justify-content: space-between; }
.rule { border: 0; border-top: var(--line-w) solid var(--line); }

/* ---- Scroll reveal (progressive) ----------------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .1s; }
.js .reveal[data-delay="2"] { transition-delay: .2s; }
.js .reveal[data-delay="3"] { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
