/* minotti-furniture.com — site styles. Tokens in /assets/ds/tokens.css, faces in /assets/ds/fonts.css.
   Mobile first: 360 first, then 480 / 900 / 1280 / 1600. No shadows, no uppercase, no convex radii. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 24px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--text); font-synthesis: none;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  padding-top: var(--head-h); overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
table { border-collapse: collapse; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.on-basalt :focus-visible { outline-color: var(--accent-on-basalt); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--on-primary); padding: 12px 18px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- layout ---------- */
.wrap { max-width: calc(var(--container) + 2 * var(--margin)); margin-inline: auto; padding-inline: var(--margin); }
.g5 { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gutter); }
@media (min-width: 900px) { .g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.sec { padding-block: var(--section) 0; }
.sec--tight { padding-block: calc(var(--section) * .6) 0; }
.sec:last-of-type { padding-bottom: var(--section); }
.measure { max-width: var(--text-col); }

/* ---------- type ---------- */
.d-xl, .h-lg, .h-md, .d-it { font-family: var(--display); letter-spacing: -0.015em; }
.d-xl { font-weight: 600; font-size: clamp(56px, 9.6vw, 152px); line-height: .94; }
.h-lg { font-weight: 600; font-size: clamp(36px, 4.2vw, 56px); line-height: 1.06; }
.h-md { font-weight: 600; font-size: clamp(28px, 2.6vw, 34px); line-height: 1.12; }
.d-it { font-style: italic; font-weight: 400; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -0.01em; }
em.it, .it { font-family: var(--display); font-style: italic; font-weight: 400; }
.body-lg { font-size: 19px; line-height: 1.6; }
@media (max-width: 479px) { .body-lg { font-size: 18px; } }
.small { font-size: 14px; line-height: 1.5; }
.muted { color: var(--muted); }
.num { font-family: var(--display); font-weight: 600; font-variant-numeric: oldstyle-nums tabular-nums; }
.kicker { font-style: italic; font-size: 15px; color: var(--muted); margin-bottom: calc(var(--u) * 3); }
.prose p { max-width: 36em; }
.prose a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }

