/* Hallmark · shape: the apartment (a film of one room, then each room in its stages) · genre: editorial · theme: custom · job: book · idea: "Kozak renovates one room at a time, so the site is an apartment whose plan is the menu and whose rooms change state as you scroll" · vibe: "dark limestone film, quiet, exact"
 * paper: oklch(21% 0.022 250) · accent: oklch(76% 0.065 172) · display: Clash Grotesk · body: Switzer · hero: a full-screen film of the bathroom, the head low on the left, the apartment plan low on the right as the room picker · nav: mark and wordmark left, three links and a quiet action right, scrolling away with the hero · footer: the door mark, the legal identity, four room links, one line on the pictures · imagery: generated photographs of three rooms, each in two to four states of work, declared as illustrations in the footer · signature: in the hero a room unfolds from its own rectangle on the plan to the full screen; lower down a change of picture opens like a door, a fan sweeping from a hinge in the corner; the same bathroom seen from one camera through four stages of work, each stage with its devis lines
 * axes: dark/grotesk-sans/chromatic-green · posture: Restrained, the accent is the colour of La Rochelle shutters and marks the chosen room and the primary action · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V5 · weakest: R, the plan and the film both ask for the eye in the hero; the plan stays hairline-thin and small so the room wins */
/* Hallmark · waive 83 · four rooms, each a forfait shown before and after in six finishes · the rooms are the offer this page sells, not decoration around it */
/* Hallmark · waive 59 · the hero film and the first state of the bathroom share one camera and one room · the seam between them is a cut inside the same room, so no band of paper separates them */
/* Hallmark · waive 75 · the second line of the logo lockup is part of the mark, sized by the founder against the mark height · it is a logo, not text to read; the name is repeated in the page title and the footer */
/* Hallmark · waive 80 · the apartment plan is a diagram used as navigation, labelled, each room a link · the plan is how a visitor picks the room to renovate */
@import url("./tokens.css");
@import url("./base.css");

@property --a { syntax: "<angle>"; inherits: false; initial-value: 90deg; }
:root { --head: 6.5rem; --color-focus-stone: oklch(40% 0.09 172); --btn-bg: var(--color-accent); --btn-ink: var(--color-accent-ink); --btn-hover: var(--color-ink); }

h1, h2, h3 { font-weight: 400; letter-spacing: var(--tracking-display); }
h2 { font-size: var(--text-section); line-height: 1.04; max-width: 16ch; }
h3 { font-size: var(--text-title); line-height: 1.15; font-weight: 500; letter-spacing: -0.01em; }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border: 1px solid var(--btn-bg); border-radius: var(--radius-card); background: var(--btn-bg); color: var(--btn-ink); font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--quiet { background: transparent; color: var(--color-ink); border-color: var(--color-ink-2); }
.btn--quiet:hover { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--color-ink); padding: 0 var(--space-sm); text-decoration: underline; text-underline-offset: 0.3em; }
.btn--ghost:hover { background: transparent; border-color: transparent; color: var(--color-accent); }
html:not(.js) [data-loop-toggle] { display: none; }
@media (prefers-reduced-motion: reduce) { .btn { transition: background-color var(--dur-short) linear; } [data-loop-toggle] { display: none; } }

