:root {
  color-scheme: light;
  color: hsl(210 35% 14%);
  background: hsl(38 30% 94%);
  font-family: 'Inter', sans-serif;
  --bg: hsl(38 30% 94%);
  --surface: hsl(38 25% 98%);
  --border: hsl(38 18% 84%);
  --text: hsl(210 35% 14%);
  --muted: hsl(210 20% 42%);
  --accent: hsl(202 100% 39%);
  --accent-soft: hsl(202 100% 96%);
  --header: hsl(210 35% 14%);
  --header-contrast: #fff;
  --shadow: rgba(17, 24, 39, 0.08);
  --font-sans: 'Inter', sans-serif;
  --font-heading: 'Archivo', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.site-header {
  background: var(--header);
  color: var(--header-contrast);
  padding: 2rem 1.5rem 1.2rem;
  text-align: center;
}

.brand {
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo {
  width: 6rem;
  height: 6rem;
  object-fit: contain;
  border-radius: 999px;
}

@media (min-width: 720px) {
  .logo {
    width: 7rem;
    height: 7rem;
  }
}

.site-header h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1;
}

.site-header p {
  margin: 0.5rem auto 0;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.mobile-nav-toggle {
  display: none;
  width: 2.3rem;
  height: 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.85rem;
  padding: 0.4rem;
  cursor: pointer;
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.mobile-nav-toggle span {
  display: block;
  width: 1.9rem;
  height: 2px;
  margin: 0.28rem 0;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.mobile-nav-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem 1.25rem;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
  flex-direction: column;
  gap: 1rem;
  z-index: 10;
}

.mobile-nav-panel.open {
  display: flex;
}

.mobile-nav-panel a {
  display: block;
  width: 100%;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.75rem 0;
}

.site-nav a {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.2s ease;
}

.site-nav a + a::before {
  content: '/';
  display: inline-block;
  margin: 0 0.65rem;
  color: hsl(38 18% 70%);
}

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

.site-main {
  flex: 1;
  max-width: 76rem;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.hero {
  position: relative;
  margin-bottom: 2rem;
  display: grid;
  gap: 2rem;
}

.page-hero {
  padding: 1rem 0 0;
}

.page-hero::before {
  content: '';
  position: absolute;
  right: -5rem;
  top: -6rem;
  width: 34rem;
  height: 34rem;
  background-image: url('dna-helix.png');
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.12;
  pointer-events: none;
  transform: translateX(12%) translateY(var(--dna-offset, 0px));
  transition: transform 0.12s ease-out;
}

.hero .eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
}

.hero h1,
.hero h2,
.hero h3 {
  font-family: var(--font-heading);
  color: var(--text);
  margin-top: 0;
}

.hero h1 {
  font-size: clamp(2.75rem, 4vw, 5rem);
  line-height: 1.02;
  margin-bottom: 1rem;
}

.hero h2 {
  font-size: clamp(2rem, 2.5vw, 3rem);
}

.hero a {
  color: var(--accent);
  font-weight: 700;
}

.button,
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button:hover,
.button-primary:hover {
  background: hsl(202 100% 33%);
  transform: translateY(-1px);
}

.lead {
  font-size: clamp(1.1rem, 1.15vw, 1.4rem);
  max-width: 44rem;
  color: hsl(210 28% 28%);
}

.section-heading {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: clamp(1.8rem, 2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.feature-list ul,
.community ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li,
.community li {
  margin-bottom: 1rem;
  padding-left: 1.3rem;
  position: relative;
  color: hsl(210 28% 30%);
}

.feature-list li::before,
.community li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--accent);
}

.highlight-blue {
  color: hsl(206 82% 35%);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.page-card,
.section-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: 0 24px 50px var(--shadow);
  padding: 1.75rem;
}

.callout {
  margin: 2rem 0;
  padding: 1.75rem;
  font-weight: 600;
  color: hsl(210 20% 30%);
}

.callout strong {
  color: var(--accent);
}

.paragraph {
  max-width: 50rem;
  color: hsl(210 28% 30%);
}

.paragraph.highlight-panel {
  background: hsla(206, 100%, 96%, 0.9);
  color: hsl(210 24% 20%);
  border-left: 0.35rem solid var(--accent);
  padding: 1.15rem 1.25rem;
  border-radius: 1.1rem;
  box-shadow: 0 18px 32px rgba(17, 24, 39, 0.05);
}

.team-grid {
  display: grid;
  gap: 1.5rem;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 24rem));
  margin: 0 auto;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.75rem;
  width: 100%;
}

.team-avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  box-shadow: 0 15px 35px rgba(17, 24, 39, 0.06);
}

.team-bio {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 10;
  text-align: left;
  color: var(--muted);
}

.team-bio.expanded {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.read-more-toggle {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin-top: 0.75rem;
}

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

.team-card h2 {
  margin-bottom: 0.25rem;
}

.team-card .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.site-footer {
  background: var(--header);
  color: hsl(210 20% 55%);
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: inherit;
}

@media (max-width: 720px) {
  .site-nav {
    justify-content: center;
    gap: 0.5rem;
    padding-left: 4rem;
  }

  .nav-links {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .mobile-nav-panel {
    display: none;
  }

  .mobile-nav-panel.open {
    display: flex;
  }
}

@media (min-width: 720px) {
  .mobile-nav-toggle {
    display: none;
  }

  .site-nav {
    gap: 1.5rem;
  }

  .site-main {
    padding: 3rem 2rem 4rem;
  }

  .hero {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .page-hero::before {
    right: -3rem;
    top: -8rem;
  }

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