/* Reuse the approved homepage project carousel inside the Services page. */
.tb-inner-page .tb-services-projects {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding-block: clamp(64px, 7.5vw, 100px);
	color: #f8f7f2;
	background: radial-gradient(ellipse at 50% 57%, #28302f 0%, #171c1b 46%, #101413 100%);
}
.tb-services-projects::before,
.tb-services-projects::after { position: absolute; z-index: -1; content: ""; pointer-events: none; }
.tb-services-projects::before { inset: 0; background: linear-gradient(90deg, rgb(8 11 10 / 42%), transparent 20%, transparent 80%, rgb(8 11 10 / 42%)); }
.tb-services-projects::after {
	top: 18%;
	right: 8%;
	width: clamp(220px, 32vw, 420px);
	aspect-ratio: 1;
	border: 1px solid rgb(203 184 125 / 12%);
	border-radius: 50%;
	box-shadow: 0 0 0 34px rgb(203 184 125 / 3%), 0 0 0 78px rgb(203 184 125 / 2%);
}
.tb-services-projects__shell { position: relative; width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.tb-services-projects .section-heading {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
	align-items: end;
	gap: 28px;
	margin: 0 0 30px;
}
.tb-services-projects .eyebrow {
	display: flex;
	align-items: center;
	gap: 11px;
	margin: 0 0 18px;
	color: #c8aa62;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .19em;
	line-height: 1.4;
	text-transform: uppercase;
}
.tb-services-projects .eyebrow__line { width: 32px; height: 1px; flex: 0 0 32px; background: currentColor; }
.tb-services-projects .section-heading h2 {
	max-width: 700px;
	margin: 0;
	color: #fbfaf6;
	font-size: clamp(28px, 3.3vw, 42px);
	line-height: 1.14;
}
.tb-services-projects .section-heading__right { max-width: 390px; justify-self: end; }
.tb-services-projects .section-heading__right p { margin: 0; color: #c5c8c1; font-size: 15px; line-height: 1.7; }
.tb-services-projects .section-heading__right .text-link { display: inline-flex; min-height: 44px; align-items: center; margin-top: 5px; color: #dec681; font-size: 13px; font-weight: 600; }
.tb-services-projects .section-heading__right .text-link:hover { color: #fff; }
.tb-services-projects .tb-project-rate-note {
	margin: 0 0 28px;
	padding-left: 14px;
	border-left: 1px solid #b99a53;
	color: #c5c8c1;
	font-size: 13px;
	line-height: 1.6;
}
.tb-services-projects .tb-project-carousel { position: relative; width: 100%; margin-inline: auto; perspective: 1500px; touch-action: pan-y; cursor: grab; }
.tb-services-projects .tb-project-carousel.is-dragging,
.tb-services-projects .tb-project-carousel.is-dragging * { user-select: none; }
.tb-services-projects .tb-project-carousel.is-dragging { cursor: grabbing; }
.tb-services-projects .project-grid.tb-project-carousel__track {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
	width: 100%;
	overflow: hidden;
	perspective: 1500px;
}
.tb-services-projects .tb-project-carousel__track > .project-card {
	display: flex;
	grid-area: 1 / 1;
	position: relative;
	width: min(370px, calc(100vw - 112px));
	flex-direction: column;
	align-self: start;
	justify-self: center;
	overflow: hidden;
	border: 1px solid rgb(226 220 203 / 84%);
	background: #f7f5ef;
	box-shadow: 0 12px 30px rgb(0 0 0 / 14%);
	transform: translateX(70%) rotateY(-17deg) scale(.84);
	transform-origin: center center;
	opacity: .48;
	filter: saturate(.76) brightness(.84);
	transition: transform .75s cubic-bezier(.2,.72,.2,1), opacity .6s ease, filter .6s ease, box-shadow .35s ease;
	backface-visibility: hidden;
}
.tb-services-projects .tb-project-carousel__track > .project-card.is-active { z-index: 4; transform: translateX(0) rotateY(0) scale(1); opacity: 1; filter: none; box-shadow: 0 30px 75px rgb(0 0 0 / 34%); }
.tb-services-projects .tb-project-carousel__track > .project-card.is-active:hover { transform: translateX(0) rotateY(0) scale(1.008); }
.tb-services-projects .tb-project-carousel__track > .project-card.is-previous { z-index: 2; transform: translateX(-70%) rotateY(17deg) scale(.84); }
.tb-services-projects .tb-project-carousel__track > .project-card.is-previous,
.tb-services-projects .tb-project-carousel__track > .project-card.is-next { pointer-events: none; }
.tb-services-projects .tb-project-carousel__track > .project-card.is-hidden { z-index: 0; visibility: hidden; transform: translateX(0) rotateY(0) scale(.7); opacity: 0; filter: blur(2px); }
.tb-services-projects .project-card__image { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid #e5e1d7; background: #e5e0d4; }
.tb-services-projects .project-card__image img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.tb-services-projects .tb-project-card__image-note { position: absolute; top: 12px; left: 12px; padding: 7px 10px; color: #fff; background: #29302e; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.tb-services-projects .project-card__body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 18px 20px 12px; background: linear-gradient(145deg, #f8f7f2 0%, #f0eee7 100%); }
.tb-services-projects .project-card__kicker { margin: 0 0 7px; color: #77602a; font-size: 10px; font-weight: 600; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase; }
.tb-services-projects .project-card h3 { margin: 0 0 8px; color: #20231f; font-size: clamp(20px, 1.65vw, 23px); line-height: 1.22; }
.tb-services-projects .project-card h3 a,
.tb-services-projects .project-card h3 a:visited { color: #20231f !important; text-decoration: none !important; }
.tb-services-projects .project-card h3 a:hover,
.tb-services-projects .project-card h3 a:focus-visible { color: #80601d !important; text-decoration: none !important; }
.tb-services-projects .project-card__copy { min-height: 0; margin: 0 0 10px; color: #555a55; font-size: 13px; line-height: 1.5; }
.tb-services-projects .project-card__rate { margin: 0 0 8px; padding: 8px 10px; border-left: 3px solid #9c7a2e; background: #e9e5d8; }
.tb-services-projects .project-card__rate span { display: block; color: #71746e; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.tb-services-projects .project-card__rate strong { color: #20231f; font-size: 21px; }
.tb-services-projects .project-card__rate small { color: #6d7069; font-size: 12px; font-weight: 500; }
.tb-services-projects .project-card__specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 9px 0 0; border-top: 1px solid #dfddd5; color: #6d7069; font-size: 12px; line-height: 1.45; }
.tb-services-projects .project-card > .project-card__cta {
	display: inline-flex;
	width: max-content;
	min-width: 160px;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	margin: 11px 20px 16px;
	padding: 10px 16px;
	border: 1px solid #80601d;
	color: #fff;
	background: #80601d;
	box-shadow: 0 8px 18px rgb(68 49 14 / 17%);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none !important;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.tb-services-projects .project-card > .project-card__cta:hover,
.tb-services-projects .project-card > .project-card__cta:focus-visible { border-color: #66490f; color: #fff; background: #66490f; transform: translateY(-1px); }
.tb-services-projects .tb-project-carousel__controls { display: flex; min-height: 64px; align-items: center; justify-content: center; gap: 16px; margin: 18px auto 0; }
.tb-services-projects .tb-project-carousel__arrow { display: inline-flex; min-width: 48px; min-height: 48px; align-items: center; justify-content: center; border: 1px solid rgb(225 217 195 / 48%); border-radius: 50%; color: #f5f0e3; background: rgb(255 255 255 / 4%); cursor: pointer; transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease; }
.tb-services-projects .tb-project-carousel__arrow:hover { transform: translateY(-2px); border-color: #d4bc79; color: #fff; background: rgb(255 255 255 / 12%); }
.tb-services-projects .tb-project-carousel__arrow svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.tb-services-projects .tb-project-carousel__indicators { display: flex; align-items: center; gap: 4px; }
.tb-services-projects .tb-project-carousel__indicator { position: relative; width: 34px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.tb-services-projects .tb-project-carousel__indicator::after { position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; border: 1px solid #9c8c61; border-radius: 50%; background: transparent; content: ""; transform: translate(-50%, -50%); transition: width .25s ease, border-radius .25s ease, background-color .25s ease; }
.tb-services-projects .tb-project-carousel__indicator[aria-current="true"]::after { width: 24px; border-color: #d6be7b; border-radius: 4px; background: #d6be7b; }
.tb-services-projects .tb-project-carousel__status { min-width: 48px; color: #ded7c6; font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: .12em; text-align: center; }
.tb-services-projects .tb-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.tb-services-projects .projects__foot { display: flex; position: relative; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; padding-top: 20px; border-top: 1px solid rgb(225 217 195 / 20%); color: #c5c8c1; font-size: 14px; }
.tb-services-projects .projects__foot .button--dark { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; padding: 14px 27px; border: 1px solid #80601d; color: #fff; background: #80601d; font-size: 12px; font-weight: 600; line-height: 1.2; transition: background-color .2s ease, transform .2s ease; }
.tb-services-projects .projects__foot .button--dark:hover { transform: translateY(-2px); border-color: #66490f; background: #66490f; }
@media (max-width: 900px) {
	.tb-services-projects .tb-project-carousel__track > .project-card { width: min(340px, calc(100vw - 88px)); }
	.tb-services-projects .tb-project-carousel__track > .project-card.is-previous { transform: translateX(-65%) rotateY(17deg) scale(.8); }
	.tb-services-projects .tb-project-carousel__track > .project-card.is-next { transform: translateX(65%) rotateY(-17deg) scale(.8); }
}
@media (max-width: 680px) {
	.tb-inner-page .tb-services-projects { padding-block: 72px; }
	.tb-services-projects__shell { width: min(100% - 36px, 520px); }
	.tb-services-projects .section-heading { grid-template-columns: 1fr; gap: 16px; margin-bottom: 22px; }
	.tb-services-projects .section-heading__right { justify-self: start; }
	.tb-services-projects .tb-project-carousel,
	.tb-services-projects .project-grid.tb-project-carousel__track { perspective: none; }
	.tb-services-projects .tb-project-carousel__track > .project-card { width: min(100%, 400px); }
	.tb-services-projects .tb-project-carousel__track > .project-card.is-previous,
	.tb-services-projects .tb-project-carousel__track > .project-card.is-next,
	.tb-services-projects .tb-project-carousel__track > .project-card.is-hidden { visibility: hidden; opacity: 0; pointer-events: none; }
	.tb-services-projects .tb-project-carousel__track > .project-card.is-active { transform: none; }
	.tb-services-projects .project-card__body { padding: 17px 18px 11px; }
	.tb-services-projects .project-card__copy { font-size: 14px; }
	.tb-services-projects .project-card__image { aspect-ratio: 16 / 9; }
	.tb-services-projects .project-card > .project-card__cta { margin: 10px 18px 15px; }
	.tb-services-projects .tb-project-carousel__controls { gap: 6px; margin-top: 12px; }
	.tb-services-projects .tb-project-carousel__arrow { min-width: 44px; min-height: 44px; }
	.tb-services-projects .tb-project-carousel__indicators { display: none; }
	.tb-services-projects .tb-project-carousel__status { min-width: 40px; font-size: 10px; }
	.tb-services-projects .projects__foot { align-items: flex-start; flex-direction: column; gap: 12px; margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
	.tb-services-projects .tb-project-carousel__track > .project-card,
	.tb-services-projects .tb-project-carousel__arrow,
	.tb-services-projects .tb-project-carousel__indicator::after { transition: none; }
}
