:root {
  color-scheme: light;
  --text: #111114;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.12);
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --soft: #f5f5f7;
  --blue: #0066cc;
  --blue-dark: #004c99;
  --green: #2f7d5f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 28px 80px rgba(0, 0, 0, 0.13);
  --motion: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, #ffffff 0%, #f5f5f7 46%, #ffffff 100%);
}

body.is-ready .hero-copy {
  animation: heroRise 900ms var(--motion) both;
}

body.is-ready .avatar-stage {
  animation: heroRise 900ms 120ms var(--motion) both;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 251, 253, 0.78);
  backdrop-filter: saturate(180%) blur(18px);
}

.brand {
  font-size: 17px;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 13px;
  color: #333336;
}

.nav a {
  transition: color 160ms ease;
}

.nav a:hover {
  color: var(--blue);
}

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

.hero {
  min-height: calc(100vh - 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 56px;
  padding: 72px 0 58px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(31px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.15;
}

.hero-text,
.prose p,
.feature-card p,
.project-card p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 30px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  transition:
    transform 220ms var(--motion),
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.button:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 10px 24px rgba(0, 102, 204, 0.16);
}

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

.button-primary:hover {
  background: var(--blue-dark);
}

.button-secondary {
  color: var(--blue);
  border: 1px solid rgba(0, 102, 204, 0.28);
  background: rgba(255, 255, 255, 0.72);
}

.avatar-stage {
  justify-self: center;
  width: min(100%, 390px);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform-origin: center;
  transition:
    transform 420ms var(--motion),
    box-shadow 420ms ease,
    border-color 420ms ease,
    background 420ms ease;
}

.avatar-stage:hover {
  border-color: rgba(0, 102, 204, 0.26);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px) scale(1.018);
}

.avatar-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 22px;
  object-fit: cover;
  image-rendering: auto;
  background: #eef6ff;
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 96px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-band div {
  min-height: 116px;
  padding: 24px;
  border-right: 1px solid var(--line);
  transition:
    transform 360ms var(--motion),
    background 360ms ease,
    box-shadow 360ms ease;
}

.metric-band div:hover {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.07);
  transform: translateY(-3px) scale(1.01);
}

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

.metric-band strong,
.metric-band span {
  display: block;
}

.metric-band strong {
  margin-bottom: 8px;
  font-size: 24px;
}

.metric-band span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  padding: 18px 0 108px;
}

.prose p {
  margin-bottom: 22px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 108px;
}

.feature-card,
.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  transform-origin: center;
  transition:
    transform 380ms var(--motion),
    box-shadow 380ms ease,
    border-color 380ms ease;
}

.feature-card::after,
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.12), transparent 42%);
  opacity: 0;
  transition: opacity 380ms ease;
}

.feature-card:hover,
.project-card:hover {
  border-color: rgba(0, 102, 204, 0.24);
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px) scale(1.018);
}

.feature-card:hover::after,
.project-card:hover::after {
  opacity: 1;
}

.feature-card {
  min-height: 260px;
  padding: 28px;
}

.project-list {
  display: grid;
  gap: 16px;
  padding-bottom: 108px;
}

.project-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr auto;
  align-items: center;
  gap: 24px;
  min-height: 168px;
  padding: 28px;
}

.project-kicker {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.project-card p {
  margin-bottom: 0;
}

.project-card span {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.github-band {
  background: #111114;
  color: #ffffff;
}

.github-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 300px;
}

.github-inner h2 {
  margin-bottom: 0;
}

.github-note {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 17px;
  line-height: 1.55;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  color: var(--muted);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  filter: blur(10px);
  transition:
    opacity 780ms var(--motion),
    transform 780ms var(--motion),
    filter 780ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

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

.feature-card.reveal.is-visible:hover,
.project-card.reveal.is-visible:hover {
  transform: translateY(-6px) scale(1.018);
}

.metric-band div.reveal.is-visible:hover {
  transform: translateY(-3px) scale(1.01);
}

.feature-card.reveal,
.project-card.reveal,
.metric-band div.reveal {
  transition:
    opacity 780ms var(--motion),
    transform 780ms var(--motion),
    filter 780ms ease,
    box-shadow 380ms ease,
    border-color 380ms ease,
    background 380ms ease;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

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

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

  .nav {
    gap: 13px;
  }

  .section-shell,
  .metric-band,
  .footer {
    width: min(100% - 28px, 680px);
  }

  .hero,
  .split-section,
  .feature-grid,
  .project-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 38px;
    padding-top: 56px;
  }

  .avatar-stage {
    width: min(100%, 340px);
  }

  .metric-band {
    grid-template-columns: 1fr;
    margin-bottom: 72px;
  }

  .metric-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .split-section,
  .feature-grid,
  .project-list {
    padding-bottom: 78px;
  }

  .project-card span {
    white-space: normal;
  }

  .github-inner,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .nav a:first-child {
    display: none;
  }

  h1 {
    font-size: 43px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .avatar-stage {
    padding: 18px;
    border-radius: 22px;
  }

  .feature-card,
  .project-card {
    padding: 22px;
  }
}
