@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font-geist-sans: "Geist";
  --font-geist-mono: "Geist Mono";
  --ink: #102a43;
  --ink-strong: #071a2b;
  --blue: #176bff;
  --blue-soft: #dce9ff;
  --paper: #f4f7fb;
  --white: #ffffff;
  --line: #cbd7e6;
  --muted: #5e7083;
  --green: #18a66a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-geist-sans), Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--blue); color: white; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 82px;
  padding: 0 4vw;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(18px);
}

.wordmark { display: inline-flex; align-items: center; gap: 13px; width: fit-content; }
.wordmark span {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--ink-strong);
  color: white;
  font: 600 12px var(--font-geist-mono), monospace;
  letter-spacing: .04em;
}
.wordmark strong { font-size: 15px; letter-spacing: -.02em; }

nav { display: flex; gap: 34px; font-size: 13px; font-weight: 560; }
nav a, .header-cta, .text-link, footer a { transition: color .2s ease; }
nav a:hover, .header-cta:hover, .text-link:hover, footer a:hover { color: var(--blue); }
.header-cta { justify-self: end; font-size: 13px; font-weight: 600; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 82px);
  padding: 9vh 4vw 5vh;
  background-image:
    linear-gradient(rgba(16, 42, 67, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 42, 67, .055) 1px, transparent 1px);
  background-size: 72px 72px;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  right: -15vw;
  top: -35vh;
  width: 70vw;
  height: 70vw;
  border: 1px solid rgba(23, 107, 255, .2);
  border-radius: 50%;
  box-shadow: 0 0 0 6vw rgba(23, 107, 255, .025), 0 0 0 12vw rgba(23, 107, 255, .02);
  pointer-events: none;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
  font: 500 12px var(--font-geist-mono), monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(24, 166, 106, .12);
}

.hero h1 {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 8vh 0 7vh;
  font-size: clamp(62px, 9vw, 150px);
  line-height: .88;
  letter-spacing: -.075em;
  color: var(--ink-strong);
}
.hero h1 span { display: block; color: var(--blue); }

.hero-lower {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 5vw;
  margin-left: 27vw;
}
.hero-lower > p {
  max-width: 670px;
  margin: 0;
  font-size: clamp(18px, 1.7vw, 25px);
  line-height: 1.45;
  letter-spacing: -.025em;
  color: #304d68;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-width: 210px;
  padding: 17px 19px;
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 620;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { border-color: var(--blue); background: var(--blue); color: white; }
.button-primary:hover { background: #0756d9; }
.button-secondary:hover { background: var(--ink-strong); color: white; }

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 8vh;
  border-top: 1px solid var(--line);
}
.hero-stats div { padding: 25px 24px 0 0; border-right: 1px solid var(--line); }
.hero-stats div:not(:first-child) { padding-left: 24px; }
.hero-stats div:last-child { border-right: 0; }
.hero-stats strong { display: block; font-size: clamp(24px, 3vw, 43px); letter-spacing: -.05em; color: var(--ink-strong); }
.hero-stats span { display: block; margin-top: 4px; font: 500 11px var(--font-geist-mono), monospace; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

.section {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 8vw;
  padding: 140px 4vw;
  border-bottom: 1px solid var(--line);
}

.section-number {
  margin: 0 0 42px;
  font: 600 11px var(--font-geist-mono), monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--blue);
}
.section-heading h2, .credentials h2 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(43px, 5.2vw, 82px);
  line-height: .98;
  letter-spacing: -.06em;
  color: var(--ink-strong);
}
.section-heading > p:last-child {
  max-width: 490px;
  margin: 35px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

.capability-grid { display: grid; grid-template-columns: 1fr 1fr; }
.capability-card {
  min-height: 270px;
  padding: 28px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.capability-card:nth-child(2n) { border-right: 1px solid var(--line); }
.capability-card:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
.capability-card > span { font: 500 11px var(--font-geist-mono), monospace; color: var(--blue); }
.capability-card h3 { margin: 65px 0 18px; font-size: 25px; letter-spacing: -.035em; color: var(--ink-strong); }
.capability-card p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--muted); }

