/* ==========================================================================
   WIZKET — Testimonials ("What they say") · video fan
   A hand of portrait video cards. Pick one (click, drag it up, ← →) and it lifts
   to the front; its name + company sit beside it. The videos play on the cards; use the small round button
   on the front card to switch sound on. There is no pop-up player.
   Prefixes: tm- (section header, shared with the old section so responsive.css still applies)
             vt-  (fan, cards, lightbox)
   Orange: the name's full stop, play-button hover fill, seek progress. Nothing else.
   Cards stay dark in both themes (like the Services cards).
   ========================================================================== */
.tm {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--bg); color: var(--text);
  padding: clamp(5rem, 9vw, 9rem) 0 clamp(4.5rem, 7vw, 7rem);
}
.tm::before { /* a soft petrol pool under the fan */
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: 6%; width: min(1200px, 120vw); height: 62%;
  transform: translateX(-50%);
  background: radial-gradient(50% 55% at 50% 60%, var(--petrol) 0%, transparent 72%);
  pointer-events: none;
}
.tm__inner { width: min(100% - clamp(2rem, 6vw, 6rem), 1320px); margin-inline: auto; }

.tm__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font: 500 0.75rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.tm__eyebrow { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--text); margin: 0; }
.tm__rule { width: 2.25rem; height: 1px; background: var(--line2); }
.tm__count { font-variant-numeric: tabular-nums; }

.tm__head { margin: clamp(1.75rem, 4vw, 3.5rem) 0 clamp(1rem, 3vw, 2.5rem); display: grid; gap: clamp(0.8rem, 1.6vw, 1.4rem); }
.tm__title {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3.4rem, 11.5vw, 11.5rem); line-height: 0.88; letter-spacing: -0.005em; text-transform: uppercase;
}
.tm__line { display: block; overflow: hidden; padding-bottom: 0.05em; }
.tm__line > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); }
.tm.is-in .tm__line > span { transform: none; }
.tm__dot { color: var(--accent); font-style: normal; }
.tm__sub { margin: 0; font: 400 clamp(1rem, 1.5vw, 1.25rem)/1.4 var(--font-body); color: var(--muted); }

[data-tm-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.9s var(--ease-out) 0.15s, transform 0.9s var(--ease-out) 0.15s; }
.tm.is-in [data-tm-reveal] { opacity: 1; transform: none; }

/* ==========================================================================
   The stage: name · fan · hint
   ========================================================================== */
.vt {
  position: relative;
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) minmax(0, 13rem);
  gap: clamp(1rem, 2.6vw, 2.75rem);
}

/* ---------- side text ---------- */
.vt__side { min-width: 0; align-self: start; padding-top: calc(var(--vt-h, 420px) * 0.4); }   /* centred on the front card */
.vt__side--l { text-align: right; }
.vt__side--r { display: grid; gap: 1.4rem; justify-items: start; }

.vt__no { margin: 0 0 0.9rem; font: 500 0.75rem/1 var(--font-body); letter-spacing: 0.16em; color: var(--muted); font-variant-numeric: tabular-nums; }
.vt__no b { font-weight: 500; color: var(--text); }
.vt__name {
  margin: 0; font: 400 clamp(2.1rem, 3.5vw, 3.6rem)/0.95 var(--font-display);
  text-transform: uppercase; letter-spacing: 0.006em; text-wrap: balance; overflow-wrap: anywhere;
}
.vt__name i { color: var(--accent); font-style: normal; }
.vt__co { margin: 0.9rem 0 0; font: 500 0.95rem/1.3 var(--font-body); letter-spacing: 0.02em; color: var(--muted); }




