/**
 * Transformation Gallery — homepage BA teaser (.tx) + /results/ (.tg)
 * Shared before/after slider polish (.ba-compare__*)
 */

/* ========== Shared BA handle polish ========== */
.ba-compare__viewport {
	position: relative;
	overflow: hidden;
	border-radius: 28px;
	user-select: none;
	touch-action: none;
	background: #1a1216;
	cursor: ew-resize;
	box-shadow: 0 28px 70px rgba(45, 18, 28, 0.18);
}

.ba-compare__after,
.ba-compare__before {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

.ba-compare__before-wrap {
	position: absolute;
	inset: 0 auto 0 0;
	overflow: hidden;
	width: 50%;
}

[dir="rtl"] .ba-compare__before-wrap {
	inset: 0 0 0 auto;
}

.ba-compare__before {
	position: absolute;
	inset: 0;
	max-width: none;
	height: 100%;
}

.ba-compare__handle {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 1px;
	background: rgba(255, 255, 255, 0.88);
	transform: translateX(-50%);
	z-index: 3;
	box-shadow: none;
}

[dir="rtl"] .ba-compare__handle {
	transform: translateX(50%);
}

.ba-compare__knob {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 252, 250, 0.92);
	border: 1px solid rgba(168, 95, 114, 0.28);
	backdrop-filter: blur(10px);
	transform: translate(-50%, -50%);
	box-shadow: 0 6px 18px rgba(45, 18, 28, 0.18);
	display: grid;
	place-items: center;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ba-compare__viewport:hover .ba-compare__knob,
.ba-compare__knob.is-pulse {
	transform: translate(-50%, -50%) scale(1.04);
	box-shadow: 0 8px 22px rgba(92, 36, 56, 0.22);
}

.ba-compare__knob.is-pulse {
	animation: ba-pulse 1.6s ease-in-out 2;
}

@keyframes ba-pulse {
	0%, 100% { box-shadow: 0 6px 18px rgba(45, 18, 28, 0.18); }
	50% { box-shadow: 0 0 0 8px rgba(216, 111, 142, 0.14), 0 8px 22px rgba(45, 18, 28, 0.2); }
}

.ba-compare__arrow {
	position: absolute;
	top: 50%;
	width: 6px;
	height: 6px;
	border-top: 1.5px solid #5c2438;
	border-right: 1.5px solid #5c2438;
}

.ba-compare__arrow--prev {
	left: 9px;
	transform: translateY(-50%) rotate(-135deg);
}

.ba-compare__arrow--next {
	right: 9px;
	transform: translateY(-50%) rotate(45deg);
}

.ba-compare__label {
	position: absolute;
	top: 12px;
	bottom: auto;
	z-index: 4;
	padding: 0.28rem 0.62rem;
	border-radius: 999px;
	background: rgba(255, 252, 250, 0.78);
	backdrop-filter: blur(8px);
	color: #5c2438;
	font-size: 0.65rem;
	letter-spacing: 0.08em;
	font-weight: 600;
	text-transform: none;
	border: 1px solid rgba(168, 95, 114, 0.16);
}

.ba-compare__label--before { inset-inline-start: 12px; }
.ba-compare__label--after { inset-inline-end: 12px; }

.ba-compare__hint {
	position: absolute;
	left: 50%;
	top: 18px;
	transform: translateX(-50%);
	z-index: 5;
	display: grid;
	gap: 0.15rem;
	justify-items: center;
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	background: rgba(255, 252, 250, 0.88);
	border: 1px solid rgba(168, 95, 114, 0.2);
	color: #5c2438;
	font-size: 0.65rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.5s ease;
}

.ba-compare__hint em {
	font-style: normal;
	letter-spacing: 0.04em;
	text-transform: none;
	font-size: 0.78rem;
	opacity: 0.75;
}

.ba-compare__hint.is-on {
	opacity: 1;
}

.ba-compare__hint.is-off {
	opacity: 0;
}

/* ========== Homepage cinematic teaser ========== */
.tx {
	--tx-wine: #4a1d2e;
	--tx-dust: #a85f72;
	--tx-ivory: #f8f3ef;
	position: relative;
	isolation: isolate;
	padding: clamp(4.5rem, 8vw, 6.5rem) 0 clamp(3.5rem, 6vw, 5rem);
	min-height: 0;
	display: grid;
	align-items: center;
	background:
		radial-gradient(ellipse 55% 50% at 85% 15%, rgba(243, 196, 206, 0.42), transparent 58%),
		radial-gradient(ellipse 40% 45% at 8% 80%, rgba(255, 225, 214, 0.35), transparent 55%),
		linear-gradient(180deg, #fffaf7 0%, var(--tx-ivory) 100%);
	overflow: hidden;
}

.tx__watermark {
	position: absolute;
	inset-inline-end: -2%;
	top: 12%;
	font-family: var(--tolin-font-serif, Georgia, serif);
	font-size: clamp(5rem, 18vw, 14rem);
	line-height: 0.8;
	color: var(--tx-wine);
	opacity: 0.045;
	pointer-events: none;
	direction: ltr;
	z-index: 0;
}

.tx__glow {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	filter: blur(40px);
	z-index: 0;
}

.tx__glow--a {
	width: 340px;
	height: 340px;
	inset-inline-start: -80px;
	top: 20%;
	background: rgba(216, 111, 142, 0.18);
}

.tx__glow--b {
	width: 280px;
	height: 280px;
	inset-inline-end: 10%;
	bottom: 8%;
	background: rgba(247, 183, 163, 0.22);
}

.tx__grain {
	position: absolute;
	inset: 0;
	opacity: 0.035;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
	z-index: 0;
}

.tx__shell {
	position: relative;
	z-index: 1;
	width: min(1520px, calc(100% - 2.5rem));
	margin-inline: auto;
}

.tx__layout {
	display: grid;
	gap: clamp(1.75rem, 3.5vw, 3rem);
	align-items: center;
}

@media (min-width: 980px) {
	.tx__layout {
		grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.25fr);
		gap: clamp(2rem, 4vw, 4rem);
	}
}

.tx__eyebrow {
	margin: 0 0 1rem;
	font-size: 0.72rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--tx-dust);
}

.tx__title {
	margin: 0 0 1.1rem;
	font-family: var(--tolin-font-serif, Georgia, serif);
	font-weight: 500;
	font-size: clamp(2.8rem, 5.8vw, 5.6rem);
	line-height: 0.98;
	letter-spacing: -0.02em;
	color: var(--tx-wine);
}

.tx__line {
	display: block;
	overflow: hidden;
}

.tx__lede {
	margin: 0 0 1.35rem;
	max-width: 28rem;
	font-size: clamp(1.05rem, 1.2vw, 1.18rem);
	line-height: 1.7;
	color: #6a6068;
}

.tx__case-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 1rem;
	align-items: baseline;
	margin-bottom: 1.5rem;
}

.tx__case-num {
	font-size: 0.72rem;
	letter-spacing: 0.18em;
	font-weight: 700;
	color: var(--tx-dust);
}

