/* ============================================================
   Synexian — Testimonials showcase (cream theme, home family)
   The site's flagship hub page. Its own structure and animation
   set: a spotlight quote rotator hero with auto-advance progress
   and avatar picker, a star-pop stat band, a masonry "wall" of
   full reviews with verified stamps, a big-type client-name
   marquee, and a themes synthesis. Light motion rules apply:
   CSS + IO + small intervals, no vendor libs.
   ============================================================ */

section { padding: 6rem 0; }

.tagline {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1.4rem;
}
.grid-paper {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 50% 15%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 85% at 50% 15%, #000 30%, transparent 78%);
}
.hero .dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0.85;
  animation: dot-drift 9s ease-in-out infinite alternate;
}
.dot-amber { width: 18px; height: 18px; background: var(--amber); top: 14%; left: 6%; }
.dot-coral { width: 13px; height: 13px; background: var(--coral); top: 70%; left: 90%; animation-delay: -3s; }
.dot-olive { width: 15px; height: 15px; background: var(--olive); top: 10%; left: 68%; animation-delay: -6s; }
@keyframes dot-drift {
  to { transform: translate(14px, -20px); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
}

/* ---------- 1. hero + spotlight ---------- */
.hero {
  position: relative;
  padding: 5rem 0 4.5rem;
  overflow: hidden;
  text-align: center;
}
.hero-inner { position: relative; max-width: 980px; margin-inline: auto; }
.hero-inner h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.hero-inner h1 em { font-style: normal; color: var(--amber-deep); }
.hero-inner > * { animation: rise-in 0.9s var(--ease-out) both; }
.hero-inner > *:nth-child(2) { animation-delay: 0.08s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.16s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.24s; }

.spotlight {
  position: relative;
  max-width: 860px;
  margin: 3rem auto 0;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.quote-mark {
  width: 44px;
  height: 44px;
  color: color-mix(in srgb, var(--amber) 55%, transparent);
  margin-bottom: 1.2rem;
}
.spot-quote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.8vw, 2rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
  text-wrap: balance;
  opacity: 1;
  transform: none;
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.spotlight.switching .spot-quote,
.spotlight.switching .spot-who {
  opacity: 0;
  transform: translateY(12px);
}
.spot-who {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.6rem;
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.spot-who .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--cream);
}
.spot-who .who-text { text-align: left; }
.spot-who strong { font-family: var(--font-display); font-size: 1rem; display: block; }
.spot-who span { font-size: 0.82rem; color: var(--text-faint); }

.spot-progress {
  width: min(320px, 60%);
  height: 3px;
  margin-top: 1.8rem;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.spot-progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--amber);
  transform-origin: left;
  transform: scaleX(0);
}
.spot-progress i.run {
  animation: spot-run var(--spot-secs, 7s) linear forwards;
}
@keyframes spot-run {
  to { transform: scaleX(1); }
}

/* avatar picker */
.spot-picker {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2.2rem;
}
.spot-picker button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid transparent;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--cream);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.25s, transform 0.25s var(--ease-out), border-color 0.25s, box-shadow 0.25s;
}
.spot-picker button:hover { opacity: 1; transform: translateY(-3px); }
.spot-picker button[aria-selected='true'] {
  opacity: 1;
  border-color: var(--bg);
  box-shadow: 0 0 0 2px var(--amber-deep);
  transform: translateY(-3px);
}

