FreeMIT License

Aurora Glass Testimonials — Interactive 3D Card Stack

An interactive 3D stack of glass testimonial cards: single-file HTML, Tailwind CSS and vanilla JS.

by UpFork, built by Ramin ValadanComponentUpdated 8 Oct 2026

Watch0
Preview of Aurora Glass Testimonials — Interactive 3D Card Stack

Code

1 file · 12 assets

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Aurora Glass Testimonials: Interactive 3D Glassmorphism Review Card Stack (Tailwind, Animated, Responsive)</title>
    <meta
      name="description"
      content="A premium animated testimonials section with draggable 3D glassmorphic review cards, aurora background, star ratings, dark mode, autoplay and full accessibility. Built with Tailwind CSS and vanilla JS — drop it into any SaaS, portfolio or landing page."
    />
    <meta name="color-scheme" content="light dark" />
    <link
      rel="icon"
      href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='8' fill='%2308070d'/%3E%3Crect x='7' y='11' width='18' height='13' rx='4' fill='%23a78bfa' opacity='.35'/%3E%3Crect x='5' y='14' width='22' height='13' rx='4' fill='%23f5f4fa'/%3E%3C/svg%3E"
    />
    <script>
      // Before the first paint: switch the cards from the no-JS grid to the stack, and apply the demo's saved theme.
      document.documentElement.classList.add("agt-js");
      try {
        const theme = localStorage.getItem("agt-demo-theme");
        if (theme === "light" || theme === "dark") document.documentElement.dataset.theme = theme;
      } catch {}
    </script>
    <style>
      @font-face {
        font-family: "Geist";
        src: url("fonts/geist-latin.woff2") format("woff2");
        font-weight: 100 900;
        font-display: swap;
      }
    </style>
    <!-- Tailwind utilities for the section layout and the demo page (generated by npm run build). -->
    <style data-tailwind>
      /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial}}}@layer theme{:root,:host{--font-sans:"Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-zinc-100:oklch(96.7% .001 286.375);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-500:oklch(55.2% .016 285.938);--color-zinc-900:oklch(21% .006 285.885);--color-white:#fff;--spacing:.25rem;--container-2xl:42rem;--container-6xl:72rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25 / 1.875);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--font-weight-semibold:600;--tracking-tight:-.025em;--blur-md:12px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.fixed{position:fixed}.top-4{top:calc(var(--spacing) * 4)}.right-4{right:calc(var(--spacing) * 4)}.z-50{z-index:50}.mx-auto{margin-inline:auto}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-10{margin-top:calc(var(--spacing) * 10)}.mt-12{margin-top:calc(var(--spacing) * 12)}.mt-14{margin-top:calc(var(--spacing) * 14)}.mt-16{margin-top:calc(var(--spacing) * 16)}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-flex{display:inline-flex}.size-1\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.h-8{height:calc(var(--spacing) * 8)}.w-px{width:1px}.max-w-2xl{max-width:var(--container-2xl)}.max-w-6xl{max-width:var(--container-6xl)}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-x-8{column-gap:calc(var(--spacing) * 8)}.gap-y-4{row-gap:calc(var(--spacing) * 4)}.rounded-full{border-radius:3.40282e38px}.border{border-style:var(--tw-border-style);border-width:1px}.border-zinc-900\/10{border-color:#18181b1a}@supports (color:color-mix(in lab, red, red)){.border-zinc-900\/10{border-color:color-mix(in oklab, var(--color-zinc-900) 10%, transparent)}}.bg-\(--agt-accent\){background-color:var(--agt-accent)}.bg-\[\#f6f5fb\]{background-color:#f6f5fb}.bg-current{background-color:currentColor}.bg-white\/70{background-color:#ffffffb3}@supports (color:color-mix(in lab, red, red)){.bg-white\/70{background-color:color-mix(in oklab, var(--color-white) 70%, transparent)}}.p-1{padding:var(--spacing)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-24{padding-block:calc(var(--spacing) * 24)}.text-center{text-align:center}.text-left{text-align:left}.font-sans{font-family:var(--font-sans)}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[15px\]{font-size:15px}.leading-\[1\.1\]{--tw-leading:1.1;line-height:1.1}.leading-\[1\.05\]{--tw-leading:1.05;line-height:1.05}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[-0\.03em\]{--tw-tracking:-.03em;letter-spacing:-.03em}.tracking-\[-0\.035em\]{--tw-tracking:-.035em;letter-spacing:-.035em}.tracking-\[0\.22em\]{--tw-tracking:.22em;letter-spacing:.22em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.text-balance{text-wrap:balance}.text-pretty{text-wrap:pretty}.text-\(--agt-text-2\){color:var(--agt-text-2)}.text-zinc-500{color:var(--color-zinc-500)}.text-zinc-900{color:var(--color-zinc-900)}.uppercase{text-transform:uppercase}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-15{opacity:.15}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media (hover:hover){.hover\:text-zinc-900:hover{color:var(--color-zinc-900)}}.aria-pressed\:bg-zinc-900\/5[aria-pressed=true]{background-color:#18181b0d}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-zinc-900\/5[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-zinc-900) 5%, transparent)}}.aria-pressed\:text-zinc-900[aria-pressed=true]{color:var(--color-zinc-900)}@media (min-width:40rem){.sm\:text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.sm\:text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}}@media (min-width:48rem){.md\:mt-20{margin-top:calc(var(--spacing) * 20)}.md\:block{display:block}.md\:flex-row{flex-direction:row}.md\:justify-center{justify-content:center}.md\:gap-12{gap:calc(var(--spacing) * 12)}.md\:py-28{padding-block:calc(var(--spacing) * 28)}.md\:py-32{padding-block:calc(var(--spacing) * 32)}.md\:text-6xl{font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}}@media (prefers-color-scheme:dark){.dark\:border-white\/10:where(:root:not([data-theme=light]) *){border-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.dark\:border-white\/10:where(:root:not([data-theme=light]) *){border-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}}.dark\:border-white\/10:where([data-theme=dark] *){border-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.dark\:border-white\/10:where([data-theme=dark] *){border-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}@media (prefers-color-scheme:dark){.dark\:bg-\[\#08070d\]:where(:root:not([data-theme=light]) *){background-color:#08070d}}.dark\:bg-\[\#08070d\]:where([data-theme=dark] *){background-color:#08070d}@media (prefers-color-scheme:dark){.dark\:bg-zinc-900\/70:where(:root:not([data-theme=light]) *){background-color:#18181bb3}@supports (color:color-mix(in lab, red, red)){.dark\:bg-zinc-900\/70:where(:root:not([data-theme=light]) *){background-color:color-mix(in oklab, var(--color-zinc-900) 70%, transparent)}}}.dark\:bg-zinc-900\/70:where([data-theme=dark] *){background-color:#18181bb3}@supports (color:color-mix(in lab, red, red)){.dark\:bg-zinc-900\/70:where([data-theme=dark] *){background-color:color-mix(in oklab, var(--color-zinc-900) 70%, transparent)}}@media (prefers-color-scheme:dark){.dark\:text-zinc-100:where(:root:not([data-theme=light]) *){color:var(--color-zinc-100)}}.dark\:text-zinc-100:where([data-theme=dark] *){color:var(--color-zinc-100)}@media (prefers-color-scheme:dark){.dark\:text-zinc-400:where(:root:not([data-theme=light]) *){color:var(--color-zinc-400)}}.dark\:text-zinc-400:where([data-theme=dark] *){color:var(--color-zinc-400)}@media (prefers-color-scheme:dark){@media (hover:hover){.dark\:hover\:text-white:where(:root:not([data-theme=light]) *):hover{color:var(--color-white)}}}@media (hover:hover){.dark\:hover\:text-white:where([data-theme=dark] *):hover{color:var(--color-white)}}@media (prefers-color-scheme:dark){.dark\:aria-pressed\:bg-white\/10:where(:root:not([data-theme=light]) *)[aria-pressed=true]{background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.dark\:aria-pressed\:bg-white\/10:where(:root:not([data-theme=light]) *)[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}}.dark\:aria-pressed\:bg-white\/10:where([data-theme=dark] *)[aria-pressed=true]{background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.dark\:aria-pressed\:bg-white\/10:where([data-theme=dark] *)[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}@media (prefers-color-scheme:dark){.dark\:aria-pressed\:text-white:where(:root:not([data-theme=light]) *)[aria-pressed=true]{color:var(--color-white)}}.dark\:aria-pressed\:text-white:where([data-theme=dark] *)[aria-pressed=true]{color:var(--color-white)}}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}

    </style>
    <!-- Aurora Glass Testimonials: the component's own styles. -->
    <style>
      /* ============================================================================
   Aurora Glass Testimonials
   Every color, size and timing is a custom property on .agt, so a re-theme is a
   handful of overrides. Colors use light-dark(): they follow the visitor's
   color scheme, or a data-theme="light" | "dark" on the section or any ancestor.
   ========================================================================== */

.agt {
  /* Accent and aurora */
  --agt-accent: light-dark(#6d4aff, #a78bfa);
  --agt-accent-2: light-dark(#0891b2, #67e8f9);
  --agt-blob-1: light-dark(#c4b5fd, #7c3aed);
  --agt-blob-2: light-dark(#a5f3fc, #0891b2);
  --agt-blob-3: light-dark(#fde68a, #d97706);

  /* Surfaces and text (text stays at 4.5:1 or better on the glass in both themes) */
  --agt-bg: light-dark(#f6f5fb, #08070d);
  --agt-text: light-dark(#14131c, #f5f4fa);
  --agt-text-2: light-dark(#4d4b5c, #c9c6d8);
  --agt-text-3: light-dark(#625f72, #a7a4ba);
  --agt-glass-bg: light-dark(rgb(255 255 255 / 0.62), rgb(24 22 38 / 0.56));
  --agt-glass-solid: light-dark(rgb(255 255 255 / 0.95), rgb(24 22 38 / 0.96));
  --agt-pill-bg: light-dark(rgb(255 255 255 / 0.7), rgb(255 255 255 / 0.07));
  --agt-edge-1: light-dark(rgb(255 255 255 / 0.95), rgb(255 255 255 / 0.3));
  --agt-edge-2: light-dark(rgb(255 255 255 / 0.3), rgb(255 255 255 / 0.06));
  --agt-edge-3: light-dark(rgb(109 74 255 / 0.28), rgb(167 139 250 / 0.22));
  --agt-highlight: light-dark(rgb(255 255 255 / 0.85), rgb(255 255 255 / 0.1));
  --agt-sheen: light-dark(rgb(255 255 255 / 0.55), rgb(255 255 255 / 0.12));
  --agt-star: #f5a524;
  --agt-star-empty: light-dark(rgb(20 18 40 / 0.14), rgb(255 255 255 / 0.16));
  --agt-verified: light-dark(#047857, #6ee7b7);
  --agt-shadow:
    0 1px 1px light-dark(rgb(17 12 46 / 0.04), rgb(0 0 0 / 0.3)),
    0 18px 40px -18px light-dark(rgb(30 20 80 / 0.28), rgb(0 0 0 / 0.65)),
    0 60px 110px -40px light-dark(rgb(60 40 140 / 0.3), rgb(0 0 0 / 0.75));

  /* Icons, drawn by CSS masks so they take any color */
  --agt-icon-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.2l2.41 5.88 6.34.48-4.85 4.11 1.51 6.17L10 14.5l-5.41 3.34 1.51-6.17-4.85-4.11 6.34-.48z'/%3E%3C/svg%3E");
  --agt-icon-quote: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 9.6C2 6.2 3.9 3.8 7 3v2.1C5.5 5.7 4.8 6.8 4.7 8H7v5H2zm7 0C9 6.2 10.9 3.8 14 3v2.1c-1.5.6-2.2 1.7-2.3 2.9H14v5H9z'/%3E%3C/svg%3E");
  --agt-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6.5'/%3E%3Cpath d='M5.3 8.2l1.8 1.8 3.6-3.8'/%3E%3C/svg%3E");

  /* Shape, glass and motion */
  --agt-radius: 28px;
  --agt-blur: 24px;
  --agt-card-w: min(540px, calc(100vw - 48px));
  --agt-card-h: 300px;
  --agt-lift: -34px; /* each card behind sits this much higher */
  --agt-depth: -60px; /* and this much farther away */
  --agt-shrink: 0.055; /* and this much smaller */
  --agt-spring: cubic-bezier(0.2, 1.18, 0.32, 1);
  --agt-interval: 6000ms;

  color-scheme: light dark;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--agt-bg);
  color: var(--agt-text);
}

/* Theme overrides, on the section itself or any ancestor such as <html>. */
:where([data-theme="dark"]) .agt:not([data-theme="light"]),
.agt[data-theme="dark"] {
  color-scheme: dark;
}
:where([data-theme="light"]) .agt:not([data-theme="dark"]),
.agt[data-theme="light"] {
  color-scheme: light;
}

/* ---- Aurora: three slow, blurred blobs behind the stage ------------------- */

.agt-aurora {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.agt-blob {
  position: absolute;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
  mix-blend-mode: multiply;
  animation: agt-drift 26s ease-in-out infinite alternate;
}
.agt-blob:nth-child(1) {
  background: var(--agt-blob-1);
  left: calc(50% - 38rem);
  top: 18%;
}
.agt-blob:nth-child(2) {
  background: var(--agt-blob-2);
  left: calc(50% - 4rem);
  top: 32%;
  animation-duration: 22s;
  animation-delay: -7s;
}
.agt-blob:nth-child(3) {
  background: var(--agt-blob-3);
  left: calc(50% - 20rem);
  top: 55%;
  width: 30rem;
  height: 30rem;
  animation-duration: 30s;
  animation-delay: -14s;
}
@keyframes agt-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(6rem, -3rem, 0) scale(1.12);
  }
  to {
    transform: translate3d(-4rem, 4rem, 0) scale(0.92);
  }
}
/* Dark: the blobs glow (screen) instead of tinting (multiply). */
@media (prefers-color-scheme: dark) {
  :where(:root:not([data-theme="light"])) .agt:not([data-theme="light"]) .agt-blob {
    mix-blend-mode: screen;
    opacity: 0.42;
  }
}
:where([data-theme="dark"]) .agt:not([data-theme="light"]) .agt-blob,
.agt[data-theme="dark"] .agt-blob {
  mix-blend-mode: screen;
  opacity: 0.42;
}

/* ---- Stage and the 3D stack ----------------------------------------------- */

.agt-stage {
  position: relative;
  height: calc(var(--agt-card-h) + 136px);
  perspective: 1400px;
  outline: none;
  touch-action: pan-y; /* vertical scrolling stays native; horizontal drags swipe */
}
.agt-stage:focus-visible .agt-card[data-front] .agt-card-inner {
  outline: 2px solid var(--agt-accent);
  outline-offset: 6px;
}

.agt-card {
  /* The resting place for this card's depth (--i). Kept in one property so the
     fly-out animation can end exactly where the card rests. */
  --agt-rest: translate3d(var(--dx, 0px), calc(var(--i, 0) * var(--agt-lift)), calc(var(--i, 0) * var(--agt-depth)))
    scale(calc(1 - var(--i, 0) * var(--agt-shrink))) rotate(calc(var(--r, 0) * 1deg + var(--drot, 0deg)));
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: var(--agt-card-w);
  height: var(--agt-card-h);
  margin-inline: auto;
  z-index: calc(40 - var(--i, 0));
  transform: var(--agt-rest);
  /* No opacity or filter on the card: either would stop its glass blurring what is behind it, and the
     text of the cards underneath would show through sharp. Depth comes from the veil and a text blur. */
  transition:
    transform 0.75s var(--agt-spring),
    opacity 0.5s ease;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.agt-card[data-front] {
  cursor: grab;
}
.agt-card[data-hidden] {
  opacity: 0;
  pointer-events: none;
}
/* A card in flight stays solid: one flying in from the side from its first frame, one sent to the back
   until it lands (it may then wait out of sight, behind the visible cards). */
.agt-card[data-entering],
.agt-card[data-leaving] {
  opacity: 1;
  transition: none;
}
.agt[data-dragging] .agt-card[data-front] {
  transition: none;
  cursor: grabbing;
}

/* Sent to the back: out to the side on top of the stack, then behind it to its new place. */
.agt-card[data-leaving] {
  animation: agt-leave 0.8s cubic-bezier(0.3, 0.75, 0.25, 1) both;
}
@keyframes agt-leave {
  0% {
    transform: translate3d(var(--dx, 0px), 0, 0) rotate(var(--drot, 0deg));
    z-index: 60;
  }
  42% {
    transform: translate3d(calc(var(--dir, -1) * 68%), -6%, 0) rotate(calc(var(--dir, -1) * 9deg)) scale(0.96);
    z-index: 60;
  }
  43% {
    z-index: 1;
  }
  100% {
    transform: var(--agt-rest);
    z-index: 1;
  }
}
/* Brought back to the front (previous): in from the side, on top. */
.agt-card[data-entering] {
  animation: agt-enter 0.7s cubic-bezier(0.2, 0.9, 0.25, 1) both;
}
@keyframes agt-enter {
  from {
    transform: translate3d(calc(var(--dir, 1) * -68%), -6%, 0) rotate(calc(var(--dir, 1) * -9deg)) scale(0.96);
    z-index: 60;
  }
  to {
    transform: var(--agt-rest);
    z-index: 60;
  }
}

/* ---- The glass card ------------------------------------------------------- */

.agt-card-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 32px 30px;
  border-radius: var(--agt-radius);
  background: var(--agt-glass-bg);
  -webkit-backdrop-filter: blur(var(--agt-blur)) saturate(160%);
  backdrop-filter: blur(var(--agt-blur)) saturate(160%);
  box-shadow:
    inset 0 1px 0 var(--agt-highlight),
    var(--agt-shadow);
  /* Tilt toward the cursor (front card), eased back on leave. */
  transform: perspective(900px) rotateX(calc(var(--ty, 0) * -7deg)) rotateY(calc(var(--tx, 0) * 7deg));
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  container-type: inline-size;
}
/* 1px gradient border: bright top-left, fading toward the bottom-right. */
.agt-card-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, var(--agt-edge-1), var(--agt-edge-2) 48%, var(--agt-edge-3));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  pointer-events: none;
}
/* Grain, so the glass is never flat. */
.agt-card-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.05;
  pointer-events: none;
}
/* Without backdrop-filter, a more opaque card keeps the text readable. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .agt-card-inner {
    background: var(--agt-glass-solid);
  }
}

/* Depth: cards further back fade toward the background, and their text softens. */
.agt-veil {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--agt-bg);
  opacity: calc(var(--i, 0) * 0.17);
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.agt-card-top,
.agt-quote,
.agt-rating,
.agt-author {
  filter: blur(calc(var(--i, 0) * 0.6px));
  transition: filter 0.5s ease;
}
.agt-card[data-front] :is(.agt-card-top, .agt-quote, .agt-rating, .agt-author) {
  filter: none;
}

/* A card sent to the back stays crisp while it is still on top, and dims as it passes behind. */
.agt-card[data-leaving] .agt-veil {
  animation: agt-sink-veil 0.8s ease both;
}
.agt-card[data-leaving] :is(.agt-card-top, .agt-quote, .agt-rating, .agt-author) {
  animation: agt-sink-text 0.8s ease both;
}
@keyframes agt-sink-veil {
  0%,
  42% {
    opacity: 0;
  }
}
@keyframes agt-sink-text {
  0%,
  42% {
    filter: none;
  }
}

/* A specular sheen that follows the cursor across the front card. */
.agt-sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, 30%) var(--my, 0%), var(--agt-sheen), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.agt-stage:hover .agt-card[data-front] .agt-sheen {
  opacity: 1;
}

.agt-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.agt-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--agt-pill-bg);
  box-shadow:
    inset 0 1px 0 var(--agt-highlight),
    0 0 0 1px light-dark(rgb(20 18 40 / 0.06), rgb(255 255 255 / 0.08));
}
.agt-quote-mark::before,
.agt-verified::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--agt-icon-quote) center / contain no-repeat;
  mask: var(--agt-icon-quote) center / contain no-repeat;
}
.agt-verified::before {
  width: 14px;
  height: 14px;
  background: var(--agt-verified);
  -webkit-mask-image: var(--agt-icon-check);
  mask-image: var(--agt-icon-check);
}
.agt-quote-mark {
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--agt-accent);
  /* inner elements move a little more than the card: parallax */
  translate: calc(var(--tx, 0) * 7px) calc(var(--ty, 0) * 7px);
  transition: translate 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.agt-verified {
  padding: 5px 11px 5px 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--agt-text-2);
}

.agt-quote {
  margin: 18px 0 0;
  font-size: 1.125rem;
  line-height: 1.6;
  letter-spacing: -0.006em;
  color: var(--agt-text);
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}
.agt-quote p {
  margin: 0;
}

.agt-rating {
  display: flex;
  gap: 3px;
  margin-top: auto;
  padding-top: 14px;
}
.agt-star {
  position: relative;
  width: 16px;
  height: 16px;
}
.agt-star::before,
.agt-star.agt-on::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--agt-star-empty);
  -webkit-mask: var(--agt-icon-star) center / contain no-repeat;
  mask: var(--agt-icon-star) center / contain no-repeat;
}
.agt-star.agt-on::after {
  background: var(--agt-star);
}
/* Stars fill one after another whenever a card comes to the front. */
.agt-card[data-front] .agt-star.agt-on::after {
  animation: agt-star 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) calc(0.15s + var(--s, 0) * 70ms) both;
}
@keyframes agt-star {
  from {
    transform: scale(0);
    opacity: 0;
  }
}

