:root {
  --ink: #14171f;
  --muted: #5b6270;
  --line: #e4e6eb;
  --bg: #ffffff;
  --soft: #f6f7f9;
  --accent: #2f4dd8;
  --accent-ink: #ffffff;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(8px);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 46px; height: 46px; display: block; }
nav.main { display: flex; gap: 22px; font-size: 15px; }
nav.main a { color: var(--muted); }
nav.main a[aria-current="page"], nav.main a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 640px) {
  header.site .wrap { height: auto; padding-top: 14px; padding-bottom: 14px; flex-direction: column; align-items: flex-start; gap: 8px; }
  nav.main { gap: 16px; flex-wrap: wrap; }
  .brand { font-size: 21px; gap: 10px; }
  .brand-mark { width: 40px; height: 40px; }
}

/* Sections */
.hero { padding: 96px 0 72px; }
.hero h1 { font-size: clamp(34px, 5.5vw, 56px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 20px; max-width: 16ch; }
.hero p.lede { font-size: 20px; color: var(--muted); max-width: 58ch; margin: 0 0 32px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 9px; font-weight: 600; font-size: 15px; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.secondary { border: 1px solid var(--line); color: var(--ink); margin-left: 8px; }
.btn:hover { text-decoration: none; opacity: .9; }

section.block { padding: 72px 0; border-top: 1px solid var(--line); }
section.block.soft { background: var(--soft); }
section.block h2 { font-size: 30px; letter-spacing: -.02em; margin: 0 0 12px; }
section.block p.intro { color: var(--muted); max-width: 62ch; margin: 0 0 36px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.card h3 { margin: 0 0 6px; font-size: 21px; letter-spacing: -.01em; }
.card .tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin-bottom: 14px; }
.card p { color: var(--muted); margin: 0 0 16px; }
.card ul { margin: 0 0 18px; padding-left: 18px; color: var(--muted); }
.card ul li { margin: 4px 0; }

.values { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.values h3 { font-size: 17px; margin: 0 0 6px; }
.values p { color: var(--muted); margin: 0; font-size: 16px; }

/* Long-form pages */
.page { padding: 64px 0 88px; }
.page h1 { font-size: clamp(30px, 4.5vw, 42px); letter-spacing: -.02em; margin: 0 0 8px; }
.page .updated { color: var(--muted); font-size: 15px; margin: 0 0 40px; }
.prose { max-width: 72ch; }
.prose h2 { font-size: 22px; margin: 40px 0 10px; letter-spacing: -.01em; }
.prose p, .prose li { color: #333844; }
.prose ul { padding-left: 20px; }

.contact-box { border: 1px solid var(--line); border-radius: 14px; padding: 28px; max-width: 560px; background: var(--soft); }
.contact-box dt { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 16px; }
.contact-box dt:first-child { margin-top: 0; }
.contact-box dd { margin: 4px 0 0; font-size: 18px; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 40px 0; font-size: 14px; color: var(--muted); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }

/* Home page intro (intro.js): the page waits, hidden, while the logo lands. */
main, footer.site, nav.main { transition: opacity .5s ease, transform .5s ease; }
html.intro main, html.intro footer.site, html.intro nav.main, html.intro header.site .brand { opacity: 0; }
html.intro main { transform: translateY(12px); }
.intro-veil { position: fixed; inset: 0; background: var(--bg); z-index: 40; }
.intro-fly { position: fixed; margin: 0; z-index: 41; transform-origin: 0 0; pointer-events: none; will-change: transform; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .intro-veil, .intro-fly { display: none; } }
