/* ==========================================================================
   Custom Made Doors: design system
   Palette taken from the installed doors: warm plaster walls, cashmere and
   oak leaves, black hardware. Motifs: door-proportioned frames with a
   "casing" line, the black lever handle, architectural dimension lines.
   ========================================================================== */

:root {
    --c-plaster: #f3efe9;
    --c-paper: #fbf9f6;
    --c-white: #ffffff;
    --c-sand: #e9e2d7;
    --c-sand-deep: #ddd3c5;
    --c-cashmere: #cdc1b1;
    --c-taupe: #9a8d7c;
    --c-oak: #a3784a;
    --c-oak-deep: #7d5a34;
    --c-oak-light: #c9a477;
    --c-ink: #161513;
    --c-graphite: #2a2825;
    --c-charcoal: #3a3632;
    --c-muted: #6c655c;
    --c-line: rgba(22, 21, 19, .12);
    --c-line-strong: rgba(22, 21, 19, .28);
    --c-line-light: rgba(243, 239, 233, .16);
    --c-error: #a83a2c;

    --f-display: 'Cormorant Garamond', 'Times New Roman', serif;
    --f-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --container: 1320px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section: clamp(4.5rem, 9vw, 8.5rem);
    --radius: 2px;
    --r-md: 14px;
    --r-lg: 24px;
    --shadow-soft: 0 1px 2px rgba(22, 21, 19, .04), 0 12px 32px -12px rgba(22, 21, 19, .18);
    --shadow-lift: 0 2px 4px rgba(22, 21, 19, .05), 0 28px 60px -20px rgba(22, 21, 19, .35);
    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-door: cubic-bezier(.65, .05, .25, 1);
    --header-h: 84px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
    margin: 0;
    font-family: var(--f-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--c-ink);
    background: var(--c-plaster);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.1; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
dl, dd { margin: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
::selection { background: var(--c-oak); color: var(--c-white); }
:focus-visible { outline: 2px solid var(--c-oak); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; padding: .75rem 1.25rem; background: var(--c-ink); color: var(--c-white); }
.skip-link:focus { top: 1rem; }

.icon { width: 1.1em; height: 1.1em; flex: none; }
.icon--xs { width: .75em; height: .75em; }
.icon--lg { width: 2.25rem; height: 2.25rem; }
.icon--xl { width: 2.75rem; height: 2.75rem; }

/* ---------- typography ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    margin: 0 0 1.25rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--c-muted);
}
.eyebrow--light { color: var(--c-cashmere); }

/* the lever handle: signature detail */
.handle {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: currentColor;
    flex: none;
}
.handle::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 50%;
    width: 6px;
    height: 12px;
    border-radius: 3px;
    background: currentColor;
    transform: translateY(-50%);
}
.eyebrow .handle { color: var(--c-oak); }

.section-title {
    font-family: var(--f-display);
    font-size: clamp(2.4rem, 4.6vw, 4.2rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.018em;
    text-wrap: balance;
}
.section-title em, .hero__title em, .page-hero__title em, .cta__title em {
    font-style: italic;
    color: var(--c-oak);
}
.section-title--light { color: var(--c-plaster); }
.section-title--light em { color: var(--c-oak-light); }

/* ---------- buttons & links ---------- */
.btn {
    --btn-bg: transparent;
    --btn-fg: var(--c-ink);
    --btn-bd: var(--c-ink);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    min-height: 3.3rem;
    padding: .85rem 1.65rem;
    border: 1px solid var(--btn-bd);
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.2;
    overflow: hidden;
    isolation: isolate;
    transition: color .35s var(--ease), border-color .35s var(--ease);
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--btn-hover, var(--c-oak));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .45s var(--ease-door);
}
.btn:hover::after { transform: scaleX(1); transform-origin: left; }
.btn:hover { color: var(--btn-hover-fg, var(--c-white)); border-color: var(--btn-hover, var(--c-oak)); }
.btn .icon { transition: transform .35s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--dark { --btn-bg: var(--c-ink); --btn-fg: var(--c-plaster); --btn-bd: var(--c-ink); }
.btn--dark .handle { color: var(--c-oak-light); }
.btn--ghost { --btn-bd: var(--c-line-strong); --btn-hover: var(--c-ink); }
.btn--ghost .handle { color: var(--c-oak); }
.btn--oak { --btn-bg: var(--c-oak); --btn-fg: var(--c-white); --btn-bd: var(--c-oak); --btn-hover: var(--c-ink); }
.btn--oak .handle { color: var(--c-white); }
.btn--light { --btn-bd: var(--c-line-light); --btn-fg: var(--c-plaster); --btn-hover: var(--c-plaster); --btn-hover-fg: var(--c-ink); }
.btn--white { --btn-bg: var(--c-white); --btn-fg: var(--c-ink); --btn-bd: var(--c-white); }
.btn--glass {
    --btn-bg: rgba(255, 255, 255, .1);
    --btn-fg: var(--c-white);
    --btn-bd: rgba(255, 255, 255, .45);
    --btn-hover: var(--c-white);
    --btn-hover-fg: var(--c-ink);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.btn--glass .handle { color: var(--c-oak-light); }
.btn--sm { min-height: 2.75rem; padding: .55rem 1.2rem; font-size: .86rem; }
.btn--block { width: 100%; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding-bottom: .3rem;
    border-bottom: 1px solid var(--c-line-strong);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: gap .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.link-arrow:hover { gap: 1rem; border-color: var(--c-oak); color: var(--c-oak-deep); }
.link-arrow--light { color: var(--c-plaster); border-color: var(--c-line-light); }
.link-arrow--light:hover { color: var(--c-oak-light); border-color: var(--c-oak-light); }

.round-btn {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    flex: none;
    padding: 0;
    border: 1px solid var(--c-line-strong);
    border-radius: 50%;
    background: transparent;
    color: var(--c-ink);
    transition: background .3s, color .3s, border-color .3s, opacity .3s;
}
.round-btn:hover { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-plaster); }
.round-btn:disabled { opacity: .3; pointer-events: none; }
.round-btn--light { border-color: rgba(255, 255, 255, .35); color: var(--c-white); }
.round-btn--light:hover { background: var(--c-white); border-color: var(--c-white); color: var(--c-ink); }
.icon--flip { transform: rotate(180deg); }

/* ---------- top bar & header ---------- */
.topbar { background: var(--c-ink); color: rgba(243, 239, 233, .72); font-size: .78rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.topbar__item { display: inline-flex; align-items: center; gap: .5rem; transition: color .25s; }
.topbar a.topbar__item:hover { color: var(--c-oak-light); }
.topbar__right { display: flex; align-items: center; gap: 1.75rem; }
.topbar__phone { display: none; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s;
}
.site-header::before {
    /* The frosted background sits on a pseudo-element: backdrop-filter on the header itself
       would make the header the containing block of the fixed mobile menu and clip it. */
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(243, 239, 233, .9);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.site-header.is-scrolled { border-color: var(--c-line); box-shadow: 0 10px 30px -24px rgba(22, 21, 19, .5); }
.site-header__inner { display: flex; align-items: center; gap: 1rem; height: var(--header-h); transition: height .35s var(--ease); }

.logo { display: inline-flex; align-items: center; gap: .85rem; color: var(--c-ink); flex: none; }
.logo__mark { width: 26px; height: 36px; transition: width .35s var(--ease), height .35s var(--ease); }
.logo__leaf { transform-origin: 6px 50%; transition: transform .6s var(--ease-door); }
.logo__handle { fill: var(--c-plaster); }
.logo:hover .logo__leaf { transform: scaleX(.72); }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-size: 1.02rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.logo__tag { margin-top: .3rem; font-size: .66rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--c-muted); transition: opacity .3s, margin .35s var(--ease), max-height .35s var(--ease); max-height: 1.2em; overflow: hidden; }
.logo--light { color: var(--c-plaster); }
.logo--light .logo__handle { fill: var(--c-ink); }
.logo--light .logo__tag { color: var(--c-taupe); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .1rem; }
.nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .6rem .55rem;
    font-size: .88rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--c-graphite);
    transition: color .25s;
}
.nav__link::after {
    content: '';
    position: absolute;
    left: .55rem;
    right: .55rem;
    bottom: .2rem;
    height: 1px;
    background: var(--c-oak);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--c-ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__chevron { transition: transform .3s var(--ease); }
.nav__expand, .nav__footer { display: none; }

/* mega menu: the panel spans the whole header, so the list item stays static */
.nav__item--mega { position: static; }
.mega {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--c-paper);
    border-top: 1px solid var(--c-line);
    box-shadow: 0 40px 60px -40px rgba(22, 21, 19, .45);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s, transform .35s var(--ease), display .35s allow-discrete;
}
.mega::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 28px; } /* hover bridge from the link */
.nav__item--mega:hover .mega, .nav__item--mega:focus-within .mega { display: block; opacity: 1; transform: none; }
@starting-style {
    .nav__item--mega:hover .mega, .nav__item--mega:focus-within .mega { opacity: 0; transform: translateY(-8px); }
}
.nav__item--mega:hover .nav__chevron, .nav__item--mega:focus-within .nav__chevron { transform: rotate(180deg); }
.mega__inner { display: grid; grid-template-columns: 1fr 290px; gap: clamp(2rem, 4vw, 3.5rem); padding-block: 1.75rem 2rem; }
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem 1rem; align-content: start; }
.mega__item { display: grid; grid-template-columns: 60px 1fr; gap: .9rem; align-items: center; padding: .55rem; border-radius: 10px; transition: background .25s; }
.mega__item:hover { background: var(--c-plaster); }
.mega__thumb { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; background: var(--c-sand); }
.mega__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.mega__item:hover .mega__thumb img { transform: scale(1.08); }
.mega__thumb::after { content: ''; position: absolute; inset: 4px; border: 1px solid rgba(255, 255, 255, .5); pointer-events: none; }
.mega__text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.mega__name { font-family: var(--f-display); font-size: 1.12rem; font-weight: 600; line-height: 1.15; transition: color .25s; }
.mega__item:hover .mega__name { color: var(--c-oak-deep); }
.mega__tagline { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .74rem; line-height: 1.45; color: var(--c-muted); }
.mega__aside { display: flex; flex-direction: column; align-items: flex-start; padding: 1.5rem 1.6rem; border-radius: var(--r-md); background: var(--c-sand); }
.mega__aside .eyebrow { margin-bottom: .75rem; }
.mega__title { margin-bottom: .5rem; font-family: var(--f-display); font-size: 1.4rem; line-height: 1.15; }
.mega__text-small { margin-bottom: 1.1rem; font-size: .82rem; color: var(--c-muted); }
.mega__all { margin-top: 1rem; font-size: .72rem; }

