.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.34), transparent 30rem),
    linear-gradient(135deg, #111827 0%, #1f2937 58%, #172554 100%);
}

.hero::after {
  position: absolute;
  right: -10rem;
  bottom: -15rem;
  width: 30rem;
  height: 30rem;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 50%;
  content: "";
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 660px;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero-copy h1 {
  max-width: 760px;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 7vw, 5.75rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-copy > p {
  max-width: 660px;
  margin-bottom: 2.25rem;
  color: #d1d5db;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.lab-window {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.lab-window-bar {
  display: flex;
  gap: 0.45rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.lab-window-bar span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #475569;
}

.lab-window-bar span:first-child {
  background: var(--accent-color);
}

.lab-window-content {
  padding: 2rem;
}

.lab-window-label,
.project-type {
  margin-bottom: 1.25rem;
  color: var(--accent-color);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lab-window-content li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  color: #e5e7eb;
}

.lab-window-content li:last-child {
  border-bottom: 0;
}

.lab-window-content li span {
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.5rem;
}

.project-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--background-light);
}

.project-card-featured {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.project-card h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.1;
}

.project-card p:not(.project-type) {
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.notes-section {
  border-top: 1px solid var(--border-color);
  background: var(--background-light);
}

.notes-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: clamp(2.5rem, 8vw, 7rem);
}

.notes-panel {
  padding: clamp(1.75rem, 4vw, 3rem);
  border-left: 4px solid var(--primary-color);
  background: var(--background);
  box-shadow: var(--shadow);
}

.notes-panel p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.075rem;
}

.notes-page {
  display: flex;
  min-height: calc(100vh - 72px - 96px);
  align-items: center;
}

.notes-page-content {
  max-width: 760px;
}

.notes-page-content > h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.75rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.notes-page-intro {
  max-width: 640px;
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
  font-size: 1.2rem;
}

.notes-page .notes-panel {
  margin-bottom: 2rem;
}

.notes-page .notes-panel h2 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

@media (max-width: 820px) {
  .hero-layout,
  .project-grid,
  .notes-layout {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    min-height: auto;
  }

  .lab-window {
    max-width: 620px;
  }
}

@media (max-width: 640px) {
  .hero-layout {
    gap: 3rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  .button {
    width: 100%;
  }

  .notes-page {
    min-height: auto;
  }
}
