/* ==========================================================================
   Lux Domus Core: handyman booking.
   Built from the theme's tokens (style.css token bridge), so every palette and the light and
   dark modes apply: the serif for titles, tracked capitals for labels, hairlines, the brass
   keyline. Friendlier than the rest of the site where it helps booking: larger tap targets,
   picture cards, clear selected states, prices and times on every choice.
   Layout: steps beside a sticky "Your visit" panel on wide screens; under 1024 px the panel
   becomes a bar at the bottom that opens into a sheet.
   ========================================================================== */

.hm {
	--hm-gap: clamp(14px, 1.6vw, 22px);
	--hm-r: 3px;
	--hm-r-lg: 6px;
	--hm-ok: color-mix(in srgb, var(--brass-text) 80%, var(--ink));
	--hm-tint: color-mix(in srgb, var(--brass) 9%, var(--surface));
	--hm-tint-2: color-mix(in srgb, var(--brass) 16%, var(--surface));
	--hm-sel: color-mix(in srgb, var(--brass) 12%, var(--surface));
	--hm-plate: linear-gradient(150deg, color-mix(in srgb, var(--brass) 14%, var(--surface)) 0%, var(--surface-2) 100%);
	position: relative;
	margin: 0 auto;
	padding: 0 0 clamp(48px, 6vw, 96px);
	font: 400 1rem/1.6 var(--sans);
	color: var(--text);
}
.hm *, .hm *::before, .hm *::after { box-sizing: border-box; }
.hm [hidden] { display: none !important; }
.hm .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:where(.hm) button { font: inherit; color: inherit; }
.hm-icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

/* ---------- Preview notice, badges, progress ---------- */
.hm-preview { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 22px; padding: 14px 18px; border: 1px dashed var(--brass); background: var(--hm-tint); font-size: .92rem; }
.hm-preview p { margin: 0; }
.hm-preview a { color: var(--brass-text); }
.hm-preview .hm-icon { margin-top: 2px; color: var(--brass-text); }

.hm-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: clamp(28px, 4vw, 48px) 0 0; padding: clamp(18px, 2.4vw, 26px) 0 0; border-top: 1px solid var(--line); list-style: none; }
@media (max-width: 640px) {
	.hm-badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
	.hm-badge { gap: 8px; font-size: .56rem; letter-spacing: .14em; line-height: 1.35; }
	.hm-badge .hm-icon { width: 18px; height: 18px; }
}
.hm-badge { display: inline-flex; align-items: center; gap: 10px; font: 500 .66rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.hm-badge .hm-icon { width: 22px; height: 22px; color: var(--brass-text); }

.hm-progress { display: flex; gap: 6px; margin: 0 0 clamp(18px, 2.4vw, 28px); padding: 0; list-style: none; counter-reset: hm; }
.hm-progress__step { flex: 1; min-width: 0; }
.hm-progress__btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 2px solid var(--line); background: none; text-align: left; cursor: pointer; transition: border-color .4s var(--ease); }
.hm-progress__btn:disabled { cursor: default; }
.hm-progress__n { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border: 1px solid var(--line-strong); border-radius: 50%; font: italic 400 .95rem/1 var(--serif); color: var(--muted); }
.hm-progress__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 .62rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.hm-progress__step.is-done .hm-progress__btn { border-bottom-color: color-mix(in srgb, var(--brass) 55%, var(--line)); }
.hm-progress__step.is-done .hm-progress__n { border-color: var(--brass); background: var(--brass); color: var(--surface); }
.hm-progress__step.is-done .hm-progress__label { color: var(--ink); }
.hm-progress__step.is-done .hm-progress__btn:not(:disabled):hover .hm-progress__label { color: var(--brass-text); }
.hm-progress__step.is-current .hm-progress__btn { border-bottom-color: var(--brass); }
.hm-progress__step.is-current .hm-progress__n { border-color: var(--primary); background: var(--primary); color: var(--on-primary); font-style: normal; }
.hm-progress__step.is-current .hm-progress__label { color: var(--ink); }
.hm-progress__btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Layout ---------- */
.hm-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: clamp(20px, 3vw, 44px); align-items: start; }
.hm-main { min-width: 0; }
.hm-side { position: sticky; top: 96px; min-width: 0; }
.hm[data-view="done"] .hm-layout { grid-template-columns: minmax(0, 1fr); }
.hm[data-state="loading"] .hm-side:empty { min-height: 220px; border: 1px solid var(--line); background: var(--surface); }