.agt-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.agt-avatar {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--agt-accent), var(--agt-accent-2));
  translate: calc(var(--tx, 0) * 5px) calc(var(--ty, 0) * 5px);
  transition: translate 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* Initials under the photo: shown when there is no photo or it fails to load. */
.agt-avatar::before {
  content: attr(data-initials);
  position: absolute;
  inset: 2px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--agt-bg);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--agt-text);
}
.agt-avatar img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--agt-bg);
}
.agt-name {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  color: var(--agt-text);
}
.agt-role {
  display: block;
  font-size: 0.8125rem;
  color: var(--agt-text-2);
}
.agt-source {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--agt-text-3);
  text-align: right;
  white-space: nowrap;
}
/* A narrow card (phones, the no-JS grid): the source moves under the name. */
@container (max-width: 440px) {
  .agt-author {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .agt-source {
    width: 100%;
    margin-left: 56px;
    text-align: left;
  }
}

/* Autoplay progress on the front card; its animationend advances the stack. */
.agt-progress {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 12px;
  height: 2px;
  border-radius: 2px;
  background: light-dark(rgb(20 18 40 / 0.07), rgb(255 255 255 / 0.08));
  overflow: hidden;
}
.agt-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--agt-accent), var(--agt-accent-2));
  transform: scaleX(0);
  transform-origin: left;
}
.agt-card[data-front] .agt-progress::after {
  animation: agt-progress var(--agt-interval) linear forwards;
}
.agt[data-paused] .agt-progress::after {
  animation-play-state: paused;
}
.agt[data-autoplay="off"] .agt-progress {
  display: none;
}
@keyframes agt-progress {
  to {
    transform: scaleX(1);
  }
}

