/* v6.27 sheets: the service window (#serviceOverlay) and the project window
 * (#projectOverlay) share one panel system.
 * Desktop: a floating panel that slides in from the right, media on the left,
 * details on the right, a sticky action bar. Phones: a bottom sheet with the
 * media as its header. Colours follow the visitor's system setting through
 * the tokens below (dark by default, light under prefers-color-scheme: light). */

:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) {
	--sheet-ease: cubic-bezier(0.32, 0.72, 0, 1);
	--sheet-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--sheet-bg: #0e0e10;
	--sheet-media-bg: #050506;
	--sheet-strong: #ffffff;
	--sheet-text: #f4f4f1;
	--sheet-muted: rgba(244, 244, 241, .64);
	--sheet-faint: rgba(244, 244, 241, .44);
	--sheet-surface: rgba(255, 255, 255, .045);
	--sheet-surface-hover: rgba(255, 255, 255, .08);
	--sheet-line: rgba(255, 255, 255, .1);
	--sheet-line-strong: rgba(255, 255, 255, .24);
	--sheet-control: rgba(255, 255, 255, .06);
	--sheet-close-bg: #f4f4f1;
	--sheet-close-ink: #0a0a0b;
	--sheet-bar: rgba(14, 14, 16, .94);
	--sheet-scrim: rgba(6, 6, 8, .66);
	--sheet-accent: var(--red, #e20816);
	--sheet-accent-soft: rgba(226, 8, 22, .08);
	--sheet-accent-line: rgba(226, 8, 22, .7);
	--sheet-pill: rgba(10, 10, 11, .72);
	--sheet-pill-ink: #ffffff;
	--sheet-shadow: rgba(0, 0, 0, .45);
	position: fixed;
	inset: 0;
	z-index: 300;
	display: block !important;
	padding: 0;
	overflow: hidden;
	background: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	color-scheme: dark;
	visibility: hidden;
	pointer-events: none;
	/* Closing: stay visible until the exit motion has finished. */
	transition: visibility 0s linear 420ms;
}
@media (prefers-color-scheme: light) {
	:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) {
		--sheet-bg: #f6f6f3;
		--sheet-media-bg: #e8e8e3;
		--sheet-strong: #0a0a0b;
		--sheet-text: #1a1a1c;
		--sheet-muted: #5c5c58;
		--sheet-faint: #6f6f6a;
		--sheet-surface: #ffffff;
		--sheet-surface-hover: #ffffff;
		--sheet-line: rgba(10, 10, 11, .1);
		--sheet-line-strong: rgba(10, 10, 11, .26);
		--sheet-control: #ffffff;
		--sheet-close-bg: #0a0a0b;
		--sheet-close-ink: #ffffff;
		--sheet-bar: rgba(246, 246, 243, .95);
		--sheet-scrim: rgba(20, 20, 22, .42);
		--sheet-accent-soft: rgba(226, 8, 22, .06);
		--sheet-accent-line: rgba(226, 8, 22, .55);
		--sheet-shadow: rgba(10, 10, 11, .18);
		color-scheme: light;
	}
}
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay).open {
	visibility: visible;
	pointer-events: auto;
	transition: visibility 0s linear 0s;
}
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) ::selection { background: rgba(226, 8, 22, .5); color: #fff; }

/* Backdrop */
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .sw-sheet__backdrop {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: var(--sheet-scrim);
	opacity: 0;
	transition: opacity 320ms var(--sheet-ease-out);
}
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay).open .sw-sheet__backdrop { opacity: 1; transition-duration: 420ms; }

/* Panel */
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .sw-sheet__panel {
	position: absolute;
	z-index: 1;
	inset: 0;
	width: 100%;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	overflow: hidden;
	border: 0;
	border-radius: 0;
	background: var(--sheet-bg);
	color: var(--sheet-text);
	box-shadow: -40px 0 120px var(--sheet-shadow);
	transform: translate3d(100%, 0, 0);
	transition: transform 380ms var(--sheet-ease-out);
	will-change: transform;
}
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay).open .sw-sheet__panel {
	transform: translate3d(0, 0, 0);
	transition: transform 500ms var(--sheet-ease);
}

/* Service photo column */
#serviceOverlay .sw-sheet__media {
	position: relative;
	margin: 0;
	overflow: hidden;
	background: var(--sheet-media-bg);
}
#serviceOverlay .sw-sheet__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(.9) contrast(1.04);
	transform: scale(1.14);
	transition: transform 300ms var(--sheet-ease-out);
}
#serviceOverlay.open .sw-sheet__image {
	transform: scale(1);
	transition: transform 1400ms var(--sheet-ease-out);
}
/* Seamless edge: the photo itself fades out into the panel colour (mask), so
 * there is no visible seam in either the light or the dark theme. */
#serviceOverlay .sw-sheet__media { background: var(--sheet-bg); }
#serviceOverlay .sw-sheet__image {
	-webkit-mask-image: linear-gradient(90deg, #000 0%, #000 52%, rgba(0, 0, 0, .55) 74%, transparent 100%);
	mask-image: linear-gradient(90deg, #000 0%, #000 52%, rgba(0, 0, 0, .55) 74%, transparent 100%);
}
#serviceOverlay .sw-sheet__media::after { content: none; }
/* Light theme: a dark photo fading into white reads as a milky band, so the
 * photo sits as a framed image with a crisp edge instead. */
@media (prefers-color-scheme: light) {
	#serviceOverlay .sw-sheet__media { padding: 14px 0 14px 14px; }
	#serviceOverlay .sw-sheet__image {
		inset: 14px 0 14px 14px;
		width: calc(100% - 14px);
		height: calc(100% - 28px);
		border-radius: 18px;
		-webkit-mask-image: none;
		mask-image: none;
	}
}