.tx__case-bits {
	font-size: 0.95rem;
	color: #5c2438;
}

.tx__cta {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.35rem;
	border-radius: 18px;
	border: 1px solid rgba(92, 36, 56, 0.22);
	background: rgba(255, 252, 250, 0.72);
	backdrop-filter: blur(8px);
	color: var(--tx-wine);
	text-decoration: none;
	font-weight: 700;
	overflow: hidden;
	transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.tx__cta:hover {
	background: var(--tx-wine);
	border-color: var(--tx-wine);
	color: #fff;
}

.tx__cta-arrow {
	transition: transform 0.35s ease;
}

.tx__cta:hover .tx__cta-arrow {
	transform: translate(3px, -3px);
}

.tx__cta-preview {
	position: absolute;
	inset-inline-end: -20%;
	top: 50%;
	width: 64px;
	height: 64px;
	border-radius: 14px;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transform: translateY(-50%) scale(0.85);
	transition: opacity 0.35s ease, transform 0.35s ease, inset-inline-end 0.35s ease;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.tx__cta:hover .tx__cta-preview {
	opacity: 1;
	inset-inline-end: 12px;
	transform: translateY(-50%) scale(1);
}

.tx__stage {
	position: relative;
}

.tx__compare-wrap {
	overflow: hidden;
	border-radius: 32px;
}

/* Neutralize legacy .ba-compare art-direction / luxury constraints */
.tx .ba-compare,
.tx__compare.ba-compare,
.tg .ba-compare {
	aspect-ratio: auto !important;
	max-height: none !important;
	min-height: 0 !important;
	width: 100%;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
}

.tx__compare .ba-compare__viewport {
	width: 100%;
	max-width: clamp(520px, 48vw, 860px);
	margin-inline: auto;
	aspect-ratio: 4 / 3;
	max-height: min(68vh, 640px);
}

.tx[data-tx-count="1"] .tx__compare .ba-compare__viewport {
	max-width: min(100%, clamp(560px, 54vw, 920px));
	max-height: min(74vh, 700px);
}

@media (min-width: 980px) {
	.tx[data-tx-count="1"] .tx__layout {
		grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.45fr);
	}
}

.tx__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	justify-content: center;
	margin-top: 1.25rem;
}

.tx__dot {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	border: 0;
	background: transparent;
	color: rgba(92, 36, 56, 0.45);
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	font-weight: 700;
	cursor: pointer;
	padding: 0.35rem 0.15rem;
}

.tx__dot.is-active {
	color: var(--tx-wine);
}

.tx__dot i {
	display: block;
	width: 28px;
	height: 1px;
	background: currentColor;
	opacity: 0.45;
}

.tx__thumbs {
	display: flex;
	gap: 0.65rem;
	justify-content: center;
	margin-top: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 0.25rem;
	-webkit-overflow-scrolling: touch;
}

.tx__thumb {
	flex: 0 0 auto;
	scroll-snap-align: center;
	width: 88px;
	aspect-ratio: 4 / 3;
	border: 0;
	padding: 0;
	border-radius: 14px;
	overflow: hidden;
	position: relative;
	cursor: pointer;
	opacity: 0.55;
	transform: rotate(-2deg);
	box-shadow: 0 10px 24px rgba(45, 18, 28, 0.12);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.tx__thumb:nth-child(even) {
	transform: rotate(2deg) translateY(8px);
}

.tx__thumb.is-active,
.tx__thumb:hover {
	opacity: 1;
	transform: rotate(0) translateY(0) scale(1.04);
}

.tx__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tx__thumb span {
	position: absolute;
	inset-inline-start: 6px;
	bottom: 6px;
	font-size: 0.62rem;
	letter-spacing: 0.1em;
	color: #fff;
	background: rgba(0, 0, 0, 0.4);
	padding: 0.15rem 0.4rem;
	border-radius: 999px;
}

/* Critical path: do not hide BA copy if JS is late */
.tx [data-tx-reveal],
.tg [data-tg-reveal] {
	opacity: 1;
	transform: none;
}

[data-tx-reveal],
[data-tg-reveal],
[data-vg-tile] {
	transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.tx.is-animating [data-tx-reveal]:not(.is-in),
.tg.is-animating [data-tg-reveal]:not(.is-in),
[data-vg-tile]:not(.is-in) {
	opacity: 0;
	transform: translateY(22px);
}

[data-tx-reveal].is-in,
[data-tg-reveal].is-in,
[data-vg-tile].is-in {
	opacity: 1;
	transform: none;
}

[data-tx-mask],
[data-tg-mask] {
	clip-path: inset(8% 8% 8% 8%);
	transition: clip-path 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-tx-mask].is-open,
[data-tg-mask].is-open {
	clip-path: inset(0 0 0 0);
}

/* ========== Transformation Gallery (.tg) ========== */
.tg {
	--tg-wine: #4a1d2e;
	--tg-burgundy: #5c2438;
	--tg-deep: #2a1018;
	--tg-dust: #a85f72;
	--tg-blush: #f1e4e8;
	--tg-ivory: #f8f3ef;
	--tg-ivory-soft: #fffaf7;
	--tg-rose: #e8d0d6;
	--tg-muted: #6a6068;
	--tg-shell: min(1520px, calc(100% - 2.5rem));
	background: var(--tg-ivory);
	color: #2a2226;
	overflow-x: clip;
}

.tg-shell {
	width: var(--tg-shell);
	margin-inline: auto;
}

.tg-eyebrow {
	margin: 0 0 0.9rem;
	font-size: 0.72rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--tg-dust);
}

.tg-eyebrow--light {
	color: rgba(255, 244, 246, 0.72);
}

.tg-eyebrow a {
	color: inherit;
	text-decoration: none;
}

.tg-eyebrow a:hover {
	text-decoration: underline;
}

.tg-line {
	display: block;
}

.tg-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 700;
	color: var(--tg-wine);
	text-decoration: none;
	transition: opacity 0.25s ease;
}

.tg-link--light {
	color: #fff;
}

.tg-link span {
	transition: transform 0.3s ease;
}

.tg-link:hover span {
	transform: translateX(4px);
}

[dir="rtl"] .tg-link:hover span {
	transform: translateX(-4px);
}

.tg-facts {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	display: grid;
	gap: 0.65rem;
}

.tg-facts li {
	display: grid;
	gap: 0.15rem;
	padding-block: 0.45rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 1.05rem;
}

.tg-facts span {
	font-size: 0.68rem;
	letter-spacing: 0.16em;
	opacity: 0.65;
}

.tg-facts--light {
	margin-bottom: 0;
}

.tg-facts--light li {
	border-bottom-color: rgba(92, 36, 56, 0.12);
	color: var(--tg-wine);
}

.tg-facts--light span {
	color: var(--tg-dust);
	opacity: 1;
}

