.style-lab {
  position: relative;
  padding: clamp(80px, 11vw, 145px) clamp(18px, 6vw, 86px);
  overflow: hidden;
  color: var(--ink);
  background: var(--cream);
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
}

.style-lab::before {
  position: absolute;
  top: clamp(42px, 7vw, 88px);
  right: clamp(18px, 6vw, 86px);
  width: clamp(88px, 12vw, 170px);
  height: 1px;
  background: var(--warm);
  content: "";
  opacity: 0.7;
}

.style-lab__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(30px, 6vw, 86px);
  align-items: center;
}

.style-lab__copy,
.style-lab__media { min-width: 0; }

.style-lab__copy { max-width: 560px; }

.style-lab__kicker {
  margin: 0 0 14px;
  color: #806039;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.style-lab h2 {
  max-width: 9ch;
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.2vw, 5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.style-lab__intro {
  max-width: 520px;
  margin: 0 0 clamp(30px, 4vw, 46px);
  color: rgba(32, 26, 23, 0.72);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.65;
}

.style-lab__swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 1px;
  margin: 0 0 28px;
  padding: 1px;
  background: var(--paper);
}

.style-lab__choice {
  display: grid;
  gap: 10px;
  place-items: center;
  min-width: 0;
  min-height: 82px;
  padding: 12px 6px 10px;
  border: 1px solid var(--dark-line);
  color: rgba(32, 26, 23, 0.68);
  background: var(--paper);
  font: 600 0.875rem/1.35 var(--font-body);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.style-lab__choice:hover,
.style-lab__choice:focus-visible,
.style-lab__choice.is-active {
  color: var(--ink);
  background: #fff;
}

.style-lab__choice.is-active { box-shadow: inset 0 -3px 0 var(--red); }

.style-lab__dot {
  width: 30px;
  height: 30px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 1px rgba(32, 26, 23, 0.25);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.style-lab__choice:hover .style-lab__dot,
.style-lab__choice:focus-visible .style-lab__dot,
.style-lab__choice.is-active .style-lab__dot { transform: translateY(-2px); }

.style-lab__choice.is-active .style-lab__dot { box-shadow: 0 0 0 2px var(--red); }

.style-lab__slider-label {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 9px;
  color: rgba(32, 26, 23, 0.62);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.style-lab__slider-label strong { color: var(--red); }

.style-lab__range {
  width: 100%;
  height: 28px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.style-lab__range:focus-visible {
  outline: 2px solid var(--warm);
  outline-offset: 4px;
}

.style-lab__range::-webkit-slider-runnable-track {
  height: 2px;
  background: var(--dark-line);
}

.style-lab__range::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -10px;
  appearance: none;
  border: 4px solid var(--cream);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}

.style-lab__range::-moz-range-track { height: 2px; background: var(--dark-line); }

.style-lab__range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 4px solid var(--cream);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}

.style-lab__ticks {
  display: flex;
  justify-content: space-between;
  margin-top: -5px;
  padding: 0 5px;
}

.style-lab__ticks span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tick);
  box-shadow: 0 0 0 1px rgba(32, 26, 23, 0.22);
  opacity: 0.55;
  transition: transform 180ms ease, opacity 180ms ease;
}

.style-lab__ticks span.is-active {
  transform: scale(1.45);
  opacity: 1;
}

.style-lab__media {
  position: relative;
  min-height: clamp(340px, 42vw, 640px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.84);
  background: #ddd5cc;
  box-shadow: 18px 18px 0 rgba(148, 31, 40, 0.12);
}

.style-lab__image {
  display: block;
  width: 100%;
  height: clamp(340px, 42vw, 640px);
  object-fit: cover;
  transition: opacity 180ms ease;
}

.style-lab__image.is-changing { opacity: 0.35; }

.style-lab__caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  margin: 0;
  padding: 9px 12px;
  color: #fff;
  background: rgba(32, 26, 23, 0.64);
  font-size: 0.875rem;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

@media (max-width: 900px) {
  .style-lab__inner { grid-template-columns: 1fr; }
  .style-lab__copy { max-width: 680px; }
  .style-lab h2 { max-width: 12ch; }
  .style-lab__media,
  .style-lab__image { min-height: 0; height: min(68vw, 620px); }
}

@media (max-width: 560px) {
  .style-lab {
    padding-right: 18px;
    padding-bottom: calc(clamp(80px, 11vw, 145px) + 76px);
    padding-left: 18px;
  }
  .style-lab::before { right: 18px; }
  .style-lab__swatches {
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }
  .style-lab__choice { min-height: 74px; scroll-snap-align: start; }
  .style-lab__media,
  .style-lab__image { height: 64vw; min-height: 250px; }
  .style-lab__media { box-shadow: 10px 10px 0 rgba(148, 31, 40, 0.12); }
}

@media (prefers-reduced-motion: reduce) {
  .style-lab__choice,
  .style-lab__dot,
  .style-lab__image { transition: none; }
}
