:root {
  --bg: #ffffff;
  --text: #171717;
  --muted: #5f6368;
  --subtle: #8a8f98;
  --line: rgba(0, 0, 0, 0.08);
  --panel: #fafafa;
  --accent: #0a72ef;
  --accent-soft: #ebf5ff;
  --shadow-card: rgba(0,0,0,0.08) 0 0 0 1px, rgba(0,0,0,0.04) 0 2px 2px, rgba(0,0,0,0.04) 0 10px 20px -18px, #fafafa 0 0 0 1px inset;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, rgba(10,114,239,.08), transparent 34rem), var(--bg);
  font-feature-settings: "liga" 1;
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(18px);
  box-shadow: rgba(0,0,0,.08) 0 1px 0;
}

.brand, nav { display: flex; align-items: center; gap: 18px; }
.brand { font-size: 14px; font-weight: 600; letter-spacing: -.02em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: rgba(0,0,0,.12) 0 0 0 1px, rgba(0,0,0,.08) 0 6px 16px -12px;
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
nav a { font-size: 14px; font-weight: 500; color: #444; }
nav a:hover { color: var(--text); }
.nav-button {
  padding: 8px 13px;
  border-radius: 999px;
  box-shadow: var(--line) 0 0 0 1px;
  background: #fff;
}

.section {
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 86px 0;
}
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - 69px);
  padding-top: clamp(56px, 8vh, 96px);
  padding-bottom: clamp(72px, 10vh, 120px);
  isolation: isolate;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: min(760px, 64vw);
  min-width: 0;
}
.hero-portrait {
  position: absolute;
  z-index: 1;
  right: clamp(-38px, -2vw, 6px);
  bottom: 0;
  display: block;
  width: clamp(340px, min(35vw, 58svh), 510px);
  max-width: none;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 28px 40px rgba(0,0,0,.18));
  -webkit-mask-image: linear-gradient(to bottom, #000 0 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0 86%, transparent 100%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: min(8vw, 90px);
  bottom: 4vh;
  width: clamp(220px, 28vw, 420px);
  height: clamp(90px, 10vw, 150px);
  border-radius: 999px;
  background: rgba(10,114,239,.10);
  filter: blur(34px);
}
.eyebrow {
  margin: 0 0 18px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hero h1, .section-heading h2, .contact h2 {
  margin: 0;
  letter-spacing: -0.055em;
  color: var(--text);
}
.hero h1 {
  max-width: 850px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: .96;
  font-weight: 600;
}
.hero-copy {
  max-width: 680px;
  margin: 28px 0 0;
  font-size: clamp(18px, 2.3vw, 21px);
  line-height: 1.65;
  color: var(--muted);
}
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}
.button.primary { background: #171717; color: #fff; }
.button.secondary { background: #fff; box-shadow: var(--line) 0 0 0 1px; }

.grid-section, .timeline-section { border-top: 1px solid rgba(0,0,0,.08); }
.section-heading { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; margin-bottom: 34px; }
.section-heading.narrow { display: block; max-width: 680px; }
.section-heading h2, .contact h2 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.05;
  font-weight: 600;
}
.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 17px;
}
.card-grid, .post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card, .post-card {
  min-height: 230px;
  padding: 24px;
  border-radius: 14px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow-card);
}
.card-kicker, .post-date {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--subtle);
}
.card h3, .post-card h3, .timeline-item h3 {
  margin: 16px 0 10px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.035em;
}
.card p, .post-card p, .timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 22px;
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--line) 0 0 0 1px;
}
.timeline-item > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-weight: 500;
}
.timeline-item h3 { margin-top: 4px; }

.post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-card { min-height: 190px; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-2px); box-shadow: rgba(0,0,0,0.12) 0 0 0 1px, rgba(0,0,0,0.08) 0 10px 28px -20px; }
.post-card.muted { background: #fafafa; }

.contact {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px;
  align-items: center;
  border-top: 1px solid rgba(0,0,0,.08);
}
.contact-links { display: grid; gap: 10px; }
.contact-links a {
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--line) 0 0 0 1px;
  font-weight: 500;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 30px clamp(20px, 5vw, 56px);
  color: var(--subtle);
  font-size: 13px;
  border-top: 1px solid rgba(0,0,0,.08);
}

@media (max-width: 780px) {
  .site-header { align-items: flex-start; gap: 14px; flex-direction: column; }
  nav { gap: 12px; flex-wrap: wrap; }
  .hero {
    align-items: flex-start;
    min-height: calc(100svh - 118px);
    padding-top: 72px;
    padding-bottom: 300px;
  }
  .hero-content { max-width: 100%; }
  .hero-portrait {
    right: 50%;
    bottom: 0;
    width: min(78vw, 320px);
    transform: translateX(54%);
  }
  .hero::after {
    right: 50%;
    bottom: 3vh;
    width: 260px;
    height: 95px;
    transform: translateX(55%);
  }
  .section { padding: 58px 0; }
  .section-heading, .contact { grid-template-columns: 1fr; }
  .card-grid, .timeline, .post-list { grid-template-columns: 1fr; }
  .hero h1 { letter-spacing: -.045em; font-size: clamp(38px, 11vw, 44px); }
  footer { flex-direction: column; }
}

@media (max-width: 480px) {
  .section { width: calc(100vw - 48px); }
  .hero {
    min-height: calc(100svh - 116px);
    padding-bottom: 286px;
  }
  .hero h1 { font-size: clamp(34px, 9.8vw, 40px); line-height: 1; }
  .hero-copy { font-size: 17px; line-height: 1.6; }
  .hero-portrait { width: min(80vw, 305px); }
}