/* ---------- 2. proof band ---------- */
.proof-band { padding: 0 0 4.5rem; }
.proof-band-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}
.proof {
  padding: 1.9rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.proof + .proof { border-left: 1px solid var(--line); }
.proof-num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--amber-deep);
  line-height: 1.05;
}
.proof-label { font-size: 0.9rem; color: var(--text-dim); }
.proof-stars { display: inline-flex; gap: 3px; margin-bottom: 0.35rem; }
.proof-stars svg {
  width: 20px;
  height: 20px;
  color: var(--amber-deep);
  transform: scale(0);
}
.proof-band.starred .proof-stars svg {
  animation: star-pop 0.45s var(--ease-out) forwards;
}
.proof-band.starred .proof-stars svg:nth-child(2) { animation-delay: 0.09s; }
.proof-band.starred .proof-stars svg:nth-child(3) { animation-delay: 0.18s; }
.proof-band.starred .proof-stars svg:nth-child(4) { animation-delay: 0.27s; }
.proof-band.starred .proof-stars svg:nth-child(5) { animation-delay: 0.36s; }
@keyframes star-pop {
  60% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* ---------- 3. the wall (masonry) ---------- */
.wall { background: var(--surface); border-block: 1px solid var(--line); }
.wall .section-head { margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.wall-grid {
  columns: 3 300px;
  column-gap: 1.3rem;
}
.wall-card {
  break-inside: avoid;
  margin-bottom: 1.3rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-top: 4px solid var(--wc, var(--amber));
  border-radius: var(--radius);
  padding: 1.7rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.wall-card:hover {
  transform: translateY(-5px) rotate(-0.4deg);
  box-shadow: 0 24px 50px -28px rgba(20, 36, 48, 0.4);
}
.wall-card .wc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.wall-card .stars { display: inline-flex; gap: 2px; color: var(--amber-deep); }
.wall-card .stars svg { width: 15px; height: 15px; }
.verified {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: var(--olive);
  border: 1.4px solid var(--olive);
  border-radius: 5px;
  padding: 0.2rem 0.45rem;
  rotate: 2deg;
  opacity: 0.9;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Ccircle cx='1' cy='1' r='1.2' fill='%23000'/%3E%3Ccircle cx='3' cy='3' r='1.2' fill='%23000'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Ccircle cx='1' cy='1' r='1.2' fill='%23000'/%3E%3Ccircle cx='3' cy='3' r='1.2' fill='%23000'/%3E%3C/svg%3E");
}
.wall-card blockquote {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-dim);
}
.wall-card.featured blockquote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--text);
}
.wall-card .who { display: flex; align-items: center; gap: 0.8rem; }
.wall-card .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--cream);
}
.wall-card .who strong { font-family: var(--font-display); font-size: 0.95rem; display: block; }
.wall-card .who span { font-size: 0.8rem; color: var(--text-faint); }
.wall-card .tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--wc, var(--amber)) 55%, transparent);
  color: color-mix(in srgb, var(--wc, var(--amber)) 80%, var(--text));
}
.wall-card .case-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--amber-deep);
  text-decoration: none;
}
.wall-card .case-link svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease-out); }
.wall-card .case-link:hover svg { transform: translateX(4px); }
/* the dashed "your story" slot */
.wall-card.slot {
  border: 1px dashed var(--line-strong);
  border-top: 4px dashed var(--line-strong);
  background: transparent;
  align-items: flex-start;
  box-shadow: none;
}
.wall-card.slot h3 { font-size: 1.15rem; }
.wall-card.slot p { color: var(--text-dim); font-size: 0.94rem; margin: 0; }

/* ---------- 4. client-name marquee ---------- */
.names { padding: 3.5rem 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.names-marquee { --marquee-speed: 38s; }
.names .marquee-track { align-items: center; gap: 2.6rem; }
.name-item {
  display: inline-flex;
  align-items: center;
  gap: 2.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  letter-spacing: -0.02em;
  color: var(--text-faint);
  white-space: nowrap;
  transition: color 0.3s;
}
.name-item:hover { color: var(--text); }
.name-item i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: none;
  background: var(--nd, var(--amber));
}

/* ---------- 5. themes ---------- */
.themes .section-head { margin-bottom: 3rem; }
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.theme-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: var(--surface-2);
}
.theme-card:hover { border-color: var(--amber); transform: translateY(-4px); }
.theme-card .icon-badge { background: color-mix(in srgb, var(--tc, var(--amber)) 14%, transparent); color: var(--tc, var(--amber-deep)); }
.theme-card h3 { font-size: 1.18rem; }
.theme-card > p { color: var(--text-dim); font-size: 0.94rem; }
.theme-card .fragment {
  margin-top: auto;
  border-left: 3px solid var(--tc, var(--amber));
  padding: 0.2rem 0 0.2rem 0.9rem;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-dim);
}
.theme-card .fragment b {
  display: block;
  margin-top: 0.4rem;
  font-style: normal;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- 6. final CTA — ink card (family) ---------- */
.cta-final { padding-bottom: 7rem; }
.cta-card {
  position: relative;
  background: var(--ink-800);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240, 235, 218, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 235, 218, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.cta-card > * { position: relative; }
.cta-dots { display: inline-flex; gap: 8px; margin-bottom: 1.4rem; }
.cta-dots i { width: 12px; height: 12px; border-radius: 50%; }
.cta-dots i:nth-child(1) { background: var(--amber); }
.cta-dots i:nth-child(2) { background: var(--coral); }
.cta-dots i:nth-child(3) { background: var(--olive); }
.cta-card h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.cta-card p {
  max-width: 62ch;
  margin: 1.1rem auto 2rem;
  color: rgba(240, 235, 218, 0.7);
}
.cta-group { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.cta-card .btn-ghost { color: var(--cream); border-color: rgba(240, 235, 218, 0.3); }
.cta-card .btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .proof-band-inner { grid-template-columns: repeat(2, 1fr); }
  .proof:nth-child(3) { border-left: none; }
  .proof:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .theme-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  section { padding: 4rem 0; }
  .hero { padding: 3.5rem 0; }
  .proof-band-inner { grid-template-columns: 1fr; }
  .proof + .proof { border-left: none; border-top: 1px solid var(--line); }
  .spotlight { min-height: 300px; }
}
