:root {
  --bg: #0B0D12;
  --bg-elev: #12151D;
  --ink: #E8E6E1;
  --muted: #9AA3B2;
  --faint: #6B7382;
  --line: rgba(232, 230, 225, 0.08);
  --line-strong: rgba(232, 230, 225, 0.14);
  --accent: #6E8CFF;
  --accent-soft: #A8B4C8;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1080px;
  --pad: clamp(22px, 4.5vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.bg-glow {
  pointer-events: none;
  position: fixed;
  inset: -20% -10% auto auto;
  width: min(70vw, 720px);
  height: min(70vw, 720px);
  background: radial-gradient(circle at 40% 40%, rgba(110,140,255,.18), transparent 62%);
  filter: blur(8px);
  z-index: 0;
}

.nav, main, footer { position: relative; z-index: 1; }

.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11,13,18,.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(11,13,18,.9); }
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
}
.brand .mark { width: 28px; height: 28px; }
.brand .word {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav ul { list-style: none; display: flex; gap: 32px; }
.nav ul a {
  text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted);
  position: relative;
}
.nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav ul a:hover { color: var(--ink); }
.nav ul a:hover::after { transform: scaleX(1); }
.nav-toggle {
  display: none; background: none; border: 0; color: var(--ink);
  font: 500 14px var(--sans); cursor: pointer;
}

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
h1, h2, h3 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.025em; line-height: 1.08; color: var(--ink);
}
h1 { font-size: clamp(40px, 6.4vw, 76px); max-width: 14ch; }
h2 { font-size: clamp(30px, 4vw, 48px); max-width: 18ch; }
h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.2; }
.lede {
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); max-width: 560px;
}
.lede.tight { margin-top: 20px; }
.lede.on-dark { color: #C5CBD8; }

.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

.hero {
  padding: clamp(96px, 14vw, 160px) 0 clamp(72px, 10vw, 120px);
  border-bottom: 1px solid var(--line);
}
.hero h1 { margin: 18px 0 24px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 500; font-size: 14px; text-decoration: none;
  border: 1px solid var(--line-strong); color: var(--ink);
  transition: background .2s, border-color .2s, color .2s;
}
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { background: #fff; border-color: #fff; }
.btn:not(.primary):hover { border-color: var(--accent); color: var(--accent-soft); }

section { padding: clamp(72px, 10vw, 120px) 0; }
section + section { border-top: 1px solid var(--line); }

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px;
}
.card {
  padding: 28px 24px 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 48%), var(--bg-elev);
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(110,140,255,.35); transform: translateY(-2px); }
.card .num {
  font-family: var(--serif); font-size: 14px; color: var(--accent); letter-spacing: .04em;
}
.card h3 { margin: 14px 0 10px; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.6; }

.approach { background: linear-gradient(180deg, rgba(110,140,255,.04), transparent 40%); }
.approach-grid {
  display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(36px, 6vw, 80px); align-items: start;
}
.principles { list-style: none; display: grid; gap: 0; }
.principles li {
  display: grid; gap: 6px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles strong {
  font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: -0.02em;
}
.principles span { color: var(--muted); font-size: 15px; line-height: 1.55; }

.contact {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(110,140,255,.16), transparent 55%),
    #0E1118;
  border-top: 0 !important;
}
.contact .eyebrow { color: #9BB0FF; }
.contact h2 { margin: 16px 0 18px; max-width: 12ch; }
.contact .mail {
  display: inline-block; margin-top: 28px;
  font-family: var(--serif); font-size: clamp(26px, 4vw, 44px);
  text-decoration: none; color: var(--ink);
  border-bottom: 1px solid rgba(232,230,225,.28); padding-bottom: 4px;
  transition: border-color .2s;
}
.contact .mail:hover { border-bottom-color: #fff; }

footer {
  padding: 40px 0 52px; font-size: 14px; color: var(--faint);
  border-top: 1px solid var(--line);
}
footer .wrap {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
footer .brand .word { font-size: 18px; }
footer .brand .mark { width: 24px; height: 24px; }
footer .legal { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
footer a { text-decoration: none; color: var(--faint); }
footer a:hover { color: var(--accent-soft); }

@media (max-width: 860px) {
  .nav ul {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(11,13,18,.98); flex-direction: column; gap: 0;
    padding: 8px var(--pad) 20px; border-bottom: 1px solid var(--line);
  }
  .nav ul.open { display: flex; }
  .nav ul li a { display: block; padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav ul a::after { display: none; }
  .nav-toggle { display: block; }
  .cards { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
}