/* top */
.top { position: absolute; inset: 0 0 auto 0; z-index: var(--z-sticky-nav); display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); height: var(--head); padding-inline: var(--gutter); }
.brand { --h: 3.5rem; display: inline-flex; align-items: stretch; gap: calc(var(--h) * 0.3); text-decoration: none; color: var(--color-ink); }
.brand__mark { flex-shrink: 0; width: var(--h); height: var(--h); }
.brand__name { align-self: center; height: calc(var(--h) * 0.85); display: flex; flex-direction: column; justify-content: space-between; align-items: center; font-family: var(--font-outlier); text-transform: uppercase; white-space: nowrap; }
.brand__k { font-size: calc(var(--h) * 0.731); line-height: 1; letter-spacing: 0.14em; margin-right: -0.14em; text-box: trim-both cap alphabetic; }
.brand__r { font-size: calc(var(--h) * 0.183); line-height: 1; letter-spacing: 0.5em; margin-right: -0.5em; text-box: trim-both cap alphabetic; color: var(--color-ink-2); }
.top__nav { display: flex; align-items: center; gap: var(--space-lg); }
.top__nav a:not(.btn) { text-decoration: none; white-space: nowrap; color: var(--color-ink); transition: color var(--dur-short) var(--ease-out); }
.top__nav a:not(.btn):hover { color: var(--color-accent); }
.top__nav .btn { min-height: 44px; }
.top__menu { display: none; position: relative; width: 44px; height: 44px; margin-right: calc(-1 * var(--space-xs)); padding: 0; border: 0; background: none; color: var(--color-accent); cursor: pointer; }
.top__menu span { position: absolute; top: 20px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; transition: transform var(--dur-short) var(--ease-out), opacity var(--dur-short) var(--ease-out); }
.top__menu span:nth-child(1) { left: 10px; }
.top__menu span:nth-child(2) { left: 20px; }
.top__menu span:nth-child(3) { left: 30px; }
.top__menu:hover { color: var(--color-ink); }
.top__menu:active span { transform: scale(0.8); }
.top__menu[aria-expanded="true"] span { border-radius: 0; }
.top__menu[aria-expanded="true"] span:nth-child(1) { transform: translateX(10px) rotate(45deg) scale(6, 0.4); }
.top__menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.top__menu[aria-expanded="true"] span:nth-child(3) { transform: translateX(-10px) rotate(-45deg) scale(6, 0.4); }
.top__menu:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* hero */
.hero { position: relative; display: grid; align-items: end; min-height: 100svh; overflow: hidden; }
.hero__media, .hero__room, .hero__scrim { position: absolute; inset: 0; }
.hero__media { isolation: isolate; }
.hero__room { opacity: 0; }
.hero__room.is-on { opacity: 1; }
.hero__room.is-in { z-index: var(--z-raised); animation: unfold 1100ms var(--ease-in-out) both; }
@keyframes unfold { from { clip-path: inset(var(--it, 50%) var(--ir, 50%) var(--ib, 50%) var(--il, 50%)); } to { clip-path: inset(0 0 0 0); } }
@keyframes door { from { --a: 0deg; } to { --a: 90deg; } }
.hero__room img, .hero__room video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__room video { opacity: 0; transition: opacity var(--dur-long) var(--ease-out); }
.hero__room video.is-live { opacity: 1; }
.hero__scrim { background: linear-gradient(180deg, var(--color-scrim) 0%, var(--color-scrim-0) 24%), linear-gradient(72deg, var(--color-scrim) 0%, var(--color-scrim-0) 64%); }
.hero__body { position: relative; z-index: var(--z-raised); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22.5rem); align-items: end; gap: var(--gap-columns); width: 100%; max-width: var(--container); margin-inline: auto; padding: calc(var(--head) + var(--space-xl)) var(--gutter) var(--space-2xl); }
.hero h1 { font-size: var(--text-display); line-height: 0.98; max-width: 11ch; }
.hero__lede { margin-top: var(--space-lg); max-width: 34ch; font-size: var(--text-lead); color: var(--color-ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin-top: var(--space-xl); }

/* the plan */
.plan { padding: var(--space-md); background: var(--color-scrim); }
.plan__svg { width: 100%; height: auto; overflow: visible; }
.plan__walls path { fill: none; stroke: var(--color-ink); stroke-width: 1.25; }
.plan__walls .plan__swing { stroke-width: 0.75; stroke-dasharray: 1 3.4; stroke-linecap: round; }
.plan__room rect { fill: var(--color-scrim-0); transition: fill var(--dur-short) var(--ease-out); }
.plan__room text, .plan__mute { font: 400 13px/1 var(--font-body); fill: var(--color-ink); }
.plan__mute { fill: var(--color-muted); }
.plan__room { cursor: pointer; }
.plan__room:hover rect, .plan__room[aria-current="true"] rect { fill: color-mix(in oklab, var(--color-accent) 34%, transparent); }
.plan__room:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }


