:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-soft: #f3e8ff;
  --primary-muted: #ede9fe;
  --primary-600: #9333ea;
  --bg: #f7f7f8;
  --card: #ffffff;
  --text: #1f2937;
  --subtle: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 24px 60px rgb(15 23 42 / 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #a78bfa;
    --primary-dark: #8b5cf6;
    --primary-soft: #2e1065;
    --primary-muted: #3b0764;
    --primary-600: #9333ea;
    --bg: #111827;
    --card: #1f2937;
    --text: #f9fafb;
    --subtle: #9ca3af;
    --border: #374151;
    --shadow: 0 24px 60px rgb(0 0 0 / 0.3);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.page {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12rem;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.hero-content {
  max-width: 50rem;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-self: center;
}

.logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10rem;
  height: 10rem;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  border-radius: 2rem;
  background: color-mix(in srgb, var(--card) 86%, var(--primary-soft));
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-label {
  margin: 0 0 0.75rem;
  color: var(--subtle);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.left-title {
  max-width: 21rem;
}

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

h1 {
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 44rem;
  margin-bottom: 1rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.35;
  font-weight: 600;
}

.summary {
  max-width: 42rem;
  margin-bottom: 2rem;
  color: var(--subtle);
  font-size: 1rem;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.button-note {
  margin: 0;
  color: var(--subtle);
  font-size: 0.78rem;
  line-height: 1.4;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0 1.2rem;
  border-radius: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 140ms ease, filter 140ms ease;
}

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

.button-primary {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 12px 30px rgb(109 40 217 / 0.28);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 11rem;
  height: 11rem;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  border-radius: 2rem;
  background: color-mix(in srgb, var(--card) 86%, var(--primary-soft));
  box-shadow: var(--shadow);
}

.logo-card img {
  width: 6rem;
  height: 6rem;
  object-fit: contain;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.card,
.wide-card,
.process,
.cta {
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: color-mix(in srgb, var(--card) 96%, var(--primary-soft));
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.card {
  padding: 1.35rem;
}

.card-highlight {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  background: linear-gradient(180deg, var(--primary-soft), var(--card));
}

.card p,
.wide-card p,
.process p,
.cta p {
  color: var(--subtle);
  line-height: 1.65;
}

.card p:last-child,
.wide-card p:last-child,
.cta p:last-child {
  margin-bottom: 0;
}

.wide-card {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 2rem;
  margin-bottom: 1rem;
  padding: 1.75rem;
}

.process {
  margin-bottom: 1rem;
  padding: 1.75rem;
}

.process-header {
  margin-bottom: 1.5rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.step {
  padding: 1rem;
  border-radius: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
}

.step span {
  display: inline-flex;
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
}

.step p {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  line-height: 1.4;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.75rem;
}

.cta h2 {
  margin-bottom: 0.35rem;
}

@media (max-width: 900px) {

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

  .hero {
    gap: 2rem;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .section-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 3rem 0;
  }

  .section-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .logo-card {
    width: 8rem;
    height: 8rem;
    border-radius: 1.5rem;
  }

  .logo-card img {
    width: 4.75rem;
    height: 4.75rem;
  }
}

.step {
  position: relative;
  padding: 1rem;
  border-radius: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
}

.step span {
  display: inline-flex;
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
}

.step p {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.4;
}

.step small {
  display: inline-flex;
  align-items: center;
  min-height: 1.4rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.step-done {
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
}

.step-done small {
  color: var(--primary);
  background: var(--primary-soft);
}

.step-current {
  border-color: var(--primary);
  background: linear-gradient(180deg, var(--primary-soft), var(--card));
  box-shadow: 0 12px 30px rgb(109 40 217 / 0.14);
}

.step-current::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 1rem;
  border: 2px solid var(--primary);
  pointer-events: none;
}

.step-current small {
  color: #fff;
  background: var(--primary-dark);
}

.step-upcoming {
  opacity: 0.72;
}

.step-upcoming small {
  color: var(--subtle);
  background: color-mix(in srgb, var(--border) 60%, transparent);
}

.step-next {
  border-color: color-mix(in srgb, var(--border) 30%, #3b82f6);
}

.step-next small {
  color: #1d4ed8;
  background: #dbeafe;
}

@media (prefers-color-scheme: dark) {
  .step-next {
    border-color: color-mix(in srgb, var(--border) 30%, #60a5fa);
  }

  .step-next small {
    color: #93c5fd;
    background: rgb(59 130 246 / 0.15);
  }
}

.publications {
  margin-bottom: 1rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: color-mix(in srgb, var(--card) 96%, var(--primary-soft));
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.publications-header {
  max-width: 46rem;
  margin-bottom: 1.5rem;
}

.publications-header p:last-child {
  margin-bottom: 0;
  color: var(--subtle);
  line-height: 1.65;
}

.publication-list {
  display: grid;
  gap: 0.75rem;
}

.publication {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--bg);
}

.publication h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.3;
  max-width: 38rem;
}

.publication p {
  margin: 0;
  color: var(--subtle);
  font-size: 0.9rem;
  line-height: 1.55;
}

.publication a {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.publication a:hover {
  text-decoration: underline;
}

.publications-collapsible {
  padding: 0;
  overflow: hidden;
}

.publications-collapsible details {
  padding: 1.75rem;
}

.publications-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  cursor: pointer;
  list-style: none;
}

.publications-summary::-webkit-details-marker {
  display: none;
}

.publications-summary .card-label,
.publications-summary h2,
.publications-summary p {
  margin-left: 0;
}

.publications-summary p {
  margin-bottom: 0;
  color: var(--subtle);
  line-height: 1.65;
}

.summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 160ms ease;
}

.publications-collapsible details[open] .summary-icon {
  transform: rotate(45deg);
}

.publications-collapsible .publication-list {
  margin-top: 1.5rem;
}

.text-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.text-link-right {
  display: flex;
  justify-content: flex-end;
}

.page-nav {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 50;
}

.page-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: var(--primary-600);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.page-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.9rem;
  height: 0.9rem;
  font-size: 0.9rem;
  line-height: 1;
  transform: translateX(0);
  transition: transform 140ms ease;
}

.page-nav .material-symbols-outlined.page-nav-icon {
  font-size: 0.9rem;
  line-height: 1;
  font-variation-settings:
    "FILL" 0,
    "wght" 500,
    "GRAD" 0,
    "opsz" 20;
}

.page-nav a:hover .page-nav-icon {
  transform: translateX(-3px);
}

.phenotype-overview {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
  border-radius: 1rem;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--primary-soft) 56%, var(--card)),
      var(--card)
    );
}

.phenotype-header {
  margin-bottom: 1rem;
}

.phenotype-header h3 {
  margin: 0;
  color: var(--primary);
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.phenotype-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.phenotype-item {
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--card) 94%, var(--primary-soft));
}

.phenotype-item span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.phenotype-item strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--primary);
  font-size: 1rem;
  line-height: 1.2;
}

.phenotype-item p {
  margin: 0;
  color: var(--subtle);
  font-size: 0.84rem;
  line-height: 1.45;
}

.phenotype-note {
  margin: 1rem 0 0;
  color: var(--subtle);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .phenotype-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .phenotype-grid {
    grid-template-columns: 1fr;
  }
}
