:root {
  --navy-950: #071525;
  --navy-900: #0b1d33;
  --navy-800: #102947;
  --navy-700: #173c62;
  --cyan-500: #16bfe6;
  --green-500: #34d399;
  --gray-50: #f7fafc;
  --gray-100: #eef3f7;
  --gray-200: #dce6ee;
  --gray-500: #627184;
  --gray-700: #314052;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(7, 21, 37, 0.12);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--navy-950);
  background: #fbfdff;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--cyan-500);
  outline-offset: 2px;
}

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

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 12px clamp(18px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 230, 238, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(145deg, var(--navy-800), #0f8fad);
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.1;
}

.brand small {
  color: var(--gray-500);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 24px);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
}

.site-nav a {
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.text-link:hover {
  color: #0e91af;
}

.site-nav a[aria-current="page"] {
  color: #0e91af;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy-950);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: min(720px, calc(100vh - 74px));
  padding: clamp(46px, 6vw, 82px) clamp(18px, 5vw, 72px) clamp(42px, 6vw, 70px);
  overflow: hidden;
  color: var(--navy-950);
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 252, 0.94)),
    radial-gradient(circle at 82% 16%, rgba(22, 191, 230, 0.18), transparent 30%),
    var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: min(78vh, 680px);
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 41, 71, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 41, 71, 0.07) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent);
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: #0e91af;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #0e91af;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 6vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 720px;
  color: var(--gray-700);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

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

.btn-primary {
  color: var(--navy-950);
  background: var(--green-500);
  box-shadow: 0 14px 28px rgba(52, 211, 153, 0.22);
}

.btn-secondary {
  color: var(--navy-950);
  border-color: var(--gray-200);
  background: var(--white);
}

.hero-panel {
  padding: 26px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.panel-topline {
  height: 4px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan-500), var(--green-500));
}

.metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-200);
}

.metric strong {
  font-size: 2.4rem;
  line-height: 1;
}

.metric span {
  color: var(--gray-500);
  text-align: right;
}

.deployment-note {
  margin-top: 22px;
  color: var(--gray-700);
  font-size: 0.95rem;
}

.section {
  padding: clamp(66px, 8vw, 112px) clamp(18px, 5vw, 72px);
}

.section-highlight {
  background: var(--gray-50);
}

.muted-section {
  background: linear-gradient(180deg, #f8fbfd, #eef4f8);
}

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

.section-heading p:not(.eyebrow) {
  color: var(--gray-500);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.project-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-900);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--navy-950);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green-500);
}

.status.prototype::before {
  background: var(--cyan-500);
}

.status.development::before {
  background: #f59e0b;
}

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

.project-body p {
  color: var(--gray-500);
}

.project-area {
  margin-bottom: 8px;
  color: #0e91af;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-meta {
  display: grid;
  gap: 14px;
  margin: 18px 0 22px;
}

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

.meta-block span {
  display: block;
  margin-bottom: 6px;
  color: var(--gray-500);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.meta-block p {
  margin-bottom: 0;
}

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

.tag {
  padding: 5px 8px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-50);
  font-size: 0.8rem;
  font-weight: 700;
}

.project-link {
  margin-top: auto;
  color: var(--navy-950);
  background: var(--gray-100);
}

.project-link:hover {
  background: var(--navy-950);
  color: var(--white);
}

.people-grid,
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border: 1px dashed var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
}

.tool-card p {
  color: var(--gray-500);
}

.tool-badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tool-card .tag-list {
  margin: 14px 0 18px;
}

.tool-link {
  margin-top: auto;
}

.person-card,
.links-panel {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(7, 21, 37, 0.08);
}

.person-card {
  padding: 24px;
}

.person-card p {
  color: var(--gray-500);
}

.person-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.person-type,
.person-degree {
  color: #0e91af;
  font-weight: 800;
}

.person-type {
  display: block;
  margin-bottom: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.person-degree {
  margin-bottom: 8px;
}

.text-link {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.links-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.links-panel a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  color: var(--navy-950);
  background: transparent;
  text-decoration: none;
}

.links-panel span {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.links-panel strong {
  display: block;
  margin-top: 0;
  color: var(--navy-950);
  font-size: 0.95rem;
}

.site-footer {
  padding: 34px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: #05101d;
  font-size: 0.92rem;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.6fr);
  gap: 28px;
  align-items: start;
}

.footer-main strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 1.05rem;
}

.footer-main p {
  margin-bottom: 0;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
}

.footer-column span {
  display: block;
  margin-bottom: 8px;
  color: var(--green-500);
  font-weight: 800;
}

.footer-column p + p {
  margin-top: 4px;
}

.loading,
.error {
  color: var(--gray-500);
}

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

  .site-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
  }

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

  .site-nav a {
    padding: 13px 8px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

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

  .brand small {
    display: none;
  }

  .site-nav {
    top: 68px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .metric {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric span {
    text-align: left;
  }

  .meta-columns {
    grid-template-columns: 1fr;
  }

  .footer-main,
  .footer-columns {
    grid-template-columns: 1fr;
  }
}
