:root {
  --lab-cream: #fff8e8;
  --lab-yellow: #ffd166;
  --lab-blue: #74c0fc;
  --lab-coral: #ff826c;
  --lab-green: #55b98a;
  --lab-ink: #24313a;
  --lab-paper: #ffffff;
}

.lab-site {
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 209, 102, 0.28), transparent 26rem),
    radial-gradient(circle at 92% 20%, rgba(116, 192, 252, 0.22), transparent 24rem),
    var(--lab-cream);
  color: var(--lab-ink);
}

.lab-site .site-header {
  background: rgba(255, 248, 232, 0.94);
}

.lab-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 42px;
  align-items: center;
  padding: 72px 0 48px;
}

.lab-kicker {
  display: inline-flex;
  margin: 0 0 18px;
  border-radius: 999px;
  background: var(--lab-yellow);
  padding: 8px 15px;
  color: #5f4510;
  font-size: 15px;
  font-weight: 800;
}

.lab-hero h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(44px, 8vw, 78px);
  letter-spacing: -0.04em;
}

.lab-hero .lead {
  max-width: 700px;
  font-size: clamp(22px, 3.6vw, 32px);
}

.lab-hero-note {
  max-width: 680px;
  color: #52616b;
  font-size: 18px;
}

.lab-button {
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  padding: 13px 22px;
  font-size: 17px;
  font-weight: 800;
}

.lab-button-primary {
  background: var(--lab-coral);
  color: var(--lab-ink);
  box-shadow: 0 8px 0 #d95d4b;
}

.lab-button-primary:hover {
  background: #f5745f;
  transform: translateY(1px);
  box-shadow: 0 7px 0 #d95d4b;
}

.lab-button-secondary {
  border: 2px solid var(--lab-ink);
  background: var(--lab-paper);
}

.lab-hero-scene {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border: 3px solid var(--lab-ink);
  border-radius: 38px;
  background: var(--lab-blue);
  box-shadow: 12px 14px 0 rgba(36, 49, 58, 0.12);
}

.lab-sun {
  position: absolute;
  top: 30px;
  right: 38px;
  width: 78px;
  height: 78px;
  border: 3px solid var(--lab-ink);
  border-radius: 50%;
  background: var(--lab-yellow);
}

.lab-hill {
  position: absolute;
  right: -60px;
  bottom: -120px;
  width: 360px;
  height: 280px;
  border: 3px solid var(--lab-ink);
  border-radius: 50%;
  background: var(--lab-green);
}

.lab-table {
  position: absolute;
  right: 52px;
  bottom: 58px;
  left: 52px;
  height: 22px;
  border: 3px solid var(--lab-ink);
  border-radius: 8px;
  background: #c78a55;
}

.lab-table::before,
.lab-table::after {
  position: absolute;
  top: 18px;
  width: 18px;
  height: 82px;
  border: 3px solid var(--lab-ink);
  border-top: 0;
  background: #b97843;
  content: "";
}

.lab-table::before {
  left: 24px;
}

.lab-table::after {
  right: 24px;
}

.lab-flask {
  position: absolute;
  bottom: 80px;
  left: 94px;
  width: 88px;
  height: 116px;
}

.lab-flask::before {
  position: absolute;
  top: 0;
  left: 31px;
  width: 26px;
  height: 54px;
  border: 3px solid var(--lab-ink);
  border-bottom: 0;
  background: #ffffff;
  content: "";
}

.lab-flask::after {
  position: absolute;
  bottom: 0;
  left: 8px;
  width: 70px;
  height: 72px;
  border: 3px solid var(--lab-ink);
  border-radius: 18px 18px 28px 28px;
  background: linear-gradient(to top, var(--lab-coral) 0 55%, #ffffff 56%);
  content: "";
}

.lab-section {
  padding: 52px 0;
}

.lab-section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.lab-section-heading h2 {
  font-size: clamp(30px, 5vw, 44px);
}

.lab-section-heading p {
  color: #52616b;
  font-size: 18px;
}

.lab-experiment-grid,
.lab-principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.lab-experiment-card,
.lab-principle-card,
.lab-parent-card {
  border: 3px solid var(--lab-ink);
  border-radius: 26px;
  background: var(--lab-paper);
  box-shadow: 8px 9px 0 rgba(36, 49, 58, 0.1);
}

.lab-experiment-card {
  min-height: 280px;
  padding: 24px;
}

.lab-experiment-card:nth-child(1) {
  background: #eaf6ff;
}

.lab-experiment-card:nth-child(2) {
  background: #fff1d0;
}

.lab-experiment-card:nth-child(3) {
  background: #eaf8ef;
}

.lab-experiment-number {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  place-items: center;
  border: 3px solid var(--lab-ink);
  border-radius: 16px;
  background: var(--lab-yellow);
  font-size: 20px;
  font-weight: 900;
}

.lab-experiment-card h3 {
  font-size: 24px;
}

.lab-experiment-card p {
  color: #52616b;
  font-size: 17px;
}

.lab-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.lab-card-meta span {
  border-radius: 999px;
  background: rgba(36, 49, 58, 0.08);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

.lab-experiment-link {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  margin-top: 20px;
  border: 3px solid var(--lab-ink);
  border-radius: 16px;
  background: var(--lab-paper);
  padding: 10px 15px;
  font-weight: 900;
}

.lab-experiment-link:hover {
  background: var(--lab-yellow);
}

.lab-principle-card {
  padding: 24px;
}

.lab-principle-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 21px;
}

.lab-principle-card p,
.lab-parent-card p,
.lab-parent-card li {
  color: #52616b;
  font-size: 17px;
}

.lab-parent-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 34px;
  padding: 32px;
  background: #fffdf7;
}

.lab-parent-card ul {
  margin-bottom: 0;
}

.lab-footer-note {
  max-width: 760px;
  margin: 0;
  color: #52616b;
  font-size: 16px;
}

@media (max-width: 820px) {
  .lab-hero,
  .lab-parent-card {
    grid-template-columns: 1fr;
  }

  .lab-hero-scene {
    min-height: 300px;
  }

  .lab-experiment-grid,
  .lab-principle-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .lab-hero {
    padding-top: 44px;
  }

  .lab-hero-scene {
    min-height: 260px;
  }

  .lab-table {
    right: 28px;
    left: 28px;
  }

  .lab-flask {
    left: 58px;
  }

  .lab-experiment-card,
  .lab-principle-card,
  .lab-parent-card {
    border-radius: 22px;
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lab-button {
    transition: none;
  }
}
