.lab-hero,
.lab-projects {
  --lab-gold: #c5a880;
  --lab-surface: #0d1118;
  --lab-text: #f5f2eb;
  --lab-muted: #c1c5cd;
  --lab-line: #c5a88047;
  color: var(--lab-text);
}

.lab-hero {
  min-height: 100svh;
  background-color: var(--lab-surface);
}

.lab-hero .shade {
  background: linear-gradient(90deg, #080d16e8 0%, #080d16a6 36%, transparent 72%),
    linear-gradient(180deg, #080d16b3, transparent 24%, transparent 84%, #080d1666);
}

.lab-hero-layout {
  padding-block: clamp(132px, 15vw, 196px) clamp(64px, 9vw, 115px);
}

.lab-hero .hero-copy { padding: 0; }

.lab-hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--lab-gold);
  font-size: clamp(.68rem, 1.15vw, .78rem);
  letter-spacing: .13em;
  margin: 0 0 26px;
}

.lab-hero .eyebrow::before {
  content: "";
  width: 15px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.lab-hero h1,
.lab-projects #projects-heading {
  font-family: inherit;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.lab-hero h1 {
  font-size: clamp(2.4rem, 4.2vw, 4.125rem);
  text-wrap: initial;
}

.lab-hero h1 span { display: block; color: var(--lab-gold); }

.lab-hero .hero-copy > p:not(.eyebrow) {
  max-width: 53ch;
  margin: 25px 0 28px;
  color: var(--lab-muted);
  line-height: 1.65;
}

.lab-hero .cta {
  min-height: 48px;
  padding-inline: 18px;
  border-radius: 6px;
  background: var(--lab-gold);
  color: #12151b;
}

.lab-hero .cta:hover { background: #e3c9a8; }
.lab-hero .cta:focus-visible { outline: 2px solid var(--lab-text); outline-offset: 4px; }

.lab-projects {
  background: radial-gradient(ellipse at 18% 0%, #1b1c20, transparent 63%), var(--lab-surface);
  border-top: 1px solid var(--lab-line);
}

.lab-projects #projects-heading { font-size: clamp(2.25rem, 5.2vw, 4.6rem); }

.projects-intro {
  max-width: 64ch;
  margin: 18px 0 36px;
  color: var(--lab-muted);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
}

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

.project-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 200px;
  padding: clamp(20px, 2.5vw, 32px);
  border: 1px solid var(--lab-line);
  border-radius: 14px;
  background: linear-gradient(145deg, #c5a88010, #ffffff04 62%);
}

.project-card:nth-child(n + 4) { grid-column: span 3; }

.project-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  color: var(--lab-gold);
  border: 1px solid var(--lab-line);
  border-radius: 9px;
  background: #c5a8800e;
}

.project-icon svg { width: 23px; height: 23px; }

.project-card h2,
.project-card h3 {
  margin: 0;
  font: 700 clamp(1.25rem, 2.1vw, 1.7rem)/1.18 'Noto Sans', system-ui, sans-serif;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.project-card p {
  max-width: 47ch;
  color: var(--lab-muted);
  margin: 8px 0 0;
}

@media (max-width: 900px) {
  .lab-hero .shade {
    background: linear-gradient(180deg, #080d16b3, transparent 24%, #080d16ba 62%, #080d16e0);
  }
  .lab-hero h1 { font-size: clamp(2.6rem, 7.8vw, 4.65rem); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid .project-card { grid-column: auto; }
  .project-grid .project-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .lab-hero-layout {
    margin-block: auto 0;
    padding-block: clamp(128px, 38svh, 360px) 46px;
  }
  .lab-hero #film { object-position: 62% center; }
  .lab-hero h1 { font-size: clamp(2.15rem, 9vw, 3.2rem); }
  .lab-hero .eyebrow { margin-bottom: 20px; }
  .project-grid { grid-template-columns: minmax(0, 1fr); }
  .project-card { min-height: 0; }
  .project-icon { margin-bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.lab-hero) { scroll-behavior: auto; }
}
