/* Dominova, kierunek A: Pietra. Surowy włoski edytorial.
   Tokens: white page, travertine sections, stone lines, bitumen ink. No accent: colour comes from photographs. */

:root {
  --white: #FFFFFF;
  --travertine: #ECE8E1;
  --stone: #8E8981;          /* lines, large secondary type */
  --stone-ink: #6A655D;      /* small secondary text, darker stone for AA contrast */
  --bitumen: #1C1A17;
  --portrait: #DAD4CA;       /* toned placeholder, travertine one step down */
  --packshot: #F1F1EF;

  /* Headings: Cabinet Grotesk Light (Fontshare). */
  --font-head: "Cabinet Grotesk", "Albert Sans", system-ui, sans-serif;
  --f-display: var(--font-head);
  --f-text: "Albert Sans", system-ui, sans-serif;
  --fw-head: 300;
  --tr-xl: -.035em;
  --tr-l: -.03em;
  --tr-m: -.022em;
  --tr-s: -.012em;

  /* Light sans sets wider than the old Bodoni: display steps sit ~8-10% smaller. */
  --t-hero: clamp(2.85rem, 8vw, 8.5rem);
  --t-index: clamp(2.5rem, 6.6vw, 6.75rem);
  --t-h2: clamp(2.2rem, 4.2vw, 4rem);
  --t-h2s: clamp(1.85rem, 2.8vw, 2.75rem);
  --t-h3: clamp(1.375rem, 1.75vw, 1.625rem);
  --t-body: 1.0625rem;
  --t-small: .875rem;

  --m: clamp(20px, 4.4vw, 64px);   /* page margin */
  --g: clamp(12px, 1.7vw, 24px);   /* column gap */
  --s: clamp(96px, 11vw, 176px);   /* section rhythm */
  --hh: 84px;                      /* header height */
}

html { background: var(--white); scroll-padding-top: 88px; }
body {
  background: var(--white);
  color: var(--bitumen);
  font: 400 var(--t-body)/1.6 var(--f-text);
  padding-top: var(--hh);
}
::selection { background: var(--bitumen); color: var(--white); }

.wrap { padding-inline: var(--m); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }

.h2 { font: var(--fw-head) var(--t-h2)/1.04 var(--f-display); letter-spacing: var(--tr-l); text-wrap: balance; }
.h3 { font: var(--fw-head) var(--t-h3)/1.2 var(--f-display); letter-spacing: var(--tr-s); }
.caption { margin-top: 12px; font-size: var(--t-small); line-height: 1.45; color: var(--stone-ink); max-width: 52ch; }

.link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 500; font-size: .9375rem; color: var(--bitumen);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px;
}
.link:hover { text-decoration-thickness: 2px; }
.nw { white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  min-height: 52px; padding: 0 26px;
  font: 500 .9375rem/1 var(--f-text); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s;
}
.btn--dark { background: var(--bitumen); color: var(--white); }
.btn--dark:hover { background: #3A3631; }
.btn--dark:disabled { background: var(--travertine); color: var(--stone-ink); cursor: not-allowed; }
.btn--outline { border-color: var(--bitumen); color: var(--bitumen); }
.btn--outline:hover { background: var(--bitumen); color: var(--white); }
.btn--light { background: var(--white); color: var(--bitumen); }
.btn--light:hover { background: var(--travertine); }
.btn--outline-light { border-color: rgba(255,255,255,.75); color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--bitumen); }

/* ---------- Intro ---------- */
.intro-veil { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro-logo {
  position: absolute; left: 0; top: 0;
  height: min(64px, calc((100vw - 48px) / 13.2));
  width: max-content;
  color: var(--bitumen);
  will-change: transform;
}
.is-intro .site-header__logo { visibility: hidden; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--hh);
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: height .45s cubic-bezier(.6,0,.2,1), border-color .3s;
}
.site-header.is-scrolled { height: 64px; border-bottom-color: rgba(142,137,129,.45); }
.site-header__bar { height: 100%; display: flex; align-items: center; gap: 32px; padding-inline: var(--m); }
.site-header__logo { display: block; height: 22px; flex: none; margin-right: auto; color: var(--bitumen); }
.site-nav { align-self: stretch; }
.site-nav > ul { display: flex; align-items: center; gap: 26px; height: 100%; }
.nav-item { display: flex; align-items: center; height: 100%; }
.site-nav > ul > li > a, .nav-btn, .site-header__tel {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: .9375rem; font-weight: 500; text-decoration: none;
}
.site-nav > ul > li > a, .nav-btn__t, .site-header__tel {
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 9px) / 0 1px no-repeat;
  transition: background-size .3s;
}
.nav-btn__t { display: inline-flex; align-items: center; min-height: 44px; }
.site-nav > ul > li > a:hover, .nav-btn:hover .nav-btn__t, .nav-btn[aria-expanded="true"] .nav-btn__t, .site-header__tel:hover { background-size: 100% 1px; }
.nav-btn { gap: 9px; }

/* plus that closes to a minus: the only open/closed marker, shared by mega menu and accordions */
.pm { position: relative; width: 9px; height: 9px; flex: none; }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; top: calc(50% - .5px); width: 100%; height: 1px; background: currentColor; transition: transform .35s cubic-bezier(.6,0,.2,1); }
.pm::after { transform: rotate(90deg); }
[aria-expanded="true"] > .pm::after { transform: rotate(0deg); }

/* ---------- Mega menu (desktop) ---------- */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white);
  border-top: 1px solid rgba(142,137,129,.45);
  max-height: calc(100svh - 100%); overflow-y: auto; overscroll-behavior: contain;
}
.mega[hidden] { display: none; }
.mega__in { padding-block: 40px 52px; align-items: start; }
.mega__h { font-weight: 500; font-size: .9375rem; margin-bottom: 8px; }

.cats { grid-column: 1 / 7; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); grid-auto-flow: column; column-gap: calc(var(--g) * 2); }
.cats li { border-top: 1px solid rgba(142,137,129,.45); }
.cats li:nth-child(5n) { border-bottom: 1px solid rgba(142,137,129,.45); }
.cats a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 0 12px; text-decoration: none; }
.cat__n { font: var(--fw-head) 1.5rem/1.2 var(--f-display); letter-spacing: var(--tr-s); }
.cat__c { font-size: .8125rem; color: var(--stone-ink); font-variant-numeric: tabular-nums; }
.cats a:hover .cat__n, .mspaces a:hover .mspaces__n, .mega__feature:hover .mega__feature-t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.mega__all { grid-column: 1 / 7; grid-row: 2; margin-top: 14px; }

.mega__brands { grid-column: 8 / 10; padding-top: 13px; }
.mega__brands a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -6px; font-size: .9375rem; text-decoration: none; }
.mega__brands a:hover, .mega__more { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.mega__brands li:last-child { margin-top: 10px; }

.mega__feature { grid-column: 10 / 13; grid-row: 1 / 3; display: block; text-decoration: none; }
.mega__feature-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--travertine); }
.mega__feature-img img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.mega__feature-t { display: block; margin-top: 14px; font: var(--fw-head) 1.375rem/1.2 var(--f-display); letter-spacing: var(--tr-s); }
.mega__feature-c { display: block; margin-top: 6px; font-size: .875rem; line-height: 1.45; color: var(--stone-ink); max-width: 38ch; }

