/* ==========================================================================
   DSMS — New UI homepage (Figma Home 88:4843, desktop 1440 / content 1200).
   Tokens, buttons, header and footer live in chrome.css.
   ========================================================================== */

.dsms-ui2 .site-main { font-family: var(--hm-font); color: var(--hm-text); }
.dsms-ui2 .site-main h1,
.dsms-ui2 .site-main h2,
.dsms-ui2 .site-main h3 { font-family: var(--hm-font); }

.hm-wrap {
	width: 100%;
	max-width: calc(var(--hm-container) + var(--hm-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--hm-gutter);
}
.hm-center { display: flex; justify-content: center; }

/* Sections: 65px between sections; coloured sections also have 65px inner padding. */
.hm-section { margin-top: var(--hm-gap); }
.hm-section--gray,
.hm-section--dark { padding-block: var(--hm-gap); }
.hm-section--gray { background: var(--hm-gray-bg); }
.hm-section--dark { background: var(--hm-brown); }

/* ---------- Heading (bar + title + subtitle) ---------- */
.hm-head { display: flex; flex-direction: column; gap: 8px; }
.hm-head--center { align-items: center; max-width: 994px; margin-inline: auto; text-align: center; }
.hm-head--left { align-items: flex-start; text-align: left; }
.hm-head__bar { display: block; width: 90px; height: 9px; background: var(--hm-primary); }
.hm-head--center .hm-head__bar { margin-bottom: 4px; }
.hm-head--left .hm-head__bar { margin-bottom: 8px; }
/* Service pages: bar + title on the left of a centred 994px column, subtitle centred (Figma). */
/* Service pages: centred on desktop (Figma "UI Layout Fix"), left-aligned on phones. */
.hm-head--offset { align-items: center; max-width: 994px; margin-inline: auto; }
.hm-head--offset .hm-head__bar { margin-bottom: 8px; }
.hm-head--offset .hm-head__title { text-align: center; }
.hm-head--offset .hm-head__sub { align-self: stretch; text-align: center; }
.hm-head__title {
	margin: 0;
	color: var(--hm-heading);
	font-size: 36px;
	font-weight: 700;
	line-height: normal;
}
.hm-head__sub { margin: 0; color: var(--hm-text); font-size: 16px; line-height: 24px; }
.hm-head__sub--lg { color: var(--hm-text-2); font-size: 18px; line-height: 1.5; }
.hm-head--dark .hm-head__title { color: #fff; }
.hm-head--dark .hm-head__sub { color: #cfd1d7; }

/* ---------- Dots (Figma "Frame 661") ---------- */
.hm-dots { display: flex; align-items: center; justify-content: center; gap: 8px; }
.hm-dots--start { justify-content: flex-start; }
.hm-dots__dot {
	width: 12px;
	height: 12px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: #e5e7eb;
	cursor: pointer;
	transition: width .25s ease, background-color .25s ease;
}
.hm-dots__dot.is-active { width: 39px; background: var(--hm-primary); }
.hm-dots__dot:focus-visible { outline: 2px solid var(--hm-black); outline-offset: 2px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hm-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: clamp(460px, 53.34vw, max(768px, calc(100svh - 85px))); /* 1440×768 in the design; keeps the ratio on wider screens, never taller than the window */
	padding: 40px var(--hm-gutter);
	overflow: hidden;
}
.hm-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}
.hm-hero__box {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
	width: 100%;
	max-width: 987px;
	padding: 48px;
	background: rgba(0, 20, 22, .6);
	text-align: center;
}
.hm-hero__title { margin: 0; color: #fff; font-size: 48px; font-weight: 700; line-height: normal; }

/* ==========================================================================
   Intro — 3 photos
   ========================================================================== */
.hm-intro__photos {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 32px;
}
.hm-intro__photo { margin: 0; overflow: hidden; }
.hm-intro__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-intro__photo--side { width: 28%; aspect-ratio: 336 / 216; }
.hm-intro__photo--main { width: 40%; aspect-ratio: 480 / 309; }

/* ==========================================================================
   Our Services
   ========================================================================== */
.hm-services__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 379px));
	justify-content: center;
	gap: 32px;
	margin-top: 24px;
}
.hm-service { display: flex; flex-direction: column; gap: 20px; }
.hm-service__media { display: block; aspect-ratio: 379 / 236; overflow: hidden; }
.hm-service__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hm-service:hover .hm-service__media img { transform: scale(1.04); }
.hm-service__body { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hm-service__title { margin: 0; color: var(--hm-black); font-size: 24px; font-weight: 700; line-height: normal; }
.hm-service__link { color: inherit; text-decoration: none; pointer-events: auto; transition: color .2s ease; }
.hm-service__link:hover,
.hm-service__link:focus-visible { color: var(--hm-primary); }

.hm-btn-outline {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px 6px 16px;
	border: 1px solid var(--hm-black);
	color: var(--hm-black);
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}
.hm-btn-outline .dsms-icon { width: 14px; height: 14px; }
.hm-btn-outline:hover,
.hm-btn-outline:focus-visible { background: var(--hm-black); color: #fff; }

/* ==========================================================================
   Staging — before / after slider
   ========================================================================== */
.hm-staging { --st-w: min(var(--hm-container), calc(100vw - var(--hm-gutter) * 2)); --st-gap: 32px; overflow: hidden; overflow: clip; }
.hm-staging__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.hm-staging__stage { margin-top: 24px; }
.hm-staging__track {
	position: relative;
	height: calc(var(--st-w) * 562 / 1200);
}
.hm-staging__slide {
	--off: 0;
	position: absolute;
	top: 0;
	left: 50%;
	width: var(--st-w);
	height: 100%;
	transform: translateX(calc(-50% + var(--off) * (100% + var(--st-gap))));
	transition: transform .55s cubic-bezier(.22, .61, .36, 1);
	cursor: pointer;
}
.hm-staging__slide.is-current { z-index: 2; cursor: default; }
.hm-staging__slide.is-far { visibility: hidden; }
.hm-staging__slide.no-anim { transition: none; }
.hm-staging__slide:not(.is-current) .hm-ba__range,
.hm-staging__slide:not(.is-current) .hm-ba__handle { visibility: hidden; }

.hm-ba { --pos: 50%; position: relative; width: 100%; height: 100%; overflow: hidden; user-select: none; }
.hm-ba__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; pointer-events: none; }
.hm-ba__after { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.hm-ba__line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--pos);
	width: 1px;
	background: var(--hm-neutral);
	transform: translateX(-50%);
	pointer-events: none;
}
.hm-ba__handle {
	position: absolute;
	top: 50%;
	left: var(--pos);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--hm-neutral);
	color: #3f3f46;
	filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .12));
	transform: translate(-50%, -50%);
	pointer-events: none;
}
.hm-ba__handle .dsms-icon { width: 16px; height: 16px; }
.hm-ba__range {
	position: absolute;
	inset: 0;
	z-index: 3;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
	-webkit-appearance: none;
	appearance: none;
}
.hm-ba:has(.hm-ba__range:focus-visible) .hm-ba__handle { outline: 2px solid var(--hm-primary); outline-offset: 2px; }
.hm-staging .hm-dots { margin-top: 24px; }

