:root {
  --bg: #ffffff;
  --bg-alt: #f6f6f5;
  --text: #111111;
  --muted: #555555;
  --line: #e4e4e2;
  --radius: 10px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .container { padding: 0 16px; } }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--text); color: #fff; padding: 10px 16px; border-radius: 6px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand .brand-word { height: 15px; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: .95rem; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav .nav-cta {
  color: #fff; background: var(--text); padding: 9px 16px; border-radius: 999px; font-weight: 600;
}
.nav .nav-cta:hover { color: #fff; background: #333; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  position: relative; margin-right: -10px;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--text); content: "";
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -7px; left: 0; }
.nav-toggle-bar::after { top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    background: #fff; border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; }
  .nav a { display: block; padding: 12px 4px; font-size: 1.05rem; color: var(--text); }
  .nav .nav-cta { margin-top: 8px; text-align: center; padding: 13px 16px; }
}

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 14px 24px; border-radius: 999px; border: 1px solid var(--text);
}
.btn-primary { background: var(--text); color: #fff; }
.btn-primary:hover { background: #333; border-color: #333; }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--bg-alt); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Hero */
.hero { padding: 96px 0 104px; }
.hero-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.eyebrow { font-size: .9rem; color: var(--muted); letter-spacing: .02em; margin-bottom: 20px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-logo img { width: 100%; max-width: 380px; margin-left: auto; }
@media (max-width: 820px) {
  .hero { padding: 56px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-logo { order: -1; }
  .hero-logo img { max-width: 200px; margin: 0; }
}

/* Sections */
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }
.prose { max-width: 40em; }
.prose p { color: #2b2b2b; }
@media (max-width: 820px) {
  .section { padding: 64px 0; }
  .two-col { grid-template-columns: 1fr; gap: 8px; }
}

/* Founders */
.founders { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.founders li { border-top: 1px solid var(--text); padding-top: 14px; display: flex; flex-direction: column; }
.founder-name { font-weight: 600; font-size: 1.1rem; }
.founder-role { color: var(--muted); font-size: .95rem; }
@media (max-width: 480px) { .founders { grid-template-columns: 1fr; } }

/* Services */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column;
}
.card p { color: #2b2b2b; }
.card-num { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 18px; }
.card-link {
  margin-top: auto; padding-top: 8px; font-weight: 600; text-underline-offset: 4px;
}
.card-link::after { content: " →"; }
.tag {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  border: 1px solid var(--text); border-radius: 999px; padding: 2px 9px;
}
@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
  .card { padding: 24px; }
}

/* Approach */
.principles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.principles li { border-top: 1px solid var(--text); padding-top: 18px; }
.principles p { color: var(--muted); margin: 0; }
@media (max-width: 960px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .principles { grid-template-columns: 1fr; gap: 24px; } }

/* Contact */
.contact-intro { font-size: 1.15rem; }
.contact-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.contact-list a { font-weight: 600; text-underline-offset: 4px; }
.contact-list .label { display: inline-block; min-width: 7.5em; color: var(--muted); font-weight: 400; }
.contact-pending { color: var(--muted); }
.contact-area { color: var(--muted); font-size: .95rem; margin-top: 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .9rem; }
.footer-inner p { margin: 0; }
.footer-mark { height: 22px; width: auto; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.notfound img { width: 120px; margin: 0 auto 32px; }