.mega__lead { grid-column: 1 / 4; padding-right: var(--g); }
.mega__lead-t { font: var(--fw-head) 1.75rem/1.15 var(--f-display); letter-spacing: var(--tr-m); max-width: 13ch; margin-bottom: 18px; }
.mspaces { grid-column: 4 / 13; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--g); }
.mspaces a { display: block; text-decoration: none; }
.mspaces__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 0 0; background: var(--travertine); margin-bottom: 14px; }
.mspaces__img img { width: 100%; height: 100%; object-fit: cover; }
.mspaces__img img { transition: transform .9s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) { .mspaces a:hover .mspaces__img img { transform: scale(1.08); } }
.mspaces a:focus-visible .mspaces__img img { transform: scale(1.08); }
.mspaces__n { display: block; font: var(--fw-head) 1.375rem/1.2 var(--f-display); letter-spacing: var(--tr-s); }
.mspaces__d { display: block; margin-top: 4px; font-size: .8125rem; line-height: 1.45; color: var(--stone-ink); max-width: 30ch; }

.mega-scrim { position: fixed; inset: 0; z-index: 49; background: rgba(28,26,23,.3); }
.mega-scrim[hidden] { display: none; }
.site-header__tel { font-weight: 400; color: var(--stone-ink); white-space: nowrap; }
.quote-btn {
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--bitumen);
  font-size: .9375rem; font-weight: 500; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.quote-btn:hover { background: var(--bitumen); color: var(--white); }
.quote-count { display: inline-block; min-width: .6em; text-align: center; font-variant-numeric: tabular-nums; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; margin-right: -10px; }
.menu-btn__lines { position: relative; width: 24px; height: 9px; }
.menu-btn__lines i { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform .35s cubic-bezier(.6,0,.2,1); }
.menu-btn__lines i:first-child { top: 0; }
.menu-btn__lines i:last-child { bottom: 0; }
.menu-btn[aria-expanded="true"] i:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--travertine);
  padding: calc(var(--hh) + 24px) var(--m) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu__list > li { border-bottom: 1px solid rgba(142,137,129,.5); }
.menu__list > li > a, .acc__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  min-height: 44px; padding: 10px 0; text-align: left; text-decoration: none;
  font: var(--fw-head) clamp(1.875rem, 7.6vw, 2.75rem)/1.1 var(--f-display); letter-spacing: var(--tr-m);
}
.acc__btn .pm { width: 16px; height: 16px; }
.acc__panel { overflow: hidden; }
.acc__panel[hidden] { display: none; }
.acc__in { padding: 2px 0 28px; }
.cats--m { display: block; }
.cats--m li:nth-child(n) { border-top: 1px solid rgba(142,137,129,.3); border-bottom: 0; }
.cats--m li:first-child { border-top: 0; }
.cats--m a { align-items: center; min-height: 46px; padding: 8px 0; }
.cats--m .cat__n { font: 400 1.0625rem/1.3 var(--f-text); letter-spacing: 0; }
.acc__h { margin-top: 26px; margin-bottom: 2px; }
.acc__brands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.acc__brands a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.acc__brands li:last-child { grid-column: 1 / -1; }
.acc__feature { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 22px; text-decoration: none; }
.acc__feature img { width: 104px; height: 78px; object-fit: cover; }
.acc__feature-t, .acc__space-n { display: block; font: var(--fw-head) 1.25rem/1.2 var(--f-display); letter-spacing: var(--tr-s); }
.acc__feature-c, .acc__space-d { display: block; margin-top: 3px; font-size: .8125rem; line-height: 1.4; color: var(--stone-ink); }
.acc__spaces li + li { border-top: 1px solid rgba(142,137,129,.3); }
.acc__spaces a { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 0; text-decoration: none; }
.acc__spaces img { width: 60px; height: 76px; object-fit: cover; border-radius: 999px 999px 0 0; }
.menu__foot { display: grid; justify-items: start; gap: 4px; margin-top: 36px; }
.menu__foot a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 1.0625rem; }
.menu__quote { margin-bottom: 12px; }

