.creative-lab {
  padding-top: 130px;
  padding-bottom: 150px;
  border-top: 1px solid var(--line);
}

.creative-lab-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: clamp(40px, 8vw, 130px);
  align-items: end;
  margin-bottom: 68px;
}

.creative-lab-heading h2 {
  max-width: 900px;
  margin: 34px 0 0;
  font: clamp(58px, 8vw, 116px)/.84 Georgia, serif;
  letter-spacing: -.06em;
}

.creative-lab-heading > p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.lab-mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 105px;
  gap: 12px;
}

.lab-tile {
  position: relative;
  grid-column: span 4;
  grid-row: span 3;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  background: #080d11;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.lab-tile:nth-child(1) { grid-column: span 7; grid-row: span 4; }
.lab-tile:nth-child(2),
.lab-tile:nth-child(3) { grid-column: span 5; grid-row: span 2; }

.lab-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(2, 5, 7, .04) 28%, rgba(2, 5, 7, .94) 100%);
  transition: background .45s ease;
}

.lab-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.78) brightness(.78) contrast(1.06);
  transition: transform .7s cubic-bezier(.2, .8, .2, 1), filter .45s ease;
}

.lab-tile:hover,
.lab-tile:focus-visible {
  border-color: rgba(96, 229, 243, .72);
  outline: none;
}

.lab-tile:hover img,
.lab-tile:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1) brightness(.92) contrast(1.04);
}

.lab-tile:hover::after,
.lab-tile:focus-visible::after {
  background: linear-gradient(to bottom, rgba(2, 5, 7, .02) 38%, rgba(2, 5, 7, .9) 100%);
}

.lab-tile-kind {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(3, 7, 10, .62);
  backdrop-filter: blur(8px);
  color: #dfe8ea;
  font: 8px/1 monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lab-tile[data-lab-type="video"] .lab-tile-kind::before {
  content: "▶";
  margin-right: 7px;
  color: var(--cyan);
}

.lab-tile-copy {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: grid;
  gap: 9px;
}

.lab-tile-copy small {
  color: var(--cyan);
  font: 8px/1.35 monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.lab-tile-copy strong {
  max-width: 560px;
  font: clamp(21px, 2.2vw, 34px)/1.05 Georgia, serif;
  font-weight: 400;
}

.lab-tile:nth-child(2) .lab-tile-copy strong,
.lab-tile:nth-child(3) .lab-tile-copy strong {
  font-size: clamp(19px, 1.8vw, 27px);
}

.lab-lightbox {
  width: min(1320px, 96vw);
  max-width: none;
  height: min(850px, 94svh);
  max-height: none;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(96, 229, 243, .38);
  background: #05090c;
  color: var(--text);
}

.lab-lightbox::backdrop {
  background: rgba(0, 0, 0, .9);
  backdrop-filter: blur(12px);
}

.lab-lightbox-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  width: 100%;
  height: 100%;
}

.lab-lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(96, 229, 243, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 229, 243, .035) 1px, transparent 1px),
    #020507;
  background-size: 40px 40px;
}

.lab-lightbox-media {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.lab-lightbox-media img,
.lab-lightbox-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020405;
}

.lab-lightbox-arrow,
.lab-lightbox-close {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(3, 7, 10, .7);
  backdrop-filter: blur(9px);
  color: #fff;
  cursor: pointer;
}

.lab-lightbox-arrow {
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  transform: translateY(-50%);
  font-size: 20px;
}

.lab-lightbox-prev { left: 22px; }
.lab-lightbox-next { right: 22px; }

.lab-lightbox-close {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
}

.lab-lightbox-arrow:hover,
.lab-lightbox-close:hover,
.lab-lightbox-arrow:focus-visible,
.lab-lightbox-close:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  outline: none;
}

.lab-lightbox-info {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 34px 28px 26px;
  border-left: 1px solid var(--line);
  background: #070b0e;
}

.lab-lightbox-info > span,
.lab-lightbox-info > p:first-of-type {
  color: var(--cyan);
  font: 9px/1.4 monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lab-lightbox-info > p:first-of-type { margin: auto 0 14px; }

.lab-lightbox-info h3 {
  margin: 0 0 22px;
  font: 38px/1 Georgia, serif;
  font-weight: 400;
}

.lab-lightbox-info > p:nth-of-type(2) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.lab-lightbox-info > small {
  display: block;
  margin-top: 22px;
  color: #b8c2c7;
  font: 9px/1.55 monospace;
  text-transform: uppercase;
}

.lab-lightbox-thumbs {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 28px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) transparent;
}

.lab-lightbox-thumbs button {
  flex: 0 0 64px;
  width: 64px;
  height: 50px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  background: #020405;
  opacity: .52;
  cursor: pointer;
}

.lab-lightbox-thumbs button.active {
  border-color: var(--cyan);
  opacity: 1;
}

.lab-lightbox-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .creative-lab-heading { grid-template-columns: 1fr; gap: 28px; }
  .lab-mosaic { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lab-tile:nth-child(1) { grid-column: span 6; }
  .lab-tile:nth-child(2),
  .lab-tile:nth-child(3) { grid-column: span 3; }
  .lab-tile:nth-child(n + 4) { grid-column: span 2; grid-row: span 2; }
  .lab-lightbox-layout { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .lab-lightbox-info { min-height: 230px; padding: 24px; border-top: 1px solid var(--line); border-left: 0; }
  .lab-lightbox-info > p:first-of-type { margin: 0 0 10px; }
  .lab-lightbox-info h3 { margin-bottom: 14px; font-size: 30px; }
  .lab-lightbox-thumbs { position: absolute; right: 24px; bottom: 24px; max-width: 43%; padding-top: 0; }
}

@media (max-width: 600px) {
  .creative-lab { padding-top: 90px; padding-bottom: 100px; }
  .creative-lab-heading { margin-bottom: 42px; }
  .creative-lab-heading h2 { margin-top: 24px; font-size: 52px; }
  .creative-lab-heading > p { font-size: 13px; }
  .lab-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 105px; gap: 8px; }
  .lab-tile:nth-child(1) { grid-column: span 2; grid-row: span 3; }
  .lab-tile:nth-child(2),
  .lab-tile:nth-child(3) { grid-column: span 1; grid-row: span 2; }
  .lab-tile:nth-child(4) { grid-column: span 2; grid-row: span 2; }
  .lab-tile:nth-child(5),
  .lab-tile:nth-child(6) { grid-column: span 1; grid-row: span 2; }
  .lab-tile-copy { right: 14px; bottom: 14px; left: 14px; }
  .lab-tile-copy strong { font-size: 20px; }
  .lab-tile-copy small { font-size: 7px; }
  .lab-tile-kind { top: 12px; right: 12px; }
  .lab-lightbox { width: 100vw; height: 100svh; max-height: none; border: 0; }
  .lab-lightbox-layout { grid-template-rows: minmax(0, 58svh) minmax(0, 42svh); }
  .lab-lightbox-arrow { top: auto; bottom: 16px; width: 46px; height: 46px; }
  .lab-lightbox-prev { left: 16px; }
  .lab-lightbox-next { right: 16px; }
  .lab-lightbox-close { top: 12px; right: 12px; }
  .lab-lightbox-info { min-height: 0; overflow-y: auto; padding: 22px 20px 82px; }
  .lab-lightbox-info h3 { font-size: 28px; }
  .lab-lightbox-thumbs { right: 20px; bottom: 20px; left: 20px; max-width: none; }
}

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