/* ============================================================
   BASE — reset and typography
   (All design tokens live in tokens.css)

   Type scale (largest to smallest):
     Page title (h1)   clamp(34px, 4.4vw, 64px)   page-hero.css, home.css
     Section title (h2) clamp(28px, 3.4vw, 48px)  .h2 below
============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 16px;
}
html.menu-lock { overflow: hidden; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
dl, dt, dd { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: var(--z-skip);
  background: var(--white); color: var(--ink); padding: 12px 18px;
  font: 600 13px var(--font-body);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }

/* Section title: always smaller than the page title in the hero */
.h2 {
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.lead {
  max-width: 560px;
  margin-bottom: 32px;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.75;
  color: var(--muted);
}

.grad {
  background: linear-gradient(100deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; gap: 5px; line-height: 1; }
.brand__text b { font-size: 17px; font-weight: 700; letter-spacing: .18em; color: var(--white); }
.brand__text i {
  font: 500 9px var(--font-mono); font-style: normal;
  letter-spacing: .38em; text-transform: uppercase; color: rgba(var(--white-rgb), .55);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}