.feedback-section {
  --feedback-blue: #8590ca;
  --feedback-yellow: #f8b341;
  --feedback-red: #cd6456;
  --feedback-green: #567258;
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 9vw, 8rem) clamp(1.2rem, 4vw, 3rem);
  background: #eaf0ea;
  border-top: 1px solid rgba(44, 31, 42, 0.06);
  border-bottom: 1px solid rgba(44, 31, 42, 0.06);
  scroll-margin-top: 76px;
}

.storybook-section[hidden] {
  display: none !important;
}

.feedback-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(133, 144, 202, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 114, 88, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

.feedback-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.feedback-heading {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.feedback-eyebrow {
  align-self: start;
  color: var(--feedback-red);
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.feedback-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 5vw, 4.65rem);
  font-weight: 300;
  line-height: 0.98;
}

.feedback-heading h2 i {
  color: var(--feedback-blue);
  font-style: italic;
}

.feedback-intro {
  max-width: 700px;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.35vw, 1.25rem);
  line-height: 1.55;
}

.feedback-carousel {
  position: relative;
  width: min(980px, 100%);
  margin: 0 auto;
  outline: none;
}

.feedback-stage {
  position: relative;
  display: grid;
  isolation: isolate;
}

.feedback-stage::before,
.feedback-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1rem 2.4rem -0.75rem;
  border: 1px solid rgba(133, 144, 202, 0.18);
  border-radius: 8px;
  background: rgba(251, 252, 248, 0.64);
}

.feedback-stage::after {
  inset: 1.8rem 4.2rem -1.35rem;
  border-color: rgba(205, 100, 86, 0.13);
  background: rgba(251, 252, 248, 0.38);
}

.feedback-slide {
  --feedback-accent: var(--feedback-blue);
  --feedback-tint: rgba(133, 144, 202, 0.12);
  grid-area: 1 / 1;
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(170px, 0.34fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2.3rem, 6vw, 5rem);
  visibility: hidden;
  opacity: 0;
  transform: translateX(22px) scale(0.99);
  pointer-events: none;
  overflow: hidden;
  border: 1px solid rgba(44, 31, 42, 0.08);
  border-radius: 8px;
  background: rgba(251, 252, 248, 0.94);
  box-shadow: 0 34px 70px -48px rgba(44, 31, 42, 0.32);
  transition: opacity 0.55s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.55s;
}

.feedback-slide:nth-child(4n + 2) {
  --feedback-accent: var(--feedback-red);
  --feedback-tint: rgba(205, 100, 86, 0.1);
}

.feedback-slide:nth-child(4n + 3) {
  --feedback-accent: var(--feedback-yellow);
  --feedback-tint: rgba(248, 179, 65, 0.13);
}

.feedback-slide:nth-child(4n + 4) {
  --feedback-accent: var(--feedback-green);
  --feedback-tint: rgba(86, 114, 88, 0.11);
}

.feedback-slide::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--feedback-accent);
}

.feedback-slide::after {
  content: "\201C";
  position: absolute;
  top: -2.2rem;
  right: 1.4rem;
  color: var(--feedback-tint);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(10rem, 22vw, 18rem);
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}

.feedback-slide.active {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.feedback-meta,
.feedback-quote {
  position: relative;
  z-index: 1;
}

.feedback-meta {
  padding-top: 1rem;
  border-top: 4px solid var(--feedback-accent);
}

.feedback-kind {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--feedback-accent);
  font-family: 'Manrope', sans-serif;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.feedback-author {
  display: block;
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 500;
  line-height: 1.15;
}

.feedback-slide blockquote {
  margin: 0;
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.12;
}

.feedback-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  width: min(900px, calc(100% - 2rem));
  margin: 2.4rem auto 0;
}

.feedback-arrow {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(44, 31, 42, 0.14);
  border-radius: 50%;
  background: rgba(251, 252, 248, 0.72);
  color: var(--ink);
  cursor: pointer;
  transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.feedback-arrow:hover,
.feedback-arrow:focus-visible {
  color: #fff;
  background: var(--feedback-blue);
  border-color: var(--feedback-blue);
  transform: translateY(-2px);
  outline: none;
}

.feedback-arrow svg {
  width: 20px;
  height: 20px;
}

.feedback-position {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.feedback-counter {
  min-width: 4.2rem;
  color: var(--ink-soft);
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

.feedback-dots {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
}

.feedback-dot {
  width: 22px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.feedback-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(44, 31, 42, 0.24);
  transition: width 0.25s ease, border-radius 0.25s ease, background 0.25s ease;
}

.feedback-dot.active::before {
  width: 20px;
  border-radius: 999px;
  background: var(--feedback-blue);
}

.feedback-dot:focus-visible {
  outline: 2px solid var(--feedback-blue);
  outline-offset: 1px;
  border-radius: 999px;
}

@media (max-width: 720px) {
  .feedback-section {
    padding: 4.5rem 1rem 5rem;
  }

  .feedback-heading {
    display: block;
    margin-bottom: 2.2rem;
  }

  .feedback-eyebrow {
    display: block;
    margin-bottom: 0.8rem;
  }

  .feedback-heading h2 {
    font-size: clamp(2.55rem, 11.5vw, 3.45rem);
    line-height: 1.02;
  }

  .feedback-intro {
    margin-top: 1rem;
    font-size: 1.05rem;
    line-height: 1.5;
  }

  .feedback-stage::before {
    inset: 0.7rem 0.75rem -0.55rem;
  }

  .feedback-stage::after {
    inset: 1.3rem 1.5rem -1rem;
  }

  .feedback-slide {
    min-height: 540px;
    grid-template-columns: 1fr;
    gap: 1.8rem;
    align-content: center;
    padding: 2.4rem 1.55rem 6.4rem 1.75rem;
  }

  .feedback-quote { order: 1; }
  .feedback-meta { order: 2; max-width: 230px; }

  .feedback-slide blockquote {
    font-size: clamp(1.75rem, 8.2vw, 2.3rem);
    line-height: 1.16;
  }

  .feedback-slide::after {
    top: -1.2rem;
    right: 0.4rem;
    font-size: 11rem;
  }

  .feedback-controls {
    position: absolute;
    z-index: 4;
    left: 1.15rem;
    right: 1.15rem;
    bottom: 0.8rem;
    width: auto;
    gap: 0.6rem;
    margin: 0;
  }

  .feedback-position {
    flex-direction: column;
    gap: 0.2rem;
  }

  .feedback-dots {
    max-width: 230px;
    gap: 0;
  }

  .feedback-dot {
    width: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feedback-slide,
  .feedback-arrow,
  .feedback-dot::before {
    transition: none;
  }
}
