#testimonials {
  position: relative;
  isolation: isolate;
  padding: 16px;
  overflow: clip;
  background: var(--card);
  border-radius: var(--radius);
}
#testimonials::before {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0 0 auto;
  height: 165px;
  background: var(--secondary);
  clip-path: ellipse(72% 57% at 50% 0);
  transform-origin: top;
}
#testimonials .section-inner {
  max-width: 1180px;
  padding: 48px clamp(6px, 4vw, 56px) 36px;
  margin-inline: auto;
}
#testimonials .section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 56px;
}
#testimonials .eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
#testimonials .eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}
#testimonials .testimonial-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.5fr;
  align-items: center;
  gap: clamp(32px, 6vw, 90px);
}
#testimonials .section-title {
  font: 400 clamp(43px, 5.4vw, 74px)/1.03 var(--serif);
  letter-spacing: -0.055em;
  color: var(--primary);
}
#testimonials .section-title span {
  display: block;
}
#testimonials .section-title em {
  font-weight: 400;
  color: var(--accent);
}
#testimonials .section-intro {
  color: var(--muted-foreground);
  font-size: 14px;
  max-width: 260px;
  margin-top: 24px;
}
#testimonials .thread-art {
  margin-top: 25px;
  width: min(100%, 225px);
  height: 95px;
  overflow: visible;
  color: var(--accent);
}
#testimonials .thread-art path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
#testimonials .little-note {
  font: italic 18px var(--serif);
  color: var(--accent);
  transform: rotate(-5deg);
  margin: -3px 0 0 45px;
}
#testimonials .book {
  min-width: 0;
  position: relative;
  padding: 0 12px 12px 0;
}
#testimonials .book::before,
#testimonials .book::after {
  content: "";
  position: absolute;
  border: 1px solid var(--border);
  background: var(--primary-foreground);
  pointer-events: none;
}
#testimonials .book::before {
  inset: 8px 4px 4px 8px;
  transform: rotate(1.2deg);
}
#testimonials .book::after {
  inset: 4px 8px 8px 4px;
  transform: rotate(-0.6deg);
}
#testimonials .book-surface {
  position: relative;
  z-index: 1;
  border: 1px solid var(--border);
  background: var(--primary-foreground);
  padding: 26px clamp(22px, 3vw, 42px) 22px;
  box-shadow: 0 14px 45px color-mix(in srgb, var(--primary) 5%, transparent);
}
#testimonials .book-surface::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 12px;
  width: 1px;
  background: color-mix(in srgb, var(--border) 55%, transparent);
}
#testimonials .book-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}
#testimonials .story-stage {
  display: grid;
  position: relative;
  overflow: hidden;
}
#testimonials .story {
  grid-area: 1 / 1;
  padding-top: 28px;
  padding-bottom: 26px;
  background: var(--primary-foreground);
  transform-origin: left center;
}
#testimonials .story blockquote {
  margin-top: 12px;
  font: 400 clamp(29px, 3.3vw, 45px)/1.2 var(--serif);
  letter-spacing: -0.035em;
  color: var(--primary);
}
#testimonials .story blockquote em {
  font-weight: 400;
  color: var(--accent);
}
#testimonials .story-detail {
  margin-top: 22px;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.8;
  max-width: 440px;
}
#testimonials .story figcaption {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 25px;
  font-size: 11px;
  line-height: 1.7;
}
#testimonials .initial {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--secondary);
  color: var(--primary);
  font: italic 17px var(--serif);
}
#testimonials .attribution strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
}
#testimonials .attribution small {
  font-size: 10px;
  color: var(--muted-foreground);
}
#testimonials .book-bottom {
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: 4px;
}
#testimonials .story-tabs {
  display: flex;
}
#testimonials .story-tab {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  position: relative;
  transition: transform 0.4s var(--ease);
}
#testimonials .story-tab::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: var(--muted-foreground);
  transition:
    background 0.3s,
    transform 0.4s var(--ease);
}
#testimonials .story-tab[aria-selected="true"]::before {
  background: var(--accent);
  transform: scale(1.25);
}
#testimonials .story-tab::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 0.3s,
    transform 0.4s var(--ease);
}
#testimonials .story-tab[aria-selected="true"]::after,
#testimonials .story-tab:hover::after,
#testimonials .story-tab:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}
#testimonials .story-tab:active {
  transform: scale(0.94);
}
#testimonials .page-count {
  color: var(--muted-foreground);
  font-size: 10px;
  letter-spacing: 0.07em;
}
#testimonials .section-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 45px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 10px;
}
#testimonials .section-bottom em {
  font: italic 16px var(--serif);
  color: var(--accent);
}
#testimonials[data-enhanced] .story:not(.is-current):not(.is-leaving) {
  visibility: hidden;
  pointer-events: none;
}
#testimonials:not([data-enhanced]) .story-stage {
  display: block;
}
#testimonials:not([data-enhanced]) .story + .story {
  border-top: 1px solid var(--border);
}
#testimonials:not([data-enhanced]) .book-bottom {
  display: none;
}
html[data-motion="full"] #testimonials.is-visible::before {
  animation: testimonials-open-edge 1.8s var(--ease) both;
}
html[data-motion="full"] #testimonials.is-visible .title-line {
  animation: testimonials-title-rise 1.1s var(--ease) both;
}
html[data-motion="full"] #testimonials.is-visible .title-line:nth-child(2) {
  animation-delay: 0.12s;
}
html[data-motion="full"] #testimonials.is-visible .section-intro {
  animation: testimonials-title-rise 1.2s var(--ease) 0.2s both;
}
html[data-motion="full"] #testimonials.is-visible .book {
  animation: testimonials-open-book 1.45s var(--ease) 0.15s both;
}
html[data-motion="full"] #testimonials.is-visible .thread-art path {
  animation: testimonials-draw-thread 2.5s var(--ease) 0.35s both;
}
html[data-motion="full"] #testimonials.is-visible .little-note {
  animation: testimonials-note-in 1s var(--ease) 0.8s both;
}
html[data-motion="full"] #testimonials .story.is-entering {
  z-index: 2;
  animation: testimonials-slide-in 0.6s var(--ease) both;
}
html[data-motion="full"] #testimonials .story.is-leaving {
  z-index: 3;
  pointer-events: none;
  animation: testimonials-slide-out 0.6s var(--ease) both;
}
html[data-motion="full"]
  #testimonials
  .story-stage[data-direction="back"]
  .story.is-entering {
  animation-name: testimonials-slide-in-back;
}
html[data-motion="full"]
  #testimonials
  .story-stage[data-direction="back"]
  .story.is-leaving {
  animation-name: testimonials-slide-out-back;
}
@keyframes testimonials-open-edge {
  from {
    transform: scaleY(1.65);
  }
  to {
    transform: scaleY(1);
  }
}
@keyframes testimonials-title-rise {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes testimonials-open-book {
  from {
    opacity: 0;
    transform: translateY(32px) rotate(2deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}
@keyframes testimonials-draw-thread {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes testimonials-note-in {
  from {
    opacity: 0;
    transform: translateY(12px) rotate(-5deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(-5deg);
  }
}
@keyframes testimonials-slide-out {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}
@keyframes testimonials-slide-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes testimonials-slide-out-back {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}
@keyframes testimonials-slide-in-back {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}
@media (max-width: 760px) {
  #testimonials .section-inner {
    padding: 25px 4px 20px;
  }
  #testimonials .section-top {
    padding-bottom: 38px;
    gap: 10px;
    flex-wrap: wrap;
  }
  #testimonials .eyebrow {
    font-size: 9px;
  }
    #testimonials .testimonial-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  #testimonials .section-title {
    font-size: clamp(43px, 11vw, 64px);
  }
  #testimonials .section-title span {
    display: inline;
  }
  #testimonials .section-title span + span::before {
    content: " ";
  }
  #testimonials .section-intro {
    max-width: 310px;
    font-size: 13px;
    margin-top: 18px;
  }
  #testimonials .thread-art {
    display: none;
  }
  #testimonials .little-note {
    margin-top: 20px;
    margin-left: 5px;
    font-size: 17px;
    transform: rotate(-3deg);
  }
  #testimonials .book {
    padding-right: 8px;
    padding-bottom: 9px;
  }
  #testimonials .book-surface {
    padding: 20px 20px 18px 25px;
  }
  #testimonials .book-top {
    font-size: 8px;
    gap: 8px;
    padding-bottom: 15px;
  }
      #testimonials .story {
    padding-top: 23px;
    padding-bottom: 22px;
  }
  #testimonials .story blockquote {
    font-size: clamp(28px, 8vw, 36px);
  }
  #testimonials .story-detail {
    font-size: 12px;
    margin-top: 18px;
  }
  #testimonials .story figcaption {
    margin-top: 23px;
  }
  #testimonials .section-bottom {
    margin-top: 25px;
    display: block;
    font-size: 10px;
  }
  #testimonials .section-bottom em {
    display: block;
    margin-top: 13px;
  }
}