/* ---------- concave corners: four radial-gradient masks, one per quadrant ---------- */
.cc, .cc-s {
  --r: var(--notch);
  -webkit-mask-image:
    radial-gradient(circle at 0 0, transparent var(--r), #000 calc(var(--r) + .6px)),
    radial-gradient(circle at 100% 0, transparent var(--r), #000 calc(var(--r) + .6px)),
    radial-gradient(circle at 0 100%, transparent var(--r), #000 calc(var(--r) + .6px)),
    radial-gradient(circle at 100% 100%, transparent var(--r), #000 calc(var(--r) + .6px));
  -webkit-mask-size: 51% 51%; -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: 0 0, 100% 0, 0 100%, 100% 100%;
  mask-image:
    radial-gradient(circle at 0 0, transparent var(--r), #000 calc(var(--r) + .6px)),
    radial-gradient(circle at 100% 0, transparent var(--r), #000 calc(var(--r) + .6px)),
    radial-gradient(circle at 0 100%, transparent var(--r), #000 calc(var(--r) + .6px)),
    radial-gradient(circle at 100% 100%, transparent var(--r), #000 calc(var(--r) + .6px));
  mask-size: 51% 51%; mask-repeat: no-repeat; mask-position: 0 0, 100% 0, 0 100%, 100% 100%;
}
.cc-s { --r: var(--notch-s); }
.cc-top {
  --r: var(--notch);
  -webkit-mask-image: radial-gradient(circle at 0 0, transparent var(--r), #000 calc(var(--r) + .6px)), radial-gradient(circle at 100% 0, transparent var(--r), #000 calc(var(--r) + .6px)), linear-gradient(#000, #000);
  -webkit-mask-size: 51% 60px, 51% 60px, 100% calc(100% - 59px); -webkit-mask-repeat: no-repeat; -webkit-mask-position: 0 0, 100% 0, 0 100%;
  mask-image: radial-gradient(circle at 0 0, transparent var(--r), #000 calc(var(--r) + .6px)), radial-gradient(circle at 100% 0, transparent var(--r), #000 calc(var(--r) + .6px)), linear-gradient(#000, #000);
  mask-size: 51% 60px, 51% 60px, 100% calc(100% - 59px); mask-repeat: no-repeat; mask-position: 0 0, 100% 0, 0 100%;
}

/* ---------- links: oxblood plus an overline growing from the center ---------- */
.lnk { position: relative; text-decoration: none; display: inline-block; padding-block: 10px; transition: color var(--t-fast) var(--ease-out); }
.lnk::before {
  content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 50% 50%; transition: transform var(--t-fast) var(--ease-out);
}
.lnk:hover, .lnk[aria-current="page"], .lnk[aria-expanded="true"] { color: var(--accent); }
.lnk:hover::before, .lnk[aria-current="page"]::before, .lnk[aria-expanded="true"]::before { transform: scaleX(1); transition: transform 240ms var(--ease-in); }
.on-basalt .lnk:hover, .on-basalt .lnk[aria-current="page"] { color: var(--accent-on-basalt); }
.more { font-style: italic; }
.more::after { content: " \2192"; font-style: normal; }

/* ---------- buttons: concave 9px, outline traces the perimeter on hover ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border: 0; background: none; color: var(--on-primary);
  font: 500 16px/1.2 var(--text); text-decoration: none; text-align: center; isolation: isolate;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); --r: var(--notch-s);
  -webkit-mask-image: radial-gradient(circle at 0 0, transparent var(--r), #000 calc(var(--r) + .6px)), radial-gradient(circle at 100% 0, transparent var(--r), #000 calc(var(--r) + .6px)), radial-gradient(circle at 0 100%, transparent var(--r), #000 calc(var(--r) + .6px)), radial-gradient(circle at 100% 100%, transparent var(--r), #000 calc(var(--r) + .6px));
  -webkit-mask-size: 51% 51%; -webkit-mask-repeat: no-repeat; -webkit-mask-position: 0 0, 100% 0, 0 100%, 100% 100%;
  mask-image: radial-gradient(circle at 0 0, transparent var(--r), #000 calc(var(--r) + .6px)), radial-gradient(circle at 100% 0, transparent var(--r), #000 calc(var(--r) + .6px)), radial-gradient(circle at 0 100%, transparent var(--r), #000 calc(var(--r) + .6px)), radial-gradient(circle at 100% 100%, transparent var(--r), #000 calc(var(--r) + .6px));
  mask-size: 51% 51%; mask-repeat: no-repeat; mask-position: 0 0, 100% 0, 0 100%, 100% 100%;
  transition: background-color var(--t-fast); }
.btn:active::before { background: #3a342e; }
.btn--ghost { color: var(--ink); }
.btn--ghost::before { background: transparent; }
.btn--light { color: var(--ink); }
.btn--light::before { background: var(--on-basalt); }
.btn--light:active::before { background: #d4cdc1; }
.btn__trace { position: absolute; inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); overflow: visible; pointer-events: none; fill: none; }
.btn__trace .t { stroke: var(--on-primary); stroke-width: 1.25; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset var(--t-fast) var(--ease-out); }
.btn__trace .f { stroke: var(--accent); stroke-width: 2; opacity: 0; }
.btn--ghost .btn__trace .t { stroke: var(--ink); }
.btn--ghost .btn__trace .edge { stroke: var(--outline-strong); stroke-width: 1; }
.btn--light .btn__trace .t { stroke: var(--ink); }
.btn--light .btn__trace .f { stroke: var(--accent-on-basalt); }
.btn:hover .btn__trace .t { stroke-dashoffset: 0; transition: stroke-dashoffset 360ms var(--ease-in); }
.btn:focus-visible { outline: none; }
.btn:focus-visible .btn__trace .f { opacity: 1; }
.btn:not(.is-traced):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn[disabled] { opacity: .45; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }

/* ---------- photo in a mat, with museum label ---------- */
.ex { margin: 0; }
.mat { position: relative; display: block; background: var(--mat); padding: var(--matw); }
.mat picture, .mat img { display: block; width: 100%; height: 100%; }
.mat img { object-fit: cover; clip-path: inset(0); transition: clip-path var(--t-fast) var(--ease-out); background: #cfc7b9; }
a:hover .mat img, .mat:hover img { clip-path: inset(10px); transition: clip-path 320ms var(--ease-in); }
.mat--studio img { object-fit: contain; background: transparent; mix-blend-mode: multiply; }
.lbl { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: baseline; margin-top: 14px; }
.lbl__no { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1; color: var(--accent); font-variant-numeric: oldstyle-nums; }
.lbl__name { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.2; }
.lbl__line { grid-column: 2; font-style: italic; font-size: 14px; line-height: 1.4; color: var(--muted); }
.on-basalt .lbl__no { color: var(--accent-on-basalt); }
.on-basalt .lbl__line { color: var(--on-basalt-muted); }

/* card: second label line swaps for "N pieces, price on request" */
.card { display: block; text-decoration: none; color: inherit; }
.card .mat { aspect-ratio: 4 / 3; }
.swap { position: relative; display: grid; overflow: hidden; }
.swap > span { grid-area: 1 / 1; display: block; transition: transform var(--t-fast) var(--ease-out), opacity var(--t-fast) var(--ease-out); }
.swap > span + span { transform: translateY(100%); opacity: 0; color: var(--accent); }
.card:hover .swap > span:first-child, .card:focus-visible .swap > span:first-child { transform: translateY(-100%); opacity: 0; transition-duration: var(--t-mid); transition-timing-function: var(--ease-in); }
.card:hover .swap > span + span, .card:focus-visible .swap > span + span { transform: none; opacity: 1; transition-duration: var(--t-mid); transition-timing-function: var(--ease-in); }
.on-basalt .swap > span + span { color: var(--accent-on-basalt); }
.cards { display: grid; gap: 48px var(--gutter); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------- header: split, centered logo, 104 -> 60 by transform ---------- */
.hd { position: fixed; inset: 0 0 auto; height: var(--head-h); z-index: var(--z-head); pointer-events: none; }
.hd__bg { position: absolute; inset: 0; background: var(--bg); transform-origin: 50% 0; transition: transform var(--t-mid) var(--ease-in); }
.hd__line { position: absolute; left: 0; right: 0; top: calc(var(--head-h) - 1px); height: 1px; background: var(--outline); transition: transform var(--t-mid) var(--ease-in); }
.hd__row { position: relative; height: var(--head-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.hd__row > * { pointer-events: auto; }
.hd__side { display: flex; align-items: center; gap: 30px; transition: transform var(--t-mid) var(--ease-in); }
.hd__side--r { justify-content: flex-end; }
.hd__side .lnk { font-size: 16px; }
.hd__trigger { background: none; border: 0; padding: 10px 0; font-size: 16px; }
.hd__logo { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; transform-origin: 50% 50%; transition: transform var(--t-mid) var(--ease-in); padding: 4px 8px; }
.hd__mark { width: 20px; height: 20px; }
.hd__word { width: 196px; height: auto; aspect-ratio: 227 / 42; }
.hd__word--m { display: none; }
.hd__menu, .hd__quote-m { display: none; }
.hd__menu { grid-column: 1; grid-row: 1; }
.hd__side { grid-column: 1; grid-row: 1; }
.hd__logo { grid-column: 2; grid-row: 1; }
.hd__side--r, .hd__quote-m { grid-column: 3; grid-row: 1; }
@media (min-width: 900px) {
  .hd.is-compact .hd__bg { transform: scaleY(calc(60 / 104)); }
  .hd.is-compact .hd__line { transform: translateY(-44px); }
  .hd.is-compact .hd__side { transform: translateY(-22px); }
  .hd.is-compact .hd__logo { transform: translateY(-22px) scale(.6); }
  .hd.is-compact .mega { top: 60px; }
}
@media (max-width: 899px) {
  .hd__side { display: none; }
  .hd__row { grid-template-columns: 1fr auto 1fr; padding-inline: 8px; }
  .hd__logo { flex-direction: row; gap: 8px; padding: 6px; }
  .hd__mark { width: 16px; height: 16px; }
  .hd__word { width: 132px; }
  .hd__menu, .hd__quote-m { display: inline-flex; align-items: center; min-height: 48px; min-width: 48px; padding: 0 12px; background: none; border: 0; font-size: 16px; text-decoration: none; }
  .hd__menu { justify-self: start; }
  .hd__quote-m { justify-self: end; color: var(--accent); font-weight: 500; }
}
@media (max-width: 359px) { .hd__word { width: 108px; } }

/* mega menu: basalt panel by furniture type */
.mega {
  position: absolute; left: 0; right: 0; top: var(--head-h); pointer-events: auto;
  background: var(--basalt); color: var(--on-basalt);
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out), visibility 0s linear var(--t-fast), top var(--t-mid) var(--ease-in);
}
.mega.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity var(--t-mid) var(--ease-in), transform var(--t-mid) var(--ease-in), visibility 0s, top var(--t-mid) var(--ease-in); }
.mega__in { display: grid; grid-template-columns: 2fr 2fr 1fr 1fr 1.5fr; gap: var(--gutter); padding-block: 36px 36px; }
.mega__in > div:nth-child(-n+2) ul { columns: 2; column-gap: 24px; }
.mega li { break-inside: avoid; }
.mega h2 { font: italic 400 15px/1.4 var(--text); color: var(--on-basalt-muted); margin-bottom: 12px; }
.mega h2 a { color: inherit; text-decoration: none; }
.mega h2 a:hover { color: var(--accent-on-basalt); }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: block; padding: 4px 0; font-size: 17px; font-weight: 500; line-height: 1.3; text-decoration: none; }
.mega li a:hover, .mega li a:focus-visible { color: var(--accent-on-basalt); }
.mega__pic { position: relative; }
.mega__pic .mat { background: #34373a; aspect-ratio: 4 / 3; }
.mega__pic img { position: absolute; inset: var(--matw); width: calc(100% - 2 * var(--matw)); height: calc(100% - 2 * var(--matw)); object-fit: cover; opacity: 0; transition: opacity var(--t-mid) var(--ease-in); }
.mega__pic img.is-on { opacity: 1; }
.mega__foot { grid-column: 1 / -1; display: flex; gap: 30px; border-top: 1px solid var(--outline-basalt); padding-top: 18px; }

/* bottom sheet (mobile menu) */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: calc(var(--z-sheet) - 1); opacity: 0; visibility: hidden; transition: opacity var(--t-fast) var(--ease-out), visibility 0s linear var(--t-fast); }
.scrim.is-open { opacity: 1; visibility: visible; transition: opacity var(--t-mid) var(--ease-in), visibility 0s; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; height: 88vh; height: 88dvh; z-index: var(--z-sheet);
  background: var(--basalt); color: var(--on-basalt); display: flex; flex-direction: column;
  transform: translateY(100%); visibility: hidden;
  transition: transform var(--t-mid) var(--ease-out), visibility 0s linear var(--t-mid);
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet.is-open { transform: translateY(0); visibility: visible; transition: transform var(--t-slow) var(--ease-in), visibility 0s; }
.sheet.is-drag { transition: none; }
.sheet__top { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 20px; min-height: 60px; touch-action: none; position: relative; }
.sheet__handle { position: absolute; left: 50%; top: 8px; width: 44px; height: 4px; margin-left: -22px; background: var(--on-basalt-muted); opacity: .6; }
.sheet__title { font-family: var(--display); font-style: italic; font-size: 22px; }
.sheet__close { min-height: 48px; min-width: 48px; background: none; border: 0; font-size: 16px; color: var(--on-basalt); }
.sheet__body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 32px; }
.az { list-style: none; margin: 0 0 24px; padding: 0; }
.az > li { display: grid; grid-template-columns: 34px 1fr; border-top: 1px solid var(--outline-basalt); padding: 6px 0; }
.az__l { font-family: var(--display); font-style: italic; font-size: 20px; color: var(--accent-on-basalt); padding-top: 8px; }
.az ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; column-gap: 20px; }
.az ul a { display: inline-block; padding: 10px 0; min-height: 44px; font-size: 17px; text-decoration: none; }
.sheet__sections { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.sheet__sections a { display: block; padding: 12px 0; font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.1; text-decoration: none; }
.sheet__contact { font-size: 15px; color: var(--on-basalt-muted); }
.sheet__contact a { color: var(--on-basalt); }
.sheet .h-kicker { font-style: italic; font-size: 14px; color: var(--on-basalt-muted); margin: 18px 0 6px; }
html.is-locked, html.is-locked body { overflow: hidden; }

/* ---------- basalt surfaces ---------- */
.on-basalt { background: var(--basalt); color: var(--on-basalt); }
.on-basalt .muted { color: var(--on-basalt-muted); }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 24px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: 0; padding: 0; }
.crumbs li { padding: 12px 0; }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .6; }
.crumbs a { display: inline-block; padding: 12px 0; margin: -12px 0; text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* ---------- home hero: layered, curtain on scroll ---------- */
.hero { position: relative; padding-top: 28px; }
.hero__title { position: relative; z-index: 2; }
.hero__title .kicker { margin-bottom: 18px; }
.hero__h1 { max-width: none; }
.hero__h1 em { font-style: italic; font-weight: 400; display: block; color: var(--accent); font-size: .62em; line-height: 1.05; margin-top: .12em; padding-left: .06em; letter-spacing: -0.01em; }
.hero__aside { margin-top: 24px; }
.hero__aside p { margin-bottom: 20px; }
@media (min-width: 900px) {
  .hero__title { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gutter); align-items: end; }
  .hero__title > .hero__head { grid-column: 1 / 4; }
  .hero__aside { grid-column: 4 / 6; margin: 0 0 12px; }
}
.hero__stage { position: relative; margin-top: 36px; }
@media (min-width: 900px) { .hero__stage { margin-bottom: 110px; } }
.hero__photo { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #cfc7b9; }
@media (min-width: 600px) { .hero__photo { aspect-ratio: 16 / 9; } }
@media (min-width: 1280px) { .hero__photo { aspect-ratio: 21 / 9; } }
.hero__photo picture, .hero__photo img { width: 100%; height: 100%; }
.hero__photo img { object-fit: cover; transform: scale(1.08); transform-origin: 50% 0; }
.hero__photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, var(--scrim)); pointer-events: none; }
.hero__cap { position: absolute; left: var(--margin); bottom: 20px; z-index: 2; background: var(--mat); padding: 14px 20px 16px; max-width: calc(100% - 2 * var(--margin)); }
.hero__cap .lbl { margin: 0; }
.hero__piece { position: absolute; right: var(--margin); bottom: -150px; width: 34%; max-width: 380px; z-index: 3; display: none; }
@media (min-width: 900px) { .hero__piece { display: block; } .hero__cap { bottom: 28px; } }
.hero__piece .mat { aspect-ratio: 1 / 1; }

/* ---------- collection hero ---------- */
.chero { padding-top: 12px; }
.chero__grid { display: grid; gap: 36px; }
@media (min-width: 900px) {
  .chero__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gutter); align-items: end; }
  .chero__text { grid-column: 1 / 3; padding-bottom: 12px; }
  .chero__pic { grid-column: 3 / 6; }
}
.chero__no { font-family: var(--display); font-weight: 600; font-size: 28px; color: var(--accent); font-variant-numeric: oldstyle-nums; display: block; margin-bottom: 12px; }
.chero h1 { margin-bottom: 24px; }
.chero__intro { margin-bottom: 28px; }
.chero__pic .mat { aspect-ratio: 3 / 2; }
.chero__pic--tall .mat { aspect-ratio: 4 / 5; }
.accent-line { padding-block: calc(var(--section) * .6) 0; }
.accent-line p { max-width: 11.5em; color: var(--accent); }
@media (min-width: 900px) { .accent-line p { margin-left: 40%; } }

/* page head for index, category and prose pages */
.phead { padding-top: 18px; }
.phead__grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .phead__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gutter); align-items: end; } .phead__grid > :first-child { grid-column: 1 / 4; } .phead__grid > :last-child { grid-column: 4 / 6; } }
.phead h1 { max-width: 9.5em; }

/* ---------- diptychs: 3 + 2 columns, sides alternate, name crosses the gutter ---------- */
.dips { display: grid; gap: calc(var(--section) * .7); }
.dip { display: grid; gap: 22px; }
.dip__pic .mat { aspect-ratio: 3 / 2; }
.dip__name { position: relative; z-index: 2; margin-bottom: 10px; }
.dip__name a { text-decoration: none; background: var(--bg); padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.dip__name a:hover { color: var(--accent); }
.dip__text .lbl { margin: 0 0 18px; grid-template-columns: auto 1fr; }
.dip__text p { max-width: 24em; }
@media (min-width: 900px) {
  .dip { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gutter); align-items: center; }
  .dip__pic { grid-column: 1 / 4; grid-row: 1; }
  .dip__text { grid-column: 4 / 6; grid-row: 1; }
  .dip__name { margin-left: calc(-1 * var(--gutter) - 36px); }
  .dip:nth-child(even) .dip__pic { grid-column: 3 / 6; }
  .dip:nth-child(even) .dip__text { grid-column: 1 / 3; }
  .dip:nth-child(even) .dip__name { margin-left: 0; margin-right: calc(-1 * var(--gutter) - 36px); text-align: right; }
}

/* ---------- section heads ---------- */
.shead { display: grid; gap: 14px; margin-bottom: 48px; }
@media (min-width: 900px) { .shead { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gutter); align-items: end; } .shead > :first-child { grid-column: 1 / 4; } .shead > :nth-child(2) { grid-column: 4 / 6; } }

/* ---------- two column text + figure ---------- */
.split { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (max-width: 899px) { .dip, .phead__grid, .shead, .chero__grid, .req__grid, .ft__grid, .dsg__row, .curtain__grid, .hero__title { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
  .split__a { grid-column: 1 / 4; }
  .split__b { grid-column: 4 / 6; }
  .split--flip .split__a { grid-column: 3 / 6; grid-row: 1; }
  .split--flip .split__b { grid-column: 1 / 3; grid-row: 1; }
  .split--even .split__a { grid-column: 1 / 3; }
  .split--even .split__b { grid-column: 3 / 6; }
}
.split__b .mat { aspect-ratio: 4 / 5; }
.split h2 { margin-bottom: 24px; }

/* ---------- tables: no frames, rows ruled, italic heads ---------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-inline: calc(-1 * var(--margin)); padding-inline: var(--margin); }
.tbl { width: 100%; min-width: 560px; font-size: 16px; }
.tbl caption { text-align: left; font-style: italic; font-size: 14px; color: var(--muted); caption-side: bottom; padding-top: 14px; }
.tbl th { font-style: italic; font-weight: 400; font-size: 14px; color: var(--muted); text-align: left; padding: 0 18px 10px 0; border-bottom: 1px solid var(--outline-strong); vertical-align: bottom; }
.tbl td { padding: 14px 18px 14px 0; border-bottom: 1px solid var(--outline); vertical-align: top; }
.tbl td:first-child { font-weight: 500; }
.tbl td.n { font-family: var(--display); font-weight: 600; font-variant-numeric: oldstyle-nums proportional-nums; font-size: 20px; line-height: 1.2; }
.tbl a { color: inherit; text-decoration: none; }
.tbl a:hover { color: var(--accent); }
.tbl .btn { min-height: 44px; padding: 8px 18px; font-size: 15px; }

/* ---------- plan-view infographic ---------- */
.infographic { margin: 0; }
.plan { background: var(--mat); padding: 20px; }
.plan svg { width: 100%; height: auto; max-width: 520px; margin-inline: auto; }
.plan .p-floor { fill: none; stroke: var(--outline-strong); stroke-width: 1; }
.plan .p-piece { fill: var(--bg); stroke: var(--ink); stroke-width: 1.5; }
.plan .p-soft { fill: #e3dccf; stroke: var(--ink); stroke-width: 1; }
.plan .p-stone { fill: #cbc2b3; stroke: var(--ink); stroke-width: 1.5; }
.plan .p-col { fill: var(--ink); }
.plan .p-dim { stroke: var(--accent); stroke-width: 1; fill: none; }
.plan .p-tick { stroke: var(--accent); stroke-width: 1.5; }
.plan .p-dimt { font: italic 400 15px var(--text); fill: var(--accent); }
.plan .p-name { font: 400 14px var(--text); fill: var(--ink); }
.plan .p-note { font: italic 400 13px var(--text); fill: var(--muted); }
.infographic figcaption { font-style: italic; font-size: 14px; color: var(--muted); margin-top: 14px; max-width: 34em; }

/* ---------- gallery ---------- */
.gal { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--margin)); padding: 0 var(--margin) 12px; }
.gal > * { scroll-snap-align: start; }
.gal .mat { aspect-ratio: 4 / 3; }
@media (min-width: 900px) {
  .gal { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 48px var(--gutter); overflow: visible; margin: 0; padding: 0; }
  .gal > :nth-child(4n+1) { grid-column: span 3; }
  .gal > :nth-child(4n+2) { grid-column: span 2; }
  .gal > :nth-child(4n+3) { grid-column: span 2; }
  .gal > :nth-child(4n+4) { grid-column: span 3; }
  .gal > :nth-child(4n+2) .mat, .gal > :nth-child(4n+3) .mat { aspect-ratio: 4 / 5; }
  .gal > :nth-child(4n+1) .mat, .gal > :nth-child(4n+4) .mat { aspect-ratio: 3 / 2; }
}

/* ---------- curtain band (signature motion, mid page) ---------- */
.curtain { position: relative; overflow: hidden; padding-block: calc(var(--section) * .5); }
.curtain__grid { display: grid; gap: 24px; position: relative; }
.curtain__q { position: relative; z-index: 2; }
.curtain__q p { max-width: 10.5em; }
.curtain__q .d-it { font-size: clamp(30px, 3.4vw, 48px); margin-top: 16px; }
.curtain__a .mat { aspect-ratio: 3 / 2; }
.curtain__b { display: none; }
@media (min-width: 900px) {
  .curtain__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gutter); align-items: start; min-height: 560px; }
  .curtain__a { grid-column: 1 / 4; grid-row: 1; margin-top: 60px; }
  .curtain__b { display: block; grid-column: 4 / 6; grid-row: 1; margin-top: 330px; }
  .curtain__b .mat { aspect-ratio: 4 / 5; }
  .curtain__q { grid-column: 3 / 6; grid-row: 1; align-self: start; }
}

/* ---------- designers ---------- */
.dsg { display: grid; gap: 0; }
.dsg__row { display: grid; gap: 22px; padding-block: 40px; border-top: 1px solid var(--outline); }
@media (min-width: 900px) { .dsg__row { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gutter); } .dsg__row > :first-child { grid-column: 1 / 3; } .dsg__row > :last-child { grid-column: 3 / 6; } }
.dsg__cols { display: grid; gap: 28px var(--gutter); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .dsg__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dsg__cols .mat { aspect-ratio: 1 / 1; }
.dsg__cols .lbl__name { font-size: 18px; }
.dlist { list-style: none; margin: 0; padding: 0; }
.dlist li { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--outline); padding: 14px 0; }
.dlist li a { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.15; text-decoration: none; }
.dlist li a:hover { color: var(--accent); }
.dlist li span { font-style: italic; color: var(--muted); font-size: 15px; text-align: right; }

/* ---------- a-z index on the collections page ---------- */
.azrow { display: flex; flex-wrap: wrap; gap: 0 22px; border-block: 1px solid var(--outline); padding: 8px 0; margin-bottom: 64px; }
.azrow a { font-size: 16px; padding: 10px 0; text-decoration: none; }
.azrow a:hover { color: var(--accent); }
.azrow b { font-family: var(--display); font-style: italic; font-weight: 400; color: var(--accent); margin-right: 6px; }

/* ---------- steps as a dimension line ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: s; }
.steps li { position: relative; padding-left: 52px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: -4px; font-family: var(--display); font-weight: 600; font-size: 28px; color: var(--accent); font-variant-numeric: oldstyle-nums; }
.steps b { display: block; font-weight: 500; }

/* ---------- request band and form ---------- */
.req { margin-top: var(--section); padding-block: calc(var(--section) * .7); }
.req__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .req__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gutter); } .req__intro { grid-column: 1 / 3; } .req__form { grid-column: 3 / 6; } }
.req h2 { margin-bottom: 20px; }
.req__after { border-top: 1px solid var(--outline-basalt); margin-top: 28px; padding-top: 20px; font-size: 15px; }
.req__after b { font-weight: 500; display: block; margin-bottom: 6px; color: var(--on-basalt); }
.form { background: var(--mat); color: var(--ink); padding: 28px 20px 30px; }
@media (min-width: 600px) { .form { padding: 40px 40px 42px; } }
@media (max-width: 379px) { .form { padding-inline: 10px; } }
.form__grid { display: grid; gap: 26px 18px; padding-top: 8px; }
@media (min-width: 600px) { .form__grid { grid-template-columns: 1fr 1fr; } .form__grid .wide { grid-column: 1 / -1; } }
.field { position: relative; }
.field__input {
  display: block; width: 100%; min-height: 56px; padding: 15px 16px; border: 0; background: var(--mat);
  font-size: 17px; line-height: 1.4; border-radius: 0; appearance: none; -webkit-appearance: none;
}
.field__input:focus { outline: none; }
textarea.field__input { min-height: 132px; resize: vertical; padding-top: 18px; }
select.field__input { padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%); background-size: 6px 6px; background-position: calc(100% - 22px) 25px, calc(100% - 16px) 25px; background-repeat: no-repeat; }
.field__label { position: absolute; left: 12px; top: 16px; padding: 0 4px; font-size: 17px; line-height: 1.4; background: var(--mat); color: var(--muted); pointer-events: none; transform-origin: 0 0; transition: transform var(--t-fast) var(--ease-out), color var(--t-fast); }
.field__input:focus + .field__label, .field__input:not(:placeholder-shown) + .field__label, select.field__input + .field__label, .field.is-filled .field__label {
  transform: translateY(-27px) scale(.8); color: var(--ink); transition: transform var(--t-mid) var(--ease-in);
}
.field__input:focus + .field__label { color: var(--accent); }
.field__label i { color: var(--accent); font-style: normal; }
.field__frame { position: absolute; left: -5px; top: -5px; width: calc(100% + 10px); height: 66px; pointer-events: none; fill: none; overflow: visible; }
.field__input, .field__label { z-index: 0; }
.field__label { z-index: 2; }
.field__frame .edge { stroke: var(--outline-strong); stroke-width: 1; }
.field__frame .ring { stroke: rgba(110, 42, 37, .28); stroke-width: 3; opacity: 0; }
.field:focus-within .field__frame .edge { stroke: var(--accent); stroke-width: 2; }
.field:focus-within .field__frame .ring { opacity: 1; }
.field.is-bad .field__frame .edge { stroke: var(--error); stroke-width: 2; }
.field__err { display: block; min-height: 0; font-size: 14px; color: var(--error); margin-top: 6px; }
.field__err:empty { display: none; }
.no-js-frame .field__input { box-shadow: inset 0 0 0 1px var(--outline-strong); }
.form__hint { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.ts { height: 65px; width: 300px; max-width: 100%; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 8px; }
.form__status { font-size: 15px; min-height: 1.5em; margin: 14px 0 0; }
.form__status.is-ok { color: #2f4a2b; }
.form__status.is-bad { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer: colophon on basalt ---------- */
.ft { padding-block: 84px 28px; }
.ft__grid { display: grid; gap: 56px; }
@media (min-width: 900px) { .ft__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gutter); } .ft__left { grid-column: 1 / 3; } .ft__index { grid-column: 3 / 6; } }
.ft__mark { width: 28px; height: 28px; margin-bottom: 26px; color: var(--on-basalt); }
.ft__phrase { font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(30px, 3vw, 40px); line-height: 1.12; max-width: 7.5em; margin-bottom: 28px; }
.ft__mail { display: inline-block; margin-top: 22px; padding: 10px 0; color: var(--on-basalt); }
.ft__index h2 { font: italic 400 15px/1.4 var(--text); color: var(--on-basalt-muted); margin-bottom: 14px; }
.ft__cols { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; font-size: 15px; }
@media (min-width: 600px) { .ft__cols { columns: 4; } }
.ft__cols li { break-inside: avoid; }
.ft__cols a { display: inline-block; padding: 6px 0; min-height: 36px; text-decoration: none; color: var(--on-basalt); }
.ft__cols a:hover { color: var(--accent-on-basalt); }
.ft__nav { display: flex; flex-wrap: wrap; gap: 0 26px; margin-top: 32px; font-size: 15px; }
.ft__nav a { color: var(--on-basalt); }
.ft__legal { border-top: 1px solid var(--outline-basalt); margin-top: 56px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; color: var(--on-basalt-muted); }
.ft__legal a { color: var(--on-basalt-muted); padding: 6px 0; display: inline-block; }

/* ---------- stock list ---------- */
.stock .btn { white-space: nowrap; }
.updated { font-style: italic; font-size: 15px; color: var(--muted); }

/* ---------- prose pages ---------- */
.doc { max-width: var(--text-col); }
.doc h2 { font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.15; margin: 48px 0 16px; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 8px; }

/* ---------- motion: initial states exist only when the head script marked the page ---------- */
html.mo:not(.mo-off) [data-enter] { opacity: 0; transform: translateY(14px); }
html.mo:not(.mo-off) [data-reveal] { opacity: 0; transform: translateY(18px); }
html.mo:not(.mo-off) [data-curtain] [data-layer] { opacity: 0; }
html.mo-off [data-enter], html.mo-off [data-reveal], html.mo-off [data-layer] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; scroll-behavior: auto !important; }
  [data-enter], [data-reveal], [data-layer] { opacity: 1 !important; transform: none !important; }
}
.sheet__sections a.sheet__type { font-family: var(--text); font-weight: 500; font-size: 18px; line-height: 1.3; }
