:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #5b6472;
  --line: #d9dee5;
  --soft-line: #e9edf1;
  --accent: #0f5f78;
  --accent-strong: #0a4457;
  --accent-soft: #dff0f4;
  --signal: #d64f38;
  --max: 1180px;
  --radius: 24px;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  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;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(15, 95, 120, 0.35);
  outline-offset: 4px;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 222, 229, 0.82);
  background: rgba(246, 247, 244, 0.92);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

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

.nav-links .nav-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
}

.hero {
  padding: 92px 0 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 72px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 780;
}

.hero .lead {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.55;
}

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

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
}

.button.primary {
  background: var(--ink);
  color: white;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button:hover {
  transform: translateY(-1px);
}

.hero-note {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-visual {
  min-height: 430px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(var(--soft-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--soft-line) 1px, transparent 1px),
    var(--surface);
  background-size: 36px 36px;
  box-shadow: var(--shadow);
}

.hero-visual svg {
  width: 100%;
  height: 100%;
  min-height: 430px;
  display: block;
}

.metrics-strip {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}

.metric strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 88px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 50px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.section-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 18px;
  max-width: 650px;
}

.projects {
  display: grid;
  gap: 22px;
}

.project {
  display: grid;
  grid-template-columns: minmax(310px, 0.86fr) minmax(0, 1.14fr);
  min-height: 380px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.project:nth-child(even) .project-visual {
  order: 2;
}

.project:nth-child(even) .project-copy {
  order: 1;
}

.project-visual {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 34px;
  border-right: 1px solid var(--soft-line);
  background: #eef2f2;
}

.project:nth-child(even) .project-visual {
  border-right: 0;
  border-left: 1px solid var(--soft-line);
}

.project-visual svg {
  width: min(100%, 390px);
  height: auto;
  display: block;
}

.project-copy {
  padding: clamp(34px, 5vw, 62px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-index {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project h3 {
  margin: 8px 0 11px;
  font-size: clamp(29px, 4vw, 43px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.project p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  max-width: 650px;
}

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

.tag {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #344152;
  font-size: 12px;
  font-weight: 700;
}

.project-links {
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.project-links a {
  color: var(--accent-strong);
  font-weight: 760;
  text-underline-offset: 4px;
}

.capstone {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: 60px;
  align-items: center;
  padding: clamp(35px, 6vw, 76px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--ink);
  color: white;
}

.capstone .eyebrow {
  color: #8bd0df;
}

.capstone h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.capstone p {
  margin: 22px 0 0;
  color: #c9d2dc;
  font-size: 18px;
}

.capstone ul {
  margin: 26px 0 0;
  padding-left: 1.2em;
  color: #e8edf2;
}

.capstone li + li {
  margin-top: 9px;
}

.capstone-visual {
  min-height: 390px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: #0b1018;
  overflow: hidden;
}

.capstone-visual svg {
  width: 100%;
  height: auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.about-grid h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.about-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.capability-list {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
  padding: 0;
  list-style: none;
}

.capability-list li {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.site-footer {
  padding: 38px 0 46px;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .hero {
    padding-top: 62px;
  }

  .hero-grid,
  .section-heading,
  .capstone,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .section-heading,
  .capstone,
  .about-grid {
    gap: 34px;
  }

  .project,
  .project:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .project-visual,
  .project:nth-child(even) .project-visual {
    order: 1;
    border: 0;
    border-bottom: 1px solid var(--soft-line);
    min-height: 300px;
  }

  .project-copy,
  .project:nth-child(even) .project-copy {
    order: 2;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 26px, var(--max));
  }

  .site-header {
    position: static;
  }

  .nav {
    min-height: 66px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .hero h1 {
    font-size: clamp(42px, 14vw, 64px);
  }

  .hero-visual {
    min-height: 340px;
  }

  .hero-visual svg {
    min-height: 340px;
  }

  .metrics-strip {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 0;
  }

  .project-copy {
    padding: 30px 24px 34px;
  }

  .project-visual {
    padding: 22px;
    min-height: 260px;
  }

  .capstone {
    padding: 30px 22px;
  }

  .capstone-visual {
    min-height: 300px;
  }

  .capability-list {
    grid-template-columns: 1fr;
  }
}

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

  .button:hover {
    transform: none;
  }
}
