:root {
  --bg: #f6f6f2;
  --surface: #ffffff;
  --text: #111111;
  --muted: #66665f;
  --line: #dcdcd4;
  --accent: #1f4fff;
  --accent-dark: #1538b5;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.page-shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.site-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .14em;
  text-decoration: none;
}

nav { display: flex; align-items: center; gap: 26px; }
nav a { text-decoration: none; color: var(--muted); font-size: 14px; }
nav a:hover { color: var(--text); }
.nav-cta {
  color: #fff;
  background: var(--text);
  padding: 10px 15px;
  border-radius: 999px;
}

.hero {
  min-height: 630px;
  display: grid;
  grid-template-columns: 1.28fr .72fr;
  gap: 70px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(48px, 7vw, 88px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 760;
}

.lede {
  max-width: 680px;
  margin: 32px 0 0;
  font-size: 19px;
  color: var(--muted);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}
.primary { background: var(--accent); color: white; }
.primary:hover { background: var(--accent-dark); }
.secondary { border: 1px solid var(--line); background: rgba(255,255,255,.45); }

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 30px;
  border-radius: 26px;
  box-shadow: 0 18px 60px rgba(0,0,0,.05);
}
.panel-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 28px;
}
.hero-panel strong { font-size: 25px; letter-spacing: -.03em; }
.hero-panel p { color: var(--muted); margin: 10px 0 26px; }
.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.flow span:nth-child(odd) {
  border: 1px solid var(--line);
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--text);
}

.projects { padding: 110px 0 75px; border-bottom: 1px solid var(--line); }
.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.section-heading h2, .about h2, .contact h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -.01em;
}
.section-heading p { margin: 0; color: var(--muted); }
.project-row {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 60px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.project-row h3 { margin: 0 0 10px; font-size: 29px; letter-spacing: -.035em; }
.project-row p { margin: 0; max-width: 720px; color: var(--muted); }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.project-meta span {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.45);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.about {
  padding: 100px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  border-bottom: 1px solid var(--line);
}
.about-copy { max-width: 710px; }
.about-copy p { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.about-copy .disclosure { margin-top: 24px; font-size: 14px; color: var(--muted); }

.contact {
  min-height: 250px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.contact a { font-size: clamp(22px, 4vw, 46px); letter-spacing: -.04em; text-decoration-thickness: 1px; text-underline-offset: 7px; }

footer {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 820px) {
  .page-shell { width: min(calc(100% - 28px), var(--max)); }
  .site-header { min-height: 70px; }
  nav a:not(.nav-cta) { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 40px; padding: 78px 0 70px; }
  .hero h1 { font-size: clamp(44px, 13vw, 66px); }
  .lede { font-size: 17px; }
  .hero-panel { border-radius: 20px; padding: 24px; }
  .section-heading, .project-row, .about, .contact { grid-template-columns: 1fr; }
  .projects { padding: 78px 0 56px; }
  .project-row { gap: 24px; }
  .about { padding: 76px 0; }
  .about-copy p { font-size: 19px; }
  .contact { padding: 60px 0; min-height: auto; }
  footer { min-height: 76px; flex-direction: column; justify-content: center; align-items: flex-start; gap: 5px; }
}