/* ---------- Footer ---------- */
.footer__top { margin-left: auto; }
.footer__legal a.footer__top { color: var(--bitumen); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Layout switcher (?warianty only) ---------- */
.fonty {
  position: fixed; right: 16px; bottom: 16px; z-index: 70; width: 220px;
  background: var(--white); border: 1px solid rgba(142,137,129,.6);
  font: 400 .8125rem/1.4 var(--f-text); color: var(--bitumen);
}
.fonty__vars { padding: 10px 12px 12px; }
.fonty__var p { font-size: .75rem; color: var(--stone-ink); margin-bottom: 6px; }
.fonty__seg { display: grid; gap: 4px; }
.fonty__seg button { min-height: 34px; padding: 0 12px; border: 1px solid rgba(142,137,129,.6); border-radius: 999px; font-size: .75rem; text-align: left; white-space: nowrap; }
.fonty__seg button:hover { background: #F6F4F0; }
.fonty__seg button[aria-pressed="true"] { background: var(--bitumen); border-color: var(--bitumen); color: var(--white); }
@media (max-width: 767px) {
  .fonty { right: 8px; bottom: calc(68px + env(safe-area-inset-bottom)); }
}

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  height: calc(100svh - var(--hh));
  min-height: 600px;
  color: var(--white);
  overflow: hidden;
  background: #8a7f72;
}
.hero__media { position: absolute; inset: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
/* legibility scrim: heaviest in the bottom-left corner under the headline, a soft bottom band, and a light veil over the whole film */
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(125% 100% at 0% 100%, rgba(28,26,23,.7) 0%, rgba(28,26,23,.5) 36%, rgba(28,26,23,.2) 62%, rgba(28,26,23,0) 84%),
    linear-gradient(to top, rgba(28,26,23,.5) 0%, rgba(28,26,23,.2) 34%, rgba(28,26,23,0) 58%),
    rgba(28,26,23,.14);
}
.hero__content { position: absolute; inset: auto 0 0 0; padding-bottom: clamp(24px, 3.4vw, 48px); }
.hero__title {
  font: var(--fw-head) var(--t-hero)/.95 var(--f-display);
  letter-spacing: var(--tr-xl);
  margin-bottom: clamp(28px, 3.4vw, 52px);
}
.hero__title .l { display: block; }
.hero__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: end; }
.hero__lead { grid-column: 1 / 5; font-size: 1rem; line-height: 1.55; max-width: 40ch; text-wrap: pretty; color: rgba(255,255,255,.92); }
.hero__cta { grid-column: 5 / 9; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { grid-column: 10 / 13; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.hero__caption { font-size: var(--t-small); line-height: 1.45; color: rgba(255,255,255,.85); }
.video-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: var(--t-small); color: var(--white); }
.video-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.video-toggle .i-play { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: block; }
.video-toggle[aria-pressed="true"] .i-pause { display: none; }
.video-toggle__label { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* ---------- 2. Spaces index ---------- */
.spaces { padding-block: var(--s); }
.spaces__head { margin-bottom: clamp(40px, 6vw, 88px); align-items: start; }
.spaces__title { grid-column: 1 / 7; }
.spaces__intro { grid-column: 7 / 13; max-width: 52ch; }  /* starts where the photo below starts */
.spaces__body { align-items: start; }
.spaces__list { grid-column: 1 / 7; }
.space { position: relative; }
.space a { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 24px; padding: .04em 0 .1em; text-decoration: none; }
.space__name {
  font: var(--fw-head) var(--t-index)/1.02 var(--f-display);
  letter-spacing: var(--tr-xl);
  transition: color .4s;
}
.space__what { display: none; }
.space__thumb { display: none; }
.spaces__list.is-engaged .space:not(.is-active) .space__name { color: var(--stone); }
.space a:focus-visible { outline-offset: 6px; }

/* halves: names left, the arch on the right half, at most 800px wide and never taller than the screen */
.spaces__window { grid-column: 7 / 13; justify-self: start; width: min(100%, 800px, calc((100vh - 200px) * .8)); position: sticky; top: 112px; }
.arch {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 0 0;
  background: var(--travertine);
  isolation: isolate;
}
.spaces__caption { margin-top: 18px; display: grid; gap: 2px; }
.spaces__what { font-size: .9375rem; font-weight: 500; }
.spaces__caption .caption { margin-top: 0; }
.arch__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; visibility: hidden; }
.arch__img.is-on { opacity: 1; visibility: visible; }
/* h6: the Icarus umbrella stands at the left edge of the frame */
.arch__img[src$="h6.webp"] { object-position: 24% 50%; }

/* ---------- 3. Story ---------- */
.story { padding-bottom: var(--s); }
.story__wide { padding-inline: 0; }
.story__wide img { width: 100%; height: min(78vh, 56vw); object-fit: cover; object-position: 50% 62%; }
.story__wide .caption { padding-inline: var(--m); }
.story__pair { margin-top: clamp(64px, 8vw, 128px); align-items: start; }
.story__pool { grid-column: 1 / 8; }
.story__pool img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.story__text { grid-column: 9 / 13; margin-top: clamp(80px, 13vw, 220px); }
.story__text .h2 { font-size: var(--t-h2s); line-height: 1.08; letter-spacing: var(--tr-m); margin-bottom: 28px; }
.story__text p { max-width: 42ch; }
.story__text p + p { margin-top: 1em; }
.story__text .link { margin-top: 20px; }

/* Button letter roll (built on hover by main.js); the padding keeps Polish descenders inside the clip */
.roll { position: relative; display: inline-flex; overflow: hidden; padding-block: .14em; margin-block: -.14em; }
.roll__l { display: inline-flex; align-items: center; white-space: pre; }
.roll__l--b { position: absolute; left: 0; top: .14em; }
.roll__c { display: inline-block; will-change: transform; }

/* ---------- Mega menu "Produkty": six layouts, picked by html[data-menu] (1 is the default) ---------- */
.mega__in[data-v]:not([data-v="1"]) { display: none; }
html[data-menu] .mega__in[data-v="1"] { display: none; }
html[data-menu="2"] .mega__in[data-v="2"], html[data-menu="4"] .mega__in[data-v="4"],
html[data-menu="5"] .mega__in[data-v="5"], html[data-menu="6"] .mega__in[data-v="6"] { display: grid; }
html[data-menu="3"] .mega__in[data-v="3"] { display: block; }

/* v2: the categories as an index in the heading face, an arched preview beside it */
.mcat { grid-column: 1 / 6; }
.mcat a { display: flex; align-items: baseline; gap: 12px; padding-block: 3px; text-decoration: none; color: var(--stone-ink); transition: color .25s; }
.mcat a.is-active, .mcat a:focus-visible { color: var(--bitumen); }
.mcat__n { font: var(--fw-head) clamp(1.625rem, 2.3vw, 2.25rem)/1.12 var(--f-display); letter-spacing: var(--tr-m); }
.mcat__c { font-size: .8125rem; font-variant-numeric: tabular-nums; }
.mcat__stage { grid-column: 6 / 13; position: relative; }
.mcat__panel { display: none; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: var(--g); align-items: end; }
.mcat__panel.is-on { display: grid; }
.mcat__img { grid-column: 1 / 5; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 0 0; background: var(--packshot); }
.mcat__img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.mcat__subs { grid-column: 5 / 8; padding-bottom: 4px; }
.mcat__subs li a { display: inline-flex; align-items: center; min-height: 40px; margin-block: -4px; font-size: .9375rem; text-decoration: none; }
.mcat__subs li a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.mcat__subs .mega__more { display: inline-block; margin-top: 18px; font-size: .9375rem; }
.mcat__cap { margin-top: 18px; font-size: .8125rem; color: var(--stone-ink); }

/* v3: a tile per category, the same packshot ground and arch hover as the shelves on the page */
.mtiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px var(--g); }
.mtiles a { display: block; text-decoration: none; }
.mtiles__img { display: block; aspect-ratio: 5 / 4; overflow: hidden; background: var(--packshot); --arch-v: 62.5%; clip-path: inset(0 round 0 0 0 0 / 0 0 0 0); transition: clip-path .4s cubic-bezier(.2,.7,.2,1); }
.mtiles__img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.mtiles a:hover .mtiles__img, .mtiles a:focus-visible .mtiles__img { clip-path: inset(0 round 50% 50% 0 0 / var(--arch-v) var(--arch-v) 0 0); }
.mtiles a:hover .mtiles__img img { transform: scale(1.06); }
.mtiles__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 10px; }
.mtiles__n { font: var(--fw-head) 1.25rem/1.2 var(--f-display); letter-spacing: var(--tr-s); }
.mtiles a:hover .mtiles__n { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.mtiles__c { font-size: .8125rem; color: var(--stone-ink); font-variant-numeric: tabular-nums; }
.mtiles__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(142,137,129,.45); }
.mtiles__foot a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; text-decoration: none; }
.mtiles__foot a:not(.link):hover { text-decoration: underline; text-underline-offset: 5px; }
.mtiles__foot .link { margin-right: auto; }