/* ---- Controls ------------------------------------------------------------- */

.agt-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--agt-text);
  background: var(--agt-glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow:
    inset 0 1px 0 var(--agt-highlight),
    0 0 0 1px light-dark(rgb(20 18 40 / 0.08), rgb(255 255 255 / 0.1)),
    0 8px 20px -10px light-dark(rgb(30 20 80 / 0.3), rgb(0 0 0 / 0.6));
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}
.agt-button:hover {
  transform: translateY(-1px);
}
.agt-button:active {
  transform: scale(0.95);
}
.agt-button:focus-visible {
  outline: 2px solid var(--agt-accent);
  outline-offset: 3px;
}
.agt-button-sm {
  width: 32px;
  height: 32px;
}
.agt-toggle[data-playing="true"] .agt-icon-play,
.agt-toggle:not([data-playing="true"]) .agt-icon-pause {
  display: none;
}
.agt-counter {
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--agt-text-2);
}
.agt-controls[hidden] {
  display: none;
}

/* ---- Trust bar ------------------------------------------------------------ */

.agt-stack-avatars img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--agt-bg);
}
.agt-stack-avatars img + img {
  margin-left: -10px;
}
.agt-logo {
  color: var(--agt-text-3);
  opacity: 0.85;
}

/* ---- Reveal on scroll ----------------------------------------------------- */

