/* Layout: single centered column (max 1120px), generous vertical rhythm, orbit diagram as the hero's signature. */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --fg: #11131c;
  --muted: #565b70;
  --line: #dfe2ec;
  --accent: #2a3fd6;
  --star: #e8901c;
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0f17; --surface: #151827; --fg: #eef0f7; --muted: #a2a7bd;
    --line: #262a3d; --accent: #8a98ff; --star: #f3a943; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0f17; --surface: #151827; --fg: #eef0f7; --muted: #a2a7bd;
  --line: #262a3d; --accent: #8a98ff; --star: #f3a943; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 18px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--fg); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em;
}
.brand svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; gap: 24px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }

/* Type */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 650; }
h3 { font-size: 1.3rem; font-weight: 650; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin: 0;
}
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 34em; margin: 0; }
p { margin: 0; }

/* Hero */
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center;
  padding-block: 88px 72px;
}
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero h1 .accent { color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start;
  background: var(--fg); color: var(--bg); text-decoration: none;
  font-weight: 600; padding: 13px 22px; border-radius: 999px;
  transition: transform 160ms ease, background 160ms ease;
}
.btn:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.email-line { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); }

.orbit { width: 100%; max-width: 480px; justify-self: end; }
.orbit svg { width: 100%; height: auto; display: block; overflow: visible; }
.orbit .path { fill: none; stroke: var(--line); stroke-width: 1.5; }
.orbit .axis { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
.orbit .primary { fill: var(--star); }
.orbit .glow { fill: var(--star); opacity: 0.18; }
.orbit .companion { fill: var(--accent); }
.orbit .marker { fill: var(--surface); stroke: var(--accent); stroke-width: 1.5; }
.orbit text { font-family: var(--font-mono); font-size: 11px; fill: var(--muted); letter-spacing: 0.04em; }
.orbit text.strong { fill: var(--accent); }

/* Sections */
.section { border-top: 1px solid var(--line); }
.section .wrap { padding-block: 80px; display: grid; gap: 40px; }
.section-head { display: grid; gap: 14px; max-width: 40em; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 28px; display: grid; gap: 12px; align-content: start; min-width: 0;
}
.pillar p { color: var(--muted); }
.pillar .tag { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.principle { display: grid; gap: 8px; padding-top: 18px; border-top: 2px solid var(--fg); min-width: 0; }
.principle p { color: var(--muted); }

.founders { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 20px; }
.founder { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 700; color: var(--accent);
}
.founder .name { font-weight: 650; }
.founder .role { color: var(--muted); font-size: 0.95rem; }

.contact .wrap { padding-block: 88px; }
.contact-card { display: grid; gap: 20px; max-width: 40em; }
.contact-card .mail {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3.4vw, 2.2rem); font-weight: 650;
  color: var(--accent); text-decoration: none; letter-spacing: -0.02em; overflow-wrap: anywhere;
}
.contact-card .mail:hover { text-decoration: underline; text-underline-offset: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 28px; color: var(--muted); font-size: 0.9rem;
}
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); }

/* Inner pages */
.page .wrap { padding-block: 72px 96px; }
.prose { max-width: 42em; display: grid; gap: 18px; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 8px; }
.prose h2 { font-size: 1.45rem; margin-top: 22px; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose .meta { font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); }
.prose .note {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; color: var(--muted); font-size: 0.95rem;
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 56px 48px; }
  .orbit { justify-self: center; max-width: 380px; }
  .pillars, .principles { grid-template-columns: 1fr; }
  .founders { grid-template-columns: 1fr; }
  .section .wrap { padding-block: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