/* Empty state */
.tg-empty {
	padding: clamp(6rem, 14vw, 9rem) 0 clamp(4rem, 8vw, 6rem);
	text-align: center;
	background:
		radial-gradient(ellipse 50% 50% at 50% 20%, rgba(243, 196, 206, 0.35), transparent 60%),
		linear-gradient(180deg, var(--tg-ivory-soft), var(--tg-ivory));
}

.tg-empty__title {
	margin: 0 0 0.85rem;
	font-family: var(--tolin-font-serif, Georgia, serif);
	font-size: clamp(2.6rem, 5vw, 4.2rem);
	font-weight: 500;
	line-height: 1.05;
	color: var(--tg-wine);
}

.tg-empty__text {
	margin: 0 auto 1.75rem;
	max-width: 32rem;
	font-size: 1.08rem;
	line-height: 1.7;
	color: var(--tg-muted);
}

.tg-empty__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	justify-content: center;
}

/* Hero — warm ivory, content-driven 40/60 */
.tg-hero {
	position: relative;
	padding: clamp(5.5rem, 10vw, 7.5rem) 0 clamp(2.5rem, 5vw, 3.75rem);
	background:
		radial-gradient(ellipse 50% 55% at 12% 30%, rgba(243, 196, 206, 0.4), transparent 60%),
		radial-gradient(ellipse 40% 40% at 88% 70%, rgba(255, 225, 214, 0.28), transparent 55%),
		linear-gradient(180deg, var(--tg-ivory-soft), var(--tg-ivory));
	overflow: hidden;
}

.tg-hero__wm {
	position: absolute;
	inset-inline-start: 2%;
	top: 16%;
	font-family: var(--tolin-font-serif, Georgia, serif);
	font-size: clamp(4rem, 14vw, 11rem);
	line-height: 0.8;
	color: var(--tg-wine);
	opacity: 0.04;
	pointer-events: none;
	z-index: 0;
}

.tg-hero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.75rem);
	align-items: center;
}

@media (min-width: 980px) {
	.tg-hero__grid {
		grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
	}
}

.tg-hero__title {
	margin: 0 0 1rem;
	font-family: var(--tolin-font-serif, Georgia, serif);
	font-size: clamp(2.8rem, 5.8vw, 5.8rem);
	line-height: 0.98;
	letter-spacing: -0.02em;
	font-weight: 500;
	color: var(--tg-wine);
}

.tg-hero__lede {
	margin: 0 0 1.5rem;
	max-width: 34rem;
	font-size: clamp(1.05rem, 1.2vw, 1.15rem);
	line-height: 1.7;
	color: var(--tg-muted);
}

.tg-scroll {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: var(--tg-wine);
	font-weight: 700;
	text-decoration: none;
	transition: opacity 0.25s ease;
}

.tg-scroll:hover {
	opacity: 0.75;
}

.tg-hero__stage {
	position: relative;
	justify-self: end;
	width: 100%;
}

.tg-hero__ba .ba-compare__viewport {
	width: min(760px, 50vw);
	max-width: 100%;
	margin-inline: auto;
	aspect-ratio: 4 / 3;
	border-radius: 28px;
}

.tg-hero__case {
	margin: 0.85rem 0 0;
	text-align: center;
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	font-weight: 700;
	color: var(--tg-dust);
}

.tg--one .tg-hero {
	padding-bottom: clamp(2rem, 4vw, 3rem);
}

/* Sticky filters — soft blush */
.tg-filters-wrap {
	position: sticky;
	top: calc(var(--tolin-header-h, 72px) + 12px);
	z-index: 30;
	padding: 0.65rem 0;
	background: linear-gradient(180deg, rgba(248, 243, 239, 0.92), rgba(241, 228, 232, 0.88));
	backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(168, 95, 114, 0.12);
}