.agt-js .agt:not([data-revealed]) [data-agt-reveal] {
  opacity: 0;
  transform: translateY(16px);
}
.agt-js .agt:not([data-revealed]) .agt-card {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.96);
}
.agt [data-agt-reveal] {
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.agt[data-revealing] .agt-card {
  transition-delay: calc(var(--k, 0) * 80ms);
}
.agt[data-revealing] [data-agt-reveal] {
  transition-delay: calc(var(--k, 0) * 90ms);
}

/* ---- Without JavaScript: a plain responsive grid -------------------------- */

:where(html:not(.agt-js)) .agt-stage {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 20px;
  height: auto;
  perspective: none;
}
:where(html:not(.agt-js)) .agt-card {
  position: relative;
  width: auto;
  height: auto;
  transform: none;
  opacity: 1;
  filter: none;
  cursor: auto;
}
:where(html:not(.agt-js)) .agt-card-inner {
  min-height: var(--agt-card-h);
}
:where(html:not(.agt-js)) .agt-controls,
:where(html:not(.agt-js)) .agt-progress,
:where(html:not(.agt-js)) .agt-veil {
  display: none;
}
:where(html:not(.agt-js)) :is(.agt-card-top, .agt-quote, .agt-rating, .agt-author) {
  filter: none;
}

/* ---- Small screens: one card and a peek of the next ----------------------- */

@media (max-width: 640px) {
  .agt {
    --agt-card-h: 340px;
    --agt-lift: -16px;
  }
  .agt-card-inner {
    padding: 24px 22px 26px;
  }
  .agt-quote {
    font-size: 1.0625rem;
    -webkit-line-clamp: 6;
    line-clamp: 6;
  }
  .agt-blob {
    filter: blur(60px);
  }
  .agt-blob:nth-child(3) {
    display: none;
  }
}

/* ---- Reduced motion: no drift, autoplay, tilt or flights; simple fades ---- */

@media (prefers-reduced-motion: reduce) {
  .agt-blob {
    animation: none;
  }
  .agt-card {
    transition: opacity 0.3s ease;
  }
  .agt-card[data-leaving],
  .agt-card[data-entering] {
    animation: none;
  }
  .agt-card-inner,
  .agt-quote-mark,
  .agt-avatar {
    transform: none;
    translate: none;
  }
  .agt-card[data-front] .agt-star.agt-on::after {
    animation: none;
  }
  .agt-progress {
    display: none;
  }
  .agt-js .agt:not([data-revealed]) .agt-card,
  .agt-js .agt:not([data-revealed]) [data-agt-reveal] {
    transform: none;
  }
}
    </style>
  </head>
  <body class="bg-[#f6f5fb] font-sans text-zinc-900 antialiased dark:bg-[#08070d] dark:text-zinc-100">
    <!-- Demo only: light / system / dark. The component itself follows prefers-color-scheme or data-theme. -->
    <div
      class="fixed top-4 right-4 z-50 flex gap-1 rounded-full border border-zinc-900/10 bg-white/70 p-1 backdrop-blur-md dark:border-white/10 dark:bg-zinc-900/70"
      role="group"
      aria-label="Theme"
      data-demo-theme
    >
      <button type="button" data-value="light" aria-label="Light theme" class="demo-theme-btn grid size-8 cursor-pointer place-items-center rounded-full text-zinc-500 transition-colors hover:text-zinc-900 aria-pressed:bg-zinc-900/5 aria-pressed:text-zinc-900 dark:text-zinc-400 dark:hover:text-white dark:aria-pressed:bg-white/10 dark:aria-pressed:text-white">
        <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="12" cy="12" r="4" /><path d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4" /></svg>
      </button>
      <button type="button" data-value="system" aria-label="System theme" class="demo-theme-btn grid size-8 cursor-pointer place-items-center rounded-full text-zinc-500 transition-colors hover:text-zinc-900 aria-pressed:bg-zinc-900/5 aria-pressed:text-zinc-900 dark:text-zinc-400 dark:hover:text-white dark:aria-pressed:bg-white/10 dark:aria-pressed:text-white">
        <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="2" /><path d="M8 20h8M12 16v4" /></svg>
      </button>
      <button type="button" data-value="dark" aria-label="Dark theme" class="demo-theme-btn grid size-8 cursor-pointer place-items-center rounded-full text-zinc-500 transition-colors hover:text-zinc-900 aria-pressed:bg-zinc-900/5 aria-pressed:text-zinc-900 dark:text-zinc-400 dark:hover:text-white dark:aria-pressed:bg-white/10 dark:aria-pressed:text-white">
        <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5z" /></svg>
      </button>
    </div>

    <!-- ===================== Aurora Glass Testimonials ===================== -->
    <section class="agt py-24 md:py-32" data-agt data-agt-prerendered aria-labelledby="agt-heading-1">
      <div class="agt-aurora" aria-hidden="true"><span class="agt-blob"></span><span class="agt-blob"></span><span class="agt-blob"></span></div>

      <div class="mx-auto max-w-6xl px-6">
        <header class="mx-auto max-w-2xl text-center">
          <p data-agt-reveal style="--k: 0" class="inline-flex items-center gap-2 text-xs font-semibold tracking-[0.22em] text-(--agt-text-2) uppercase">
            <span class="size-1.5 rounded-full bg-(--agt-accent)"></span>Featured reviews
          </p>
          <h2 id="agt-heading-1" data-agt-reveal style="--k: 1" class="mt-5 text-4xl leading-[1.05] font-semibold tracking-[-0.035em] text-balance sm:text-5xl md:text-6xl">
            Loved by teams who ship every week
          </h2>
          <p data-agt-reveal style="--k: 2" class="mt-5 text-lg text-pretty text-(--agt-text-2)">
            What product, design and engineering teams say after their first year with us.
          </p>
        </header>

        <div
          class="agt-stage mt-14 md:mt-20"
          data-agt-stage
          tabindex="0"
          role="region"
          aria-roledescription="carousel"
          aria-label="Customer testimonials. Use the left and right arrow keys to move through them."
        >
<figure class="agt-card" data-agt-card style="--i:0;--k:0" role="group" aria-roledescription="slide" aria-label="Testimonial 1 of 6">
  <div class="agt-card-inner">
    <span class="agt-sheen" aria-hidden="true"></span>
    <div class="agt-card-top">
      <span class="agt-pill agt-quote-mark" aria-hidden="true"></span>
      <span class="agt-pill agt-verified">Verified</span>
    </div>
    <blockquote class="agt-quote"><p>We replaced three tools with one, and our release notes finally write themselves. The whole team felt the difference in the first week.</p></blockquote>
    <div class="agt-rating" role="img" aria-label="Rated 5 out of 5"><i class="agt-star agt-on" style="--s:0"></i><i class="agt-star agt-on" style="--s:1"></i><i class="agt-star agt-on" style="--s:2"></i><i class="agt-star agt-on" style="--s:3"></i><i class="agt-star agt-on" style="--s:4"></i></div>
    <figcaption class="agt-author">
      <span class="agt-avatar" data-initials="MO"><img src="avatars/maya-okafor.jpg" alt="" width="40" height="40" loading="lazy" decoding="async"></span>
      <span><span class="agt-name">Maya Okafor</span><span class="agt-role">Head of Product, Fieldnote</span></span>
      <span class="agt-source">via Customer survey · <time datetime="2026-09-14">Sep 2026</time></span>
    </figcaption>
    <span class="agt-progress" aria-hidden="true"></span>
    <span class="agt-veil" aria-hidden="true"></span>
  </div>
</figure>
<figure class="agt-card" data-agt-card style="--i:1;--k:1" role="group" aria-roledescription="slide" aria-label="Testimonial 2 of 6">
  <div class="agt-card-inner">
    <span class="agt-sheen" aria-hidden="true"></span>
    <div class="agt-card-top">
      <span class="agt-pill agt-quote-mark" aria-hidden="true"></span>
      <span class="agt-pill agt-verified">Verified</span>
    </div>
    <blockquote class="agt-quote"><p>Setup took an afternoon, not a sprint. Our on-call load dropped by a third, and nobody misses the old dashboards.</p></blockquote>
    <div class="agt-rating" role="img" aria-label="Rated 5 out of 5"><i class="agt-star agt-on" style="--s:0"></i><i class="agt-star agt-on" style="--s:1"></i><i class="agt-star agt-on" style="--s:2"></i><i class="agt-star agt-on" style="--s:3"></i><i class="agt-star agt-on" style="--s:4"></i></div>
    <figcaption class="agt-author">
      <span class="agt-avatar" data-initials="DR"><img src="avatars/daniel-reyes.jpg" alt="" width="40" height="40" loading="lazy" decoding="async"></span>
      <span><span class="agt-name">Daniel Reyes</span><span class="agt-role">Engineering Manager, Parcelry</span></span>
      <span class="agt-source">via In-app review · <time datetime="2026-08-27">Aug 2026</time></span>
    </figcaption>
    <span class="agt-progress" aria-hidden="true"></span>
    <span class="agt-veil" aria-hidden="true"></span>
  </div>
</figure>
<figure class="agt-card" data-agt-card style="--i:2;--k:2" role="group" aria-roledescription="slide" aria-label="Testimonial 3 of 6">
  <div class="agt-card-inner">
    <span class="agt-sheen" aria-hidden="true"></span>
    <div class="agt-card-top">
      <span class="agt-pill agt-quote-mark" aria-hidden="true"></span>
      <span class="agt-pill agt-verified">Verified</span>
    </div>
    <blockquote class="agt-quote"><p>It is the rare tool that designers and engineers both open without being asked. Handoffs went from a meeting to a link.</p></blockquote>
    <div class="agt-rating" role="img" aria-label="Rated 5 out of 5"><i class="agt-star agt-on" style="--s:0"></i><i class="agt-star agt-on" style="--s:1"></i><i class="agt-star agt-on" style="--s:2"></i><i class="agt-star agt-on" style="--s:3"></i><i class="agt-star agt-on" style="--s:4"></i></div>
    <figcaption class="agt-author">
      <span class="agt-avatar" data-initials="AT"><img src="avatars/aiko-tanaka.jpg" alt="" width="40" height="40" loading="lazy" decoding="async"></span>
      <span><span class="agt-name">Aiko Tanaka</span><span class="agt-role">Design Lead, Lumora</span></span>
      <span class="agt-source">via Case study · <time datetime="2026-08-03">Aug 2026</time></span>
    </figcaption>
    <span class="agt-progress" aria-hidden="true"></span>
    <span class="agt-veil" aria-hidden="true"></span>
  </div>
</figure>
<figure class="agt-card" data-agt-card style="--i:3;--k:3" role="group" aria-roledescription="slide" aria-label="Testimonial 4 of 6">
  <div class="agt-card-inner">
    <span class="agt-sheen" aria-hidden="true"></span>
    <div class="agt-card-top">
      <span class="agt-pill agt-quote-mark" aria-hidden="true"></span>
      <span class="agt-pill agt-verified">Verified</span>
    </div>
    <blockquote class="agt-quote"><p>As a five-person company we can't afford busywork. This gave us back roughly a day a week, every week.</p></blockquote>
    <div class="agt-rating" role="img" aria-label="Rated 5 out of 5"><i class="agt-star agt-on" style="--s:0"></i><i class="agt-star agt-on" style="--s:1"></i><i class="agt-star agt-on" style="--s:2"></i><i class="agt-star agt-on" style="--s:3"></i><i class="agt-star agt-on" style="--s:4"></i></div>
    <figcaption class="agt-author">
      <span class="agt-avatar" data-initials="OH"><img src="avatars/omar-haddad.jpg" alt="" width="40" height="40" loading="lazy" decoding="async"></span>
      <span><span class="agt-name">Omar Haddad</span><span class="agt-role">Founder, Brightwell</span></span>
      <span class="agt-source">via Customer interview · <time datetime="2026-07-19">Jul 2026</time></span>
    </figcaption>
    <span class="agt-progress" aria-hidden="true"></span>
    <span class="agt-veil" aria-hidden="true"></span>
  </div>
</figure>
<figure class="agt-card" data-agt-card style="--i:4;--k:4" role="group" aria-roledescription="slide" aria-label="Testimonial 5 of 6">
  <div class="agt-card-inner">
    <span class="agt-sheen" aria-hidden="true"></span>
    <div class="agt-card-top">
      <span class="agt-pill agt-quote-mark" aria-hidden="true"></span>
      <span class="agt-pill agt-verified">Verified</span>
    </div>
    <blockquote class="agt-quote"><p>Our campaign reviews used to live in screenshots and long threads. Now every decision sits in one place, on the record.</p></blockquote>
    <div class="agt-rating" role="img" aria-label="Rated 4 out of 5"><i class="agt-star agt-on" style="--s:0"></i><i class="agt-star agt-on" style="--s:1"></i><i class="agt-star agt-on" style="--s:2"></i><i class="agt-star agt-on" style="--s:3"></i><i class="agt-star" style="--s:4"></i></div>
    <figcaption class="agt-author">
      <span class="agt-avatar" data-initials="PR"><img src="avatars/priya-raman.jpg" alt="" width="40" height="40" loading="lazy" decoding="async"></span>
      <span><span class="agt-name">Priya Raman</span><span class="agt-role">VP Marketing, Northstack</span></span>
      <span class="agt-source">via Customer survey · <time datetime="2026-06-30">Jun 2026</time></span>
    </figcaption>
    <span class="agt-progress" aria-hidden="true"></span>
    <span class="agt-veil" aria-hidden="true"></span>
  </div>
</figure>
<figure class="agt-card" data-agt-card style="--i:4;--k:5" role="group" aria-roledescription="slide" aria-label="Testimonial 6 of 6">
  <div class="agt-card-inner">
    <span class="agt-sheen" aria-hidden="true"></span>
    <div class="agt-card-top">
      <span class="agt-pill agt-quote-mark" aria-hidden="true"></span>
      
    </div>
    <blockquote class="agt-quote"><p>Fast, quiet and predictable: exactly how infrastructure should feel. We stopped thinking about it, which is the highest compliment.</p></blockquote>
    <div class="agt-rating" role="img" aria-label="Rated 5 out of 5"><i class="agt-star agt-on" style="--s:0"></i><i class="agt-star agt-on" style="--s:1"></i><i class="agt-star agt-on" style="--s:2"></i><i class="agt-star agt-on" style="--s:3"></i><i class="agt-star agt-on" style="--s:4"></i></div>
    <figcaption class="agt-author">
      <span class="agt-avatar" data-initials="LB"></span>
      <span><span class="agt-name">Lukas Becker</span><span class="agt-role">CTO, Kiln &amp; Co</span></span>
      <span class="agt-source">via Community forum · <time datetime="2026-06-12">Jun 2026</time></span>
    </figcaption>
    <span class="agt-progress" aria-hidden="true"></span>
    <span class="agt-veil" aria-hidden="true"></span>
  </div>
</figure>
        </div>

        <div class="agt-controls mt-10 flex items-center justify-center gap-4">
          <button class="agt-button" type="button" data-agt-prev aria-label="Previous testimonial">
            <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M15 18l-6-6 6-6" /></svg>
          </button>
          <div class="flex items-center gap-3">
            <span class="agt-counter" data-agt-counter>01 / 06</span>
            <button class="agt-button agt-button-sm agt-toggle" type="button" data-agt-toggle data-playing="true" aria-label="Pause autoplay">
              <svg class="agt-icon-pause" width="12" height="12" viewBox="0 0 12 12" fill="currentColor" aria-hidden="true"><rect x="2" y="1.5" width="2.6" height="9" rx="0.8" /><rect x="7.4" y="1.5" width="2.6" height="9" rx="0.8" /></svg>
              <svg class="agt-icon-play" width="12" height="12" viewBox="0 0 12 12" fill="currentColor" aria-hidden="true"><path d="M3 1.8v8.4a.6.6 0 0 0 .9.5l6.8-4.2a.6.6 0 0 0 0-1L3.9 1.3a.6.6 0 0 0-.9.5z" /></svg>
            </button>
          </div>
          <button class="agt-button" type="button" data-agt-next aria-label="Next testimonial">
            <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M9 18l6-6-6-6" /></svg>
          </button>
        </div>
        <p class="sr-only" data-agt-live aria-live="polite"></p>

        <!-- Aggregate trust bar -->
        <div data-agt-reveal style="--k: 3" class="mt-16 flex flex-col items-center gap-8 md:flex-row md:justify-center md:gap-12">
          <div class="flex items-center gap-4">
            <div class="agt-stack-avatars flex" aria-hidden="true">
              <img src="avatars/crowd-1.jpg" alt="" width="36" height="36" loading="lazy" decoding="async" />
              <img src="avatars/crowd-2.jpg" alt="" width="36" height="36" loading="lazy" decoding="async" />
              <img src="avatars/crowd-3.jpg" alt="" width="36" height="36" loading="lazy" decoding="async" />
              <img src="avatars/crowd-4.jpg" alt="" width="36" height="36" loading="lazy" decoding="async" />
              <img src="avatars/crowd-5.jpg" alt="" width="36" height="36" loading="lazy" decoding="async" />
              <img src="avatars/crowd-6.jpg" alt="" width="36" height="36" loading="lazy" decoding="async" />
            </div>
            <div class="text-left">
              <p class="flex items-center gap-1.5 text-sm font-semibold">
                <svg width="15" height="15" viewBox="0 0 20 20" fill="#f5a524" aria-hidden="true"><path d="M10 1.2l2.41 5.88 6.34.48-4.85 4.11 1.51 6.17L10 14.5l-5.41 3.34 1.51-6.17-4.85-4.11 6.34-.48z" /></svg>
                <span><span data-agt-count="4.9">4.9</span> / 5</span>
              </p>
              <p class="text-sm text-(--agt-text-2)">from <span data-agt-count="1240">1,240</span>+ reviews</p>
            </div>
          </div>
          <span class="hidden h-8 w-px bg-current opacity-15 md:block" aria-hidden="true"></span>
          <ul class="flex flex-wrap items-center justify-center gap-x-8 gap-y-4" aria-label="Teams that use the product">
            <li class="agt-logo flex items-center gap-2 text-[15px] font-semibold tracking-tight">
              <svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true"><path d="M4 16c0-7 4-11 12-12 0 8-4 12-12 12z" /><path d="M4 16l6-6" /></svg>Fieldnote
            </li>
            <li class="agt-logo flex items-center gap-2 text-[15px] font-semibold tracking-tight">
              <svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linejoin="round" aria-hidden="true"><path d="M10 2.5l7 3.5v8l-7 3.5-7-3.5V6z" /><path d="M3 6l7 3.5L17 6M10 9.5v8" /></svg>Parcelry
            </li>
            <li class="agt-logo flex items-center gap-2 text-[15px] font-semibold tracking-tight">
              <svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true"><circle cx="10" cy="10" r="3.2" /><circle cx="10" cy="10" r="7.5" stroke-dasharray="2.4 2.8" /></svg>Lumora
            </li>
            <li class="agt-logo flex items-center gap-2 text-[15px] font-semibold tracking-tight">
              <svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path d="M10 2c3 4 5.5 6.6 5.5 9.6a5.5 5.5 0 0 1-11 0C4.5 8.6 7 6 10 2z" /></svg>Brightwell
            </li>
          </ul>
        </div>
      </div>

      <!-- The reviews: one array for the cards, the JSON-LD and the aggregate. -->
      <script type="application/json" data-agt-data>
{
  "product": "Your product",
  "aggregate": {
    "rating": 4.9,
    "count": 1240
  },
  "reviews": [
    {
      "id": "maya-okafor",
      "quote": "We replaced three tools with one, and our release notes finally write themselves. The whole team felt the difference in the first week.",
      "name": "Maya Okafor",
      "role": "Head of Product",
      "company": "Fieldnote",
      "avatar": "avatars/maya-okafor.jpg",
      "rating": 5,
      "verified": true,
      "source": "Customer survey",
      "date": "2026-09-14"
    },
    {
      "id": "daniel-reyes",
      "quote": "Setup took an afternoon, not a sprint. Our on-call load dropped by a third, and nobody misses the old dashboards.",
      "name": "Daniel Reyes",
      "role": "Engineering Manager",
      "company": "Parcelry",
      "avatar": "avatars/daniel-reyes.jpg",
      "rating": 5,
      "verified": true,
      "source": "In-app review",
      "date": "2026-08-27"
    },
    {
      "id": "aiko-tanaka",
      "quote": "It is the rare tool that designers and engineers both open without being asked. Handoffs went from a meeting to a link.",
      "name": "Aiko Tanaka",
      "role": "Design Lead",
      "company": "Lumora",
      "avatar": "avatars/aiko-tanaka.jpg",
      "rating": 5,
      "verified": true,
      "source": "Case study",
      "date": "2026-08-03"
    },
    {
      "id": "omar-haddad",
      "quote": "As a five-person company we can't afford busywork. This gave us back roughly a day a week, every week.",
      "name": "Omar Haddad",
      "role": "Founder",
      "company": "Brightwell",
      "avatar": "avatars/omar-haddad.jpg",
      "rating": 5,
      "verified": true,
      "source": "Customer interview",
      "date": "2026-07-19"
    },
    {
      "id": "priya-raman",
      "quote": "Our campaign reviews used to live in screenshots and long threads. Now every decision sits in one place, on the record.",
      "name": "Priya Raman",
      "role": "VP Marketing",
      "company": "Northstack",
      "avatar": "avatars/priya-raman.jpg",
      "rating": 4,
      "verified": true,
      "source": "Customer survey",
      "date": "2026-06-30"
    },
    {
      "id": "lukas-becker",
      "quote": "Fast, quiet and predictable: exactly how infrastructure should feel. We stopped thinking about it, which is the highest compliment.",
      "name": "Lukas Becker",
      "role": "CTO",
      "company": "Kiln & Co",
      "rating": 5,
      "verified": false,
      "source": "Community forum",
      "date": "2026-06-12"
    }
  ]
}
      </script>
    </section>
    <script type="application/ld+json" data-agt-schema>
{"@context":"https://schema.org","@type":"Product","name":"Your product","aggregateRating":{"@type":"AggregateRating","ratingValue":4.9,"bestRating":5,"reviewCount":1240},"review":[{"@type":"Review","author":{"@type":"Person","name":"Maya Okafor"},"datePublished":"2026-09-14","reviewBody":"We replaced three tools with one, and our release notes finally write themselves. The whole team felt the difference in the first week.","reviewRating":{"@type":"Rating","ratingValue":5,"bestRating":5}},{"@type":"Review","author":{"@type":"Person","name":"Daniel Reyes"},"datePublished":"2026-08-27","reviewBody":"Setup took an afternoon, not a sprint. Our on-call load dropped by a third, and nobody misses the old dashboards.","reviewRating":{"@type":"Rating","ratingValue":5,"bestRating":5}},{"@type":"Review","author":{"@type":"Person","name":"Aiko Tanaka"},"datePublished":"2026-08-03","reviewBody":"It is the rare tool that designers and engineers both open without being asked. Handoffs went from a meeting to a link.","reviewRating":{"@type":"Rating","ratingValue":5,"bestRating":5}},{"@type":"Review","author":{"@type":"Person","name":"Omar Haddad"},"datePublished":"2026-07-19","reviewBody":"As a five-person company we can't afford busywork. This gave us back roughly a day a week, every week.","reviewRating":{"@type":"Rating","ratingValue":5,"bestRating":5}},{"@type":"Review","author":{"@type":"Person","name":"Priya Raman"},"datePublished":"2026-06-30","reviewBody":"Our campaign reviews used to live in screenshots and long threads. Now every decision sits in one place, on the record.","reviewRating":{"@type":"Rating","ratingValue":4,"bestRating":5}},{"@type":"Review","author":{"@type":"Person","name":"Lukas Becker"},"datePublished":"2026-06-12","reviewBody":"Fast, quiet and predictable: exactly how infrastructure should feel. We stopped thinking about it, which is the highest compliment.","reviewRating":{"@type":"Rating","ratingValue":5,"bestRating":5}}]}
    </script>

    <!-- ================ A second instance on the same page ================ -->
    <!-- Rendered at runtime from its JSON, always dark, a rose accent, no autoplay. -->
    <section
      class="agt py-24 md:py-28"
      data-agt
      data-theme="dark"
      data-agt-config='{"autoplay": false, "schema": false, "maxVisible": 3}'
      aria-labelledby="agt-heading-2"
      style="--agt-accent: #fb7185; --agt-accent-2: #fbbf24; --agt-blob-1: #be123c; --agt-blob-2: #6d28d9; --agt-blob-3: #b45309"
    >
      <div class="agt-aurora" aria-hidden="true"><span class="agt-blob"></span><span class="agt-blob"></span><span class="agt-blob"></span></div>
      <div class="mx-auto max-w-6xl px-6">
        <header class="mx-auto max-w-2xl text-center">
          <p data-agt-reveal style="--k: 0" class="inline-flex items-center gap-2 text-xs font-semibold tracking-[0.22em] text-(--agt-text-2) uppercase">
            <span class="size-1.5 rounded-full bg-(--agt-accent)"></span>Second instance
          </p>
          <h2 id="agt-heading-2" data-agt-reveal style="--k: 1" class="mt-5 text-3xl leading-[1.1] font-semibold tracking-[-0.03em] text-balance sm:text-4xl">
            Same component, its own theme
          </h2>
          <p data-agt-reveal style="--k: 2" class="mt-4 text-base text-pretty text-(--agt-text-2)">
            Forced dark with data-theme, a rose accent, no autoplay, and cards rendered from JSON at runtime.
          </p>
        </header>
        <div
          class="agt-stage mt-12"
          data-agt-stage
          tabindex="0"
          role="region"
          aria-roledescription="carousel"
          aria-label="Customer testimonials. Use the left and right arrow keys to move through them."
        ></div>
        <div class="agt-controls mt-10 flex items-center justify-center gap-4">
          <button class="agt-button" type="button" data-agt-prev aria-label="Previous testimonial">
            <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M15 18l-6-6 6-6" /></svg>
          </button>
          <span class="agt-counter" data-agt-counter>01 / 06</span>
          <button class="agt-button" type="button" data-agt-next aria-label="Next testimonial">
            <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M9 18l6-6-6-6" /></svg>
          </button>
        </div>
        <p class="sr-only" data-agt-live aria-live="polite"></p>
      </div>
      <script type="application/json" data-agt-data>
{
  "product": "Your product",
  "aggregate": {
    "rating": 4.9,
    "count": 1240
  },
  "reviews": [
    {
      "id": "maya-okafor",
      "quote": "We replaced three tools with one, and our release notes finally write themselves. The whole team felt the difference in the first week.",
      "name": "Maya Okafor",
      "role": "Head of Product",
      "company": "Fieldnote",
      "avatar": "avatars/maya-okafor.jpg",
      "rating": 5,
      "verified": true,
      "source": "Customer survey",
      "date": "2026-09-14"
    },
    {
      "id": "daniel-reyes",
      "quote": "Setup took an afternoon, not a sprint. Our on-call load dropped by a third, and nobody misses the old dashboards.",
      "name": "Daniel Reyes",
      "role": "Engineering Manager",
      "company": "Parcelry",
      "avatar": "avatars/daniel-reyes.jpg",
      "rating": 5,
      "verified": true,
      "source": "In-app review",
      "date": "2026-08-27"
    },
    {
      "id": "aiko-tanaka",
      "quote": "It is the rare tool that designers and engineers both open without being asked. Handoffs went from a meeting to a link.",
      "name": "Aiko Tanaka",
      "role": "Design Lead",
      "company": "Lumora",
      "avatar": "avatars/aiko-tanaka.jpg",
      "rating": 5,
      "verified": true,
      "source": "Case study",
      "date": "2026-08-03"
    },
    {
      "id": "omar-haddad",
      "quote": "As a five-person company we can't afford busywork. This gave us back roughly a day a week, every week.",
      "name": "Omar Haddad",
      "role": "Founder",
      "company": "Brightwell",
      "avatar": "avatars/omar-haddad.jpg",
      "rating": 5,
      "verified": true,
      "source": "Customer interview",
      "date": "2026-07-19"
    },
    {
      "id": "priya-raman",
      "quote": "Our campaign reviews used to live in screenshots and long threads. Now every decision sits in one place, on the record.",
      "name": "Priya Raman",
      "role": "VP Marketing",
      "company": "Northstack",
      "avatar": "avatars/priya-raman.jpg",
      "rating": 4,
      "verified": true,
      "source": "Customer survey",
      "date": "2026-06-30"
    },
    {
      "id": "lukas-becker",
      "quote": "Fast, quiet and predictable: exactly how infrastructure should feel. We stopped thinking about it, which is the highest compliment.",
      "name": "Lukas Becker",
      "role": "CTO",
      "company": "Kiln & Co",
      "rating": 5,
      "verified": false,
      "source": "Community forum",
      "date": "2026-06-12"
    }
  ]
}
      </script>
    </section>

    <footer class="px-6 py-10 text-center text-sm text-zinc-500 dark:text-zinc-400">
      Aurora Glass Testimonials · demo. The reviews, people and companies shown are placeholders.
    </footer>

    <!-- Aurora Glass Testimonials: the component's script. -->
    <script>
/*!
 * Aurora Glass Testimonials: an interactive 3D stack of glass review cards.
 * Vanilla JS, no dependencies. Every [data-agt] section mounts itself; call
 * AuroraGlassTestimonials.mount(element, options) for sections added later.
 */
(() => {
  const DEFAULTS = { autoplay: true, interval: 6000, loop: true, tilt: true, maxVisible: 4, theme: "auto", schema: true };
  const TILT_LERP = 0.12;
  const ROTATION = [0, -3, 4, -5, 3, -4]; // degrees, by depth in the stack
  const media = (query) => window.matchMedia(query);
  const reducedMotion = media("(prefers-reduced-motion: reduce)");
  const finePointer = media("(hover: hover) and (pointer: fine)");
  const smallScreen = media("(max-width: 640px)");
  const parse = (text) => {
    try {
      return text ? JSON.parse(text) : null;
    } catch {
      return null;
    }
  };
  const escape = (value) =>
    String(value ?? "").replace(/[&<>"]/g, (c) => ({ "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;" })[c]);
  const initials = (name) =>
    String(name)
      .split(/\s+/)
      .map((part) => part[0])
      .slice(0, 2)
      .join("")
      .toUpperCase();
  const monthYear = (iso) =>
    new Date(`${iso}T12:00:00`).toLocaleDateString("en", { month: "short", year: "numeric" });
  const pad = (n) => String(n).padStart(2, "0");
  let mounted = 0;

  /** One review as a <figure>. The build pre-renders these (so they work without JS); mount() uses it for JSON-only sections. */
  function cardHTML(review, index, total) {
    const stars = [0, 1, 2, 3, 4]
      .map((s) => `<i class="agt-star${s < Math.round(review.rating) ? " agt-on" : ""}" style="--s:${s}"></i>`)
      .join("");
    const avatar = review.avatar
      ? `<img src="${escape(review.avatar)}" alt="" width="40" height="40" loading="lazy" decoding="async">`
      : "";
    const role = [review.role, review.company].filter(Boolean).map(escape).join(", ");
    const meta = [review.source && `via ${escape(review.source)}`, review.date && `<time datetime="${escape(review.date)}">${monthYear(review.date)}</time>`]
      .filter(Boolean)
      .join(" · ");
    return `<figure class="agt-card" data-agt-card style="--i:${Math.min(index, 4)};--k:${index}" role="group" aria-roledescription="slide" aria-label="Testimonial ${index + 1} of ${total}">
  <div class="agt-card-inner">
    <span class="agt-sheen" aria-hidden="true"></span>
    <div class="agt-card-top">
      <span class="agt-pill agt-quote-mark" aria-hidden="true"></span>
      ${review.verified ? '<span class="agt-pill agt-verified">Verified</span>' : ""}
    </div>
    <blockquote class="agt-quote"><p>${escape(review.quote)}</p></blockquote>
    <div class="agt-rating" role="img" aria-label="Rated ${review.rating} out of 5">${stars}</div>
    <figcaption class="agt-author">
      <span class="agt-avatar" data-initials="${escape(initials(review.name))}">${avatar}</span>
      <span><span class="agt-name">${escape(review.name)}</span><span class="agt-role">${role}</span></span>
      ${meta ? `<span class="agt-source">${meta}</span>` : ""}
    </figcaption>
    <span class="agt-progress" aria-hidden="true"></span>
    <span class="agt-veil" aria-hidden="true"></span>
  </div>
</figure>`;
  }

  /** schema.org JSON-LD for the reviews: a Product with its aggregate rating and each Review. */
  function schema(data) {
    const json = JSON.stringify({
      "@context": "https://schema.org",
      "@type": "Product",
      name: data.product || "Product",
      aggregateRating: data.aggregate && {
        "@type": "AggregateRating",
        ratingValue: data.aggregate.rating,
        bestRating: 5,
        reviewCount: data.aggregate.count,
      },
      review: (data.reviews || []).map((r) => ({
        "@type": "Review",
        author: { "@type": "Person", name: r.name },
        datePublished: r.date,
        reviewBody: r.quote,
        reviewRating: { "@type": "Rating", ratingValue: r.rating, bestRating: 5 },
      })),
    });
    return json.replace(/</g, "\\" + "u003c");
  }

  function mount(root, options = {}) {
    if (root.agt) return root.agt;
    const data = parse(root.querySelector("[data-agt-data]")?.textContent) || {};
    const config = { ...DEFAULTS, ...data.config, ...parse(root.dataset.agtConfig), ...options };
    const stage = root.querySelector("[data-agt-stage]");
    const live = root.querySelector("[data-agt-live]");
    const counter = root.querySelector("[data-agt-counter]");
    const toggle = root.querySelector("[data-agt-toggle]");
    if (!stage) return null;
    mounted++;

    // Name the section after its heading, so copies of it need no hand-made ids.
    const heading = root.querySelector("h2, h3");
    if (heading && !root.hasAttribute("aria-labelledby") && !root.hasAttribute("aria-label")) {
      heading.id ||= `agt-heading-${mounted}`;
      root.setAttribute("aria-labelledby", heading.id);
    }
    if (config.theme !== "auto") root.dataset.theme = config.theme;
    root.style.setProperty("--agt-interval", `${config.interval}ms`);

    // A section with only JSON: render its cards (and JSON-LD) here.
    if (!stage.querySelector("[data-agt-card]") && data.reviews) {
      stage.innerHTML = data.reviews.map((r, i) => cardHTML(r, i, data.reviews.length)).join("");
      if (config.schema) {
        const ld = document.createElement("script");
        ld.type = "application/ld+json";
        ld.textContent = schema(data);
        root.append(ld);
      }
    }

    const cards = [...stage.querySelectorAll("[data-agt-card]")];
    const total = cards.length;
    const pausers = new Set(["offscreen"]); // anything in here holds autoplay
    let order = cards.map((_, i) => i); // order[0] is the card in front
    let drag = null;
    let tilt = { x: 0, y: 0, tx: 0, ty: 0, frame: 0 };

    // An avatar that fails to load shows the initials underneath instead.
    stage.querySelectorAll(".agt-avatar img").forEach((img) => {
      if (img.complete && !img.naturalWidth) img.remove();
      else img.addEventListener("error", () => img.remove(), { once: true });
    });

    const front = () => cards[order[0]];

    function layout() {
      const visible = Math.max(1, smallScreen.matches ? 2 : config.maxVisible);
      order.forEach((cardIndex, depth) => {
        const card = cards[cardIndex];
        const d = Math.min(depth, visible);
        card.style.setProperty("--i", d);
        card.style.setProperty("--r", depth ? ROTATION[d % ROTATION.length] : 0);
        card.toggleAttribute("data-front", depth === 0);
        card.toggleAttribute("data-hidden", depth >= visible);
        card.setAttribute("aria-hidden", String(depth > 0));
        if (depth) ["--tx", "--ty", "--mx", "--my"].forEach((p) => card.style.removeProperty(p));
      });
      if (counter) counter.textContent = `${pad(order[0] + 1)} / ${pad(total)}`;
    }

    function sync() {
      const running = config.autoplay && !reducedMotion.matches && total > 1 && pausers.size === 0;
      root.toggleAttribute("data-paused", !running);
      root.dataset.autoplay = config.autoplay && !reducedMotion.matches && total > 1 ? "on" : "off";
      // Announce changes only when they aren't automatic (WAI carousel pattern).
      live?.setAttribute("aria-live", running ? "off" : "polite");
      if (toggle) {
        // The label says what the button does next (WAI carousel pattern), the icon matches it.
        const playing = !pausers.has("user");
        toggle.dataset.playing = String(playing);
        toggle.setAttribute("aria-label", playing ? "Pause autoplay" : "Play autoplay");
      }
    }

    function fly(card, attr, dir) {
      card.style.setProperty("--dir", dir);
      card.removeAttribute(attr);
      void card.offsetWidth; // restart the animation if it was mid-flight
      card.setAttribute(attr, "");
      card.addEventListener(
        "animationend",
        function done(event) {
          if (event.target !== card) return card.addEventListener("animationend", done, { once: true });
          card.removeAttribute(attr);
          ["--dx", "--drot", "--dir"].forEach((p) => card.style.removeProperty(p));
        },
        { once: true },
      );
    }

    /** Moves the stack by `steps` (positive: forward). `dir` is the side a card flies out to. */
    function go(steps, dir = -1) {
      steps = ((steps % total) + total) % total;
      if (total < 2 || !steps) return;
      // Forward (up to half the stack): the front card flies to the back. Further than that, it's
      // shorter to go the other way: the new front card flies in from the side.
      const forward = steps <= total / 2;
      const leaving = front();
      order = [...order.slice(steps), ...order.slice(0, steps)];
      if (forward) fly(leaving, "data-leaving", dir);
      else fly(front(), "data-entering", -dir);
      layout();
      const review = front().querySelector(".agt-name")?.textContent || "";
      if (live) live.textContent = `Testimonial ${order[0] + 1} of ${total}: ${review}`;
      root.dispatchEvent(new CustomEvent("agt:change", { detail: { index: order[0] } }));
    }
    const next = () => (config.loop || order[0] < total - 1) && go(1, -1);
    const prev = () => (config.loop || order[0] > 0) && go(-1, 1);
    const goTo = (index) => go(order.indexOf(((index % total) + total) % total), -1);

    // ---- Dragging and swiping the front card --------------------------------
    let swiped = false; // the click that ends a swipe must not bring the swiped card back
    stage.addEventListener("click", (event) => {
      const card = event.target.closest("[data-agt-card]");
      if (card && card !== front() && !swiped) goTo(cards.indexOf(card)); // a card behind: bring it forward
      swiped = false;
    });
    stage.addEventListener("pointerdown", (event) => {
      const card = event.target.closest("[data-agt-card]");
      if (card !== front() || event.button > 0) return;
      swiped = false;
      drag = { x: event.clientX, time: event.timeStamp, dx: 0, card };
      card.setPointerCapture(event.pointerId);
      pausers.add("drag");
      sync();
    });
    stage.addEventListener("pointermove", (event) => {
      if (!drag) return pointerTilt(event);
      drag.dx = event.clientX - drag.x;
      if (Math.abs(drag.dx) > 3) (root.dataset.dragging = ""), (swiped = true);
      drag.card.style.setProperty("--dx", `${drag.dx}px`);
      drag.card.style.setProperty("--drot", `${drag.dx / 24}deg`);
    });
    const release = (event) => {
      if (!drag) return;
      const { dx, time, card } = drag;
      drag = null;
      delete root.dataset.dragging;
      const speed = Math.abs(dx) / Math.max(1, event.timeStamp - time);
      if (Math.abs(dx) > 80 || (Math.abs(dx) > 24 && speed > 0.5)) go(1, Math.sign(dx));
      else ["--dx", "--drot"].forEach((p) => card.style.removeProperty(p)); // spring back
      pausers.delete("drag");
      sync();
    };
    stage.addEventListener("pointerup", release);
    stage.addEventListener("pointercancel", release);

    // ---- Tilt, parallax and sheen (mouse only) ------------------------------
    function pointerTilt(event) {
      if (!config.tilt || reducedMotion.matches || !finePointer.matches) return;
      const card = front();
      const box = card.getBoundingClientRect();
      const x = (event.clientX - box.left) / box.width;
      const y = (event.clientY - box.top) / box.height;
      tilt.tx = Math.max(-1, Math.min(1, x * 2 - 1));
      tilt.ty = Math.max(-1, Math.min(1, y * 2 - 1));
      card.style.setProperty("--mx", `${(x * 100).toFixed(1)}%`);
      card.style.setProperty("--my", `${(y * 100).toFixed(1)}%`);
      tilt.frame ||= requestAnimationFrame(stepTilt);
    }
    function stepTilt() {
      tilt.x += (tilt.tx - tilt.x) * TILT_LERP;
      tilt.y += (tilt.ty - tilt.y) * TILT_LERP;
      const card = front();
      card.style.setProperty("--tx", tilt.x.toFixed(3));
      card.style.setProperty("--ty", tilt.y.toFixed(3));
      tilt.frame = Math.abs(tilt.tx - tilt.x) + Math.abs(tilt.ty - tilt.y) > 0.002 ? requestAnimationFrame(stepTilt) : 0;
    }
    stage.addEventListener("pointerenter", (event) => {
      if (event.pointerType === "mouse") pausers.add("hover"), sync();
    });
    stage.addEventListener("pointerleave", () => {
      pausers.delete("hover");
      sync();
      tilt.tx = tilt.ty = 0;
      tilt.frame ||= requestAnimationFrame(stepTilt);
    });

    // ---- Keyboard, buttons, focus and visibility ----------------------------
    stage.addEventListener("keydown", (event) => {
      const keys = { ArrowRight: next, ArrowLeft: prev, Home: () => goTo(0), End: () => goTo(total - 1) };
      if (keys[event.key]) event.preventDefault(), keys[event.key]();
    });
    root.querySelector("[data-agt-next]")?.addEventListener("click", next);
    root.querySelector("[data-agt-prev]")?.addEventListener("click", prev);
    toggle?.addEventListener("click", () => {
      pausers.has("user") ? pausers.delete("user") : pausers.add("user");
      sync();
    });
    root.addEventListener("focusin", () => (pausers.add("focus"), sync()));
    root.addEventListener("focusout", (event) => {
      if (!root.contains(event.relatedTarget)) pausers.delete("focus"), sync();
    });
    document.addEventListener("visibilitychange", () => {
      document.hidden ? pausers.add("hidden") : pausers.delete("hidden");
      sync();
    });
    stage.addEventListener("animationend", (event) => {
      if (event.target.closest(".agt-progress") && event.target.closest("[data-front]")) next();
    });
    smallScreen.addEventListener("change", layout);
    reducedMotion.addEventListener("change", sync);

    // ---- Reveal on scroll: header, cards fanning in, numbers counting up -----
    new IntersectionObserver(
      ([entry]) => {
        entry.isIntersecting ? pausers.delete("offscreen") : pausers.add("offscreen");
        sync();
        if (entry.isIntersecting && !root.hasAttribute("data-revealed")) {
          root.setAttribute("data-revealing", "");
          root.setAttribute("data-revealed", "");
          setTimeout(() => root.removeAttribute("data-revealing"), 1400);
          countUp();
        }
      },
      { threshold: 0.25 },
    ).observe(root);

    function countUp() {
      if (reducedMotion.matches) return;
      root.querySelectorAll("[data-agt-count]").forEach((el) => {
        const target = parseFloat(el.dataset.agtCount);
        const decimals = (el.dataset.agtCount.split(".")[1] || "").length;
        const start = performance.now();
        const format = (value) =>
          value.toLocaleString("en", { minimumFractionDigits: decimals, maximumFractionDigits: decimals });
        const step = (now) => {
          const t = Math.min(1, (now - start) / 1400);
          el.textContent = format(target * (1 - (1 - t) ** 3));
          if (t < 1) requestAnimationFrame(step);
        };
        requestAnimationFrame(step);
      });
    }

    layout();
    sync();
    const api = {
      next,
      prev,
      goTo,
      pause: () => (pausers.add("user"), sync()),
      play: () => (pausers.delete("user"), sync()),
    };
    Object.assign(root, api, { agt: api });
    return api;
  }

  window.AuroraGlassTestimonials = { mount, cardHTML, schema };
  document.querySelectorAll("[data-agt]").forEach((root) => mount(root));
})();
    </script>

    <!-- Demo only: the theme switch. -->
    <script>
      (() => {
        const buttons = document.querySelectorAll(".demo-theme-btn");
        const current = () => document.documentElement.dataset.theme || "system";
        const render = () => buttons.forEach((b) => b.setAttribute("aria-pressed", String(b.dataset.value === current())));
        buttons.forEach((button) =>
          button.addEventListener("click", () => {
            const value = button.dataset.value;
            if (value === "system") delete document.documentElement.dataset.theme;
            else document.documentElement.dataset.theme = value;
            try {
              value === "system" ? localStorage.removeItem("agt-demo-theme") : localStorage.setItem("agt-demo-theme", value);
            } catch {}
            render();
          }),
        );
        render();
      })();
    </script>
  </body>
</html>
1 file12 assets

About

A premium testimonials section: a 3D stack of glassmorphic review cards over a slowly drifting aurora. Drag or swipe the front card to send it to the back, use the buttons or the arrow keys, or let it play on its own. It is fully accessible, works without JavaScript, has light and dark themes, and is a single HTML file with no framework and no build step.

  • The stack: the front card is flat and sharp. The cards behind it are smaller, higher, farther away, slightly rotated, and they fade and soften with depth. Click one to bring it forward.
  • The glass: backdrop blur with saturation, a 1px gradient border (bright top-left, fading bottom-right), an inner top highlight, two-layer shadows, a fine grain, and a specular sheen that follows the cursor.
  • The motion: swipe with mouse or touch, and the card flies to the side, then behind the stack. The front card tilts toward the cursor, and its quote mark and avatar move a little more (parallax). Autoplay shows a progress line and pauses on hover, focus, drag, a hidden tab or the pause button. When the section scrolls into view, the header rises, the cards fan in one by one, the stars fill and the numbers count up.
  • The trust bar: stacked avatars, the aggregate rating and review count, and monochrome client logos.
  • Accessibility: a labelled carousel region with slides as <figure>/<blockquote>/<figcaption>, a polite live region, labelled buttons, visible focus, and ratings read as "Rated 5 out of 5". Reduced motion turns off autoplay, tilt and drift. Without JavaScript the cards are a plain responsive grid.
  • SEO: JSON-LD (Product with AggregateRating and each Review) generated from the same data.
  • Themes: light and dark from prefers-color-scheme, overridable with data-theme. Every color, radius, blur and timing is a CSS custom property.
  • Reusable: any number of instances on one page, with no global ids needed.

Run the demo

Open index.html in a browser. That's it: the demo needs no server and no build.

The demo page has a light / system / dark switch in the top right corner and a second instance further down (forced dark, a rose accent, no autoplay, cards rendered from JSON).

Files

index.html           the demo: everything inlined (generated from src/ by npm run build)
avatars/             demo avatars (credits in PHOTOS.md)
fonts/               Geist, Latin subset (SIL OFL 1.1, fonts/OFL.txt)
src/agt.css          the component's styles: tokens, glass, stack, aurora, motion
src/agt.js           the component's script
src/testimonials.json   the demo reviews
src/page.html        the demo page template
src/tailwind.css     Tailwind entry for the section layout and demo page
scripts/build.mjs    builds index.html

Use it on your site

  1. Markup: copy the <section class="agt" data-agt …> block from index.html. It holds the aurora, header, stage, controls, trust bar and the reviews as JSON.

  2. Styles: copy the component's <style> block (the one after the Tailwind block). It is plain CSS and works with or without Tailwind. The section's layout (header, controls row, trust bar) uses a few Tailwind utilities: on a Tailwind site they are generated for you, and anywhere else, copy the Tailwind <style> block too, or restyle those wrappers.

  3. Script: copy the component's <script> block, or save it as agt.js and load it at the end of the page.

  4. Add agt-js to <html> as early as possible (the demo does it in <head>) so the stack, not the no-JS grid, shows from the first paint:

    <script>document.documentElement.classList.add("agt-js")</script>
    

Every [data-agt] section on the page mounts itself. For a section added later:

AuroraGlassTestimonials.mount(element, { interval: 8000 });

Data

The reviews live in one JSON block inside the section:

<script type="application/json" data-agt-data>
  {
    "product": "Your product",
    "aggregate": { "rating": 4.9, "count": 1240 },
    "reviews": [
      {
        "id": "maya-okafor",
        "quote": "We replaced three tools with one…",
        "name": "Maya Okafor",
        "role": "Head of Product",
        "company": "Fieldnote",
        "avatar": "avatars/maya-okafor.jpg",
        "rating": 5,
        "verified": true,
        "source": "Customer survey",
        "date": "2026-09-14"
      }
    ]
  }
</script>
  • Leave the stage empty: the script renders the cards (and their JSON-LD) from this JSON.
  • Run npm run build after editing src/testimonials.json: the cards are pre-rendered into the HTML, so they work without JavaScript and search engines read them without running scripts.
  • Avatars: avatar is optional. Without it, or if the image fails to load, the initials show instead. Keep quotes to about three lines.

Options

Set them in data-agt-config on the section (JSON), in a "config" object in the data, or as the second argument to mount():

OptionDefaultWhat it does
autoplaytrueAdvance on its own, with a progress line on the front card.
interval6000Milliseconds per card.
looptruefalse stops at the first and last card.
tilttrueTilt and parallax toward the cursor (mouse only).
maxVisible4Cards visible in the stack. Phones show 2: the front card and a peek of the next.
theme"auto""light" or "dark" fixes the section's theme.
schematrueAdd JSON-LD when the cards are rendered from JSON.
<section class="agt" data-agt data-agt-config='{"autoplay": false, "maxVisible": 3}'>

API and events

Each section element gets next(), prev(), goTo(index), pause() and play(), and fires agt:change:

const section = document.querySelector("[data-agt]");
section.addEventListener("agt:change", (event) => console.log("now showing", event.detail.index));
section.goTo(2);

Keyboard, with the stage focused: ← / → move, Home / End jump to the first or last card.

Theming

Override any --agt-* property on the section, in your CSS or inline:

.agt {
  --agt-accent: #f97316;
  --agt-radius: 20px;
  --agt-blur: 18px;
  --agt-interval: 8000ms;
}

Colors are written with light-dark(), so one declaration covers both themes: --agt-accent: light-dark(#c2410c, #fb923c). The main tokens are --agt-accent, --agt-accent-2, --agt-blob-1/2/3 (the aurora), --agt-bg, --agt-text, --agt-text-2, --agt-text-3, --agt-glass-bg, --agt-edge-1/2/3 (the gradient border), --agt-radius, --agt-blur, --agt-card-w, --agt-card-h, --agt-lift, --agt-depth and --agt-shrink.

The theme follows the visitor's setting. data-theme="light" or "dark" on the section, or on any ancestor such as <html>, overrides it.

Accessibility

  • <section aria-labelledby> (the script names the section after its heading when you don't), a stage with role="region" and aria-roledescription="carousel", and slides as role="group" with aria-label="Testimonial 2 of 6". Cards behind the front one are aria-hidden.
  • Changes are announced in a polite live region, but not while autoplay is running, following the WAI carousel pattern. The pause button stops autoplay for good; hover and focus pause it too.
  • Real buttons with labels, keyboard control, and focus rings in both themes.
  • Text on the glass is 4.5:1 or better in both themes. Where backdrop-filter is unsupported, the cards turn more opaque.
  • With prefers-reduced-motion: reduce there is no autoplay, tilt, drift or flight, and changes are simple fades.

Performance

Only transform, opacity and (on a few elements) filter animate. Pointer effects are eased in requestAnimationFrame and written as CSS variables. Avatars load lazily and decode asynchronously. The stage reserves its height, so nothing shifts. The script is about 8.8 KB minified (3.7 KB gzipped), including the optional JSON renderer and JSON-LD generator; the CSS for the component is about 20 KB unminified.

Rebuilding

pnpm install
pnpm build

The build compiles the Tailwind utilities the page uses, pre-renders the cards and the JSON-LD from src/testimonials.json with the component's own template, and inlines everything into index.html.

Browser support

The latest Chrome, Edge, Safari, Firefox and iOS Safari (CSS light-dark() needs Safari 17.5 or newer). -webkit-backdrop-filter and -webkit-mask are included.

Before you publish

The demo reviews, names, companies and numbers are placeholders. Replace them with real reviews, from people who agreed to be quoted. Search engines treat review markup (the JSON-LD) for invented reviews as spam: set "schema": false until the reviews are real.

Reviews and bugs

0 reviews · 0 bugs

Ship it0With fixes0Skip0· 0 reviews

0 bugs0 open0 fixed

Members who have it review it and report its bugs. Sign in

No reviews or bugs yet.

Use it on your site

Plain HTML, CSS and JS

  1. 01

    Open it

    Download it and open index.html in a browser: everything it uses is in the folder, at the paths it refers to.

  2. 02

    Copy the section into your page

    Its markup from index.html, with the styles and scripts it needs (the page’s own <style> and <script> blocks). In a framework, its markup goes in a template and its script runs once the section is on the page.

  3. 03

    Bring its pictures and a font

    The page refers to them by paths from itself (avatars/aiko-tanaka.jpg, …): copy the folders along, so the paths still lead there.

Before you buy

Everything you need to know

How this component gets from the preview into your project, and what buyers ask most.

How to use it

From the preview to your project

  1. 01

    Try it in the preview

    Switch between light and dark, and resize it to phone and tablet widths, before you decide.

  2. 02

    Get it

    Free products are yours with a free account. Paid ones settle in USDT on TRON, sent straight to the wallet on your order.

  3. 03

    Install it

    Components go into your project with one shadcn command, dependencies included. Everything else downloads with a checksum.

  4. 04

    Make it yours

    It's your code now: rename it, restyle it and wire in your real data.

  5. 05

    Or hand it to your AI

    Copy the prompt and let your coding assistant place it in your project, following your conventions.

Building with an AI assistant?

Copy a ready-made prompt with the code, its dependencies and a demo, and your assistant can put it in place for you.

Copy AI prompt

Selling your own work?

Get approved once, then publish components, templates and mobile components, paid in USDT straight to your own wallet.