/* the bathroom in four states */
.stages { position: relative; margin: 0; padding: 0; list-style: none; counter-reset: stage; }
.stage { position: relative; height: 100svh; min-height: 36rem; overflow: hidden; counter-increment: stage; background: var(--color-paper); }
.js .chapter { height: 450svh; }
.chapter h2 { padding: var(--space-3xl) var(--gutter) var(--space-xl); }
.js .chapter__pin { position: sticky; top: 0; height: 100svh; min-height: 36rem; overflow: hidden; }
.js .stages { position: absolute; inset: 0; }
.js .chapter h2 { position: absolute; z-index: var(--z-raised); top: var(--space-3xl); left: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); padding: 0; }
.js .stage { position: absolute; inset: 0; height: auto; min-height: 0; overflow: visible; background: none; }
.js .stage > img { --a: calc(var(--p, 0) * 90deg); -webkit-mask-image: conic-gradient(from 0deg at 0% 100%, var(--color-ink) var(--a), var(--color-scrim-0) var(--a)); mask-image: conic-gradient(from 0deg at 0% 100%, var(--color-ink) var(--a), var(--color-scrim-0) var(--a)); }
.js .stage:first-child > img { -webkit-mask-image: none; mask-image: none; }
.js .stage::after { content: none; }
.js .stages::after { content: ""; position: absolute; inset: 0; z-index: var(--z-base); background: linear-gradient(72deg, var(--color-scrim) 0%, var(--color-scrim-0) 58%); pointer-events: none; }
.js .stage__panel { opacity: 0; visibility: hidden; transition: opacity var(--dur-long) var(--ease-out), visibility 0s linear var(--dur-long); }
.js .stage.is-active .stage__panel { opacity: 1; visibility: visible; transition-delay: 0s; }

.stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(72deg, var(--color-scrim) 0%, var(--color-scrim-0) 58%); }
.stage__panel { position: absolute; z-index: var(--z-raised); left: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); bottom: var(--space-2xl); width: min(27rem, calc(100% - 2 * var(--gutter))); }
.stage__panel h3 { font-size: var(--text-xl); }
.stage__panel h3::before { content: counter(stage) ". "; color: var(--color-accent); }
.stage__note { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-ink-2); }