/* Detail column */
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .sw-sheet__main {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	min-width: 0;
	min-height: 0;
}
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .sw-sheet__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px clamp(22px, 3.2vw, 44px) 14px;
}
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .sw-sheet__position {
	margin: 0;
	color: var(--sheet-muted);
	font-family: inherit;
	font-size: .9rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	font-variant-numeric: tabular-nums;
}
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .sw-sheet__controls { display: flex; gap: 6px; }
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) :is(.sw-sheet__step, .sw-sheet__close, .project-case-nav button) {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--sheet-line);
	border-radius: 50%;
	background: var(--sheet-control);
	color: var(--sheet-text);
	line-height: 0;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, transform 120ms var(--sheet-ease-out);
}
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .sw-sheet__close { background: var(--sheet-close-bg); color: var(--sheet-close-ink); border-color: transparent; }
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) :is(.sw-sheet__step, .sw-sheet__close, .project-case-nav button) svg { display: block; }
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) :is(.sw-sheet__step, .sw-sheet__close, .project-case-nav button):active { transform: scale(.94); }
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) :is(.sw-sheet__step, .sw-sheet__close, .project-case-nav button):focus-visible { outline: 2px solid var(--sheet-accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
	:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .sw-sheet__step:hover { background: var(--sheet-surface-hover); border-color: var(--sheet-line-strong); }
	:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .sw-sheet__close:hover { opacity: .86; }
}

:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .modalbody {
	min-height: 0;
	padding: clamp(26px, 3.6vw, 48px) clamp(22px, 3.2vw, 44px) 40px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: var(--sheet-line-strong) transparent;
	background: none;
	-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
	mask-image: linear-gradient(180deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
}
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .sw-sheet__block + .sw-sheet__block { margin-top: clamp(36px, 4.4vw, 56px); }

:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) :is(#modalTitle, #projectCaseTitle) {
	margin: 0;
	color: var(--sheet-strong);
	font-size: clamp(3rem, 5.6vw, 5.8rem);
	font-weight: 600;
	line-height: .9;
	letter-spacing: -.05em;
	text-wrap: balance;
}
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .modalintro {
	max-width: 54ch;
	margin: 20px 0 0;
	color: var(--sheet-muted);
	font-size: clamp(1.02rem, 1.3vw, 1.18rem);
	line-height: 1.6;
	text-wrap: pretty;
}

#serviceOverlay .sw-sheet__section-head { margin-bottom: 18px; }
#serviceOverlay .sw-sheet__section-head .ey { display: none; }
#serviceOverlay .sw-sheet__section-head h3 {
	margin: 0;
	color: var(--sheet-strong);
	font-size: clamp(1.5rem, 2.2vw, 2.1rem);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -.035em;
}
#serviceOverlay .sw-sheet__section-head p { margin: 8px 0 0; color: var(--sheet-faint); font-size: .88rem; line-height: 1.5; }

/* Scope choice: a vertical, radio-like list */
#serviceOverlay .scopes { display: grid; gap: 8px; border: 0; }
#serviceOverlay .scope {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 22px;
	align-items: center;
	gap: 4px 14px;
	width: 100%;
	margin: 0;
	padding: 18px 18px 18px 20px;
	border: 1px solid var(--sheet-line);
	border-radius: 16px;
	background: var(--sheet-surface);
	color: var(--sheet-text);
	text-align: left;
	font: inherit;
	cursor: pointer;
	transition: background-color 180ms ease, border-color 180ms ease, transform 120ms var(--sheet-ease-out);
}
#serviceOverlay .scope::after {
	content: "";
	grid-column: 2;
	grid-row: 1 / span 2;
	align-self: center;
	box-sizing: border-box;
	width: 22px;
	height: 22px;
	border: 1.5px solid var(--sheet-line-strong);
	border-radius: 50%;
	transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
#serviceOverlay .scope b { grid-column: 1; display: block; margin: 0; color: var(--sheet-strong); font-size: 1.12rem; font-weight: 600; letter-spacing: -.02em; }
#serviceOverlay .scope p { grid-column: 1; margin: 0; color: var(--sheet-muted); font-size: .9rem; line-height: 1.5; }
#serviceOverlay .scope.is-selected { border-color: var(--sheet-accent-line); background: var(--sheet-accent-soft); }
#serviceOverlay .scope.is-selected::after {
	border-color: var(--sheet-accent);
	background: var(--sheet-accent);
	box-shadow: inset 0 0 0 4px var(--sheet-bg);
}
#serviceOverlay .scope:active { transform: scale(.985); }
#serviceOverlay .scope:focus-visible { outline: 2px solid var(--sheet-accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
	#serviceOverlay .scope:not(.is-selected):hover { border-color: var(--sheet-line-strong); background: var(--sheet-surface-hover); }
}