.tg-filters {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.45rem;
	overflow-x: auto;
	padding: 0.55rem;
	border-radius: 999px;
	background: rgba(255, 252, 250, 0.86);
	border: 1px solid rgba(168, 95, 114, 0.18);
	box-shadow: 0 12px 30px rgba(45, 18, 28, 0.06);
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.tg-filters::-webkit-scrollbar {
	display: none;
}

.tg-chip {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	border: 1px solid transparent;
	background: transparent;
	color: var(--tg-wine);
	border-radius: 999px;
	padding: 0.55rem 1rem;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.tg-chip__icon {
	font-size: 0.95rem;
	line-height: 1;
}

.tg-chip em {
	font-style: normal;
	font-size: 0.75rem;
	opacity: 0.65;
	font-weight: 700;
}

.tg-chip.is-active,
.tg-chip:hover {
	background: var(--tg-dust);
	color: #fff;
}

.tg-chip.is-active em,
.tg-chip:hover em {
	opacity: 0.9;
}

/* Featured — deep burgundy, 65/35 */
.tg-featured {
	position: relative;
	padding: clamp(3.5rem, 7vw, 5.5rem) 0;
	background:
		radial-gradient(ellipse 50% 45% at 70% 20%, rgba(196, 122, 138, 0.22), transparent 55%),
		linear-gradient(165deg, #5c2438 0%, #3a1624 55%, #2a1018 100%);
	color: #fff;
	overflow: hidden;
}

.tg-featured__ghost {
	position: absolute;
	inset-inline-start: 4%;
	top: 8%;
	font-family: var(--tolin-font-serif, Georgia, serif);
	font-size: clamp(6rem, 20vw, 16rem);
	opacity: 0.07;
	line-height: 0.8;
	pointer-events: none;
}

.tg-featured__layout {
	position: relative;
	z-index: 1;
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	align-items: center;
}

@media (min-width: 980px) {
	.tg-featured__layout {
		grid-template-columns: minmax(0, 0.65fr) minmax(0, 0.35fr);
	}
}

.tg-featured__visual {
	position: relative;
}

.tg-featured__ba .ba-compare__viewport {
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 28px;
}

.tg-featured__kicker {
	margin: 0 0 0.5rem;
	font-size: 0.72rem;
	letter-spacing: 0.18em;
	opacity: 0.7;
}

.tg-featured__title {
	margin: 0 0 1.1rem;
	font-family: var(--tolin-font-serif, Georgia, serif);
	font-size: clamp(2rem, 3.5vw, 3.2rem);
	line-height: 1.05;
	font-weight: 500;
}

.tg-featured__desc {
	opacity: 0.82;
	line-height: 1.65;
	margin: 0 0 1.1rem;
}

.tg-featured--solo {
	padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.tg-featured__solo {
	position: relative;
	z-index: 1;
	max-width: 42rem;
}

/* Marquee */
.tg-marquee {
	overflow: hidden;
	padding: 0.95rem 0;
	background: var(--tg-blush);
	border-block: 1px solid rgba(92, 36, 56, 0.08);
	direction: ltr;
}

.tg-marquee__track {
	display: flex;
	width: max-content;
	animation: tg-marquee 38s linear infinite;
	font-size: 0.75rem;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--tg-wine);
	white-space: nowrap;
}

.tg-marquee__track span {
	padding-inline: 1.25rem;
}

@keyframes tg-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* Editorial gallery — ivory */
.tg-gallery {
	padding: clamp(3rem, 6vw, 5rem) 0;
	background: var(--tg-ivory);
}

.tg-gallery__head {
	margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.tg-gallery__title {
	margin: 0 0 0.35rem;
	font-family: var(--tolin-font-serif, Georgia, serif);
	font-size: clamp(2.2rem, 4vw, 3.6rem);
	font-weight: 500;
	color: var(--tg-wine);
}

.tg-gallery__meta {
	margin: 0;
	font-size: 0.95rem;
	color: var(--tg-muted);
}

.tg-grid {
	display: grid;
	gap: 1.15rem;
}

@media (min-width: 900px) {
	.tg-grid:not(.tg-grid--catalog) {
		grid-template-columns: repeat(12, 1fr);
		grid-auto-rows: minmax(180px, auto);
	}

	.tg-grid:not(.tg-grid--catalog) .tg-card--a,
	.tg-grid:not(.tg-grid--catalog) .tg-card--tall {
		grid-column: span 4;
	}

	.tg-grid:not(.tg-grid--catalog) .tg-card--hero {
		grid-column: span 8;
	}

	.tg-grid:not(.tg-grid--catalog) .tg-card--wide {
		grid-column: 1 / -1;
	}
}

.tg-grid--catalog .tg-card--std,
.tg-grid--catalog .tg-card--tall,
.tg-grid--catalog .tg-card--a {
	grid-column: auto;
}

.tg-card {
	border-radius: 26px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 16px 40px rgba(45, 18, 28, 0.08);
	transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
}

.tg-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 24px 52px rgba(45, 18, 28, 0.12);
}

.tg-card.is-deferred,
.tg-card.is-hidden {
	display: none;
}

.tg-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.tg-card__media {
	position: relative;
	display: block;
}

.tg-card__ba .ba-compare__viewport {
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 0;
	min-height: 280px;
	min-width: min(100%, 420px);
}

.tg-card--hero .ba-compare__viewport,
.tg-card--wide .ba-compare__viewport {
	aspect-ratio: 16 / 9;
	min-height: 360px;
}

.tg-card--tall .ba-compare__viewport {
	aspect-ratio: 3 / 4;
	min-height: 420px;
}

.tg-card__overlay {
	position: absolute;
	inset: auto 0 0 0;
	padding: 1.1rem 1.15rem 1.2rem;
	background: linear-gradient(transparent, rgba(30, 12, 18, 0.78));
	color: #fff;
	display: grid;
	gap: 0.2rem;
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.tg-card:hover .tg-card__overlay,
.tg-card:focus-within .tg-card__overlay {
	opacity: 1;
	transform: none;
}

.tg-card__overlay > span:first-child {
	font-size: 0.68rem;
	letter-spacing: 0.16em;
	opacity: 0.75;
}

.tg-card__overlay strong {
	font-family: var(--tolin-font-serif, Georgia, serif);
	font-size: 1.35rem;
	font-weight: 500;
}

.tg-card__overlay em {
	font-style: normal;
	opacity: 0.8;
	font-size: 0.9rem;
}

.tg-card__go {
	margin-top: 0.35rem;
	font-weight: 700;
}

.tg-loadmore {
	display: flex;
	justify-content: center;
	margin-top: 2rem;
}

.tg-loadmore__btn {
	border: 1px solid rgba(92, 36, 56, 0.22);
	background: rgba(255, 252, 250, 0.85);
	color: var(--tg-wine);
	border-radius: 999px;
	padding: 0.85rem 1.6rem;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.tg-loadmore__btn:hover {
	background: var(--tg-wine);
	border-color: var(--tg-wine);
	color: #fff;
}

.tg-loadmore.is-done {
	display: none;
}

/* Cinematic — muted rose */
.tg-cinema {
	padding: clamp(3rem, 7vw, 5rem) 0;
	display: grid;
	justify-items: center;
	gap: 1.5rem;
	background:
		radial-gradient(ellipse 55% 50% at 50% 30%, rgba(232, 208, 214, 0.55), transparent 65%),
		linear-gradient(180deg, #faf4f2, var(--tg-rose));
}

.tg-cinema__frame {
	width: min(70vw, 1100px);
}

.tg-cinema__ba .ba-compare__viewport {
	aspect-ratio: 16 / 10;
	width: 100%;
	min-height: 360px;
	border-radius: 28px;
}

.tg-cinema__quote {
	margin: 0;
	text-align: center;
	font-family: var(--tolin-font-serif, Georgia, serif);
	font-size: clamp(1.8rem, 3.5vw, 3rem);
	line-height: 1.15;
	color: var(--tg-wine);
	max-width: 14ch;
}

/* Explore by treatment */
.tg-cats {
	padding: clamp(3rem, 6vw, 5rem) 0;
	background: var(--tg-ivory-soft);
}

.tg-cats__title {
	margin: 0 0 1.75rem;
	font-family: var(--tolin-font-serif, Georgia, serif);
	font-size: clamp(2.2rem, 4vw, 3.4rem);
	font-weight: 500;
	color: var(--tg-wine);
}

.tg-cats__grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

.tg-cat {
	position: relative;
	isolation: isolate;
	min-height: 220px;
	border: 0;
	padding: 0;
	border-radius: 24px;
	overflow: hidden;
	cursor: pointer;
	text-align: start;
	color: #fff;
	background: var(--tg-burgundy);
	box-shadow: 0 16px 36px rgba(45, 18, 28, 0.1);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.tg-cat:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 48px rgba(45, 18, 28, 0.16);
}

.tg-cat__bg {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(42, 16, 24, 0.15), rgba(42, 16, 24, 0.78)),
		var(--tg-cat-img, none) center / cover no-repeat;
	z-index: 0;
	transform: scale(1.04);
	transition: transform 0.5s ease;
}

.tg-cat:hover .tg-cat__bg {
	transform: scale(1.1);
}

.tg-cat__body {
	position: relative;
	z-index: 1;
	display: grid;
	align-content: end;
	gap: 0.25rem;
	min-height: 220px;
	padding: 1.25rem;
}

.tg-cat__icon {
	font-size: 1.25rem;
	margin-bottom: 0.35rem;
}

.tg-cat strong {
	font-family: var(--tolin-font-serif, Georgia, serif);
	font-size: 1.45rem;
	font-weight: 500;
}

.tg-cat em {
	font-style: normal;
	opacity: 0.8;
	font-size: 0.9rem;
}

.tg-cat__go {
	margin-top: 0.45rem;
	font-weight: 700;
	font-size: 0.9rem;
}

/* Technology */
.tg-tech {
	padding: clamp(3.5rem, 7vw, 5.5rem) 0;
	background: linear-gradient(180deg, var(--tg-ivory), var(--tg-blush));
}

.tg-tech__grid {
	display: grid;
	gap: 2rem;
	align-items: center;
}

@media (min-width: 900px) {
	.tg-tech__grid {
		grid-template-columns: 1fr 0.9fr;
	}
}

.tg-tech__title {
	margin: 0 0 0.85rem;
	font-family: var(--tolin-font-serif, Georgia, serif);
	font-size: clamp(2.2rem, 4vw, 3.6rem);
	color: var(--tg-wine);
	line-height: 1.05;
	font-weight: 500;
}

.tg-tech__name {
	margin: 0 0 0.65rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--tg-dust);
}

.tg-tech__text {
	margin: 0 0 1.1rem;
	max-width: 34rem;
	line-height: 1.7;
	color: var(--tg-muted);
}

.tg-tech__media {
	margin: 0;
	aspect-ratio: 4 / 5;
	border-radius: 32px;
	overflow: hidden;
	box-shadow: 0 28px 60px rgba(45, 18, 28, 0.14);
}

.tg-tech__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Consultation CTA — deep */
.tg-consult {
	position: relative;
	overflow: hidden;
	padding: clamp(4rem, 8vw, 6rem) 0;
	color: #fff;
	background: linear-gradient(145deg, #5c2438 0%, #3a1624 55%, #241018 100%);
}

.tg-consult__wm {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	font-family: var(--tolin-font-serif, Georgia, serif);
	font-size: clamp(5rem, 22vw, 16rem);
	opacity: 0.06;
	pointer-events: none;
	white-space: nowrap;
}

.tg-consult__glow {
	position: absolute;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	inset-inline-end: -80px;
	top: -80px;
	background: rgba(216, 111, 142, 0.22);
	filter: blur(30px);
	pointer-events: none;
}

.tg-consult__grid {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 2rem;
	align-items: center;
}

@media (min-width: 900px) {
	.tg-consult__grid {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	}
}

.tg-consult__title {
	margin: 0 0 0.85rem;
	font-family: var(--tolin-font-serif, Georgia, serif);
	font-size: clamp(2.4rem, 5vw, 4.4rem);
	line-height: 1.05;
	font-weight: 500;
}

.tg-consult__text {
	margin: 0 0 1.5rem;
	opacity: 0.85;
	font-size: 1.1rem;
	line-height: 1.65;
	max-width: 36rem;
}

.tg-consult__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	align-items: center;
}

.tg-consult__photo {
	margin: 0;
	aspect-ratio: 3 / 4;
	max-width: 360px;
	margin-inline: auto;
	border-radius: 28px;
	overflow: hidden;
	box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
	opacity: 0.88;
}

.tg-consult__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tg-bridge {
	height: 56px;
	background: linear-gradient(180deg, #241018 0%, var(--tolin-ivory-deep, #f4f1ee) 100%);
	border-radius: 40px 40px 0 0;
	margin-bottom: -1px;
}

/* One-result: tighten empty feel */
.tg--one .tg-marquee,
.tg--one .tg-gallery,
.tg--one .tg-cinema,
.tg--one .tg-cats,
.tg--one .tg-filters-wrap {
	display: none;
}

.tg--one .tg-featured--solo {
	padding-block: clamp(2.5rem, 5vw, 4rem);
}

/* ========== Single case page ========== */
.tg--case {
	background: var(--tg-ivory);
}

.tg-case-hero {
	position: relative;
	padding: clamp(5.5rem, 10vw, 7.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
	background:
		radial-gradient(ellipse 48% 50% at 14% 28%, rgba(243, 196, 206, 0.38), transparent 60%),
		linear-gradient(180deg, var(--tg-ivory-soft), var(--tg-ivory));
	overflow: hidden;
}

.tg-case-hero__wm {
	position: absolute;
	inset-inline-end: 4%;
	top: 14%;
	font-family: var(--tolin-font-serif, Georgia, serif);
	font-size: clamp(5rem, 16vw, 12rem);
	line-height: 0.8;
	color: var(--tg-wine);
	opacity: 0.045;
	pointer-events: none;
}

.tg-case-hero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	gap: clamp(1.75rem, 3.5vw, 3rem);
	align-items: center;
}

@media (min-width: 980px) {
	.tg-case-hero__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

.tg-case-hero__title {
	margin: 0 0 1rem;
	font-family: var(--tolin-font-serif, Georgia, serif);
	font-size: clamp(2.6rem, 5vw, 4.6rem);
	line-height: 1.02;
	font-weight: 500;
	color: var(--tg-wine);
}

.tg-case-hero__lede {
	margin: 0 0 1.35rem;
	max-width: 34rem;
	font-size: 1.08rem;
	line-height: 1.7;
	color: var(--tg-muted);
}

.tg-case-hero__stage {
	position: relative;
	justify-self: stretch;
}

.tg-case__ba .ba-compare__viewport {
	width: clamp(600px, 55vw, 900px);
	max-width: 100%;
	margin-inline: auto;
	aspect-ratio: 4 / 3;
	border-radius: 28px;
}

.tg-case__disclaimer {
	margin: 0.75rem 0 0;
	text-align: center;
	font-size: 0.78rem;
	color: var(--tg-muted);
	opacity: 0.85;
}

.tg-case-meta {
	padding: 1.25rem 0;
	background: var(--tg-blush);
	border-block: 1px solid rgba(92, 36, 56, 0.08);
}

.tg-case-meta__row {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.tg-case-meta__row div {
	display: grid;
	gap: 0.25rem;
}

.tg-case-meta__row span {
	font-size: 0.68rem;
	letter-spacing: 0.16em;
	font-weight: 700;
	color: var(--tg-dust);
}

.tg-case-meta__row strong {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--tg-wine);
}

.tg-case-story {
	padding: clamp(3rem, 6vw, 4.5rem) 0;
	background: var(--tg-ivory-soft);
}

.tg-case-story__inner {
	max-width: 42rem;
}

.tg-case-story__title {
	margin: 0 0 1rem;
	font-family: var(--tolin-font-serif, Georgia, serif);
	font-size: clamp(2rem, 3.5vw, 3rem);
	font-weight: 500;
	color: var(--tg-wine);
}

.tg-case-story__body {
	margin: 0 0 1.5rem;
	font-size: 1.08rem;
	line-height: 1.75;
	color: var(--tg-muted);
}

.tg-case-story__body p {
	margin: 0 0 1rem;
}

.tg-case-story__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
}

.tg-related {
	padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.tg-related--treatment {
	background: var(--tg-ivory);
}

.tg-related--device {
	background: linear-gradient(180deg, var(--tg-ivory), var(--tg-blush));
}

.tg-related__grid {
	display: grid;
	gap: 2rem;
	align-items: center;
}

@media (min-width: 900px) {
	.tg-related__grid {
		grid-template-columns: 0.95fr 1.05fr;
	}

	.tg-related__grid--flip {
		grid-template-columns: 1.05fr 0.95fr;
	}
}

.tg-related__media {
	margin: 0;
	aspect-ratio: 4 / 5;
	border-radius: 28px;
	overflow: hidden;
	box-shadow: 0 24px 52px rgba(45, 18, 28, 0.12);
}

.tg-related__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tg-related__title {
	margin: 0 0 0.75rem;
	font-family: var(--tolin-font-serif, Georgia, serif);
	font-size: clamp(2rem, 3.5vw, 3.2rem);
	font-weight: 500;
	color: var(--tg-wine);
	line-height: 1.05;
}

.tg-related__name {
	margin: 0 0 0.65rem;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--tg-dust);
}

.tg-related__text {
	margin: 0 0 1.1rem;
	max-width: 34rem;
	line-height: 1.7;
	color: var(--tg-muted);
}

.tg-more {
	padding: clamp(3rem, 6vw, 4.5rem) 0;
	background: var(--tg-ivory-soft);
}

.tg-more__title {
	margin: 0 0 1.75rem;
	font-family: var(--tolin-font-serif, Georgia, serif);
	font-size: clamp(2rem, 3.5vw, 3.2rem);
	font-weight: 500;
	color: var(--tg-wine);
}

.tg-more__grid {
	display: grid;
	gap: 1.15rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.tg-more__card {
	display: grid;
	gap: 0.85rem;
	color: inherit;
	text-decoration: none;
	transition: transform 0.3s ease;
}

.tg-more__card:hover {
	transform: translateY(-4px);
}

.tg-more__media {
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 14px 36px rgba(45, 18, 28, 0.1);
}

.tg-more__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tg-more__body {
	display: grid;
	gap: 0.2rem;
}

.tg-more__body > span:first-child {
	font-size: 0.68rem;
	letter-spacing: 0.16em;
	font-weight: 700;
	color: var(--tg-dust);
}

.tg-more__body strong {
	font-family: var(--tolin-font-serif, Georgia, serif);
	font-size: 1.25rem;
	font-weight: 500;
	color: var(--tg-wine);
}

.tg-more__body em {
	font-style: normal;
	color: var(--tg-muted);
	font-size: 0.95rem;
}

/* ========== Catalog mode (full gallery) ========== */
.tg-hero--compact {
	min-height: 0;
	padding: clamp(5rem, 8vw, 6.25rem) 0 clamp(2rem, 4vw, 2.75rem);
}

@media (min-width: 980px) {
	.tg-hero--compact {
		min-height: min(66vh, 720px);
	}

	.tg-hero--compact .tg-hero__ba .ba-compare__viewport {
		width: min(640px, 46vw);
		max-height: min(52vh, 480px);
	}

	.tg-hero--compact .tg-hero__title {
		font-size: clamp(2.6rem, 4.8vw, 4.6rem);
	}
}

.tg-cat-banner {
	display: none;
	padding: 1.25rem 0 0.25rem;
}

.tg-cat-banner.is-on {
	display: block;
}

.tg-cat-banner__title {
	margin: 0 0 0.35rem;
	font-family: var(--tolin-font-serif, Georgia, serif);
	font-size: clamp(1.8rem, 3vw, 2.6rem);
	color: var(--tg-wine);
	font-weight: 500;
}

.tg-cat-banner__desc {
	margin: 0;
	color: var(--tg-muted);
	max-width: 36rem;
}

.tg-feat-strip {
	padding: clamp(2.5rem, 5vw, 3.75rem) 0;
	background: linear-gradient(180deg, var(--tg-ivory), #f3e8eb);
}

.tg-feat-strip__title {
	margin: 0 0 1.5rem;
	font-family: var(--tolin-font-serif, Georgia, serif);
	font-size: clamp(1.8rem, 3vw, 2.8rem);
	color: var(--tg-wine);
	font-weight: 500;
}

.tg-feat-strip__row {
	display: grid;
	gap: 1.15rem;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.tg-feat-strip__row .tg-pcard.is-hidden {
	display: none;
}

@media (min-width: 900px) {
	.tg-feat-strip__row {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	}
}

.tg-feat-card {
	border-radius: 26px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 16px 40px rgba(45, 18, 28, 0.08);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.tg-feat-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 24px 52px rgba(45, 18, 28, 0.12);
}

.tg-feat-card__link {
	display: grid;
	color: inherit;
	text-decoration: none;
}

.tg-feat-card__ba .ba-compare__viewport {
	aspect-ratio: 4 / 3;
	min-height: 280px;
	border-radius: 0;
	width: 100%;
}

.tg-feat-card__body {
	display: grid;
	gap: 0.25rem;
	padding: 1rem 1.15rem 1.25rem;
}

.tg-feat-card__body > span:first-child {
	font-size: 0.68rem;
	letter-spacing: 0.16em;
	font-weight: 700;
	color: var(--tg-dust);
}

.tg-feat-card__body strong {
	font-family: var(--tolin-font-serif, Georgia, serif);
	font-size: 1.35rem;
	color: var(--tg-wine);
}

.tg-feat-card__body em {
	font-style: normal;
	color: var(--tg-muted);
	font-size: 0.92rem;
}

.tg-feat-card__go {
	margin-top: 0.35rem;
	font-weight: 700;
	color: var(--tg-wine);
}

.tg-gallery--plain {
	padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.tg-gallery--plain .tg-grid--catalog {
	justify-items: center;
}

.tg-gallery--plain .tg-pcard--single {
	width: min(100%, 320px);
}

@media (min-width: 700px) {
	.tg-gallery--plain .tg-grid--catalog {
		justify-content: center;
	}
}

.tg-gallery--catalog {
	padding: clamp(2.75rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem);
	background:
		radial-gradient(ellipse 50% 40% at 80% 0%, rgba(243, 196, 206, 0.22), transparent 55%),
		var(--tg-ivory);
}

.tg-grid--catalog {
	display: grid;
	gap: 1.35rem;
	grid-template-columns: 1fr;
}

@media (min-width: 700px) {
	.tg-grid--catalog {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.tg-grid--catalog {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tg-grid--catalog .tg-card--wide,
	.tg-grid--catalog .tg-card--spotlight {
		grid-column: 1 / -1;
	}

	.tg-grid--catalog .tg-card--tall {
		grid-row: span 1;
	}
}

.tg-grid--catalog .tg-card__ba .ba-compare__viewport,
.tg-grid--catalog .tg-card__preview {
	min-height: 300px;
	aspect-ratio: 4 / 3;
	width: 100%;
}

@media (min-width: 1100px) {
	.tg-grid--catalog .tg-card__ba .ba-compare__viewport,
	.tg-grid--catalog .tg-card__preview {
		min-height: 340px;
	}
}

.tg-card__num {
	position: absolute;
	z-index: 4;
	inset-inline-start: 14px;
	top: 14px;
	font-size: 0.7rem;
	letter-spacing: 0.18em;
	font-weight: 700;
	color: #fff;
	background: rgba(20, 10, 14, 0.4);
	backdrop-filter: blur(6px);
	padding: 0.25rem 0.55rem;
	border-radius: 999px;
}

.tg-card {
	position: relative;
}

.tg-card__meta {
	display: grid;
	gap: 0.2rem;
	padding: 0.95rem 0.15rem 0.25rem;
}

.tg-card__meta strong {
	font-family: var(--tolin-font-serif, Georgia, serif);
	font-size: 1.2rem;
	color: var(--tg-wine);
	font-weight: 500;
}

.tg-card__meta em {
	font-style: normal;
	font-size: 0.9rem;
	color: var(--tg-muted);
}

.tg-card__preview {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 0;
	background: #1a1216;
}

.tg-card__preview-after {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	min-height: 300px;
	transition: transform 0.5s ease;
}

.tg-card:hover .tg-card__preview-after {
	transform: scale(1.02);
}

.tg-card__preview-before {
	position: absolute;
	inset: 0 auto 0 0;
	width: 48%;
	background-size: cover;
	border-inline-end: 2px solid rgba(255, 255, 255, 0.85);
	pointer-events: none;
}

[dir="rtl"] .tg-card__preview-before {
	inset: 0 0 0 auto;
}

.tg-card__preview-labels {
	position: absolute;
	inset-inline: 12px;
	bottom: 12px;
	display: flex;
	justify-content: space-between;
	pointer-events: none;
}

.tg-card__preview-labels span {
	padding: 0.25rem 0.55rem;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 0.65rem;
	letter-spacing: 0.12em;
}

.tg-card--spotlight {
	background: linear-gradient(165deg, #5c2438 0%, #3a1624 100%);
	padding: 1.25rem;
	border-radius: 28px;
}

.tg-card--spotlight .tg-card__kicker {
	display: block;
	margin-bottom: 0.75rem;
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	font-weight: 700;
	color: rgba(255, 244, 246, 0.7);
}

.tg-card--spotlight .tg-card__ba .ba-compare__viewport {
	aspect-ratio: 16 / 9;
	min-height: 380px;
	border-radius: 18px;
}

.tg-card--spotlight .tg-card__meta {
	display: none;
}

.tg-empty-filter {
	margin: 2rem 0 0;
	text-align: center;
	color: var(--tg-muted);
}

.tg-empty-filter[hidden] {
	display: none !important;
}

.tg-loadmore__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-inline: auto;
	padding: 1rem 1.75rem;
	border-radius: 999px;
	border: 1px solid rgba(92, 36, 56, 0.22);
	background: rgba(255, 252, 250, 0.85);
	color: var(--tg-wine);
	font-weight: 700;
	cursor: pointer;
	transition: background 0.3s ease, color 0.3s ease;
}

.tg-loadmore {
	display: flex;
	justify-content: center;
	margin-top: 2rem;
}

.tg-loadmore.is-done {
	display: none;
}

.tg-loadmore__btn:hover {
	background: var(--tg-wine);
	color: #fff;
}

/* ========== Mobile compositions ========== */
@media (max-width: 720px) {
	.tx {
		min-height: 0;
		padding: clamp(4.5rem, 12vw, 5.5rem) 0 2.75rem;
	}

	.tx__shell,
	.tg {
		--tg-shell: min(100% - 1.35rem, 1520px);
	}

	.tx__shell {
		width: min(100% - 1.35rem, 1520px);
	}

	.tx__compare .ba-compare__viewport,
	.tx[data-tx-count="1"] .tx__compare .ba-compare__viewport {
		width: calc(100vw - 2rem);
		max-height: none;
		aspect-ratio: 4 / 5;
	}

	.tx__thumbs {
		justify-content: flex-start;
	}

	.tg-hero {
		padding-top: clamp(4.75rem, 14vw, 6rem);
	}

	.tg-hero__title {
		font-size: clamp(2.6rem, 11vw, 3.4rem);
	}

	.tg-hero__stage {
		justify-self: stretch;
	}

	.tg-hero__ba .ba-compare__viewport {
		width: calc(100vw - 2rem);
		aspect-ratio: 4 / 5;
	}

	.tg-filters-wrap {
		top: calc(var(--tolin-header-h, 72px) + 8px);
	}

	.tg-featured__layout {
		grid-template-columns: 1fr;
	}

	.tg-featured__ba .ba-compare__viewport {
		aspect-ratio: 3 / 4;
	}

	.tg-card__ba .ba-compare__viewport,
	.tg-card--hero .ba-compare__viewport,
	.tg-card--wide .ba-compare__viewport,
	.tg-card--tall .ba-compare__viewport {
		width: 100%;
		min-width: 0;
		min-height: 260px;
		aspect-ratio: 3 / 4;
	}

	.tg-card__overlay {
		opacity: 0.95;
		transform: none;
	}

	.tg-cinema__frame {
		width: calc(100vw - 2rem);
	}

	.tg-cinema__ba .ba-compare__viewport {
		aspect-ratio: 3 / 4;
		min-height: 280px;
	}

	.tg-consult__photo {
		display: none;
	}

	.tg-case-hero__title {
		font-size: clamp(2.4rem, 10vw, 3.2rem);
	}

	.tg-case__ba .ba-compare__viewport {
		width: calc(100vw - 2rem);
		aspect-ratio: 3 / 4;
	}

	.tg-related__grid,
	.tg-related__grid--flip {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tg-marquee__track,
	.ba-compare__knob.is-pulse {
		animation: none !important;
	}

	[data-tx-reveal],
	[data-tg-reveal],
	[data-vg-tile],
	[data-tx-mask],
	[data-tg-mask] {
		opacity: 1 !important;
		transform: none !important;
		clip-path: none !important;
		transition: none !important;
	}
}

/* ========== v6.5 — Portfolio catalog (service filters + classy cards) ========== */
.tg--portfolio .tg-shell {
	max-width: 1480px;
}

.tg-filters-wrap--services {
	background: transparent;
	border-bottom: none;
	padding: 1rem 0 0.35rem;
	position: sticky;
	top: calc(var(--tolin-header-h, 72px) + 8px);
	z-index: 30;
}

.tg-filters--pills {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.4rem;
	justify-content: flex-start;
	overflow-x: auto;
	padding: 0.25rem 0.15rem 0.55rem;
	margin: 0 auto;
	max-width: 100%;
	border-radius: 0;
	background: transparent;
	border: none;
	box-shadow: none;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.tg-filters--pills::-webkit-scrollbar {
	display: none;
}

.tg-filters--pills .tg-chip {
	padding: 0.62rem 1.15rem;
	border: 1px solid rgba(168, 95, 114, 0.28);
	background: transparent;
	color: var(--tg-wine);
	font-size: 0.88rem;
	font-weight: 600;
}

.tg-filters--pills .tg-chip:hover {
	background: rgba(243, 196, 206, 0.28);
	color: var(--tg-wine);
}

.tg-filters--pills .tg-chip.is-active,
.tg-filters--pills .tg-chip.is-active:hover {
	background: var(--tg-wine, #5c2438);
	border-color: var(--tg-wine, #5c2438);
	color: #fffaf7;
}

.tg-filters--pills .tg-chip.is-active em {
	opacity: 0.85;
	color: inherit;
}

.tg-grid--portfolio {
	display: grid;
	gap: clamp(1.25rem, 2vw, 1.75rem);
	grid-template-columns: 1fr;
}

@media (min-width: 700px) {
	.tg-grid--portfolio {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.tg-grid--portfolio {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.tg-pcard {
	border-radius: 24px;
	background: #fffcfa;
	border: 1px solid rgba(196, 154, 164, 0.28);
	box-shadow: 0 8px 24px rgba(45, 18, 28, 0.045);
	overflow: hidden;
	transition: box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.tg-pcard[data-tg-reveal] {
	opacity: 0;
	transform: translateY(24px);
}

.tg-pcard.is-in,
.tg-pcard.is-visible {
	opacity: 1;
	transform: none;
}

.tg-pcard.is-deferred,
.tg-pcard.is-hidden {
	display: none;
}

.tg-pcard:hover {
	box-shadow: 0 14px 34px rgba(45, 18, 28, 0.09);
	border-color: rgba(168, 95, 114, 0.35);
}

.tg-pcard__link {
	display: grid;
	color: inherit;
	text-decoration: none;
}

.tg-pcard__media {
	display: block;
	overflow: hidden;
	background: #f4ebe8;
}

.tg-pcard__preview {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
}

.tg-pcard__img--after {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.tg-pcard:hover .tg-pcard__img--after {
	transform: scale(1.015);
}

.tg-pcard__img--before {
	position: absolute;
	inset: 0 auto 0 0;
	width: 50%;
	background-size: cover;
	background-repeat: no-repeat;
	pointer-events: none;
}

[dir="rtl"] .tg-pcard__img--before {
	inset: 0 0 0 auto;
}

.tg-pcard__divider {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 50%;
	width: 1px;
	background: rgba(255, 255, 255, 0.9);
	transform: translateX(-50%);
	pointer-events: none;
	z-index: 2;
}

[dir="rtl"] .tg-pcard__divider {
	transform: translateX(50%);
}

.tg-pcard__pills {
	position: absolute;
	inset-inline: 10px;
	top: 10px;
	display: flex;
	justify-content: space-between;
	pointer-events: none;
	z-index: 3;
}

.tg-pcard__pills span {
	padding: 0.22rem 0.55rem;
	border-radius: 999px;
	background: rgba(255, 252, 250, 0.82);
	border: 1px solid rgba(168, 95, 114, 0.16);
	color: #5c2438;
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.tg-pcard__body {
	display: grid;
	gap: 0.28rem;
	padding: 1rem 1.1rem 1.2rem;
	background: linear-gradient(180deg, #fffcfa 0%, #faf4f1 100%);
}

.tg-pcard__kicker {
	font-size: 0.68rem;
	letter-spacing: 0.14em;
	font-weight: 700;
	color: rgba(92, 36, 56, 0.45);
}

.tg-pcard__title {
	font-family: var(--tolin-font-serif, Georgia, serif);
	font-size: 1.2rem;
	font-weight: 500;
	color: var(--tg-wine);
	line-height: 1.25;
}

.tg-pcard__service {
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--tg-dust, #a85f72);
	transition: color 0.3s ease;
}

.tg-pcard:hover .tg-pcard__service {
	color: var(--tg-wine);
}

.tg-pcard__meta {
	font-size: 0.86rem;
	color: var(--tg-muted);
}

.tg-pcard__desc {
	font-size: 0.88rem;
	color: var(--tg-muted);
	line-height: 1.45;
	margin-top: 0.15rem;
}

.tg-pcard__go {
	margin-top: 0.45rem;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--tg-wine);
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.tg-pcard__go i {
	display: inline-block;
	transition: transform 0.35s ease;
	font-style: normal;
}

.tg-pcard:hover .tg-pcard__go i {
	transform: translateX(4px);
}

[dir="rtl"] .tg-pcard:hover .tg-pcard__go i {
	transform: translateX(-4px);
}

.tg-pcard--featured {
	grid-column: 1 / -1;
}

@media (min-width: 1100px) {
	.tg-pcard--featured {
		grid-column: span 2;
	}

	.tg-pcard--featured .tg-pcard__preview {
		aspect-ratio: 4 / 3;
	}

	.tg-pcard--featured .tg-pcard__title {
		font-size: 1.55rem;
	}
}

.tg-feat-card__body .tg-svc {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--tg-dust, #a85f72);
}

.tg-feat-card {
	border-radius: 24px;
	border: 1px solid rgba(196, 154, 164, 0.28);
	box-shadow: 0 8px 24px rgba(45, 18, 28, 0.045);
}

.tg-feat-card:hover {
	transform: none;
	box-shadow: 0 14px 34px rgba(45, 18, 28, 0.09);
}

.tg-feat-card__ba .ba-compare__viewport {
	aspect-ratio: 4 / 3;
	min-height: 0;
	border-radius: 0;
}

.tg-cats--services {
	padding: clamp(3.5rem, 7vw, 5.5rem) 0;
	background:
		radial-gradient(ellipse 45% 50% at 10% 20%, rgba(243, 196, 206, 0.2), transparent 55%),
		linear-gradient(180deg, #f8f3ef, #f3e8eb);
}

.tg-cat--service {
	text-decoration: none;
	color: inherit;
	min-height: 240px;
}

.tg-cat__desc {
	display: block;
	font-size: 0.88rem;
	opacity: 0.78;
	max-width: 18rem;
	line-height: 1.45;
}

.tg-consult {
	padding: clamp(4rem, 8vw, 6.5rem) 0;
}

@media (max-width: 699px) {
	.tg-pcard__preview {
		aspect-ratio: 4 / 5;
	}

	.tg-pcard__body {
		padding: 1rem 0.95rem 1.15rem;
	}

	.tg-filters-wrap--services {
		padding-inline: 0;
	}
}

.tg-hero--copy-only .tg-hero__copy--full {
	max-width: 42rem;
}

.tg-hero--copy-only .tg-hero__grid {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 980px) {
	.tg-hero--copy-only {
		min-height: 0;
	}
}

.tg-pcard--single {
	margin: 0;
	overflow: hidden;
	border-radius: 1.1rem;
	background: #fff;
	border: 1px solid rgba(237, 230, 232, 0.95);
	box-shadow: 0 10px 28px rgba(123, 63, 89, 0.07);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.tg-pcard--single:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 36px rgba(123, 63, 89, 0.11);
}

.tg-pcard__link--image {
	display: block;
	color: inherit;
	text-decoration: none;
}

.tg-pcard__media--single {
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: #f4ebe8;
}

.tg-pcard--single .tg-pcard__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.tg-pcard--single:hover .tg-pcard__img {
	transform: scale(1.02);
}

.tg-grid--catalog .tg-pcard--single {
	height: 100%;
}

.tg-feat-strip__row .tg-feat-card__shot {
	width: 100%;
	max-width: none;
}

.service-results__grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

@media (max-width: 640px) {
	body.home .mx-about__catalog-results {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
