/* Experiments page: the Matrix Brain stage and its caption.
   Load AFTER matrix-brain.css so the height override below wins. */

.lab-stage {
  padding-top: 28px;
  padding-bottom: 8px;
}
/* The effect defaults to full screen; here it is a framed band */
.lab-stage .matrix-brain {
  height: clamp(380px, 62vh, 580px);
  min-height: 0;
  border-radius: 12px;
  box-shadow: 0 22px 50px -28px rgba(15, 36, 48, 0.6);
}

.lab-caption {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 48px;
  padding: 36px 0 60px;
  align-items: start;
}
.lab-caption h2 {
  font-size: 1.7rem;
  margin-bottom: 14px;
}
.lab-caption p { max-width: 62ch; }

.lab-facts {
  list-style: none;
  padding: 0;
  margin: 0;
}
.lab-facts li {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.lab-facts .label {
  display: block;
  color: var(--teal-deep);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 2px;
}

@media (max-width: 760px) {
  .lab-caption { grid-template-columns: 1fr; gap: 24px; }
  .lab-stage .matrix-brain { height: 420px; }
}

/* ---------- Second experiment: the dice test in a white frame ---------- */

.lab-item {
  border-top: 1px solid var(--line);
  padding: 48px 0 60px;
}
.lab-item h2 {
  font-size: 1.7rem;
  margin-bottom: 14px;
}
.lab-item p { max-width: 62ch; }

.lab-item--split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-areas: "frame text";
  gap: 48px;
  align-items: start;
}
.lab-item--flip {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  grid-template-areas: "text frame";
}
.lab-item--split .lab-frame     { grid-area: frame; }
.lab-item--split .lab-item-text { grid-area: text; }

.lab-item .lab-facts { margin: 22px 0 18px; }
.lab-open { margin: 0; }

.lab-frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 40px -26px rgba(15, 36, 48, 0.45);
}
.lab-frame iframe {
  display: block;
  width: 100%;
  height: 560px;        /* fallback; js/lab.js fits it to the content */
  border: 0;
  background: #fff;
}

.lab-frame--color iframe { height: 900px; }   /* fallback; js/lab.js fits it to the content */

@media (max-width: 760px) {
  .lab-item--split,
  .lab-item--flip {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "frame";
    gap: 28px;
  }
}
