:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f5f4f1;
  --panel: #ffffff;
  --ink: #23252b;
  --muted: #6b7280;
  --line: #dedbd3;
  --accent: #57248a;
  --accent-2: #f8b51d;
  --footer: #202329;
  --footer-text: #f2f4f7;
  --footer-muted: #aeb5c1;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111217;
    --surface: #181a20;
    --panel: #15171d;
    --ink: #f4f5f7;
    --muted: #a9afba;
    --line: #2c3038;
    --footer: #0d0e12;
    --footer-text: #f4f5f7;
    --footer-muted: #9aa1ad;
  }
}

:root[data-theme="dark"] {
  --bg: #111217;
  --surface: #181a20;
  --panel: #15171d;
  --ink: #f4f5f7;
  --muted: #a9afba;
  --line: #2c3038;
  --footer: #0d0e12;
  --footer-text: #f4f5f7;
  --footer-muted: #9aa1ad;
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f5f4f1;
  --panel: #ffffff;
  --ink: #23252b;
  --muted: #6b7280;
  --line: #dedbd3;
  --footer: #202329;
  --footer-text: #f2f4f7;
  --footer-muted: #aeb5c1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; }
.site-header, main { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.site-header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
}
.brand img { width: 28px; height: 28px; object-fit: contain; }
nav { display: flex; align-items: center; gap: 26px; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
nav a:hover { color: var(--ink); }
.theme-toggle {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--ink); }

.minimal-hero {
  min-height: 500px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 84px 0 94px;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(54px, 9vw, 112px);
  line-height: .94;
  letter-spacing: -.075em;
  color: var(--ink);
}

.what-we-do {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 88px max(18px, calc((100vw - 1120px) / 2)) 96px;
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.section-kicker {
  margin-bottom: 44px;
  color: var(--ink);
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 800;
}
.do-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.do-grid article {
  min-height: 170px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.do-grid strong {
  display: block;
  margin-bottom: 34px;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.04em;
}
.do-grid p {
  max-width: 250px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.clean-projects { padding: 92px 0 110px; }
.clean-heading {
  display: block;
  margin-bottom: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  max-width: 430px;
}
.clean-heading h2 {
  margin: 0;
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: .98;
  letter-spacing: -.06em;
}
.clean-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.project-card {
  min-height: 258px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.tag {
  display: inline-flex;
  padding: 6px 9px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.tag.live { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); color: var(--accent); }
.tag.soon { border-color: color-mix(in srgb, var(--accent-2) 70%, var(--line)); color: #986800; }
h3 {
  margin-bottom: 14px;
  font-size: 21px;
  line-height: 1.08;
  letter-spacing: -.045em;
}
.project-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.project-card a {
  margin-top: auto;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.project-card a:hover { text-decoration: underline; }

.site-footer {
  padding: 34px max(18px, calc((100vw - 1120px) / 2));
  color: var(--footer-text);
  background: var(--footer);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 28px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}
.footer-brand strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}
.footer-brand p {
  margin: 0;
  color: var(--footer-muted);
  font-size: 13px;
  line-height: 1.45;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}
.footer-links a {
  color: var(--footer-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
}
.footer-links a:hover { color: var(--footer-text); }
.copyright {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: var(--footer-muted);
  font-size: 12px;
}

.legal-page { max-width: 900px; padding: 84px 0 72px; }
.legal-page h1 { font-size: clamp(44px, 7vw, 78px); }
.legal-card { margin-top: 34px; padding: 34px; border: 1px solid var(--line); background: var(--panel); }
.legal-card h2 { margin-top: 28px; margin-bottom: 10px; font-size: 24px; letter-spacing: -.03em; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p { color: var(--muted); line-height: 1.7; }
.legal-card a { color: var(--accent); font-weight: 800; }
.updated { margin-top: 28px; font-size: 14px; }

@media (max-width: 900px) {
  .do-grid, .clean-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .minimal-hero { min-height: 410px; padding: 62px 0 76px; }
  h1 { font-size: 58px; }
  .do-grid, .clean-grid { grid-template-columns: 1fr; }
  .what-we-do { padding-top: 64px; padding-bottom: 70px; }
  .clean-projects { padding: 70px 0 78px; }
  .project-card { min-height: 220px; }
  .footer-brand { align-items: flex-start; }
  .legal-card { padding: 22px; }
}

.legal-page .lead {
  max-width: 650px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.compact-footer { margin-top: 0; }
