:root {
  --ink: #f2f7f3;
  --muted: #a8b5b1;
  --soft: #0f1110;
  --surface: #171a19;
  --surface-strong: #1f2a27;
  --line: #2d3835;
  --accent: #4ee0c0;
  --accent-dark: #85ead8;
  --accent-alt: #ff8fc6;
  --warm: #f0a264;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0 0 auto;
  z-index: -1;
  height: 300px;
  background: linear-gradient(180deg, rgba(16, 58, 51, 0.88) 0%, rgba(15, 17, 16, 0) 100%);
  content: "";
}

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

a:hover {
  color: var(--accent-dark);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 14px max(24px, calc((100vw - var(--max-width)) / 2));
  border-bottom: 1px solid rgba(78, 224, 192, 0.16);
  background: rgba(15, 17, 16, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-grid;
  width: 46px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
}

.site-nav a {
  min-height: 36px;
  padding: 7px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.site-nav a:hover {
  background: var(--surface-strong);
  color: var(--accent-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  width: min(var(--max-width), calc(100% - 40px));
  min-height: 76svh;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) 0 clamp(28px, 5vw, 56px);
}

.hero__content {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 750;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.button:hover {
  border-color: rgba(78, 224, 192, 0.42);
  color: var(--accent-dark);
}

.button--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #07110f;
}

.button--primary:hover {
  background: var(--accent-dark);
  color: #07110f;
}

.hero__portrait {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(78, 224, 192, 0.18);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero__portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 25%;
}

.hero__portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: rgba(15, 17, 16, 0.94);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.hero__portrait figcaption span:first-child {
  color: var(--accent-dark);
}

.snapshot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto clamp(54px, 7vw, 88px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.snapshot article {
  min-height: 126px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.snapshot article:last-child {
  border-right: 0;
}

.snapshot__value {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-alt);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-weight: 850;
  line-height: 1;
}

.snapshot__label {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.section {
  padding: clamp(58px, 8vw, 96px) max(20px, calc((100vw - var(--max-width)) / 2));
}

.section--focus,
.section--timeline {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section__intro {
  max-width: 820px;
  margin-bottom: clamp(26px, 5vw, 44px);
}

.section__intro p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.focus-grid,
.project-grid,
.skill-groups {
  display: grid;
  gap: 18px;
}

.focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.focus-card,
.project-card,
.skill-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.focus-card {
  min-height: 238px;
  padding: 24px;
}

.focus-card::before {
  display: block;
  width: 46px;
  height: 5px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.focus-card:nth-child(2)::before {
  background: var(--accent-alt);
}

.focus-card:nth-child(3)::before {
  background: var(--warm);
}

.focus-card p,
.project-card p,
.timeline__item p {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-list span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(78, 224, 192, 0.24);
  border-radius: 8px;
  padding: 4px 9px;
  background: var(--surface-strong);
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 700;
}

.project-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: stretch;
}

.project-card {
  display: grid;
  min-height: 440px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.project-card--wide {
  background:
    linear-gradient(90deg, rgba(78, 224, 192, 0.14), rgba(23, 26, 25, 0) 54%),
    var(--surface);
}

.project-card__body {
  padding: clamp(24px, 4vw, 38px);
}

.project-card__kicker {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.project-card h3 {
  max-width: 520px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.project-card p {
  max-width: 620px;
}

.project-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.project-card__links a {
  min-height: 36px;
  border-bottom: 2px solid var(--accent);
  color: var(--accent-dark);
  font-weight: 800;
}

.metric-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  margin: 0;
  border-top: 1px solid var(--line);
}

.project-card:not(.project-card--wide) .metric-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-list div {
  min-height: 116px;
  padding: 20px;
  border-right: 1px solid var(--line);
  background: rgba(31, 42, 39, 0.72);
}

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

.metric-list dt {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.25;
}

.timeline {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.timeline__item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 26px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.timeline__item time {
  color: var(--accent-dark);
  font-weight: 850;
}

.timeline__item p {
  max-width: 740px;
  margin: 8px 0 0;
}

.skill-groups {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skill-group {
  padding: 24px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  padding: clamp(58px, 8vw, 96px) max(20px, calc((100vw - var(--max-width)) / 2));
  background: #0a0c0b;
  color: var(--ink);
}

.contact .eyebrow {
  color: var(--accent);
}

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

.contact__links {
  display: grid;
  gap: 10px;
}

.contact__links a {
  min-height: 44px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(242, 247, 243, 0.18);
  color: var(--ink);
  font-weight: 700;
}

.contact__links a:hover {
  color: var(--accent);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px max(20px, calc((100vw - var(--max-width)) / 2));
  background: #070807;
  color: rgba(242, 247, 243, 0.74);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-inline: 20px;
  }

  .site-nav {
    width: 100%;
    padding-bottom: 2px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 46px;
  }

  .hero__portrait {
    max-width: 520px;
  }

  .snapshot,
  .focus-grid,
  .project-grid,
  .skill-groups,
  .contact {
    grid-template-columns: 1fr;
  }

  .snapshot article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .snapshot article:last-child {
    border-bottom: 0;
  }

  .project-card {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .site-nav {
    flex-wrap: wrap;
    overflow-x: visible;
    white-space: normal;
  }

  .site-nav a {
    padding: 6px 9px;
    font-size: 0.88rem;
  }

  .hero,
  .snapshot {
    width: min(100% - 28px, var(--max-width));
  }

  h1 {
    font-size: clamp(2.45rem, 14vw, 4rem);
  }

  .hero__actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero__portrait figcaption {
    display: grid;
  }

  .metric-list,
  .project-card:not(.project-card--wide) .metric-list {
    grid-template-columns: 1fr;
  }

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

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

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

  .site-footer {
    flex-direction: column;
  }
}