/* Included: two-column checklist */
#serviceOverlay .chips {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 24px;
	margin: 0;
}
#serviceOverlay .chip {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 0;
	border: 0;
	border-bottom: 1px solid var(--sheet-line);
	border-radius: 0;
	background: none;
	color: var(--sheet-text);
	font-size: .95rem;
	font-weight: 500;
}
#serviceOverlay .chip::before {
	content: "";
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	background: var(--sheet-accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.3 5.6 10.4 11.5 3.8' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.3 5.6 10.4 11.5 3.8' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
#serviceOverlay .combo {
	margin: 18px 0 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--sheet-muted);
	font-size: .9rem;
	line-height: 1.55;
}
#serviceOverlay .combo:empty { display: none; }

/* Related services */
#serviceOverlay .service-related .scope-title {
	margin: 0 0 14px;
	color: var(--sheet-strong);
	font-family: inherit;
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: -.01em;
	text-transform: lowercase;
}
#serviceOverlay .service-related .scope-title::first-letter { text-transform: uppercase; }
#serviceOverlay .service-related-links { display: flex; flex-wrap: wrap; gap: 8px; }
#serviceOverlay .service-related-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--sheet-line);
	border-radius: 999px;
	background: var(--sheet-surface);
	color: var(--sheet-strong);
	font: 600 .9rem / 1 Inter, system-ui, sans-serif;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, transform 120ms var(--sheet-ease-out);
}
#serviceOverlay .service-related-link small { display: none; }
#serviceOverlay .service-related-link::after {
	content: "";
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	background: var(--sheet-accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 9 9 3M4 3h5v5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 9 9 3M4 3h5v5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 160ms var(--sheet-ease-out);
}
#serviceOverlay .service-related-link:active { transform: scale(.97); }
#serviceOverlay .service-related-link:focus-visible { outline: 2px solid var(--sheet-accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
	#serviceOverlay .service-related-link:hover { border-color: var(--sheet-line-strong); background: var(--sheet-surface-hover); }
	#serviceOverlay .service-related-link:hover::after { transform: translate(2px, -2px); }
}

/* Webdesign comparison */
#serviceOverlay .web-compare { margin-top: clamp(36px, 4.4vw, 56px); padding-top: 0; border: 0; }
#serviceOverlay .web-compare__head { display: block; margin-bottom: 18px; }
#serviceOverlay .web-compare__head > small { display: none; }
#serviceOverlay .web-compare__head h3 { color: var(--sheet-strong); font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: 1.08; letter-spacing: -.035em; }
#serviceOverlay .web-compare__head p { margin-top: 8px; color: var(--sheet-faint); font-size: .88rem; }
#serviceOverlay .web-compare__grid { border-color: var(--sheet-line); border-radius: 16px; background: var(--sheet-surface); }
#serviceOverlay .web-compare__columns,
#serviceOverlay .web-compare__row { grid-template-columns: minmax(130px, 1.3fr) repeat(3, minmax(0, 1fr)); }
#serviceOverlay .web-compare__columns { background: var(--sheet-control); color: var(--sheet-muted); }
#serviceOverlay .web-compare__columns span,
#serviceOverlay .web-compare__row > span,
#serviceOverlay .web-compare__row > strong { min-height: 54px; padding: 12px 10px; }
#serviceOverlay .web-compare__row { border-top-color: var(--sheet-line); }
#serviceOverlay .web-compare__row > strong { color: var(--sheet-strong); font-size: .86rem; font-weight: 600; }
#serviceOverlay .web-compare__row > span { border-left-color: var(--sheet-line); color: var(--sheet-muted); }
#serviceOverlay .web-compare__columns span:last-child,
#serviceOverlay .web-compare__row > span:last-child { background: var(--sheet-accent-soft); color: var(--sheet-strong); }
#serviceOverlay .web-compare__row [data-state="yes"] b { color: var(--sheet-accent); }
#serviceOverlay .web-compare__row [data-state="no"] b { color: var(--sheet-faint); }
#serviceOverlay .web-compare__row [data-state="partial"] b { color: var(--sheet-muted); }
#serviceOverlay .web-compare__row--price > span:last-child b { color: var(--sheet-strong); }

/* Full-screen panels: keep text at a readable width inside the wide column. */
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .modalbody > * { max-width: 760px; }

/* Sticky action bar */
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .service-modal-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 0;
	padding: 16px clamp(22px, 3.2vw, 44px) calc(16px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--sheet-line);
	background: var(--sheet-bar);
}
#serviceOverlay .service-modal-footer small { display: none; }
#serviceOverlay .service-modal-footer strong { display: block; color: var(--sheet-strong); font-size: .98rem; font-weight: 600; letter-spacing: -.01em; }
#serviceOverlay .service-modal-footer .offerline { display: block; margin-top: 4px; color: var(--sheet-faint); font-size: .78rem; }
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .service-modal-footer .btn { flex: 0 0 auto; min-height: 50px; margin: 0; white-space: nowrap; }
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .service-modal-footer .btn.line {
	border-color: var(--sheet-line-strong);
	background: transparent;
	color: var(--sheet-strong);
}