/* v4 "Indeks i wnętrze": the index beside a wide interior photo; sub-categories run under it in one line */
.mcat--room { grid-column: 1 / 5; }
.mroom { grid-column: 5 / 13; }
.mroom__panel { display: none; }
.mroom__panel.is-on { display: block; }
.mroom__img { display: block; aspect-ratio: 2 / 1; overflow: hidden; background: var(--travertine); }
.mroom__img img { width: 100%; height: 100%; object-fit: cover; }
.mroom__panel.is-on .mroom__img img { animation: mroom-in .7s cubic-bezier(.2,.7,.2,1); }
@keyframes mroom-in { from { opacity: .35; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.mroom__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; margin-top: 16px; }
.mroom__row ul { display: flex; flex-wrap: wrap; gap: 0 22px; margin-right: auto; }
.mroom__row a { display: inline-flex; align-items: center; min-height: 40px; font-size: .9375rem; text-decoration: none; }
.mroom__row ul a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.mroom__row .mega__more { text-decoration: underline; }
.mroom .mcat__cap { margin-top: 4px; }

/* v5 "Indeks w grupach": categories set in three plain groups, one arched packshot follows the hovered name */
.mgrp__col { grid-column: span 3; }
.mgrp__col ul { margin-top: 14px; }
.mgrp__col a { display: flex; align-items: baseline; gap: 10px; padding-block: 7px; text-decoration: none; color: var(--stone-ink); transition: color .25s; }
.mgrp__col a.is-active, .mgrp__col a:focus-visible { color: var(--bitumen); }
.mgrp__n { font: var(--fw-head) clamp(1.75rem, 2.5vw, 2.5rem)/1.12 var(--f-display); letter-spacing: var(--tr-m); }
.mgrp__stage { grid-column: 10 / 13; grid-row: 1; position: relative; }
.mgrp__fig { display: none; }
.mgrp__fig.is-on { display: block; }
.mgrp__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 0 0; background: var(--packshot); }
.mgrp__img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.mgrp__fig .mcat__cap { position: absolute; left: 0; top: 100%; margin-top: 12px; }
.mgrp__foot { grid-column: 1 / 10; grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; padding-top: 18px; border-top: 1px solid rgba(142,137,129,.45); }
.mgrp__foot a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; text-decoration: none; }
.mgrp__foot a:not(.link):hover { text-decoration: underline; text-underline-offset: 5px; }
.mgrp__foot .link { margin-right: auto; }

/* v6 "Indeks i kursor": the largest type in the menu; the packshot rides next to the pointer */
.mega__in[data-v="6"] { position: relative; }
.mcur { grid-column: 1 / 10; columns: 2; column-gap: var(--g); }
.mcur li { break-inside: avoid; }
.mcur a { display: flex; align-items: baseline; gap: 12px; padding-block: 2px; text-decoration: none; color: var(--bitumen); transition: color .3s; }
.mcur:hover a { color: var(--stone); }
.mcur a:hover, .mcur a:focus-visible { color: var(--bitumen); }
.mcur__n { font: var(--fw-head) clamp(2.25rem, 3.6vw, 3.5rem)/1.08 var(--f-display); letter-spacing: var(--tr-l); }
.mcur__side { grid-column: 10 / 13; padding-top: 10px; }
.mcur__side ul { margin-bottom: 20px; }
.mcur__side li a { display: inline-flex; align-items: center; min-height: 40px; margin-block: -4px; font-size: .9375rem; text-decoration: none; }
.mcur__side li a:hover, .mcur__side .mega__more { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.mcur__float {
  position: absolute; left: 0; top: 0; z-index: 2; width: clamp(150px, 13vw, 210px); aspect-ratio: 4 / 5;
  overflow: hidden; border-radius: 999px 999px 0 0; background: var(--packshot);
  pointer-events: none; opacity: 0; transform: scale(.85); transition: opacity .25s, transform .35s cubic-bezier(.2,.7,.2,1);
}
.mcur__float.is-on { opacity: 1; transform: none; }
.mcur__float img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }

/* ---------- Product carousels: one component, four shelves (new, Pedrali, upholstery, parasols) ---------- */
.pcar { padding-bottom: var(--s); }
.proof + .pcar, .config[hidden] + .pcar { padding-top: var(--s); }
.pcar + .brands { padding-top: 0; }
.pcar__head { align-items: end; margin-bottom: clamp(28px, 3vw, 48px); row-gap: 20px; }
.pcar__head .h2 { grid-column: 1 / 6; }
.pcar__intro { grid-column: 6 / 10; max-width: 44ch; }
.pcar__nav { grid-column: 10 / 13; white-space: nowrap; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.pcar__btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none;
  border: 1px solid var(--bitumen); border-radius: 50%; color: var(--bitumen);
  transition: background-color .2s, color .2s, opacity .2s;
}
.pcar__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.pcar__btn:hover:not(:disabled) { background: var(--bitumen); color: var(--white); }
.pcar__btn:disabled { opacity: .3; cursor: default; }
/* the shelf runs to the viewport edge; scroll-padding keeps the first card on the page margin */
.pcar__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--g)) / 4.3); gap: var(--g);
  margin-inline: calc(-1 * var(--m)); padding-inline: var(--m); scroll-padding-inline: var(--m);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-bottom: 6px; /* an x-scroller clips y too: room for the pill's bottom border */
}
.pcar__track::-webkit-scrollbar { display: none; }
.pcar--wide .pcar__track { grid-auto-columns: calc((100% - 2 * var(--g)) / 3.3); }
.pcar__card { scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; }
.pcar__link { display: block; width: 100%; text-decoration: none; }
.pcar__img {
  display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--packshot); margin-bottom: 14px;
  --arch-v: 40%; clip-path: inset(0 round 0 0 0 0 / 0 0 0 0); transition: clip-path .4s cubic-bezier(.2,.7,.2,1);
}
.pcar--wide .pcar__img { aspect-ratio: 5 / 4; --arch-v: 62.5%; }
/* packshots come on white or on Pedrali's light grey: multiply settles both onto the packshot ground */
.pcar__img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
@media (hover: hover) {
  .pcar__link:hover .pcar__img { clip-path: inset(0 round 50% 50% 0 0 / var(--arch-v) var(--arch-v) 0 0); }
  .pcar__link:hover .pcar__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
}
.pcar__link:focus-visible .pcar__img { clip-path: inset(0 round 50% 50% 0 0 / var(--arch-v) var(--arch-v) 0 0); }
.pcar__name { display: block; font: var(--fw-head) 1.375rem/1.2 var(--f-display); letter-spacing: var(--tr-s); }
.pcar__meta { display: block; margin-top: 4px; font-size: .875rem; color: var(--stone-ink); }
/* under the shelf: the progress line across the width, the arrows on the right */
.pcar__foot { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); margin-top: clamp(24px, 2.5vw, 36px); }
.pcar__bar { flex: 1; min-width: 0; position: relative; height: 1px; background: rgba(142,137,129,.45); overflow: hidden; }
.pcar__bar span { position: absolute; inset: 0 auto 0 0; width: 25%; background: var(--bitumen); }
.pcar__arrows { flex: none; display: flex; gap: 10px; }