/* ---------- Views and headings ---------- */
.hm-pane { animation: hm-in .4s var(--ease); }
/* Movement only: the content is never hidden, even where animations are paused. */
@keyframes hm-in { from { transform: translateY(10px); } to { transform: none; } }
.hm-view__head { margin: 0 0 clamp(16px, 2vw, 22px); }
.hm-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font: 500 .64rem/1.5 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--brass-text); }
.hm-kicker::before { content: ""; width: 26px; height: 1px; flex: none; background: var(--brushed); }
.hm-step { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 500 .62rem/1.5 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.hm-step::before { content: ""; width: 26px; height: 1px; flex: none; background: var(--brushed); }
.hm-title { margin: 0 0 10px; font: 300 clamp(2rem, 1.5rem + 1.6vw, 3rem)/1.05 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.hm-title em { font-style: italic; font-weight: 400; color: var(--brass-text); }
.hm-title:focus { outline: none; }
.hm-title--svc { font-size: clamp(2rem, 1.5rem + 1.4vw, 2.8rem); }
.hm-subtitle { margin: 0 0 10px; font: 400 clamp(1.4rem, 1.2rem + .6vw, 1.8rem)/1.15 var(--serif); color: var(--ink); }
.hm-subtitle:focus { outline: none; }
.hm-lede { margin: 0; max-width: 40em; font-size: 1rem; line-height: 1.65; color: var(--muted); }
.hm-muted { color: var(--muted); }
.hm-link { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; font: 500 .9rem/1.4 var(--sans); color: var(--brass-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.hm-link:hover { text-decoration-thickness: 2px; }
.hm-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.hm-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: .85rem 1.35rem; border: 1px solid transparent; border-radius: 1px; cursor: pointer;
	font: 500 .7rem/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
	transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), opacity .3s;
}
.hm-btn .hm-icon { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.hm-btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.hm-btn--primary:hover:not(:disabled), .hm-btn--primary:focus-visible { background: var(--btn-bg-h); color: var(--btn-fg-h); }
.hm-btn--primary:hover:not(:disabled) .hm-icon:last-child { transform: translateX(3px); }
.hm-btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.hm-btn--ghost:hover:not(:disabled), .hm-btn--ghost:focus-visible { border-color: var(--brass); color: var(--brass-text); }
.hm-btn--sm { min-height: 40px; padding: .55rem .9rem; font-size: .62rem; }
.hm-btn--danger.hm-btn--ghost:hover { border-color: var(--error); color: var(--error); }
.hm-btn--danger.hm-btn--primary { background: var(--error); color: #fff; }
.hm-btn:disabled { opacity: .45; cursor: not-allowed; }
.hm-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.hm-btn[aria-busy="true"] { cursor: progress; opacity: .85; }
.hm-iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid transparent; border-radius: 50%; background: none; cursor: pointer; color: var(--muted); transition: color .3s, background-color .3s, border-color .3s; }
.hm-iconbtn:hover { color: var(--ink); background: var(--hm-tint); }
.hm-iconbtn:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.hm-iconbtn .hm-icon { width: 18px; height: 18px; }

.hm-spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: hm-spin .8s linear infinite; }
@keyframes hm-spin { to { transform: rotate(360deg); } }

/* ---------- Search, chips and the category rail ---------- */
.hm-search { position: relative; display: flex; align-items: center; margin-top: 18px; max-width: 640px; }
.hm-search__icon { position: absolute; left: 16px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.hm-search__input {
	width: 100%; min-height: 54px; padding: .8rem 3rem .8rem 3rem; border: 1px solid var(--line-strong); border-radius: var(--hm-r);
	background: var(--surface); font: 400 1.05rem/1.3 var(--sans); color: var(--text); appearance: none;
	transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.hm-search__input::placeholder { color: var(--muted); opacity: 1; }
.hm-search__input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent); }
.hm-search__input::-webkit-search-cancel-button { display: none; }
.hm-search__clear { position: absolute; right: 8px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.hm-search__clear:hover { color: var(--ink); background: var(--hm-tint); }
.hm-search__clear .hm-icon { width: 18px; height: 18px; }

.hm-rail { display: flex; gap: 8px; margin: 0 0 22px; padding: 2px 2px 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.hm-chip {
	display: inline-flex; flex: none; align-items: center; gap: 8px; min-height: 44px; padding: .5rem .95rem; scroll-snap-align: start;
	border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); cursor: pointer;
	font: 500 .78rem/1.2 var(--sans); letter-spacing: .02em; color: var(--ink); white-space: nowrap;
	transition: border-color .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.hm-chip .hm-icon { width: 18px; height: 18px; color: var(--brass-text); }
.hm-chip:hover { border-color: var(--brass); }
.hm-chip.is-on { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.hm-chip.is-on .hm-icon { color: currentColor; }
.hm-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hm-chip__n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--hm-tint-2); font-size: .72rem; color: var(--ink); }
.hm-chip.is-on .hm-chip__n { background: color-mix(in srgb, var(--on-primary) 20%, transparent); color: var(--on-primary); }

/* ---------- Pictures: photos, or an icon on a plate ---------- */
.hm-art { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--hm-plate); }
.hm-art--photo .hm-art__img { display: block; width: 100%; height: 100%; object-fit: cover; filter: var(--img-filter); transition: transform 1.2s var(--ease), filter 1.2s var(--ease); }
.hm-art--icon { display: grid; place-items: center; }
.hm-art--icon::after { content: ""; position: absolute; inset: 8px; border: 1px solid color-mix(in srgb, var(--brass) 30%, transparent); pointer-events: none; }
.hm-art__icon { width: 40%; height: 40%; max-width: 76px; max-height: 76px; stroke-width: 1.15; color: var(--brass-text); transition: transform .8s var(--ease); }
.hm-mini { width: 48px; height: 48px; flex: none; aspect-ratio: auto; border-radius: var(--hm-r); }
.hm-mini.hm-art--icon::after { inset: 4px; }
.hm-mini .hm-art__icon, .hm-mini.hm-art--icon .hm-icon { width: 24px; height: 24px; }

/* ---------- Category tiles ---------- */
.hm-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--hm-gap); margin: 0; padding: 0; list-style: none; }
.hm-cat {
	display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; overflow: hidden;
	border: 1px solid var(--line); border-radius: var(--hm-r); background: var(--surface); cursor: pointer;
	text-align: left; text-decoration: none; color: var(--ink);
	transition: border-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.hm-cat__body { display: grid; gap: 4px; padding: 14px 16px 16px; }
.hm-cat__name { font: 400 1.32rem/1.15 var(--serif); color: var(--ink); }
.hm-cat__meta { font-size: .8rem; line-height: 1.4; color: var(--muted); }
.hm-cat:hover, .hm-cat:focus-visible { border-color: var(--brass); box-shadow: 0 18px 30px -24px var(--shadow); transform: translateY(-2px); }
.hm-cat:hover .hm-art__img { transform: scale(1.04); filter: var(--img-filter-h); }
.hm-cat:hover .hm-art__icon { transform: scale(1.08); }
.hm-cat:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.hm-cat-head { margin: 4px 0 18px; }
.hm-cat-head__title { margin: 0 0 4px; font: 400 clamp(1.6rem, 1.3rem + .9vw, 2.1rem)/1.1 var(--serif); color: var(--ink); }
.hm-cat-head__title:focus { outline: none; }
.hm-cat-head__sum { margin: 0; font-size: .95rem; color: var(--muted); }

/* ---------- Service cards ---------- */
.hm-svcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--hm-gap); margin: 0; padding: 0; list-style: none; }
.hm-svc {
	position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; overflow: hidden;
	border: 1px solid var(--line); border-radius: var(--hm-r); background: var(--surface); cursor: pointer;
	text-align: left; text-decoration: none; color: var(--ink);
	transition: border-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.hm-svc .hm-art { aspect-ratio: 16 / 9; }
.hm-svc__body { display: grid; gap: 5px; flex: 1; align-content: start; padding: 14px 16px 18px; }
.hm-svc__cat { font: 500 .58rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brass-text); }
.hm-svc__name { font: 400 1.35rem/1.15 var(--serif); color: var(--ink); }
.hm-svc__sum { font-size: .88rem; line-height: 1.5; color: var(--muted); }
.hm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 6px; }
.hm-meta__price { font: 500 .78rem/1.3 var(--sans); letter-spacing: .06em; color: var(--ink); }
.hm-meta__time { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--muted); }
.hm-meta__time .hm-icon { width: 15px; height: 15px; }
.hm-svc__go { position: absolute; right: 12px; bottom: 14px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--hm-tint); color: var(--brass-text); transition: background-color .4s, color .4s, transform .4s var(--ease); }
.hm-svc__go .hm-icon { width: 17px; height: 17px; }
.hm-svc__added { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font: 500 .68rem/1.2 var(--sans); letter-spacing: .04em; }
.hm-svc__added .hm-icon { width: 14px; height: 14px; stroke-width: 2.2; }
.hm-svc:hover, .hm-svc:focus-visible { border-color: var(--brass); box-shadow: 0 18px 30px -24px var(--shadow); transform: translateY(-2px); }
.hm-svc:hover .hm-svc__go { background: var(--primary); color: var(--on-primary); transform: translateX(2px); }
.hm-svc:hover .hm-art__img { transform: scale(1.04); filter: var(--img-filter-h); }
.hm-svc:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hm-svc.is-added { border-color: color-mix(in srgb, var(--brass) 60%, var(--line)); }

.hm-results__head { margin: 0 0 12px; font: 500 .62rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.hm-results__none { padding: 28px; border: 1px dashed var(--line-strong); text-align: center; }
.hm-results__none p { margin: 0 0 14px; color: var(--muted); }
.hm-else { display: flex; gap: 10px; align-items: flex-start; margin: 26px 0 0; padding: 14px 16px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.hm-else > .hm-icon { margin-top: 2px; color: var(--brass-text); }
.hm-else .hm-link { font-size: inherit; }
.hm-noscript { margin: 20px 0 0; padding: 16px; border: 1px solid var(--line); background: var(--surface); }

/* ---------- Configure: the service header ---------- */
.hm-crumbs { margin: 0 0 14px; }
.hm-crumbs__back { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 2px; border: 0; background: none; cursor: pointer; font: 500 .66rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brass-text); }
.hm-crumbs__back .hm-icon { width: 17px; height: 17px; transition: transform .4s var(--ease); }
.hm-crumbs__back:hover .hm-icon { transform: translateX(-3px); }
.hm-crumbs__back:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hm-svc-hero { display: grid; grid-template-columns: clamp(120px, 16vw, 200px) minmax(0, 1fr); gap: clamp(14px, 2vw, 26px); align-items: start; margin: 0 0 clamp(16px, 2vw, 24px); }
.hm-svc-hero__art .hm-art { border-radius: var(--hm-r); aspect-ratio: 4 / 3; }
.hm-svc-hero__art .hm-art__icon { max-width: 72px; max-height: 72px; }
.hm-svc-hero .hm-title--svc { margin-bottom: 6px; }
.hm-includes { display: grid; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.hm-includes li { display: flex; align-items: flex-start; gap: 10px; font-size: .93rem; line-height: 1.5; color: var(--text); }
.hm-includes .hm-icon { width: 18px; height: 18px; margin-top: 2px; stroke-width: 2; color: var(--brass-text); }
.hm-quote-note { display: flex; gap: 10px; margin: 16px 0 0; padding: 12px 14px; border-left: 2px solid var(--brass); background: var(--hm-tint); font-size: .92rem; }
.hm-quote-note .hm-icon { margin-top: 2px; color: var(--brass-text); }
/* Portfolio carousel (sizes and motion from Handyman > Settings > Portfolio and carousel). */
.hm-car { position: relative; margin: 0 0 clamp(18px, 2.4vw, 28px); }
.hm-car__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 10px; }
.hm-car__title { flex: 1; min-width: 0; margin: 0; font: 500 .64rem/1.5 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--brass-text); }
.hm-car__all { font-size: .86rem; }
.hm-car__pause { width: 34px; height: 34px; color: var(--ink); border-color: var(--line-strong); }
.hm-car__pause .hm-icon { width: 15px; height: 15px; }
.hm-car__stage { position: relative; }
.hm-car__viewport { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; border-radius: var(--hm-r); }
.hm-car__viewport::-webkit-scrollbar { display: none; }
.hm-car.is-glide .hm-car__viewport, .hm-car.is-moving .hm-car__viewport { scroll-snap-type: none; }
.hm-car__track { position: relative; display: flex; gap: var(--hm-car-gap, 10px); width: max-content; margin: 0; padding: 0; list-style: none; }
.hm-car__slide { flex: none; scroll-snap-align: start; width: calc(var(--hm-car-h, 240px) * var(--hm-car-ar, 1.5)); height: var(--hm-car-h, 240px); }
.hm-car__btn { position: relative; display: block; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 0; border-radius: var(--hm-r); background: var(--surface-2); cursor: zoom-in; color: #fff; }
.hm-car__img { display: block; width: 100%; height: 100%; object-fit: var(--hm-car-fit, cover); object-position: var(--hm-car-pos, center); filter: var(--img-filter); transition: transform 1.2s var(--ease), filter 1.2s var(--ease); }
.hm-car__btn:hover .hm-car__img { transform: scale(1.035); filter: var(--img-filter-h); }
.hm-car__btn:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.hm-car__cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 28px 12px 10px; background: linear-gradient(to top, rgba(8, 12, 22, .78), rgba(8, 12, 22, 0)); text-align: left; }
.hm-car__cap--tag { justify-content: flex-end; padding-top: 10px; background: none; }
.hm-car__name { font: 400 1.02rem/1.2 var(--serif); color: #f6f1e7; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.hm-car__tag { flex: none; padding: 3px 8px; border-radius: 999px; background: rgba(13, 22, 40, .72); font: 500 .56rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.hm-car__nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; margin-top: -21px; padding: 0; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: rgba(13, 22, 40, .62); color: #fff; cursor: pointer; transition: background-color .3s, opacity .3s; }
.hm-car__nav:hover { background: rgba(13, 22, 40, .9); }
.hm-car__nav:disabled { opacity: 0; pointer-events: none; }
.hm-car__nav:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hm-car__nav .hm-icon { width: 18px; height: 18px; }
.hm-car__prev { left: 8px; }
.hm-car__next { right: 8px; }
.hm-car__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 10px 0 0; }
.hm-car__dot { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.hm-car__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--line-strong); transition: background-color .3s, transform .3s; }
.hm-car__dot.is-on::before { background: var(--brass); transform: scale(1.3); }
.hm-car__dot:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 50%; }
.hm-car__note { margin: 8px 0 0; font-size: .78rem; color: var(--muted); }
@media (max-width: 640px) {
	.hm-car__slide { width: calc(var(--hm-car-h-sm, 170px) * var(--hm-car-ar, 1.5)); height: var(--hm-car-h-sm, 170px); }
	.hm-car__nav { width: 36px; height: 36px; margin-top: -18px; }
}
@media (hover: none) {
	.hm-car__nav { opacity: .85; }
}

