/* =====================================================================
   SITE TESTIMONIALS COMPONENT — the Home testimonials (dark, one centred column,
   frame lines with the occasional meteor) on every page that loads it.
   Scoped by html.stx, which assets/components/site-testimonials.js adds after mounting.
   :root.stx keeps these above page-level styling rules.
   ===================================================================== */
/* visibility stays with the page: where a page hid its testimonials (the revamp solution pages), they stay hidden */
:root.stx .tst, :root.stx .tstBox { position: relative; isolation: isolate; }
:root.stx .tst { background: #0e1020 !important; align-items: stretch !important; padding-top: clamp(96px, 11vw, 160px) !important; padding-bottom: 48px !important; }
:root.stx .tstBox { background: transparent !important; margin-top: -1px; }
:root.stx .tstBox__pin { position: sticky; isolation: isolate; background: transparent !important; align-items: center !important; }

/* frame: outer lines at the page padding + three quarter lines (same grid as the white sections) */
:root.stx .tst::before, :root.stx .tstBox::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pad-x); right: var(--pad-x); z-index: -1; pointer-events: none;
  border-left: 1px solid rgba(255, 255, 255, .08); border-right: 1px solid rgba(255, 255, 255, .08);
  background-image: linear-gradient(90deg, transparent calc(25% - .5px), rgba(255, 255, 255, .05) calc(25% - .5px) calc(25% + .5px), transparent calc(25% + .5px) calc(50% - .5px), rgba(255, 255, 255, .05) calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px) calc(75% - .5px), rgba(255, 255, 255, .05) calc(75% - .5px) calc(75% + .5px), transparent calc(75% + .5px)) !important; }
@media (max-width: 900px) { :root.stx .tst::before, :root.stx .tstBox::before { background-image: none !important; } }

/* header: eyebrow + heading, left-aligned in the centred column */
:root.stx .tst__header { align-items: flex-start !important; text-align: left; width: 100%; max-width: 1040px; margin: 0 auto; gap: 22px !important; }
:root.stx .tst .pill { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; display: inline-flex; align-items: center; gap: 8px; color: #9aa0ae !important;
  font: 700 12.5px/1 "Geologica", sans-serif !important; letter-spacing: .16em !important; text-transform: uppercase; }
:root.stx .tst .pill::before { content: ""; width: 10px; height: 10px; flex: none; border-radius: 50% 50% 0 50%; background: #7b70e0 !important; }
:root.stx .tst__title { text-align: left !important; color: #fff !important; }
:root.stx .tst__title em.is-brand, :root.stx .tst__title em.is-teal { font-style: normal; font-weight: inherit; color: transparent !important;
  background: linear-gradient(90deg, #fff 0 50%, #6e7389 50% 100%) !important; background-size: 200% 100% !important; background-position: 100% 0;
  -webkit-background-clip: text !important; background-clip: text !important; transition: background-position 1s cubic-bezier(.65, 0, .35, 1); }
:root.stx .tst__title:hover em { background-position: 0 0 !important; }

/* stage: no panel, the same centred column */
:root.stx .tst__stage { background: none !important; border-radius: 0 !important; width: 100%; max-width: 1040px; margin: 0 auto !important; height: auto !important; min-height: 0 !important; padding: 0 0 96px !important; justify-content: center; position: relative; z-index: 1; }
:root.stx .tst__stage::before { content: none !important; }
:root.stx .tst__carousel { gap: 0 !important; display: grid !important; grid-template-columns: 1fr; position: relative; }
:root.stx .tst__viewport { background: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; padding: 0 !important; border-radius: 0 !important; }

/* card: quote, hairline, person (left) and metric (right) */
:root.stx .tstCard { background: none !important; padding: 0 !important; border-radius: 0 !important; display: grid !important; grid-template-columns: 1fr auto; grid-template-areas: "quote quote" "person metric"; gap: 0 !important; }
:root.stx .tstCard__quote { grid-area: quote; color: #fff !important; font: 500 clamp(24px, 2.35vw, 34px)/1.3 "Geologica", sans-serif !important; letter-spacing: -.018em !important; max-width: 30ch; text-wrap: pretty; padding-bottom: clamp(32px, 5vh, 56px); margin: 0; }
:root.stx .tstCard__person { grid-area: person; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); gap: 14px !important; }
:root.stx .tstCard__metric { grid-area: metric; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); text-align: right; align-items: flex-end; flex-direction: column-reverse !important; gap: 4px !important; }
:root.stx .tstCard__metricValue { color: #29ccb2 !important; font: 600 clamp(32px, 3vw, 44px)/1 "Geologica", sans-serif !important; letter-spacing: -.03em; }
:root.stx .tstCard__metricLabel { color: #9aa0ae !important; font-size: 14px !important; }
:root.stx .tstCard__avatar { width: 52px !important; height: 52px !important; border-radius: 50% !important; box-shadow: 0 0 0 2px rgba(255, 255, 255, .12); }
:root.stx .tstCard__name { color: #fff !important; font-size: 17px !important; }
:root.stx .tstCard__role { color: #9aa0ae !important; font-size: 14px !important; }

/* controls: outline arrows bottom-left, progress dots bottom-right */
:root.stx .tst__arrow { position: absolute; bottom: -76px !important; width: 48px; height: 48px; padding: 0 !important; background: transparent !important; color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); transition: background-color .3s, color .3s, box-shadow .3s, transform .2s !important; }
:root.stx #tstPrev { left: 0; } :root.stx #tstNext { left: 60px; }
:root.stx .tst__arrow:hover { background: #fff !important; color: #4a3dcc !important; box-shadow: none; transform: none; }
:root.stx .tst__arrow svg { width: 20px; height: 20px; }
:root.stx .tst__carousel .tst__dots { position: absolute !important; left: auto !important; right: 0 !important; bottom: -55px !important; top: auto !important; transform: none !important; margin: 0 !important; }
:root.stx .tst__dots button { background: rgba(255, 255, 255, .25) !important; }
:root.stx .tst__dots button.is-active { background: rgba(255, 255, 255, .25) !important; }
:root.stx .tst__dots button.is-active::after { background: #fff !important; }

@media (max-width: 900px) {
  :root.stx .tstCard { grid-template-columns: 1fr; grid-template-areas: "quote" "person" "metric"; }
  :root.stx .tstCard__metric { text-align: left; align-items: flex-start; border-top: 0; padding-top: 16px; }
}

/* meteors: one layer under the whole dark area; now and then a light runs down a frame line */
:root.stx .stxMeteors { position: absolute; top: 0; left: 0; right: 0; z-index: -2; pointer-events: none; overflow: hidden; background: #0e1020; }
:root.stx .stxMeteors i { position: absolute; top: 0; width: 1px; height: 140px; margin-left: -.5px; background: linear-gradient(180deg, rgba(41, 204, 178, 0), rgba(41, 204, 178, .55) 70%, #fff); box-shadow: 0 0 8px rgba(41, 204, 178, .6); transform: translateY(-160px); animation: stxMeteor var(--dur, 3s) linear forwards; }
:root.stx .stxMeteors i::after { content: ""; position: absolute; left: -1.5px; bottom: -2px; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 2px rgba(41, 204, 178, .8); }
@keyframes stxMeteor { from { transform: translateY(-160px); } to { transform: translateY(var(--h)); } }

/* hidden until real testimonials arrive (HIDE in site-testimonials.js); the markup stays in the page */
:root.stx-off section.tst, :root.stx-off section.tstBox { display: none !important; }