/* ---------- 5. Designers: a credits list, the name leads, the product follows ---------- */
.makers { padding-bottom: var(--s); }
.makers__head { align-items: start; margin-bottom: clamp(28px, 3vw, 44px); }
.makers__head .h2 { grid-column: 1 / 7; }
.makers__intro { grid-column: 8 / 13; max-width: 44ch; }  /* on the product column below */
.maker {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g);
  align-items: center; padding-block: 14px;
  border-top: 1px solid rgba(142,137,129,.6);
}
.maker:last-child { border-bottom: 1px solid rgba(142,137,129,.6); }
.maker__who { grid-column: 1 / 6; padding-right: var(--g); }
.maker__name { font: var(--fw-head) clamp(1.375rem, 1.9vw, 1.875rem)/1.1 var(--f-display); letter-spacing: var(--tr-m); text-wrap: balance; }
.maker__fact { margin-top: 6px; font-size: .875rem; line-height: 1.5; color: var(--stone-ink); max-width: 40ch; }
.maker .maker__img { grid-column: 6 / 8; aspect-ratio: 3 / 2; margin-bottom: 0; }
/* packshots arrive on white or on light grey: multiply settles both onto the same packshot ground */
.maker__img img { mix-blend-mode: multiply; }
/* name and terms on the left, the button on the right: one compact row per designer */
.maker__what { grid-column: 8 / 13; }

.product__img { aspect-ratio: 5 / 4; overflow: hidden; background: var(--packshot); margin-bottom: 16px; }
.product__img img { width: 100%; height: 100%; object-fit: cover; }
.product__name { font: var(--fw-head) 1.4375rem/1.2 var(--f-display); letter-spacing: var(--tr-s); margin-bottom: 4px; }
.product__meta { font-size: var(--t-small); line-height: 1.5; color: var(--stone-ink); }

/* ---------- 3. Categories ---------- */
.kat { padding-bottom: var(--s); }
.kat__head { align-items: start; margin-bottom: clamp(36px, 4vw, 64px); }
.kat__head .h2 { grid-column: 1 / 7; }
.kat__intro { grid-column: 7 / 12; max-width: 44ch; }
.kat__body { align-items: start; row-gap: clamp(32px, 3.4vw, 48px); }
.ktile { display: block; text-decoration: none; }
.ktile--lead { grid-column: 1 / 7; grid-row: 1 / 3; }
.ktile--b { grid-column: 7 / 10; }
.ktile--c { grid-column: 10 / 13; }
/* arch hover via clip-path (it also clips multiply-blended packshots, which border-radius leaves square in Chrome).
   --arch-v: vertical radius that makes a half-circle top for the tile's aspect ratio (half the width, as % of the height) */
.ktile__img { display: block; overflow: hidden; background: var(--travertine); aspect-ratio: 4 / 5; --arch-v: 40%; clip-path: inset(0 round 0 0 0 0 / 0 0 0 0); transition: clip-path .4s cubic-bezier(.2,.7,.2,1); }
.ktile--lead .ktile__img { aspect-ratio: 1 / 1; --arch-v: 50%; }
@media (hover: hover) {
  .ktile:hover .ktile__img { clip-path: inset(0 round 50% 50% 0 0 / var(--arch-v) var(--arch-v) 0 0); }
}
.ktile:focus-visible .ktile__img { clip-path: inset(0 round 50% 50% 0 0 / var(--arch-v) var(--arch-v) 0 0); }
.ktile__img--pack { background: var(--packshot); }
.ktile__img.ktile__img--pack img { object-fit: contain; mix-blend-mode: multiply; }
.ktile__img img { width: 100%; height: 100%; object-fit: cover; }
.ktile--b img { object-position: 46% 70%; }
.ktile--c img { object-position: 58% 60%; }
.ktile__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 14px; }
.ktile__n { font: var(--fw-head) 1.75rem/1.15 var(--f-display); letter-spacing: var(--tr-m); }
.ktile--lead .ktile__n { font-size: clamp(2rem, 3vw, 2.75rem); }
.ktile__c, .klist__c { font-size: .875rem; color: var(--stone-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ktile__cap { display: block; margin-top: 2px; font-size: .8125rem; color: var(--stone-ink); }
.ktile:hover .ktile__n, .klist a:hover .klist__n { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.kat__rest { grid-column: 7 / 13; align-self: end; }
.klist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: var(--g); }
.klist li { border-top: 1px solid rgba(142,137,129,.6); }
.klist li:nth-child(4n) { border-bottom: 1px solid rgba(142,137,129,.6); }
.klist a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; min-height: 52px; padding: 12px 0 13px; text-decoration: none; }
.klist__n { font: var(--fw-head) 1.375rem/1.2 var(--f-display); letter-spacing: var(--tr-s); }
.klist__all .klist__n { font: 500 .9375rem/1.9 var(--f-text); letter-spacing: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }

/* ---------- 4. Steps ---------- */
.steps { background: var(--travertine); padding-block: var(--s); }
.steps__head { grid-column: 1 / 13; display: grid; grid-template-columns: subgrid; align-items: start; margin-bottom: clamp(48px, 6vw, 96px); }
.steps__head .h2 { grid-column: 1 / 7; }
.steps__head p { grid-column: 1 / 7; margin-top: 16px; max-width: 40ch; }
/* A timeline: one axis through four nodes, drawn as the section scrolls by (main.js) */
.steps__list { grid-column: 1 / 13; display: grid; grid-template-columns: subgrid; row-gap: 48px; position: relative; --node: 48px; }
.steps__track {
  position: absolute; top: calc(var(--node) / 2); height: 1px;
  left: calc(var(--node) / 2); right: calc((100% - 3 * var(--g)) / 4 - var(--node) / 2);
  background: rgba(142,137,129,.55);
}
.steps__track span { position: absolute; inset: -.5px 0; background: var(--bitumen); transform: scaleX(0); transform-origin: 0 50%; }
.step { grid-column: span 3; position: relative; padding-right: 12px; }
.step__node {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: var(--node); height: var(--node); border-radius: 50%;
  border: 1px solid var(--stone); background: var(--travertine); color: var(--bitumen);
  font: var(--fw-head) 1.25rem/1 var(--f-display); letter-spacing: 0;
  transition: background-color .35s, color .35s, border-color .35s;
}
.step.is-on .step__node { background: var(--bitumen); border-color: var(--bitumen); color: var(--white); }
.step .h3 { margin-top: 28px; margin-bottom: 12px; }
.step p { font-size: .9688rem; line-height: 1.6; max-width: 34ch; }

/* ---------- 5. Configurator ---------- */
.config { padding-block: var(--s); }
.config__head { align-items: start; margin-bottom: clamp(40px, 5vw, 80px); }
.config__head .h2 { grid-column: 1 / 8; }
.config__intro { grid-column: 8 / 13; max-width: 44ch; }
.config__body { align-items: start; }
.config__photo { grid-column: 1 / 7; }
.config__photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 48% 50%; }
.config__panel { grid-column: 8 / 13; }
.cfg-group { border-top: 1px solid var(--stone); padding-block: 22px 36px; }
.cfg-label { font: 500 .9375rem/1.4 var(--f-text); margin-bottom: 18px; }
.cfg-value { font-weight: 400; color: var(--stone-ink); }
.fabric { display: grid; grid-template-columns: 116px 1fr; gap: 22px; align-items: start; }
.fabric__sample {
  aspect-ratio: 1; background-color: #D3C6B1;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 4px);
}
.swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.swatch { position: relative; width: 44px; height: 44px; border-radius: 50%; }
.swatch::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(28,26,23,.12); }
.swatch[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--bitumen); }
.resist { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 24px; }
.resist li { display: flex; align-items: center; gap: 10px; font-size: .875rem; }
.resist svg { width: 28px; height: 28px; fill: none; stroke: var(--bitumen); stroke-width: 1.4; stroke-linejoin: round; }
.table { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; }
.table__plan { width: 100%; height: auto; background: var(--packshot); }
.table__top { fill: var(--white); stroke: var(--bitumen); stroke-width: 1.2; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(142,137,129,.8);
  font-size: .9375rem; font-variant-numeric: tabular-nums;
  transition: background-color .2s, color .2s, border-color .2s;
}
.size:hover { border-color: var(--bitumen); }
.size[aria-pressed="true"] { background: var(--bitumen); border-color: var(--bitumen); color: var(--white); }
.cfg-actions { border-top: 1px solid var(--stone); padding-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.cfg-note { font-size: var(--t-small); color: var(--stone-ink); max-width: 32ch; }

.swatch--premium::after { content: ""; position: absolute; right: 4px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--bitumen); box-shadow: 0 0 0 2px var(--white); }
.surcharge { display: flex; align-items: baseline; gap: 9px; margin-top: 6px; font-size: var(--t-small); line-height: 1.45; color: var(--stone-ink); max-width: 40ch; }
.surcharge__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--bitumen); transform: translateY(-1px); }
.surcharge.is-on { color: var(--bitumen); }

