:root {
  color-scheme: light;
  --ink: #161719;
  --muted: #5f656d;
  --paper: #f7f8fb;
  --surface: #ffffff;
  --line: #dce2ea;
  --teal: #0f7f76;
  --coral: #d45a46;
  --gold: #c28a22;
  --violet: #514f9d;
  --hero-ink: #ffffff;
  --shadow: 0 18px 55px rgba(22, 23, 25, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 28px;
  color: #ffffff;
  background: rgba(12, 14, 17, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 8px;
  background: #ffffff;
  color: #161719;
  font-size: 0.78rem;
  font-weight: 850;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 650;
}

.nav a {
  opacity: 0.88;
}

.nav a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  color: var(--hero-ink);
  background-image: url("/assets/hero-lab.png");
  background-position: center;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(to bottom, rgba(247, 248, 251, 0), var(--paper));
  z-index: -1;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 10, 14, 0.82), rgba(8, 10, 14, 0.42) 50%, rgba(8, 10, 14, 0.18)),
    linear-gradient(0deg, rgba(8, 10, 14, 0.68), rgba(8, 10, 14, 0.08) 54%);
}

.hero-content {
  width: min(1060px, calc(100% - 48px));
  margin: 0 auto;
  padding: 132px 0 130px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: #8de6d5;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: 4.8rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 690px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.16rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  font-weight: 750;
}

.button.primary {
  color: #111317;
  background: #ffffff;
  border-color: #ffffff;
}

.button.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading h2,
.contact-section h2 {
  margin-bottom: 0;
  font-size: 2.45rem;
  line-height: 1.08;
  letter-spacing: 0;
}

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

.mission-item {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(22, 23, 25, 0.06);
}

.mission-item:nth-child(1) {
  border-top: 4px solid var(--teal);
}

.mission-item:nth-child(2) {
  border-top: 4px solid var(--coral);
}

.mission-item:nth-child(3) {
  border-top: 4px solid var(--gold);
}

.mission-item h3,
.member-card h3,
.timeline h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.mission-item p,
.member-card p,
.timeline p,
.contact-section p {
  color: var(--muted);
}

.member-points {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.48;
}

.member-points li + li {
  margin-top: 7px;
}

.member-grid {
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
}

.team-photo {
  position: relative;
  max-width: 820px;
  aspect-ratio: 16 / 9;
  margin: 0 auto 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #dce2ea;
  box-shadow: 0 14px 34px rgba(22, 23, 25, 0.1);
}

.team-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 42%;
}

.team-photo figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.members-section .team-photo + .member-grid {
  margin-top: 18px;
}

.cowcat-photo {
  object-position: center 35%;
}

.member-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.member-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #dce2ea;
}

.member-body {
  padding: 18px;
}

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

.project-card {
  min-height: 268px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(22, 23, 25, 0.06);
}

.project-card.featured {
  grid-column: span 2;
  color: #ffffff;
  background: #173d3a;
  border-color: #173d3a;
}

.project-card.accent {
  color: #ffffff;
  background: #452f22;
  border-color: #452f22;
}

.project-meta {
  margin-bottom: 14px;
  color: var(--violet);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.25;
  text-transform: uppercase;
}

.project-card.featured .project-meta,
.project-card.accent .project-meta {
  color: #8de6d5;
}

.project-card h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.2;
  letter-spacing: 0;
}

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

.project-card.featured p,
.project-card.accent p {
  color: rgba(255, 255, 255, 0.78);
}

.project-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.project-card.featured .project-list,
.project-card.accent .project-list {
  color: rgba(255, 255, 255, 0.82);
}

.project-list li + li {
  margin-top: 6px;
}

.current-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 26px;
  border: 1px solid #173d3a;
  border-radius: 8px;
  color: #ffffff;
  background: #173d3a;
  box-shadow: var(--shadow);
}

.current-card h3 {
  margin-bottom: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.current-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.current-card .project-meta {
  color: #8de6d5;
}

.role {
  margin-bottom: 7px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1.2;
  text-transform: uppercase;
}

.success-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.62fr);
  gap: 18px;
  align-items: stretch;
}

.success-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #20242b;
  border-radius: 8px;
  background: #20242b;
  box-shadow: var(--shadow);
}

.metric {
  min-height: 248px;
  padding: 24px;
  color: #ffffff;
  background: #1a1e25;
}

.metric:nth-child(2) {
  background: #173d3a;
}

.metric:nth-child(3) {
  background: #452f22;
}

.metric span {
  display: block;
  margin-bottom: 58px;
  color: rgba(255, 255, 255, 0.58);
  font-weight: 850;
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.metric p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.timeline time {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--violet);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.55fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 36px;
  padding: 38px;
  border-radius: 8px;
  color: #ffffff;
  background: #181a1f;
}

.contact-section .eyebrow {
  color: #8de6d5;
}

.contact-section p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    padding: 14px 18px;
  }

  .nav {
    gap: 10px;
    font-size: 0.82rem;
  }

  h1 {
    font-size: 3.5rem;
  }

  .section-heading,
  .success-layout,
  .current-card,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .site-header {
    position: absolute;
    flex-direction: column;
    gap: 12px;
  }

  .brand {
    font-size: 0.9rem;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 8px 12px;
  }

  .hero {
    min-height: 94vh;
  }

  .hero-content,
  .section,
  .site-footer {
    width: min(100% - 32px, 1120px);
  }

  .hero-content {
    padding: 160px 0 90px;
  }

  h1 {
    font-size: 2.75rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .section {
    padding: 48px 0;
  }

  .section-heading h2,
  .contact-section h2 {
    font-size: 2rem;
  }

  .mission-grid,
  .member-grid,
  .project-grid,
  .success-panel {
    grid-template-columns: 1fr;
  }

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

  .mission-item,
  .project-card,
  .metric {
    min-height: 0;
  }

  .metric span {
    margin-bottom: 34px;
  }

  .contact-section {
    padding: 26px 20px;
  }

  .site-footer {
    flex-direction: column;
  }
}
