/* ==========================================================================
   Motta Surfaces — site styles
   Palette is named after stones in the Motta catalog.
   ========================================================================== */

:root {
  /* Color */
  --carrara: #F2F2F0;      /* base light surface */
  --honed: #E6E5E1;        /* secondary light surface */
  --concrete: #D8D7D2;     /* tertiary, sink stage */
  --graphite: #25282C;     /* Steel Grey: dark sections and body text */
  --graphite-2: #1E2124;   /* footer */
  --steel: #5F6368;        /* muted text on light */
  --mist: #AEB1B4;         /* muted text on dark */
  --champagne: #E2C38A;    /* logo gold, on dark only */
  --brass: #7D5F30;        /* gold for text on light */
  --white: #FFFFFF;
  --line: rgba(37, 40, 44, 0.16);
  --line-strong: rgba(37, 40, 44, 0.32);
  --line-dark: rgba(242, 242, 240, 0.16);

  /* Type */
  --f-display: "Marcellus", "Optima", "Times New Roman", serif;
  --f-text: "Jost", "Futura", system-ui, sans-serif;

  --t-xs: 0.8125rem;   /* 13 */
  --t-sm: 0.9375rem;   /* 15 */
  --t-md: 1.0625rem;   /* 17 body */
  --t-lg: 1.3125rem;   /* 21 lead */
  --t-xl: clamp(1.5rem, 1.2rem + 0.9vw, 1.875rem);       /* 24–30 */
  --t-2xl: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);         /* 32–52 */
  --t-3xl: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);        /* 40–72 */
  --t-hero: clamp(3.1rem, 1.2rem + 7.4vw, 8.75rem);      /* 50–140 */

  /* Layout */
  --gutter: clamp(20px, 4.4vw, 72px);
  --maxw: 1480px;
  --header-h: 84px;
  --r: 2px;            /* eased edge */
  --seam: 3px;         /* gap between edge-to-edge media */
  --ease: cubic-bezier(0.22, 0.7, 0.12, 1);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 8px); }
body {
  margin: 0;
  background: var(--carrara);
  color: var(--graphite);
  font-family: var(--f-text);
  font-size: var(--t-md);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* Focus: nothing on mouse/touch; a quiet ring only for keyboard users */
html { -webkit-tap-highlight-color: transparent; }
:focus { outline: none; }
:focus-visible { outline: 1.5px solid currentColor; outline-offset: 4px; }
.is-pointer *:focus, .is-pointer *:focus-visible { outline: none !important; box-shadow: none; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--graphite); color: var(--white); border-radius: var(--r); }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* Type primitives ------------------------------------------------------- */
.section-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--t-3xl);
  line-height: 1.04;
  letter-spacing: -0.012em;
  max-width: 16ch;
}
.lead { font-size: var(--t-lg); line-height: 1.55; font-weight: 300; max-width: 38ch; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 28px;
  border: 1px solid transparent; border-radius: var(--r);
  font-family: var(--f-text); font-size: var(--t-sm); font-weight: 500; letter-spacing: 0.02em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--gold { background: var(--champagne); color: var(--graphite); }
.btn--gold:hover { background: #EDD3A3; }
.btn--dark { background: var(--graphite); color: var(--carrara); }
.btn--dark:hover { background: #393D42; }
.btn--ghost { border-color: var(--line-strong); color: var(--graphite); background: transparent; }
.btn--ghost:hover { border-color: var(--graphite); }
.btn--ghost-light { border-color: rgba(255,255,255,.55); color: var(--white); background: rgba(20,22,25,.12); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { border-color: var(--white); background: rgba(20,22,25,.28); }
.btn--wide { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: var(--t-sm); letter-spacing: .02em; text-decoration: none;
  color: var(--graphite); padding-bottom: 4px; border-bottom: 1px solid var(--brass);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.text-link:hover { color: var(--brass); }

.icon-btn {
  width: 46px; height: 46px; display: inline-grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--graphite);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), opacity .2s;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { border-color: var(--graphite); background: rgba(37,40,44,.05); }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  color: var(--white);
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), transform .45s var(--ease);
}
.site-header::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: rgba(255,255,255,.18); transition: background-color .35s; }
.site-header.is-solid { background: rgba(242,242,240,.94); color: var(--graphite); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.site-header.is-solid::after { background: var(--line); }
.site-header__inner { height: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 32px; }

.brand { display: block; flex: none; color: inherit; }
.brand__logo { width: 197px; height: 46px; overflow: visible; }

.nav { margin-inline: auto; }
.nav__list { display: flex; gap: clamp(20px, 2.4vw, 40px); }
.nav__list a { position: relative; text-decoration: none; font-size: var(--t-sm); font-weight: 400; letter-spacing: .03em; padding: 6px 0; }
.nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__list a:hover::after, .nav__list a[aria-current="true"]::after { transform: scaleX(1); }
.nav__mobile-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 22px; flex: none; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: var(--t-sm); font-weight: 500; letter-spacing: .02em; }
.header-phone svg { width: 16px; height: 16px; opacity: .9; }
.btn--header { --h: 44px; padding: 0 20px; background: var(--champagne); color: var(--graphite); }
.btn--header:hover { background: #EDD3A3; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; place-items: center; }
.nav-toggle__bars, .nav-toggle__bars::before { display: block; width: 24px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease); }
.nav-toggle__bars::before { content: ""; position: absolute; top: 7px; }
.nav-toggle__bars { transform: translateY(-3.5px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(-7px) rotate(-90deg); }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--white); background: #1d1f22; overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 2.4s var(--ease), opacity 1.2s var(--ease); }
.hero.is-ready .hero__video { transform: scale(1); }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(22,24,27,.55) 0%, rgba(22,24,27,0) 22%),
    linear-gradient(0deg, rgba(22,24,27,.82) 0%, rgba(22,24,27,.48) 34%, rgba(22,24,27,0) 66%),
    linear-gradient(90deg, rgba(22,24,27,.35) 0%, rgba(22,24,27,0) 60%);
}
.hero__content { padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(40px, 7vh, 88px); }
.hero__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: var(--t-hero); line-height: .96; letter-spacing: -0.02em;
  margin-bottom: clamp(28px, 4vh, 48px);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: block; }