.lines { margin: var(--space-md) 0 0; padding: 0; list-style: none; }
.lines li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-lg); padding-block: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
.lines li:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.lines span { flex-shrink: 0; color: var(--color-ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* the devis, on stone */
.devis, .visit { --color-focus: var(--color-focus-stone); --btn-bg: var(--color-stone-ink); --btn-ink: var(--color-stone); --btn-hover: var(--color-stone-ink-2); position: relative; background: var(--color-stone); color: var(--color-stone-ink); }
.devis { padding-block: var(--section-gap-l); }
.devis__grid, .steps__grid, .visit__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: start; }
.devis h2 { font-size: var(--text-display-s); max-width: 9ch; }
.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: var(--space-lg); padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-stone-rule); }
.facts > div:last-child { border-bottom: var(--rule-hair) solid var(--color-stone-rule); }
.facts dt { font-weight: 500; }
.facts dd { margin: 0; font-size: var(--text-lg); line-height: 1.4; max-width: 34ch; }
.fill { padding: 0 0.25em; border: 1px dashed var(--color-stone-ink-2); border-radius: var(--radius-card); color: var(--color-stone-ink-2); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* two more rooms */
.rooms { padding-block: var(--section-gap) var(--section-gap-s); }
.rooms__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.rooms__head p { max-width: 38ch; color: var(--color-ink-2); }
.room { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: center; padding-block: var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); scroll-margin-top: var(--space-lg); }
.room:nth-of-type(even) { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.room:nth-of-type(even) .room__text { order: 2; }
.room h3 { font: 400 var(--text-3xl)/1.05 var(--font-display); letter-spacing: var(--tracking-display); }
.room__note { margin-top: var(--space-md); min-height: 3em; max-width: 30ch; font-size: var(--text-lead); color: var(--color-ink-2); }
.room .cmp { margin: 0; aspect-ratio: 3 / 2; }
.styles { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-block: var(--space-lg); }
html:not(.js) .styles { display: none; }
.styles button { min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: transparent; color: var(--color-ink-2); font: 400 var(--text-md)/1 var(--font-body); white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.styles button:hover { border-color: var(--color-ink); color: var(--color-ink); }
.styles button:active { transform: translateY(1px); }
.styles button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.styles button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.styles button[aria-pressed="true"] { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.cmp__next { opacity: 0; }
.cmp__next.is-in { opacity: 1; -webkit-mask-image: conic-gradient(from 0deg at 0% 100%, var(--color-ink) var(--a), var(--color-scrim-0) var(--a)); mask-image: conic-gradient(from 0deg at 0% 100%, var(--color-ink) var(--a), var(--color-scrim-0) var(--a)); animation: door 900ms var(--ease-in-out) both; }
.hero__scrim::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--color-scrim) 0%, var(--color-scrim-0) 62%); opacity: 0; transition: opacity var(--dur-long) var(--ease-out); }
.hero.is-bright .hero__scrim::after { opacity: 1; }
.cmp { position: relative; margin: 0 0 var(--space-lg); aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-paper-2); }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--color-ink); }
.cmp figcaption { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; padding: var(--space-sm) var(--space-md); font-size: var(--text-sm); color: var(--color-ink); background: linear-gradient(0deg, var(--color-scrim) 0%, var(--color-scrim-0) 100%); pointer-events: none; }
.cmp__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.cmp:has(.cmp__range:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* the path */
.steps { padding-block: var(--section-gap); background: var(--color-paper-2); }
.steps__list { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps__list li { display: grid; grid-template-columns: var(--space-2xl) minmax(0, 14rem) minmax(0, 1fr); gap: var(--space-lg); align-items: baseline; padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); counter-increment: step; color: var(--color-ink-2); }
.steps__list li:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.steps__list li::before { content: counter(step); font: 400 var(--text-2xl)/1 var(--font-display); color: var(--color-accent); }
.steps__list b { font: 500 var(--text-title)/1.15 var(--font-display); color: var(--color-ink); }

/* professionals */
.pros { padding-block: var(--section-gap-s); }
.pros__row { display: flex; align-items: end; justify-content: space-between; gap: var(--space-2xl); }
.pros h2 { max-width: 30ch; }

/* the visit */
.visit { padding-block: var(--section-gap); }
.visit__head p { margin-top: var(--space-lg); max-width: 32ch; font-size: var(--text-lead); color: var(--color-stone-ink-2); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--gap-columns); }
.field { display: grid; gap: var(--space-xs); }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-stone-ink-2); border-radius: var(--radius-card); background: var(--color-stone); color: var(--color-stone-ink); outline: 2px solid transparent; outline-offset: -3px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-color: var(--color-focus); }
.field [aria-invalid] { border-color: var(--color-error); }
.check { display: flex; align-items: baseline; gap: var(--space-sm); cursor: pointer; }
.check input { flex-shrink: 0; width: 1.125rem; height: 1.125rem; accent-color: var(--color-stone-ink); }
.form__end { display: flex; align-items: center; gap: var(--space-lg); }
.form__help { min-height: 1lh; font-size: var(--text-sm); color: var(--color-stone-ink-2); }

/* the company, the questions */
.proof__list { margin-top: 0; }
.page .fill { border-color: var(--color-ink-2); color: var(--color-ink-2); }
.faq details { border-top: var(--rule-hair) solid var(--color-rule); }
.faq details:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq summary { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-lg); padding-block: var(--space-lg); font: 500 var(--text-title)/1.2 var(--font-display); cursor: pointer; list-style: none; transition: color var(--dur-short) var(--ease-out); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; font-weight: 400; color: var(--color-accent); }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--color-accent); }
.faq summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.faq details:not([open]) p { display: none; }
.faq details p { max-width: 52ch; padding-bottom: var(--space-lg); color: var(--color-ink-2); }
.form__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form__legal { font-size: var(--text-sm); color: var(--color-stone-ink-2); }