/* 7.9.12 introduction page next to the inquiry */
#serviceOverlay .service-modal-footer { flex-wrap: wrap; }
#serviceOverlay .service-modal-footer > div:first-child { flex: 1 1 220px; }
#serviceOverlay .sw-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 1 auto; }
@media (max-width: 760px) {
	#serviceOverlay .service-modal-footer { flex-wrap: wrap; }
	#serviceOverlay .sw-modal-actions { width: 100%; }
	#serviceOverlay .sw-modal-actions .btn { flex: 1 1 0; min-width: 0; padding-left: 12px; padding-right: 12px; font-size: .86rem; }
}

/* Project window ------------------------------------------------------- */
#projectOverlay .sw-sheet__panel { grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); }
#projectOverlay .sw-case__media {
	position: relative;
	min-width: 0;
	overflow: hidden;
	background: var(--sheet-media-bg);
}
#projectOverlay .project-case-gallery {
	position: absolute;
	inset: 0;
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	outline: none;
}
#projectOverlay .project-case-gallery::-webkit-scrollbar { display: none; }
#projectOverlay .project-case-gallery figure {
	position: relative;
	flex: 0 0 100%;
	height: 100%;
	margin: 0;
	overflow: hidden;
	scroll-snap-align: center;
	background: var(--sheet-media-bg);
}
#projectOverlay .project-case-gallery :is(img, video) {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: none;
}
#projectOverlay .project-case-gallery figcaption { display: none; }
#projectOverlay .project-case-gallery:focus-visible { box-shadow: inset 0 0 0 2px var(--sheet-accent); }
#projectOverlay.open .project-case-gallery figure:first-child :is(img, video) {
	animation: sw-case-settle 1400ms var(--sheet-ease-out) both;
}
@keyframes sw-case-settle { from { transform: scale(1.12); } to { transform: scale(1); } }
#projectOverlay .sw-case__media-bar {
	position: absolute;
	z-index: 2;
	left: 18px;
	right: 18px;
	bottom: 18px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	pointer-events: none;
}
#projectOverlay .sw-case__note { display: none; }
#projectOverlay .project-case-nav {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: var(--sheet-pill);
	pointer-events: auto;
}
#projectOverlay .project-case-nav[hidden] { display: none; }
#projectOverlay .project-case-nav button {
	width: 40px;
	height: 40px;
	border-color: transparent;
	background: rgba(255, 255, 255, .1);
	color: #fff;
}
#projectOverlay .project-case-nav span {
	min-width: 48px;
	color: #fff;
	font-size: .82rem;
	font-weight: 600;
	line-height: 1;
	text-align: center;
	font-variant-numeric: tabular-nums;
}
@media (hover: hover) and (pointer: fine) {
	#projectOverlay .project-case-nav button:hover { background: rgba(255, 255, 255, .22); }
}
#projectOverlay .project-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 24px;
	margin: 0;
	border: 0;
}
#projectOverlay .project-facts > div {
	display: grid;
	gap: 4px;
	padding: 16px 0;
	border: 0;
	border-top: 1px solid var(--sheet-line);
}
#projectOverlay .project-facts span { color: var(--sheet-faint); font-family: inherit; font-size: .82rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
#projectOverlay .project-facts strong { color: var(--sheet-strong); font-size: 1rem; font-weight: 600; line-height: 1.35; }
#projectOverlay .sw-case__actions { justify-content: flex-end; }
#projectOverlay .sw-case__actions .btn { flex: 1 1 0; max-width: 300px; }


/* Inquiry window -------------------------------------------------------- */
#quickInquiryOverlay {
	--sheet-field: rgba(255, 255, 255, .05);
	--sheet-field-focus: rgba(255, 255, 255, .08);
	--sheet-check-ok: #8ee05b;
}
@media (prefers-color-scheme: light) {
	#quickInquiryOverlay { --sheet-field: #ffffff; --sheet-field-focus: #ffffff; --sheet-check-ok: #2f8f2f; }
}
#quickInquiryOverlay .sw-sheet__panel { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
#quickInquiryOverlay .sw-ask__intro {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-width: 0;
	overflow: hidden;
	background: #050506;
	color: #fff;
}
#quickInquiryOverlay .sw-ask__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .55;
	filter: saturate(.85);
	transform: scale(1.12);
	transition: transform 300ms var(--sheet-ease-out);
}
#quickInquiryOverlay.open .sw-ask__image { transform: scale(1); transition: transform 1400ms var(--sheet-ease-out); }
#quickInquiryOverlay .sw-ask__intro::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(5, 5, 6, .1) 0%, rgba(5, 5, 6, .35) 45%, rgba(5, 5, 6, .9) 100%);
}
#quickInquiryOverlay .sw-ask__intro-copy {
	position: relative;
	z-index: 1;
	max-width: 560px;
	padding: clamp(28px, 4vw, 64px);
}
#quickInquiryOverlay .sw-ask__kicker { margin: 0 0 14px; color: rgba(255, 255, 255, .7); font-size: .95rem; font-weight: 500; }
#quickInquiryOverlay #quickInquiryTitle {
	margin: 0;
	color: #fff;
	font-size: clamp(2.8rem, 5vw, 5.2rem);
	font-weight: 600;
	line-height: .92;
	letter-spacing: -.05em;
	text-wrap: balance;
}
#quickInquiryOverlay .sw-ask__intro .modalintro { color: rgba(255, 255, 255, .72); }
#quickInquiryOverlay .quick-service-pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 22px;
	padding: 10px 16px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 999px;
	background: rgba(10, 10, 11, .55);
	font-size: .9rem;
	line-height: 1.2;
}
#quickInquiryOverlay .quick-service-pill span { color: rgba(255, 255, 255, .6); font-family: inherit; letter-spacing: 0; text-transform: none; }
#quickInquiryOverlay .quick-service-pill strong { color: #fff; font-weight: 600; }
#quickInquiryOverlay .sw-ask__note { max-width: 46ch; margin: 22px 0 0; color: rgba(255, 255, 255, .58); font-size: .86rem; line-height: 1.55; }