.hero__title .line + .line { padding-left: clamp(0px, 9vw, 160px); }
.hero__kicker { display: block; font-family: var(--f-text); font-size: var(--t-sm); font-weight: 500; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--champagne); text-shadow: 0 1px 2px rgba(22,24,27,.55), 0 0 18px rgba(22,24,27,.6); margin-bottom: clamp(18px, 2.6vh, 30px); }
.hero__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px 64px; border-top: 1px solid rgba(255,255,255,.28); padding-top: 28px; }
.hero__lead { font-size: var(--t-lg); font-weight: 300; line-height: 1.5; max-width: 40ch; color: rgba(255,255,255,.9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Load sequence — runs once */
.js .hero__title .line > span { transform: translateY(105%); }
.js .hero__foot { opacity: 0; transform: translateY(14px); }
.js .hero__kicker { opacity: 0; }
.hero.is-ready .hero__kicker { opacity: 1; transition: opacity .9s var(--ease) .35s; }
.js .site-header { transform: translateY(-100%); }
.hero.is-ready .hero__title .line > span { transform: none; transition: transform 1.25s var(--ease); }
.hero.is-ready .hero__title .line + .line > span { transition-delay: .12s; }
.hero.is-ready .hero__foot { opacity: 1; transform: none; transition: opacity .9s var(--ease) .55s, transform .9s var(--ease) .55s; }
.js body.is-loaded .site-header { transform: none; }
/* failsafe: if the script never runs, reveal everything after 3s */
.js .hero__title .line > span, .js .hero__kicker, .js .hero__foot, .js .site-header { animation: revealFallback .6s var(--ease) 3s forwards; }
.hero.is-ready .hero__title .line > span, .hero.is-ready .hero__kicker, .hero.is-ready .hero__foot, .js body.is-loaded .site-header { animation: none; }
@keyframes revealFallback { to { transform: none; opacity: 1; } }

/* Intro ------------------------------------------------------------------ */
.intro { padding-block: clamp(80px, 11vw, 160px); }
.intro__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(48px, 6vw, 88px); }
.intro__title { grid-column: 1 / span 10; font-family: var(--f-display); font-weight: 400; font-size: var(--t-3xl); line-height: 1.06; letter-spacing: -0.012em; max-width: 20ch; }
.intro__media { grid-column: 1 / span 6; margin-left: calc(var(--gutter) * -1); }
.intro__media img { width: 100%; height: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; }
.intro__body { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 44px; }
.promises { border-top: 1px solid var(--line); }
.promise { padding: 22px 0 24px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.promise dt { font-family: var(--f-display); font-size: var(--t-xl); line-height: 1.2; }
.promise dd { color: var(--steel); max-width: 44ch; }

/* Surfaces --------------------------------------------------------------- */
.surfaces { background: var(--honed); padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(72px, 9vw, 120px); }
.surfaces__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 48px; margin-bottom: clamp(40px, 5vw, 64px); }
.material-tabs { display: flex; flex-wrap: wrap; gap: 4px 36px; border-bottom: 1px solid var(--line); }
.material-tab {
  position: relative; border: 0; background: none; padding: 10px 0 16px; margin-bottom: -1px;
  font-family: var(--f-display); font-size: var(--t-xl); line-height: 1.2; color: var(--steel);
  transition: color .25s var(--ease);
}
.material-tab__count { font-family: var(--f-text); font-size: var(--t-xs); font-weight: 500; vertical-align: super; margin-left: 2px; letter-spacing: .02em; }
.material-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--graphite); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.material-tab:hover { color: var(--graphite); }
.material-tab[aria-selected="true"] { color: var(--graphite); }
.material-tab[aria-selected="true"]::after { transform: scaleX(1); }

