/* ============================================================
   BASE — reset, typography, primitives (v2 with TF fonts)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  cursor: none; /* custom cursor takes over on desktop */
}
@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
}
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* Typography — Montserrat for display, Roboto for body */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.05;
  margin: 0;
}
h1 { font-size: var(--t-hero); }
h2 { font-size: var(--t-h1); }
h3 { font-size: var(--t-h2); letter-spacing: -.01em; }
h4 { font-size: var(--t-h3); letter-spacing: -.005em; font-weight: 600; }
h5 { font-size: 16px; font-weight: 600; }
p { margin: 0; }
strong { font-weight: 600; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--t-eyebrow);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--red);
  opacity: 1;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
section { padding: clamp(80px, 11vw, 160px) 0; position: relative; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .04em;
  border-radius: var(--r-pill);
  transition: transform var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
  white-space: nowrap;
  position: relative;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 12px 32px -12px rgba(215,35,39,.6);
}
.btn-primary:hover { background: var(--red-dim); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid var(--rule-strong);
  color: var(--fg);
}
.btn-ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-arrow::after {
  content: '→';
  font-family: var(--f-body);
  letter-spacing: 0;
  transition: transform var(--t-fast) var(--ease);
}
.btn-arrow:hover::after { transform: translateX(5px); }
.btn-lg { padding: 20px 40px; font-size: 15px; }

/* Forms */
input, select, textarea {
  font: inherit;
  font-family: var(--f-body);
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  color: var(--fg);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(255,255,255,.06);
}
.surface-paper input, .surface-paper select, .surface-paper textarea {
  background: var(--white);
  border-color: rgba(11,11,14,.12);
}
label {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}

/* Cards */
.card {
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 36px);
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0));
  transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.card:hover { border-color: var(--rule-strong); transform: translateY(-2px); }

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease-smooth), transform 800ms var(--ease-smooth);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* Word-by-word fill (Mentes manifesto pattern, adapted) */
.word-fill {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 64px);
  letter-spacing: -.015em;
  line-height: 1.12;
  max-width: 22ch;
}
.word-fill .w {
  display: inline-block;
  color: var(--rule-strong);
  transition: color 250ms var(--ease);
  margin-right: .22em;
}
.word-fill .w.is-on { color: var(--fg); }
.word-fill .w.accent.is-on { color: var(--red); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .word-fill .w { color: var(--fg); transition: none; }
  body { cursor: auto !important; }
  .cursor, .cursor-ring { display: none !important; }
  html { scroll-behavior: auto; }
}

/* Accessibility */
.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;
}
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