/* ---------- 8. Durability and certificates ---------- */
.proof { background: var(--travertine); padding-block: clamp(64px, 7vw, 112px); }
.proof .grid { align-items: start; }
.proof__head { grid-column: 1 / 5; padding-right: var(--g); }
.proof__head .h2 { font-size: var(--t-h2s); line-height: 1.08; letter-spacing: var(--tr-m); margin-bottom: 20px; }
.proof__head p { max-width: 34ch; }
.proof__list { grid-column: 5 / 13; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--g); }
.proof__list li { padding-right: 8px; }
/* line drawings: one warm-grey stroke, white planes under part of the drawing, a ground line */
.proof__list svg { display: block; width: 150px; height: 120px; margin: 4px 0 24px -15px; fill: none; stroke: var(--stone-ink); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.proof__list svg * { vector-effect: non-scaling-stroke; }
.proof__list svg .f { fill: var(--white); }
.proof__list svg text { fill: var(--stone-ink); stroke: none; font: 500 13px var(--f-text); letter-spacing: .02em; }
.proof__list svg text.c { text-anchor: middle; font-size: 11px; }
.proof__t { font: var(--fw-head) 1.3125rem/1.2 var(--f-display); letter-spacing: var(--tr-s); margin-bottom: 10px; }
.proof__list p { font-size: .9375rem; line-height: 1.55; color: var(--stone-ink); max-width: 30ch; }
.proof__end { grid-column: 5 / 13; margin-top: clamp(36px, 4vw, 56px); font-weight: 500; font-size: 1rem; }

/* ---------- 9. Brands ---------- */
.brands { padding-block: var(--s); }
.brands__head { align-items: start; margin-bottom: clamp(36px, 4vw, 64px); }
.brands__head .h2 { grid-column: 1 / 7; }
.brands__intro { grid-column: 7 / 12; max-width: 44ch; }  /* on the fourth logo column */
/* logo wall: every brand in one muted ink, sized by area so wide and compact marks weigh the same */
.brands__wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: rgba(142,137,129,.45); border-block: 1px solid rgba(142,137,129,.45); }
.brands__wall > li { background: var(--white); }
.blogo { position: relative; display: flex; align-items: center; justify-content: center; height: 100%; min-height: clamp(120px, 10vw, 150px); padding: 14px 14px 12px; text-decoration: none; }
.blogo__mark {
  display: block; flex: none;
  width: min(calc(var(--w) * .9px), 70%); aspect-ratio: var(--ar);
  background: var(--stone); transition: background-color .3s;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
}
/* the meta line sits on the cell floor, out of the flow, so the mark stays centred in the cell */
.blogo__meta { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; justify-content: space-between; gap: 8px; align-items: flex-end; font-size: .75rem; line-height: 1.3; color: var(--stone-ink); opacity: 0; transition: opacity .3s; }
.blogo:hover .blogo__mark, .blogo:focus-visible .blogo__mark { background: var(--bitumen); }
.blogo:hover .blogo__meta, .blogo:focus-visible .blogo__meta { opacity: 1; }
@media (hover: none) { .blogo__meta { opacity: 1; } }
.blogo--more { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 4px; }
.blogo--more p { font-size: .875rem; line-height: 1.45; color: var(--stone-ink); max-width: 24ch; }

/* ---------- 7. Projects ---------- */
.work { background: var(--travertine); padding-block: var(--s); }
.work__head { align-items: start; margin-bottom: clamp(40px, 5vw, 80px); }
.work__head .h2 { grid-column: 1 / 7; }
.work__intro { grid-column: 9 / 13; max-width: 44ch; }  /* starts on the column of the second photo */
.work__grid { align-items: start; }
.project img { width: 100%; object-fit: cover; margin-bottom: 18px; }
.project .h3 { margin-bottom: 6px; }
.project__products { font-size: .9375rem; color: var(--stone-ink); max-width: 46ch; }
.project--a { grid-column: 1 / 8; }
.project--a img { aspect-ratio: 9 / 7; }
.project--b { grid-column: 9 / 13; margin-top: clamp(96px, 16vw, 260px); }
.project--b img { aspect-ratio: 4 / 5; }
.project--c { grid-column: 3 / 7; margin-top: clamp(64px, 7vw, 112px); }
.project--c img { aspect-ratio: 4 / 5; }

/* ---------- 8. Owners ---------- */
.owners { padding-block: var(--s); }
.owners + .arch-pro { padding-top: 0; }
.owners .grid { align-items: start; }
.owners__text { grid-column: 1 / 6; }
/* the direct line closes the text column on the bottom edge of the portraits */
.owners__call { margin-top: 40px; }
.owners__k { font-size: .875rem; color: var(--stone-ink); }
.owners__tel { display: inline-block; margin-top: 6px; font: var(--fw-head) clamp(2rem, 3.4vw, 3.25rem)/1 var(--f-display); letter-spacing: var(--tr-m); text-decoration: none; white-space: nowrap; }
.owners__tel:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.owners__alt { margin-top: 14px; font-size: .9375rem; color: var(--stone-ink); }
.owners__alt a { margin-left: 6px; color: var(--bitumen); text-decoration: none; white-space: nowrap; }
.owners__alt a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* wide screens only: on tablets the text column outgrows the portraits and would push the captions down */
@media (min-width: 1280px) {
  .owners .grid { grid-template-rows: auto auto; }
  .owners__text { grid-row: 1; align-self: stretch; display: flex; flex-direction: column; }
  .owners__call { margin-top: auto; padding-top: 40px; }
  .owner { grid-row: 1 / 3; display: grid; grid-template-rows: subgrid; }
}
.owners__text .h2 { font-size: var(--t-h2s); line-height: 1.08; letter-spacing: var(--tr-m); margin-bottom: 24px; }
.owners__text p { max-width: 38ch; }
/* the two portraits side by side on the right half, same height: the section stays one screen tall */
.owner { grid-column: 7 / 10; }
.owner--b { grid-column: 10 / 13; }
/* placeholder portraits from Magnific (Freepik) stock until the owners send their own */
.owner__portrait { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--portrait); }
.owner figcaption { margin-top: 16px; }
.owner__name { font: var(--fw-head) 1.5rem/1.2 var(--f-display); letter-spacing: var(--tr-s); }
.owner__role { margin-top: 4px; font-size: .9375rem; color: var(--stone-ink); max-width: 34ch; }