/* ---------- Questions ---------- */
.hm-qs { display: grid; gap: clamp(14px, 1.8vw, 20px); margin: 0; }
.hm-q { position: relative; min-width: 0; margin: 0; padding: clamp(16px, 2vw, 22px); border: 1px solid var(--line); border-radius: var(--hm-r); background: var(--surface); transition: border-color .4s var(--ease); }
fieldset.hm-q > legend { float: left; width: 100%; padding: 0; }
fieldset.hm-q > legend + * { clear: both; }
.hm-q.is-error { border-color: color-mix(in srgb, var(--error) 60%, var(--line)); box-shadow: inset 3px 0 0 var(--error); }
.hm-q__label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0 0 12px; font: 400 1.22rem/1.25 var(--serif); color: var(--ink); }
.hm-q__req, .hm-q__hint { font: 500 .56rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hm-q__req { color: var(--brass-text); }
.hm-q__help { margin: -6px 0 12px; font-size: .88rem; line-height: 1.5; color: var(--muted); }
.hm-q__error { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: .88rem; color: var(--error); }
.hm-q__error .hm-icon { width: 17px; height: 17px; }
.hm-q__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hm-q__note { margin: 0; font-size: .86rem; color: var(--muted); }
.hm-q__text { width: 100%; min-height: 0; resize: vertical; }
.hm-q__count { margin: 6px 0 0; text-align: right; font-size: .75rem; color: var(--muted); }

/* Choices: native radios and checkboxes, visually hidden, the label is the card. */
.hm-choices { display: grid; gap: 10px; }
.hm-choices--cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.hm-choices--list { grid-template-columns: minmax(0, 1fr); }
.hm-choices--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-choice { position: relative; display: flex; flex-direction: column; min-width: 0; }
.hm-choice__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.hm-choice__face {
	position: relative; display: grid; flex: 1; gap: 4px; min-height: 48px; padding: 12px 14px; overflow: hidden;
	border: 1px solid var(--line-strong); border-radius: var(--hm-r); background: var(--bg); cursor: pointer;
	transition: border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.hm-choice__face:hover { border-color: var(--brass); }
.hm-choice__body { display: grid; gap: 2px; min-width: 0; }
.hm-choice__label { font: 500 .95rem/1.3 var(--sans); color: var(--ink); }
.hm-choice__desc { font-size: .82rem; line-height: 1.4; color: var(--muted); }
.hm-choice__delta { font: 500 .74rem/1.3 var(--sans); letter-spacing: .02em; color: var(--brass-text); }
.hm-choice__delta:empty { display: none; }
.hm-choice__tick { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: transparent; transition: background-color .3s, border-color .3s, color .3s, transform .3s var(--ease); }
.hm-choice__tick .hm-icon { width: 14px; height: 14px; stroke-width: 2.4; }
.hm-q--multi .hm-choice__tick { border-radius: 4px; }
.hm-choice.is-on .hm-choice__face, .hm-choice__input:checked + .hm-choice__face { border-color: var(--brass-text); background: var(--hm-sel); box-shadow: inset 0 0 0 1px var(--brass-text); }
.hm-choice.is-on .hm-choice__tick, .hm-choice__input:checked + .hm-choice__face .hm-choice__tick { border-color: var(--primary); background: var(--primary); color: var(--on-primary); transform: scale(1.04); }
.hm-choice.is-picked .hm-choice__tick { animation: hm-tick .38s var(--ease); }
.hm-choice.is-picked .hm-choice__face { animation: hm-picked .5s var(--ease); }
@keyframes hm-tick { from { transform: scale(.5); } 60% { transform: scale(1.18); } to { transform: scale(1.04); } }
@keyframes hm-picked { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brass) 45%, transparent); } to { box-shadow: 0 0 0 8px transparent; } }
.hm-choice__input:focus-visible + .hm-choice__face { outline: 2px solid var(--focus); outline-offset: 2px; }
.hm-q.is-error .hm-choice__face { border-color: color-mix(in srgb, var(--error) 45%, var(--line-strong)); }

/* Cards: picture on top. */
.hm-choices--cards .hm-choice__face { grid-template-rows: auto 1fr auto; align-content: start; padding: 0 0 12px; }
.hm-choices--cards .hm-choice__body, .hm-choices--cards .hm-choice__delta { padding: 0 14px; }
.hm-choices--cards .hm-choice__body { padding-top: 10px; padding-right: 36px; }
.hm-choice__art { display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; background: var(--hm-plate); border-bottom: 1px solid var(--line); }
.hm-choice__art--icon .hm-icon { width: 38px; height: 38px; stroke-width: 1.2; color: var(--brass-text); transition: transform .5s var(--ease); }
.hm-choice__face:hover .hm-choice__art--icon .hm-icon { transform: scale(1.08); }
.hm-choice__img { display: block; width: 100%; height: 100%; object-fit: cover; filter: var(--img-filter); }
.hm-choices--cards .hm-choice.is-plain .hm-choice__face { padding-top: 0; }
.hm-choices--cards .hm-choice.is-plain .hm-choice__body { padding-top: 14px; }
.hm-choices--cards .hm-choice__tick { top: auto; bottom: auto; }
.hm-choices--cards .hm-choice:not(.is-plain) .hm-choice__tick { top: 8px; }
.hm-choices--cards .hm-choice.is-plain .hm-choice__tick { top: 12px; }

/* List: rows with the price at the end. */
.hm-choices--list .hm-choice__face { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 13px 48px 13px 16px; }
.hm-choices--list .hm-choice__delta { justify-self: end; white-space: nowrap; }
.hm-choices--list .hm-choice__tick { top: 50%; right: 14px; margin-top: -12px; }

/* Chips: compact pills. */
.hm-choices--chips .hm-choice__face { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: .55rem 1rem; border-radius: 999px; }
.hm-choices--chips .hm-choice__body { display: inline; }
.hm-choices--chips .hm-choice__desc { display: none; }
.hm-choices--chips .hm-choice__delta { font-size: .72rem; color: var(--muted); }
.hm-choices--chips .hm-choice__tick { display: none; }
.hm-choices--chips .hm-choice.is-on .hm-choice__face { background: var(--primary); border-color: var(--primary); box-shadow: none; }
.hm-choices--chips .hm-choice.is-on .hm-choice__label, .hm-choices--chips .hm-choice.is-on .hm-choice__delta { color: var(--on-primary); }