/* Use the live page's full-width sections, content width and readable type. */
#testimonials {
  padding: 0;
  border-radius: 0;
}
#testimonials .section-inner {
  padding: 76px 0 70px;
  max-width: var(--page-width);
}
#testimonials .eyebrow {
  font-size: 0.75rem;
}
#testimonials .section-intro,
#testimonials .story-detail {
  font-size: 1rem;
}
#testimonials .book-top {
  font-size: 0.75rem;
  flex-wrap: wrap;
}
#testimonials .attribution strong {
  font-size: 0.875rem;
}
#testimonials .attribution small {
  font-size: 0.75rem;
}
#testimonials .page-count {
  font-size: 0.75rem;
}
#testimonials .section-bottom {
  font-size: 0.75rem;
}
#testimonials .story blockquote {
  margin-inline: 0;
  max-width: none;
}
#testimonials button {
  font-family: var(--font-sans);
}
#testimonials button:focus-visible,
#testimonials .story:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 760px) {
  #testimonials .section-inner {
    padding: 40px 0 48px;
  }
  #testimonials .book-top {
    gap: 10px;
  }
  #testimonials .story-tabs {
    gap: 0;
  }
  #testimonials .section-bottom {
    padding-top: 24px;
  }
}
@media (max-width: 360px) {
  #testimonials .book-surface {
    padding-inline: 18px;
  }
  #testimonials .book-surface::after {
    left: 8px;
  }
    #testimonials .page-count {
    font-size: 0.75rem;
    letter-spacing: 0;
  }
}

@media (max-width: 400px) {
  #testimonials .story-tabs { display: grid; grid-template-columns: repeat(3, 44px); }
}