/* ---------- 9. Architects ---------- */
.arch-pro { padding-block: var(--s); }
.pro__intro { grid-column: 1 / 6; }
.pro__intro > p { margin-top: 24px; max-width: 40ch; }
.pro__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.pro__list { grid-column: 7 / 13; }
.pro__list div { border-top: 1px solid rgba(142,137,129,.6); padding: 22px 0 26px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--g); }
.pro__list div:last-child { border-bottom: 1px solid rgba(142,137,129,.6); }
.pro__list dt { grid-column: 1 / 4; font: var(--fw-head) var(--t-h3)/1.2 var(--f-display); letter-spacing: var(--tr-s); }
.pro__list dd { grid-column: 4 / 7; margin: 0; font-size: .9375rem; color: var(--stone-ink); padding-top: 4px; }

/* ---------- 10. Contact ---------- */
.contact { padding-bottom: var(--s); }
.contact .grid { align-items: end; }
.contact__text { grid-column: 1 / 7; }
.contact__text > p { margin-top: 24px; max-width: 46ch; }
.contact__lines { margin-top: 40px; display: grid; gap: 6px; }
.contact__lines li { display: grid; grid-template-columns: 96px 1fr; align-items: baseline; gap: 16px; }
.contact__k { font-size: var(--t-small); color: var(--stone-ink); }
.contact__v { font: var(--fw-head) clamp(1.5rem, 2.4vw, 2.25rem)/1.3 var(--f-display); letter-spacing: var(--tr-m); text-decoration: none; overflow-wrap: anywhere; }
.contact__v:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.contact__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.contact__photo { grid-column: 8 / 13; }
.contact__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 38% 50%; }

/* ---------- 11. Footer ---------- */
.footer { background: var(--travertine); padding-top: clamp(64px, 8vw, 120px); }
.footer__cols { row-gap: 40px; }
.footer__col { grid-column: span 3; }
.footer__h { font-weight: 500; font-size: .9375rem; margin-bottom: 12px; }
.footer__col li { font-size: .9375rem; color: var(--stone-ink); }
.footer__col a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -6px; text-decoration: none; color: var(--bitumen); }
.footer__col a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer__mark { margin-top: clamp(64px, 9vw, 140px); color: var(--bitumen); }
.footer__mark .dv-logo { width: 100%; height: auto; }
.footer__legal {
  display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center;
  margin-top: clamp(24px, 3vw, 40px); padding-block: 20px 28px;
  border-top: 1px solid rgba(142,137,129,.6);
  font-size: .8125rem; color: var(--stone-ink);
}
.footer__legal p { margin-right: 12px; }
.footer__legal a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--stone-ink); }

/* ---------- Mobile action bar ---------- */
.mbar { display: none; }

/* ---------- Quote panel ---------- */
.quote { position: fixed; inset: 0; z-index: 80; }
.quote[hidden] { display: none; }
.quote__scrim { position: absolute; inset: 0; background: rgba(28,26,23,.38); }
.quote__panel {
  position: absolute; inset: 0 0 0 auto; width: min(460px, 100%);
  background: var(--white); padding: 28px var(--m) 32px 36px;
  display: flex; flex-direction: column; gap: 24px; overflow-y: auto;
}
.quote__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.quote__head .h3 { font-size: 2rem; }
.quote__close { min-height: 44px; font-size: .9375rem; text-decoration: underline; text-underline-offset: 5px; }
.quote__empty { color: var(--stone-ink); max-width: 36ch; }
.quote__list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(142,137,129,.6); }
.quote__list li:last-child { border-bottom: 1px solid rgba(142,137,129,.6); }
.quote__list .q-name { font: var(--fw-head) 1.375rem/1.2 var(--f-display); letter-spacing: var(--tr-s); }
.quote__list button { min-height: 44px; font-size: .875rem; color: var(--stone-ink); text-decoration: underline; text-underline-offset: 4px; }
.quote__foot { margin-top: auto; display: grid; gap: 16px; }
.quote__foot p { font-size: var(--t-small); color: var(--stone-ink); }

/* ---------- Responsive ---------- */
/* ---------- Section heads: one pattern everywhere ----------
   title, the description under it on the left; carousel arrows or the "see all" link on the right, on the description's baseline */
:is(.spaces, .kat, .makers, .brands, .work, .pcar) > :is(.spaces__head, .kat__head, .makers__head, .brands__head, .work__head, .pcar__head) { align-items: end; row-gap: 0; }
:is(.spaces__head, .kat__head, .makers__head, .brands__head, .work__head, .pcar__head) .h2 { grid-column: 1 / 8; grid-row: 1; }
:is(.spaces__intro, .kat__intro, .makers__intro, .brands__intro, .work__intro, .pcar__intro) { grid-column: 1 / 7; grid-row: 2; margin-top: 16px; max-width: 52ch; }
.pcar__nav, .work__cta { grid-column: 8 / 13; grid-row: 1 / 3; align-self: end; justify-self: end; }