#quickInquiryOverlay .sw-ask__body { padding-bottom: 0; }
#quickInquiryOverlay .quick-inquiry-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 14px;
	max-width: 760px;
	margin: 0;
}
#quickInquiryOverlay .quick-field { display: grid; gap: 7px; min-width: 0; }
#quickInquiryOverlay .quick-field-wide,
#quickInquiryOverlay :is(.quick-checks, .quick-form-actions, .quick-formnote, .quick-success, .sw-form-alert) { grid-column: 1 / -1; }
#quickInquiryOverlay .quick-field > label { color: var(--sheet-muted); font-size: .84rem; font-weight: 500; line-height: 1.4; }
#quickInquiryOverlay .quick-field :is(input, select, textarea) {
	width: 100%;
	min-height: 52px;
	padding: 13px 15px;
	border: 1px solid var(--sheet-line-strong);
	border-radius: 12px;
	background: var(--sheet-field);
	color: var(--sheet-strong);
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.45;
	transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
#quickInquiryOverlay .quick-field textarea { min-height: 132px; resize: vertical; }
#quickInquiryOverlay .quick-field :is(input, textarea)::placeholder { color: var(--sheet-faint); }
#quickInquiryOverlay .quick-field :is(input, select, textarea):focus {
	outline: none;
	border-color: var(--sheet-accent);
	background: var(--sheet-field-focus);
	box-shadow: 0 0 0 3px rgba(226, 8, 22, .18);
}
#quickInquiryOverlay .sw-phone-hint { color: var(--sheet-faint); }
#quickInquiryOverlay #quickInquiryForm .quick-check {
	border-color: var(--sheet-line-strong) !important;
	background: var(--sheet-field) !important;
	color: var(--sheet-text) !important;
}
#quickInquiryOverlay #quickInquiryForm .quick-check input[type="checkbox"] { border-color: var(--sheet-line-strong) !important; }
#quickInquiryOverlay #quickInquiryForm .quick-check:has(input:checked) {
	border-color: var(--sheet-check-ok) !important;
	background: var(--sheet-field) !important;
	color: var(--sheet-strong) !important;
}
#quickInquiryOverlay #quickInquiryForm .quick-check input[type="checkbox"]:checked {
	border-color: var(--sheet-check-ok) !important;
	background: var(--sheet-check-ok) !important;
}
#quickInquiryOverlay .quick-form-actions {
	position: sticky;
	bottom: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 6px -4px 0;
	padding: 16px 4px calc(18px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--sheet-line);
	background: var(--sheet-bg);
}
#quickInquiryOverlay .quick-form-actions .btn { min-height: 52px; min-width: 210px; margin: 0; }
#quickInquiryOverlay .quick-full {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 4px;
	border: 0;
	background: none;
	color: var(--sheet-muted);
	font-family: inherit;
	font-size: .9rem;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	text-decoration: underline;
	text-decoration-color: var(--sheet-line-strong);
	text-underline-offset: 4px;
	transition: color 160ms ease;
}
@media (hover: hover) and (pointer: fine) { #quickInquiryOverlay .quick-full:hover { color: var(--sheet-strong); } }
#quickInquiryOverlay .quick-formnote { order: 10; margin: 0 0 24px; color: var(--sheet-faint); font-size: .8rem; line-height: 1.5; }
#quickInquiryOverlay .quick-success { display: none; padding: 14px 16px; border-radius: 12px; background: rgba(142, 224, 91, .12); color: var(--sheet-strong); font-weight: 500; }
@media (max-width: 860px) {
	#quickInquiryOverlay .sw-ask__intro { flex: 0 0 auto; min-height: min(34vh, 300px); }
	#quickInquiryOverlay .sw-ask__intro-copy { padding: 64px 20px 22px; }
	#quickInquiryOverlay #quickInquiryTitle { font-size: clamp(2.3rem, 11vw, 3.2rem); }
	#quickInquiryOverlay .sw-ask__intro .modalintro,
	#quickInquiryOverlay .sw-ask__note { display: none; }
	#quickInquiryOverlay .quick-service-pill { margin-top: 14px; }
	#quickInquiryOverlay .sw-sheet__top .sw-sheet__position { display: none; }
	#quickInquiryOverlay .quick-inquiry-form { grid-template-columns: 1fr; }
	/* On phones the send button sits at the end of the form instead of
	 * permanently covering a third of the screen. */
	#quickInquiryOverlay .quick-form-actions { position: static; flex-direction: column; align-items: stretch; margin-top: 4px; padding-top: 12px; border-top: 0; }
	#quickInquiryOverlay .quick-form-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	#quickInquiryOverlay .sw-ask__image,
	#quickInquiryOverlay.open .sw-ask__image { transform: none; transition: none; }
}

/* Content entrance: a short stagger after the panel lands. */
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .modalbody > .sw-sheet__block,
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .service-modal-footer {
	opacity: 0;
	transform: translate3d(0, 14px, 0);
	transition: opacity 160ms ease, transform 160ms ease;
}
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay).open .modalbody > .sw-sheet__block,
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay).open .service-modal-footer {
	opacity: 1;
	transform: translate3d(0, 0, 0);
	transition: opacity 460ms var(--sheet-ease-out), transform 560ms var(--sheet-ease-out);
}
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay).open .modalbody > .sw-sheet__block:nth-child(1) { transition-delay: 160ms; }
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay).open .modalbody > .sw-sheet__block:nth-child(2) { transition-delay: 220ms; }
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay).open .modalbody > .sw-sheet__block:nth-child(3) { transition-delay: 280ms; }
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay).open .modalbody > .sw-sheet__block:nth-child(n+4) { transition-delay: 340ms; }
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay).open .service-modal-footer { transition-delay: 300ms; }

