/* ============================================
   WIRED-INSPIRED DESIGN SYSTEM — tokens
   ============================================ */
:root {
  --c-primary: #000000;
  --c-on-primary: #ffffff;
  --c-ink: #000000;
  --c-ink-soft: #1a1a1a;
  --c-body: #757575;
  --c-hairline: #e0e0e0;
  --c-canvas: #ffffff;
  --c-canvas-soft: #f5f5f5;
  --c-link: #057dbc;

  --font-display: 'Playfair Display', 'Times New Roman', Georgia, serif;
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --s-xxs: 2px;
  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 12px;
  --s-lg: 16px;
  --s-xl: 20px;
  --s-2xl: 24px;
  --s-3xl: 32px;
  --s-4xl: 48px;
  --s-5xl: 72px;
  --s-6xl: 96px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--c-ink);
  background: var(--c-canvas);
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea, select { font: inherit; }

/* TYPOGRAPHY */
.display-hero {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 400;
  line-height: 0.93;
  letter-spacing: -0.5px;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.4px;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.3px;
}
.display-sm { font-family: var(--font-display); font-size: 26px; font-weight: 400; line-height: 1.08; }
.display-xs { font-family: var(--font-sans); font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -0.014em; }
.body-serif-lg { font-family: var(--font-serif); font-size: 19px; font-weight: 400; line-height: 1.47; }
.body-serif-md { font-family: var(--font-serif); font-size: 16px; font-weight: 400; line-height: 1.5; }
.body-md { font-family: var(--font-sans); font-size: 17px; font-weight: 400; line-height: 1.4; }
.body-md-strong { font-family: var(--font-sans); font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -0.008em; }
.body-sm { font-family: var(--font-sans); font-size: 14px; font-weight: 400; line-height: 1.28; letter-spacing: 0.03em; }
.body-sm-strong { font-family: var(--font-sans); font-size: 14px; font-weight: 700; line-height: 1.28; letter-spacing: 0.03em; }
.byline { font-family: var(--font-serif); font-size: 13px; font-weight: 700; line-height: 1.6; letter-spacing: 0.01em; }
.caption { font-family: var(--font-sans); font-size: 12px; font-weight: 400; line-height: 1.3; }
.eyebrow { font-family: var(--font-sans); font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: 0.12em; text-transform: uppercase; }

em { font-family: var(--font-display); font-style: italic; font-weight: 400; }

/* LAYOUT */
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 var(--s-xl); }
@media (min-width: 768px) { .container { padding: 0 var(--s-3xl); } }

.hairline { border-bottom: 1px solid var(--c-hairline); }
.hairline-top { border-top: 1px solid var(--c-hairline); }

.section { padding: var(--s-6xl) 0; border-bottom: 1px solid var(--c-hairline); }
@media (max-width: 768px) { .section { padding: var(--s-5xl) 0; } }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: var(--s-4xl);
  gap: var(--s-2xl);
  flex-wrap: wrap;
}
.section-head-text { max-width: 720px; }
.section-eyebrow { display: flex; align-items: center; gap: var(--s-md); color: var(--c-body); margin-bottom: var(--s-lg); }
.section-eyebrow::before { content: ''; display: inline-block; width: 32px; height: 1.5px; background: var(--c-ink); flex-shrink: 0; }
.section-title { margin-bottom: var(--s-lg); }
.section-sub { color: var(--c-ink-soft); max-width: 600px; }

/* ANIMATIONS */
@media (prefers-reduced-motion: no-preference) {
  .fade-in { opacity: 0; animation: fadeIn 0.8s ease forwards; }
  .fade-in.delay-1 { animation-delay: 0.1s; }
  .fade-in.delay-2 { animation-delay: 0.2s; }
  .fade-in.delay-3 { animation-delay: 0.3s; }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Scroll-triggered reveal */
  .reveal {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}