@media (max-width: 1279px) {
  .site-header__tel { display: none; }
}
@media (max-width: 1099px) {
  .brands__wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pcar__head .h2 { grid-column: 1 / 8; }
  .pcar__intro { grid-column: 1 / 8; grid-row: 2; }
  .pcar__nav { grid-column: 8 / 13; grid-row: 2; }
  .pcar__track { grid-auto-columns: calc((100% - 2 * var(--g)) / 2.6); }
  .pcar--wide .pcar__track { grid-auto-columns: calc((100% - var(--g)) / 1.8); }
  .site-nav, .mega-scrim { display: none !important; }
  .menu-btn { display: inline-flex; }
  .hero__lead { grid-column: 1 / 7; }
  .hero__cta { grid-column: 7 / 13; justify-content: flex-start; }
  .hero__meta { grid-column: 1 / 13; flex-direction: row; justify-content: space-between; align-items: center; margin-top: 20px; }
  .ktile--lead { grid-column: 1 / 13; grid-row: auto; }
  .ktile--lead .ktile__img { aspect-ratio: 16 / 10; --arch-v: 80%; }
  .ktile--b { grid-column: 1 / 5; }
  .ktile--c { grid-column: 5 / 9; }
  .kat__rest { grid-column: 9 / 13; align-self: start; }
  .kat__rest .klist { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .kat__rest .klist li:nth-child(4n) { border-bottom: 0; }
  .kat__rest .klist li:last-child { border-bottom: 1px solid rgba(142,137,129,.6); }
  .klist a { min-height: 46px; padding: 9px 0 10px; }
  .klist__n { font-size: 1.1875rem; }
  .maker .maker__img { grid-column: 6 / 8; }
  .maker__what { grid-column: 8 / 13; }
  .proof__head { grid-column: 1 / 13; margin-bottom: 40px; }
  .proof__list { grid-column: 1 / 13; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .proof__end { grid-column: 1 / 13; }
  .steps__list { display: block; }
  .steps__track { display: none; }
  .step { padding: 0 0 40px calc(var(--node) + 24px); max-width: 60ch; }
  .step:last-child { padding-bottom: 0; }
  .step__node { position: absolute; left: 0; top: 0; }
  .step:not(:last-child)::before { content: ""; position: absolute; left: calc(var(--node) / 2); top: var(--node); bottom: 0; width: 1px; background: rgba(142,137,129,.55); }
  .step .h3 { margin-top: 10px; }
  .config__photo, .config__panel { grid-column: 1 / 13; }
  .config__panel { margin-top: 40px; }
}

@media (max-width: 767px) {
  .footer__top { margin-left: 0; }
  .pcar__intro, .pcar__nav { grid-column: 1 / -1; }
  .pcar__nav { grid-row: 3; justify-content: space-between; }
  .pcar__nav, .work__cta { justify-self: stretch; margin-top: 12px; }
  .work__cta { grid-column: 1 / -1; grid-row: 3; justify-self: start; }
  .pcar__nav .link { margin-right: auto; }
  .pcar__btn, .pcar__arrows { display: none; }
  .pcar__track { grid-auto-columns: 72%; }
  .pcar--wide .pcar__track { grid-auto-columns: 84%; }
  :root { --hh: 64px; --t-body: 1rem; }
  body { padding-bottom: 60px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .grid > * { grid-column: 1 / -1 !important; }
  .site-header.is-scrolled { height: 56px; }
  .site-header__logo { height: 17px; }
  .site-header__bar { gap: 12px; }
  .quote-btn { display: none; }

  .hero { height: calc(100svh - var(--hh) - 60px); min-height: 560px; }
  .hero__title { margin-bottom: 20px; }
  .hero__title .l { display: inline; }
  .hero__row { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .hero__row > * { grid-column: 1 / -1; }
  .hero__lead { font-size: .9375rem; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__meta { margin-top: 0; }
  .hero__caption { display: none; }

  .spaces__window { display: none; }
  .space { border-top: 1px solid rgba(142,137,129,.6); }
  .space:last-child { border-bottom: 1px solid rgba(142,137,129,.6); }
  .space a { display: grid; grid-template-columns: 1fr 84px; grid-template-rows: auto auto; column-gap: 16px; padding: 14px 0; min-height: 132px; align-content: center; }
  .space__name { font-size: clamp(2.1rem, 10vw, 2.75rem); grid-column: 1; }
  .space__what { display: block; grid-column: 1; margin-top: 6px; font-size: .875rem; color: var(--stone-ink); }
  .space__thumb {
    display: block; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 84px; height: 104px; object-fit: cover; border-radius: 999px 999px 0 0; pointer-events: none;
  }
  .spaces__list.is-engaged .space:not(.is-active) .space__name { color: inherit; }

  .story__wide img { height: 62vh; object-position: 40% 60%; }
  .story__text { margin-top: 40px; }

  .kat__body.grid { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .kat__body.grid > .ktile--b { grid-column: 1 / 2 !important; }
  .kat__body.grid > .ktile--c { grid-column: 2 / 3 !important; }
  .ktile--lead .ktile__img { aspect-ratio: 5 / 4; }
  .ktile__n { font-size: 1.375rem; }
  .ktile--lead .ktile__n { font-size: 1.875rem; }
  .ktile__row { flex-wrap: wrap; column-gap: 10px; row-gap: 0; margin-top: 10px; }
  .ktile__cap { display: none; }
  .ktile--b .ktile__row, .ktile--c .ktile__row { flex-direction: column; align-items: flex-start; }
  .ktile--lead .ktile__cap { display: block; }
  .kat__rest { margin-top: 4px; }

  .maker { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 18px; padding-block: 22px 26px; }
  .maker__who { grid-column: 1 / -1; padding-right: 0; }
  .maker .maker__img { grid-column: 1 / 2; }
  .maker__what { grid-column: 2 / 3; display: block; }

  .proof__head { margin-bottom: 28px; }
  .proof__list { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .proof__list li { display: grid; grid-template-columns: 80px minmax(0, 1fr); column-gap: 16px; padding-block: 18px 20px; }
  .proof__list svg { grid-row: 1 / 3; width: 90px; height: 72px; margin: 0 0 0 -10px; }
  .proof__t { margin-bottom: 4px; }
  .proof__end { margin-top: 24px; }

  .steps__head, .steps__list { display: block; }
  .steps__head p { margin-top: 16px; }
  .steps__list { --node: 40px; }

  .fabric { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .fabric__sample { aspect-ratio: auto; height: 56px; }
  .table { grid-template-columns: 1fr; gap: 16px; }
  .table__plan { max-width: 240px; }

  .brands__wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blogo { min-height: 132px; padding: 12px; }

  .project--b, .project--c { margin-top: 56px; }
  .owner--a { margin-top: 48px; }
  .owner--b { margin-top: 40px; }
  .owner { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: end; }
  .owner figcaption { margin-top: 0; }

  .pro__list { margin-top: 56px; }
  .pro__list div { grid-template-columns: minmax(0, 1fr); }
  .pro__list dt, .pro__list dd { grid-column: 1 / -1; }
  .pro__list dd { padding-top: 6px; }

  .contact__photo { margin-top: 56px; }
  .contact__lines li { grid-template-columns: 1fr; gap: 0; }
  .contact__cta .btn { flex: 1 1 auto; }

  .footer__col { grid-column: 1 / -1; }
  .footer__cols.grid { grid-template-columns: 1fr 1fr; }
  .footer__cols.grid > .footer__col { grid-column: span 1 !important; }
  .footer__cols.grid > .footer__contact { grid-column: 1 / -1 !important; }

  .footer__legal p { flex-basis: 100%; }
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; inset: auto 0 0 0; z-index: 40; height: 60px;
    background: var(--white); border-top: 1px solid rgba(142,137,129,.6);
  }
  .mbar a, .mbar button { display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 1rem; text-decoration: none; }
  .mbar__quote { background: var(--bitumen); color: var(--white); }
  .fonty { right: 12px; bottom: 72px; width: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header, .pm::before, .pm::after { transition: none; }
}

/* SplitText line masks: give accents (ó, ś) and descenders (j, g) room while the lines rise */
/* Line masks during the hero reveal: widen the clip with clip-path instead of padding + negative margins.
   Sibling negative margins collapse (−.14em wins over −.1em + −.14em), which spread the lines ~.1em apart until the split reverted. */
.hero__title [class$="-mask"] { overflow: visible !important; clip-path: inset(-.2em -.3em -.14em -.3em); }
