/* Built with Foxdusk by Trulab Production — https://trulabstudio.com */
/* TransAsia Panel — front-end styles for list widgets, carousel, WhatsApp button. */
:root {
	--tap-primary: var(--tc-primary, #7a1f5f);
	--tap-heading: var(--tc-heading, #242424);
	--tap-text: var(--tc-text, #767676);
	--tap-radius: 8px;
	--tap-font-heading: var(--tc-font-heading, "Jost", Arial, sans-serif);
	--tap-font-body: var(--tc-font-body, "Lato", Arial, sans-serif);
}

/* ---------- Carousel + banner cards ---------- */
.tap-carousel { position: relative; --tap-per: var(--tap-per-d, 3); --tap-gap: 24px; }
@media (max-width: 1024px) { .tap-carousel { --tap-per: var(--tap-per-t, 2); } }
@media (max-width: 767px) { .tap-carousel { --tap-per: var(--tap-per-m, 1); --tap-gap: 14px; } }
.tap-carousel__track {
	display: flex; gap: var(--tap-gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; overscroll-behavior-x: contain; padding: 6px 4px 14px; margin: -6px -4px -4px;
}
.tap-carousel__track::-webkit-scrollbar { display: none; }
.tap-carousel__slide { flex: 0 0 calc((100% - (var(--tap-per) - 1) * var(--tap-gap)) / var(--tap-per)); scroll-snap-align: start; min-width: 0; }
@media (max-width: 767px) { .tap-carousel__slide { flex-basis: 84%; } } /* next card peeks in: shows it can be swiped */

.tap-banner { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 14px; background: #2a0b21; isolation: isolate; }
.tap-carousel .tap-banner img {
	position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover;
	border-radius: 0; transition: transform .6s cubic-bezier(.2, .8, .2, 1); z-index: -2;
}
.tap-banner::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(to top, rgba(26, 6, 20, .92) 0%, rgba(26, 6, 20, .55) 38%, rgba(26, 6, 20, 0) 68%);
	transition: opacity .3s;
}
.tap-banner:hover img, .tap-banner:focus-visible img { transform: scale(1.05); }
.tap-banner__content {
	position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
	padding: 24px 24px 22px;
}
.tap-banner__title {
	margin: 0; font: 600 20px/1.3 var(--tap-font-heading); color: #fff;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tap-banner__sub {
	margin: 0; font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, .8);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tap-banner__btn {
	display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding-bottom: 2px;
	font: 700 12px/1.2 var(--tap-font-body); letter-spacing: .12em; text-transform: uppercase; color: #fff;
	border-bottom: 1px solid rgba(255, 255, 255, .5); transition: gap .25s, border-color .25s;
}
.tap-banner__btn svg { width: 15px; height: 15px; }
.tap-banner:hover .tap-banner__btn, .tap-banner:focus-visible .tap-banner__btn { gap: 10px; border-color: #fff; color: #fff; }
.tap-banner:focus-visible { outline: 3px solid var(--tap-primary); outline-offset: 3px; }

/* Navigation: arrows + "01 / 16" + progress bar */
.tap-carousel__nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.tap-carousel__nav[hidden] { display: none; }
.tap-carousel__arrow {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; flex: none;
	border: 1px solid rgba(36, 36, 36, .15); border-radius: 50%; background: #fff; color: var(--tap-heading); cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, opacity .2s;
}
.tap-carousel__arrow svg { width: 20px; height: 20px; }
.tap-carousel__arrow:hover:not(:disabled) { background: var(--tap-primary); border-color: var(--tap-primary); color: #fff; }
.tap-carousel__arrow:disabled { opacity: .35; cursor: default; }
.tap-carousel__arrow:focus-visible { outline: 3px solid var(--tap-primary); outline-offset: 2px; }
.tap-carousel__status { display: flex; align-items: center; gap: 14px; }
.tap-carousel__count { min-width: 64px; font: 600 14px/1 var(--tap-font-heading); letter-spacing: .06em; color: var(--tap-heading); text-align: center; font-variant-numeric: tabular-nums; }
.tap-carousel__bar { position: relative; width: 160px; height: 3px; border-radius: 3px; background: rgba(36, 36, 36, .12); overflow: hidden; }
.tap-carousel__bar span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: var(--tap-primary); transition: width .35s ease; }
@media (max-width: 767px) {
	.tap-banner__content { padding: 20px 20px 18px; }
	.tap-banner__title { font-size: 18px; }
	.tap-carousel__bar { width: 90px; }
	.tap-carousel__nav { gap: 12px; margin-top: 16px; }
}

/* ---------- Generic cards widget (tc_cards) ---------- */
.tc-cards { display: grid; gap: var(--tc-cards-gap, 20px); grid-template-columns: repeat(var(--tc-cols, 3), minmax(0, 1fr)); }
.tc-cards--centered { display: flex; flex-wrap: wrap; justify-content: center; }
.tc-cards--centered .tc-card { flex: 0 1 calc((100% - (var(--tc-cols, 3) - 1) * var(--tc-cards-gap, 20px)) / var(--tc-cols, 3)); }
.tc-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 15px; }
.tc-cards--boxed .tc-card { justify-content: center; padding: 30px; background: #fff; border-radius: var(--tap-radius); box-shadow: 0 0 5px rgba(0, 0, 0, .1); }
.tc-card__image img { display: block; width: var(--tc-img, 100px); height: var(--tc-img, 100px); object-fit: cover; border-radius: 50%; }
.tc-card__name { font: 600 16px/1.6 var(--tap-font-body); color: var(--tap-heading); }
.tc-card__role { font-size: 14px; }
.tc-card__text p { margin: 0; }
.tc-cards--large .tc-card__text, .tc-cards--large .tc-card__name { font-size: 18px; }

/* ---------- Services: icon cards, grouped ---------- */
.tap-service-groups { display: flex; flex-direction: column; gap: 48px; }
.tap-service-group__title { display: flex; align-items: center; gap: 18px; margin: 0 0 22px; font: 600 20px/1.3 var(--tap-font-heading); color: var(--tap-heading); }
.tap-service-group__title::before, .tap-service-group__title::after { content: ""; flex: 1; height: 1px; background: rgba(36, 36, 36, .12); }
.tap-services { --tap-sg: 20px; --tap-n: var(--tap-cols, 6); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--tap-sg); }
.tap-services > .tap-service { flex: 0 0 calc((100% - (var(--tap-n) - 1) * var(--tap-sg)) / var(--tap-n)); min-width: 0; }
.tap-services--rich { --tap-n: 4; }
@media (max-width: 1024px) { .tap-services { --tap-n: var(--tap-cols-t, 3); } .tap-services--rich { --tap-n: 2; } }
@media (max-width: 767px) { .tap-services { --tap-n: var(--tap-cols-m, 2); --tap-sg: 12px; } .tap-services--rich { --tap-n: 1; } .tap-service-group__title { font-size: 17px; gap: 12px; } }
.tap-services--rich .tap-service { padding: 30px 22px 26px; }
.tap-services--rich .tap-service__name { font-size: 16.5px; }
.tap-services--rich .tap-service__desc { margin-top: -4px; font-size: 14px; line-height: 1.6; }
.tap-service {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
	padding: 28px 16px 24px; background: #fff; border-radius: 14px; border: 1px solid rgba(36, 36, 36, .06);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .04); overflow: hidden;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.tap-service::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--tap-primary);
	transform: scaleX(0); transform-origin: center; transition: transform .35s ease;
}
.tap-service:hover { transform: translateY(-5px); border-color: rgba(122, 31, 95, .15); box-shadow: 0 14px 30px rgba(122, 31, 95, .12); }
.tap-service:hover::before { transform: scaleX(1); }
.tap-service__icon {
	display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 14px;
	background: rgba(122, 31, 95, .08); color: var(--tap-primary); transition: background-color .3s, color .3s, transform .3s;
}
.tap-service__icon svg { width: 26px; height: 26px; }
.tap-service:hover .tap-service__icon { background: var(--tap-primary); color: #fff; transform: scale(1.05); }
.tap-service__name { margin: 0; font: 600 15px/1.4 var(--tap-font-heading); color: var(--tap-heading); }
.tap-service__desc { margin: -6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--tap-text); }
@media (max-width: 767px) {
	.tap-service { padding: 20px 10px 18px; gap: 10px; }
	.tap-service__icon { width: 48px; height: 48px; border-radius: 12px; }
	.tap-service__icon svg { width: 22px; height: 22px; }
	.tap-service__name { font-size: 13.5px; }
}

/* ---------- Projects list ---------- */
.tap-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 36px; }
.tap-filter button {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid rgba(36, 36, 36, .12); border-radius: 99px;
	background: #fff; color: var(--tap-heading); font: 600 13.5px/1 var(--tap-font-body, inherit); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.tap-filter button span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: #f3edf1; color: var(--tap-primary); font-size: 11.5px; }
.tap-filter button:hover { border-color: var(--tap-primary); color: var(--tap-primary); }
.tap-filter button.is-active { background: var(--tap-primary); border-color: var(--tap-primary); color: #fff; }
.tap-filter button.is-active span { background: rgba(255, 255, 255, .2); color: #fff; }
.tap-projects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 22px; row-gap: 26px; }
@media (max-width: 1180px) { .tap-projects { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .tap-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* every card = 6 rows lined up across the row (subgrid) */
.tap-projects .tap-project { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; }
.tap-projects .tap-project__body { display: contents; }
.tap-projects .tap-project__body > * { margin: 0; padding-left: 20px; padding-right: 20px; }
.tap-projects .tap-project__title { padding-top: 20px; padding-bottom: 10px; }
.tap-projects .tap-project__address { padding-bottom: 12px; min-height: 0; }
.tap-projects .tap-project__facts { padding-bottom: 12px; align-content: start; }
.tap-projects .tap-project__summary { margin-bottom: 14px; }
.tap-projects .tap-project__more { margin: 0 20px 18px; padding: 0; }
@media (max-width: 767px) { .tap-projects { grid-template-columns: 1fr; gap: 18px; } }
.tap-project {
	display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: 18px; border: 1px solid rgba(36, 36, 36, .06);
	box-shadow: 0 6px 24px rgba(42, 11, 33, .06); transition: transform .35s, box-shadow .35s; scroll-margin-top: 120px;
}
.tap-project:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(42, 11, 33, .14); }
.tap-project[hidden] { display: none; }
.tap-project__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: linear-gradient(135deg, #3a1030, #7a1f5f); }
.tap-project__media img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; border-radius: 0; transition: transform .6s ease; }
.tap-project:hover .tap-project__media img { transform: scale(1.06); }
.tap-project__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 5, 16, .35) 0%, transparent 35%, transparent 70%, rgba(20, 5, 16, .25) 100%); pointer-events: none; }
.tap-project__noimg { position: absolute; inset: 0; display: grid; place-items: center; }
.tap-project__noimg svg { width: 46px; height: 46px; fill: rgba(255, 255, 255, .35); }
.tap-project__tag {
	position: absolute; z-index: 1; left: 16px; top: 16px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .95); color: var(--tap-primary);
	font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.tap-project__num { position: absolute; z-index: 1; right: 16px; top: 12px; font: 700 26px/1 var(--tap-font-heading); color: rgba(255, 255, 255, .9); text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.tap-project__body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 20px; }
.tap-project__address { min-height: 40px; }
.tap-project__title { margin: 0; font: 600 17px/1.35 var(--tap-font-heading); color: var(--tap-heading); }
.tap-project__address { display: grid; grid-template-columns: 16px 1fr; gap: 8px; margin: 0; font-size: 13.5px; line-height: 1.5; color: #77717c; }
.tap-project__address svg { width: 16px; height: 16px; margin-top: 1px; fill: var(--tap-primary); }
.tap-project__facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tap-project__facts li { margin: 0; padding: 5px 10px; border-radius: 8px; background: #f6f1f4; color: #5a2a4c; font-size: 12.5px; font-weight: 600; }
.tap-project__summary { margin: 0; font-size: 14px; line-height: 1.6; color: #5d5862; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tap-project__more { margin-top: auto; border-top: 1px solid rgba(36, 36, 36, .08); }
.tap-project__more summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 0; list-style: none; cursor: pointer; color: var(--tap-primary); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tap-project__more summary::-webkit-details-marker { display: none; }
.tap-project__more summary::after { content: "+"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #f3edf1; font-size: 17px; line-height: 1; transition: transform .25s; }
.tap-project__more[open] summary::after { transform: rotate(45deg); }
.tap-project__details { padding-top: 12px; font-size: 13.5px; line-height: 1.6; color: #5d5862; }
.tap-project__details p { margin: 0 0 8px; }
.tap-project__details ul, .tap-project__details ol { margin: 0 0 8px; padding: 0; list-style: none; }
.tap-project__details li { position: relative; margin: 0 0 6px; padding-left: 18px; }
.tap-project__details li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--tap-primary); }
.tap-project__details li li::before { background: transparent; border: 1.5px solid var(--tap-primary); width: 5px; height: 5px; }
.tap-project__details li ul { margin: 6px 0 4px; }
.tap-project__details strong { color: var(--tap-heading); }

/* ---------- Events list ---------- */
.tap-events { display: grid; gap: 30px; }
.tap-event { padding: 26px; background: #fff; border-radius: 20px; border: 1px solid rgba(36, 36, 36, .06); box-shadow: 0 6px 24px rgba(42, 11, 33, .06); scroll-margin-top: 120px; }
.tap-event__head { display: flex; align-items: center; gap: 18px; }
.tap-event__num { flex: 0 0 auto; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, #7a1f5f, #2a0b21); color: #fff; font: 700 19px/1 var(--tap-font-heading); }
.tap-event__meta { flex: 1; min-width: 0; }
.tap-event__title { margin: 0; font: 600 21px/1.3 var(--tap-font-heading); color: var(--tap-heading); }
.tap-event__date { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; font-size: 13px; color: #8a8590; }
.tap-event__open {
	flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 99px; border: 2px solid var(--tap-primary);
	color: var(--tap-primary); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-decoration: none; transition: background .2s, color .2s;
}
.tap-event__open svg { width: 16px; height: 16px; transition: transform .2s; }
.tap-event__open:hover { background: var(--tap-primary); color: #fff; }
.tap-event__open:hover svg { transform: translateX(3px); }
.tap-event .tap-mosaic { margin-top: 22px; }
@media (max-width: 767px) {
	.tap-event { padding: 16px; border-radius: 16px; }
	.tap-event__head { flex-wrap: wrap; gap: 12px; }
	.tap-event__num { width: 42px; height: 42px; font-size: 16px; border-radius: 12px; }
	.tap-event__title { font-size: 17px; }
	.tap-event__open { width: 100%; justify-content: center; }
	.tap-event .tap-mosaic { margin-top: 16px; }
}
.tap-gallery-grid { display: grid; gap: 20px; grid-template-columns: repeat(var(--tap-cols, 3), minmax(0, 1fr)); }

/* Photo mosaic: always symmetric, whatever the number or shape of photos */
.tap-mosaic { display: grid; gap: 12px; margin-top: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tap-mosaic__item { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 12px; background: #e9e9e9; }
.tap-mosaic__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; border-radius: 0; transition: transform .45s ease; }
.tap-mosaic__item:hover img { transform: scale(1.05); }
.tap-mosaic__item:focus-visible { outline: 3px solid var(--tap-primary); outline-offset: 2px; }
.tap-mosaic__more {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px;
	z-index: 1; background: rgba(36, 36, 36, .6); color: #fff; font: 500 16px/1 var(--tap-font-body); transition: background-color .2s;
}
.tap-mosaic__more strong { font: 600 28px/1 var(--tap-font-heading); color: #fff; }
.tap-mosaic__item:hover .tap-mosaic__more { background: rgba(122, 31, 95, .7); }
.tap-mosaic--n1 { grid-template-columns: 1fr; }
.tap-mosaic--n1 .tap-mosaic__item { aspect-ratio: 16 / 9; }
.tap-mosaic--n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tap-mosaic--n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tap-mosaic--n5 .tap-mosaic__item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 767px) {
	.tap-mosaic { gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tap-mosaic--n1 { grid-template-columns: 1fr; }
	.tap-mosaic--n3 .tap-mosaic__item:first-child,
	.tap-mosaic--n5 .tap-mosaic__item:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 9; }
	.tap-mosaic__more strong { font-size: 22px; }
}

/* ---------- Team ---------- */
.tap-team { display: flex; flex-direction: column; gap: 70px; }
.tap-team__title {
	position: relative; margin: 0 0 30px; padding-bottom: 14px; text-align: center;
	font: 600 26px/1.3 var(--tap-font-heading); color: var(--tap-heading);
}
.tap-team__title::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 44px; height: 3px; margin-left: -22px; border-radius: 2px; background: var(--tap-primary); }
.tap-team__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.tap-member { text-align: center; }
.tap-member__name { margin: 0; font: 600 17px/1.35 var(--tap-font-heading); color: var(--tap-heading); }
.tap-member__role { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--tap-primary); font-weight: 700; }
.tap-member__bio { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--tap-text); }
.tap-member__photo { position: relative; overflow: hidden; background: #ece6ea; }
.tap-member__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; border-radius: 0; }
.tap-member__initials { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 600 28px/1 var(--tap-font-heading); color: var(--tap-primary); }

/* Hierarchy: one row per level, joined by a short line */
.tap-team__tiers { display: flex; flex-direction: column; gap: 44px; }
.tap-team__tier { position: relative; }
.tap-team__tier + .tap-team__tier::before {
	content: ""; position: absolute; left: 50%; top: -44px; width: 2px; height: 44px; margin-left: -1px;
	background: linear-gradient(to bottom, rgba(122, 31, 95, .35), rgba(122, 31, 95, .1));
}
.tap-team__group--text .tap-team__tier + .tap-team__tier::before { display: none; }

/* Leadership: large cards, 3 per row */
.tap-team__group--large .tap-member {
	flex: 0 1 calc((100% - 90px) / 4); min-width: 240px; max-width: 280px;
	display: flex; flex-direction: column; overflow: hidden;
	background: #fff; border-radius: 12px; box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
	transition: transform .25s ease, box-shadow .25s ease;
}
.tap-team__group--large .tap-member:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0, 0, 0, .1); }
.tap-team__group--large .tap-member__photo { aspect-ratio: 4 / 5; }
.tap-team__group--large .tap-member__photo img { width: 100%; height: 100% !important; object-fit: cover; object-position: center 18%; }
.tap-team__group--large .tap-member__body { padding: 16px 18px 20px; }
.tap-team__group--large .tap-member__bio { font-size: 13px; line-height: 1.55; }
.tap-team__group--large .tap-member__name { font-size: 18px; }
/* Top of the hierarchy (e.g. Chairman): a little bigger and highlighted */
.tap-team__group--large .tap-team__tier--top .tap-member { flex-basis: 320px; max-width: 320px; border-top: 4px solid var(--tap-primary); }
.tap-team__group--large .tap-team__tier--top .tap-member__name { font-size: 22px; }
.tap-team__group--small .tap-team__tier--top .tap-member__photo { width: 140px; height: 140px; box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(122, 31, 95, .35); }

/* Staff: round photos, up to 5 per row */
.tap-team__group--small .tap-team__grid { gap: 36px 24px; }
.tap-team__group--small .tap-member { flex: 0 1 calc((100% - 96px) / 5); max-width: 210px; }
.tap-team__group--small .tap-member__photo { width: 120px; height: 120px; margin: 0 auto 14px; border-radius: 50%; box-shadow: 0 0 0 4px #fff, 0 2px 10px rgba(0, 0, 0, .08); }

/* Partners / advisors: names only */
.tap-team__group--text .tap-member {
	flex: 0 1 auto; min-width: 260px; max-width: 520px; padding: 22px 30px;
	background: #fff; border-radius: 12px; border: 1px solid rgba(0, 0, 0, .06);
}

@media (max-width: 1024px) {
	.tap-team__group--large .tap-member { flex-basis: calc((100% - 30px) / 2); }
	.tap-team__group--small .tap-member { flex-basis: calc((100% - 72px) / 4); }
}
@media (max-width: 767px) {
	.tap-team { gap: 50px; }
	.tap-team__tiers { gap: 26px; }
	.tap-team__tier + .tap-team__tier::before { top: -26px; height: 26px; }
	.tap-team__group--large .tap-team__tier--top .tap-member { flex-basis: 100%; max-width: 100%; border-top: 0; border-left: 4px solid var(--tap-primary); }
	.tap-team__group--large .tap-team__tier--top .tap-member__name { font-size: 17px; }
	.tap-team__group--small .tap-team__tier--top .tap-member__photo { width: 110px; height: 110px; }
	.tap-team__title { font-size: 22px; margin-bottom: 22px; }
	.tap-team__group--large .tap-team__grid { gap: 14px; }
	.tap-team__group--large .tap-member { flex-basis: 100%; max-width: 100%; flex-direction: row; align-items: center; text-align: left; border-radius: 10px; }
	.tap-team__group--large .tap-member:hover { transform: none; }
	.tap-team__group--large .tap-member__photo { flex: 0 0 96px; width: 96px; height: 96px; aspect-ratio: auto; margin: 12px; border-radius: 8px; }
	.tap-team__group--large .tap-member__body { padding: 12px 16px 12px 4px; }
	.tap-team__group--large .tap-member__name { font-size: 16px; }
	.tap-team__group--small .tap-team__grid { gap: 28px 14px; }
	.tap-team__group--small .tap-member { flex-basis: calc((100% - 14px) / 2); }
	.tap-team__group--small .tap-member__photo { width: 100px; height: 100px; }
	.tap-member__name { font-size: 16px; }
	.tap-member__role { font-size: 13px; }
}

/* ---------- Our Panel: premium logo wall ---------- */
.tap-clients { --tap-line: rgba(36, 36, 36, .1); }
.tap-clients__group { padding: 34px 0; border-top: 1px solid var(--tap-line); }
.tap-clients__group:last-child { border-bottom: 1px solid var(--tap-line); }
.tap-clients--grouped .tap-clients__group { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: center; }
.tap-clients__label h3 { margin: 0 0 6px; font: 600 18px/1.3 var(--tap-font-heading); color: var(--tap-heading); }
.tap-clients__label span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tap-primary); }
.tap-clients__grid {
	--tap-gx: 28px; --tap-n: var(--tap-cols, 5);
	display: flex; flex-wrap: wrap; justify-content: center; gap: 10px var(--tap-gx);
	margin: 0; padding: 0; list-style: none;
}
.tap-client { flex: 0 0 calc((100% - (var(--tap-n) - 1) * var(--tap-gx)) / var(--tap-n)); margin: 0; min-width: 0; }
.tap-client__box { display: flex; align-items: center; justify-content: center; height: 86px; padding: 6px; border-radius: 6px; transition: background-color .25s; }
a.tap-client__box:hover { background: rgba(122, 31, 95, .04); }
.tap-client__logo { display: block; width: auto; height: auto; max-width: 100%; max-height: 52px; object-fit: contain; border-radius: 0; transition: filter .3s, opacity .3s, transform .3s; }
.tap-client__logo { mix-blend-mode: multiply; } /* white/off-white logo backgrounds blend into the band */
.tap-client__logo--wide { max-height: 40px; }
.tap-client__logo--mid { max-height: 52px; }
.tap-client__logo--tall { max-height: 68px; }
.tap-clients--grey .tap-client__logo { filter: grayscale(1); opacity: .7; }
.tap-clients--grey .tap-client:hover .tap-client__logo { filter: none; opacity: 1; transform: scale(1.04); }
/* No logo yet: elegant wordmark-style name */
.tap-client__name {
	font: 600 12.5px/1.45 var(--tap-font-heading); letter-spacing: .1em; text-transform: uppercase; text-align: center;
	color: #8a8590; transition: color .25s; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tap-client:hover .tap-client__name { color: var(--tap-primary); }
@media (max-width: 1024px) {
	.tap-clients--grouped .tap-clients__group { grid-template-columns: 1fr; gap: 18px; }
	.tap-clients__label { text-align: center; }
	.tap-clients__grid { --tap-n: var(--tap-cols-t, 4); }
}
@media (max-width: 767px) {
	.tap-clients__group { padding: 26px 0; }
	.tap-clients__grid { --tap-n: var(--tap-cols-m, 2); --tap-gx: 16px; gap: 6px var(--tap-gx); }
	.tap-client__box { height: 72px; }
	.tap-client__logo { max-height: 44px; }
	.tap-client__logo--wide { max-height: 32px; }
	.tap-client__logo--tall { max-height: 56px; }
	.tap-client__name { font-size: 11.5px; }
}

/* Our Panel – one moving line (marquee) */
.tap-marquee {
	--tap-item: 190px; --tap-mgap: 36px;
	position: relative; overflow: hidden; padding: 22px 0 34px; /* room for the hover lift + label */
	-webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.tap-marquee__track { display: flex; width: max-content; animation: tap-marquee var(--tap-speed, 60s) linear infinite; }
.tap-marquee:hover .tap-marquee__track, .tap-marquee:focus-within .tap-marquee__track { animation-play-state: paused; }
.tap-marquee__list { display: flex; flex: none; gap: var(--tap-mgap); margin: 0; padding: 0 calc(var(--tap-mgap) / 2); list-style: none; }
.tap-marquee .tap-client { flex: 0 0 var(--tap-item); }
@keyframes tap-marquee { from { transform: translateX(-33.3333%); } to { transform: translateX(-66.6667%); } }

/* Logo card: plain at rest, lifts into a white card with a brand line and name on hover */
.tap-marquee .tap-client__box {
	position: relative; height: 96px; padding: 12px 18px; border-radius: 12px; background: transparent;
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, background-color .35s ease;
}
.tap-marquee .tap-client__box::after {
	content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 3px; border-radius: 3px;
	background: var(--tap-primary); transform: translateX(-50%); transition: width .35s ease;
}
.tap-marquee .tap-client__logo { mix-blend-mode: multiply; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.tap-client__label {
	position: absolute; left: 0; right: 0; top: calc(100% + 8px); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	font: 600 11px/1.3 var(--tap-font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--tap-primary);
	opacity: 0; transform: translateY(-4px); transition: opacity .3s ease, transform .3s ease; pointer-events: none;
}
.tap-marquee .tap-client:hover .tap-client__box,
.tap-marquee .tap-client__box:focus-visible {
	background: #fff; transform: translateY(-6px);
	box-shadow: 0 14px 30px rgba(122, 31, 95, .14), 0 2px 6px rgba(0, 0, 0, .05);
}
.tap-marquee .tap-client:hover .tap-client__box::after, .tap-marquee .tap-client__box:focus-visible::after { width: 56%; }
.tap-marquee .tap-client:hover .tap-client__logo { transform: scale(1.08); mix-blend-mode: normal; }
.tap-marquee .tap-client:hover .tap-client__label, .tap-marquee .tap-client__box:focus-visible .tap-client__label { opacity: 1; transform: none; }
.tap-marquee .tap-client:hover .tap-client__name { color: var(--tap-primary); }
.tap-marquee .tap-clients--grey .tap-client__logo, .tap-marquee.tap-clients--grey .tap-client__logo { filter: grayscale(1); opacity: .7; }
.tap-marquee.tap-clients--grey .tap-client:hover .tap-client__logo { filter: none; opacity: 1; }

@media (max-width: 767px) {
	.tap-marquee { --tap-item: 140px; --tap-mgap: 18px; padding: 16px 0 28px; }
	.tap-marquee .tap-client__box { height: 78px; padding: 10px 12px; }
	.tap-client__label { font-size: 10px; }
}
@media (hover: none) { .tap-client__label { display: none; } } /* touch screens: no hover label */
@media (prefers-reduced-motion: reduce) {
	.tap-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.tap-marquee__track { animation: none; }
	.tap-marquee__list[aria-hidden="true"] { display: none; }
	.tap-marquee .tap-client__box, .tap-marquee .tap-client__logo { transition: none; }
}

/* ---------- Branches ---------- */
.tap-branches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1024px) { .tap-branches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .tap-branches { grid-template-columns: 1fr; gap: 14px; } }
/* Every card has the same 4 parts, lined up across the row (subgrid). */
.tap-branch {
	display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 18px; padding: 26px 24px 24px; background: #fff; border-radius: 14px;
	border: 1px solid rgba(36, 36, 36, .07); box-shadow: 0 2px 12px rgba(0, 0, 0, .04); transition: transform .3s, box-shadow .3s, border-color .3s;
	scroll-margin-top: 120px; font-size: 14px; line-height: 1.6; color: #5d5862;
}
.tap-branch:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(122, 31, 95, .12); }
.tap-branch:target, .tap-branch.is-active { border-color: var(--tap-primary); box-shadow: 0 0 0 3px rgba(122, 31, 95, .14), 0 14px 30px rgba(122, 31, 95, .12); }
.tap-branch__head { min-width: 0; }
.tap-branch__badge {
	display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 99px; background: #f6edf3; color: var(--tap-primary);
	font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.tap-branch__title { margin: 0; font: 600 19px/1.3 var(--tap-font-heading); color: var(--tap-heading); }
.tap-branch__reg { margin: 4px 0 0; font-size: 12.5px; color: #8a8590; letter-spacing: .02em; }
.tap-branch__addr { display: grid; grid-template-columns: 18px 1fr; gap: 10px; margin: 0; }
.tap-branch__ic svg { width: 18px; height: 18px; fill: var(--tap-primary); margin-top: 2px; }
.tap-branch__info { display: grid; gap: 0; margin: 0; align-self: start; border-top: 1px solid rgba(36, 36, 36, .08); }
.tap-branch__info > div { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(36, 36, 36, .08); }
.tap-branch__info dt { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8a8590; line-height: 1.9; }
.tap-branch__info dd { margin: 0; min-width: 0; overflow-wrap: anywhere; color: var(--tap-heading); }
.tap-branch__none { color: #b9b4bd; }
.tap-branch a { color: var(--tap-heading); font-weight: 600; text-decoration: none; }
.tap-branch a:hover { color: var(--tap-primary); }
.tap-branch__people { align-self: start; }
.tap-branch__sub { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tap-primary); }
.tap-branch__people ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tap-branch__people li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: 0; }
.tap-branch__people li > a { white-space: nowrap; }
.tap-branch__who { color: var(--tap-heading); min-width: 0; }
.tap-branch__who em { display: block; font-style: normal; font-size: 12.5px; color: #8a8590; }
/* Headquarters: one wide dark card. */
.tap-branch--hq { grid-column: 1 / -1; grid-row: auto; grid-template-rows: none; background: #2a0b21; border-color: #2a0b21; color: rgba(255, 255, 255, .78); }
.tap-branch__sub--hq { display: none; }
.tap-branch__info-wrap { align-self: start; }
@media (min-width: 1025px) {
	.tap-branch--hq { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; column-gap: 40px; row-gap: 26px; padding: 34px 36px 36px; }
	.tap-branch--hq .tap-branch__head { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
	.tap-branch--hq .tap-branch__head .tap-branch__badge { margin: 0; }
	.tap-branch--hq .tap-branch__head .tap-branch__reg { margin: 0; flex-basis: 100%; }
	.tap-branch--hq .tap-branch__sub--hq { display: block; }
	.tap-branch--hq .tap-branch__addr-wrap { grid-column: 1; }
	.tap-branch--hq .tap-branch__info-wrap { grid-column: 2; }
	.tap-branch--hq .tap-branch__people { grid-column: 3; }
	.tap-branch--hq .tap-branch__info { border-top: 0; }
	.tap-branch--hq .tap-branch__info > div:first-child { padding-top: 0; }
	.tap-branch--hq .tap-branch__info > div:last-child { border-bottom: 0; }
}
.tap-branch--hq .tap-branch__badge { background: #b5487f; color: #fff; }
.tap-branch--hq .tap-branch__title { color: #fff; font-size: 24px; }
.tap-branch--hq .tap-branch__reg, .tap-branch--hq .tap-branch__who em, .tap-branch--hq .tap-branch__info dt { color: rgba(255, 255, 255, .55); }
.tap-branch--hq .tap-branch__ic svg { fill: #e2b8d4; }
.tap-branch--hq .tap-branch__info, .tap-branch--hq .tap-branch__info > div { border-color: rgba(255, 255, 255, .12); }
.tap-branch--hq .tap-branch__info dd, .tap-branch--hq .tap-branch__who, .tap-branch--hq a { color: #fff; }
.tap-branch--hq a:hover { color: #e2b8d4; }
.tap-branch--hq .tap-branch__sub { color: #e2b8d4; }

/* ---------- Branch map ---------- */
.tap-map { margin: 0 auto 40px; max-width: 1060px; }
.tap-map__art { position: relative; aspect-ratio: 1456 / 628; }
.tap-map__land {
	position: absolute; inset: 0; background: linear-gradient(135deg, #8e2a70 0%, #5e1748 100%);
	-webkit-mask: var(--map) center / 100% 100% no-repeat; mask: var(--map) center / 100% 100% no-repeat;
	filter: drop-shadow(0 18px 30px rgba(122, 31, 95, .18));
}
.tap-pin { position: absolute; z-index: 1; width: 0; height: 0; text-decoration: none; }
.tap-pin__dot {
	position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: #fff;
	border: 3px solid #e7a9cd; box-sizing: border-box; box-shadow: 0 3px 8px rgba(0, 0, 0, .35); transition: transform .25s;
}
.tap-pin--hq .tap-pin__dot { left: -10px; top: -10px; width: 20px; height: 20px; background: #e7a9cd; border: 4px solid #fff; }
.tap-pin--hq .tap-pin__dot::after {
	content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #fff; opacity: 0; animation: tap-pin-pulse 2.4s ease-out infinite;
}
@keyframes tap-pin-pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.tap-pin__label {
	position: absolute; left: 14px; top: 50%; transform: translate(0, -50%); white-space: nowrap; padding: 5px 11px; border-radius: 99px;
	background: #fff; color: #2a0b21; font: 600 12.5px/1.2 var(--tap-font-body, inherit); box-shadow: 0 6px 18px rgba(42, 11, 33, .18);
	opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.tap-pin--left .tap-pin__label { left: auto; right: 14px; }
.tap-pin:hover, .tap-pin:focus-visible, .tap-pin.is-active { z-index: 3; }
.tap-pin:hover .tap-pin__dot, .tap-pin:focus-visible .tap-pin__dot, .tap-pin.is-active .tap-pin__dot { transform: scale(1.25); }
.tap-pin:hover .tap-pin__label, .tap-pin:focus-visible .tap-pin__label, .tap-pin.is-active .tap-pin__label, .tap-pin--hq .tap-pin__label { opacity: 1; }
.tap-map__note { margin: 14px 0 0; text-align: center; font-size: 13px; color: #8a8590; }
@media (max-width: 767px) {
	.tap-map { margin-bottom: 24px; }
	.tap-pin__dot { left: -5px; top: -5px; width: 10px; height: 10px; border-width: 2px; }
	.tap-pin--hq .tap-pin__dot { left: -7px; top: -7px; width: 14px; height: 14px; border-width: 3px; }
	.tap-pin__label { font-size: 11px; padding: 3px 8px; left: 10px; }
}
@media (prefers-reduced-motion: reduce) { .tap-pin__dot::after { animation: none; } }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- Contact details ---------- */
.tap-contact { display: grid; gap: 22px; padding: 30px; background: #fff; border-radius: 16px; border: 1px solid rgba(36, 36, 36, .07); box-shadow: 0 10px 30px rgba(42, 11, 33, .06); font-size: 15px; line-height: 1.6; color: #5d5862; }
.tap-contact__org strong { display: block; font: 600 18px/1.35 var(--tap-font-heading); color: var(--tap-heading); }
.tap-contact__org span { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 99px; background: #f6edf3; color: var(--tap-primary); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.tap-contact__list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.tap-contact__list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; margin: 0; }
.tap-contact__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #f6edf3; }
.tap-contact__ic svg { width: 18px; height: 18px; fill: var(--tap-primary); }
.tap-contact__list small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8a8590; line-height: 1.5; }
.tap-contact__list em { display: block; font-style: normal; font-size: 13.5px; color: #8a8590; }
.tap-contact a { color: var(--tap-heading); font-weight: 600; text-decoration: none; }
.tap-contact a:hover { color: var(--tap-primary); }
.tap-contact__list li:first-child a { font-weight: 400; color: #5d5862; }
.tap-contact__people { padding-top: 20px; border-top: 1px solid rgba(36, 36, 36, .08); }
.tap-contact__sub { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tap-primary); }
.tap-contact__people ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.tap-contact__people li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: 0; }
.tap-contact__people li > a { white-space: nowrap; }
.tap-contact__who { color: var(--tap-heading); }
.tap-contact__who em { display: block; font-style: normal; font-size: 12.5px; color: #8a8590; }
.tap-contact__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 20px; border-top: 1px solid rgba(36, 36, 36, .08); }
.tap-contact .tap-contact__wa { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 99px; background: #25d366; color: #fff; font-weight: 600; transition: transform .2s, box-shadow .2s; }
.tap-contact .tap-contact__wa:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 211, 102, .35); }
.tap-contact__wa svg { width: 20px; height: 20px; fill: currentColor; }
.tap-contact .tap-social { margin: 0; }
@media (max-width: 767px) { .tap-contact { padding: 22px 18px; } }

/* ---------- Social icons ---------- */
.tap-social { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tap-social__link { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; color: rgba(0, 0, 0, .6); transition: color .2s, background-color .2s; }
.tap-social__link svg { width: 16px; height: 16px; fill: currentColor; }
.tap-social__link:hover { color: var(--tap-primary); }
.tap-social--circle .tap-social__link { border: 2px solid var(--tap-primary); border-radius: 50%; color: var(--tap-primary); }
.tap-social--circle .tap-social__link svg { width: 14px; height: 14px; }
.tap-social--circle .tap-social__link:hover { background: var(--tap-primary); color: #fff; }

/* ---------- Floating WhatsApp button ---------- */
.tap-wa {
	position: fixed; bottom: 20px; z-index: 350; display: inline-flex; align-items: center; gap: 8px;
	padding: 10px; border-radius: 30px; background: #25d366; color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
	font: 600 14px/1 var(--tap-font-body); transition: transform .2s, box-shadow .2s;
}
.tap-wa--right { right: 20px; } .tap-wa--left { left: 20px; }
.tap-wa svg { width: 30px; height: 30px; fill: currentColor; flex: none; }
.tap-wa__label { padding-right: 8px; }
.tap-wa:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
@media (max-width: 767px) { .tap-wa__label { display: none; } .tap-wa { padding: 12px; bottom: 16px; } .tap-wa--right { right: 16px; } .tap-wa--left { left: 16px; } }
body:has(.tc-cookies:not([hidden])) .tap-wa { bottom: 110px; }

/* Only editors see this when a list is empty */
.tap-empty { padding: 20px; border: 2px dashed rgba(0, 0, 0, .15); border-radius: var(--tap-radius); text-align: center; color: #777; font-size: 14px; }

/* Elementor containers use flex-wrap on small screens; make sure our widgets always get their full width/height. */
.e-con > .elementor-widget[class*="elementor-widget-tap_"],
.e-con-inner > .elementor-widget[class*="elementor-widget-tap_"],
.e-con > .elementor-widget-tc_banner_carousel,
.e-con-inner > .elementor-widget-tc_banner_carousel { width: 100%; max-width: 100%; flex-shrink: 0; align-self: stretch; }
@media (max-width: 767px) {
	.tap-pin--hq .tap-pin__label { opacity: 0; }
	.tap-pin--hq:hover .tap-pin__label, .tap-pin--hq.is-active .tap-pin__label { opacity: 1; }
	.tap-pin--left .tap-pin__label { left: 10px; right: auto; }
	.tap-pin--left[style*="left:6"] .tap-pin__label, .tap-pin--left[style*="left:7"] .tap-pin__label, .tap-pin--left[style*="left:8"] .tap-pin__label, .tap-pin--left[style*="left:9"] .tap-pin__label { left: auto; right: 10px; }
}

/* Contact card: map fills the free space */
.tap-contact__map { position: relative; flex: 1; min-height: 200px; border-radius: 12px; overflow: hidden; background: #eeeeee; }
.tap-contact__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85); }
.tap-contact .tap-contact__dir {
	position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px;
	background: #fff; color: var(--tap-primary); font-size: 13px; font-weight: 700; box-shadow: 0 6px 18px rgba(42, 11, 33, .2);
}
.tap-contact .tap-contact__dir:hover { background: var(--tap-primary); color: #fff; }
.tap-contact__dir svg { width: 15px; height: 15px; fill: currentColor; }
.tc-contact-split .tap-contact { display: flex; flex-direction: column; }
.tc-contact-split .tap-contact__foot { margin-top: 0; }
@media (max-width: 767px) {
	.tap-filter { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -15px 22px; padding: 2px 15px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.tap-filter::-webkit-scrollbar { display: none; }
	.tap-filter button { flex: 0 0 auto; padding: 9px 14px; font-size: 13px; }
}

/* ---------- Home leaders ---------- */
.tap-leaders { position: relative; padding: 0 30px 30px 0; }
.tap-leaders::before { content: ""; position: absolute; left: 30px; top: 30px; right: 0; bottom: 40px; border-radius: 24px; border: 2px solid rgba(226, 184, 212, .45); background: linear-gradient(135deg, rgba(181, 72, 127, .25), transparent 60%); }
.tap-leader { position: relative; z-index: 1; margin: 0; animation: tap-fade .45s ease; }
.tap-leader[hidden] { display: none; }
@keyframes tap-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tap-leader__photo { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 22px; background: #3a1030; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.tap-leader__photo img { width: 100%; height: 100% !important; object-fit: cover; object-position: center 20%; border-radius: 0; }
/* Name plate: centred under the portrait, overlapping its bottom edge */
.tap-leader { padding-bottom: 46px; }
.tap-leader__plate {
	position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: calc(100% - 48px); max-width: 420px;
	display: grid; justify-items: center; gap: 6px; padding: 18px 22px 16px; text-align: center;
	border-radius: 18px; background: #fff; box-shadow: 0 22px 48px rgba(0, 0, 0, .35), 0 0 0 1px rgba(122, 31, 95, .08);
}
.tap-leader__name { display: block; font: 600 19px/1.25 var(--tap-font-heading); color: #2a0b21; text-wrap: balance; letter-spacing: -.005em; }
.tap-leader__role { display: inline-flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--tap-primary); }
.tap-leader__role::before, .tap-leader__role::after { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .45; }
.tap-leader__group { font-size: 12.5px; color: #8a8590; }
.tap-leaders__thumbs { position: relative; z-index: 2; display: flex; gap: 10px; justify-content: flex-end; margin-top: 40px; }
.tap-leaders__thumbs button { width: 54px; height: 54px; padding: 0; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255, 255, 255, .3); background: #3a1030; cursor: pointer; opacity: .65; transition: opacity .2s, border-color .2s, transform .2s; }
.tap-leaders__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.tap-leaders__thumbs button:hover, .tap-leaders__thumbs button.is-active { opacity: 1; border-color: #e2b8d4; transform: translateY(-2px); }
@media (max-width: 767px) {
	.tap-leaders { padding: 0; }
	.tap-leaders::before { left: 12px; right: -12px; top: 12px; bottom: 34px; }
	.tap-leader { padding-bottom: 40px; }
	.tap-leader__plate { width: calc(100% - 32px); padding: 14px 16px 13px; border-radius: 16px; }
	.tap-leader__name { font-size: 16.5px; }
	.tap-leader__role { font-size: 10.5px; letter-spacing: .14em; }
	.tap-leader__group { font-size: 12px; }
}

/* Balanced rows (set by front.js) */
.tap-bal { display: grid !important; justify-content: stretch; }
.tap-services.tap-bal, .tap-clients__grid.tap-bal { column-gap: var(--tap-sg, var(--tap-gx, 20px)); row-gap: var(--tap-sg, 20px); }
.tap-bal > * { flex: none !important; width: auto !important; min-width: 0; }
.tap-bal > .tap-branch--hq { grid-column: 1 / -1 !important; }

/* Leader plate: gradient border, soft glow, entrance animation */
.tap-leader__plate {
	border: 1.5px solid transparent;
	background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #7a1f5f 0%, #d9a3c4 45%, #b5487f 70%, #4a1238 100%) border-box;
	box-shadow: 0 22px 48px rgba(0, 0, 0, .35), 0 0 0 6px rgba(255, 255, 255, .06);
	overflow: hidden;
}
.tap-leader__plate::after { /* one soft light sweep after it lands */
	content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%);
	background: linear-gradient(105deg, transparent 35%, rgba(122, 31, 95, .07) 50%, transparent 65%);
}
.tap-leaders.is-anim .tap-leader__photo { opacity: 0; transform: scale(.96); }
.tap-leaders.is-anim .tap-leader__plate { opacity: 0; transform: translate(-50%, 22px); }
.tap-leaders.is-anim .tap-leader__name, .tap-leaders.is-anim .tap-leader__role, .tap-leaders.is-anim .tap-leader__group { opacity: 0; transform: translateY(6px); }
.tap-leaders.is-in .tap-leader__photo { opacity: 1; transform: none; transition: opacity .8s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.tap-leaders.is-in .tap-leader__plate { opacity: 1; transform: translate(-50%, 0); transition: opacity .6s ease .35s, transform .8s cubic-bezier(.2, .8, .2, 1) .35s; }
.tap-leaders.is-in .tap-leader__name { opacity: 1; transform: none; transition: opacity .5s ease .65s, transform .5s ease .65s; }
.tap-leaders.is-in .tap-leader__role { opacity: 1; transform: none; transition: opacity .5s ease .78s, transform .5s ease .78s; }
.tap-leaders.is-in .tap-leader__group { opacity: 1; transform: none; transition: opacity .5s ease .9s, transform .5s ease .9s; }
.tap-leaders.is-in .tap-leader__plate::after { animation: tap-sweep 1.4s ease 1.1s 1 both; }
@keyframes tap-sweep { to { transform: translateX(120%); } }
.tap-leader__role::before, .tap-leader__role::after { transition: width .6s ease 1s; }
.tap-leaders.is-anim .tap-leader__role::before, .tap-leaders.is-anim .tap-leader__role::after { width: 0; }
.tap-leaders.is-in .tap-leader__role::before, .tap-leaders.is-in .tap-leader__role::after { width: 18px; }
@media (prefers-reduced-motion: reduce) {
	.tap-leaders.is-anim .tap-leader__photo, .tap-leaders.is-anim .tap-leader__plate, .tap-leaders.is-anim .tap-leader__name, .tap-leaders.is-anim .tap-leader__role, .tap-leaders.is-anim .tap-leader__group { opacity: 1; transform: none; }
	.tap-leaders.is-anim .tap-leader__plate { transform: translateX(-50%); }
	.tap-leader__plate::after { display: none; }
}

/* Project & event cards: glass panels over the photo */
.tap-carousel .tap-banner { border-radius: 18px; box-shadow: 0 1px 2px rgba(42, 11, 33, .08); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.tap-carousel .tap-banner::before {
	content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.tap-carousel .tap-banner::after { background: linear-gradient(to top, rgba(26, 6, 20, .55) 0%, rgba(26, 6, 20, 0) 45%), linear-gradient(to bottom, rgba(26, 6, 20, .25) 0%, rgba(26, 6, 20, 0) 22%); }
.tap-carousel .tap-banner__content {
	left: 12px; right: 12px; bottom: 12px; padding: 16px 18px 14px; border-radius: 14px;
	background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
	-webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.tap-carousel .tap-banner__content { background: rgba(26, 6, 20, .62); }
}
.tap-carousel .tap-banner__title { text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.tap-carousel .tap-banner__sub { color: rgba(255, 255, 255, .88); }
@media (hover: hover) {
	.tap-carousel .tap-banner:hover { transform: translateY(-4px); }
	.tap-carousel .tap-banner:hover .tap-banner__content { background: rgba(255, 255, 255, .2); }
}
.tap-banner__badge {
	position: absolute; z-index: 1; left: 14px; top: 14px; max-width: calc(100% - 80px); padding: 6px 12px; border-radius: 99px;
	background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .32); color: #fff;
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.tap-banner__num { position: absolute; z-index: 1; right: 18px; top: 12px; font: 700 24px/1 var(--tap-font-heading); color: rgba(255, 255, 255, .92); text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
@media (max-width: 767px) { .tap-carousel .tap-banner__content { left: 10px; right: 10px; bottom: 10px; padding: 14px 15px 12px; } }

/* Contact card footer: social icons centred, WhatsApp button centred full width (mirrors "Send message") */
.tap-contact__foot { flex-direction: column; align-items: stretch; justify-content: center; gap: 14px; }
.tap-contact__foot .tap-social { order: -1; justify-content: center; }
.tap-contact .tap-contact__wa { justify-content: center; width: 100%; }

/* Our Panel: the moving line can also be swiped (phone) or dragged (mouse); front.js drives it */
.tap-marquee.is-js { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; touch-action: pan-x pan-y; }
.tap-marquee.is-js::-webkit-scrollbar { display: none; }
.tap-marquee.is-js .tap-marquee__track { animation: none; }
.tap-marquee.is-js.is-dragging { cursor: grabbing; user-select: none; }
.tap-marquee.is-js.is-dragging .tap-client__box { pointer-events: none; }

/* Our Panel marquee: fixed logo boxes so iPhone Safari never lets a logo grow past its card
   (Safari ignored max-width/max-height on width:auto images inside the flex box, so logos overlapped). */
.tap-marquee .tap-client { min-width: var(--tap-item); max-width: var(--tap-item); }
.tap-marquee .tap-client__box { display: flex; width: 100%; box-sizing: border-box; overflow: hidden; }
.tap-marquee .tap-client__logo { flex: 0 0 auto; display: block; width: 100%; max-width: 100%; min-width: 0; height: 52px; max-height: none; object-fit: contain; object-position: center; }
.tap-marquee .tap-client__logo--wide { height: 40px; }
.tap-marquee .tap-client__logo--tall { height: 68px; }
@media (max-width: 767px) {
	.tap-marquee .tap-client__logo { height: 44px; }
	.tap-marquee .tap-client__logo--wide { height: 32px; }
	.tap-marquee .tap-client__logo--tall { height: 56px; }
}
