:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --subtle: #f3f2ee;
  --ink: #0b0b0c;
  --muted: #62615c;
  --faint: #8a8882;
  --line: #e7e5df;
  --line-strong: #d6d3cb;
  --grid: rgba(11, 11, 12, 0.055);
  --accent: #8a6a3b;
  --sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 11, 12, 0.04), 0 8px 24px -12px rgba(11, 11, 12, 0.12);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --surface: #131315;
    --subtle: #1b1b1e;
    --ink: #f4f3ef;
    --muted: #a3a19b;
    --faint: #85837d;
    --line: #232326;
    --line-strong: #37373d;
    --grid: rgba(244, 243, 239, 0.05);
    --accent: #cfa96e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -16px rgba(0, 0, 0, 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 12px; top: 12px; }

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

.on-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  .on-light { display: none !important; }
  .on-dark { display: block !important; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand .mark { height: 32px; width: auto; }
.brand .word { height: 21px; width: auto; }
.header-right { display: flex; align-items: center; gap: 8px; }
.nav { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); padding: 7px 12px; border-radius: 999px; transition: color .15s, background .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--subtle); }
.nav .nav-cta { color: var(--bg); background: var(--ink); margin-left: 8px; padding: 8px 16px; }
.nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] { color: var(--bg); background: var(--ink); opacity: .86; }

.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 18px; height: 18px; }
.menu[open] summary { background: var(--subtle); }
.menu-panel {
  position: absolute; right: 0; top: 50px; min-width: 230px; padding: 8px; display: grid;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.menu-panel a { padding: 11px 12px; border-radius: 8px; text-decoration: none; font-size: 15px; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--subtle); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.5;
  color: var(--muted); margin: 0 0 22px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
h1, h2, h3 { font-weight: 600; margin: 0; letter-spacing: -0.03em; line-height: 1.05; }
h1 { font-size: clamp(42px, 7vw, 82px); letter-spacing: -0.045em; line-height: 1.0; }
.dim { color: var(--faint); }
h2 { font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -0.035em; }
h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
.lede { font-size: clamp(17px, 1.9vw, 19px); color: var(--muted); max-width: 56ch; margin: 28px 0 0; line-height: 1.6; }
.prose { max-width: 64ch; color: var(--muted); font-size: 17px; }
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose a, .inline-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.prose a:hover, .inline-link:hover { text-decoration-color: currentColor; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px;
  border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  transition: background .15s, border-color .15s, opacity .15s;
}
.btn:hover { border-color: var(--ink); }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { opacity: .88; }
.btn svg { width: 16px; height: 16px; transition: transform .15s; }
.btn:hover svg { transform: translateX(2px); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(80px, 12vw, 150px) 0 0; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 75% 0%, #000 25%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 75% at 75% 0%, #000 25%, transparent 75%);
}
.hero h1 { max-width: 17ch; }
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(72px, 10vw, 120px) 0 clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(38px, 6vw, 68px); max-width: 16ch; }

/* ---------- Facts row ---------- */
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; margin: clamp(56px, 8vw, 88px) 0 0; }
.facts-row div { padding: 20px 24px; border-left: 1px solid var(--line); }
.facts-row div:first-child { border-left: 0; }
.facts-row dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.facts-row dd { margin: 0; font-size: 15px; font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 48px; margin-bottom: 48px; }
.section-head h2 { max-width: 20ch; }
.section-head p { margin: 0; color: var(--muted); max-width: 42ch; }

/* ---------- Business cards ---------- */
.businesses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.biz {
  position: relative; display: flex; flex-direction: column; min-height: 310px;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.biz:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.biz-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 44px; }
.biz-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.biz-arrow {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--muted); transition: background .2s, color .2s, border-color .2s, transform .2s; flex-shrink: 0;
}
.biz-arrow svg { width: 15px; height: 15px; }
.biz:hover .biz-arrow { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: rotate(-45deg); }
.biz-logo { height: 26px; display: flex; align-items: center; margin: 0 0 20px; }
.biz-logo img { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: left; }
.biz-logo .h-24 { height: 24px; }
.biz-logo .h-20 { height: 19px; }
.biz p { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.55; max-width: 46ch; }
.biz .for { color: var(--muted); font-size: 14px; margin-top: 12px; }
.biz-foot { margin-top: auto; padding-top: 28px; font-family: var(--mono); font-size: 13px; color: var(--muted); transition: color .2s; }
.biz:hover .biz-foot { color: var(--ink); }