/* the header comes back when the page is scrolled up */
.top.is-float { position: fixed; transform: translateY(-100%); transition: transform var(--dur-long) var(--ease-out); }
.top.is-float::before { content: ""; position: absolute; inset: 0 0 auto 0; z-index: -1; height: 190%; background: linear-gradient(180deg, color-mix(in oklab, var(--color-paper) 88%, transparent) 0%, var(--color-scrim) 38%, var(--color-scrim-0) 100%); pointer-events: none; }
.top.is-float.is-shown { transform: none; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* inner pages */
.legal .top { background: var(--color-paper); }
.page { padding-block: var(--space-3xl) var(--section-gap-s); }
.page__title { font-size: var(--text-display-s); line-height: 1.02; max-width: 14ch; margin-bottom: var(--space-3xl); }
.page__end { margin-top: var(--space-3xl); }
.page h2 { font-size: var(--text-2xl); line-height: 1.1; max-width: none; }
.faq__group { padding-block: var(--space-xl) var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); }
.faq__group details:first-child { border-top: 0; }
.faq__group details:first-child summary { padding-top: 0; }
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: start; margin-bottom: var(--section-gap-s); }
.contact__text h2 { margin: var(--space-2xl) 0 var(--space-md); }
.contact__text h2:first-child { margin-top: 0; }
.contact__text p, .contact__text address { margin-bottom: var(--space-md); font-style: normal; font-size: var(--text-lg); line-height: 1.5; color: var(--color-ink-2); }
.map { position: relative; isolation: isolate; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); }
.map > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 8px color-mix(in oklab, var(--color-accent) 28%, transparent); }
.map__pin { position: absolute; left: 50%; top: 47.08%; transform: translate(-50%, -50%); }
.map__label { position: absolute; left: 50%; top: 47.08%; margin: calc(-1 * var(--space-xl)) 0 0 var(--space-md); padding: var(--space-2xs) var(--space-xs); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-sm); white-space: nowrap; }
.map__credit { position: absolute; right: 0; bottom: 0; z-index: 1000; padding: var(--space-2xs) var(--space-xs); background: var(--color-scrim); color: var(--color-ink-2); font-size: var(--text-xs); pointer-events: none; }
.map__live { position: absolute; inset: 0; }
.map.is-live > img, .map.is-live > .map__pin, .map.is-live > .map__label { display: none; }
.map .leaflet-container { background: var(--color-paper-2); font: inherit; outline-offset: -2px; }
.map .leaflet-container:focus-visible { outline: 2px solid var(--color-focus); }
.map .leaflet-bar { border: var(--rule-hair) solid var(--color-rule); border-radius: 0; box-shadow: none; }
.map .leaflet-container .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; border-radius: 0; border-bottom-color: var(--color-rule); background: var(--color-paper); color: var(--color-ink); transition: background-color var(--dur-short) var(--ease-out); }
.map .leaflet-container .leaflet-bar a:hover { background: var(--color-paper-3); color: var(--color-ink); }
.map .leaflet-container .leaflet-bar a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.map .leaflet-container .leaflet-bar a.leaflet-disabled { background: var(--color-paper); color: var(--color-muted); }
.map .leaflet-tooltip { padding: var(--space-2xs) var(--space-xs); border: 0; border-radius: 0; background: var(--color-paper); color: var(--color-ink); font-size: var(--text-sm); box-shadow: none; }
.map .leaflet-tooltip::before { content: none; }
.map__hint { display: none; margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
@media (hover: none) { .js .map__hint { display: block; } }
.company { padding-top: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.company__link { margin-top: var(--space-lg); }
.page a:not(.btn):hover { color: var(--color-accent); }
.page a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* legal pages */
.legal .top { position: relative; }
.sheet { --color-focus: var(--color-focus-stone); background: var(--color-stone); color: var(--color-stone-ink); padding-block: var(--space-3xl) var(--section-gap-s); }
.sheet__body { max-width: 52rem; }
.sheet h1 { font-size: var(--text-display-s); line-height: 1.02; margin-bottom: var(--space-2xl); }
.sheet h2 { font-size: var(--text-xl); line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; max-width: none; margin: var(--space-xl) 0 var(--space-sm); }
.sheet p { max-width: 62ch; line-height: 1.6; }
.sheet a:focus-visible, .foot a:focus-visible, .form__legal a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* foot */
.foot { padding-block: var(--space-3xl) var(--space-2xl); color: var(--color-ink-2); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr); gap: var(--space-xl) var(--gap-columns); align-items: start; }
.foot__brand { --h: 4rem; justify-self: start; }
.foot__note { grid-column: 2 / -1; max-width: 62ch; }
.foot__id { font-style: normal; }
.foot__links { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-xs); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--color-accent); }
.foot__note { font-size: var(--text-sm); color: var(--color-muted); }