.header-phone { display: inline-flex; align-items: center; gap: .55rem; flex: none; color: var(--c-ink); }
.header-phone__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--c-line-strong);
    border-radius: 50%;
    color: var(--c-oak-deep);
    transition: background .3s, border-color .3s, color .3s;
}
.header-phone__text { display: flex; flex-direction: column; font-size: .92rem; font-weight: 700; line-height: 1.2; letter-spacing: .02em; white-space: nowrap; }
.header-phone__text small { font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-muted); }
.header-phone:hover .header-phone__icon { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-oak-light); }

.site-header__cta { flex: none; }
.burger { display: none; position: relative; width: 44px; height: 44px; margin-left: auto; border: 0; background: none; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--c-ink); transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* compact header once the page scrolls (desktop) */
@media (min-width: 1101px) {
    .site-header.is-scrolled .site-header__inner { height: 68px; }
    .site-header.is-scrolled .logo__mark { width: 22px; height: 30px; }
    .site-header.is-scrolled .logo__tag { opacity: 0; max-height: 0; margin-top: 0; }
}

/* on the home page the header lies over the hero photo until the page scrolls or a menu opens */
.site-header::before { transition: opacity .35s; }
.logo, .nav__link, .header-phone, .header-phone__icon, .logo__tag { transition: color .3s, border-color .3s, background .3s; }
.page-home .site-header::before { background: rgba(243, 239, 233, .97); }
.page-home .site-header:not(.is-scrolled, :has(.nav__item--mega:hover, .nav__item--mega:focus-within, .nav.is-open)) {
    border-color: rgba(255, 255, 255, .14);
    &::before { opacity: 0; }
    .logo, .nav__link, .nav__link:hover, .nav__link.is-active, .header-phone { color: var(--c-white); }
    .logo__handle { fill: var(--c-ink); }
    .logo__tag, .header-phone__text small { color: rgba(255, 255, 255, .7); }
    .nav__link::after { background: var(--c-oak-light); }
    .header-phone__icon { border-color: rgba(255, 255, 255, .4); color: var(--c-white); }
    .site-header__cta { --btn-bg: var(--c-white); --btn-fg: var(--c-ink); --btn-bd: var(--c-white); }
    .site-header__cta .handle { color: var(--c-oak); }
    .burger span { background: var(--c-white); }
}

/* reading progress on articles */
.read-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--c-oak); transform: scaleX(var(--progress, 0)); transform-origin: left; opacity: 0; transition: opacity .3s; }
.read-progress.is-active { opacity: 1; }

/* mobile call / inquiry bar */
.action-bar { display: none; }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .75); }
.section--sand { background: var(--c-sand); }
.section--dark { background: var(--c-ink); color: var(--c-plaster); }
.section--inset { margin-inline: clamp(.5rem, 1.5vw, 1.25rem); border-radius: var(--r-lg); }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem 4rem;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head > div { max-width: 46rem; }
.section-head__text { max-width: 30rem; margin: 0; color: var(--c-muted); }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-foot { display: flex; justify-content: center; margin-top: clamp(2.5rem, 5vw, 4rem); }

/* ---------- hero: full-screen photos of installed doors ---------- */
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }

.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: max(620px, calc(100svh - 38px)); /* the top bar stays visible above */
    padding: calc(var(--header-h) + 3rem) 0 clamp(2.5rem, 5vw, 4.5rem);
    overflow: hidden;
    background: var(--c-ink);
    color: var(--c-white);
    isolation: isolate;
}
.page-home .hero { margin-top: calc(-1 * var(--header-h)); }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(14, 13, 12, .6) 0%, rgba(14, 13, 12, 0) 24%),
        linear-gradient(0deg, rgba(14, 13, 12, .82) 0%, rgba(14, 13, 12, .3) 42%, rgba(14, 13, 12, 0) 68%),
        linear-gradient(90deg, rgba(14, 13, 12, .5) 0%, rgba(14, 13, 12, 0) 62%);
    pointer-events: none;
}
.hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__slide.is-active { z-index: 1; opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50%) 50%; transform: scale(1.08); transition: transform 9s linear; }
.hero__slide.is-active img { transform: none; }

/* two door leaves swing open once per visit to reveal the photos */
.hero__doors { position: absolute; inset: 0; z-index: 3; display: flex; perspective: 2400px; pointer-events: none; }
.hero__door {
    position: relative;
    flex: 1;
    background: linear-gradient(90deg, #2b2723, #23201d);
    transform-origin: left center;
    animation: leaf-left 1.6s .25s var(--ease-door) forwards;
}
.hero__door::before { content: ''; position: absolute; inset: 12% 14%; border: 1px solid rgba(243, 239, 233, .08); }
.hero__door::after { content: ''; position: absolute; top: 50%; right: 7%; width: 3px; height: 74px; margin-top: -37px; border-radius: 2px; background: var(--c-oak-light); }
.hero__door--right { background: linear-gradient(270deg, #2b2723, #23201d); transform-origin: right center; animation-name: leaf-right; }
.hero__door--right::after { right: auto; left: 7%; }
@keyframes leaf-left { to { transform: rotateY(-96deg); opacity: 0; visibility: hidden; } }
@keyframes leaf-right { to { transform: rotateY(96deg); opacity: 0; visibility: hidden; } }
.doors-seen .hero__doors { display: none; }

.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2.5rem 4rem; }
.hero__content { max-width: 52rem; animation: rise 1s 1.1s var(--ease) both; }
.hero__title {
    margin-bottom: 1.5rem;
    font-family: var(--f-display);
    font-size: clamp(3rem, 6.4vw, 6.5rem);
    font-weight: 400;
    line-height: .94;
    letter-spacing: -.02em;
    text-wrap: balance;
}
.hero .hero__title em { color: var(--c-oak-light); }
.hero__lead { max-width: 34rem; font-size: 1.1rem; color: rgba(255, 255, 255, .82); }
.hero .eyebrow { color: rgba(255, 255, 255, .78); }
.hero .eyebrow .handle { color: var(--c-oak-light); }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.doors-seen .hero__content, .doors-seen .hero__panel { animation-delay: .1s; }

.hero__panel {
    width: 340px;
    padding: 1.25rem 1.35rem 1rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--r-md);
    background: rgba(22, 21, 19, .38);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    animation: rise 1s 1.35s var(--ease) both;
}
.hero__captions { display: grid; }
.hero__caption {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 1rem;
    align-content: start;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .45s, transform .6s var(--ease), visibility .45s;
}
.hero__caption.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: .2s; }
.hero__caption-index { grid-column: 1 / -1; margin-bottom: .2rem; font-family: var(--f-display); font-size: 1rem; font-style: italic; color: var(--c-oak-light); }
.hero__caption-index i { color: rgba(255, 255, 255, .5); }
.hero__caption strong { font-family: var(--f-display); font-size: 1.55rem; font-weight: 500; line-height: 1.1; }
.hero__caption-text { margin-top: .3rem; font-size: .82rem; line-height: 1.45; color: rgba(255, 255, 255, .72); }
.hero__caption .icon {
    grid-column: 2;
    grid-row: 2 / 4;
    align-self: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: .65rem;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.hero__caption:hover .icon { background: var(--c-white); border-color: var(--c-white); color: var(--c-ink); transform: rotate(-45deg); }
.hero__controls { display: flex; align-items: center; gap: .45rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid rgba(255, 255, 255, .16); }
.hero__controls .round-btn { width: 2.4rem; height: 2.4rem; }
.hero__dots { display: flex; flex: 1; gap: .4rem; margin-right: .6rem; }
.hero__dot { position: relative; flex: 1; height: 22px; padding: 0; border: 0; background: none; }
.hero__dot::before, .hero__dot span { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; }
.hero__dot::before { background: rgba(255, 255, 255, .25); transition: background .25s; }
.hero__dot:hover::before { background: rgba(255, 255, 255, .5); }
.hero__dot span { background: var(--c-white); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active span { transform: scaleX(var(--progress, 1)); }

/* ---------- door type cards ---------- */
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.type-card__link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.5;
    overflow: hidden;
    border-radius: var(--r-md);
    background: var(--c-graphite);
    color: var(--c-white);
}
.type-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.type-card__link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(22, 21, 19, .1) 0%, rgba(22, 21, 19, 0) 35%, rgba(22, 21, 19, .82) 100%);
    transition: background .5s;
}
.type-card__frame, .project-card__frame {
    position: absolute;
    inset: 14px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, .55);
    opacity: 0;
    transform: scale(1.04);
    transition: opacity .5s var(--ease), transform .6s var(--ease);
    pointer-events: none;
}
.type-card__index {
    position: absolute;
    top: 1.4rem;
    left: 1.5rem;
    z-index: 3;
    font-family: var(--f-display);
    font-size: 1.15rem;
    font-style: italic;
    color: rgba(255, 255, 255, .85);
}
.type-card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 1.5rem; }
.type-card__title { font-family: var(--f-display); font-size: clamp(1.55rem, 2.1vw, 1.95rem); line-height: 1.05; }
.type-card__tagline { margin: .7rem 0 0; font-size: .86rem; line-height: 1.5; color: rgba(255, 255, 255, .8); }
.type-card__more {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--c-oak-light);
}
.type-card__link:hover .type-card__img { transform: scale(1.06); }
.type-card__link:hover .type-card__frame, .project-card__link:hover .project-card__frame { opacity: 1; transform: none; }
@media (hover: hover) {
    .type-card__tagline, .type-card__more { max-height: 0; opacity: 0; margin-top: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s, margin .4s; }
    .type-card__link:hover .type-card__tagline { max-height: 6rem; opacity: 1; margin-top: .7rem; }
    .type-card__link:hover .type-card__more { max-height: 2rem; opacity: 1; margin-top: 1rem; }
}