.material-panel__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: end; }
.material-panel__media { grid-column: 1 / span 6; position: relative; }
.material-panel__media img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: var(--r); }
.material-panel__media figcaption { margin-top: 12px; font-size: var(--t-xs); color: var(--steel); letter-spacing: .01em; }
.material-panel__body { grid-column: 8 / span 5; padding-bottom: 36px; display: flex; flex-direction: column; gap: 36px; align-items: flex-start; }
.material-panel__lead { font-size: var(--t-lg); font-weight: 300; line-height: 1.55; max-width: 36ch; }
.specs { width: 100%; border-top: 1px solid var(--line-strong); }
.specs > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: var(--t-sm); font-weight: 500; letter-spacing: .02em; }
.specs dd { font-size: var(--t-sm); color: var(--steel); }
.material-panel.is-entering .material-panel__media img { animation: panelIn .7s var(--ease) both; }
.material-panel.is-entering .material-panel__body { animation: panelIn .7s var(--ease) .06s both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Slab rail — the slab yard */
.rail { margin-top: clamp(72px, 9vw, 120px); }
.rail__head { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.rail__title { font-size: var(--t-md); color: var(--steel); max-width: 52ch; }
.rail__title span { color: var(--graphite); font-weight: 500; }
.rail__controls { display: flex; gap: 10px; flex: none; }
.rail__track {
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: none;
  padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  cursor: grab;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail__track:focus-visible { outline-offset: -2px; }
/* One continuous rack: every stone, grouped in aisles, so it never has gaps */
.rack {
  --slab-w: clamp(150px, 14.6vw, 232px); --slab-h: calc(var(--slab-w) * 1.6); --label-h: 44px;
  display: flex; gap: 0; width: max-content; position: relative;
}
/* the steel A-frame base the slabs stand on */
.rack::after {
  content: ""; position: absolute; left: -12px; right: -12px; top: calc(var(--label-h) + 14px + var(--slab-h));
  height: 8px; background: var(--graphite); border-radius: 1px;
  box-shadow: 0 10px 18px -10px rgba(0,0,0,.45);
}
.aisle { position: relative; padding-right: 44px; scroll-margin-inline-start: 0; }
.aisle:last-child { padding-right: 0; }
.aisle + .aisle { padding-left: 44px; }
.aisle + .aisle::before { /* upright post between aisles */
  content: ""; position: absolute; left: 0; top: var(--label-h); width: 1px; height: calc(14px + var(--slab-h));
  background: var(--line-strong);
}
.aisle__label {
  height: var(--label-h); display: flex; align-items: flex-start; gap: 6px;
  font-family: var(--f-display); font-size: var(--t-xl); line-height: 1.1; color: var(--graphite);
}
.aisle__label span { font-family: var(--f-text); font-size: var(--t-xs); font-weight: 500; color: var(--steel); }
.aisle__slabs { display: flex; gap: 12px; padding-top: 14px; }
.slab { scroll-snap-align: start; flex: none; width: var(--slab-w); }
.slab__btn { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; }
.slab__face {
  position: relative; display: block; width: 100%; height: var(--slab-h); overflow: hidden;
  border-radius: var(--r) var(--r) 0 0; background: var(--concrete);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
  transform-origin: 50% 100%;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.slab__face img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; user-select: none; }
.slab__face::after { /* polish sheen */
  content: ""; position: absolute; inset: -20% -60%;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.38) 50%, transparent 58%);
  transform: translateX(-60%); opacity: 0; transition: transform .9s var(--ease), opacity .3s;
}
.slab__btn:hover .slab__face, .slab__btn:focus-visible .slab__face { transform: translateY(-8px); box-shadow: 0 18px 28px -18px rgba(0,0,0,.5); }
.slab__btn:hover .slab__face::after, .slab__btn:focus-visible .slab__face::after { transform: translateX(60%); opacity: 1; }
.slab__name { display: block; margin-top: 26px; font-family: var(--f-display); font-size: 1.125rem; line-height: 1.25; }
.slab__note { display: block; margin-top: 2px; font-size: var(--t-xs); color: var(--steel); }
.rail__track { padding-bottom: 8px; }

/* Edges */
/* Edges — drawn like a fabricator's detail sheet */
.edges { margin-top: clamp(80px, 10vw, 136px); }
.edges__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); align-items: end; gap: 16px 64px; margin-bottom: clamp(32px, 4vw, 48px); }
.edges__title { font-family: var(--f-display); font-weight: 400; font-size: var(--t-2xl); line-height: 1.05; letter-spacing: -0.01em; }
.edges__head p { color: var(--steel); font-size: var(--t-md); }
.edges__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.edge { padding: clamp(24px, 2.6vw, 40px) clamp(16px, 1.8vw, 28px) clamp(28px, 3vw, 40px); display: flex; flex-direction: column; }
.edge + .edge { border-left: 1px solid var(--line); }
.edge__art { width: 100%; height: auto; aspect-ratio: 268 / 160; margin-bottom: 22px; overflow: visible; }
.edge__line { fill: none; stroke: var(--graphite); stroke-width: 1.5; stroke-linejoin: round; }
.edge__seam { fill: none; stroke: var(--graphite); stroke-width: 1; stroke-dasharray: 3 3; opacity: .7; }
.edge__dim path { fill: none; stroke: var(--steel); stroke-width: 1; }
.edge__dim text { font-family: var(--f-text); font-size: 11px; font-weight: 500; letter-spacing: .02em; fill: var(--steel); dominant-baseline: middle; }
.edge h4 { font-family: var(--f-display); font-weight: 400; font-size: var(--t-xl); line-height: 1.2; margin: 0 0 8px; }
.edge p { font-size: var(--t-sm); color: var(--steel); max-width: 28ch; }

