/**
 * Glasshead v3 — base: reset, type, layout primitives, accessibility floor.
 */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, picture, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--cobalt); color: var(--bone); }

/* ─── Display type: the signage voice ───────────────────────────── */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 62.5%;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.88;
  text-wrap: balance;
}
.t-mega { font-size: min(14.2vw, 27vh); }
.t-xxl  { font-size: clamp(3.1rem, 10.2vw, 11rem); }
.t-xl   { font-size: clamp(2.5rem, 6.6vw, 7rem); }
.t-lg   { font-size: clamp(1.9rem, 3.8vw, 4rem); }
.t-md   { font-size: clamp(1.45rem, 2.3vw, 2.3rem); font-stretch: 75%; line-height: 0.95; }
.t-sm   { font-size: clamp(1.15rem, 1.5vw, 1.45rem); font-stretch: 85%; font-weight: 800; line-height: 1.05; }

/* sentence-case statement voice (readable at length) */
.statement-type {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 70%;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-wrap: pretty;
}

.lede {
  font-size: clamp(1.15rem, 0.9rem + 0.9vw, 1.6rem);
  line-height: 1.38;
  color: var(--soft);
  max-width: 44ch;
  text-wrap: pretty;
}
.mono { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0; line-height: 1.4; }
.muted { color: var(--muted); }
.soft { color: var(--soft); }
.small { font-size: 0.9rem; }
.tiny { font-size: 0.78rem; }
.tabular { font-variant-numeric: tabular-nums; }
.accent { color: var(--accent); }

/* ─── Layout ────────────────────────────────────────────────────── */
.sec {
  position: relative;
  background: var(--bg);
  color: var(--fg);
  padding-block: var(--sec-y);
}
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.stack { display: flex; flex-direction: column; gap: 1.5rem; }
.row { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }

/* Section bar: a hairline with ruler ticks hanging off it */
.sec__bar {
  position: relative;
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding-bottom: 14px;
  margin-bottom: clamp(32px, 5vw, 72px);
  border-bottom: 1px solid var(--line-strong);
}
.sec__bar::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 14px);
}
.sec__bar span { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; }

/* ─── Accessibility floor ───────────────────────────────────────── */
:focus-visible { outline: 3px solid var(--signal, var(--cobalt-light)); outline-offset: 3px; }
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 2000;
  padding: 12px 18px; background: var(--cobalt); color: var(--bone); font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

@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; scroll-behavior: auto !important;
  }
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ─── Reveal states (JS-gated; a timer in the page head lifts them if scripts fail) ─── */
html.js [data-reveal] { opacity: 0; transform: translateY(32px); }
html.js [data-split] { visibility: hidden; }
html.js [data-split].is-split { visibility: visible; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.wi { display: inline-block; will-change: transform; }
html.reveal-all [data-reveal] { opacity: 1 !important; transform: none !important; }
html.reveal-all [data-split] { visibility: visible !important; }
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; }
  html.js [data-split] { visibility: visible; }
}
