@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --paper: #F5F3EE;
  --paper-dim: #ECE8DF;
  --ink: #1E1E1C;
  --ink-soft: #45443F;
  --slate: #5B6660;
  --navy: #28527A;
  --navy-deep: #1B3A57;
  --clay: #B5562E;
  --rule: rgba(30,30,28,0.13);
  --max-w: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 36px;
}

/* ---- Header ---- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245,243,238,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  display: flex;
  align-items: baseline;
  flex-shrink: 0;
}
.logo-mark .sq {
  width: 5px;
  height: 5px;
  background: var(--clay);
  align-self: flex-end;
  margin: 0 0 2px 3px;
}
.logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
nav { display: flex; align-items: center; gap: 6px; }
nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 12px;
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
}
nav a:hover { color: var(--ink); background: var(--paper-dim); }
nav a.active { color: var(--navy-deep); font-weight: 600; }
.nav-cta {
  margin-left: 10px;
  background: var(--ink) !important;
  color: var(--paper) !important;
  padding: 8px 16px !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
}
.nav-cta:hover { background: var(--navy-deep) !important; }

@media (max-width: 720px) {
  nav a:not(.nav-cta) { display: none; }
}

/* ---- Page hero ---- */
.page-hero {
  padding: 72px 0 60px;
  border-bottom: 1px solid var(--rule);
}
.page-kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-deep);
  margin: 0 0 16px;
}
.page-hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  max-width: 18ch;
}
.page-hero p {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0;
}

/* ---- Sections ---- */
section { padding: 68px 0; border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: none; }

h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}
h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 8px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 3px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-1px); }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }

/* ---- Mono label ---- */
.mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---- Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-stagger.in-view > * { opacity: 1; transform: none; }

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--rule);
  padding: 40px 0 48px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand p { font-size: 13.5px; color: var(--slate); margin: 0; max-width: 28ch; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col .mono { margin-bottom: 4px; }
.footer-col a {
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--navy-deep); }
.fine-print {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--slate);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---- Scroll reveal JS init ---- */