/* Quantity inside a picked card. */
.hm-choice__qty { padding: 8px 10px 10px; border: 1px solid var(--brass-text); border-top: 0; border-radius: 0 0 var(--hm-r) var(--hm-r); background: var(--hm-sel); margin-top: -2px; position: relative; z-index: 1; }
.hm-choice.is-on:has(.hm-choice__qty) .hm-choice__face { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* Steppers. */
.hm-stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); }
.hm-stepper__btn { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; color: var(--ink); transition: background-color .3s, color .3s; }
.hm-stepper__btn .hm-icon { width: 18px; height: 18px; stroke-width: 2; }
.hm-stepper__btn:hover:not(:disabled) { background: var(--hm-tint); color: var(--brass-text); }
.hm-stepper__btn:disabled { opacity: .35; cursor: not-allowed; }
.hm-stepper__btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.hm-stepper__input { width: 3.2em; min-height: 40px; padding: 0; border: 0; background: none; text-align: center; font: 500 1.15rem/1 var(--sans); color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.hm-stepper__input::-webkit-inner-spin-button, .hm-stepper__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.hm-stepper__input:focus { outline: none; }
.hm-stepper:focus-within { border-color: var(--focus); }
.hm-stepper__unit { padding-right: 6px; font-size: .9rem; color: var(--muted); }
.hm-stepper--sm .hm-stepper__btn { width: 36px; height: 36px; }
.hm-stepper--sm .hm-stepper__input { width: 2.4em; min-height: 32px; font-size: 1rem; }

/* Range. */
.hm-range { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; width: 100%; }
.hm-range__input { flex: 1 1 220px; min-width: 0; height: 32px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.hm-range__input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--brass) var(--p, 0%), var(--line) var(--p, 0%)); }
.hm-range__input::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
.hm-range__input::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--brass); }
.hm-range__input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border: 2px solid var(--surface); border-radius: 50%; background: var(--primary); box-shadow: 0 2px 8px -2px var(--shadow); }
.hm-range__input::-moz-range-thumb { width: 22px; height: 22px; border: 2px solid var(--surface); border-radius: 50%; background: var(--primary); box-shadow: 0 2px 8px -2px var(--shadow); }
.hm-range__input:focus { outline: none; }
.hm-range__input:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--focus); outline-offset: 2px; }
.hm-range__input:focus-visible::-moz-range-thumb { outline: 2px solid var(--focus); outline-offset: 2px; }
.hm-range__val { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border: 1px solid var(--line-strong); border-radius: var(--hm-r); background: var(--surface); }
.hm-range__num { width: 5em; min-height: 36px; padding: 0 4px; border: 0; background: none; text-align: right; font: 500 1.05rem/1 var(--sans); color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.hm-range__num::-webkit-inner-spin-button { -webkit-appearance: none; }
.hm-range__num:focus { outline: none; }
.hm-range__val:focus-within { border-color: var(--focus); }
.hm-range__unit { font-size: .9rem; color: var(--muted); }

/* Switch (yes or no). */
.hm-q--toggle { padding: 0; }
.hm-switch__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.hm-switch { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: clamp(14px, 1.8vw, 18px) clamp(16px, 2vw, 22px); cursor: pointer; }
.hm-switch .hm-q__label { margin: 0; }
.hm-switch__text { display: grid; gap: 4px; min-width: 0; }
.hm-switch__text .hm-q__help { margin: 0; }
.hm-switch__track { position: relative; width: 48px; height: 28px; flex: none; border-radius: 14px; background: var(--line-strong); transition: background-color .3s var(--ease); }
.hm-switch__thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: transform .3s var(--ease); }
.hm-switch__input:checked + .hm-switch .hm-switch__track { background: var(--primary); }
.hm-switch__input:checked + .hm-switch .hm-switch__thumb { transform: translateX(20px); }
.hm-switch__input:focus-visible + .hm-switch .hm-switch__track { outline: 2px solid var(--focus); outline-offset: 2px; }
.hm-switch__delta { font: 500 .78rem/1.3 var(--sans); color: var(--brass-text); white-space: nowrap; }
.hm-q--toggle.is-on { border-color: color-mix(in srgb, var(--brass) 55%, var(--line)); background: var(--hm-sel); }