/* ==========================================================================
   Interior Design
   ========================================================================== */
.hm-interior__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
	margin: 32px 0;
}
.hm-interior__card { display: flex; flex-direction: column; gap: 20px; color: #fff; text-decoration: none; }
.hm-interior__media { aspect-ratio: 379 / 236; overflow: hidden; }
.hm-interior__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.hm-interior__card:hover .hm-interior__media img { transform: scale(1.04); }
a.hm-interior__card:hover .hm-interior__title { color: var(--hm-primary); }
.hm-interior__title { margin: 0; color: #fff; font-size: 24px; font-weight: 700; line-height: normal; transition: color .2s ease; }

/* ==========================================================================
   Leasing Management
   ========================================================================== */
.hm-leasing {
	display: grid;
	/* Text column 520px from the content edge; the photo fills the rest, out to the screen edge (Figma 88:4929). */
	grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
	gap: 64px;
	align-items: stretch;
	padding-left: max(var(--hm-gutter), calc((100vw - var(--hm-container)) / 2));
}
.hm-leasing--noimg { grid-template-columns: minmax(0, 1fr); padding-right: max(var(--hm-gutter), calc((100vw - var(--hm-container)) / 2)); }
.hm-leasing__content { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-block: 65px; }
.hm-leasing__list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.hm-leasing__list li { display: flex; align-items: center; gap: 12px; color: var(--hm-text-2); font-size: 18px; line-height: 1.5; }
/* Orange round badge with a white check (Figma 88:4935). */
.hm-leasing__list .dsms-icon { flex-shrink: 0; width: 32px; height: 32px; padding: 4px; border-radius: 50%; background: var(--hm-primary); color: #fcfbfa; }
.hm-leasing__media { position: relative; min-height: 420px; }
.hm-leasing__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* Desktop: the photo keeps the design ratio (736 × 653 at 1440) as the screen gets wider, so it grows
   in height instead of turning into a wide strip; never taller than the window. Text stays centred. */
@media (min-width: 1200px) {
	.hm-leasing { align-items: center; }
	.hm-leasing__media {
		align-self: stretch;
		width: 100%;
		min-height: 0;
		aspect-ratio: 736 / 653;
		max-height: max(653px, calc(100svh - 85px));
	}
}

/* ==========================================================================
   Explore Real Spaces
   All room tab rows and galleries are rendered up front; only the active ones are
   shown. Every box has a fixed height, so switching tabs never moves the layout.
   ========================================================================== */
.hm-explore {
	--ex-w: 404px;
	--ex-h: 279px;
	--ex-wa: 501px;
	--ex-ha: 346px;
	--ex-gap: 24px;
	overflow: clip;            /* not a scroll container: nothing can scroll it sideways */
	overflow-clip-margin: 0;
}
@supports not (overflow: clip) { .hm-explore { overflow: hidden; } }
.hm-explore .hm-head { margin-bottom: 12px; }

.hm-explore__rooms-wrap { position: relative; height: 40px; }
.hm-explore__rooms {
	display: flex;
	justify-content: safe center;
	height: 40px;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.hm-explore__rooms[hidden] { display: none; }
.hm-explore__rooms::-webkit-scrollbar { display: none; }
/* Fallback for browsers without "safe center": centred when it fits, scrollable from the left when not. */
.hm-explore__rooms > :first-child { margin-left: auto; }
.hm-explore__rooms > :last-child { margin-right: auto; }
.hm-explore__rooms.is-active { animation: hm-fade .3s ease; }
.hm-explore__room {
	flex-shrink: 0;
	height: 40px;
	padding: 8px 16px;
	border: 0;
	border-bottom: 1px solid #f4f3f6;
	background: none;
	color: var(--hm-text);
	font-family: var(--hm-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 24px;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: color .2s ease, border-color .2s ease;
}
/* Active tab is SemiBold: reserve that width on every tab so the row never shifts. */
.hm-explore__room::after {
	content: attr(data-label);
	display: block;
	height: 0;
	overflow: hidden;
	visibility: hidden;
	font-weight: 600;
}
.hm-explore__room:hover { color: var(--hm-primary); }
.hm-explore__room.is-active { border-bottom-color: var(--hm-primary); color: var(--hm-primary); font-weight: 600; }
.hm-explore__room:focus-visible,
.hm-explore__group:focus-visible { outline: 2px solid var(--hm-primary); outline-offset: -2px; }

.hm-explore__body { display: flex; align-items: center; gap: 60px; margin-top: 24px; }
.hm-explore__groups { display: flex; flex-direction: column; gap: 40px; flex-shrink: 0; width: 24px; }
.hm-explore__group {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	width: 24px;
	padding: 0;
	border: 0;
	background: none;
	color: #757e8c;
	font-family: var(--hm-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	text-transform: uppercase;
	cursor: pointer;
	transition: color .2s ease;
}
.hm-explore__group-dot { flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hm-explore__group-label { writing-mode: vertical-rl; white-space: nowrap; }
.hm-explore__group:hover,
.hm-explore__group.is-active { color: var(--hm-primary); }

.hm-explore__gallery { flex: 1; min-width: 0; height: calc(var(--ex-ha) + 32px); }
.hm-explore__panel { display: flex; flex-direction: column; gap: 20px; height: 100%; }
.hm-explore__panel[hidden] { display: none; }
.hm-explore__panel.is-active { animation: hm-fade .35s ease; }

/* Left edge clipped (slides scroll out under it), right edge bleeds to the screen edge. */
.hm-explore__viewport { flex-shrink: 0; height: var(--ex-ha); clip-path: inset(-20px -100vw -20px 0); touch-action: pan-y; cursor: grab; }
.hm-explore__viewport.is-dragging { cursor: grabbing; }
.hm-explore__track {
	--i: 0;
	--drag: 0px;
	display: flex;
	align-items: center;
	gap: var(--ex-gap);
	height: 100%;
	transform: translateX(calc(var(--i) * -1 * (var(--ex-w) + var(--ex-gap)) + var(--drag)));
	transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}
.hm-explore__track.is-dragging { transition: none; }
.hm-explore__slide {
	flex-shrink: 0;
	width: var(--ex-w);
	height: var(--ex-h);
	overflow: hidden;
	background: #e9eaec;
	cursor: pointer;
	transition: width .5s cubic-bezier(.22, .61, .36, 1), height .5s cubic-bezier(.22, .61, .36, 1);
}
.hm-explore__slide.is-active { width: var(--ex-wa); height: var(--ex-ha); cursor: default; }
.hm-explore__slide img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; pointer-events: none; user-select: none; }
.hm-explore .hm-dots { flex-shrink: 0; min-height: 12px; }
.hm-explore .hm-dots[data-single] { visibility: hidden; }
.hm-explore .hm-center { margin-top: 24px; }

@keyframes hm-fade { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   Why choose us
   ========================================================================== */
.hm-why__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 24px;
	margin-top: 32px;
}
.hm-why__item { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.hm-why__icon { display: flex; align-items: center; justify-content: center; width: 86px; height: 86px; padding: 4px 6px; }
.hm-why__icon svg,
.hm-why__icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hm-why__title { margin: 0; color: var(--hm-black); font-size: 18px; font-weight: 700; line-height: 1.5; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199.98px) {
	.hm-explore { --ex-w: 340px; --ex-h: 235px; --ex-wa: 430px; --ex-ha: 297px; }
	.hm-why__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
	.hm-leasing { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
}

@media (max-width: 991.98px) {
	.hm-hero__title { font-size: 38px; }
	.hm-head__title { font-size: 30px; }
	.hm-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hm-leasing { grid-template-columns: minmax(0, 1fr); gap: 0; padding-right: max(var(--hm-gutter), calc((100vw - var(--hm-container)) / 2)); }
	.hm-leasing__content { padding-block: 0 32px; }
	.hm-leasing__media { min-height: 0; aspect-ratio: 736 / 617; }
	.hm-explore__body { gap: 28px; }
}

@media (max-width: 767.98px) {
	.hm-hero { height: auto; min-height: 420px; }
	.hm-hero__box { gap: 20px; padding: 28px 20px; }
	.hm-hero__title { font-size: 26px; }
	.hm-head__sub--lg { font-size: 16px; }
	.hm-head--offset { align-items: flex-start; }
	.hm-head--offset .hm-head__title,
	.hm-head--offset .hm-head__sub { text-align: left; }

	/* Figma component "Heading_mobile" (bar 90×6, 12px to the title, title 32/1.4, subtitle 14/20). */
	.hm-head { gap: 8px; }
	.hm-head__bar { height: 6px; }
	.hm-head--center .hm-head__bar,
	.hm-head--left .hm-head__bar,
	.hm-head--offset .hm-head__bar { margin-bottom: 4px; }
	.hm-head__title { font-size: 32px; line-height: 1.4; }
	.hm-head__sub { font-size: 14px; line-height: 20px; }

	/* Round previous/next buttons (Figma component "arrow": grey / orange, 32px). */
	.ab-services__arrow {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 32px;
		height: 32px;
		padding: 0;
		border: 0;
		border-radius: 16px;
		background: var(--hm-gray-bg);
		color: #3f3f46;
		transition: background-color .2s ease, color .2s ease;
	}
	.ab-services__arrow .dsms-icon { width: 20px; height: 20px; }
	.ab-services__arrow--next { background: var(--hm-primary); color: #fff; }
	.ab-services__arrow:hover { background: var(--hm-primary-hover); color: #fff; }
	.ab-services__arrow:focus-visible { outline: 2px solid var(--hm-black); outline-offset: 2px; }

	/* Dots (Figma "Frame 661" mobile: 8px, active 26px). */
	.hm-dots__dot { width: 8px; height: 8px; border-radius: 4px; }
	.hm-dots__dot.is-active { width: 26px; }

	.hm-intro__photos { gap: 8px; margin-top: 24px; }

	.hm-services__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.hm-service__title { font-size: 22px; }

	.hm-staging { --st-w: calc(100vw - var(--hm-gutter) * 2 - 24px); --st-gap: 12px; }
	.hm-staging__top { align-items: flex-start; }
	.hm-ba__handle { width: 38px; height: 38px; }

	.hm-interior__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; margin: 24px 0; }
	.hm-interior__title { font-size: 20px; }

	.hm-leasing__list li { font-size: 16px; }

	.hm-explore { --ex-w: 200px; --ex-h: 150px; --ex-wa: 260px; --ex-ha: 195px; --ex-gap: 12px; }
	.hm-explore__rooms-wrap { margin-inline: calc(var(--hm-gutter) * -1); }
	.hm-explore__rooms { padding-inline: var(--hm-gutter); }

	.hm-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
	.hm-why__title { font-size: 16px; }
}

/* ==========================================================================
   Homepage on phones — Figma "Home" mobile 440 (182:10063).
   Scoped to the homepage (body.dsms-ui2--home); section spacing and "Why choose us"
   are shared with About (body.dsms-ui2--about, same Figma mobile parts).
   ========================================================================== */
@media (max-width: 767.98px) {
	:is(.dsms-ui2--home, .dsms-ui2--about, .dsms-ui2--leasing, .dsms-ui2--interior, .dsms-ui2--staging, .dsms-ui2--referral) .hm-section { margin-top: 0; padding-block: 40px; }
	:is(.dsms-ui2--home, .dsms-ui2--about, .dsms-ui2--leasing, .dsms-ui2--interior, .dsms-ui2--staging, .dsms-ui2--referral) .hm-head__title { color: var(--hm-heading); }
	:is(.dsms-ui2--home, .dsms-ui2--about, .dsms-ui2--leasing, .dsms-ui2--interior, .dsms-ui2--staging, .dsms-ui2--referral) .hm-head--dark .hm-head__title { color: #fff; }
	/* The why band (photo) runs straight into the footer CTA. */
	body:is(.dsms-ui2--home, .dsms-ui2--about, .dsms-ui2--leasing, .dsms-ui2--interior, .dsms-ui2--staging, .dsms-ui2--referral):has(.site-main > .hm-section:last-child) .site-footer.ftr { margin-top: 0; }

	/* ---------- Hero (182:10065): portrait photo, dark text bottom-left ---------- */
	.dsms-ui2--home .hm-hero--mimg {
		align-items: flex-end;
		justify-content: flex-start;
		min-height: calc(100vw * 750 / 440);
		padding: 120px var(--hm-gutter) 48px;
	}
	.dsms-ui2--home .hm-hero--mimg .hm-hero__bg { object-position: left center; }
	.dsms-ui2--home .hm-hero--mimg .hm-hero__box {
		align-items: flex-start;
		gap: 24px;
		max-width: none;
		padding: 0;
		background: none;
		text-align: left;
	}
	.hm-hero__text { display: flex; flex-direction: column; gap: 12px; }
	.dsms-ui2--home .hm-hero--mimg .hm-hero__title { color: var(--hm-black); font-size: 48px; line-height: 54px; }
	.hm-hero__sub { margin: 0; color: #fff; font-size: 18px; font-weight: 500; line-height: 1.5; }
	.dsms-ui2--home .hm-hero--mimg .hm-hero__sub { color: var(--hm-text-2); font-size: 24px; }

	/* ---------- Intro (182:10069) ---------- */
	.dsms-ui2--home .hm-intro .hm-head { align-items: flex-start; max-width: none; text-align: left; }
	.dsms-ui2--home .hm-intro .hm-head__title { line-height: 40px; }
	.dsms-ui2--home .hm-intro .hm-head__sub { color: var(--hm-text-2); font-size: 20px; line-height: 1.5; }
	.hm-intro__mphoto { margin: 24px 0 0; aspect-ratio: 400 / 448; border-radius: 12px; overflow: hidden; }
	.hm-intro__mphoto img { display: block; width: 100%; height: 100%; object-fit: cover; }

	/* ---------- Our Services (185:11852): photo cards, title on a dark gradient ---------- */
	.dsms-ui2--home .hm-services__grid { gap: 20px; margin-top: 24px; }
	.dsms-ui2--home .hm-service {
		position: relative;
		display: block;
		aspect-ratio: 400 / 216;
		border-radius: 12px;
		overflow: hidden;
		background: #e9eaec;
	}
	.dsms-ui2--home .hm-service__media { position: absolute; inset: 0; aspect-ratio: auto; }
	.dsms-ui2--home .hm-service__body {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		justify-content: center;
		align-items: flex-end;
		width: 53.25%;
		padding: 20px 24px 20px 20px;
		background: linear-gradient(90deg, rgba(28, 15, 19, 0) 0%, rgba(28, 15, 19, .3) 30.57%, rgba(28, 15, 19, .6) 100%);
		pointer-events: none;
	}
	.dsms-ui2--home .hm-service__title { color: #fff; font-size: 24px; line-height: 1.4; text-align: right; overflow-wrap: break-word; }
	.dsms-ui2--home .hm-service__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
	.dsms-ui2--home .hm-service__link:focus-visible { outline: 0; }
	.dsms-ui2--home .hm-service:has(.hm-service__link:focus-visible) { outline: 2px solid var(--hm-primary); outline-offset: 2px; }

	/* ---------- Staging (182:10084): slide on the left, next one peeking ---------- */
	.dsms-ui2--home .hm-staging { --st-w: calc(100vw - var(--hm-gutter) - 47px); --st-gap: 16px; }
	.dsms-ui2--home .hm-staging .hm-head { align-items: center; width: 100%; text-align: center; }
	.dsms-ui2--home .hm-staging .hm-head__sub { align-self: stretch; }
	.dsms-ui2--home .hm-staging__stage { margin-top: 24px; }
	.dsms-ui2--home .hm-staging__track { height: calc(var(--st-w) * 325 / 373); }
	.dsms-ui2--home .hm-staging__slide {
		left: var(--hm-gutter);
		transform: translateX(calc(var(--off) * (100% + var(--st-gap))));
		transition: transform .55s cubic-bezier(.22, .61, .36, 1), opacity .3s ease;
	}
	.dsms-ui2--home .hm-staging__slide.is-before { opacity: 0; }
	.dsms-ui2--home .hm-staging__slide.no-anim { transition: none; }
	/* Before part darkened 30%; neighbour slides fully darkened (Figma). */
	.dsms-ui2--home .hm-ba::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, .3); pointer-events: none; }
	.dsms-ui2--home .hm-ba__after { z-index: 1; }
	.dsms-ui2--home .hm-ba__line { z-index: 2; background: #fff; }
	.dsms-ui2--home .hm-ba__handle { z-index: 2; width: 34px; height: 34px; padding: 0 4px; }
	.dsms-ui2--home .hm-ba__handle .dsms-icon { width: 13px; height: 13px; }
	.dsms-ui2--home .hm-staging__slide:not(.is-current) .hm-ba::after { content: ""; position: absolute; inset: 0; z-index: 3; background: rgba(0, 0, 0, .3); }
	.dsms-ui2--home .hm-staging__foot {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		margin-top: 16px;
		padding-inline: var(--hm-gutter);
	}
	.dsms-ui2--home .hm-staging .hm-staging__foot .hm-dots { margin-top: 0; justify-content: flex-start; }
	.dsms-ui2--home .hm-staging__foot .hm-staging__btn { margin-left: auto; }

	/* ---------- Interior Design (182:10102): swipe carousel ---------- */
	.dsms-ui2--home .hm-interior { --in-w: calc(100vw - 78px); }
	.dsms-ui2--home .hm-interior .hm-head { align-items: flex-start; max-width: none; text-align: left; }
	.dsms-ui2--home .hm-interior__slider { display: flex; flex-direction: column; align-items: center; gap: 20px; margin: 32px 0; }
	.dsms-ui2--home .hm-interior__grid {
		display: flex;
		align-items: center;
		gap: 20px;
		width: 100vw;
		height: calc(var(--in-w) * 486 / 361);
		margin: 0 calc(var(--hm-gutter) * -1);
		padding-inline: calc((100vw - var(--in-w)) / 2);
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: calc((100vw - var(--in-w)) / 2);
		scrollbar-width: none;
		overscroll-behavior-x: contain;
	}
	.dsms-ui2--home .hm-interior__grid::-webkit-scrollbar { display: none; }
	.dsms-ui2--home .hm-interior__card {
		position: relative;
		flex: 0 0 var(--in-w);
		display: block;
		height: 88%;
		border-radius: 12px;
		overflow: hidden;
		scroll-snap-align: center;
		transition: height .35s ease;
	}
	.dsms-ui2--home .hm-interior__card.is-active { height: 100%; }
	.dsms-ui2--home .hm-interior__media { position: absolute; inset: 0; aspect-ratio: auto; }
	.dsms-ui2--home .hm-interior__body {
		position: absolute;
		right: 0;
		bottom: 0;
		left: 0;
		display: flex;
		flex-direction: column;
		gap: 3px;
		padding: 16px 24px 20px;
		background: linear-gradient(0deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 104%);
		opacity: 0;
		transition: opacity .3s ease;
	}
	.dsms-ui2--home .hm-interior__card.is-active .hm-interior__body { opacity: 1; }
	.hm-interior__count { margin: 0; color: #f4f3f6; font-size: 12px; line-height: 20px; }
	.hm-interior__count b { color: var(--hm-primary); font-size: 16px; font-weight: 600; line-height: 24px; }
	.dsms-ui2--home .hm-interior__title { color: var(--hm-neutral); font-size: 24px; line-height: 1.4; }
	.dsms-ui2--home .hm-interior .hm-center { display: block; }
	.dsms-ui2--home .hm-interior__btn { display: flex; width: 100%; padding: 10px 24px; font-size: 16px; line-height: 24px; }

	/* ---------- Leasing Management (208:12118): photo, card overlapping on a peach band ---------- */
	.dsms-ui2--home .hm-leasing {
		display: flex;
		flex-direction: column;
		gap: 0;
		padding: 0 0 39px;
		background: #fff1ea;
	}
	.dsms-ui2--home .hm-leasing__media { order: -1; min-height: 0; aspect-ratio: 440 / 492; }
	.dsms-ui2--home .hm-leasing__content {
		position: relative;
		z-index: 1;
		gap: 24px;
		margin: -44px var(--hm-gutter) 0;
		padding: 32px 20px;
		border-radius: 20px;
		background: #fff;
	}
	.dsms-ui2--home .hm-leasing--noimg .hm-leasing__content { margin-top: 40px; }
	.dsms-ui2--home .hm-leasing .hm-head { align-items: center; align-self: stretch; text-align: center; }
	.dsms-ui2--home .hm-leasing .hm-head__sub { align-self: stretch; text-align: left; }
	.dsms-ui2--home .hm-leasing__list li { gap: 8px; color: var(--hm-text-2); font-size: 16px; line-height: 24px; }
	.dsms-ui2--home .hm-leasing__list .dsms-icon {
		flex-shrink: 0;
		width: 22px;
		height: 22px;
		padding: 3px;
		border-radius: 50%;
		background: #ffeee5;
		color: var(--hm-primary);
	}

	/* ---------- Explore Real Spaces (182:10130) ---------- */
	.dsms-ui2--home .hm-explore {
		--ex-wa: calc(100vw - 115px);
		--ex-ha: calc(var(--ex-wa) * 365 / 325);
		--ex-w: calc(var(--ex-wa) * 262 / 325);
		--ex-h: calc(var(--ex-w) * 295 / 262);
		--ex-gap: 20px;
		background: none;
	}
	.dsms-ui2--home .hm-explore .hm-head { margin-bottom: 8px; }
	.dsms-ui2--home .hm-explore__room { padding: 8px 12px; }
	.dsms-ui2--home .hm-explore__body { flex-direction: row; align-items: center; gap: 32px; margin-top: 24px; }
	.dsms-ui2--home .hm-explore__groups { flex-direction: column; justify-content: flex-start; gap: 40px; width: 24px; }
	.dsms-ui2--home .hm-explore__group { flex-direction: column; gap: 12px; width: 24px; font-size: 16px; }
	.dsms-ui2--home .hm-explore__group-label { writing-mode: vertical-rl; }
	.dsms-ui2--home .hm-explore__viewport { border-radius: 12px; }
	.dsms-ui2--home .hm-explore__slide { border-radius: 12px; }
	.dsms-ui2--home .hm-explore__gallery { height: calc(var(--ex-ha) + 28px); }
	.dsms-ui2--home .hm-explore .hm-center { margin-top: 24px; }

	/* ---------- Why choose us (182:10162): white cards on a photo ---------- */
	:is(.dsms-ui2--home, .dsms-ui2--about) .hm-why--bg {
		padding-bottom: calc(100vw * 216 / 440);
		background: #fbf1ea var(--why-bg) center bottom / 100% auto no-repeat;
	}
	:is(.dsms-ui2--home, .dsms-ui2--about) .hm-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin-top: 24px; }
	:is(.dsms-ui2--home, .dsms-ui2--about) .hm-why__item {
		justify-content: center;
		gap: 5px;
		padding: 20px;
		border-radius: 12px;
		background: #fff;
	}
	:is(.dsms-ui2--home, .dsms-ui2--about) .hm-why__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
	:is(.dsms-ui2--home, .dsms-ui2--about) .hm-why__icon { width: 60px; height: 60px; padding: 4px 6px; }
	:is(.dsms-ui2--home, .dsms-ui2--about) .hm-why__title { color: var(--hm-black); font-size: 14px; line-height: 20px; }
	:is(.dsms-ui2--home, .dsms-ui2--about) .hm-why__cta { margin-top: 24px; }
}

/* Large phones / small tablets in portrait (576–767px): same phone layout, but kept to a
   560px column so photos don't grow to tablet height. */
@media (min-width: 576px) and (max-width: 767.98px) {
	.dsms-ui2--home { --hm-col: 560px; --hm-side: calc((100vw - var(--hm-col)) / 2 + var(--hm-gutter)); }
	.dsms-ui2--home .hm-wrap { max-width: var(--hm-col); }
	.dsms-ui2--home .hm-hero--mimg { min-height: 820px; padding-inline: var(--hm-side); }
	.dsms-ui2--home .hm-staging { --st-w: calc(var(--hm-col) - 67px); }
	.dsms-ui2--home .hm-staging__slide { left: var(--hm-side); }
	.dsms-ui2--home .hm-staging__foot { padding-inline: var(--hm-side); }
	.dsms-ui2--home .hm-interior { --in-w: 440px; }
	.dsms-ui2--home .hm-leasing__media { max-height: 600px; }
	.dsms-ui2--home .hm-leasing__content { width: calc(var(--hm-col) - var(--hm-gutter) * 2); margin-inline: auto; }
	.dsms-ui2--home .hm-explore { --ex-wa: 400px; }
	:is(.dsms-ui2--home, .dsms-ui2--about) .hm-why--bg { padding-bottom: 260px; background-size: cover; }
}

@media (max-width: 379.98px) {
	.dsms-ui2--home .hm-hero--mimg .hm-hero__title { font-size: 40px; line-height: 46px; }
	.dsms-ui2--home .hm-hero--mimg .hm-hero__sub { font-size: 20px; }
	.hm-head__title { font-size: 28px; }
	.dsms-ui2--home .hm-service__title { font-size: 20px; }
}

/* Desktop/tablet-only and phone-only content (e.g. different titles or buttons). */
@media (min-width: 768px) {
	.hm-show-m { display: none !important; }
}
@media (max-width: 767.98px) {
	.hm-show-d { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	.hm-staging__slide,
	.hm-explore__track,
	.hm-explore__slide,
	.hm-explore__panel.is-active,
	.hm-explore__rooms.is-active,
	.hm-service__media img,
	.hm-interior__media img,
	.hm-interior__card,
	.hm-interior__body { transition: none; animation: none; }
}