/* ---------- CTA band ---------- */
.band { padding: 0 0 clamp(72px, 10vw, 120px); }
.band-inner {
  position: relative; overflow: hidden; isolation: isolate; border-radius: calc(var(--radius) + 6px);
  background: #0b0b0c; color: #f4f3ef; padding: clamp(32px, 6vw, 64px);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px 48px; align-items: end;
}
@media (prefers-color-scheme: dark) { .band-inner { background: var(--surface); border: 1px solid var(--line); } }
.band-inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000);
          mask-image: linear-gradient(100deg, transparent 35%, #000);
}
.band .eyebrow { color: #a3a19b; }
.band .eyebrow::before { background: #cfa96e; }
.band h2 { color: #f4f3ef; max-width: 18ch; }
.band p { color: #a3a19b; margin: 16px 0 0; max-width: 46ch; }
.band .actions { margin: 0; justify-content: flex-end; }
.band .btn { background: transparent; color: #f4f3ef; border-color: rgba(255,255,255,.24); }
.band .btn:hover { border-color: #f4f3ef; }
.band .btn-primary { background: #f4f3ef; color: #0b0b0c; border-color: #f4f3ef; }

/* ---------- About ---------- */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.portrait {
  margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); display: grid; place-items: center; overflow: hidden; position: relative; isolation: isolate;
}
.portrait::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .initials { font-size: 56px; font-weight: 600; letter-spacing: -0.04em; color: var(--faint); }
.founder h2 { font-size: clamp(32px, 4vw, 44px); }
.role { font-family: var(--mono); font-size: 13px; color: var(--muted); margin: 12px 0 32px; }
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 36px 0 0; }
.pillars div { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--surface); }
.pillars dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.pillars dd { margin: 0; font-weight: 500; font-size: 15px; }
.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 80px); align-items: start; }

/* ---------- Company record ---------- */
.side-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.record { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.record-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); background: var(--subtle); }
.record-head h2 { font-size: 15px; letter-spacing: -0.01em; }
.record-head span { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.record dl { margin: 0; }
.row { display: grid; grid-template-columns: 170px 1fr auto; gap: 6px 20px; align-items: start; padding: 17px 24px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row dt { font-size: 14px; color: var(--muted); padding-top: 1px; }
.row dd { margin: 0; font-size: 15px; font-weight: 500; min-width: 0; }
.row dd.act { display: flex; justify-content: flex-end; }
.row ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.row li { display: flex; gap: 12px; font-weight: 400; }
.mono { font-family: var(--mono); font-weight: 500; font-size: 14px; }
.naics-label { color: var(--muted); }
.pending { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 400; }
.pending::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--faint); flex-shrink: 0; }
.copy {
  font: 500 12px/1 var(--mono); color: var(--muted); background: transparent; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 11px; cursor: pointer; transition: color .15s, border-color .15s; white-space: nowrap;
}
.copy:hover { color: var(--ink); border-color: var(--line-strong); }
.copy.done { color: var(--ink); border-color: var(--ink); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 24px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 18px; letter-spacing: -0.015em; margin-bottom: 12px; }
.panel p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.panel p:last-child { margin-bottom: 0; }
.panel .btn { height: 40px; font-size: 14px; padding: 0 16px; }
.panel ul { list-style: none; margin: 0; padding: 0; }
.panel li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.panel li:first-child { border-top: 0; padding-top: 0; }
.panel li span, .panel li a { color: var(--muted); font-family: var(--mono); font-size: 13px; font-weight: 400; text-decoration: none; }
.panel li a:hover { color: var(--ink); }

/* ---------- Contact ---------- */
.contact-card {
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); background: var(--surface);
  padding: clamp(28px, 5vw, 48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.contact-card .label { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 0 0 10px; }
.contact-email { margin: 0; font-size: clamp(21px, 3.6vw, 36px); font-weight: 600; letter-spacing: -0.03em; overflow-wrap: break-word; }
.contact-email a { text-decoration: none; }
.contact-card .actions { margin: 0; }
.routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.route { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.route .num { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.route h2, .route h3 { font-size: 18px; letter-spacing: -0.02em; line-height: 1.25; }
.route p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 36px; font-size: 14px; color: var(--muted); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; padding-bottom: 40px; }
.foot-brand { display: flex; align-items: flex-start; flex-direction: column; gap: 16px; max-width: 30ch; }
.foot-brand .logo { display: flex; align-items: center; gap: 12px; }
.foot-brand .mark { height: 34px; width: auto; }
.foot-brand .word { height: 21px; width: auto; }
.foot-brand p { margin: 0; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.foot-cols h2 { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { color: var(--ink); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.foot-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .facts-row { grid-template-columns: repeat(2, 1fr); }
  .facts-row div:nth-child(3) { border-left: 0; }
  .facts-row div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .band-inner, .two-col, .side-grid { grid-template-columns: 1fr; }
  .band .actions { justify-content: flex-start; }
  .routes { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .menu { display: block; }
  .businesses { grid-template-columns: 1fr; }
  .biz { min-height: 0; padding: 24px; }
  .biz-top { margin-bottom: 32px; }
  .founder { grid-template-columns: 1fr; }
  .portrait { max-width: 220px; }
  .pillars { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr auto; padding: 16px 20px; }
  .row dt { grid-column: 1 / -1; font-size: 13px; }
  .record-head { padding: 14px 20px; }
}
@media (max-width: 359px) {
  .facts-row { grid-template-columns: 1fr; }
  .facts-row div { border-left: 0 !important; }
  .facts-row div:nth-child(n+2) { border-top: 1px solid var(--line); }
}

.page-hero + .section { padding-top: clamp(48px, 6vw, 72px); }
@media (min-width: 901px) { .side-grid > div:last-child { position: sticky; top: 88px; } }
.section-head > div { flex: 1 1 560px; }