/* ---------- Configure footer: price, time, add ---------- */
.hm-foot {
	position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 22px;
	margin: clamp(18px, 2.4vw, 26px) 0 0; padding: 16px clamp(16px, 2vw, 22px);
	border: 1px solid var(--line); border-radius: var(--hm-r); background: color-mix(in srgb, var(--surface) 94%, transparent);
	box-shadow: 0 -16px 30px -26px var(--shadow); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hm-foot__sum { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 2px 14px; min-width: 0; }
.hm-foot__label { grid-column: 1 / -1; font: 500 .58rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.hm-foot__price { font: 400 clamp(1.7rem, 1.4rem + .9vw, 2.2rem)/1 var(--serif); color: var(--ink); }
.hm-foot__time { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); }
.hm-foot__time .hm-icon { width: 16px; height: 16px; }
.hm-foot__how { grid-column: 1 / -1; margin-top: 4px; font-size: .86rem; }
.hm-foot__how summary { cursor: pointer; color: var(--brass-text); }
.hm-foot__how ul { margin: 8px 0 0; padding: 0; list-style: none; max-width: 420px; }
.hm-foot__how li { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; border-bottom: 1px dashed var(--line); color: var(--text); }
.hm-foot__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Your visit (summary) ---------- */
.hm-sum { position: relative; padding: clamp(18px, 2vw, 24px); border: 1px solid var(--line); border-radius: 0 0 clamp(48px, 5vw, 80px) 0; background: var(--surface); box-shadow: inset 0 0 0 5px var(--surface), inset 0 0 0 6px color-mix(in srgb, var(--brass) 30%, var(--surface)); }
.hm-sum__head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.hm-sum__title { margin: 0; font: 400 1.5rem/1.1 var(--serif); color: var(--ink); }
.hm-sum__title:focus { outline: none; }
.hm-sum__close { display: none; }
.hm-sum__empty { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 6px; padding: 14px; border: 1px dashed var(--line-strong); font-size: .9rem; color: var(--muted); }
.hm-sum__empty .hm-icon { width: 22px; height: 22px; color: var(--brass-text); }
.hm-sum__lines { display: grid; gap: 0; margin: 0 0 4px; padding: 0; list-style: none; }
.hm-sum__line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "art body price" "art body acts"; align-items: center; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hm-sum__line .hm-mini { grid-area: art; align-self: start; }
.hm-sum__body { grid-area: body; display: grid; gap: 2px; min-width: 0; }
.hm-sum__name { font: 500 .93rem/1.3 var(--sans); color: var(--ink); }
.hm-sum__sub { font-size: .8rem; line-height: 1.4; color: var(--muted); }
.hm-sum__price { grid-area: price; justify-self: end; font: 500 .95rem/1.2 var(--sans); color: var(--ink); }
.hm-sum__acts { grid-area: acts; justify-self: end; display: flex; gap: 0; margin-right: -8px; }
.hm-sum__acts .hm-iconbtn { width: 34px; height: 34px; }
.hm-sum__line.is-draft { border-bottom-style: dashed; opacity: .82; }
.hm-sum__line.is-draft .hm-sum__sub { color: var(--brass-text); }
.hm-sum__totals { display: grid; gap: 6px; margin: 12px 0 0; }
.hm-sum__totals > div { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.hm-sum__totals dt { color: var(--muted); }
.hm-sum__totals dd { margin: 0; color: var(--ink); }
.hm-sum__total { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); align-items: baseline; }
.hm-sum__total dt { font: 500 .62rem/1.4 var(--sans) !important; letter-spacing: .22em; text-transform: uppercase; color: var(--ink) !important; }
.hm-sum__total dd { font: 400 1.9rem/1 var(--serif); }
.hm-sum__time, .hm-sum__slot { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: .88rem; color: var(--text); }
.hm-sum__time .hm-icon, .hm-sum__slot .hm-icon { width: 17px; height: 17px; color: var(--brass-text); }
.hm-sum__slot { flex-wrap: wrap; padding: 10px 12px; border-radius: var(--hm-r); background: var(--hm-tint); }
.hm-sum__slot span { flex: 1; min-width: 0; font-weight: 500; }
.hm-sum__cta { width: 100%; margin-top: 16px; }
.hm-sum__note { margin: 12px 0 0; font-size: .82rem; line-height: 1.5; color: var(--muted); }
.hm-sum__fine { margin: 6px 0 0; font-size: .76rem; line-height: 1.5; color: var(--muted); }
.hm-sum__undo { margin: 12px 0 0; padding: 10px 12px; border-left: 2px solid var(--brass); background: var(--hm-tint); font-size: .85rem; }

/* Phone bar (hidden on wide screens). */
.hm-bar { display: none; }

/* ---------- Schedule ---------- */
.hm-soonest { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--brass) 40%, var(--line)); border-radius: var(--hm-r); background: var(--hm-tint); font-size: .95rem; }
.hm-soonest > .hm-icon { color: var(--brass-text); }
.hm-soonest > span { flex: 1; min-width: 180px; }
.hm-multi { display: flex; gap: 10px; margin: 0 0 16px; font-size: .92rem; color: var(--text); }
.hm-multi .hm-icon { margin-top: 3px; color: var(--brass-text); }
/* The month calendar, with the chosen day's times beside it (below it in a narrow pane). */
.hm-sched { container-type: inline-size; margin: 0 0 18px; }
.hm-sched__in { display: grid; gap: 22px; }
@container (min-width: 640px) {
	.hm-sched__in { grid-template-columns: minmax(290px, 340px) minmax(0, 1fr); align-items: start; gap: 28px; }
}
.hm-cal { padding: 12px 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--hm-r); background: var(--surface); }
.hm-cal__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px; margin: 0 0 8px; }
.hm-cal__title { margin: 0; text-align: center; font: 400 1.3rem/1.2 var(--serif); color: var(--ink); }
.hm-cal__nav { width: 44px; height: 44px; color: var(--ink); }
.hm-cal__nav:disabled { opacity: .3; cursor: default; background: none; }
.hm-cal__months { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 10px; }
.hm-cal__month {
	min-width: 52px; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: none; cursor: pointer;
	font: 500 .72rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
	transition: border-color .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.hm-cal__month:hover { border-color: var(--brass); }
.hm-cal__month.is-on { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.hm-cal__month:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hm-cal__grid { width: 100%; margin: 0; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.hm-cal__grid th { padding: 4px 0; border: 0; font: 500 .6rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-align: center; color: var(--muted); }
.hm-cal__grid td { padding: 0; border: 0; text-align: center; }
.hm-cal__day {
	position: relative; display: grid; place-items: center; width: 100%; height: 44px; padding: 0;
	border: 1px solid transparent; border-radius: 10px; background: none; cursor: pointer;
	font: 500 .95rem/1 var(--sans); color: var(--ink);
	transition: border-color .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.hm-cal__day.has-times { border-color: color-mix(in srgb, var(--brass) 26%, transparent); background: var(--hm-tint); }
.hm-cal__day.has-times:hover { border-color: var(--brass); }
.hm-cal__day.is-off { color: var(--muted); opacity: .45; cursor: not-allowed; }
.hm-cal__day.is-today .hm-cal__num { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.hm-cal__dot { position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--brass); }
.hm-cal__day.is-on { border-color: var(--primary); background: var(--primary); color: var(--on-primary); opacity: 1; }
.hm-cal__day.is-on .hm-cal__dot { background: var(--on-primary); }
.hm-cal__day:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; z-index: 1; }
.hm-cal__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 8px 0 0; font-size: .74rem; color: var(--muted); }
.hm-cal__legend > span { display: inline-flex; align-items: center; gap: 6px; }
.hm-cal__key { position: relative; display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid transparent; border-radius: 6px; font: 500 .7rem/1 var(--sans); color: var(--ink); }
.hm-cal__key .hm-cal__dot { bottom: 2px; width: 3px; height: 3px; margin-left: -1.5px; }
.hm-cal__key--open { border-color: color-mix(in srgb, var(--brass) 26%, transparent); background: var(--hm-tint); }
.hm-cal__key--off { color: var(--muted); opacity: .45; }
.hm-cal__type { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; margin: 12px 0 0; padding: 12px 2px 0; border-top: 1px solid var(--line); }
.hm-cal__type label { font: 500 .62rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hm-cal__input { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-2); color: var(--ink); font: 500 .95rem/1.2 var(--sans); color-scheme: light dark; }
.hm-cal__input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.hm-cal__msg { margin: 8px 2px 0; font-size: .84rem; color: var(--brass-text); }
.hm-cal__msg:empty { display: none; }
.hm-times { min-height: 120px; }
.hm-times__set { margin: 0; padding: 0; border: 0; min-width: 0; }
.hm-times__day { float: left; width: 100%; margin: 0 0 12px; padding: 0; font: 400 1.35rem/1.2 var(--serif); color: var(--ink); }
.hm-times__day + * { clear: both; }
.hm-times__group { margin: 0 0 16px; }
.hm-times__label { margin: 0 0 8px; font: 500 .6rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.hm-times__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; }
.hm-time { position: relative; }
.hm-time__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.hm-time__face { display: grid; gap: 1px; min-height: 52px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--hm-r); background: var(--surface); cursor: pointer; transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.hm-time__start { font: 500 1rem/1.25 var(--sans); color: var(--ink); }
.hm-time__end { font-size: .76rem; color: var(--muted); }
.hm-time__face:hover { border-color: var(--brass); }
.hm-time__input:checked + .hm-time__face { border-color: var(--primary); background: var(--primary); }
.hm-time__input:checked + .hm-time__face .hm-time__start, .hm-time__input:checked + .hm-time__face .hm-time__end { color: var(--on-primary); }
.hm-time__input:focus-visible + .hm-time__face { outline: 2px solid var(--focus); outline-offset: 2px; }
.hm-times__none { padding: 22px; border: 1px dashed var(--line-strong); text-align: center; color: var(--muted); }
.hm-times__none p { margin: 0 0 12px; }
.hm-zone { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: .85rem; color: var(--muted); }
.hm-zone .hm-icon { width: 17px; height: 17px; margin-top: 2px; }
.hm-loading { display: flex; align-items: center; gap: 12px; padding: 30px 0; color: var(--muted); }
.hm-view__nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: clamp(22px, 3vw, 32px) 0 0; }
.hm-view__nav .hm-btn--primary { margin-left: auto; }

/* ---------- Details ---------- */
.hm-details__summary { margin: 0 0 22px; }
.hm-details__form { padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--line); border-radius: var(--hm-r); background: var(--surface); }
.hm-details__fields { display: grid; gap: clamp(22px, 2.6vw, 30px); }
.hm-photos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.hm-photos img { width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--line); border-radius: var(--hm-r); }

/* ---------- Review ---------- */
.hm-review__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--hm-gap); margin: 0 0 var(--hm-gap); }
.hm-review .hm-review__grid > .hm-card:first-child { grid-column: 1 / -1; }
.hm-done__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hm-done__grid > .hm-card:first-child { grid-column: auto; }
@media (max-width: 760px) { .hm-review__grid, .hm-done__grid { grid-template-columns: minmax(0, 1fr); } }
.hm-card { min-width: 0; padding: clamp(16px, 2vw, 22px); border: 1px solid var(--line); border-radius: var(--hm-r); background: var(--surface); }
.hm-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.hm-card__title { display: flex; align-items: center; gap: 8px; margin: 0; font: 500 .62rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink); }
.hm-card__title .hm-icon { width: 18px; height: 18px; color: var(--brass-text); }
.hm-card__big { margin: 0 0 4px; font: 400 1.25rem/1.3 var(--serif); color: var(--ink); }
.hm-card__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 0; font-size: .88rem; line-height: 1.5; color: var(--muted); }
.hm-card__sub .hm-icon { width: 16px; height: 16px; }
.hm-card__fine { margin: 10px 0 0; font-size: .8rem; line-height: 1.5; color: var(--muted); }
.hm-card__acts { margin: 12px 0 0; }
.hm-rv-lines { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.hm-rv-line { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hm-rv-line:last-child { border-bottom: 0; }
.hm-rv-line__top { display: flex; justify-content: space-between; gap: 12px; }
.hm-rv-line__name { font: 500 .95rem/1.35 var(--sans); color: var(--ink); }
.hm-rv-line__price { font: 500 .95rem/1.35 var(--sans); color: var(--ink); white-space: nowrap; }
.hm-rv-line__sel { margin: 6px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 18px; }
.hm-rv-line__sel li { font-size: .82rem; line-height: 1.45; color: var(--muted); }
.hm-rv-line__sel span { color: var(--text); }
.hm-price { margin: 0 0 var(--hm-gap); }
.hm-price__rows { display: grid; gap: 8px; margin: 12px 0 0; }
.hm-price__rows > div { display: flex; justify-content: space-between; gap: 16px; font-size: .95rem; }
.hm-price__rows dt { color: var(--text); }
.hm-price__rows dt span { color: var(--muted); }
.hm-price__rows dd { margin: 0; color: var(--ink); white-space: nowrap; }
.hm-price__total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); align-items: baseline; }
.hm-price__total dt { font: 500 .66rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink) !important; }
.hm-price__total dd { font: 400 2rem/1 var(--serif); }
.hm-price__rows--compact { margin-top: 6px; }
.hm-price__rows--compact .hm-price__total dd { font-size: 1.5rem; }
.hm-pay { margin: 0 0 var(--hm-gap); padding: 0; border: 0; min-width: 0; }
.hm-pay > legend { float: left; width: 100%; padding: 0; }
.hm-pay > legend + * { clear: both; }
.hm-pay__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.hm-pay__opt .hm-choice__face { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 4px 14px; padding: 16px 44px 16px 16px; }
.hm-pay__opt .hm-choice__art { width: 44px; height: 44px; aspect-ratio: auto; border: 0; border-radius: 50%; }
.hm-pay__opt .hm-choice__art .hm-icon { width: 22px; height: 22px; }
.hm-paykinds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.hm-paykind { padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 999px; font: 500 .66rem/1.3 var(--sans); letter-spacing: .06em; color: var(--ink); background: var(--surface); }
.hm-paynote { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 var(--hm-gap); padding: 16px 18px; border: 1px solid var(--line); border-left: 3px solid var(--brass); border-radius: var(--hm-r); background: var(--hm-tint); }
.hm-paynote > .hm-icon { width: 22px; height: 22px; margin-top: 2px; color: var(--brass-text); }
.hm-paynote p { margin: 0; font-size: .95rem; }
.hm-paynote p + p { margin-top: 4px; color: var(--muted); font-size: .88rem; }
.hm-review__consent { margin: 0 0 6px; }
.hm-consent .field { margin: 0; }
.hm-btn--book { min-width: min(100%, 260px); }
.hm-secure { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0; font-size: .8rem; color: var(--muted); }
.hm-secure .hm-icon { width: 16px; height: 16px; margin-top: 2px; }

