/* ============================================================
   ZENITH LABS — Base & Typography
   ============================================================ */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Header clearance for in-page anchors */
  scroll-padding-top: 96px;
}

body {
  background: var(--bone);
  color: var(--tx-hi);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--tr-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-synthesis-weight: none;
}

body.is-locked { overflow: hidden; }

img, svg, video, canvas {
  display: block;
  max-width: 100%;
}

img, video { height: auto; }

button, input, select, textarea {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

button { background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; padding: 0; }

::selection {
  background: var(--red);
  color: #fff;
}

/* Focus — visible, Swiss, never removed */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: var(--r-1);
}
:focus:not(:focus-visible) { outline: none; }

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--s-4);
  z-index: var(--z-toast);
  padding: var(--s-3) var(--s-5);
  background: var(--ink);
  color: var(--bone);
  font-family: var(--ff-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
}
.skip-link:focus { top: var(--s-4); }

/* ============================================================
   Layout
   ============================================================ */

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

.shell--narrow { max-width: 1100px; }
.shell--text   { max-width: 820px; }

/* Must match <footer> too — a `section`-only selector left the footer on the
   body ground while its children resolved dark-ground tokens. */
section[data-ground],
footer[data-ground] {
  background: var(--bg);
  color: var(--fg);
  position: relative;
}

.section-pad   { padding-block: var(--section-y); }
/* Break the metronome — uniform padding on every section is what makes a page
   read as one template repeated rather than a designed sequence. */
.section-pad--tall  { padding-block: calc(var(--section-y) * 1.55); }
.section-pad--tight { padding-block: calc(var(--section-y) * 0.6); }
.section-pad-t { padding-block-start: var(--section-y); }
.section-pad-b { padding-block-end: var(--section-y); }

/* Hairline rule — the Swiss workhorse */
.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  width: 100%;
}

/* ============================================================
   Typography primitives
   ============================================================ */

.display-hero {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: var(--fs-hero);
  line-height: var(--lh-hero);
  letter-spacing: var(--tr-hero);
}

.display-mega {
  font-family: var(--ff-display);
  font-weight: 200;
  font-size: var(--fs-mega);
  line-height: 0.84;
  letter-spacing: -0.048em;
}

.display-1 {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: var(--fs-d1);
  line-height: var(--lh-display);
  letter-spacing: var(--tr-display);
}

.display-2 {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: var(--fs-d1);
  line-height: 1.0;
  letter-spacing: -0.028em;
}

.display-3 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: var(--fs-d3);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.62;
  color: var(--fg);
  font-weight: 400;
  max-width: 46ch;
  letter-spacing: -0.006em;
}

.body-sm { font-size: var(--fs-sm); line-height: 1.6; color: var(--fg-mid); }

/* The signature eyebrow: mono, uppercase, wide-tracked, red bullet.
   Lifted structurally from seed.com's '● VIACAP® TECHNOLOGY' and
   re-tuned for a clinical register. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--ff-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--fg-mid);
  line-height: 1;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--red);
  flex: none;
  /* Square, not round — Swiss */
  border-radius: var(--r-0);
}

.eyebrow--plain::before { display: none; }

/* Mono data — the language of the label */
.mono {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.mono-label {
  font-family: var(--ff-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--fg-lo);
  font-weight: 500;
}

.tnum { font-variant-numeric: tabular-nums; }

.accent { color: var(--red); }

/* Wordmark lockup */
.wordmark {
  font-family: var(--ff-display);
  font-weight: 300;
  letter-spacing: var(--tr-wordmark);
  /* Tracking adds trailing space; pull it back so optical centering holds */
  text-indent: var(--tr-wordmark);
  line-height: 1;
  text-transform: uppercase;
}

.wordmark-sub {
  font-family: var(--ff-display);
  font-weight: 400;
  letter-spacing: var(--tr-labs);
  text-indent: var(--tr-labs);
  text-transform: uppercase;
  line-height: 1;
}

/* Vertical rail — 'PRECISION · PURITY · PERFORMANCE' from the deck */
.rail-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--ff-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--fg-lo);
}

/* Superscript discipline, per the reference */
sup {
  font-size: 0.5em;
  vertical-align: super;
  line-height: 0;
  letter-spacing: 0;
}
