/* Argon v2 — lab.css (Task F: The Lab #/lab) */

.lab-view .mono {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 13px;
  letter-spacing: .08em;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--ink-2);
}

.lab-view {
  padding: 140px 20px 120px calc(200 / 1440 * 100vw);
  box-sizing: border-box;
  min-height: 100vh;
}

.lab-wrap {
  width: 100%;
}

.lab-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.lab-title {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 72px;
  line-height: .9;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--ink);
}

.lab-intro {
  margin: 16px 0 0;
  max-width: 560px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -.005em;
  font-weight: 400;
  color: var(--ink);
}

.lab-groups {
  margin-top: 72px;
}

.lab-group {
  margin-top: 72px;
}

.lab-groups > .lab-group:first-child {
  margin-top: 0;
}

.lab-group-head,
.lab-ghead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.lab-group-head h2,
.lab-ghead h2 {
  margin: 0;
}

.lab-grid {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.lab-group[data-group="games"] .lab-tile,
.lab-group[data-lab-group="games"] .lab-tile,
.lab-grid--single .lab-tile {
  grid-column: span 2;
}

.lab-tile {
  min-width: 0;
}

.lab-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--ground-2);
  cursor: pointer;
  box-sizing: border-box;
}

.lab-tile[data-fit="contain"] .lab-frame {
  background: var(--dark);
}

.lab-frame video,
.lab-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lab-tile[data-fit="contain"] .lab-frame video,
.lab-tile[data-fit="contain"] .lab-video {
  object-fit: contain;
  background: var(--dark);
}

.lab-caption,
.lab-cap {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.lab-caption-name,
.lab-name {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 13px;
  letter-spacing: .08em;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--ink-2);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lab-caption-aspect,
.lab-aspect {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 13px;
  letter-spacing: .08em;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--ink-3);
  flex: none;
}

.lab-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(251, 250, 246, .28);
  opacity: 0;
  transition: opacity .2s;
}

.lab-progress i,
.lab-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

.lab-tile.is-playing .lab-progress {
  opacity: 1;
}

.lab-tile.is-playing .lab-caption-name,
.lab-tile.is-playing .lab-name {
  color: var(--ink);
}

.lab-tile.is-playing .lab-caption-name::before,
.lab-tile.is-playing .lab-name::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 7px solid var(--accent);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  margin-right: 6px;
  vertical-align: 0;
}

@media (hover: hover) {
  .lab-tile:hover .lab-caption-name,
  .lab-tile:hover .lab-name {
    color: var(--ink);
  }
}

@media (max-width: 1099.98px) {
  .lab-view {
    padding: 64px 16px 96px;
  }

  .lab-title {
    font-size: 44px;
  }

  .lab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .lab-group[data-group="games"] .lab-tile,
  .lab-group[data-lab-group="games"] .lab-tile,
  .lab-grid--single .lab-tile {
    grid-column: span 2;
  }
}