/* ---------- Alerts, banners, toast ---------- */
.hm-alert { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 18px; padding: 14px 18px; border: 1px solid color-mix(in srgb, var(--error) 45%, var(--line)); border-left: 3px solid var(--error); border-radius: var(--hm-r); background: color-mix(in srgb, var(--error) 6%, var(--surface)); }
.hm-alert:focus { outline: none; }
.hm-alert p { margin: 0; }
.hm-alert > .hm-icon { color: var(--error); margin-top: 2px; }
.hm-banner { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 22px; padding: 14px 18px; border: 1px solid var(--line); border-left: 3px solid var(--brass); border-radius: var(--hm-r); background: var(--hm-tint); }
.hm-banner p { margin: 0; }
.hm-banner--ok { border-left-color: var(--hm-ok); }
.hm-banner .hm-icon { margin-top: 2px; color: var(--brass-text); }
.hm-toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 100001; max-width: min(92vw, 520px); margin: 0; padding: 12px 18px;
	border-radius: var(--hm-r); background: var(--primary); color: var(--on-primary); font-size: .92rem; line-height: 1.4;
	box-shadow: 0 16px 34px -18px rgba(0,0,0,.5); transform: translate(-50%, 20px); opacity: 0; transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.hm-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Booked and manage ---------- */
.hm-done__hero { position: relative; margin: 0 0 clamp(22px, 3vw, 32px); padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: 0 0 clamp(56px, 6vw, 96px) 0; background: var(--surface); }
.hm-done__hero::before { content: ""; position: absolute; inset: 7px; border: 1px solid color-mix(in srgb, var(--brass) 40%, transparent); border-radius: 0 0 calc(clamp(56px, 6vw, 96px) - 7px) 0; pointer-events: none; }
.hm-done__tick { display: inline-grid; place-items: center; width: 64px; height: 64px; margin: 0 0 16px; border-radius: 50%; background: var(--primary); color: var(--on-primary); animation: hm-pop .6s var(--ease) both .1s; }
.hm-done__tick .hm-icon { width: 32px; height: 32px; stroke-width: 2.2; stroke-dasharray: 30; stroke-dashoffset: 30; animation: hm-draw .5s var(--ease) forwards .45s; }
.hm-done__tick.is-quiet { background: var(--hm-tint-2); color: var(--brass-text); }
.hm-done__tick.is-quiet .hm-icon { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; stroke-width: 1.6; }
@keyframes hm-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hm-draw { to { stroke-dashoffset: 0; } }
.hm-done__hero .hm-lede { margin-bottom: 0; }
.hm-done__hero .hm-btn { margin-top: 18px; }
.hm-done__manage { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 var(--hm-gap); }
.hm-done__move, .hm-done__confirm { margin: 0 0 var(--hm-gap); padding: clamp(16px, 2vw, 24px); border: 1px solid var(--line); border-radius: var(--hm-r); background: var(--surface); }
.hm-confirm__title { margin: 0 0 6px; font: 400 1.35rem/1.2 var(--serif); color: var(--ink); }
.hm-next { margin: clamp(22px, 3vw, 32px) 0 0; }
.hm-next__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--hm-gap); margin: 0; padding: 0; list-style: none; }
.hm-next__list li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-top: 1px solid var(--line); font-size: .93rem; }
.hm-next__list .hm-icon { width: 22px; height: 22px; color: var(--brass-text); }

