:root {
  --ink: #061314;
  --deep: #091b1d;
  --panel: #0f2628;
  --panel-soft: #f4f0e7;
  --paper: #e9e2d5;
  --text: #f7f4eb;
  --muted: #88a1a1;
  --muted-dark: #526263;
  --cyan: #1bd3d8;
  --amber: #d69c45;
  --coral: #ee6b4f;
  --line: rgba(247, 244, 235, 0.14);
  --line-dark: rgba(6, 19, 20, 0.15);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(27, 211, 216, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 211, 216, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 84% 10%, rgba(238, 107, 79, 0.12), transparent 26%),
    radial-gradient(circle at 18% 22%, rgba(27, 211, 216, 0.14), transparent 30%),
    var(--ink);
  background-size: 46px 46px, 46px 46px, auto, auto, auto;
  content: "";
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 18px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 19, 20, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(27, 211, 216, 0.42);
  border-radius: 50%;
  background: rgba(27, 211, 216, 0.12);
  color: var(--cyan);
  font-size: 0.78rem;
  letter-spacing: 0;
  box-shadow: 0 0 28px rgba(27, 211, 216, 0.16);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: rgba(247, 244, 235, 0.72);
  font-size: 0.95rem;
  font-weight: 800;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--cyan);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 76px);
  padding: clamp(42px, 7vw, 96px) clamp(20px, 4vw, 64px) 52px;
}

.hero-media {
  position: relative;
  order: 2;
  margin: 0;
}

.hero-media::before,
.hero-media::after {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  content: "";
  filter: blur(34px);
}

.hero-media::before {
  width: 46%;
  height: 46%;
  right: 8%;
  top: -8%;
  background: rgba(27, 211, 216, 0.2);
}

.hero-media::after {
  width: 38%;
  height: 38%;
  bottom: -10%;
  left: 10%;
  background: rgba(214, 156, 69, 0.16);
}

.hero-media img {
  width: 100%;
  min-height: 430px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(27, 211, 216, 0.24);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 740px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.2rem, 7.4vw, 7.2rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2.15rem, 4vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.23rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-text {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(247, 244, 235, 0.76);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid rgba(27, 211, 216, 0.62);
  border-radius: 999px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  background: var(--cyan);
  color: var(--ink);
  box-shadow: 0 16px 32px rgba(27, 211, 216, 0.2);
}

.button.secondary {
  background: rgba(247, 244, 235, 0.04);
  color: var(--text);
}

.section {
  padding: clamp(60px, 9vw, 118px) clamp(20px, 4vw, 64px);
}

.signal-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: rgba(27, 211, 216, 0.2);
}

.metric {
  min-height: 164px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(27, 211, 216, 0.09), transparent 44%),
    var(--panel);
  color: var(--text);
}

.metric strong {
  display: block;
  color: var(--amber);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
}

.metric span {
  display: block;
  max-width: 310px;
  margin-top: 10px;
  color: rgba(247, 244, 235, 0.7);
  font-weight: 700;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

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

.lab-section {
  background: var(--paper);
  color: var(--ink);
}

.lab-section .eyebrow {
  color: var(--coral);
}

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

.lab-card {
  min-height: 340px;
  padding: 28px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #fffaf0;
}

.lab-card p:not(.project-type) {
  color: var(--muted-dark);
}

.lab-card .tag-list li {
  color: #0c6266;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 390px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(27, 211, 216, 0.08), transparent 38%),
    rgba(15, 38, 40, 0.92);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
}

.project-card.featured {
  background:
    linear-gradient(145deg, rgba(27, 211, 216, 0.18), transparent 40%),
    linear-gradient(315deg, rgba(238, 107, 79, 0.12), transparent 44%),
    #102f31;
}

.project-card p {
  color: rgba(247, 244, 235, 0.72);
}

.project-type {
  margin: 0 0 16px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  color: var(--cyan);
  font-weight: 900;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li,
.skill-cloud span {
  padding: 7px 11px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.tag-list li {
  color: rgba(247, 244, 235, 0.84);
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(30px, 6vw, 80px);
  background: var(--paper);
  color: var(--ink);
}

.split .eyebrow,
.contact-section .eyebrow {
  color: var(--coral);
}

.sticky-heading {
  position: sticky;
  top: 112px;
  align-self: start;
  margin-bottom: 0;
}

.timeline {
  border-top: 1px solid var(--line-dark);
}

.timeline-item {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: clamp(18px, 4vw, 46px);
  padding: 34px 0;
  border-bottom: 1px solid var(--line-dark);
}

.timeline-item span {
  color: var(--coral);
  font-weight: 900;
}

.timeline-item p {
  max-width: 780px;
  margin: 12px 0 0;
  color: var(--muted-dark);
}

.bio-section {
  background:
    linear-gradient(90deg, rgba(27, 211, 216, 0.08), transparent 36%),
    var(--deep);
  color: var(--text);
}

.bio-card {
  max-width: 1040px;
}

.bio-card p:not(.eyebrow) {
  max-width: 880px;
  color: rgba(247, 244, 235, 0.75);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.skill-cloud span {
  color: var(--cyan);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.75fr);
  gap: clamp(26px, 6vw, 80px);
  align-items: start;
  background: var(--panel-soft);
  color: var(--ink);
}

.contact-panel {
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #fffaf0;
}

.contact-panel a {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-dark);
  color: #0c6266;
  font-size: 1.08rem;
  font-weight: 900;
}

.contact-panel span {
  color: var(--muted-dark);
  font-weight: 700;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .split,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    order: 0;
  }

  .hero-media img {
    min-height: 300px;
  }

  h1 {
    max-width: 12ch;
  }

  .signal-band,
  .lab-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 300px;
  }

  .sticky-heading {
    position: static;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: auto;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(2.55rem, 14vw, 4.1rem);
  }

  .button {
    width: 100%;
  }

  .metric,
  .lab-card,
  .project-card,
  .contact-panel {
    padding: 22px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