/* Phones and small tablets: bottom sheet, media as header */
@media (max-width: 860px) {
	:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .sw-sheet__panel {
		inset: auto;
		top: max(12px, env(safe-area-inset-top));
		right: 0;
		bottom: 0;
		left: 0;
		width: auto;
		display: flex;
		flex-direction: column;
		border-width: 1px 0 0;
		border-radius: 26px 26px 0 0;
		box-shadow: 0 -30px 80px var(--sheet-shadow);
		transform: translate3d(0, 100%, 0);
		transition: transform 320ms var(--sheet-ease-out);
	}
	:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay).open .sw-sheet__panel { transform: translate3d(0, 0, 0); transition: transform 480ms var(--sheet-ease); }
	:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .sw-sheet__panel::before {
		content: "";
		position: absolute;
		z-index: 3;
		top: 8px;
		left: 50%;
		width: 40px;
		height: 4px;
		margin-left: -20px;
		border-radius: 4px;
		background: rgba(255, 255, 255, .6);
	}
	#serviceOverlay .sw-sheet__media { flex: 0 0 auto; height: min(30vh, 260px); }
	#serviceOverlay .sw-sheet__image {
		-webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, rgba(0, 0, 0, .5) 75%, transparent 100%);
		mask-image: linear-gradient(180deg, #000 0%, #000 45%, rgba(0, 0, 0, .5) 75%, transparent 100%);
	}
	#projectOverlay .sw-case__media { flex: 0 0 auto; height: min(46vh, 420px); }
	#projectOverlay .sw-case__media-bar { left: 14px; right: 14px; bottom: 14px; }
	:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .sw-sheet__main { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
	:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .sw-sheet__top {
		position: absolute;
		z-index: 2;
		top: 18px;
		left: 14px;
		right: 14px;
		padding: 0;
		border: 0;
	}
	:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .sw-sheet__position {
		padding: 10px 14px;
		border-radius: 999px;
		background: var(--sheet-pill);
		color: var(--sheet-pill-ink);
		font-size: .82rem;
	}
	:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .sw-sheet__step { background: var(--sheet-pill); border-color: rgba(255, 255, 255, .16); color: #fff; }
	:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .modalbody { flex: 1 1 auto; padding: 18px 20px 32px; }
	:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) :is(#modalTitle, #projectCaseTitle) { font-size: clamp(2.5rem, 12vw, 3.5rem); }
	:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .modalintro { margin-top: 14px; font-size: 1rem; }
	:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .sw-sheet__block + .sw-sheet__block { margin-top: 32px; }
	#serviceOverlay .chips { grid-template-columns: 1fr; }
	#serviceOverlay .scope { padding: 16px 14px 16px 16px; }
	:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .service-modal-footer { padding-inline: 20px; }
	#serviceOverlay .service-modal-footer strong { font-size: .86rem; }
	#serviceOverlay .service-modal-footer .offerline { display: none; }
	#projectOverlay .sw-case__actions .btn { max-width: none; }
}
@media (max-width: 400px) {
	#serviceOverlay .service-modal-footer strong { display: none; }
	#serviceOverlay .service-modal-footer .btn { width: 100%; }
	#projectOverlay .sw-case__actions { flex-direction: column; align-items: stretch; }
}

/* Background tools must never cover a sheet's content or primary action. */
body.lock .sw-experience,
body.lock .sw-brief-open,
body.lock .sw-accessibility { display: none !important; }

@media (prefers-reduced-motion: reduce) {
	:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .sw-sheet__panel,
	:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay).open .sw-sheet__panel { transform: none; transition: opacity 200ms ease; opacity: 0; }
	:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay).open .sw-sheet__panel { opacity: 1; }
	#serviceOverlay .sw-sheet__image,
	#serviceOverlay.open .sw-sheet__image { transform: none; transition: none; }
	#projectOverlay.open .project-case-gallery figure:first-child :is(img, video) { animation: none; }
	:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .modalbody > .sw-sheet__block,
	:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .service-modal-footer,
	:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay).open .modalbody > .sw-sheet__block,
	:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay).open .service-modal-footer { transform: none; transition: opacity 200ms ease; transition-delay: 0s; }
}

/* The inquiry form keeps its sticky send bar crisp: fade only at the top. */
#quickInquiryOverlay .modalbody {
	-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22px);
	mask-image: linear-gradient(180deg, transparent 0, #000 22px);
}