/* ---------- Gallery ---------- */
.hm-gallery { margin: clamp(48px, 7vw, 96px) 0 0; padding: clamp(32px, 5vw, 64px) 0 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.hm-gallery__head { margin: 0 0 18px; }
.hm-title--gallery { font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.7rem); }
.hm-title--gallery:focus { outline: none; }
.hm-gallery__chips { margin-bottom: 12px; }
.hm-gallery__note { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 16px; font-size: .9rem; color: var(--muted); }
.hm-gallery__note .hm-icon { width: 17px; height: 17px; margin-top: 3px; color: var(--brass-text); }
.hm-works { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--hm-gap); margin: 0; padding: 0; list-style: none; }
.hm-work__btn { display: grid; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; color: var(--ink); }
.hm-work__frame { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--hm-r); background: var(--surface-2); }
.hm-work__img { display: block; width: 100%; height: 100%; object-fit: cover; filter: var(--img-filter); transition: transform 1.2s var(--ease), filter 1.2s var(--ease); }
.hm-work__btn:hover .hm-work__img { transform: scale(1.04); filter: var(--img-filter-h); }
.hm-work__btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.hm-work__count, .hm-work__ba { position: absolute; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: rgba(13, 22, 40, .72); color: #fff; font: 500 .68rem/1.2 var(--sans); letter-spacing: .04em; }
.hm-work__count { right: 10px; bottom: 10px; }
.hm-work__count .hm-icon { width: 14px; height: 14px; }
.hm-work__ba { left: 10px; top: 10px; text-transform: uppercase; letter-spacing: .14em; font-size: .58rem; }
.hm-work__body { display: grid; gap: 2px; padding: 10px 2px 0; }
.hm-work__title { font: 400 1.2rem/1.2 var(--serif); }
.hm-work__meta { font-size: .8rem; color: var(--muted); }
.hm-gallery__stock { margin: 18px 0 0; font-size: .84rem; color: var(--muted); }
.hm-gallery__more { margin: 22px 0 0; text-align: center; }

.hm-lightbox { width: min(1100px, 94vw); max-width: 94vw; max-height: 94vh; margin: auto; padding: 0; border: 0; background: transparent; color: #f2ede4; overflow: visible; }
.hm-lightbox::backdrop { background: rgba(8, 12, 22, .9); }
.hm-lightbox__in { position: relative; }
.hm-lightbox__fig { margin: 0; }
.hm-lightbox__stage { position: relative; display: grid; place-items: center; max-height: 78vh; overflow: hidden; border-radius: var(--hm-r); background: #0b0f19; }
.hm-lightbox__img { display: block; max-width: 100%; max-height: 78vh; width: auto; height: auto; object-fit: contain; }
.hm-lightbox__tag { position: absolute; left: 14px; top: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(13, 22, 40, .78); color: #fff; font: 500 .62rem/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.hm-lightbox__cap { display: grid; gap: 3px; padding: 14px 4px 0; }
.hm-lightbox__count { font: 500 .6rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #a8b0bf; }
.hm-lightbox__title { font: 400 1.4rem/1.2 var(--serif); color: #f2ede4; }
.hm-lightbox__meta, .hm-lightbox__text { font-size: .9rem; color: #c9ced8; }
.hm-lightbox .hm-iconbtn { width: 48px; height: 48px; background: rgba(13, 22, 40, .6); color: #fff; }
.hm-lightbox .hm-iconbtn:hover { background: rgba(13, 22, 40, .9); }
.hm-lightbox .hm-iconbtn .hm-icon { width: 22px; height: 22px; }
.hm-lightbox__close { position: absolute; right: 10px; top: 10px; z-index: 2; }
.hm-lightbox__nav { position: absolute; top: calc(39vh - 24px); z-index: 2; }
.hm-lightbox__prev { left: 10px; }
.hm-lightbox__next { right: 10px; }
html.hm-lb-open, html.hm-lb-open body { overflow: hidden; }

/* ---------- One question at a time ---------- */
.hm-q { scroll-margin: 110px 0 150px; }
.hm-q.is-current { border-color: color-mix(in srgb, var(--brass) 60%, var(--line)); box-shadow: inset 3px 0 0 var(--brass); transition: border-color .5s var(--ease), box-shadow .5s var(--ease); }
.hm-q__step { display: block; flex-basis: 100%; margin: 0 0 2px; font: 500 .56rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--brass-text); }
.hm-q__step--alone { margin: 14px clamp(16px, 2vw, 22px) -8px; }
.hm-q__next { display: flex; justify-content: flex-end; margin-top: 14px; }
.hm-q--toggle .hm-q__next { margin: -4px clamp(16px, 2vw, 22px) 14px; }
.hm-btn--quiet { background: var(--hm-tint); border-color: color-mix(in srgb, var(--brass) 35%, var(--line)); color: var(--ink); }
.hm-btn--quiet:hover:not(:disabled), .hm-btn--quiet:focus-visible { border-color: var(--brass); background: var(--hm-tint-2); }

.hm-q--row { padding: 0; background: transparent; }
.hm-qrow { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; width: 100%; min-height: 62px; padding: 9px clamp(14px, 2vw, 20px); border: 0; background: none; text-align: left; cursor: pointer; }
.hm-qrow__mark { display: block; min-width: 40px; }
.hm-qrow__pic { position: relative; display: inline-flex; align-items: center; vertical-align: middle; }
.hm-qrow__chip { display: inline-grid; place-items: center; flex: none; width: 42px; height: 42px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--brass) 35%, var(--line)); border-radius: 50%; background: var(--hm-plate); color: var(--brass-text); }
.hm-qrow__chip .hm-icon { width: 21px; height: 21px; stroke-width: 1.5; }
.hm-qrow__chip--photo { background: var(--surface-2); }
.hm-qrow__img { display: block; width: 100%; height: 100%; object-fit: cover; filter: var(--img-filter); }
.hm-qrow__pic--stack .hm-qrow__chip + .hm-qrow__chip { margin-left: -14px; box-shadow: 0 0 0 2px var(--surface); }
.hm-qrow__chip--more { font: 500 .72rem/1 var(--sans); color: var(--ink); background: var(--hm-tint-2); }
.hm-qrow__chip--none { border-color: var(--line); background: var(--surface-2); color: var(--muted); }
.hm-qrow__chip--yes { background: var(--hm-tint-2); }
.hm-qrow__num { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 9px; border: 1px solid color-mix(in srgb, var(--brass) 35%, var(--line)); border-radius: 21px; background: var(--hm-tint-2); font: 400 1.2rem/1 var(--serif); color: var(--ink); }
.hm-qrow__ok { position: absolute; right: -4px; bottom: -3px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--brass); color: var(--surface); box-shadow: 0 0 0 2px var(--surface); }
.hm-qrow__ok .hm-icon { width: 11px; height: 11px; stroke-width: 3; }
.hm-qrow__pic--step > span { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px dashed var(--line-strong); border-radius: 50%; font: italic 400 1.05rem/1 var(--serif); color: var(--muted); }
.hm-qrow__label { font: 500 .6rem/1.35 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.hm-qrow__value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; color: var(--ink); }
.hm-q--row.is-next .hm-qrow__value { color: var(--muted); }
.hm-qrow__edit { font: 500 .6rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass-text); }
.hm-qrow:hover .hm-qrow__edit { text-decoration: underline; text-underline-offset: .25em; }
.hm-qrow:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.hm-q--row:hover { border-color: color-mix(in srgb, var(--brass) 45%, var(--line)); }

.hm-choices__more { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; width: 100%; margin: 10px 0 0; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: var(--hm-r); background: none; cursor: pointer; text-align: left; font: 500 .8rem/1.3 var(--sans); color: var(--brass-text); }
.hm-choices__more .hm-icon { width: 16px; height: 16px; }
.hm-choices__peek { flex-basis: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; color: var(--muted); }
.hm-choices__more:hover { border-color: var(--brass); }
.hm-choices__more:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.hm-more { border: 1px dashed var(--line-strong); border-radius: var(--hm-r); }
.hm-more[open] { border-style: solid; border-color: var(--line); }
.hm-more__sum { display: grid; gap: 3px; padding: 14px clamp(14px, 2vw, 20px); cursor: pointer; list-style: none; }
.hm-more__sum::-webkit-details-marker { display: none; }
.hm-more__sum:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hm-more__title { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 .64rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.hm-more__icon { width: 16px; height: 16px; color: var(--brass-text); transition: transform .3s var(--ease); }
.hm-more[open] .hm-more__icon { transform: rotate(45deg); }
.hm-more__count { padding: 2px 8px; border-radius: 999px; background: var(--hm-tint-2); font-size: .7rem; letter-spacing: .04em; text-transform: none; }
.hm-more__peek { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; color: var(--muted); }
.hm-more[open] .hm-more__peek { display: none; }
.hm-more__body { display: grid; gap: 14px; padding: 0 clamp(10px, 1.4vw, 14px) clamp(10px, 1.4vw, 14px); }

.hm-foot.is-ready { border-color: color-mix(in srgb, var(--brass) 60%, var(--line)); }
.hm-foot.is-ready [data-add] { animation: hm-ready 1.6s var(--ease) 1; }
@keyframes hm-ready { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brass) 60%, transparent); } 70% { box-shadow: 0 0 0 12px transparent; } 100% { box-shadow: none; } }

.hm-lede--short { margin-bottom: 4px; }
.hm-about { margin-top: 8px; }
.hm-about > summary { display: inline-flex; align-items: center; min-height: 36px; cursor: pointer; font: 500 .62rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--brass-text); }
.hm-about > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hm-about .hm-lede { margin-top: 4px; }
.hm-asks { margin: 0 0 22px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--hm-r); font-size: .92rem; color: var(--muted); }

