/* =========================================================================
   VINEL — Base reset & typography
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: auto;
}
body {
  font-family: var(--font-body);
  font-size: var(--t-16);
  line-height: var(--lh-base);
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01" on, "cv11" on, "cv02" on;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
img { -webkit-user-drag: none; }
input, textarea, select, button { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-24) 0; }

::selection { background: var(--volt); color: var(--ink); }
:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 2px;
  border-radius: var(--r-2);
}

/* ---------- Headings (default) ---------- */
.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--ls-display-tight);
  line-height: var(--lh-tight);
  color: var(--ink);
}
.h-1 { font-family: var(--font-display); font-size: var(--t-88); line-height: var(--lh-tight); letter-spacing: var(--ls-display-tight); font-weight: 500; }
.h-2 { font-family: var(--font-display); font-size: var(--t-64); line-height: var(--lh-tight); letter-spacing: var(--ls-display); font-weight: 500; }
.h-3 { font-family: var(--font-display); font-size: var(--t-44); line-height: var(--lh-snug); letter-spacing: var(--ls-display); font-weight: 500; }
.h-4 { font-family: var(--font-display); font-size: var(--t-32); line-height: var(--lh-snug); font-weight: 500; }
.h-5 { font-family: var(--font-display); font-size: var(--t-24); line-height: var(--lh-snug); font-weight: 500; }

/* ---------- Body type ---------- */
.lede { font-size: var(--t-21); line-height: var(--lh-snug); color: var(--ink-2); }
.body { font-size: var(--t-16); line-height: var(--lh-base); }
.caption { font-size: var(--t-14); color: var(--steel); line-height: var(--lh-base); }
.small { font-size: var(--t-13); color: var(--steel); }
.muted { color: var(--steel); }

/* ---------- Mono utility ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
}
.mono-md { font-family: var(--font-mono); font-size: var(--t-13); letter-spacing: var(--ls-mono-tight); }
.mono-lg { font-family: var(--font-mono); font-size: var(--t-14); letter-spacing: var(--ls-mono-tight); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-8);
  font-family: var(--font-mono);
  font-size: var(--t-12);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--steel);
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: var(--ink); display: inline-block;
}
.eyebrow--light { color: var(--steel-2); }
.eyebrow--light::before { background: var(--volt); }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter-x);
}
.section {
  padding-block: clamp(var(--s-80), 9vw, var(--s-160));
}
.section--tight { padding-block: clamp(var(--s-48), 6vw, var(--s-96)); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
}

.rule {
  width: 100%; height: 1px; background: var(--line); border: 0;
}
.rule--dark { background: var(--line-dark); }

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

/* ---------- Theme: charcoal section (inverted) ---------- */
.theme-char {
  background: var(--char);
  color: #ECEAE0;
}
.theme-char .caption, .theme-char .muted { color: var(--steel-2); }
.theme-char .eyebrow { color: var(--steel-2); }
.theme-char .eyebrow::before { background: var(--volt); }
.theme-char a { color: inherit; }
.theme-char .rule { background: var(--line-dark); }

/* ---------- Animation defaults ---------- */
.reveal-init {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}
.reveal-init.is-in {
  opacity: 1; transform: none;
  transition: transform var(--d-slow) var(--ease-out), opacity var(--d-base) var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-init { opacity: 1 !important; transform: none !important; }
}
