/* a-hub base: reset, type, layout grid, motion. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
::selection { background: var(--c-glow); color: var(--c-navy); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 1px; }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--c-navy); color: var(--c-whitewash); font-family: var(--font-ui);
  padding: var(--s-3) var(--s-4); border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: var(--s-4); }
[hidden] { display: none !important; }
.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 ----------
   Montserrat for every headline: Bold for headings, ExtraBold for the display line, set tight like the wordmark. */
.display, .h1, .h2, .h3, h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: var(--track-tight);
  line-height: var(--lh-head);
  text-wrap: balance;
}
.display { font-size: var(--fs-display); line-height: var(--lh-tight); font-weight: 800; letter-spacing: -0.045em; }
h1, .h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.04em; font-weight: 800; }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.18; }
h4, .h4 { font-family: var(--font-head); font-size: var(--fs-h4); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
/* Emphasis in headlines: the same face in Signal Blue. One phrase per headline at most. */
.display em, h1 em, h2 em, .h1 em, .h2 em, .statement em, .cta h2 em { font-style: normal; color: var(--c-signal); }

/* The join: the logo's hyphen as a graphic. A short Signal bar that links two ideas in a headline,
   marks labels and list items, and draws itself in on arrival. <span class="join" aria-hidden="true"></span> */
.join {
  display: inline-block; width: var(--join-w); height: var(--join-h); background: var(--c-signal);
  vertical-align: 0.24em; margin-inline: 0.07em 0.09em; transform-origin: left center;
}
.join--glow { background: var(--c-glow); }
.join--navy { background: var(--c-navy); }
.js .join { transform: scaleX(0); transition: transform 900ms var(--ease) 200ms; }
.js .join.is-in { transform: none; }
@media (prefers-reduced-motion: reduce) { .js .join { transform: none; transition: none; } }

.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-2); max-width: 38em; }
.statement {
  font-family: var(--font-head); font-size: var(--fs-statement); line-height: 1.28;
  letter-spacing: -0.025em; font-weight: 600; text-wrap: pretty;
}
.statement .muted { color: var(--text-2); }
.label {
  font-family: var(--font-ui); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-2); line-height: 1.5;
}
.nowrap { white-space: nowrap; }
.small { font-size: var(--fs-small); }
.muted { color: var(--text-2); }
.prose p + p { margin-top: var(--s-5); }
.prose { max-width: 40em; }
.prose p { color: var(--text-2); }
.prose strong { color: var(--text); font-weight: 700; }

.link, .prose a {
  color: var(--c-signal); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 0.22em; text-decoration-color: currentColor;
  transition: color var(--dur) var(--ease);
}
.link:hover, .prose a:hover { color: var(--c-navy); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--s-8); }
.align-center { align-items: center; }
.align-end { align-items: end; }
.span-2 { grid-column-end: span 2; } .span-3 { grid-column-end: span 3; } .span-4 { grid-column-end: span 4; }
.span-5 { grid-column-end: span 5; } .span-6 { grid-column-end: span 6; } .span-7 { grid-column-end: span 7; }
.span-8 { grid-column-end: span 8; } .span-9 { grid-column-end: span 9; } .span-10 { grid-column-end: span 10; }
.span-12 { grid-column: 1 / -1; }
.start-2 { grid-column-start: 2; } .start-4 { grid-column-start: 4; } .start-5 { grid-column-start: 5; }
.start-6 { grid-column-start: 6; } .start-7 { grid-column-start: 7; } .start-8 { grid-column-start: 8; }
.start-9 { grid-column-start: 9; }

.section { padding-block: var(--section); }
.section--flush-top { padding-top: 0; }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section-head { margin-bottom: var(--s-9); }
.section-head .label { margin-bottom: var(--s-5); }
.section-head h2 { max-width: 16em; }
.section-head .lead { margin-top: var(--s-5); }
.stack > * + * { margin-top: var(--s-5); }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 80ms; }
.js .reveal[data-delay="2"] { transition-delay: 160ms; }
.js .reveal[data-delay="3"] { transition-delay: 240ms; }
.js .reveal[data-delay="4"] { transition-delay: 320ms; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