/* v6.36 light theme, stacked sheet: framed photo instead of a fade to white. */
@media (max-width: 860px) and (prefers-color-scheme: light) {
	#serviceOverlay .sw-sheet__media { padding: 10px 10px 0; }
	#serviceOverlay .sw-sheet__image {
		inset: 10px 10px 0;
		width: calc(100% - 20px);
		height: calc(100% - 10px);
		border-radius: 16px;
		-webkit-mask-image: none;
		mask-image: none;
	}
}

/* v6.41 exit motion. An older rule paints every .overlay solid #070709 (!important);
 * on the sheets that turned closing into a black screen. The scrim alone dims the page,
 * so on close the page fades back in while the panel glides out. */
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) { background: transparent !important; }
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay):not(.open) .sw-sheet__panel {
	transition: transform 520ms cubic-bezier(.32, .72, 0, 1), opacity 360ms ease 160ms, box-shadow 520ms ease;
	opacity: .85;
	box-shadow: none;
}
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay):not(.open) .sw-sheet__main,
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay):not(.open) .sw-sheet__media,
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay):not(.open) .sw-case__media {
	opacity: 0;
	transform: translate3d(-24px, 0, 0);
	transition: opacity 240ms ease, transform 420ms cubic-bezier(.32, .72, 0, 1);
}
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay).open .sw-sheet__main,
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay).open .sw-sheet__media,
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay).open .sw-case__media {
	opacity: 1;
	transform: none;
	transition: opacity 320ms ease 120ms, transform 520ms cubic-bezier(.32, .72, 0, 1) 80ms;
}
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay):not(.open) .sw-sheet__backdrop { transition: opacity 460ms cubic-bezier(.32, .72, 0, 1); }
:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) { transition: visibility 0s linear 540ms; }
@media (max-width: 860px) {
	:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay):not(.open) .sw-sheet__main,
	:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay):not(.open) .sw-sheet__media,
	:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay):not(.open) .sw-case__media { transform: translate3d(0, 16px, 0); }
}
@media (prefers-reduced-motion: reduce) {
	:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .sw-sheet__panel,
	:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .sw-sheet__main,
	:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .sw-sheet__media,
	:is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .sw-case__media { transition: opacity 150ms ease !important; transform: none !important; }
}

