.section-panel {
  position: relative;
  width: min(
    var(--content-max),
    calc(100% - var(--page-gutter) - var(--page-gutter))
  );
  margin: 0 auto;
  padding: clamp(5.5rem, 10vw, 8.5rem) 0;
}

.section-heading {
  text-align: center;
}

.section-heading.compact {
  width: min(850px, 100%);
  margin: 0 auto 42px;
}

.work {
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(34px, 6vw, 78px);
  margin-top: var(--work-overlap);
  isolation: isolate;
  color: var(--paper-bright);
}

.work::before {
  position: absolute;
  inset: 0 calc((100vw - min(1180px, calc(100vw - 32px))) / -2);
  z-index: -1;
  content: "";
  background: var(--ink);
}

.work .eyebrow {
  color: var(--lemon);
}

.work-intro h2 {
  max-width: 540px;
  font-size: clamp(2.7rem, 4.5vw, 4.7rem);
}

.work-intro p:not(.eyebrow) {
  max-width: 500px;
  color: #c9ced8;
  font-size: 1.04rem;
}

.showcase {
  position: relative;
  min-height: min(620px, 72vh);
  overflow: hidden;
  border: 2px solid var(--paper-bright);
  border-radius: 6px;
  background: var(--mint);
  box-shadow: 10px 10px 0 var(--cobalt);
  color: var(--ink);
}

.showcase-viewport,
.showcase-slide {
  position: absolute;
  inset: 0;
}

.showcase-slide {
  display: grid;
  align-content: end;
  gap: 12px;
  padding: clamp(28px, 5vw, 58px) clamp(28px, 5vw, 58px) clamp(96px, 8vw, 112px);
  opacity: 0;
  pointer-events: none;
  transform: translateX(28px);
  visibility: hidden;
  transition: opacity 260ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-slide:nth-child(2) {
  background: var(--cobalt-soft);
}

.showcase-slide:nth-child(3) {
  background: var(--lemon);
}

.showcase-slide:nth-child(4) {
  background: #ffd5cb;
}

.showcase-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  visibility: visible;
}

.showcase-slide::before {
  position: absolute;
  top: 20px;
  right: 28px;
  content: "01";
  color: rgba(21, 24, 33, 0.14);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 900;
  line-height: 1;
}

.showcase-slide:nth-child(2)::before {
  content: "02";
}

.showcase-slide:nth-child(3)::before {
  content: "03";
}

.showcase-slide:nth-child(4)::before {
  content: "04";
}

.showcase-slide span {
  width: fit-content;
  padding: 6px 9px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.showcase-slide strong {
  max-width: 600px;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.3rem, 4.3vw, 4.6rem);
  line-height: 0.98;
}

.showcase-slide p {
  max-width: 510px;
  margin: 0;
  color: #3e4450;
  font-weight: 650;
}

.showcase-arrow,
.review-arrow {
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: var(--paper-bright);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
}

.showcase-arrow {
  position: absolute;
  top: auto;
  bottom: 22px;
  z-index: 2;
  width: 48px;
  height: 48px;
  font-size: 2rem;
}

.showcase-arrow.left {
  right: 80px;
  left: auto;
}

.showcase-arrow.right {
  right: 20px;
}

.reviews .eyebrow {
  color: var(--coral);
}

.review-heading h2 {
  font-size: clamp(2.6rem, 5vw, 5rem);
}

.review-carousel {
  width: min(900px, 100%);
  margin: 0 auto;
}

.review-viewport {
  overflow: hidden;
}

.review-track {
  display: flex;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.review-slide {
  position: relative;
  display: flex;
  min-width: 100%;
  min-height: 250px;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: clamp(30px, 5vw, 54px);
  overflow: hidden;
  border: 2px solid var(--ink);
  border-left: 12px solid var(--coral);
  border-radius: 6px;
  background: var(--paper-bright);
  box-shadow: 8px 8px 0 var(--lemon);
}

.review-slide::after {
  position: absolute;
  top: -0.32em;
  right: 20px;
  content: "“";
  color: var(--cobalt-soft);
  font-family: Georgia, serif;
  font-size: 11rem;
  line-height: 1;
}

blockquote {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 0 22px;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.5rem, 2.7vw, 2.25rem);
  font-weight: 900;
  line-height: 1.14;
}

figcaption {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.review-controls {
  display: grid;
  width: min(250px, 100%);
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  justify-items: center;
  margin: 24px auto 0;
}

.review-arrow {
  width: 40px;
  height: 40px;
  font-size: 1.7rem;
}

.review-dots {
  display: flex;
  gap: 7px;
}

.review-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  transition: width 160ms ease, background 160ms ease;
}

.review-dot[aria-selected="true"] {
  width: 26px;
  background: var(--cobalt);
}