.projects-section { display: block; background: var(--ink-strong); color: white; }
.projects-heading { display: grid; grid-template-columns: 1fr 1.2fr auto; align-items: end; gap: 5vw; margin-bottom: 85px; }
.projects-heading .section-number { align-self: start; color: #7aa8ff; }
.projects-heading h2 { color: white; }
.text-link { font-size: 13px; font-weight: 600; color: #b8c9dc; white-space: nowrap; }

.project-list { border-top: 1px solid rgba(255,255,255,.18); }
.project-card {
  display: grid;
  grid-template-columns: 70px 1fr 80px;
  gap: 24px;
  padding: 38px 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
  transition: padding .25s ease, background .25s ease;
}
.project-card:hover { padding-left: 24px; padding-right: 24px; background: rgba(255,255,255,.045); }
.project-index { padding-top: 5px; font: 500 11px var(--font-geist-mono), monospace; color: #78a8ff; }
.project-main > p { margin: 0 0 10px; font: 500 11px var(--font-geist-mono), monospace; text-transform: uppercase; letter-spacing: .09em; color: #9cb2c9; }
.project-main h3 { margin: 0; font-size: clamp(34px, 4vw, 62px); line-height: 1; letter-spacing: -.05em; }
.project-main > span { display: block; max-width: 700px; margin-top: 18px; font-size: 15px; line-height: 1.6; color: #b8c9d8; }
.project-main ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 25px 0 0; list-style: none; }
.project-main li { padding: 7px 10px; border: 1px solid rgba(255,255,255,.2); font: 500 10px var(--font-geist-mono), monospace; text-transform: uppercase; letter-spacing: .06em; }
.project-arrow { align-self: center; justify-self: end; font-size: 34px; color: #78a8ff; transition: transform .2s ease; }
.project-card:hover .project-arrow { transform: translate(4px, -4px); }

.experience-section { align-items: start; }
.sticky-heading { position: sticky; top: 122px; }
.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 130px 1fr; gap: 28px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.timeline-period { margin: 3px 0 0; font: 500 11px var(--font-geist-mono), monospace; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); }
.timeline-item h3 { margin: 0; font-size: 24px; letter-spacing: -.035em; color: var(--ink-strong); }
.timeline-item h4 { margin: 6px 0 16px; font-size: 13px; font-weight: 600; color: var(--muted); }
.timeline-item div > p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted); }

.credentials {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 10vw;
  padding: 140px 4vw;
  background: var(--blue);
  color: white;
}
.credentials .section-number, .credentials h2 { color: white; }
.credential-list { border-top: 1px solid rgba(255,255,255,.4); }
.credential-list div { display: grid; grid-template-columns: 120px 1fr; gap: 26px; padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,.4); }
.credential-list span { font: 500 10px var(--font-geist-mono), monospace; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.credential-list strong { font-size: 17px; line-height: 1.4; }

.contact-section { padding: 140px 4vw 70px; background: #dfe9f4; }
.contact-section h2 { margin: 0; font-size: clamp(68px, 10vw, 160px); line-height: .85; letter-spacing: -.075em; color: var(--ink-strong); }
.contact-copy { max-width: 540px; margin: 48px 0 75px; font-size: 19px; line-height: 1.55; color: var(--muted); }
.contact-email { display: flex; justify-content: space-between; align-items: center; padding: 28px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: clamp(24px, 4vw, 58px); letter-spacing: -.045em; transition: color .2s ease, padding .2s ease; }
.contact-email:hover { padding-left: 18px; padding-right: 18px; color: var(--blue); }
.contact-meta { display: flex; justify-content: space-between; margin-top: 35px; font: 500 11px var(--font-geist-mono), monospace; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.contact-meta div { display: flex; gap: 26px; }
.contact-meta a:hover { color: var(--blue); }

footer { display: flex; justify-content: space-between; padding: 25px 4vw; background: var(--ink-strong); color: #b9cadb; font: 500 11px var(--font-geist-mono), monospace; text-transform: uppercase; letter-spacing: .06em; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 72px; }
  nav { display: none; }
  .hero { min-height: auto; padding-top: 72px; }
  .hero h1 { margin: 60px 0 50px; }
  .hero-lower { grid-template-columns: 1fr; margin-left: 12vw; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats div:nth-child(2) { border-right: 0; }
  .hero-stats div:nth-child(n + 3) { margin-top: 25px; padding-top: 25px; border-top: 1px solid var(--line); }
  .section { grid-template-columns: 1fr; padding-top: 100px; padding-bottom: 100px; }
  .projects-heading { grid-template-columns: 1fr; }
  .projects-heading .section-number { margin-bottom: 0; }
  .sticky-heading { position: static; }
  .credentials { grid-template-columns: 1fr; padding-top: 100px; padding-bottom: 100px; }
}

@media (max-width: 600px) {
  .site-header { padding: 0 20px; }
  .wordmark strong { display: none; }
  .header-cta { font-size: 12px; }
  .hero { padding: 55px 20px 40px; background-size: 48px 48px; }
  .hero-kicker { line-height: 1.5; }
  .hero h1 { font-size: clamp(54px, 16vw, 82px); margin: 52px 0 42px; }
  .hero-lower { margin-left: 0; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-stats { margin-top: 58px; }
  .hero-stats div { padding-right: 12px; }
  .hero-stats div:not(:first-child) { padding-left: 12px; }
  .hero-stats strong { font-size: 26px; }
  .section, .credentials { padding: 82px 20px; }
  .section-heading h2, .credentials h2 { font-size: 46px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card, .capability-card:nth-child(2n), .capability-card:nth-last-child(-n + 2) { min-height: 220px; border: 0; border-top: 1px solid var(--line); }
  .capability-card:last-child { border-bottom: 1px solid var(--line); }
  .project-card { grid-template-columns: 40px 1fr; }
  .project-arrow { display: none; }
  .project-main h3 { font-size: 38px; }
  .timeline-item { grid-template-columns: 1fr; gap: 14px; }
  .credential-list div { grid-template-columns: 1fr; gap: 8px; }
  .contact-section { padding: 82px 20px 45px; }
  .contact-section h2 { font-size: 70px; }
  .contact-copy { margin: 35px 0 55px; }
  .contact-email { font-size: 23px; }
  .contact-meta { flex-direction: column; gap: 22px; line-height: 1.5; }
  footer { padding: 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