@media (max-width: 60rem) {
  .js .top__menu { display: block; }
  .top__nav a:not(.btn) { display: none; }
  .js .top__nav { display: none; position: absolute; top: 100%; left: var(--gutter); right: var(--gutter); flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-xs) var(--space-md); background: color-mix(in oklab, var(--color-paper) 58%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .js .top.is-open .top__nav { display: flex; }
  .js .top__nav a:not(.btn) { display: flex; align-items: center; min-height: 48px; border-bottom: var(--rule-hair) solid var(--color-rule); font-size: var(--text-lg); }
  .js .top__nav a:nth-last-of-type(2) { border-bottom: 0; }
  .js .top__nav .btn { display: none; }
  .hero__body { grid-template-columns: minmax(0, 1fr); padding-bottom: var(--space-xl); }
  .plan { max-width: 17rem; }
  .devis__grid, .steps__grid, .visit__grid, .rooms__head, .contact, .room, .room:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .room:nth-of-type(even) .room__text { order: 0; }
  .room__note { min-height: 0; }
  .devis h2 { max-width: 14ch; }
  .pros__row { flex-direction: column; align-items: start; gap: var(--space-xl); }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__note { grid-column: 1 / -1; }
  .stage::after, .js .stages::after { background: linear-gradient(0deg, var(--color-scrim) 30%, var(--color-scrim-0) 90%); }
  .hero__scrim { background: linear-gradient(180deg, var(--color-scrim) 0%, var(--color-scrim-0) 22%), linear-gradient(0deg, var(--color-scrim) 58%, var(--color-scrim-0) 96%); }
}
@media (max-width: 40rem) {
  .brand { --h: 3.25rem; }
  .top__nav .btn { display: none; }
  .facts > div, .steps__list li { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .form { grid-template-columns: minmax(0, 1fr); }
  .form__end { flex-direction: column; align-items: start; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 23rem) { .brand { --h: 2.5rem; } .top { gap: var(--space-sm); } }
@media (prefers-reduced-motion: reduce) { .hero__room.is-in { animation: none; } .hero__room video, .plan__room rect, .styles button, .hero__scrim::after, .top.is-float, .faq summary, .top__menu span, .map .leaflet-bar a { transition: none; } .cmp__next.is-in { animation: none; -webkit-mask-image: none; mask-image: none; } }

/* service and city pages (SEO pass 2) */
/* sloplint waivers (2026-11-30): FAIL 58 words-per-screen waived on service pages, the text is what search engines index (about 110 words per screen, lists and FAQ); REFLEX 75 is the logo subtitle used sitewide; REFLEX 77/78 text sections and 31px heads follow the existing inner pages (questions, contact) */
.crumbs { display: flex; gap: var(--space-xs); margin-bottom: var(--space-xl); font-size: var(--text-sm); color: var(--color-muted); }
.crumbs a { color: var(--color-ink-2); text-decoration: none; }
.metier__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.metier__head .page__title { margin-bottom: 0; }
.metier__lead p { margin-bottom: var(--space-lg); font-size: var(--text-lg); line-height: 1.5; color: var(--color-ink-2); max-width: 46ch; }
.metier__fig { margin: 0 0 var(--space-xl); }
.metier__fig img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.metier__fig figcaption { margin-top: var(--space-xs); font-size: var(--text-xs); color: var(--color-muted); }
.metier__block { padding-block: var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); }
.metier__block .container > h2 { margin-bottom: var(--space-lg); }
.metier__text { max-width: 58ch; font-size: var(--text-lg); line-height: 1.55; color: var(--color-ink-2); }
.metier .steps__list li span { max-width: 52ch; }
.page__end .btn--ghost { margin-left: var(--space-sm); }
.metier__more { margin-top: var(--space-lg); max-width: 62ch; font-size: var(--text-sm); line-height: 1.7; color: var(--color-muted); }
.foot__trades { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
@media (max-width: 60rem) { .foot__trades { grid-column: 1 / -1; } }
@media (max-width: 60rem) { .metier__head { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } }
