:root {
  color-scheme: dark;
  --bg: #080d10;
  --bg-2: #0c1418;
  --panel: rgba(17, 27, 33, 0.88);
  --panel-strong: #111b21;
  --ink: #eef7f6;
  --muted: #9eb2b6;
  --line: rgba(132, 169, 172, 0.24);
  --line-strong: rgba(66, 214, 176, 0.36);
  --accent: #42d6b0;
  --accent-2: #ffb454;
  --blue: #6fb7ff;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(66, 214, 176, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 214, 176, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 78% 8%, rgba(66, 214, 176, 0.12), transparent 26%),
    radial-gradient(circle at 18% 36%, rgba(255, 180, 84, 0.08), transparent 28%),
    var(--bg);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid rgba(66, 214, 176, 0.85);
  outline-offset: 4px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(8, 13, 16, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  width: 13px;
  height: 13px;
  border: 2px solid var(--accent);
  box-shadow: 0 0 18px rgba(66, 214, 176, 0.72);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

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

.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 13, 16, 0.96) 0%, rgba(8, 13, 16, 0.82) 48%, rgba(8, 13, 16, 0.32) 82%),
    linear-gradient(0deg, rgba(8, 13, 16, 0.9), rgba(8, 13, 16, 0.08) 52%);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  align-items: end;
  gap: clamp(28px, 6vw, 72px);
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 84px 0 64px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
a,
span,
strong,
small {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(44px, 8vw, 98px);
}

h2 {
  font-size: clamp(32px, 5vw, 62px);
}

h3 {
  font-size: 23px;
}

.lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: #d8e8e7;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.hero-subtitle {
  margin: 12px 0 0;
  color: var(--accent);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 850;
  line-height: 1.15;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-badges span {
  padding: 9px 12px;
  border: 1px solid rgba(66, 214, 176, 0.32);
  border-radius: 999px;
  background: rgba(66, 214, 176, 0.08);
  color: #c9fff2;
  font-size: 13px;
  font-weight: 800;
}

.lead.secondary {
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 19px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  max-width: 100%;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

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

.button.ghost {
  background: rgba(238, 247, 246, 0.06);
  color: var(--ink);
}

.signal-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: rgba(8, 13, 16, 0.66);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.signal-panel div {
  padding: 14px;
  border: 1px solid rgba(132, 169, 172, 0.16);
  background: rgba(238, 247, 246, 0.035);
}

.signal-panel span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 850;
}

.signal-panel strong,
.signal-panel small {
  display: block;
}

.signal-panel small {
  color: var(--muted);
}

.section,
.lab-strip,
.final-block {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

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

.about {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 7vw, 96px);
}

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

.section-heading.with-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: end;
  gap: 28px;
}

.section-heading.with-note p,
.about-text p,
.final-block p,
.stack-card p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.about-text {
  display: grid;
  gap: 18px;
}

.lab-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.lab-item {
  min-height: 174px;
  padding: 22px;
  background: rgba(11, 20, 24, 0.96);
}

.lab-item span,
.project-meta,
.contact-status {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lab-item strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.lab-item p {
  margin: 12px 0 0;
  color: var(--muted);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.focus-card,
.project-card,
.stack-card,
.final-block {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.focus-card {
  min-height: 270px;
  padding: 22px;
}

.focus-card-main {
  grid-column: span 2;
}

.focus-card-secondary {
  grid-column: span 3;
  min-height: 210px;
}

.icon {
  display: grid;
  width: 48px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid rgba(66, 214, 176, 0.35);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.focus-card p,
.project-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.project-card p strong {
  color: var(--ink);
}

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

.project-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-card.featured {
  grid-column: span 3;
}

.project-card.image-card {
  grid-column: span 2;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.project-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(66, 214, 176, 0.3);
  border-radius: 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.badges,
.interest-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badges {
  align-content: flex-start;
  margin-top: 18px;
}

.project-card .badges {
  margin-top: auto;
  padding-top: 18px;
}

.badges span,
.interest-cloud span {
  border: 1px solid rgba(111, 183, 255, 0.25);
  background: rgba(111, 183, 255, 0.08);
  color: #cae6ff;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
}

.badges span {
  padding: 8px 10px;
}

.interest-cloud span {
  padding: 12px 14px;
}

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

.stack-grid.compact .stack-card {
  min-height: 0;
}

.stack-badges {
  margin-top: 16px;
}

.stack-card {
  padding: 22px;
  min-height: 210px;
}

.stack-card h3 {
  color: var(--accent);
}

.stack-card p {
  margin-top: 14px;
  font-size: 16px;
}

.workbench {
  border-bottom: 1px solid var(--line);
}

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

.workbench-grid article {
  margin: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.workbench-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.workbench-grid h3,
.workbench-grid p {
  margin-right: 20px;
  margin-left: 20px;
}

.workbench-grid h3 {
  margin-top: 20px;
}

.workbench-grid p {
  margin-top: 10px;
  margin-bottom: 22px;
  color: var(--muted);
}

.personal-note {
  color: #c4d5d7;
}

.interests {
  border-bottom: 0;
}

.final-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: stretch;
  gap: 18px;
  margin-bottom: 56px;
  padding: clamp(18px, 3vw, 26px);
}

.contact-copy,
.contact-card {
  min-width: 0;
}

.contact-copy {
  padding: clamp(10px, 2vw, 18px);
}

.final-block h2 {
  max-width: 820px;
  margin-bottom: 18px;
}

.final-block p + p {
  margin-top: 14px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(66, 214, 176, 0.13), rgba(111, 183, 255, 0.06)),
    rgba(8, 13, 16, 0.52);
}

.contact-card .button {
  width: 100%;
}

.contact-card p {
  font-size: 14px;
}

@media (max-width: 1080px) {
  .hero-content,
  .about,
  .section-heading.with-note,
  .final-block {
    grid-template-columns: 1fr;
  }

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

  .focus-grid,
  .stack-grid,
  .lab-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .focus-card-main,
  .focus-card-secondary {
    grid-column: auto;
  }

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

  .focus-card,
  .project-card,
  .project-card.featured,
  .project-card.image-card {
    grid-column: auto;
  }
}

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

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(8, 13, 16, 0.95), rgba(8, 13, 16, 0.74));
  }

  .hero-content {
    padding: 72px 0 54px;
  }

  .signal-panel,
  .focus-grid,
  .project-grid,
  .stack-grid,
  .workbench-grid,
  .lab-strip {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 56px 0;
  }

  .lab-strip {
    margin-top: 18px;
  }
}