/* ---------- Questions and answers, related jobs ---------- */
.hm-info { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(22px, 3vw, 44px); margin-top: clamp(36px, 5vw, 64px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line); }
.hm-info__title { margin: 0 0 10px; font: 400 clamp(1.3rem, 1.1rem + .6vw, 1.6rem)/1.2 var(--serif); color: var(--ink); }
.hm-faq__item { border-bottom: 1px solid var(--line); }
.hm-faq__item > summary { position: relative; padding: 14px 34px 14px 0; cursor: pointer; list-style: none; font: 500 1rem/1.4 var(--sans); color: var(--ink); }
.hm-faq__item > summary::-webkit-details-marker { display: none; }
.hm-faq__item > summary::after { content: "+"; position: absolute; right: 6px; top: 11px; font: 300 1.4rem/1 var(--sans); color: var(--brass-text); transition: transform .3s var(--ease); }
.hm-faq__item[open] > summary::after { transform: rotate(45deg); }
.hm-faq__item > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hm-faq__item > p { margin: -4px 0 16px; font-size: .95rem; line-height: 1.65; color: var(--text); }
.hm-related__list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hm-related__link { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--hm-r); font-size: .95rem; color: var(--ink); text-decoration: none; transition: border-color .3s var(--ease); }
.hm-related__link .hm-icon { width: 20px; height: 20px; color: var(--brass-text); }
.hm-related__link:hover { border-color: var(--brass); }
.hm-related__link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Popular, A to Z, search hits ---------- */
.hm-popular { margin: 0 0 clamp(20px, 2.6vw, 30px); }
.hm-popular__title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 500 .62rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.hm-popular__title .hm-icon { width: 16px; height: 16px; color: var(--brass-text); }
.hm-popular__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.hm-pop { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 5px 12px 5px 5px; border: 1px solid var(--line); border-radius: var(--hm-r); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.hm-pop .hm-art { width: 56px; height: 56px; flex: none; aspect-ratio: auto; border-radius: var(--hm-r); }
.hm-pop .hm-art--icon::after { inset: 4px; }
.hm-pop .hm-art__icon { width: 26px; height: 26px; }
.hm-pop__body { display: grid; gap: 2px; min-width: 0; }
.hm-pop__name { font: 500 .95rem/1.25 var(--sans); }
.hm-pop__price { font-size: .8rem; color: var(--muted); }
.hm-pop:hover { border-color: var(--brass); transform: translateY(-1px); }
.hm-pop.is-added { border-color: color-mix(in srgb, var(--brass) 55%, var(--line)); }
.hm-pop:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.hm-az { margin-top: clamp(20px, 2.6vw, 30px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hm-az__sum { display: flex; align-items: center; gap: 10px; min-height: 56px; cursor: pointer; list-style: none; font: 500 .64rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.hm-az__sum::-webkit-details-marker { display: none; }
.hm-az__sum .hm-icon { width: 18px; height: 18px; color: var(--brass-text); }
.hm-az__sum::after { content: "+"; margin-left: auto; font: 300 1.4rem/1 var(--sans); color: var(--brass-text); transition: transform .3s var(--ease); }
.hm-az[open] > .hm-az__sum::after { transform: rotate(45deg); }
.hm-az__sum:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hm-az__body { columns: 3 220px; column-gap: 32px; padding: 4px 0 20px; }
.hm-az__group { break-inside: avoid; margin: 0 0 14px; }
.hm-az__letter { margin: 0 0 4px; font: italic 400 1.15rem/1 var(--serif); color: var(--brass-text); }
.hm-az__list { margin: 0; padding: 0; list-style: none; }
.hm-az__list a { display: inline-block; padding: 4px 0; font-size: .95rem; color: var(--text); text-decoration: none; }
.hm-az__list a:hover { color: var(--brass-text); text-decoration: underline; text-underline-offset: .2em; }
.hm-az__list a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.hm-cat-about { margin: 22px 0 0; max-width: 46em; font-size: .95rem; line-height: 1.65; color: var(--muted); }

.hm-results__jobs { margin: 0 0 18px; }
.hm-results__sub { margin: 0 0 8px; font: 500 .58rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hm-hits { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.hm-hit { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--hm-r); background: var(--hm-tint); color: var(--ink); text-decoration: none; transition: border-color .3s var(--ease); }
.hm-hit__icon .hm-icon { width: 24px; height: 24px; color: var(--brass-text); }
.hm-hit__body { display: grid; flex: 1; min-width: 0; }
.hm-hit__name { font: 500 .95rem/1.25 var(--sans); }
.hm-hit__in { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; color: var(--muted); }
.hm-hit__go { width: 16px; height: 16px; color: var(--brass-text); }
.hm-hit:hover { border-color: var(--brass); }
.hm-hit:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hm-results__try { margin: 6px 0 10px; font-size: .9rem; color: var(--muted); }
.hm-results__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
a.hm-chip, a.hm-crumbs__back { text-decoration: none; }

@media (max-width: 760px) {
	.hm-info { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
	.hm-popular__list { display: flex; gap: 8px; margin: 0 -16px; padding: 0 16px 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.hm-popular__list::-webkit-scrollbar { display: none; }
	.hm-popular__list > li { flex: 0 0 auto; width: 72%; max-width: 260px; scroll-snap-align: start; }
	.hm-qrow { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "mark label edit" "mark value edit"; gap: 1px 12px; padding: 8px 12px; }
	.hm-qrow__chip, .hm-qrow__pic--step > span { width: 38px; height: 38px; }
	.hm-qrow__num { min-width: 38px; height: 38px; }
	.hm-qrow__mark { grid-area: mark; }
	.hm-qrow__label { grid-area: label; }
	.hm-qrow__value { grid-area: value; }
	.hm-qrow__edit { grid-area: edit; }
	.hm-az__body { columns: 2 140px; column-gap: 20px; }
	.hm-hits { grid-template-columns: minmax(0, 1fr); }
	.hm-q__next .hm-btn { width: 100%; }
}

/* ---------- Under 1024 px: one column, the panel becomes a bar and a sheet ---------- */
@media (max-width: 1023px) {
	.hm-layout { grid-template-columns: minmax(0, 1fr); }
	.hm-side {
		position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 100000; max-height: 82vh; overflow-y: auto; overscroll-behavior: contain;
		transform: translateY(105%); visibility: hidden; transition: transform .38s var(--ease), visibility 0s linear .38s;
		padding: 0 0 env(safe-area-inset-bottom, 0px);
	}
	.hm-side.is-open { transform: none; visibility: visible; transition: transform .38s var(--ease); box-shadow: 0 -24px 60px -20px rgba(0,0,0,.35); }
	.hm-side .hm-sum { border-radius: 14px 14px 0 0; box-shadow: none; border-bottom: 0; }
	.hm-sum__close { display: inline-grid; }
	html.hm-sheet-open::after { content: ""; position: fixed; inset: 0; z-index: 99999; background: rgba(8, 12, 22, .45); }
	html.hm-sheet-open, html.hm-sheet-open body { overflow: hidden; }
	.hm-bar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; display: flex; align-items: center; gap: 10px;
		padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 96%, transparent);
		box-shadow: 0 -12px 30px -22px var(--shadow); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	}
	.hm-bar__info { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 8px; flex: 1; min-width: 0; min-height: 48px; padding: 4px 6px; border: 0; background: none; text-align: left; cursor: pointer; }
	.hm-bar__count { grid-column: 1; font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.hm-bar__total { grid-column: 1; font: 400 1.4rem/1.1 var(--serif); color: var(--ink); }
	.hm-bar__chev { grid-column: 2; grid-row: 1 / span 2; width: 18px; height: 18px; color: var(--muted); transform: rotate(180deg); }
	.hm-bar__info:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
	.hm-bar__cta { flex: none; min-height: 48px; padding: .75rem 1rem; }
	.hm { padding-bottom: 96px; }
	.hm[data-view="configure"], .hm[data-view="review"], .hm[data-view="done"] { padding-bottom: clamp(48px, 6vw, 96px); }
	.hm-svc-hero { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
	.hm-svc-hero__art .hm-art { aspect-ratio: 1; }
	.hm-svc-hero__art .hm-art__icon { max-width: 44px; max-height: 44px; }
	.hm-svc-hero .hm-title--svc { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem); }
	.hm-toast { bottom: 92px; }
}

@media (max-width: 640px) {
	.hm-badges { gap: 10px 18px; }
	.hm-badge { font-size: .58rem; letter-spacing: .16em; }
	.hm-progress__label { display: none; }
	.hm-progress__step.is-current .hm-progress__label { display: inline; }
	.hm-progress__step.is-current { flex: 3; }
	.hm-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.hm-cat__body { padding: 10px 12px 12px; }
	.hm-cat .hm-art { aspect-ratio: 16 / 10; }
	.hm-cat .hm-art__icon { width: 34%; height: 34%; }
	.hm-progress__step.is-current .hm-progress__label { letter-spacing: .12em; }
	.hm-cat__name { font-size: 1.1rem; }
	.hm-cat__meta { font-size: .74rem; }
	.hm-svcs { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.hm-svc { flex-direction: row; align-items: stretch; }
	.hm-svc .hm-art { width: 108px; flex: none; aspect-ratio: auto; }
	.hm-svc .hm-art__icon { width: 46px; height: 46px; }
	.hm-svc__body { padding: 12px 44px 12px 14px; }
	.hm-svc__name { font-size: 1.2rem; }
	.hm-svc__sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.hm-svc__go { width: 30px; height: 30px; right: 10px; bottom: auto; top: 50%; margin-top: -15px; }
	.hm-svc__added { left: auto; right: 8px; top: 8px; padding: 3px 8px 3px 6px; font-size: .62rem; }
	.hm-choices--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hm-foot { flex-wrap: nowrap; gap: 12px; margin-left: -4px; margin-right: -4px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); }
	.hm-foot__sum { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.hm-foot__label, .hm-foot__how { display: none; }
	.hm-foot__price { font-size: 1.6rem; }
	.hm-foot__time { font-size: .76rem; }
	.hm-foot__actions { flex: none; }
	.hm-foot__actions .hm-btn--ghost { display: none; }
	.hm-foot__actions .hm-btn--primary { padding: .8rem 1rem; font-size: .64rem; letter-spacing: .14em; }
	.hm-choice__art { aspect-ratio: 2 / 1; }
	.hm-choice__art--icon .hm-icon { width: 32px; height: 32px; }
	.hm-q { padding: 14px; }
	.hm-q--toggle { padding: 0; }
	.hm-switch { padding: 14px; }
	.hm-times__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hm-view__nav { flex-direction: column-reverse; align-items: stretch; }
	.hm-view__nav .hm-btn { width: 100%; }
	.hm-view__nav .hm-btn--primary { margin-left: 0; }
	.hm-works { grid-template-columns: minmax(0, 1fr); }
	.hm-lightbox__nav { top: auto; bottom: -58px; }
	.hm-lightbox__prev { left: 0; }
	.hm-lightbox__next { right: 0; }
	.hm-lightbox__cap { padding-bottom: 60px; }
}

@media (prefers-reduced-motion: reduce) {
	.hm *, .hm *::before, .hm *::after { animation: none !important; transition: none !important; }
	.hm-done__tick .hm-icon { stroke-dashoffset: 0; }
}

/* The site header's menu link (added while handyman services are on). */
.nav-handyman > a { white-space: nowrap; }

/* ---------- The Handyman page (scope .pg-hm): the booking app first, then about it ---------- */
:where(.pg-hm) .hm-app { padding: clamp(18px, 3vw, 40px) 0 clamp(40px, 6vw, 96px); }
:where(.pg-hm) .hm-intro { padding-top: clamp(48px, 6vw, 96px); }
:where(.pg-hm) .hm-how { padding-top: clamp(48px, 6vw, 96px); }