/* Sinks ------------------------------------------------------------------ */
.sinks { background: var(--carrara); padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(64px, 8vw, 104px); }
.sinks__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px 48px; margin-bottom: clamp(36px, 4vw, 56px); }
.sinks__lead { margin-top: 20px; color: var(--steel); max-width: 54ch; }
.filter { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line-strong); border-radius: var(--r); padding: 4px; gap: 4px; }
.filter__btn { border: 0; background: none; padding: 10px 16px; border-radius: 1px; font-size: var(--t-sm); letter-spacing: .02em; color: var(--steel); transition: background-color .2s var(--ease), color .2s var(--ease); }
.filter__btn:hover { color: var(--graphite); }
.filter__btn[aria-pressed="true"] { background: var(--graphite); color: var(--carrara); }

/* A continuous spec sheet: cells share hairlines, no floating cards */
.sink-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding-inline: 0; max-width: calc(var(--maxw) - var(--gutter) * 2); width: calc(100% - var(--gutter) * 2); }
.sink { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 28px 30px; display: flex; flex-direction: column; gap: 18px; background: var(--carrara); transition: background-color .3s var(--ease); }
.sink:hover { background: #F7F7F5; }
.sink__media { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; }
.sink__media::before { content: ""; position: absolute; left: 12%; right: 12%; bottom: 4%; height: 18%; background: radial-gradient(closest-side, rgba(0,0,0,.18), transparent); filter: blur(6px); }
.sink__media img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.sink__text h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.3125rem; line-height: 1.2; }
.sink__meta { font-size: var(--t-xs); font-weight: 500; letter-spacing: .02em; color: var(--brass); margin: 4px 0 8px; }
.sink__text p:last-child { font-size: var(--t-sm); color: var(--steel); }
.sink.is-out { display: none; }
.sinks__note { margin-top: 28px; color: var(--steel); font-size: var(--t-sm); }

/* Craft ------------------------------------------------------------------ */
.craft { position: relative; min-height: min(86vh, 860px); display: flex; align-items: flex-end; color: var(--white); background: #2a2d31; overflow: hidden; isolation: isolate; }
.craft__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.craft__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(22,24,27,.78) 0%, rgba(22,24,27,.25) 45%, rgba(22,24,27,0) 70%), linear-gradient(90deg, rgba(22,24,27,.5), rgba(22,24,27,0) 60%); }
.craft__content { padding-block: clamp(56px, 8vw, 112px); }
.craft__title { font-family: var(--f-display); font-weight: 400; font-size: var(--t-3xl); line-height: 1.04; letter-spacing: -0.012em; max-width: 14ch; margin-bottom: 20px; }
.craft__content p { max-width: 46ch; font-size: var(--t-lg); font-weight: 300; color: rgba(255,255,255,.88); }

/* Process — measured like a template ------------------------------------- */
.process { background: var(--graphite); color: var(--carrara); padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(80px, 10vw, 140px); }
.process__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); align-items: end; gap: 24px 64px; margin-bottom: clamp(48px, 6vw, 80px); }
.process__head p { color: var(--mist); }
/* Five steps in a row: small photos with breathing room, one continuous ruler */
.steps { --step-gap: clamp(20px, 2.4vw, 40px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--step-gap); }
.step { min-width: 0; }
.step__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: #33373c; }
.step__media img, .step__media video { width: 100%; height: 100%; object-fit: cover; }
/* ruler segment runs through the gap so the five read as one tape */
.step__mark {
  position: relative; height: 16px; margin: 28px calc(var(--step-gap) * -1) 18px 0;
  border-top: 1px solid rgba(242,242,240,.55);
  background:
    repeating-linear-gradient(90deg, rgba(242,242,240,.3) 0 1px, transparent 1px 12px) top left / 100% 7px no-repeat,
    repeating-linear-gradient(90deg, rgba(242,242,240,.55) 0 1px, transparent 1px 60px) top left / 100% 14px no-repeat;
}
.step:last-child .step__mark { margin-right: 0; }
.step__mark::before { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--champagne); }
.step__time { display: block; font-size: var(--t-xs); font-weight: 500; letter-spacing: .03em; color: var(--champagne); margin-bottom: 12px; }
.step__num { display: block; font-size: var(--t-xs); font-weight: 500; letter-spacing: .08em; color: var(--mist); margin-bottom: 4px; }
.step h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--t-xl); line-height: 1.15; margin-bottom: 8px; }
.step p { font-size: var(--t-sm); color: var(--mist); max-width: 30ch; }

/* Shown only where a row becomes swipeable */
.swipe-hint { display: none; align-items: center; gap: 8px; font-size: var(--t-xs); font-weight: 500; letter-spacing: .02em; color: var(--steel); margin-bottom: 18px; }
.swipe-hint svg { width: 16px; height: 16px; }
.process .swipe-hint { color: var(--mist); }

/* Recent work: real job photos and clips --------------------------------- */
.work { background: var(--carrara); padding-top: clamp(80px, 10vw, 140px); }
.work__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); align-items: end; gap: 20px 64px; margin-bottom: clamp(40px, 5vw, 64px); }
.work__head p { color: var(--steel); }
/* One strip, read left to right like a gallery wall: every piece shares one
   height and keeps its own proportions, so nothing is cropped on desktop.
   It starts on the text column and runs off the right edge, like the slab rail. */
