:root {
  color-scheme: light;
  --background: #f7f9fb;
  --surface: #ffffff;
  --surface-low: #f2f4f6;
  --surface-mid: #eceef0;
  --surface-high: #e0e3e5;
  --text: #191c1e;
  --muted: #434655;
  --muted-2: #737686;
  --primary: #004ac6;
  --primary-bright: #2563eb;
  --primary-soft: #dbe1ff;
  --outline: #c3c6d7;
  --shadow: 0 22px 60px rgb(15 23 42 / 7%);
  --container: 1120px;
  --radius: 8px;
  --radius-lg: 24px;
  --font-display: "Hanken Grotesk", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-label: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 70%), rgb(247 249 251 / 0%) 360px),
    var(--background);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgb(115 118 134 / 8%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(115 118 134 / 8%) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0, transparent 520px);
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--container), calc(100% - 48px));
  height: 72px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
}

.brand,
.nav,
.hero-actions,
.contact-links,
.chips {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary-bright);
  box-shadow: 0 0 0 6px rgb(37 99 235 / 12%);
}

.nav {
  gap: 6px;
  padding: 5px;
  border: 1px solid rgb(195 198 215 / 64%);
  border-radius: 999px;
  background: rgb(255 255 255 / 68%);
}

.nav a {
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 12px;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--surface-low);
  color: var(--primary);
  outline: 0;
}

.section {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100svh - 72px);
  padding: 80px 0 104px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--primary);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(56px, 12vw, 120px);
  font-weight: 750;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 680;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 640;
}

.lead {
  max-width: 710px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 22px);
}

.hero-actions,
.contact-links {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  line-height: 1.2;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: 0;
}

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

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 12px 32px rgb(37 99 235 / 20%);
}

.button-ghost {
  border-color: var(--outline);
  background: rgb(255 255 255 / 62%);
  color: var(--text);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--primary-bright);
  background: var(--surface);
}

.profile-panel {
  padding: 28px;
  border: 1px solid rgb(195 198 215 / 58%);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 72%);
  box-shadow: var(--shadow);
}

.avatar {
  width: min(180px, 70%);
  margin: 0 auto 28px;
}

.quick-facts {
  display: grid;
  gap: 18px;
  margin: 0;
}

.quick-facts div {
  display: grid;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--surface-mid);
}

.quick-facts div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

dt {
  color: var(--muted-2);
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

dd {
  margin: 0;
  font-weight: 700;
}

.section-heading {
  margin-bottom: 32px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-low);
  transition: transform .18s ease, box-shadow .18s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.project-card img {
  width: 100%;
  aspect-ratio: 14 / 7.5;
  object-fit: cover;
  background: var(--surface-mid);
}

.project-body {
  padding: 28px;
}

.project-body p {
  margin-bottom: 0;
  color: var(--muted);
}

.chips {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.chips span {
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.notes-section,
.contact-section {
  padding-top: 112px;
}

.note-list {
  display: grid;
  border-top: 1px solid var(--outline);
}

.note-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--outline);
}

.note-item span {
  color: var(--muted-2);
  font-family: var(--font-label);
  font-size: 12px;
}

.note-item strong {
  font-size: 18px;
}

.note-item:hover strong,
.note-item:focus-visible strong {
  color: var(--primary);
}

.note-item:focus-visible {
  outline: 2px solid var(--primary-bright);
  outline-offset: 4px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding-bottom: 112px;
}

.contact-section p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 40px;
  border-top: 1px solid var(--outline);
  color: var(--muted-2);
  font-family: var(--font-label);
  font-size: 12px;
}

@media (max-width: 760px) {
  .site-header,
  .section,
  .footer {
    width: min(100% - 32px, var(--container));
  }

  .site-header {
    height: auto;
    min-height: 68px;
    gap: 14px;
  }

  .nav {
    gap: 2px;
  }

  .nav a {
    padding-inline: 10px;
  }

  .intro,
  .project-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .intro {
    gap: 32px;
    min-height: auto;
    padding: 56px 0 80px;
  }

  .profile-panel,
  .project-body {
    padding: 22px;
  }

  .notes-section,
  .contact-section {
    padding-top: 76px;
  }

  .note-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-section {
    align-items: start;
    padding-bottom: 76px;
  }

  .footer {
    display: grid;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .site-header,
  .section,
  .footer {
    width: min(calc(100% - 32px), 360px);
    margin-right: 16px;
    margin-left: 16px;
  }

  .site-header {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .brand {
    width: 100%;
  }

  .nav {
    width: min(100%, 360px);
    justify-content: space-between;
  }

  .nav a {
    flex: 1;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