/* ---------- statement with inline photos ---------- */
.intro { padding-bottom: calc(var(--section) * .85); }
.statement {
    max-width: 66rem;
    font-family: var(--f-display);
    font-size: clamp(2.1rem, 4.5vw, 4.2rem);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -.015em;
}
.statement em { font-style: italic; color: var(--c-oak); }
.statement__pic {
    display: inline-block;
    width: 2.1em;
    height: .86em;
    margin: 0 .04em;
    overflow: hidden;
    border-radius: 999px;
    background: var(--c-sand);
    vertical-align: -.06em;
}
.statement__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transition: transform 1.2s var(--ease); }
.statement__pic--arch { width: .8em; height: 1.06em; border-radius: 999px 999px .12em .12em; vertical-align: -.2em; }
.statement:hover .statement__pic img { transform: scale(1.08); }
.intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 3rem clamp(3rem, 8vw, 8rem);
    margin-top: clamp(2.5rem, 5vw, 4.5rem);
    padding-top: clamp(2rem, 3vw, 2.75rem);
    border-top: 1px solid var(--c-line);
}
.intro__text p { max-width: 34rem; margin-bottom: 1.75rem; color: var(--c-charcoal); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.stats a { display: flex; flex-direction: column; gap: .9rem; }
.stats__num { font-family: var(--f-display); font-size: clamp(3.2rem, 5.6vw, 5.2rem); font-weight: 400; line-height: .9; transition: color .3s; }
.stats__label { padding-top: .8rem; border-top: 1px solid var(--c-line-strong); font-size: .84rem; font-weight: 600; color: var(--c-muted); transition: border-color .3s, color .3s; }
.stats a:hover .stats__num { color: var(--c-oak); }
.stats a:hover .stats__label { border-color: var(--c-oak); color: var(--c-ink); }

/* ---------- solutions: list with an image preview ---------- */
.solutions__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.solutions__list { border-top: 1px solid var(--c-line-strong); }
.solution {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--c-line-strong);
}
.solution__index { font-family: var(--f-display); font-size: 1.1rem; font-style: italic; color: var(--c-taupe); transition: color .3s; }
.solution__thumb { display: none; }
.solution__name { display: block; font-family: var(--f-display); font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.08; transition: color .3s, transform .45s var(--ease); }
.solution__tagline { display: block; max-height: 0; overflow: hidden; opacity: 0; font-size: .9rem; color: var(--c-muted); transition: max-height .5s var(--ease), opacity .35s, margin .4s var(--ease); }
.solution__arrow {
    width: 2.75rem;
    height: 2.75rem;
    padding: .75rem;
    border: 1px solid var(--c-line-strong);
    border-radius: 50%;
    transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease);
}
.solution.is-active .solution__index { color: var(--c-oak); }
.solution.is-active .solution__name { color: var(--c-oak-deep); transform: translateX(.35rem); }
.solution.is-active .solution__tagline { max-height: 4rem; margin-top: .4rem; opacity: 1; transform: translateX(.35rem); }
.solution.is-active .solution__arrow { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-plaster); transform: rotate(-45deg); }
.solutions__preview { position: sticky; top: calc(var(--header-h) + 2rem); }
.solutions__frame {
    /* a doorway arch */
    position: relative;
    aspect-ratio: 4 / 5.2;
    overflow: hidden;
    border-radius: 999px 999px var(--r-md) var(--r-md);
    background: var(--c-sand-deep);
}
.solutions__image { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s var(--ease); }
.solutions__image.is-active { z-index: 1; opacity: 1; }
.solutions__image img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.4s var(--ease); }
.solutions__image.is-active img { transform: none; }

/* ---------- project cards ---------- */
.project-card__link { display: flex; flex-direction: column; height: 100%; }
.project-card__media { position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: var(--r-md); background: var(--c-sand); }
.project-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .7s var(--ease); }
.project-card__img--alt { opacity: 0; }
.project-card__link:hover .project-card__img { transform: scale(1.04); }
.project-card__link:hover .project-card__img--alt { opacity: 1; }
.project-card__count {
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .6rem;
    background: rgba(22, 21, 19, .6);
    backdrop-filter: blur(6px);
    color: var(--c-white);
    font-size: .72rem;
    font-weight: 700;
}
.project-card__body { position: relative; padding: 1.15rem 3rem 0 0; }
.project-card__title { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.1; }
.project-card__meta { margin: .35rem 0 0; font-size: .8rem; color: var(--c-muted); }
.project-card__arrow {
    position: absolute;
    right: 0;
    top: 1.15rem;
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid var(--c-line-strong);
    border-radius: 50%;
    transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.project-card__link:hover .project-card__arrow { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-white); transform: rotate(-45deg); }

/* ---------- lookbook: horizontal row of projects ---------- */
.lookbook { overflow: hidden; }
.lookbook__nav { display: flex; gap: .6rem; }
.lookbook__track {
    --edge: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
    display: flex;
    align-items: flex-start;
    gap: clamp(1rem, 2vw, 1.75rem);
    padding-inline: var(--edge);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--edge);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    cursor: grab;
}
.lookbook__track::-webkit-scrollbar { display: none; }
.lookbook__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.look { flex: 0 0 clamp(260px, 26vw, 390px); scroll-snap-align: start; }
.look:nth-child(even) { padding-top: clamp(1.5rem, 4vw, 3.5rem); }
.look__link { display: block; }
.look__media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r-md); background: var(--c-sand); }
.look__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.look__link:hover .look__img { transform: scale(1.05); }
.look__caption { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .9rem; padding-top: 1rem; }
.look__index { grid-row: span 2; font-family: var(--f-display); font-size: 1.05rem; font-style: italic; line-height: 1.75; color: var(--c-oak); }
.look__title { font-family: var(--f-display); font-size: 1.55rem; line-height: 1.15; transition: color .3s; }
.look__types { font-size: .8rem; color: var(--c-muted); }
.look__link:hover .look__title { color: var(--c-oak-deep); }
.look--more {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: .35rem;
    flex: 0 0 clamp(220px, 19vw, 290px);
    aspect-ratio: 3 / 4;
    padding: 1.75rem;
    border-radius: var(--r-md);
    background: var(--c-ink);
    color: var(--c-plaster);
    font-weight: 600;
}
.look--more__num { font-family: var(--f-display); font-size: 5rem; font-weight: 400; line-height: .9; color: var(--c-oak-light); }
.look--more .round-btn { margin-top: 1.25rem; border-color: var(--c-line-light); color: var(--c-plaster); }
.look--more:hover .round-btn { background: var(--c-plaster); border-color: var(--c-plaster); color: var(--c-ink); }
.lookbook__foot { display: flex; align-items: center; gap: 2rem; margin-top: 2.75rem; }
.lookbook__progress { position: relative; flex: 1; height: 1px; background: var(--c-line-strong); }
.lookbook__progress span { position: absolute; top: -1px; left: 0; width: 30%; height: 3px; border-radius: 3px; background: var(--c-ink); transition: left .15s linear; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem clamp(1rem, 2vw, 1.75rem); }
.project-grid .project-card.is-hidden { display: none; }

