/* ==========================================================================
   BASE - reset, document defaults, type scale, layout primitives, a11y.
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  min-height: 100vh;
  background-color: var(--b-bg);
  color: var(--b-fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Nothing on this page may scroll the body sideways. Wide children get
     their own overflow container instead. */
  overflow-x: hidden;
  /* An email address or a URL has no break opportunities and will otherwise
     push a narrow column open at 320px. */
  overflow-wrap: break-word;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

/* ---- Type ---------------------------------------------------------------- */

.display-1, .display-2, .display-3 {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  text-wrap: balance;
}

.display-1 { font-size: var(--fs-display-1); }
.display-2 { font-size: var(--fs-display-2); line-height: var(--lh-heading); }
.display-3 { font-size: var(--fs-display-3); line-height: var(--lh-heading); }

.h4, .h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-heading);
}
.h4 { font-size: var(--fs-h4); }
.h5 { font-size: var(--fs-h5); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 54ch;
}

.body-sm { font-size: var(--fs-small); }
.caption { font-size: var(--fs-caption); line-height: 1.5; color: var(--fg-muted); }
.muted   { color: var(--fg-muted); }
.dim     { color: var(--fg-dim); }

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-feature-settings: 'tnum' 1;
}

/* Section label. The lime bar in front of it is the page's repeating motif. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--brand-fg);
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 3px;
  background: var(--brand-fg);
  border-radius: 2px;
  flex: none;
}

/* The heavy lime bar that sits behind or beside a display line. */
.bar {
  display: inline-block;
  width: clamp(56px, 9vw, 128px);
  height: clamp(10px, 1.4vw, 18px);
  background: var(--brand-fg);
  border-radius: 3px;
  vertical-align: baseline;
}

/* ---- Layout -------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { position: relative; padding-block: var(--section-y); }
.section--tight { padding-block: var(--section-y-tight); }

/* A hairline that separates sections without a background change. */
.section--ruled { border-top: 1px solid var(--edge); }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-5);
  margin-bottom: var(--sp-8);
}

.section-head--center { align-items: center; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: var(--sp-5) var(--sp-8);
  margin-bottom: var(--sp-8);
}

@media (max-width: 900px) {
  .section-head--split { grid-template-columns: 1fr; align-items: start; }
}

.grid-auto {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 260px), 100%), 1fr));
}

.stack   { display: flex; flex-direction: column; min-width: 0; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; }
.gap-2{gap:var(--sp-2)} .gap-3{gap:var(--sp-3)} .gap-4{gap:var(--sp-4)}
.gap-5{gap:var(--sp-5)} .gap-6{gap:var(--sp-6)} .gap-7{gap:var(--sp-7)}

/* ---- Accessibility ------------------------------------------------------- */

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

:focus-visible {
  outline: 2px solid var(--brand-fg);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute; top: var(--sp-3); left: var(--sp-3); z-index: 100;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-full);
  background: var(--brand-fg);
  color: var(--on-brand);
  font-size: var(--fs-caption);
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform var(--dur-base) var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ---- Reveal ---------------------------------------------------------------
   One mechanism for every scroll-triggered entrance. JS adds .is-in via a
   single IntersectionObserver and then unobserves the node.

   The opacity:0 start state is applied by JS (html.js), NOT by this file.
   If the script fails to run, every .reveal stays fully visible instead of
   leaving whole sections blank. */

.js .reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity   var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.js .reveal.is-in { opacity: 1; transform: none; }

/* ---- Reduced motion ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
