/* =========================================================================
   Section 11 — "Wall of Love" (node 1:2375)
   3-column masonry-style testimonial deck, vertically offset, with
   white gradient fades top and bottom. Design height 802px.
   ========================================================================= */

.s11 {
  height: 802px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.s11-container {
  width: 1056px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---- Header --------------------------------------------------------------- */
.s11-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 1008px;
}
.s11-title {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 38px;
  line-height: 46px;
  letter-spacing: -0.8px;
  color: #222;
  text-align: center;
  white-space: nowrap;
}
.s11-sub {
  margin: 0;
  padding-top: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: #000;
  text-align: center;
  white-space: nowrap;
}

/* ---- Testimonials viewport ----------------------------------------------- */
.s11-testimonials {
  width: 1008px;
  height: 520px;
  padding-top: 40px;
  overflow: clip;
}
.s11-grid {
  position: relative;
  width: 1008px;
  height: 520px;
  overflow: clip;
}
.s11-cols {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  height: 520px;
}
.s11-col {
  flex: 1 1 0;
  height: 100%;
  min-width: 1px;
}
.s11-col-clip {
  position: relative;
  height: 100%;
  overflow: clip;
}
.s11-stack {
  position: absolute;
  left: 0;
  width: 325px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.s11-stack--1 { top: -110.82px; }
.s11-stack--2 { top: -666.9px; }
.s11-stack--3 { top: -86.63px; }

/* ---- Card ----------------------------------------------------------------- */
.s11-card {
  width: 325px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.s11-head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.s11-avatar {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: none;
}
.s11-meta {
  display: flex;
  flex-direction: column;
}
.s11-name {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: #000;
  white-space: nowrap;
}
.s11-role {
  margin: 0;
  padding-top: 2px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}
.s11-org {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}
.s11-quote {
  margin: 0;
  padding-top: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  color: #000;
  word-break: break-word;
}

/* ---- Gradient fades ------------------------------------------------------- */
.s11-fade {
  position: absolute;
  left: 0;
  width: 1008px;
  height: 80px;
  pointer-events: none;
  z-index: 2;
}
.s11-fade--top {
  top: 0;
  background: linear-gradient(180deg,
    #fff 0%,
    rgba(255, 255, 255, 0.9) 38%,
    rgba(255, 255, 255, 0) 100%);
}
/* ---------------------------------------------------------------------------
   Auto-scroll columns. script.js duplicates each stack's cards, so translating
   by exactly 50% loops seamlessly. The static design offsets are replaced by
   continuous vertical motion; the gradient fades mask the wrap seams.
   --------------------------------------------------------------------------- */
.s11-stack.s11-marquee {
  top: 0;
  height: max-content;
  will-change: transform;
}
.s11-stack--1.s11-marquee { animation: s11-scroll-up 50s linear infinite; }
.s11-stack--2.s11-marquee { animation: s11-scroll-down 60s linear infinite; }
.s11-stack--3.s11-marquee { animation: s11-scroll-up 55s linear infinite; }

@keyframes s11-scroll-up {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
@keyframes s11-scroll-down {
  from { transform: translateY(-50%); }
  to   { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .s11-marquee { animation: none !important; }
}

.s11-fade--bottom {
  top: 440px;
  background: linear-gradient(0deg,
    #fff 0%,
    rgba(255, 255, 255, 0.9) 38%,
    rgba(255, 255, 255, 0) 100%);
}

/* =========================================================================
   Responsive overrides (appended). Desktop rules above are unchanged.
   The marquee animation rules (.s11-stack.s11-marquee, the per-column
   animation rules, and @keyframes) are intentionally NOT touched here so
   vertical auto-scroll keeps working. We only make wrappers fluid and
   collapse columns on small screens. .s11-grid/.s11-testimonials keep
   their 520px height + overflow:clip (from base rules) so the marquee
   still clips and the gradient fades keep masking the loop seams.
   ========================================================================= */
@media (max-width: 1024px) {
  .s11 {
    height: auto;
    padding: 64px 0;
  }
  .s11-container { width: 100%; }
  .s11-header { width: 100%; }
  .s11-testimonials,
  .s11-grid { width: 100%; }
  .s11-fade { width: 100%; }

  /* Cards/stacks fill their column so the 3 columns shrink to fit.
     Scoped to .s11-col so the base .s11-stack rules stay intact. */
  .s11-col .s11-card { width: 100%; }
  .s11-col .s11-stack { width: 100%; }
}

@media (max-width: 600px) {
  .s11 {
    height: auto;
    padding: 64px 0;
  }
  .s11-container { width: 100%; }
  .s11-header { width: 100%; }
  .s11-testimonials,
  .s11-grid { width: 100%; }
  .s11-fade { width: 100%; }

  .s11-col .s11-card { width: 100%; }
  .s11-col .s11-stack { width: 100%; }

  /* 3 narrow columns are unreadable at this width — show a single
     full-width column and hide the rest. */
  .s11-col:nth-child(n+2) { display: none; }

  /* Let the title wrap and shrink so it stays legible. */
  .s11-title {
    font-size: 26px;
    line-height: 32px;
    white-space: normal;
  }
  .s11-sub { white-space: normal; }
}
