/* ============================================================
   Base — reset, typography scale, layout helpers, a11y
   Direction A "Guidepost calm"
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Type scale — display face, calm */
.h-hero  { font-size: clamp(2.5rem, 5.4vw, 4.1rem); font-weight: 700; letter-spacing: -0.03em; }
.h-title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 700; }
.h-sub   { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--ink); }

/* Eyebrow — calm tracked label (no handwriting) */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--peri);
  margin-bottom: .9rem;
}

/* Lede paragraph */
.sec-lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 56ch; }
.sec-lede.sec-lede--center { margin-inline: auto; }

/* Signature: trilingual rail — VIS runs three languages daily */
.trilingual {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  font-weight: 500;
  color: var(--ink-soft);
  font-size: .95rem;
}
.trilingual span { white-space: nowrap; }
.trilingual .sep { color: var(--peri); font-weight: 700; }

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 880px; }

.section { padding-block: var(--section-y); }
.section--tint { background: var(--cream-deep); }
.section--sand { background: var(--sand); }

/* section heading block */
.sec-head { margin-bottom: 2.6rem; }
.sec-head--center { text-align: center; }
.sec-head--center .sec-lede { margin-inline: auto; }

:target { scroll-margin-top: 120px; }
[id] { scroll-margin-top: 120px; }

/* ---- Accessibility ---- */
.skip-link {
  position: fixed;
  top: -100px; left: 16px;
  z-index: 2000;
  background: var(--ink);
  color: var(--white);
  padding: .7rem 1.1rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

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

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

/* ---- Reveal (JS toggles .is-in; CSS is the fallback) ---- */
.reveal, .reveal-scatter {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in, .reveal-scatter.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scatter { transition: opacity .3s ease; transform: none; }
}
.no-js .reveal, .no-js .reveal-scatter { opacity: 1; transform: none; }