/* v6.46 popups: buttons never cut their text, sheets keep scrolling inside, swipe-down feedback. */
.sw-motion-v591 :is(#serviceOverlay,#projectOverlay,#quickInquiryOverlay) .btn { min-width: 0; white-space: normal !important; text-align: center; line-height: 1.2 !important; text-wrap: balance; overflow-wrap: anywhere; }
.sw-motion-v591 :is(#serviceOverlay,#projectOverlay,#quickInquiryOverlay) .modalbody { overscroll-behavior: contain; }
html.sw-scroll-locked, html.sw-scroll-locked body { overflow: hidden !important; overscroll-behavior: none; }
html.sw-scroll-locked body { position: fixed !important; left: 0; right: 0; width: 100%; }
@media (max-width: 860px) {
	.sw-motion-v591 :is(#serviceOverlay,#projectOverlay,#quickInquiryOverlay) .btn { min-height: 50px; padding: 10px 16px !important; font-size: 15px !important; }
	.sw-motion-v591 :is(#serviceOverlay,#projectOverlay) .sw-sheet__panel.is-dragging { transition: none !important; }
}

/* v6.48.3 service popup on phones: the picture scrolls away with the content instead of staying on top;
   the controls bar sticks to the top and the request bar to the bottom. */
@media (max-width: 860px) {
	.sw-motion-v591 #serviceOverlay .sw-sheet__panel { display: block !important; overflow-y: auto !important; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
	.sw-motion-v591 #serviceOverlay .sw-sheet__media { position: relative !important; }
	.sw-motion-v591 #serviceOverlay .sw-sheet__main { display: block !important; height: auto !important; min-height: 0 !important; overflow: visible !important; }
	.sw-motion-v591 #serviceOverlay .modalbody { height: auto !important; max-height: none !important; overflow: visible !important; }
	.sw-motion-v591 #serviceOverlay .sw-sheet__top { position: sticky !important; top: 0; z-index: 4; background: #f6f6f3; padding: 14px 18px !important; margin: 0 !important; gap: 14px; }
	.sw-motion-v591 #serviceOverlay .sw-sheet__controls { gap: 10px !important; }
	.sw-motion-v591 #serviceOverlay .sw-sheet__media { margin: 12px 12px 0 !important; width: auto !important; }
	.sw-motion-v591 #serviceOverlay .service-modal-footer { position: sticky !important; bottom: 0; z-index: 4; }
}

/* v6.48.6 phones: comparison fits the screen (column names once on top, rows below),
   roomier pills and bars, and the request popup's picture scrolls away like the service popup. */
@media (max-width: 860px) {
	#serviceOverlay .web-compare__grid { overflow: hidden; border-radius: 16px; }
	#serviceOverlay .web-compare__columns,
	#serviceOverlay .web-compare__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; gap: 0; padding: 0; }
	#serviceOverlay .web-compare__columns { position: sticky; top: 0; font-size: .7rem; font-weight: 650; letter-spacing: .01em; line-height: 1.2; }
	#serviceOverlay .web-compare__columns span:first-child { display: none; }
	#serviceOverlay .web-compare__columns span { justify-content: center; min-height: 0; padding: 14px 6px; text-align: center; overflow-wrap: anywhere; hyphens: auto; }
	#serviceOverlay .web-compare__row > strong { grid-column: 1 / -1; min-height: 0; padding: 16px 18px 4px; font-size: .9rem; }
	#serviceOverlay .web-compare__row > span { min-height: 46px; padding: 6px 6px 14px; border: 0 !important; border-radius: 0; background: none; flex-direction: row; }
	/* One continuous tinted SCHMITTWERK column. */
	#serviceOverlay .web-compare__row,
	#serviceOverlay .web-compare__columns { background: linear-gradient(90deg, transparent 66.666%, var(--sheet-accent-soft) 66.666%); }
	#serviceOverlay .web-compare__columns { background-color: var(--sheet-control); }
	#serviceOverlay .web-compare__row > span:last-child,
	#serviceOverlay .web-compare__columns span:last-child { background: none; }
	#serviceOverlay .web-compare__row small { display: none !important; }
	#serviceOverlay .web-compare__row > span b { font-size: 1.15rem; line-height: 1; }
	#serviceOverlay .web-compare__row--price > span { padding: 8px 6px 18px; text-align: center; }
	#serviceOverlay .web-compare__row--price > span b { font-size: .74rem !important; line-height: 1.3; font-weight: 650; }
	#serviceOverlay .web-compare__head { margin-bottom: 20px; }

	/* More air around the pills and in the top bar. */
	.sw-motion-v591 :is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .sw-sheet__position { padding: 12px 20px; line-height: 1.2; }
	.sw-motion-v591 #serviceOverlay .sw-sheet__top { padding: 16px 20px !important; }
	.sw-motion-v591 :is(#serviceOverlay, #projectOverlay, #quickInquiryOverlay) .modalbody { padding: 26px 22px 36px !important; }
	#quickInquiryOverlay .quick-service-pill { padding: 10px 18px; }

	/* Request popup: the whole sheet scrolls, the picture moves up and out of the way,
	   the close button stays reachable at the top. */
	.sw-motion-v591 #quickInquiryOverlay .sw-sheet__panel { display: flex !important; flex-direction: column; overflow-y: auto !important; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
	.sw-motion-v591 #quickInquiryOverlay .sw-sheet__panel > * { flex-shrink: 0; }
	.sw-motion-v591 #quickInquiryOverlay .sw-sheet__main { display: contents !important; }
	.sw-motion-v591 #quickInquiryOverlay .sw-ask__intro { order: 1; position: relative; min-height: min(42vh, 340px); }
	.sw-motion-v591 #quickInquiryOverlay .modalbody { order: 2; flex: none !important; height: auto !important; max-height: none !important; overflow: visible !important; background: var(--sheet-bg, #f6f6f3); }
	.sw-motion-v591 #quickInquiryOverlay .sw-sheet__top { order: 0; position: sticky !important; top: 0; z-index: 5; height: 0; padding: 0 !important; margin: 0 !important; border: 0; overflow: visible; }
	.sw-motion-v591 #quickInquiryOverlay .sw-sheet__controls { position: absolute; top: 14px; right: 14px; }
	#quickInquiryOverlay .sw-ask__intro-copy { padding: 72px 22px 26px; }
}
@media (max-width: 400px) {
	/* Footer text is hidden here, so the empty box must not push the button off-centre. */
	#serviceOverlay .service-modal-footer > div { display: none; }
}

/* v6.60 service popup on phones: calm title row instead of a dark pill; clearly visible round buttons. */
#sheetCount b { font-weight: inherit; }
#sheetCount span::before { content: " · "; }
@media (max-width: 860px) {
	.sw-motion-v591 #serviceOverlay .sw-sheet__top { background: var(--sheet-bg) !important; border-bottom: 1px solid var(--sheet-line) !important; padding: 12px 16px 12px 20px !important; min-height: 64px; box-sizing: border-box; }
	.sw-motion-v591 #serviceOverlay .sw-sheet__position { padding: 0 !important; background: none !important; border-radius: 0; color: var(--sheet-strong) !important; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
	.sw-motion-v591 #serviceOverlay #sheetCount { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
	.sw-motion-v591 #serviceOverlay #sheetCount b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.sw-motion-v591 #serviceOverlay #sheetCount span { font-size: 13px; color: var(--sheet-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
	.sw-motion-v591 #serviceOverlay #sheetCount span::before { content: none; }
	.sw-motion-v591 #serviceOverlay .sw-sheet__controls { gap: 8px !important; flex: none; }
	.sw-motion-v591 #serviceOverlay :is(.sw-sheet__step, .sw-sheet__close) { width: 40px !important; height: 40px !important; min-width: 40px; border-radius: 50% !important; background: var(--sheet-surface) !important; border: 1px solid var(--sheet-line-strong) !important; color: var(--sheet-strong) !important; box-shadow: none !important; backdrop-filter: none !important; }
	.sw-motion-v591 #serviceOverlay .sw-sheet__close { background: var(--sheet-strong) !important; border-color: var(--sheet-strong) !important; color: var(--sheet-bg) !important; }
}
