/* ============ SELF-HOSTED FONTS (replaces Google Fonts — no external requests) ============ */
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-var.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-var-italic.woff2") format("woff2");
  font-weight: 300 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ============ TOKENS ============ */
:root {
  --bg: #F5F2EB;
  --bg-2: #EFEBE2;
  --ink: #161412;
  --ink-2: #2A2520;
  --ink-3: #5A524A;
  --ink-4: #8A8175;
  --rule: rgba(22, 20, 18, 0.12);
  --rule-strong: rgba(22, 20, 18, 0.2);
  --accent: #6B1F22;          /* oxblood default */
  --accent-ink: #F5F2EB;
  --card-foil: #C9A961;       /* foil accent — used by contact link hover */
  --serif: "Newsreader", "Source Serif 4", Georgia, serif;
  --sans: "Geist", "DM Sans", -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02";
  font-optical-sizing: auto;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ============ LAYOUT ============ */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

.h-display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.02;
  color: var(--ink);
  text-wrap: balance;
  font-feature-settings: "ss01", "ss02";
}

.h-section {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.06;
  font-size: clamp(36px, 4.4vw, 56px);
  color: var(--ink);
  text-wrap: balance;
}

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 242, 235, 0.85);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em;
}
.brand-mark {
  width: 22px; height: 22px; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff 0 1px, transparent 2px),
    conic-gradient(from 200deg, var(--ink) 0 50%, var(--accent) 0 100%);
  align-self: center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
}
.nav-links {
  display: flex; gap: 36px;
  font-size: 14px; color: var(--ink-2);
}
.nav-links a {
  position: relative; padding: 4px 0;
  transition: color .25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--ink); transform: scaleX(0);
  transform-origin: left; transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 22px; font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 18px;
  font-size: 13.5px; letter-spacing: 0.01em;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .25s ease, color .25s ease, transform .25s ease, border-color .25s ease;
}
.btn-primary {
  background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary .arrow { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-lg { height: 50px; padding: 0 26px; font-size: 14.5px; }

@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ============ HERO ============ */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--ink-3);
}

.hero-sub {
  margin-top: 28px; font-size: 17px; line-height: 1.55;
  color: var(--ink-3); max-width: 460px;
}

.hero-cta-row {
  display: flex; align-items: center; gap: 22px; margin-top: 40px;
  flex-wrap: wrap;
}
.hero-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--ink-2);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--rule-strong);
  transition: color .25s ease, border-color .25s ease;
}
.hero-secondary:hover { color: var(--ink); border-color: var(--ink); }
.hero-secondary .arrow { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.hero-secondary:hover .arrow { transform: translateX(3px); }

/* ============ SECTION ============ */
.section { padding: 120px 0; }
@media (max-width: 880px) { .section { padding: 80px 0; } }

.section-head {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px;
  margin-bottom: 64px;
  align-items: end;
}
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
}
.section-head .col-l .eyebrow { margin-bottom: 14px; display: block; }
.section-head .lead {
  font-size: 16px; color: var(--ink-3); max-width: 520px;
}