.vt__soon[hidden] { display: none; }
.vt__soon {
  margin: 0; padding: 0.7rem 1rem; border: 1px dashed var(--line2); border-radius: 999px;
  font: 500 0.6875rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.vt__hint { margin: 0; display: flex; align-items: center; gap: 0.7rem; font: 500 0.6875rem/1.3 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.vt__hint::before { content: ""; width: 1.6rem; height: 1px; background: var(--line2); flex: none; }
.vt__hint .is-touch { display: none; }

/* ---------- the fan ---------- */
.vt__fan { position: relative; min-width: 0; --vt-w: 280px; min-height: 520px; opacity: 0; }
.vt__fan.is-ready { opacity: 1; }
.vt-slot {
  position: absolute; left: 50%; bottom: calc(var(--vt-w) * 0.126);
  width: var(--vt-w); margin-left: calc(var(--vt-w) / -2);
  will-change: transform;
}
.vt-lift { will-change: transform; }

.vt-card {
  position: relative; display: block; width: var(--vt-w); aspect-ratio: 5 / 7; padding: 0; border: 0; background: none;
  border-radius: 14px; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; will-change: transform;
  filter: brightness(0.74); transition: filter 0.5s var(--ease-out);
  -webkit-user-select: none; user-select: none;
}
.vt-card.is-hover, .vt-card.is-active { filter: brightness(1); }
.vt-card.is-drag { cursor: grabbing; }
.vt-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

/* card face — always dark, whatever the theme */
.vt-face {
  position: absolute; inset: 0; overflow: hidden; border-radius: inherit; color: #f2f1ed;
  border: 1px solid rgba(242, 241, 237, 0.16);
  background:
    repeating-radial-gradient(circle at var(--x, 30%) 34%, transparent 0 46px, rgba(242, 241, 237, 0.055) 46px 47px),   /* echoes the hero rings */
    radial-gradient(110% 64% at var(--x, 30%) var(--y, 10%), rgba(242, 241, 237, 0.2), transparent 62%),
    linear-gradient(168deg, #2a3640 0%, #1b2a2d 54%, #0e1517 100%);
  box-shadow: 0 34px 56px -26px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
:root[data-theme="light"] .vt-face { box-shadow: 0 34px 56px -28px rgba(23, 26, 28, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.vt-face::before { /* film grain */
  content: ""; position: absolute; inset: 0; opacity: 0.1; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vt-face::after { /* legibility ramp for the name */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 52%, rgba(8, 11, 12, 0.72) 100%);
}
.vt-face__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none;
  filter: grayscale(0.9) contrast(1.05); transition: filter 0.8s var(--ease-out);
}
.vt-card.is-active .vt-face__img, .vt-card.is-hover .vt-face__img { filter: none; }
.vt-face__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.vt-face__ghost {
  position: absolute; left: 50%; top: 31%; transform: translate(-50%, -50%); z-index: 1;
  font: 400 calc(var(--vt-w) * 0.6)/0.8 var(--font-display); letter-spacing: 0.01em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(242, 241, 237, 0.24);
}
.vt-card.has-poster .vt-face__ghost { display: none; }

.vt-face__idx {
  position: absolute; z-index: 2; left: 7%; top: 5%;
  font: 600 calc(var(--vt-w) * 0.04)/1 var(--font-body); letter-spacing: 0.18em; color: rgba(242, 241, 237, 0.62);
}
.vt-face__play {
  position: absolute; z-index: 2; left: 50%; top: 61%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: calc(var(--vt-w) * 0.2); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(242, 241, 237, 0.5); background: rgba(11, 14, 16, 0.32);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), transform 0.5s var(--ease-out), opacity 0.35s;
  opacity: 0.55;
}
.vt-face__play svg { width: 34%; height: 34%; margin-left: 6%; fill: #f2f1ed; }
.vt-card.is-active .vt-face__play { opacity: 1; }
.vt-card.is-active:not(.no-video):hover .vt-face__play,
.vt-card.is-active:not(.no-video):focus-visible .vt-face__play { background: var(--accent); border-color: var(--accent); transform: translate(-50%, -50%) scale(1.12); }
.vt-card.no-video .vt-face__play { display: none; }

.vt-face__who {
  position: absolute; z-index: 2; left: 7%; right: 7%; bottom: 5.5%; display: grid; gap: calc(var(--vt-w) * 0.014); text-align: left;
}
.vt-face__who b { font: 600 calc(var(--vt-w) * 0.062)/1.15 var(--font-body); letter-spacing: -0.005em; }
.vt-face__who i { font: 400 calc(var(--vt-w) * 0.046)/1.2 var(--font-body); font-style: normal; color: rgba(242, 241, 237, 0.62); }





































/* ---------- closing link (quiet) ---------- */
.tm__end { display: flex; justify-content: center; padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.tm__cta {
  position: relative; display: inline-flex; align-items: center; gap: 0.9rem; padding: 0.6rem 0; color: var(--text); text-decoration: none;
  font: 600 0.8125rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase;
}
.tm__cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line2); }
.tm__cta::before {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-out); z-index: 1;
}
.tm__cta-arrow { display: inline-block; transition: transform 0.4s var(--ease-out), color 0.3s; }
.tm__cta:hover::before, .tm__cta:focus-visible::before { transform: scaleX(1); }
.tm__cta:hover .tm__cta-arrow, .tm__cta:focus-visible .tm__cta-arrow { transform: translateX(6px); color: var(--accent); }
.tm__cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .vt { grid-template-columns: minmax(0, 11.5rem) minmax(0, 1fr) minmax(0, 10.5rem); gap: 1rem; }
  .vt__name { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
}

/* stacked: name → fan */
@media (max-width: 820px) {
  .vt { grid-template-columns: 1fr; gap: 0.5rem; }
  .vt__side { padding-top: 0; }
  .vt__side--l { text-align: center; order: 1; }
  .vt__fan { order: 2; }
  .vt__side--r { order: 3; justify-items: center; text-align: center; gap: 1.1rem; }
  .vt__no { margin-bottom: 0.7rem; }
  .vt__name { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .vt__co { margin-top: 0.6rem; }
  
}
@media (max-width: 560px) {
  .tm { padding-top: 4.5rem; }
  
  .vt__side--r { width: 100%; }
  
  
  
  
}
@media (hover: none) {
  .vt__hint .is-fine { display: none; }
  .vt__hint .is-touch { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .tm__line > span, [data-tm-reveal] { transform: none; opacity: 1; transition: none; }
  
}

/* ==========================================================================
   v3 — five cards: the selected one in the middle, two on each side.
   Name/number sit centred above the row; hint below it.
   (Later rules on purpose: they supersede the old three-column layout above.)
   ========================================================================== */
.tm__bar { justify-content: center; margin-bottom: clamp(2.25rem, 5vw, 4rem); }          /* the gap between the label and the name */
.tm__eyebrow::after { content: ""; width: 2.25rem; height: 1px; background: var(--line2); }

.vt { grid-template-columns: minmax(0, 1fr); justify-items: stretch; gap: clamp(1.5rem, 3.2vw, 2.75rem); }
.vt__side { align-self: auto; padding-top: 0; }
.vt__side--l { order: 1; text-align: center; }
.vt__fan { order: 2; width: 100%; --vt-pad: 56px; }
.vt__side--r { order: 3; display: grid; justify-items: center; text-align: center; gap: 1.4rem; width: auto; }
.vt__no { margin: 0 0 clamp(0.9rem, 1.6vw, 1.25rem); }
.vt__name { font-size: clamp(2.6rem, 6.2vw, 5.6rem); line-height: 0.92; }
.vt__co { margin-top: clamp(0.8rem, 1.4vw, 1.1rem); font-size: 1rem; }

.vt-slot { bottom: var(--vt-pad, 56px); }
.vt-card.d2 { filter: brightness(0.56); }
.vt-card.is-hover { filter: brightness(0.95); }
.vt-card.is-active { filter: brightness(1); }

.vt__ctrl { display: flex; align-items: center; justify-content: center; gap: clamp(0.75rem, 2vw, 1.25rem); }
.vt__arrow {
  display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; padding: 0;
  border: 1px solid var(--line2); background: none; color: var(--text); cursor: pointer;
  transition: border-color 0.3s var(--ease-out), transform 0.45s var(--ease-out);
}
.vt__arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.vt__arrow:hover { border-color: var(--text); transform: scale(1.07); }
.vt__arrow:active { transform: scale(0.96); }
.vt__arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.vt__hint { justify-content: center; }
.vt__hint::before { display: none; }

@media (max-width: 560px) {
  
  .vt__side--r { width: 100%; }
  .vt__arrow { width: 46px; height: 46px; }
}

/* ==========================================================================
   v4 — video cards · drag up · sound button · bigger middle card
   ========================================================================== */
.vt-lift { position: relative; }
.vt-card { cursor: grab; }
.vt-card.is-active { touch-action: none; }                                 /* the front card takes a vertical drag on touch */
.vt-card.is-drag { cursor: grabbing; filter: brightness(1); }
.vt-card.is-active .vt-face { box-shadow: 0 46px 80px -28px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.07); }

/* the video IS the card face: it fades in over the dark backdrop once it has its first frame */
.vt-face__vid {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0e1517;
  opacity: 0; transition: opacity 0.7s var(--ease-out); pointer-events: none; -webkit-user-drag: none;
}
.vt-card.is-ready .vt-face__vid { opacity: 1; }
.vt-card.has-video .vt-face__ghost { display: none; }
.vt-face::before { z-index: 1; }                                           /* grain sits on top of the picture */
.vt-face::after { z-index: 1; }

/* sound button: a small round button on the front card (top right). Tap = sound on, tap again = off. */
.vt-snd {
  position: absolute; z-index: 6; top: 3.6%; right: 4.5%; display: grid; place-items: center;
  width: 30px; height: 30px; padding: 0; border-radius: 50%; cursor: pointer; color: #f2f1ed;
  border: 1px solid rgba(242, 241, 237, 0.42); background: rgba(11, 14, 16, 0.5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), opacity 0.3s, transform 0.4s var(--ease-out);
}
.vt-snd[hidden] { display: none; }
.vt-snd svg { width: 13px; height: 13px; flex: none; }
.vt-snd .i-on { display: none; }
.vt-snd.is-on .i-on { display: block; }
.vt-snd.is-on .i-off { display: none; }
.vt-snd.is-on { border-color: var(--accent); animation: vt-snd-pulse 1.8s var(--ease-out) infinite; }
.vt-snd:hover, .vt-snd:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: scale(1.1); animation: none; }
.vt-snd:focus-visible { outline: 2px solid #f2f1ed; outline-offset: 3px; }
.vt-slot.is-dragging .vt-snd { opacity: 0; pointer-events: none; }
@keyframes vt-snd-pulse { 0% { box-shadow: 0 0 0 0 rgba(253, 95, 7, 0.45); } 100% { box-shadow: 0 0 0 11px rgba(253, 95, 7, 0); } }
@media (prefers-reduced-motion: reduce) { .vt-snd.is-on { animation: none; } }
@media (max-width: 720px) { .vt-snd { width: 28px; height: 28px; } .vt-snd svg { width: 12px; height: 12px; } }
