.decor-project {
  padding: clamp(34px, 4vw, 54px) 0 32px;
}

.decor-project__banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(24px, 4vw, 54px);
  border: 1px solid var(--brand-border);
  border-radius: 32px;
  background: radial-gradient(ellipse at 85% 35%, #f5dbe6, transparent 68%), #fbf3f6;
}

.decor-project__stamp {
  position: absolute;
  z-index: 1;
  top: 0;
  right: -10px;
  display: flex;
  align-items: center;
  gap: .5em;
  margin: 0;
  padding: .6em .85em;
  transform: translateY(-45%) rotate(10deg);
  border: 2px solid #a13263;
  border-radius: 8px;
  background: #fff6f9;
  color: #a13263;
  box-shadow: 0 5px 12px rgba(79, 33, 59, .18);
  font-size: clamp(.78rem, 1.3vw, 1.05rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.decor-project__stamp::before {
  position: absolute;
  inset: 3px;
  border: 1px dashed currentColor;
  border-radius: 4px;
  content: "";
  opacity: .6;
  pointer-events: none;
}

.decor-project__stamp span {
  font-size: .8em;
}

.decor-project__copy {
  container-type: inline-size;
}

.decor-project__copy h2 {
  margin: 0 0 20px;
  font-size: min(clamp(1.65rem, 3.3vw, 3.35rem), 10cqi);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.045em;
  hyphens: none;
}

.decor-project__copy p {
  max-width: 38ch;
  margin-bottom: 22px;
  color: var(--brand-plum-muted);
}

.decor-project__frame {
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(79, 33, 59, .22);
}

.decor-project__stage {
  position: relative;
  aspect-ratio: 4 / 3;
  perspective: 1400px;
  perspective-origin: left center;
  touch-action: pan-y pinch-zoom;
}

.decor-project__stage:focus-visible {
  outline: 3px solid #934266;
  outline-offset: -3px;
}

.decor-project__stage img {
  display: block;
  width: 100%;
  height: 100%;
}

.decor-project__sheet {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  backface-visibility: hidden;
  box-shadow: 8px 0 22px rgba(32, 19, 27, .30);
  pointer-events: none;
}

.decor-project__controls:not([hidden]) {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.decor-project__controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--brand-border);
  border-radius: 50%;
  background: var(--brand-white);
  color: var(--brand-plum);
  font-size: 1.3rem;
  cursor: pointer;
}

.decor-project__controls button[aria-disabled="true"] {
  opacity: .46;
  cursor: default;
}

.decor-project__controls button[aria-disabled="false"]:hover {
  border-color: #934266;
}

.decor-project__controls button:focus-visible {
  outline: 2px solid #934266;
  outline-offset: 2px;
}

.decor-project__controls p {
  margin: 0;
  text-align: center;
  color: var(--brand-plum);
  font-size: .875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 820px) {
  .decor-project {
    padding-bottom: 24px;
  }

  .decor-project__banner {
    grid-template-columns: minmax(0, 1fr);
    padding: clamp(16px, 4vw, 30px);
    padding-top: 40px;
    border-radius: 24px;
  }

  .decor-project__copy h2 {
    font-size: min(clamp(1.55rem, 7.6vw, 2.65rem), 10cqi);
  }
}
