:root {
  --bg: #ecf3f6;
  --surface: #f0feff;
  --surface-strong: #171717;
  --text: #171717;
  --muted: #69635b;
  --line: #c0d9d7;
  --accent: #3c2bbd;
  --accent-soft: #597baa;
  --green: #255f4b;
  --blue: #244c73;
  --max: 1180px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

p {
  margin-top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  max-width: var(--max);
  margin: auto;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
}

.brand {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.brand span,
h1 span,
.contact span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.site-nav a {
  color: var(--muted);
  font-weight: 800;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

.hero,
.section,
.metrics,
.contact,
footer {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.hero {
  min-height: calc(100vh - 86px);
  padding: 86px 24px 72px;
  display: flex;
  align-items: center;
}

.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 56px;
  align-items: center;
}

.eyebrow,
.section-label,
.panel-kicker {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 24px;
}

h1,
h2,
h3 {
  margin-top: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(46px, 8vw, 92px);
  line-height: .96;
  margin-bottom: 30px;
}

h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1;
  margin-bottom: 0;
}

h3 {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-copy {
  max-width: 680px;
  font-size: 19px;
  color: var(--muted);
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--text);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.primary {
  background: var(--surface-strong);
  color: #fff;
}

.secondary {
  background: transparent;
}

.secondary:hover,
.secondary:focus-visible {
  background: var(--surface);
}

.hero-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 18px 18px 0 var(--accent-soft);
}

.profile-avatar {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--surface-strong);
  color: #fff;
  font-weight: 900;
  font-size: 24px;
}

.hero-panel h2 {
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 28px;
  line-height: 1.16;
  margin-bottom: 28px;
}

.hero-panel dl {
  margin: 0;
}

.hero-panel div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.hero-panel dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.hero-panel dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.metrics {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metrics div {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 34px;
  line-height: 1;
}

.metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.section {
  padding: 120px 24px;
  border-bottom: 1px solid var(--line);
}

.two-column {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 52px;
}

.section-copy {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.section-copy p:last-child {
  margin-bottom: 0;
}

.stack-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.stack-grid article,
.project-card {
  min-height: 238px;
  padding: 30px 24px 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stack-grid article:nth-child(3n),
.project-card:nth-child(3n) {
  border-right: 0;
}

.stack-grid span,
.experience-list span,
.project-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.stack-grid h3,
.experience-list h3,
.project-card h3 {
  margin-top: 22px;
}

.stack-grid p,
.experience-list p,
.project-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.project-card:nth-child(2) span {
  color: var(--green);
}

.project-card:nth-child(3) span {
  color: var(--blue);
}

.experience-list {
  border-top: 1px solid var(--line);
}

.experience-list>div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.experience-list h3 {
  margin-top: 0;
}

.experience-list p {
  grid-column: 2;
}

.contact {
  padding: 128px 24px 138px;
}

.contact h2 {
  max-width: 780px;
}

.contact-link {
  font-size: 18px;
  font-weight: 800;
  border-bottom: 1px solid var(--text);
  padding-bottom: 5px;
}

footer {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: 70px;
  }

  .hero-grid,
  .two-column,
  .stack-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 520px;
    box-shadow: 10px 10px 0 var(--accent-soft);
  }

  .stack-grid article,
  .project-card,
  .stack-grid article:nth-child(3n),
  .project-card:nth-child(3n) {
    border-right: 0;
  }

  .two-column {
    gap: 38px;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 16px 18px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 74px 18px auto 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 18px 60px rgba(23, 23, 23, .12);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero,
  .section,
  .contact {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  h1 {
    font-size: clamp(42px, 15vw, 62px);
  }

  .hero-copy,
  .section-copy {
    font-size: 16px;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button,
  .contact-link {
    width: 100%;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics div:nth-child(2) {
    border-right: 0;
  }

  .metrics div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding-top: 86px;
    padding-bottom: 86px;
  }

  .experience-list>div {
    grid-template-columns: 44px 1fr;
  }

  footer {
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .metrics {
    grid-template-columns: 1fr;
  }

  .metrics div,
  .metrics div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics div:last-child {
    border-bottom: 0;
  }

  .hero-panel {
    padding: 24px;
  }
}