/* ============ lab — the section shell around the live experiment ============
   A dark room between the paper act and the film: opaque, so the film stays Work's alone,
   with a faint dot grid — a lab bench — brightest under the experiment, and a low glow of
   the accent like light off an instrument's screen.
   The experiment itself owns its file (lab-learn.css). */

.lab {
  position: relative;
  z-index: 2;
  isolation: isolate;
  background: var(--bg);
  /* the shared chapter lead-in on top; a short tail, so Work follows on without a dead screen */
  padding-block: var(--section-pad-top) clamp(2.5rem, 6vh, 4rem);
}
.lab::before,
/* the network as light (learn-gl.js): spans the section, behind everything in it */
.lab__gl {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  max-width: none;
  height: 100%;
  pointer-events: none;
}
.lab::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.lab::before {
  background-image: radial-gradient(circle, color-mix(in srgb, var(--ink) 20%, transparent) 0.8px, transparent 1.3px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 45% 62%, #000 0%, transparent 82%);
  mask-image: radial-gradient(ellipse 75% 65% at 45% 62%, #000 0%, transparent 82%);
}
.lab::after {
  background: radial-gradient(ellipse 45% 40% at 58% 62%, color-mix(in srgb, var(--signal) 8%, transparent), transparent 70%);
}
.lab + .lab { border-top: 1px solid var(--hairline); }

.lab__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 1.2rem;
  align-items: end;
  margin-bottom: clamp(1.5rem, 3.5vh, 2.5rem);
}
/* one preamble line: "02 Lab · Experiment 01" (the dot is drawn, so the label reads clean) */
.lab__kicker { grid-column: 1 / -1; margin-bottom: 0.4rem; }
.lab__exp::before { content: "\00B7"; margin-right: 0.9em; opacity: 0.7; }
.lab__title { grid-column: 1 / span 8; }
.lab__intro {
  grid-column: 9 / span 4;
  color: var(--ink-2);
  font-size: var(--fs-small);
  max-width: 40ch;
  padding-bottom: 0.4rem;
}

@media (max-width: 1024px) {
  .lab__title { grid-column: 1 / -1; }
  .lab__intro { grid-column: 1 / span 9; }
}
@media (max-width: 760px) {
  .lab__intro { grid-column: 1 / -1; }
}