/* ---------- configurator ---------- */
.configurator { position: relative; overflow: hidden; }
.configurator::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 80% at 15% 50%, rgba(163, 120, 74, .16), transparent 70%);
    pointer-events: none;
}
.configurator__grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.configurator__visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 2rem 2rem;
    background: linear-gradient(180deg, #34312d, #2a2825);
    border: 1px solid var(--c-line-light);
    border-radius: var(--r-md);
}
.configurator__sides { display: inline-flex; margin-bottom: 2rem; padding: 3px; border: 1px solid var(--c-line-light); border-radius: 999px; }
.configurator__sides button {
    padding: .55rem 1.1rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--c-cashmere);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: background .25s, color .25s;
}
.configurator__sides button.is-active { background: var(--c-plaster); color: var(--c-ink); }
.door-svg { width: min(100%, 260px); height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.door-svg__wall { fill: #3a3632; }
.door-svg__casing { fill: var(--frame-dark, #0e0d0c); transition: fill .5s; }
.door-svg__frame { fill: var(--frame, #1b1a18); transition: fill .5s; }
.door-svg__panel { fill: var(--panel, #141414); transition: fill .5s; }
.door-svg__shine { fill: url(#g-shine); opacity: 0; transition: opacity .4s; }
.door-svg__floor { fill: #1f1d1a; }
.door-svg__handle rect { fill: #b9b9b9; transition: fill .4s; }
.door-svg__hall { opacity: 0; transition: opacity .6s var(--ease); }
.door-svg__bath { transition: opacity .6s var(--ease); }
[data-side="hall"] .door-svg__hall { opacity: 1; }
[data-side="hall"] .door-svg__bath { opacity: 0; }
[data-side="hall"] .door-svg__handle rect { fill: #161513; }
[data-side="hall"] .door-svg__casing { fill: #c3b5a3; }
[data-frame="white"] { --frame: #f2f0ec; --frame-dark: #dcd8d1; }
[data-frame="beige"] { --frame: #cdbb9f; --frame-dark: #b29f82; }
[data-frame="black"] { --frame: #1b1a18; --frame-dark: #0e0d0c; }
[data-panel="white"] { --panel: #f7f6f3; }
[data-panel="beige"] { --panel: #d9c8ad; }
[data-panel="black"] { --panel: #141414; }
[data-panel="thermo"] { --panel: #ecebe7; }
[data-panel="mirror"] .door-svg__panel { fill: url(#g-mirror); }
[data-panel="white"] .door-svg__shine, [data-panel="beige"] .door-svg__shine, [data-panel="black"] .door-svg__shine { opacity: 1; }
[data-panel="thermo"] .door-svg__panel { fill: url(#p-thermo); }
.configurator__summary { margin: 1.75rem 0 0; text-align: center; }
.configurator__summary span { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--c-taupe); }
.configurator__summary strong { font-family: var(--f-display); font-size: 1.45rem; font-weight: 500; font-style: italic; color: var(--c-plaster); }
.configurator__lead { margin: 1.5rem 0 2.25rem; max-width: 36rem; color: rgba(243, 239, 233, .78); }
.swatches { margin-bottom: 1.75rem; }
.swatches legend { margin-bottom: .9rem; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--c-taupe); }
.swatches__list { display: flex; flex-wrap: wrap; gap: .6rem; }
.swatch { position: relative; display: inline-flex; align-items: center; gap: .6rem; padding: .4rem .95rem .4rem .4rem; border: 1px solid var(--c-line-light); border-radius: 999px; cursor: pointer; transition: border-color .25s, background .25s; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch__chip { width: 28px; height: 28px; border-radius: 50%; background: var(--chip); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.swatch__chip--gloss { background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .55), transparent 45%), var(--chip); }
.swatch__chip--mirror { background: linear-gradient(135deg, #e9eef0, #a9b5bb 40%, #f4f7f8 55%, #9eabb2); }
.swatch__chip--thermo { background: repeating-linear-gradient(0deg, var(--chip) 0 5px, #dcdbd6 5px 6px); }
.swatch__name { font-size: .84rem; font-weight: 600; color: var(--c-cashmere); }
.swatch:hover { border-color: rgba(243, 239, 233, .4); }
.swatch:has(input:checked) { border-color: var(--c-oak-light); background: rgba(163, 120, 74, .14); }
.swatch:has(input:checked) .swatch__name { color: var(--c-plaster); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--c-oak-light); outline-offset: 2px; }
.configurator__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2rem; margin-top: 2.5rem; }

/* ---------- process ---------- */
.process__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 1.5vw, 1.25rem); }
.process__step {
    position: relative;
    padding: 1.9rem 1.75rem 2.1rem;
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    background: var(--c-paper);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.process__step:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow-soft); }
.process__num { display: block; margin-bottom: 2.75rem; font-family: var(--f-display); font-size: 3.6rem; font-weight: 400; line-height: .9; color: var(--c-oak); }
.process__step .icon { position: absolute; top: 1.9rem; right: 1.75rem; color: var(--c-taupe); }
.process__step h3 { margin-bottom: .6rem; font-family: var(--f-display); font-size: 1.7rem; }
.process__step p { font-size: .92rem; color: var(--c-muted); }

/* ---------- details: hotspots on a photo of a door ---------- */
.anatomy__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.anatomy__media { margin: 0; }
.anatomy__photo { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--c-sand); }
.anatomy__photo img { width: 100%; }
.anatomy__caption { margin-top: .9rem; font-size: .8rem; color: var(--c-muted); }
.anatomy__caption a { transition: color .25s; }
.anatomy__caption a:hover { color: var(--c-oak-deep); }
.hotspot {
    position: absolute;
    top: var(--y);
    left: var(--x);
    z-index: 1;
    width: 2.25rem;
    height: 2.25rem;
    margin: -1.125rem 0 0 -1.125rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
}
.hotspot.is-active { z-index: 2; }
.hotspot__dot {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
    font-size: .78rem;
    font-weight: 800;
    color: var(--c-ink);
    transition: background .3s, color .3s, transform .35s var(--ease);
}
.hotspot__dot::before { content: ''; position: absolute; inset: -5px; border: 1.5px solid rgba(255, 255, 255, .85); border-radius: 50%; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.hotspot:hover .hotspot__dot { transform: scale(1.1); }
.hotspot.is-active .hotspot__dot { background: var(--c-ink); color: var(--c-white); transform: scale(1.12); }
.hotspot__label {
    position: absolute;
    top: 50%;
    left: calc(100% + .55rem);
    padding: .4rem .8rem;
    border-radius: 999px;
    background: var(--c-ink);
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--c-white);
    opacity: 0;
    transform: translate(-6px, -50%);
    transition: opacity .3s, transform .35s var(--ease);
    pointer-events: none;
}
.hotspot.is-active .hotspot__label { opacity: 1; transform: translate(0, -50%); }
.anatomy__lead { max-width: 34rem; margin-top: 1.5rem; color: var(--c-charcoal); }
.anatomy__list { margin-top: 2.25rem; border-top: 1px solid var(--c-line); }
.anatomy__item a {
    display: grid;
    grid-template-columns: 1.85rem 2.25rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.1rem;
    padding: 1.1rem .9rem;
    border-bottom: 1px solid var(--c-line);
    transition: background .3s;
}
.anatomy__num { display: grid; place-items: center; width: 1.85rem; height: 1.85rem; border: 1px solid var(--c-line-strong); border-radius: 50%; font-size: .74rem; font-weight: 800; transition: background .3s, color .3s, border-color .3s; }
.anatomy__item .icon--lg { color: var(--c-oak); }
.anatomy__body { font-size: .88rem; line-height: 1.5; color: var(--c-muted); }
.anatomy__body strong { display: block; margin-bottom: .1rem; font-size: 1rem; color: var(--c-ink); }
.anatomy__arrow { opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s var(--ease); }
.anatomy__item.is-active a { background: var(--c-paper); }
.anatomy__item.is-active .anatomy__num { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-white); }
.anatomy__item.is-active .anatomy__arrow { opacity: 1; transform: none; }

/* ---------- catalogue: doors on a showroom wall ---------- */
.wall {
    --floor: 86px;
    position: relative;
    margin-inline: clamp(.5rem, 1.5vw, 1.25rem);
    padding-top: clamp(3rem, 6vw, 5rem);
    overflow: hidden;
    border-radius: var(--r-lg);
    background:
        radial-gradient(28% 70% at 18% 0%, rgba(255, 255, 255, .5), transparent 72%),
        radial-gradient(28% 70% at 50% 0%, rgba(255, 255, 255, .42), transparent 72%),
        radial-gradient(28% 70% at 82% 0%, rgba(255, 255, 255, .5), transparent 72%),
        linear-gradient(180deg, #e6ddd1, #dcd1c2);
}
.wall::after {
    /* skirting board and floor */
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--floor);
    border-top: 6px solid #f2ede5;
    background: linear-gradient(180deg, #c8bba9, #bcae9b);
}
.wall__doors { position: relative; z-index: 1; display: flex; gap: clamp(1rem, 2.4vw, 2.5rem); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
.wall__doors::-webkit-scrollbar { display: none; }
/* auto margins centre the row and still let it scroll from the first door when it overflows */
.wall__item { flex: none; }
.wall__item:first-child { margin-left: auto; }
.wall__item:last-child { margin-right: auto; }
.wall__door { display: flex; flex-direction: column; align-items: center; }
.wall__leaf { position: relative; display: block; height: clamp(230px, 18vw, 300px); aspect-ratio: 1 / 2; perspective: 900px; }
.wall__leaf::after { content: ''; position: absolute; left: -12%; right: -12%; bottom: -10px; z-index: -1; height: 20px; background: radial-gradient(closest-side, rgba(22, 21, 19, .35), transparent); }
.wall__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 22px 34px -22px rgba(22, 21, 19, .55);
    transform-origin: left center;
    transition: transform .7s var(--ease-door), box-shadow .7s var(--ease);
}
.wall__door:hover .wall__img { transform: rotateY(-16deg); box-shadow: 18px 22px 34px -20px rgba(22, 21, 19, .55); }
.wall__label { display: flex; flex-direction: column; align-items: center; justify-content: center; height: var(--floor); font-family: var(--f-display); font-size: 1.3rem; line-height: 1.1; color: var(--c-ink); }
.wall__label small { font-family: var(--f-sans); font-size: .62rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--c-graphite); opacity: .7; }

/* ---------- catalogue door cards ---------- */
.door-card__link { display: block; }
.door-card__stage {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    aspect-ratio: 1 / 1.9;
    padding: 9% 11% 22.8%;
    background: linear-gradient(180deg, var(--c-paper) 0 88%, var(--c-sand-deep) 88% 100%);
    overflow: hidden;
}
.door-card__img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: bottom; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.door-card__floor { position: absolute; left: 8%; right: 8%; bottom: calc(12% - 6px); height: 12px; z-index: 2; background: radial-gradient(closest-side, rgba(22, 21, 19, .28), transparent); }
.door-card__link:hover .door-card__img { transform: translateY(-6px); }
.door-card__body { padding-top: .85rem; text-align: center; }
.door-card__series { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--c-muted); }
.door-card__title { font-family: var(--f-display); font-size: 1.35rem; line-height: 1.2; }

/* ---------- showroom ---------- */
.showroom__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
.showroom__media { grid-column: 1 / 10; grid-row: 1; overflow: hidden; border-radius: var(--r-lg); }
.showroom__img { width: 100%; aspect-ratio: 2048 / 1312; object-fit: cover; }
.showroom__card {
    position: relative;
    z-index: 2;
    grid-column: 8 / 13;
    grid-row: 1;
    margin-block: 3rem;
    padding: clamp(2rem, 3.5vw, 3rem);
    border-radius: var(--r-md);
    background: var(--c-paper);
    box-shadow: var(--shadow-lift);
}
.showroom__card .section-title { font-size: clamp(2rem, 3.2vw, 2.9rem); margin-bottom: 1rem; }
.showroom__card > p { color: var(--c-charcoal); font-size: .95rem; }
.showroom__info { display: grid; gap: .9rem; margin: 1.75rem 0 2rem; padding-top: 1.5rem; border-top: 1px solid var(--c-line); }
.showroom__info dt { font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--c-muted); }
.showroom__info dd { font-size: .95rem; font-weight: 600; }
.showroom__info a:hover { color: var(--c-oak-deep); }

/* ---------- articles ---------- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem clamp(1rem, 2vw, 1.75rem); }
.article-card__link { display: block; }
.article-card__media { overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--r-md); background: var(--c-sand); }
.article-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.article-card__link:hover .article-card__img { transform: scale(1.05); }
.article-card__body { padding-top: 1.25rem; }
.article-card__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.article-card__title { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.12; transition: color .3s; }
.article-card__link:hover .article-card__title { color: var(--c-oak-deep); }
.article-card__excerpt { margin-top: .75rem; font-size: .92rem; color: var(--c-muted); }
.journal { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2.25rem clamp(1.5rem, 4vw, 4rem); }
.journal .article-card:first-child { grid-row: span 2; }
.journal .article-card:first-child .article-card__media { aspect-ratio: 4 / 3; }
.journal .article-card:first-child .article-card__title { font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
.journal .article-card:not(:first-child) .article-card__link { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; }
.journal .article-card:not(:first-child) .article-card__body { padding-top: 0; }

/* ---------- CTA + form ---------- */
.cta { position: relative; padding-block: var(--section); background: var(--c-graphite); color: var(--c-plaster); overflow: hidden; }
.cta__art { position: absolute; inset: auto 0 0 0; height: 70%; background-repeat: repeat-x; background-position: bottom center; background-size: auto 100%; opacity: .07; pointer-events: none; }
.cta__inner { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
.cta__title { font-family: var(--f-display); font-size: clamp(2.5rem, 4.6vw, 4.1rem); line-height: 1.02; margin-bottom: 1.5rem; }
.cta__title em { color: var(--c-oak-light); }
.cta__lead { color: rgba(243, 239, 233, .74); max-width: 30rem; }
.cta__contacts { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.cta__contacts li { padding-left: 1.25rem; border-left: 1px solid var(--c-oak); }
.cta__contacts span { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--c-taupe); }
.cta__contacts a { font-family: var(--f-display); font-size: 1.85rem; line-height: 1.2; transition: color .25s; }
.cta__contacts a:hover { color: var(--c-oak-light); }
.cta__form { padding: clamp(1.75rem, 3.5vw, 3rem); border-radius: var(--r-lg); background: var(--c-paper); color: var(--c-ink); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }

.inquiry-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.25rem; }
.inquiry-form__wide { grid-column: 1 / -1; }
.inquiry-form__submit { display: flex; align-items: flex-end; }
.inquiry-form__submit .btn { width: 100%; padding-inline: 1rem; letter-spacing: .06em; white-space: nowrap; }
.inquiry-form__errors { margin-bottom: 1.5rem; padding: .9rem 1.1rem; border-left: 2px solid #a14b3a; background: rgba(161, 75, 58, .08); color: #7d3426; font-size: .88rem; }
.inquiry-form__errors ul { margin: 0; padding: 0; list-style: none; }
.inquiry-form__note { margin-top: 1.1rem; font-size: .76rem; color: var(--c-muted); }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field__label { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-charcoal); }
.field__req { color: var(--c-oak); }
.field__input {
    width: 100%;
    min-height: 3.2rem;
    padding: .8rem 0;
    border: 0;
    border-bottom: 1px solid var(--c-line-strong);
    border-radius: 0;
    background: transparent;
    font: inherit;
    font-size: .98rem;
    color: var(--c-ink);
    transition: border-color .25s;
}
.field__input::placeholder { color: #a39b90; }
.field__input:focus { outline: none; border-color: var(--c-oak); box-shadow: 0 1px 0 0 var(--c-oak); }
select.field__input { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23161513' stroke-width='1.6' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right center / 16px no-repeat; padding-right: 1.5rem; }
textarea.field__input { min-height: 6.5rem; resize: vertical; line-height: 1.6; }
.field--error .field__input { border-color: var(--c-error); }
.field__errors { font-size: .8rem; color: var(--c-error); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { background: var(--c-ink); color: rgba(243, 239, 233, .66); font-size: .9rem; }
.site-footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 3rem; padding-block: clamp(4rem, 7vw, 6rem) 3.5rem; }
.site-footer__brand p { margin: 1.5rem 0; max-width: 24rem; }
.site-footer__title { margin-bottom: 1.25rem; font-family: var(--f-sans); font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--c-plaster); }
.site-footer__col ul { display: grid; gap: .55rem; }
.site-footer a { transition: color .25s; }
.site-footer a:hover { color: var(--c-oak-light); }
.site-footer__contact { display: flex; flex-direction: column; gap: .75rem; }
.site-footer__phone { font-family: var(--f-display); font-size: 1.7rem; color: var(--c-plaster); }
.social { display: inline-flex; align-items: center; gap: .6rem; color: var(--c-plaster); }
.social .icon { width: 2.25rem; height: 2.25rem; padding: .5rem; border: 1px solid var(--c-line-light); border-radius: 50%; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.75rem; border-top: 1px solid var(--c-line-light); font-size: .78rem; }

/* ---------- page hero ---------- */
.page-hero { position: relative; padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 5vw, 4.5rem); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; font-size: .78rem; color: var(--c-muted); }
.breadcrumbs a:hover { color: var(--c-oak-deep); }
.breadcrumbs [aria-current] { color: var(--c-ink); }
.page-hero__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem 5rem; align-items: end; }
.page-hero__title { font-family: var(--f-display); font-size: clamp(2.8rem, 5.6vw, 5rem); line-height: 1; letter-spacing: -.012em; }
.page-hero__lead { max-width: 30rem; margin: 0; font-size: 1.05rem; color: var(--c-charcoal); }
.page-hero__rule { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; max-width: calc(var(--container) - 2 * var(--gutter)); margin-inline: auto; height: 13px; }
.page-hero__rule span { position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--c-line-strong); }
.page-hero__rule::before, .page-hero__rule::after { content: ''; position: absolute; top: 0; width: 1px; height: 13px; background: var(--c-ink); }
.page-hero__rule::before { left: 0; }
.page-hero__rule::after { right: 0; }

/* ---------- projects index ---------- */
.intro-note { max-width: 52rem; margin: 0 0 3rem; font-family: var(--f-display); font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.4; color: var(--c-charcoal); }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 3rem; }
.filter {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.1rem;
    border: 1px solid var(--c-line-strong);
    border-radius: 999px;
    background: transparent;
    font-size: .84rem;
    font-weight: 600;
    transition: background .25s, color .25s, border-color .25s;
}
.filter sup { font-size: .68rem; color: var(--c-muted); }
.filter:hover { border-color: var(--c-ink); }
.filter.is-active { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-plaster); }
.filter.is-active sup { color: var(--c-cashmere); }

/* ---------- product page ---------- */
.product { padding: clamp(2rem, 4vw, 3.5rem) 0 var(--section); }
.product__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.product__info { position: sticky; top: calc(var(--header-h) + 2rem); }
.product__title { font-family: var(--f-display); font-size: clamp(2.6rem, 4.6vw, 4.2rem); line-height: 1; margin-bottom: 1.25rem; }
.product__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.chip { display: inline-flex; padding: .35rem .8rem; border: 1px solid var(--c-line-strong); border-radius: 999px; font-size: .76rem; font-weight: 600; transition: background .25s, color .25s; }
a.chip:hover { background: var(--c-ink); color: var(--c-plaster); border-color: var(--c-ink); }
.product__actions { display: grid; gap: .75rem; margin-top: 2.25rem; }
.product__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 2.25rem; background: var(--c-line); border: 1px solid var(--c-line); }
.product__facts div { padding: 1rem 1.15rem; background: var(--c-plaster); }
.product__facts dt { font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-muted); }
.product__facts dd { font-weight: 600; font-size: .95rem; }

.gallery-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gallery-mosaic__item { position: relative; display: block; overflow: hidden; border-radius: var(--r-md); background: var(--c-sand); cursor: zoom-in; }
.gallery-mosaic__item:first-child { grid-column: 1 / -1; }
.gallery-mosaic__item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery-mosaic__item:first-child img { aspect-ratio: 4 / 4.6; }
.gallery-mosaic__item:hover img { transform: scale(1.04); }
.gallery-mosaic__zoom {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: rgba(251, 249, 246, .92);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s, transform .3s var(--ease);
}
.gallery-mosaic__item:hover .gallery-mosaic__zoom { opacity: 1; transform: none; }

.door-showcase {
    --floor: 84px;
    position: relative;
    overflow: hidden;
    border-radius: var(--r-lg);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 680px;
    padding: 4rem 3rem var(--floor);
    background: linear-gradient(180deg, var(--c-paper) 0 calc(100% - var(--floor)), var(--c-sand-deep) calc(100% - var(--floor)));
}
.door-showcase::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: calc(var(--floor) - 8px); height: 16px; background: radial-gradient(closest-side, rgba(22, 21, 19, .3), transparent); }
.door-showcase a { position: relative; z-index: 1; display: block; }
.door-showcase img { max-height: 560px; width: auto; mix-blend-mode: multiply; }
.door-showcase__dim { position: absolute; top: 4rem; bottom: var(--floor); left: 2.5rem; width: 1px; background: var(--c-line-strong); }
.door-showcase__dim::before, .door-showcase__dim::after { content: ''; position: absolute; left: -6px; width: 13px; height: 1px; background: var(--c-ink); }
.door-showcase__dim::before { top: 0; }
.door-showcase__dim::after { bottom: 0; }
.door-showcase__dim span {
    position: absolute;
    top: 50%;
    left: 50%;
    padding: .6rem 0;
    background: var(--c-paper);
    writing-mode: vertical-rl;
    transform: translate(-50%, -50%) rotate(180deg);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--c-muted);
    white-space: nowrap;
}

/* ---------- prose ---------- */
.prose { font-size: 1.05rem; line-height: 1.8; color: var(--c-charcoal); }
.prose > * + * { margin-top: 1.15em; }
.prose :is(p, ul, ol, blockquote, h2, h3, h4) { margin-bottom: 0; }
.prose h2 { margin-top: 2.2em; font-family: var(--f-display); font-size: clamp(1.75rem, 2.8vw, 2.3rem); line-height: 1.15; color: var(--c-ink); }
.prose h3 { margin-top: 1.9em; font-size: 1.2rem; font-weight: 700; color: var(--c-ink); }
.prose h4 { margin-top: 1.6em; font-size: 1.05rem; font-weight: 700; color: var(--c-ink); }
.prose a { color: var(--c-oak-deep); text-decoration: underline; text-decoration-color: rgba(163, 120, 74, .4); text-underline-offset: 3px; transition: text-decoration-color .25s; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--c-ink); }
.prose ul, .prose ol { display: grid; gap: .55em; }
.prose ul li { position: relative; padding-left: 2rem; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: .82em; width: 14px; height: 2px; border-radius: 2px; background: var(--c-oak); }
.prose ol { counter-reset: li; }
.prose ol li { position: relative; padding-left: 2.25rem; counter-increment: li; }
.prose ol li::before { content: counter(li, decimal-leading-zero); position: absolute; left: 0; font-family: var(--f-display); font-style: italic; color: var(--c-oak); }
.prose blockquote { margin: 2em 0; padding-left: 1.5rem; border-left: 2px solid var(--c-oak); font-family: var(--f-display); font-size: 1.45rem; font-style: italic; line-height: 1.4; color: var(--c-ink); }
.prose .checklist li { padding-left: 2rem; }
.prose .checklist li::before { top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23a3784a' stroke-width='2.2' d='m4.5 12.5 4.5 4.5 10.5-10.5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- door type page ---------- */
.type-hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: min(78vh, 720px); background: var(--c-ink); color: var(--c-plaster); }
.type-hero__media { position: relative; overflow: hidden; }
.type-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.type-hero__text { display: flex; flex-direction: column; justify-content: center; padding: clamp(2.5rem, 6vw, 6rem) clamp(1.5rem, 5vw, 5rem); }
.type-hero__text .breadcrumbs { color: var(--c-taupe); margin-bottom: 3rem; }
.type-hero__text .breadcrumbs [aria-current] { color: var(--c-plaster); }
.type-hero__title { font-family: var(--f-display); font-size: clamp(2.8rem, 5vw, 4.8rem); line-height: 1; margin-bottom: 1.5rem; }
.type-hero__tagline { max-width: 32rem; font-size: 1.15rem; color: rgba(243, 239, 233, .78); }
.type-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.type-hero__count { margin-top: 3rem; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-taupe); }
.type-hero__count strong { font-family: var(--f-display); font-size: 2.6rem; font-weight: 500; letter-spacing: 0; color: var(--c-oak-light); margin-right: .5rem; }
.type-body { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(3rem, 6vw, 6rem); }
.highlights { display: grid; gap: 0; border-top: 1px solid var(--c-line); }
.highlights li { display: flex; gap: 1rem; align-items: baseline; padding: 1.15rem 0; border-bottom: 1px solid var(--c-line); font-weight: 600; }
.highlights .handle { color: var(--c-oak); transform: translateY(-3px); }
.type-others { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------- catalogue index ---------- */
.catalogue-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2.5rem clamp(.75rem, 1.5vw, 1.25rem); }
.catalogue-grid .door-card.is-hidden { display: none; }
.series { padding-block: clamp(3rem, 5vw, 4.5rem); border-top: 1px solid var(--c-line); }
.series:first-of-type { border-top: 0; padding-top: 0; }
.series__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.series__title { font-family: var(--f-display); font-size: clamp(2.2rem, 3.6vw, 3.2rem); }
.series__title em { font-style: italic; color: var(--c-oak); font-size: .55em; margin-left: .75rem; }
.series__count { font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-muted); }
.series__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(.75rem, 1.5vw, 1.25rem); }

/* ---------- articles index / article ---------- */
.search { position: relative; max-width: 26rem; margin-bottom: 3rem; }
.search input { width: 100%; padding: .9rem 3rem .9rem 1.3rem; border: 1px solid var(--c-line-strong); border-radius: 999px; background: var(--c-paper); font: inherit; }
.search input:focus { outline: none; border-color: var(--c-oak); }
.search button { position: absolute; right: .4rem; top: 50%; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 0; background: none; transform: translateY(-50%); }
.search__result { margin: -1.5rem 0 2.5rem; color: var(--c-muted); }
.search__result a { color: var(--c-oak-deep); text-decoration: underline; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: 4rem; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 2.75rem; height: 2.75rem; padding: 0 .75rem; border: 1px solid var(--c-line-strong); font-size: .86rem; font-weight: 600; transition: background .25s, color .25s; }
.pagination a:hover { background: var(--c-sand); }
.pagination .is-current { background: var(--c-ink); color: var(--c-plaster); border-color: var(--c-ink); }

.article-head { padding: clamp(2.5rem, 5vw, 4rem) 0 2.5rem; text-align: center; }
.article-head .breadcrumbs { justify-content: center; }
.article-head__title { max-width: 58rem; margin: 0 auto 1.5rem; font-family: var(--f-display); font-size: clamp(2.5rem, 5vw, 4.3rem); line-height: 1.02; }
.article-head__meta { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.article-head__meta span { display: inline-flex; align-items: center; gap: .4rem; }
.article-cover { max-width: 1120px; margin: 0 auto; padding-inline: var(--gutter); }
.article-cover img { width: 100%; aspect-ratio: 16 / 8.5; object-fit: cover; border-radius: var(--r-lg); }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); justify-content: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3rem, 6vw, 5rem); }
.article-lead { font-family: var(--f-display); font-size: 1.55rem; line-height: 1.45; color: var(--c-ink); margin-bottom: 2rem !important; }
.toc { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; font-size: .86rem; }
.toc__title { margin-bottom: 1rem; font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--c-muted); }
.toc ol { display: grid; gap: .1rem; border-left: 1px solid var(--c-line); }
.toc a { display: block; padding: .4rem 0 .4rem 1rem; margin-left: -1px; border-left: 1px solid transparent; line-height: 1.4; color: var(--c-muted); transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.is-active { color: var(--c-ink); border-left-color: var(--c-oak); }
.article-cta { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; margin-top: 3.5rem; padding: 2rem; border-radius: var(--r-md); background: var(--c-sand); }
.article-cta .icon { color: var(--c-oak); }
.article-cta h2 { font-family: var(--f-display); font-size: 1.7rem; margin-bottom: .35rem; }
.article-cta p { margin-bottom: 1rem; color: var(--c-muted); font-size: .95rem; }

/* ---------- gallery ---------- */
.masonry { columns: 4 260px; column-gap: 1rem; }
.masonry__item { position: relative; display: block; margin-bottom: 1rem; overflow: hidden; border-radius: var(--r-md); break-inside: avoid; background: var(--c-sand); cursor: zoom-in; }
.masonry__item img { width: 100%; transition: transform 1s var(--ease), opacity .4s; }
.masonry__item:hover img { transform: scale(1.04); }
.masonry__item::after { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(255, 255, 255, .7); opacity: 0; transition: opacity .4s; }
.masonry__item:hover::after { opacity: 1; }

/* ---------- about ---------- */
.about-hero { position: relative; }
.about-hero__img { width: 100%; height: clamp(320px, 52vh, 560px); object-fit: cover; object-position: 58% 63%; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.stat-row div { padding: 2rem 1.5rem; border-left: 1px solid var(--c-line); }
.stat-row div:first-child { border-left: 0; }
.stat-row dd { font-family: var(--f-display); font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: 1; }
.stat-row dt { margin-top: .5rem; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
.stat-row div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
.showroom-strip { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1rem; }
.showroom-strip a { display: block; overflow: hidden; border-radius: var(--r-md); cursor: zoom-in; }
.showroom-strip img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; transition: transform 1s var(--ease); }
.showroom-strip a:hover img { transform: scale(1.04); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.values li { padding-top: 1.5rem; border-top: 1px solid var(--c-line-strong); }
.values h3 { font-family: var(--f-display); font-size: 1.7rem; margin: 1rem 0 .5rem; }
.values p { color: var(--c-muted); font-size: .95rem; }
.values .icon { color: var(--c-oak); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
.contact-cards { display: grid; gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
.contact-card { display: flex; gap: 1.25rem; padding: 1.5rem; background: var(--c-plaster); transition: background .25s; }
a.contact-card:hover { background: var(--c-paper); }
.contact-card .icon { width: 1.6rem; height: 1.6rem; color: var(--c-oak); margin-top: .2rem; }
.contact-card span { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-muted); }
.contact-card strong { font-size: 1.05rem; }
.contact-card--big strong { font-family: var(--f-display); font-size: 2rem; font-weight: 500; }
.map { position: relative; margin-top: 2rem; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-md); background: var(--c-sand); border: 1px solid var(--c-line); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.85) sepia(.15) contrast(.95); }
.form-card { padding: clamp(1.75rem, 3.5vw, 3rem); border-radius: var(--r-lg); background: var(--c-paper); box-shadow: var(--shadow-soft); }
.form-card h2 { font-family: var(--f-display); font-size: 2.3rem; margin-bottom: .5rem; }
.form-card > p { color: var(--c-muted); margin-bottom: 2rem; }
.thanks { max-width: 40rem; margin: 0 auto; padding: var(--section) var(--gutter); text-align: center; }
.thanks__mark { width: 70px; height: 96px; margin: 0 auto 2rem; color: var(--c-oak); }
.thanks h1 { font-family: var(--f-display); font-size: clamp(2.6rem, 5vw, 4rem); margin-bottom: 1rem; }
.thanks p { color: var(--c-muted); }
.thanks .hero__actions { justify-content: center; }

/* ---------- lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    grid-template-columns: 5rem 1fr 5rem;
    align-items: center;
    background: rgba(14, 13, 12, .95);
    color: var(--c-plaster);
    animation: fade .3s var(--ease);
}
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; padding: 3.5rem 0 1.5rem; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 7rem); object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox__caption { display: flex; gap: 1.5rem; margin-top: 1rem; font-size: .85rem; color: var(--c-cashmere); }
.lightbox__count { color: var(--c-taupe); }
.lightbox__close, .lightbox__nav { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; margin: auto; border: 1px solid var(--c-line-light); border-radius: 50%; background: transparent; color: var(--c-plaster); transition: background .25s, color .25s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--c-plaster); color: var(--c-ink); }
.lightbox__close { position: absolute; top: 1.25rem; right: 1.25rem; }
.lightbox__nav--prev .icon { transform: rotate(180deg); }
.lightbox .icon { width: 1.3rem; height: 1.3rem; }

/* ---------- 404 ---------- */
.not-found { padding: var(--section) 0; text-align: center; }
.not-found__code { font-family: var(--f-display); font-size: clamp(6rem, 18vw, 13rem); line-height: .9; font-style: italic; color: var(--c-oak); }
.not-found h1 { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 3rem); margin: 1rem 0; }
.not-found p { color: var(--c-muted); }
.not-found .hero__actions { justify-content: center; }

@keyframes nav-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
/* without room for the number in the header, the top bar shows it */
@media (max-width: 1439px) {
    .header-phone__text { display: none; }
    .topbar__phone { display: inline-flex; }
}

@media (max-width: 1240px) {
    .header-phone { display: none; }
    .nav__link { padding-inline: .5rem; font-size: .84rem; }
    .nav__link::after { left: .5rem; right: .5rem; }
    .site-header__inner { gap: 1rem; }
    .mega__inner { grid-template-columns: 1fr 250px; }
    .mega__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1160px) {
    .nav__link { padding-inline: .42rem; font-size: .8rem; }
}

@media (max-width: 1100px) {
    :root { --header-h: 72px; }
    .topbar__address, .header-phone { display: none; }
    .topbar__phone { display: inline-flex; }
    .topbar__inner { justify-content: flex-end; }
    .burger { display: block; margin-left: 0; }
    .site-header__cta { margin-left: auto; }
    .nav {
        position: fixed;
        top: var(--nav-top, var(--header-h));
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 99;
        display: flex;
        flex-direction: column;
        padding: .5rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
        background: var(--c-plaster);
        border-top: 1px solid var(--c-line);
        overflow-y: auto;
        overscroll-behavior: contain;
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s, visibility .3s;
    }
    .nav.is-open { opacity: 1; visibility: visible; }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav__list > li { position: relative; border-bottom: 1px solid var(--c-line); }
    .nav.is-open .nav__list > li, .nav.is-open .nav__footer { animation: nav-in .55s var(--ease) both; animation-delay: calc(var(--i, 7) * 45ms + 60ms); }
    .nav__link { width: 100%; padding: .9rem 0; font-family: var(--f-display); font-size: 1.85rem; font-weight: 500; }
    .nav__link::after, .nav__chevron { display: none; }
    .nav__link.is-active { color: var(--c-oak-deep); }
    .nav__expand {
        position: absolute;
        top: .75rem;
        right: 0;
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        border: 1px solid var(--c-line-strong);
        border-radius: 50%;
        background: none;
        color: var(--c-oak-deep);
    }
    .nav__expand .icon { transition: transform .3s var(--ease); }
    .nav__expand[aria-expanded="true"] .icon { transform: rotate(180deg); }
    .mega, .nav__item--mega:hover .mega, .nav__item--mega:focus-within .mega { position: static; display: none; opacity: 1; transform: none; background: none; border: 0; box-shadow: none; transition: none; }
    .nav__item--mega.is-expanded .mega { display: block; }
    .mega::before, .mega__tagline, .mega__aside { display: none; }
    .mega__inner { display: block; padding: 0 0 1rem; }
    .mega__grid { grid-template-columns: repeat(2, 1fr); gap: 0 1rem; }
    .mega__item { grid-template-columns: 36px 1fr; gap: .75rem; padding: .35rem 0; }
    .mega__item:hover { background: none; }
    .mega__thumb::after { display: none; }
    .mega__name { font-family: var(--f-sans); font-size: .92rem; font-weight: 600; }
    .nav__footer { display: block; margin-top: auto; padding-top: 2rem; }
    .nav__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
    .nav__actions .btn { padding-inline: .75rem; }
    .nav__address { display: flex; align-items: flex-start; gap: .5rem; margin: 1rem 0 0; font-size: .82rem; color: var(--c-muted); }
    .nav__address .icon { margin-top: .3em; color: var(--c-oak); }

    .hero__inner { grid-template-columns: 1fr; }
    .hero__panel { width: min(100%, 420px); }
    .intro__grid, .anatomy__grid, .solutions__grid { grid-template-columns: 1fr; }
    /* without hover, every row shows its photo and tagline */
    .solutions__preview, .solution__index { display: none; }
    .solution { grid-template-columns: 4.25rem minmax(0, 1fr) auto; }
    .solution__thumb { display: block; width: 4.25rem; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 8px; background: var(--c-sand-deep); }
    .solution__thumb img { width: 100%; height: 100%; object-fit: cover; }
    .solution__tagline, .solution.is-active .solution__tagline { max-height: none; margin-top: .3rem; opacity: 1; transform: none; }
    .solution.is-active .solution__name { color: inherit; transform: none; }
    .solution.is-active .solution__arrow { background: none; border-color: var(--c-line-strong); color: inherit; transform: none; }
    .anatomy__media { max-width: 560px; }
    .journal { grid-template-columns: 1fr 1fr; }
    .journal .article-card:first-child { grid-column: 1 / -1; grid-row: auto; }
    .journal .article-card:first-child .article-card__media { aspect-ratio: 16 / 9; }
    .journal .article-card:not(:first-child) .article-card__link { display: block; }
    .journal .article-card:not(:first-child) .article-card__body { padding-top: 1.25rem; }
    .type-grid { grid-template-columns: repeat(2, 1fr); }
    .configurator__grid, .cta__inner, .split, .contact-grid, .type-body { grid-template-columns: 1fr; }
    .project-grid, .article-grid { grid-template-columns: repeat(2, 1fr); }
    .process__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .series__grid, .catalogue-grid { grid-template-columns: repeat(4, 1fr); }
    .showroom__media, .showroom__card { grid-column: 1 / -1; }
    .showroom__card { grid-row: 2; margin: -3rem var(--gutter) 0; }
    .site-footer__top { grid-template-columns: 1fr 1fr; }
    .product__grid { grid-template-columns: 1fr; }
    .product__info { position: static; }
    .type-hero { grid-template-columns: 1fr; }
    .type-hero__media { min-height: 52vh; }
    .article-layout { grid-template-columns: minmax(0, 720px); }
    .toc { display: none; }
    .page-hero__grid { grid-template-columns: 1fr; }
    .stat-row { grid-template-columns: repeat(2, 1fr); }
    .stat-row div:nth-child(3) { border-left: 0; }
    .stat-row div:nth-child(n+3) { border-top: 1px solid var(--c-line); }
    .values { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .topbar__mail { display: none; }
    .topbar__right { width: 100%; justify-content: space-between; }
    .topbar__phone { color: var(--c-plaster); font-weight: 600; letter-spacing: .03em; }
    .nav__link { font-size: 1.7rem; }
    .action-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        gap: .5rem;
        padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
        background: rgba(243, 239, 233, .94);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid var(--c-line);
        transform: translateY(105%);
        transition: transform .4s var(--ease);
    }
    .action-bar.is-visible { transform: none; }
    body.is-locked .action-bar { transform: translateY(105%); }
    .action-bar__btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3rem; border: 1px solid var(--c-line-strong); border-radius: 999px; font-size: .88rem; font-weight: 700; }
    .action-bar__btn .icon { color: var(--c-oak); }
    .action-bar__btn--primary { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-plaster); }
    .action-bar__btn--primary .handle { color: var(--c-oak-light); }
    .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
    .filters::-webkit-scrollbar { display: none; }
    .filter { flex: none; }
    .site-header__cta { display: none; }
    .burger { margin-left: auto; }
    .logo__tag { display: none; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .hero { padding-bottom: 1.25rem; }
    .hero__title { font-size: clamp(2.6rem, 11.5vw, 3.5rem); }
    .hero__lead { font-size: 1rem; }
    .hero__actions { margin-top: 1.75rem; }
    .hero__actions .btn { flex: 1 1 auto; padding-inline: 1.1rem; }
    .hero .eyebrow { letter-spacing: .14em; }
    .hero__panel { padding: .85rem 1rem .6rem; }
    .hero__caption-text { display: none; }
    .hero__caption .icon { grid-row: 2; width: 2.2rem; height: 2.2rem; padding: .55rem; }
    .hero__caption strong { align-self: center; font-size: 1.3rem; }
    .hero__controls { margin-top: .7rem; padding-top: .55rem; }
    .stats { gap: 1rem; }
    .stats__label { font-size: .76rem; }
    .lookbook__nav { display: none; }
    .look { flex-basis: 74vw; }
    .look:nth-child(even) { padding-top: 0; }
    .look--more { flex-basis: 60vw; }
    .anatomy__item a { grid-template-columns: 1.85rem minmax(0, 1fr) auto; gap: .9rem; padding-inline: .4rem; }
    .anatomy__item .icon--lg { display: none; }
    .wall { --floor: 72px; }
    .wall__leaf { height: 210px; }
    .journal { grid-template-columns: 1fr; }
    .showroom__card { margin-inline: .5rem; padding: 1.75rem 1.5rem; }
    .journal .article-card:not(:first-child) .article-card__link { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; align-items: start; }
    .journal .article-card:not(:first-child) .article-card__body { padding-top: 0; }
    .journal .article-card:not(:first-child) .article-card__title { font-size: 1.3rem; }
    .type-grid { grid-auto-flow: column; grid-auto-columns: 74%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
    .type-grid::-webkit-scrollbar { display: none; }
    .type-card { scroll-snap-align: start; }
    .project-grid, .article-grid { grid-template-columns: 1fr; }
    .process__steps { grid-template-columns: 1fr; }
    .series__grid, .catalogue-grid { grid-template-columns: repeat(2, 1fr); }
    .inquiry-form__grid { grid-template-columns: 1fr; }
    .site-footer__top { grid-template-columns: 1fr; gap: 2.5rem; }
    .site-footer__bottom { flex-direction: column; }
    /* a swipeable row with the next photo peeking in, so the title and the inquiry button stay close to the top */
    .gallery-mosaic { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
    .gallery-mosaic::-webkit-scrollbar { display: none; }
    .gallery-mosaic__item { flex: 0 0 84%; scroll-snap-align: start; }
    .gallery-mosaic__item:only-child { flex-basis: 100%; }
    .gallery-mosaic__item:first-child img, .gallery-mosaic__item img { aspect-ratio: 3 / 4; }
    .showroom-strip { grid-template-columns: 1fr; }
    .door-showcase { min-height: 500px; padding-inline: 2rem; --floor: 64px; }
    .door-showcase img { max-height: 400px; }
    .lightbox { grid-template-columns: 1fr; }
    .lightbox__nav { position: absolute; bottom: 1.25rem; }
    .lightbox__nav--prev { left: calc(50% - 4rem); }
    .lightbox__nav--next { right: calc(50% - 4rem); }
    .lightbox__figure { padding: 4rem .75rem 6rem; }
    .lightbox__img { max-height: calc(100vh - 11rem); }
    .article-cta { grid-template-columns: 1fr; }
    .stat-row { grid-template-columns: 1fr 1fr; }
    .configurator__visual { padding: 2rem 1rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .hero__doors, .hotspot__dot::before { display: none; }
    .hero__slide img { transform: none; }
    .js [data-reveal] { opacity: 1; transform: none; }
}
