.contrast {
  max-width: 72rem;
  margin-inline: auto;
  padding: clamp(4rem, 9vw, 7.5rem) clamp(1.25rem, 4vw, 3rem);
  font-family: system-ui, sans-serif;
  color: #17181a;
  background: #ffffff;
}

.contrast__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.contrast__eyebrow {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #f0efed;
  font-size: 0.8rem;
  color: rgba(23, 24, 26, 0.7);
}

.contrast__title {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.contrast__subtitle {
  max-width: 28rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(23, 24, 26, 0.6);
}

.contrast__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 800px) {
  .contrast__split {
    grid-template-columns: 1fr;
  }
}

.contrast__side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: #f7f6f4;
}

.contrast__label {
  font-size: 0.8rem;
  color: rgba(23, 24, 26, 0.5);
}

/* ---------- Before: stacked noise ---------- */

.noise {
  position: relative;
  height: 16rem;
  overflow: hidden;
}

.noise__tab {
  position: absolute;
  top: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.45rem 0.45rem 0 0;
  background: #ffffff;
  font-size: 0.72rem;
  color: rgba(23, 24, 26, 0.45);
}

.noise__tab--a {
  left: 0.75rem;
  z-index: 1;
  transform: rotate(-2deg);
}

.noise__tab--b {
  left: 5.5rem;
  z-index: 2;
  opacity: 0.7;
  transform: rotate(1.5deg);
}

.noise__tab--c {
  left: 10.25rem;
  z-index: 1;
  opacity: 0.45;
  transform: rotate(-1deg);
}

.noise__panel {
  position: absolute;
  border-radius: 0.75rem;
  background: #ffffff;
}

.noise__panel--back {
  top: 2.4rem;
  left: 0.5rem;
  right: 1.5rem;
  height: 9rem;
  opacity: 0.55;
  transform: rotate(-3deg);
  animation: noise-drift 7s ease-in-out infinite;
}

.noise__panel--mid {
  top: 3.4rem;
  left: 1.25rem;
  right: 0.75rem;
  height: 9rem;
  opacity: 0.8;
  transform: rotate(2deg);
  animation: noise-drift-mid 8.5s ease-in-out infinite;
}

.noise__panel--front {
  top: 4.6rem;
  left: 0.85rem;
  right: 1.1rem;
  padding: 1rem 1.1rem;
  transform: rotate(-1deg);
}

.noise__bars {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 100%;
  padding: 1rem;
}

.noise__bars span {
  flex: 1;
  border-radius: 0.2rem;
  background: #f0efed;
}

.noise__bars span:nth-child(1) { height: 40%; }
.noise__bars span:nth-child(2) { height: 70%; }
.noise__bars span:nth-child(3) { height: 35%; }
.noise__bars span:nth-child(4) { height: 85%; }
.noise__bars span:nth-child(5) { height: 50%; }
.noise__bars span:nth-child(6) { height: 65%; }
.noise__bars span:nth-child(7) { height: 30%; }
.noise__bars span:nth-child(8) { height: 55%; }

.noise__lines {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.1rem;
}

.noise__lines span {
  height: 0.45rem;
  border-radius: 999px;
  background: #f0efed;
}

.noise__lines span:nth-child(1) { width: 70%; }
.noise__lines span:nth-child(2) { width: 90%; }
.noise__lines span:nth-child(3) { width: 55%; }
.noise__lines span:nth-child(4) { width: 80%; }

.noise__title {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.noise__muted {
  font-size: 0.82rem;
  color: rgba(23, 24, 26, 0.45);
}

@keyframes noise-drift {
  0%,
  100% {
    transform: rotate(-3deg) translateY(0);
  }
  50% {
    transform: rotate(-2deg) translateY(0.35rem);
  }
}

@keyframes noise-drift-mid {
  0%,
  100% {
    transform: rotate(2deg) translateY(0);
  }
  50% {
    transform: rotate(2.5deg) translateY(-0.3rem);
  }
}

/* ---------- After: one clean signal ---------- */

.signal-clean {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  min-height: 16rem;
  padding: 1.5rem 1.4rem;
  border-radius: 0.85rem;
  background: #ffffff;
}

.signal-clean__top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(23, 24, 26, 0.55);
}

.signal-clean__top svg {
  width: 0.75rem;
  height: 0.75rem;
}

.signal-clean__message {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.signal-clean__detail {
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(23, 24, 26, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .noise__panel--back,
  .noise__panel--mid {
    animation: none;
  }
}

.contrast__split .contrast__side:nth-child(2) {
  transition-delay: 0.1s;
}
