/* =====================================================================
   Homepage testimonials — "Split" (mockup: claude/mockups/front/testimonial.html#a)
   Photo left, quote panel right, segmented progress + arrows.
   All classes are prefixed .ts-a-*
   ===================================================================== */
.ts-a {
	--ts-green: #44b749;
	--ts-dark: #14151e;
	/* theme blocks are floats — the new block follows the same rule */
	float: left;
	clear: both;
	width: 100%;
	display: grid;
	grid-template-columns: 42% 58%;
	min-height: 540px;
	background: var(--ts-dark);
}
.ts-a *, .ts-a *::before, .ts-a *::after { box-sizing: border-box; }

/* ---------- photo ---------- */
.ts-a-media { position: relative; background-position: center; background-size: cover; background-repeat: no-repeat; }
.ts-a-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,21,30,.15) 0%, rgba(20,21,30,.75) 100%); }
.ts-a-accent { position: absolute; z-index: 2; top: 0; right: -3px; width: 6px; height: 120px; background: var(--ts-green); }
.ts-a-media-in { position: absolute; z-index: 1; left: 48px; right: 48px; bottom: 44px; color: #fff; }
.ts-a-eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 'Rubik', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--ts-green); }
.ts-a-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.ts-a-count { margin-top: 18px; font: 300 88px/.9 'Rubik', sans-serif; color: #fff; letter-spacing: -.02em; }
.ts-a-count small { margin-left: 6px; font-size: 22px; letter-spacing: 0; color: rgba(255,255,255,.55); }

/* ---------- quote panel ---------- */
.ts-a-body { position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 80px 9% 70px 90px; }
.ts-a-q { width: 46px; height: 34px; margin-bottom: 28px; color: var(--ts-green); }
.ts-a-slides { display: grid; }
.ts-a-slide { grid-area: 1 / 1; min-width: 0; margin: 0; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s; }
.ts-a-slide.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .5s ease, visibility 0s; }
.ts-a-text { float: none; width: auto; margin: 0 0 32px; padding: 0; background: none; border: 0; }
.ts-a-text,
.ts-a-text p { font: 300 24px/1.6 'Open Sans', sans-serif !important; color: #eee !important; }
.ts-a-text p { margin: 0 0 12px; padding: 0; }
.ts-a-text p:last-child { margin-bottom: 0; }
.ts-a-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ts-a-name { font: 400 18px/1.3 'Rubik', sans-serif; color: #fff; }
.ts-a-who i { width: 24px; height: 1px; background: #4a4d5c; }
.ts-a-who time { font-size: 13px; color: #8d90a0; }

/* ---------- navigation ---------- */
.ts-a-nav { display: flex; align-items: center; gap: 22px; margin-top: 54px; }
.ts-a-bars { display: flex; flex: 1; gap: 8px; max-width: 340px; }
.ts-a-bars button { position: relative; flex: 1; height: 22px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.ts-a-bars button::before,
.ts-a-bars button::after { content: ""; position: absolute; left: 0; top: 10px; height: 2px; }
.ts-a-bars button::before { right: 0; background: rgba(255,255,255,.15); }
.ts-a-bars button::after { width: calc(var(--p, 0) * 100%); background: var(--ts-green); }
.ts-a-bars button.is-done::after { width: 100%; background: rgba(255,255,255,.45); }
.ts-a-bars button:focus-visible { outline: 2px solid var(--ts-green); outline-offset: 2px; }
.ts-a-arrows { display: flex; gap: 10px; }
.ts-a-arrow { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 0; padding: 0; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; cursor: pointer; transition: background .2s, border-color .2s; }
.ts-a-arrow:hover,
.ts-a-arrow:focus-visible { background: var(--ts-green); border-color: var(--ts-green); outline: 0; }
.ts-a-arrow svg { width: 18px; height: 18px; }

/* ---------- < 1200 px ---------- */
@media (max-width: 1199px) {
	.ts-a-body { padding: 70px 50px 60px 60px; }
	.ts-a-text, .ts-a-text p { font-size: 21px !important; }
}

/* ---------- < 900 px: photo on top ---------- */
@media (max-width: 899px) {
	.ts-a { grid-template-columns: minmax(0, 1fr); min-height: 0; }
	.ts-a-media { height: 260px; }
	.ts-a-media-in { left: 24px; right: 24px; bottom: 24px; }
	.ts-a-count { font-size: 56px; }
	.ts-a-accent { top: auto; right: auto; bottom: -3px; left: 24px; width: 90px; height: 6px; }
	.ts-a-body { padding: 48px 24px 52px; }
	.ts-a-text, .ts-a-text p { font-size: 19px !important; }
	.ts-a-nav { margin-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
	.ts-a-slide, .ts-a-slide.is-on { transition: none; }
}