.jobs {
  --strip-h: clamp(320px, 34vw, 520px);
  position: relative; display: flex; align-items: flex-start; gap: clamp(14px, 1.4vw, 24px);
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none;
  scroll-snap-type: x proximity;
  padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  cursor: grab;
}
.jobs::-webkit-scrollbar { display: none; }
.jobs.is-dragging { cursor: grabbing; scroll-snap-type: none; -webkit-user-select: none; user-select: none; }
.jobs:focus-visible { outline-offset: -2px; }
.job { flex: none; width: min-content; margin: 0; scroll-snap-align: start; }
.job__media { position: relative; height: var(--strip-h); aspect-ratio: var(--ar); overflow: hidden; border-radius: var(--r); background: var(--concrete); }
.job__media img, .job__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); -webkit-user-drag: none; }
.job__media:hover img, .job__media:hover video { transform: scale(1.025); }
/* museum-label captions under each piece */
.job figcaption { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding: 16px 4px 0 0; }
.job__num { grid-row: span 2; padding-top: 2px; font-size: var(--t-xs); font-weight: 500; letter-spacing: .08em; color: var(--brass); font-variant-numeric: tabular-nums; }
.job__title { font-size: var(--t-sm); font-weight: 500; line-height: 1.35; color: var(--graphite); }
.job__meta { font-size: var(--t-xs); line-height: 1.4; color: var(--steel); }

/* the strip ends on Instagram */
.jobs__ig {
  flex: none; height: var(--strip-h); aspect-ratio: 0.78; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: clamp(24px, 2.4vw, 40px);
  border-radius: var(--r); background: var(--graphite); color: var(--carrara); text-decoration: none;
  transition: background-color .3s var(--ease);
}
.jobs__ig:hover { background: #30343A; }
.jobs__ig svg { width: 34px; height: 34px; color: var(--champagne); margin-bottom: auto; }
.ig__lead { color: var(--mist); font-size: var(--t-sm); max-width: 24ch; }
.ig__handle { font-family: var(--f-display); font-size: var(--t-xl); line-height: 1.1; overflow-wrap: anywhere; }
.ig__cta { align-self: flex-start; margin-top: 6px; padding-bottom: 3px; font-size: var(--t-sm); font-weight: 500; letter-spacing: .02em; color: var(--champagne); border-bottom: 1px solid currentColor; }

/* counter, progress line and arrows */
.jobs__bar { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); margin-top: clamp(28px, 3.4vw, 44px); }
.jobs__count { flex: none; min-width: 4.6em; font-size: var(--t-xs); font-weight: 500; letter-spacing: .08em; color: var(--steel); font-variant-numeric: tabular-nums; }
.jobs__count b { font-weight: 500; color: var(--graphite); }
.jobs__progress { position: relative; flex: 1; height: 1px; background: var(--line-strong); }
.jobs__progress span { position: absolute; top: -1px; left: 0; width: 20%; height: 3px; background: var(--graphite); border-radius: 2px; }
.jobs__controls { display: flex; gap: 10px; flex: none; }

/* FAQ -------------------------------------------------------------------- */
.faq { padding-block: clamp(80px, 10vw, 140px); }
.faq__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 48px; }
.faq__aside { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 48px; }
.area h3 { font-size: var(--t-sm); font-weight: 500; letter-spacing: .02em; margin-bottom: 10px; }
.area p { color: var(--steel); font-size: var(--t-sm); max-width: 40ch; }
.area p + p { margin-top: 12px; }
.area a { color: var(--graphite); font-weight: 500; text-underline-offset: 3px; text-decoration-color: var(--brass); }
.faq__list { grid-column: 6 / span 7; border-top: 1px solid var(--line-strong); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-family: var(--f-display); font-size: var(--t-xl); line-height: 1.25;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  transition: transform .3s var(--ease);
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { padding: 0 0 26px; color: var(--steel); max-width: 60ch; }
.faq__list summary:hover { color: var(--brass); }

/* Estimate --------------------------------------------------------------- */
.estimate { background: var(--graphite); color: var(--carrara); padding-block: clamp(80px, 10vw, 140px); }
.estimate__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 56px; }
.estimate__aside { grid-column: 1 / span 5; }
.estimate__title { font-family: var(--f-display); font-weight: 400; font-size: var(--t-3xl); line-height: 1.04; letter-spacing: -0.012em; max-width: 11ch; margin-bottom: 24px; }
.estimate__aside > p { color: var(--mist); max-width: 40ch; }
.contact-list { margin-top: 48px; border-top: 1px solid var(--line-dark); }
.contact-list li { display: grid; grid-template-columns: 8rem 1fr; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.contact-list span { font-size: var(--t-xs); color: var(--mist); letter-spacing: .02em; }
.contact-list a { font-family: var(--f-display); font-size: var(--t-xl); text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--champagne); }

