:root {
  --bg: #08111f;
  --bg-soft: #0d1828;
  --surface: #111e2f;
  --surface-2: #16263a;
  --ink: #f8fafc;
  --muted: #9fb0c5;
  --soft: #d5deeb;
  --line: rgba(148, 163, 184, 0.18);
  --teal: #2dd4bf;
  --amber: #f59e0b;
  --navy: #020817;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(45, 212, 191, 0.14), transparent 28rem),
    radial-gradient(circle at 86% 24%, rgba(245, 158, 11, 0.08), transparent 28rem),
    linear-gradient(180deg, #08111f 0%, #0a1321 48%, #070d18 100%);
  color: var(--ink);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

.skip-link {
  background: var(--teal);
  color: var(--navy);
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: -6rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  backdrop-filter: blur(18px);
  background: rgba(8, 17, 31, 0.82);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav,
.hero-grid,
.section,
.contact-section,
.footer {
  margin: 0 auto;
  max-width: 1180px;
  width: min(1180px, calc(100vw - 2rem));
}

.nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 72px;
  padding: 0;
}

.brand,
.nav-links {
  align-items: center;
  display: flex;
}

.brand {
  gap: 0.75rem;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-photo {
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  height: 44px;
  object-fit: cover;
  object-position: center top;
  width: 44px;
}

.nav-links {
  gap: 0.35rem;
}

.nav-links a {
  border-radius: 8px;
  color: var(--soft);
  font-size: 0.93rem;
  font-weight: 750;
  padding: 0.65rem 0.8rem;
}

.nav-links a:hover {
  background: rgba(45, 212, 191, 0.1);
  color: var(--teal);
}

.nav-cta {
  border: 1px solid rgba(45, 212, 191, 0.34);
  color: var(--teal) !important;
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 42px;
  position: relative;
  width: 42px;
}

.nav-toggle span {
  background: var(--ink);
  display: block;
  height: 2px;
  left: 10px;
  position: absolute;
  right: 10px;
  transition: transform 160ms ease, top 160ms ease;
}

.nav-toggle span:first-child {
  top: 15px;
}

.nav-toggle span:last-child {
  top: 25px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

.hero {
  padding: clamp(4rem, 8vw, 7.5rem) 0 4rem;
}

.hero-single {
  display: block;
}

.hero-copy {
  max-width: 1040px;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2rem, 4.5vw, 4rem);
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 1.55rem;
  max-width: 1060px;
  overflow-wrap: anywhere;
}

p,
dd,
li {
  overflow-wrap: anywhere;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.02;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.18rem;
  line-height: 1.28;
}

.hero-actions,
.contact-links,
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.05rem;
}

.button.primary {
  background: var(--teal);
  color: #04201d;
}

.button.secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.quick-facts {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2rem 0 0;
  max-width: 800px;
  padding-top: 1.25rem;
}

.quick-facts dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.quick-facts dd {
  color: var(--ink);
  font-weight: 850;
  margin: 0;
}

.section {
  padding: 4.2rem 0;
}

.section-heading {
  max-width: 760px;
}

.section-heading.wide {
  align-items: end;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 0.95fr 1fr;
  max-width: none;
}

.section-heading.wide p:last-child,
.intro-layout > p,
.project-body p,
.skill-column p,
.credential-list p,
.contact-copy p {
  color: var(--muted);
  line-height: 1.72;
}

.intro-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
}

.intro-layout > p {
  font-size: 1.15rem;
}

.availability-panel,
.skill-column,
.credential-list > div,
.contact-form,
.project-card,
.contact-copy {
  background: linear-gradient(180deg, rgba(22, 38, 58, 0.92), rgba(17, 30, 47, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.availability-panel {
  padding: 1.25rem;
}

.availability-panel ul,
.tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.availability-panel li {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 0.9rem 0;
}

.availability-panel li:first-child {
  border-top: 0;
  padding-top: 0;
}

.project-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.project-card {
  overflow: hidden;
}

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

.project-preview {
  background: #050910;
  min-height: 220px;
  overflow: hidden;
  position: relative;
}

.image-preview {
  aspect-ratio: 16 / 10;
  display: flex;
  min-height: 0;
}

.image-preview img {
  height: 100%;
  object-fit: cover;
  object-position: left top;
  width: 100%;
}

.project-body {
  padding: 1.25rem;
}

.project-type {
  color: var(--teal) !important;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.project-links {
  margin: 1rem 0 0;
}

.project-links a {
  align-items: center;
  background: #020817;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 850;
  min-height: 40px;
  padding: 0.62rem 0.85rem;
}

.project-links a:last-child {
  background: var(--teal);
  border-color: transparent;
  color: #04201d;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag-list li {
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.26);
  border-radius: 999px;
  color: #a7fff3;
  font-size: 0.76rem;
  font-weight: 850;
  padding: 0.4rem 0.62rem;
}

.api-preview {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.1), rgba(59, 130, 246, 0.08));
}

.pipeline-line {
  background: var(--teal);
  height: 4px;
  left: 2rem;
  position: absolute;
  right: 2rem;
  top: 50%;
}

.node {
  align-items: center;
  background: #0b1524;
  border: 2px solid var(--teal);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  font-weight: 900;
  height: 58px;
  justify-content: center;
  position: absolute;
  top: calc(50% - 29px);
  width: 72px;
}

.node.one {
  left: 1.5rem;
}

.node.two {
  left: calc(50% - 36px);
}

.node.three {
  right: 1.5rem;
}

.skills-grid,
.credential-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2rem;
}

.skill-column,
.credential-list > div {
  padding: 1.25rem;
}

.credential-list {
  grid-template-columns: 0.85fr 1.15fr;
}

.contact-section {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  padding: 4.2rem 0;
}

.contact-copy,
.contact-form {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.contact-links a {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  padding: 0.72rem 0.85rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  color: var(--soft);
  display: grid;
  font-weight: 800;
  gap: 0.45rem;
}

.contact-form input,
.contact-form textarea {
  background: #08111f;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  padding: 0.85rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.16);
  outline: 0;
}

.hidden {
  display: none;
}

.footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 1.25rem 2rem;
}

.footer p {
  margin-bottom: 0;
}

.footer a {
  color: var(--teal);
  font-weight: 850;
}

@media (max-width: 980px) {
  .intro-layout,
  .section-heading.wide,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    background: rgba(8, 17, 31, 0.98);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    left: 0;
    padding: 1rem;
    position: absolute;
    right: 0;
    top: 72px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
  }

  .hero {
    padding-top: 3.2rem;
  }

  h1 {
    font-size: 2rem;
    line-height: 1.08;
    max-width: 100%;
  }

  .quick-facts,
  .project-grid,
  .skills-grid,
  .credential-list {
    grid-template-columns: 1fr;
  }

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

  .section,
  .contact-section {
    padding: 3rem 0;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }
}