.quote-form { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 28px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: var(--t-xs); font-weight: 500; letter-spacing: .03em; color: var(--mist); padding: 0; }
.optional { font-weight: 400; opacity: .75; margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; color: var(--carrara);
  border: 0; border-bottom: 1px solid rgba(242,242,240,.32); border-radius: 0;
  padding: 10px 0 12px; font-size: var(--t-md); outline: none;
  transition: border-color .2s var(--ease);
}
.field select { appearance: none; -webkit-appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23AEB1B4' stroke-width='1.5'/%3E%3C/svg%3E") right 2px center / 18px no-repeat; padding-right: 28px; }
.field select option { color: var(--graphite); }
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: rgba(174,177,180,.7); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--champagne); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; box-shadow: 0 1px 0 0 var(--champagne); }
.field__error { display: none; font-size: var(--t-xs); color: #F2B8A0; }
.field.has-error input { border-bottom-color: #F2B8A0; }
.field.has-error .field__error { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 16px; border: 1px solid rgba(242,242,240,.32); border-radius: 999px; font-size: var(--t-sm); transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.chip input:hover + span { border-color: var(--carrara); }
.chip input:checked + span { background: var(--champagne); border-color: var(--champagne); color: var(--graphite); }
html:not(.is-pointer) .chip input:focus-visible + span { outline: 1.5px solid var(--champagne); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: grid; gap: 14px; margin-top: 8px; }
.form-note { font-size: var(--t-xs); color: var(--mist); max-width: 60ch; }
.form-status { font-size: var(--t-sm); color: var(--champagne); min-height: 1.5em; }
.form-status.is-error { color: #F2B8A0; }
.quote-form.is-sent .form-foot button { opacity: .6; pointer-events: none; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--graphite-2); color: var(--carrara); padding-top: clamp(64px, 8vw, 112px); }
.footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 48px; padding-bottom: 64px; border-bottom: 1px solid var(--line-dark); }
.footer__brand { grid-column: 1 / span 5; }
.footer__brand img { width: 220px; height: auto; margin-left: -6px; }
.footer__brand p { margin-top: 20px; font-family: var(--f-display); font-size: var(--t-xl); color: var(--champagne); }
.footer__nav { grid-column: 7 / span 3; display: flex; flex-direction: column; gap: 10px; }
.footer__contact { grid-column: 10 / span 3; display: flex; flex-direction: column; gap: 10px; }
.footer__nav a, .footer__contact a { text-decoration: none; color: var(--carrara); font-size: var(--t-sm); width: fit-content; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--champagne); }
.footer__contact span { color: var(--mist); font-size: var(--t-sm); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px 36px; font-size: var(--t-xs); color: var(--mist); }

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

/* Slab dialog ------------------------------------------------------------ */
.slab-dialog { width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--r); background: var(--carrara); color: var(--graphite); box-shadow: 0 40px 80px -30px rgba(0,0,0,.55); }
.slab-dialog::backdrop { background: rgba(22,24,27,.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.slab-dialog[open] { animation: dialogIn .45s var(--ease); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
.slab-dialog__inner { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: min(640px, calc(100vh - 32px)); }
.slab-dialog__media { background: var(--concrete); }
.slab-dialog__media img { width: 100%; height: 100%; object-fit: cover; max-height: calc(100vh - 32px); }
.slab-dialog__body { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; }
.slab-dialog__kind { font-size: var(--t-sm); color: var(--brass); font-weight: 500; letter-spacing: .02em; }
.slab-dialog__title { font-family: var(--f-display); font-weight: 400; font-size: var(--t-2xl); line-height: 1.05; }
.slab-dialog__note { color: var(--steel); }
.slab-dialog__note:empty { display: none; }
.slab-dialog__disclaimer { font-size: var(--t-sm); color: var(--steel); max-width: 40ch; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.slab-dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.slab-dialog__x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(242,242,240,.9); display: grid; place-items: center; color: var(--graphite); }
.slab-dialog__x svg { width: 20px; height: 20px; }

/* Photo viewer ----------------------------------------------------------- */
/* every photo gets a full-size, transparent button on top of it */
.intro__media, .step__media { position: relative; }
.zoom {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%;
  margin: 0; padding: 0; border: 0; border-radius: inherit; background: transparent;
  color: var(--graphite); cursor: zoom-in; -webkit-appearance: none; appearance: none;
}
.zoom__icon {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(242,242,240,.94); color: var(--graphite);
  box-shadow: 0 8px 20px -10px rgba(0,0,0,.5);
  opacity: 0; transform: scale(.8); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.zoom__icon svg { width: 16px; height: 16px; }
.zoom:hover .zoom__icon, .zoom:focus-visible .zoom__icon { opacity: 1; transform: none; }
.zoom:focus-visible { outline: 2px solid var(--carrara); outline-offset: -8px; }
.sink .zoom:focus-visible { outline-color: var(--graphite); }
@media (hover: none) {
  .zoom__icon { opacity: .9; transform: none; width: 32px; height: 32px; top: 10px; right: 10px; }
  .zoom__icon svg { width: 14px; height: 14px; }
  .sink .zoom__icon { display: none; }
}

.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; overflow: hidden;
  background: #141619; color: var(--carrara);
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
}
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: #141619; }
.lightbox[open] { animation: lbIn .35s var(--ease); }
.lightbox.is-closing { animation: lbOut .2s var(--ease) forwards; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbOut { to { opacity: 0; } }
html.lb-open { overflow: hidden; }

.lightbox__stage { position: relative; min-height: 0; }
.lightbox__frame {
  position: absolute; inset: 76px clamp(96px, 8vw, 132px) 4px;
  display: flex; align-items: center; justify-content: center;
  touch-action: pan-y pinch-zoom;
}
.lightbox__media {
  flex: none; display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  border-radius: var(--r); box-shadow: 0 40px 90px -40px rgba(0,0,0,.75);
  -webkit-user-select: none; user-select: none; -webkit-user-drag: none;
  animation: lbMedia .55s var(--ease) both;
}
@keyframes lbMedia { from { opacity: 0; transform: translateX(calc(var(--lb-dir, 0) * 28px)) scale(.985); } to { opacity: 1; transform: none; } }

.lightbox__bar {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: 28px;
  padding: 22px clamp(96px, 8vw, 132px) calc(30px + env(safe-area-inset-bottom));
}
.lightbox__count { font-size: var(--t-xs); font-weight: 500; letter-spacing: .08em; color: var(--mist); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lightbox__count b { font-weight: 500; color: var(--champagne); }
.lightbox__caption { font-size: var(--t-sm); color: var(--mist); max-width: 76ch; }
.lightbox__caption strong { font-weight: 500; color: var(--carrara); margin-right: .7em; }
.lightbox__nav {
  position: absolute; top: calc(50% - 26px); width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(242,242,240,.26); background: transparent; color: var(--carrara);
  display: grid; place-items: center;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.lightbox__nav:hover { background: var(--carrara); border-color: var(--carrara); color: var(--graphite); }
.lightbox__nav svg { width: 20px; height: 20px; }
.lightbox__nav--prev { left: clamp(24px, 2.6vw, 44px); }
.lightbox__nav--next { right: clamp(24px, 2.6vw, 44px); }
.lightbox__x {
  position: absolute; top: 16px; right: clamp(16px, 2vw, 32px); width: 48px; height: 48px;
  border: 0; border-radius: 50%; background: transparent; color: var(--carrara);
  display: grid; place-items: center; transition: background-color .25s var(--ease);
}
.lightbox__x:hover { background: rgba(242,242,240,.1); }
.lightbox__x svg { width: 22px; height: 22px; }
.lightbox.is-single .lightbox__nav, .lightbox.is-single .lightbox__count { display: none; }

/* sinks are product cutouts: show them on a light stage */
.lightbox.is-light, .lightbox.is-light::backdrop { background: var(--carrara); }
.lightbox.is-light { color: var(--graphite); }
.lightbox.is-light .lightbox__media { box-shadow: none; }
.lightbox.is-light .lightbox__count { color: var(--steel); }
.lightbox.is-light .lightbox__count b { color: var(--brass); }
.lightbox.is-light .lightbox__caption { color: var(--steel); }
.lightbox.is-light .lightbox__caption strong { color: var(--graphite); }
.lightbox.is-light .lightbox__nav { border-color: rgba(37,40,44,.2); color: var(--graphite); }
.lightbox.is-light .lightbox__nav:hover { background: var(--graphite); border-color: var(--graphite); color: var(--carrara); }
.lightbox.is-light .lightbox__x { color: var(--graphite); }
.lightbox.is-light .lightbox__x:hover { background: rgba(37,40,44,.07); }

@media (max-width: 760px) {
  .lightbox__frame { inset: 64px 0 0; }
  .lightbox__media { border-radius: 0; box-shadow: none; }
  .lightbox.is-light .lightbox__frame { inset: 64px var(--gutter) 0; }
  .lightbox__bar {
    grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "count prev next" "cap cap cap";
    align-items: center; column-gap: 8px; row-gap: 12px;
    padding: 16px var(--gutter) calc(22px + env(safe-area-inset-bottom));
  }
  .lightbox__count { grid-area: count; }
  .lightbox__caption { grid-area: cap; }
  .lightbox__nav { position: static; width: 44px; height: 44px; }
  .lightbox__nav--prev { grid-area: prev; }
  .lightbox__nav--next { grid-area: next; }
  .lightbox__nav svg { width: 18px; height: 18px; }
  .lightbox__x { top: 8px; right: 8px; }
  .lightbox.is-single .lightbox__bar { grid-template-areas: "cap"; grid-template-columns: 1fr; }
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1180px) {
  .header-phone span { display: none; }
  .nav__list { gap: 24px; }
  .sink-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .edge h4 { font-size: 1.25rem; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .brand__logo { width: 168px; height: 40px; }
  .nav-toggle { display: inline-grid; margin-right: -10px; }
  .header-phone { display: none; }
  .header-actions { margin-left: auto; gap: 14px; }
  /* no backdrop-filter on phones: it turns the header into the containing block of the fixed menu */
  .site-header.is-solid, .site-header.menu-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--carrara); }
  .nav {
    /* explicit top + height so the panel is full-screen whatever its containing block */
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: auto;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    overflow-y: auto; overscroll-behavior: contain; z-index: 60;
    margin: 0; padding: 32px var(--gutter) calc(40px + env(safe-area-inset-bottom));
    background: var(--carrara); color: var(--graphite);
    display: flex; flex-direction: column; justify-content: space-between;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .nav__list { flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
  .nav__list a { display: block; padding: 18px 0; font-family: var(--f-display); font-size: 1.75rem; border-bottom: 1px solid var(--line); }
  .nav__list a::after { display: none; }
  .nav__mobile-extra { display: grid; gap: 18px; }
  .nav__phone-lg { font-family: var(--f-display); font-size: 1.5rem; text-decoration: none; text-align: center; }
  .site-header.menu-open { background: var(--carrara); color: var(--graphite); }
  .site-header.menu-open .btn--header { display: none; }

  .hero__foot { grid-template-columns: 1fr; }
  .intro__title { grid-column: 1 / -1; }
  .intro__media { grid-column: 1 / -1; margin-inline: calc(var(--gutter) * -1); }
  .intro__body { grid-column: 1 / -1; }

  /* Edges: same detail sheet as desktop, swiped sideways */
  .edges__head { grid-template-columns: 1fr; }
  .edges__list {
    --edge-pad: 20px;
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(72vw, 300px);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: calc(var(--gutter) - var(--edge-pad));
    scroll-padding-inline: calc(var(--gutter) - var(--edge-pad));
  }
  .edges__list::-webkit-scrollbar { display: none; }
  .edges .swipe-hint { display: flex; }
  .edge { scroll-snap-align: start; padding: 26px var(--edge-pad) 28px; }
  .edge__art { margin-bottom: 18px; }

  .material-panel__media { grid-column: 1 / -1; }
  .material-panel__media img { aspect-ratio: 4 / 3.6; }
  .material-panel__body { grid-column: 1 / -1; padding: 32px 0 0; }

  .sinks__head { grid-template-columns: 1fr; }
  .sink-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .process__head, .work__head { grid-template-columns: 1fr; }
  /* Process: the five steps and their ruler, swiped sideways */
  .steps {
    --step-gap: 22px;
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(76vw, 340px);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    scroll-padding-inline: var(--gutter); padding-bottom: 4px;
  }
  .steps::-webkit-scrollbar { display: none; }
  .step { scroll-snap-align: start; }
  .step__mark { margin-top: 24px; margin-bottom: 16px; }
  .swipe-hint { display: flex; }

  /* Recent work: swiped by touch; wide shots are cropped to the card, a tap opens them whole */
  .jobs { --strip-h: min(420px, 56vh); gap: 10px; scroll-snap-type: x mandatory; cursor: auto; }
  .job__media { max-width: 86vw; }
  .job__media:hover img, .job__media:hover video { transform: none; }
  .jobs__controls { display: none; }

  .faq__aside, .faq__list { grid-column: 1 / -1; }
  .estimate__aside, .quote-form { grid-column: 1 / -1; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__nav { grid-column: 1 / span 6; }
  .footer__contact { grid-column: 7 / span 6; }

  .slab-dialog__inner { grid-template-columns: 1fr; }
  .slab-dialog__media img { max-height: 46vh; }
}

@media (max-width: 640px) {
  :root { --t-md: 1rem; --seam: 2px; }
  .btn { --h: 52px; padding: 0 22px; }
  .btn--header { display: none; }
  .hero__title .line + .line { padding-left: 0; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__content { padding-bottom: 104px; }
  .hero__shade { background: linear-gradient(0deg, rgba(22,24,27,.9) 0%, rgba(22,24,27,.66) 48%, rgba(22,24,27,.18) 78%, rgba(22,24,27,.42) 100%); }
  .surfaces__head { flex-direction: column; align-items: flex-start; }
  .material-tabs { flex-wrap: nowrap; gap: 20px; width: 100%; }
  .material-tab { font-size: 1.125rem; white-space: nowrap; }
  .material-tab__count { display: none; }
  .specs > div { grid-template-columns: 6rem 1fr; }
  .rail__head { align-items: flex-end; }
  .rail__controls { display: none; }
  .sink-grid { grid-template-columns: 1fr 1fr; }
  .sink { padding: 18px 14px 22px; gap: 12px; }
  .sink__text h3 { font-size: 1rem; line-height: 1.25; }
  .faq__list summary { font-size: 1.25rem; padding: 20px 0; }
  .sink__meta { font-size: 0.75rem; font-weight: 400; line-height: 1.45; margin-top: 6px; }
  .sink__text p:last-child { display: none; }
  .filter { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .filter::-webkit-scrollbar { display: none; }
  .filter__btn { flex: none; padding: 10px 12px; white-space: nowrap; }
  .field-row { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .footer__nav, .footer__contact { grid-column: 1 / -1; }
  .footer__base { padding-bottom: calc(36px + 64px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 1px;
    padding-bottom: env(safe-area-inset-bottom); background: var(--graphite);
    transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; text-decoration: none; font-weight: 500; letter-spacing: .02em; }
  .mobile-bar__call { color: var(--carrara); }
  .mobile-bar__call svg { width: 18px; height: 18px; }
  .mobile-bar__cta { background: var(--champagne); color: var(--graphite); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .hero__title .line > span, .js .hero__foot, .js .site-header { transform: none; opacity: 1; }
}

@media (max-width: 600px) { .hero__kicker-sep { display: none; } .hero__kicker-rest { display: block; margin-top: .35em; } }
