/* Stamp: custom theme "Open-air stone" (Tokito-style sky, meadow and wide light type in ember red); genre atmospheric-editorial; shape photographic hero + workbench configurator + horizontal catalogue. Self-critique: many moving parts, so one signature (slab configurator) and one opening (logo cut) carry the page; everything else stays calm. */

:root {
  /* colour */
  --sky-hi: #8FA9CB;
  --sky-mid: #B9CBDF;
  --sky-lo: #E3EAF1;
  --mist: #EEF1F3;
  --paper: #F7F8F6;
  --ink: #1E2226;
  --ink-2: #4B535B;
  --line: rgba(30, 34, 38, .14);
  --line-light: rgba(238, 241, 243, .18);
  --ember: #D8452C;
  --ember-ink: #B33420;
  --ember-base: #8F2716;
  --moss: #3D6A2C;
  --moss-deep: #22391A;
  --stone: #CDBFA6;
  --gold: #B8955A;
  --white: #FFFFFF;
  --black: #000000;
  --ink-3: #6B747C;
  --ash: #9AA3AB;
  --slate: #2A2F34;
  --slate-hi: #3A434C;
  --slate-deep: #22282D;
  --meadow: #9DB57E;
  --meadow-hi: #7C9B5C;
  --haze-green: #DDE4D2;
  --grout: #CFC8BC;
  --plaster: #E7DFD3;

  /* type */
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-small: .875rem;
  --fs-body: clamp(1rem, .96rem + .2vw, 1.125rem);
  --fs-lead: clamp(1.125rem, 1rem + .6vw, 1.5rem);
  --fs-h3: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --fs-h2: clamp(2.5rem, 1.6rem + 4vw, 6rem);
  --fs-hero: clamp(3rem, 1.4rem + 7.4vw, 10rem);
  --fs-stone: clamp(1.75rem, 1rem + 3.6vw, 5.5rem);

  /* motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-press: cubic-bezier(.23, 1, .32, 1);
  --t-press: 150ms;
  --t-ui: 220ms;

  /* layout */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --nav-h: 72px;

  /* marble textures: gradient stand-ins, replaced by generated WebGL textures in marble.js */
  --tex-calacatta: linear-gradient(118deg, #F4F1EC 0 38%, #B9B2A6 39%, #F2EEE8 41% 66%, #CBBE9E 67%, #F5F2ED 69%);
  --tex-carrara: linear-gradient(130deg, #E4E5E3 0 30%, #C9CBCB 32%, #E6E7E5 36% 70%, #CFD1D1 72%, #E8E9E7 76%);
  --tex-emperador: linear-gradient(120deg, #6B4A35 0 34%, #C9AD8E 35%, #5E412F 37% 62%, #B89A7B 63%, #6E4D38 65%);
  --tex-nero: linear-gradient(125deg, #17181A 0 40%, #E8E8E6 41%, #1A1B1D 42% 70%, #CFCFCD 71%, #18191B 72%);
  --tex-travertine: repeating-linear-gradient(176deg, #D9C9AE 0 14px, #CDBB9C 14px 18px, #DDCFB6 18px 34px);

  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-variation-settings: "wdth" 100;
  line-height: 1.55;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ol, figure, address { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--ember); color: var(--white); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--ink-2) var(--mist); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: 16px; z-index: 200;
  padding: 10px 16px; border-radius: var(--radius-s);
  background: var(--ink); color: var(--white); text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus-visible { transform: none; }

/* split-text masks (GSAP SplitText) */
.split-line, .split-word { padding-bottom: .06em; }

/* ---------- buttons (tactile press, after Kitchen's recipe) ---------- */
.btn {
  --face: var(--ink);
  --face-text: var(--white);
  --base: var(--black);
  --depth: 6px;
  position: relative;
  display: inline-flex;
  min-height: 48px;
  border: 0;
  padding: 0 0 var(--depth);
  background: none;
  text-decoration: none;
  font-weight: 560;
  font-variation-settings: "wdth" 108;
  letter-spacing: 0;
  border-radius: 14px;
  -webkit-tap-highlight-color: transparent;
}
.btn--tactile::before {
  content: "";
  position: absolute; inset: var(--depth) 0 0;
  border-radius: inherit;
  background: var(--base);
}
.btn__face {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  width: 100%;
  min-height: 48px;
  padding: 0 1.4em;
  border-radius: inherit;
  background: var(--face);
  color: var(--face-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform var(--t-press) var(--ease-press);
}
.btn--tactile:active .btn__face { transform: translateY(var(--depth)); }
@media (hover: hover) and (pointer: fine) {
  .btn--tactile:hover .btn__face { transform: translateY(2px); }
  .btn--tactile:active .btn__face { transform: translateY(var(--depth)); }
}
.btn--ember { --face: var(--ember); --base: var(--ember-base); }
.btn--light { --face: var(--paper); --face-text: var(--ink); --base: var(--ash); }
.btn--small { --depth: 4px; min-height: 40px; font-size: var(--fs-small); }
.btn--small .btn__face { min-height: 40px; padding: 0 1.1em; }
.btn--wide { width: 100%; }
.btn--ghost {
  align-items: center;
  padding: 0 1.2em;
  margin-bottom: 6px;
  border: 1px solid currentColor;
  color: var(--ink);
  transition: background-color var(--t-ui) var(--ease-out), color var(--t-ui) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover { background-color: var(--ink); color: var(--white); }
}
.btn--ghost:active { transform: scale(.98); }

/* ---------- loader / logo reveal ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  pointer-events: none;
  animation: loader-failsafe 0s linear 6s forwards;
}
@keyframes loader-failsafe { to { visibility: hidden; } }
.loader__panel {
  position: absolute; left: 0; right: 0;
  background: var(--ink);
}
.loader__panel--top { top: 0; height: 50.5%; }
.loader__panel--bottom { bottom: 0; height: 50%; }
.loader__cut {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
}
.loader__brand {
  position: relative;
  display: grid; justify-items: center; gap: 22px;
  color: var(--mist);
}
.loader__mark { width: clamp(64px, 9vw, 96px); height: auto; overflow: visible; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; stroke-linejoin: round; }
.draw--slab { stroke: var(--mist); stroke-width: 1.6; }
.draw--vein { stroke: var(--gold); stroke-width: 1.6; }
.draw--fine { stroke: var(--gold); stroke-width: .9; }
.loader__word {
  font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem);
  font-variation-settings: "wdth" 125;
  font-weight: 300;
  letter-spacing: .01em;
  white-space: nowrap;
}
.loader.is-done { display: none; }

/* in-page transition veil */
.veil {
  position: fixed; inset: 0; z-index: 90;
  background: var(--tex-calacatta), var(--paper);
  background-size: cover;
  transform: translateY(101%);
  pointer-events: none;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 var(--gutter);
  color: var(--ink);
  transition: transform 400ms var(--ease-out), background-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.nav.is-solid { background-color: rgba(238, 241, 243, .94); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand {
  display: inline-flex; align-items: center; gap: 12px;
  margin-right: auto;
  text-decoration: none;
  font-weight: 600;
  font-variation-settings: "wdth" 118;
  min-height: 44px;
}
.mark { width: 20px; height: auto; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.mark path { stroke: var(--ember); }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  position: relative;
  text-decoration: none;
  font-size: var(--fs-small);
  font-weight: 500;
  padding: 10px 0;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 6px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
}
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: none;
  padding: 0;
  position: relative;
}
.nav__toggle-bar {
  position: absolute; left: 11px; right: 11px; height: 1.5px;
  background: currentColor;
  transition: transform 300ms var(--ease-out);
}
.nav__toggle-bar:first-child { top: 18px; }
.nav__toggle-bar:nth-child(2) { top: 25px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 8px;
    padding: var(--nav-h) var(--gutter) 40px;
    background: var(--mist);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path 500ms var(--ease-out), visibility 0s linear 500ms;
  }
  .nav__links a { font-size: clamp(2rem, 9vw, 3rem); font-variation-settings: "wdth" 120; font-weight: 300; padding: 6px 0; }
  .nav.is-open .nav__links { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 500ms var(--ease-out), visibility 0s; }
  .nav.is-open { background-color: transparent; box-shadow: none; transform: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: calc(var(--nav-h) + 40px) var(--gutter) clamp(32px, 6vh, 72px);
  color: var(--ink);
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0; z-index: -1;
  overflow: hidden;
  clip-path: inset(0 0 0 0 round 0px);
}
.hero__sky {
  position: absolute; inset: 0;
  background:
    url("hero.jpg") center / cover no-repeat,
    radial-gradient(60% 40% at 30% 30%, rgba(255, 255, 255, .7), transparent 70%),
    radial-gradient(50% 30% at 75% 20%, rgba(255, 255, 255, .55), transparent 70%),
    linear-gradient(180deg, var(--sky-hi) 0%, var(--sky-mid) 45%, var(--sky-lo) 62%, var(--meadow-hi) 63%, var(--moss) 100%);
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform-origin: 50% 60%;
}
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(227, 234, 241, .55) 0%, rgba(227, 234, 241, 0) 30%, rgba(30, 34, 38, 0) 55%, rgba(30, 34, 38, .38) 100%);
}
.hero__content {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 20px;
}
.hero__title {
  font-size: var(--fs-hero);
  font-weight: 250;
  font-variation-settings: "wdth" 118;
  line-height: .92;
  letter-spacing: -.02em;
  color: var(--ember);
  max-width: 11ch;
  overflow-wrap: break-word;
  min-width: 0;
  text-wrap: balance;
}
.hero__lede {
  max-width: 34ch;
  font-size: var(--fs-lead);
  color: var(--white);
  text-shadow: 0 1px 18px rgba(30, 34, 38, .35);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.hero__actions .btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, .7); }
@media (hover: hover) and (pointer: fine) {
  .hero__actions .btn--ghost:hover { background-color: var(--white); color: var(--ink); }
}
.hero__corner {
  position: absolute;
  font-size: var(--fs-small);
  line-height: 1.4;
  color: var(--ember-ink);
}
.hero__corner--tr { top: calc(var(--nav-h) + 16px); right: var(--gutter); text-align: right; }
.hero__pause {
  position: absolute; right: var(--gutter); bottom: clamp(32px, 6vh, 72px);
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .6); border-radius: 999px;
  background: rgba(30, 34, 38, .25);
  color: var(--white);
  font-size: var(--fs-small);
  transition: background-color var(--t-ui) var(--ease-out);
}
.hero__pause:active { transform: scale(.97); }
.hero__pause-icon { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.hero__pause[aria-pressed="true"] .hero__pause-icon { border: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
@media (max-width: 860px) {
  .hero__corner--tr { display: none; }
  .hero__pause { top: calc(var(--nav-h) + 12px); bottom: auto; }
}

/* ---------- manifesto ---------- */
.manifesto {
  padding: clamp(96px, 18vh, 200px) var(--gutter);
  background: var(--mist);
}
.manifesto__text {
  max-width: 22ch;
  margin: 0 auto;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 4.75rem);
  font-weight: 300;
  font-variation-settings: "wdth" 104;
  line-height: 1.08;
  letter-spacing: -.015em;
  text-wrap: pretty;
}
@media (min-width: 1100px) { .manifesto__text { max-width: 24ch; } }

/* ---------- stones configurator ---------- */
.stones {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0 var(--gutter);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 48px;
  background:
    radial-gradient(40% 18% at 22% 30%, rgba(255, 255, 255, .8), transparent 70%),
    radial-gradient(30% 14% at 80% 22%, rgba(255, 255, 255, .7), transparent 70%),
    linear-gradient(180deg, var(--sky-hi) 0%, var(--sky-mid) 40%, var(--sky-lo) 70%, var(--haze-green) 84%, var(--meadow) 100%);
  overflow: hidden;
  isolation: isolate;
}
.stones__names {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 4vw 8px;
  margin: 0 calc(-1 * var(--gutter));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.stones__names::-webkit-scrollbar { display: none; }
.stones__name {
  flex: none;
  border: 0; background: none; padding: 4px 0;
  font-size: var(--fs-stone);
  font-weight: 200;
  font-variation-settings: "wdth" 120;
  line-height: 1;
  letter-spacing: -.01em;
  color: rgba(216, 69, 44, .32);
  transition: color 300ms var(--ease-out);
  min-height: 44px;
}
.stones__name[aria-checked="true"] { color: var(--ember); }
@media (hover: hover) and (pointer: fine) {
  .stones__name:hover { color: rgba(216, 69, 44, .7); }
  .stones__name[aria-checked="true"]:hover { color: var(--ember); }
}
.stones__stage {
  grid-column: 2; grid-row: 2;
  position: relative;
  min-height: 420px;
  cursor: grab;
  touch-action: pan-y;
}
.stones__stage:active { cursor: grabbing; }
.stones__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stones__fallback {
  position: absolute; left: 50%; top: 50%;
  width: min(44%, 260px); aspect-ratio: 1.4 / 2.4;
  transform: translate(-50%, -50%);
  border-radius: 6px;
  background: var(--stone-tex, var(--tex-calacatta));
  background-size: cover;
  box-shadow: 0 40px 60px -30px rgba(30, 34, 38, .45);
  display: none;
}
.no-webgl .stones__fallback { display: block; }
.stones__hint {
  position: absolute; left: 50%; bottom: 8px;
  transform: translateX(-50%);
  font-size: var(--fs-small);
  color: var(--ink-2);
  white-space: nowrap;
}
.stones__info, .stones__controls {
  grid-row: 2;
  align-self: end;
  display: grid; gap: 6px;
  padding-bottom: 12px;
}
.stones__info { grid-column: 1; }
.stones__controls { grid-column: 3; gap: 16px; justify-items: start; }
.stones__label { font-size: var(--fs-small); color: var(--ember-ink); margin-top: 12px; }
.stones__value {
  font-size: var(--fs-h3);
  font-weight: 300;
  font-variation-settings: "wdth" 115;
  line-height: 1.05;
}
.stones__value--small { font-size: var(--fs-body); font-variation-settings: "wdth" 100; font-weight: 400; max-width: 30ch; line-height: 1.45; }
.stones__disclaimer { font-size: var(--fs-small); color: var(--ink-2); max-width: 32ch; }

.finish {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  box-shadow: inset 0 0 0 1px rgba(30, 34, 38, .08);
}
.finish__pill {
  position: absolute; top: 4px; left: 0; bottom: 4px;
  width: 0;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(0);
}
.finish__opt {
  position: relative;
  min-height: 40px;
  padding: 0 16px;
  border: 0; background: none;
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink);
  transition: color var(--t-ui) var(--ease-out);
}
.finish__opt[aria-checked="true"] { color: var(--white); }
.finish__opt:active { transform: scale(.97); }
.finish__note { max-width: 30ch; font-size: var(--fs-small); color: var(--ink-2); min-height: 3em; }

@media (max-width: 960px) {
  .stones {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(360px, 52svh) auto auto;
    gap: 16px;
  }
  .stones__names { justify-content: flex-start; gap: 28px; }
  .stones__stage { grid-column: 1; grid-row: 2; min-height: 360px; }
  .stones__info { grid-column: 1; grid-row: 3; }
  .stones__controls { grid-column: 1; grid-row: 4; }
}

/* ---------- supply (horizontal) ---------- */
.supply {
  background: var(--ink);
  color: var(--mist);
}
.supply__pin { height: 100svh; overflow: hidden; display: flex; align-items: center; }
.supply__track {
  display: flex; align-items: stretch;
  gap: clamp(24px, 3vw, 48px);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 48px;
  height: 100%;
  will-change: transform;
}
.supply__intro {
  flex: none;
  width: min(80vw, 560px);
  display: grid; align-content: end; gap: 20px;
  padding-bottom: 12px;
}
.supply__title {
  font-size: var(--fs-h2);
  font-weight: 250;
  font-variation-settings: "wdth" 120;
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--white);
}
.supply__lede { max-width: 30ch; font-size: var(--fs-lead); color: rgba(238, 241, 243, .78); }
.panel {
  flex: none;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 20px;
  width: min(78vw, 460px);
}
.panel--tiles { width: min(84vw, 560px); }
.panel--coating { width: min(78vw, 420px); }
.panel--veneer { width: min(80vw, 500px); }
.panel__visual {
  position: relative;
  min-height: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--slate);
}
.panel__text { display: grid; gap: 8px; max-width: 40ch; }
.panel__text h3 {
  font-size: var(--fs-h3);
  font-weight: 350;
  font-variation-settings: "wdth" 115;
  line-height: 1.05;
  color: var(--white);
}
.panel__text p { color: rgba(238, 241, 243, .74); }

.panel__visual--slabs {
  display: flex; align-items: flex-end; justify-content: center; gap: 6%;
  padding: 10% 8% 0;
  background: linear-gradient(180deg, var(--slate-hi), var(--slate-deep));
}
.slab {
  width: 26%;
  height: 86%;
  border-radius: 4px 4px 0 0;
  background: var(--t);
  background-size: cover;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .3) inset, 18px 0 30px -12px rgba(0, 0, 0, .5);
  transform-origin: 50% 100%;
}
.slab:nth-child(2) { height: 96%; }
.slab:nth-child(3) { height: 78%; }

.panel__visual--tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  background: var(--grout);
  transform: perspective(900px) rotateX(18deg) scale(1.05);
  transform-origin: 50% 100%;
}
.panel__visual--tiles span { background: var(--t); background-size: 300% 300%; }
.panel__visual--tiles span:nth-child(2n) { background-position: 60% 40%; }
.panel__visual--tiles span:nth-child(3n) { background-position: 20% 80%; }

.panel__visual--coating { background: var(--plaster); }
.plaster, .veneer { position: absolute; inset: 0; width: 100%; height: 100%; }
.plaster { transform: scale(1.15); }
.trowel {
  position: absolute; left: -30%; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-12deg);
}
.panel__visual--veneer .veneer { transform: scale(1.12); }

.supply__end {
  flex: none;
  width: min(80vw, 420px);
  display: grid; align-content: center; justify-items: start; gap: 20px;
  font-size: var(--fs-h3);
  font-weight: 300;
  font-variation-settings: "wdth" 112;
  line-height: 1.1;
}

@media (max-width: 860px), (prefers-reduced-motion: reduce) {
  .supply__pin { height: auto; overflow: visible; }
  .supply__track { flex-direction: column; height: auto; padding: 96px var(--gutter); gap: 56px; transform: none !important; }
  .supply__intro, .panel, .panel--tiles, .panel--coating, .panel--veneer, .supply__end { width: 100%; }
  .panel__visual { aspect-ratio: 4 / 3.4; }
}

/* ---------- craft ---------- */
.craft {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(96px, 14vh, 160px) var(--gutter);
}
.craft__media { position: relative; }
.craft__frame {
  position: sticky; top: calc(var(--nav-h) + 24px);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--stone);
  box-shadow: 0 50px 80px -50px rgba(30, 34, 38, .5);
}
.craft__img {
  position: absolute; inset: -6%;
  background: var(--t);
  background-size: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 600ms var(--ease-out), transform 900ms var(--ease-out);
}
.craft__img.is-active { opacity: 1; transform: scale(1); }
.craft__img--honed { filter: saturate(.85) contrast(.92) brightness(1.02); }
.craft__img--match {
  background-image: var(--t), var(--t);
  background-size: 50% 100%, 50% 100%;
  background-position: left center, right center;
}
.craft__img--match::after {
  content: ""; position: absolute; inset: 0;
  background: var(--t); background-size: 100% 100%;
  clip-path: inset(0 0 0 50%);
  transform: scaleX(-1);
}
.craft__img--drop::after {
  content: ""; position: absolute; left: 38%; top: 44%;
  width: 22%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .9), rgba(255, 255, 255, .15) 30%, rgba(255, 255, 255, 0) 60%), rgba(160, 190, 220, .14);
  box-shadow: 0 10px 18px -8px rgba(0, 0, 0, .55), inset 0 -4px 10px rgba(255, 255, 255, .25);
}
.craft__sheen {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 45%, transparent 60%);
  transform: translateX(-60%);
  mix-blend-mode: soft-light;
}
.craft__copy { display: grid; align-content: start; gap: 56px; }
.craft__title {
  font-size: var(--fs-h2);
  font-weight: 250;
  font-variation-settings: "wdth" 116;
  line-height: .96;
  letter-spacing: -.02em;
  overflow-wrap: break-word;
  min-width: 0;
}
.craft__list { display: grid; gap: 0; counter-reset: tip; }
.tip {
  display: grid; gap: 10px;
  padding: 36px 0 min(18vh, 160px);
  border-top: 1px solid var(--line);
  opacity: .35;
  transition: opacity 500ms var(--ease-out);
}
.tip.is-active { opacity: 1; }
.tip h3 {
  font-size: var(--fs-h3);
  font-weight: 350;
  font-variation-settings: "wdth" 112;
  line-height: 1.08;
}
.tip p { max-width: 42ch; color: var(--ink-2); }
@media (max-width: 860px) {
  .craft { grid-template-columns: minmax(0, 1fr); }
  .craft__media { order: 2; }
  .craft__frame { position: relative; top: 0; aspect-ratio: 4 / 3; }
  .tip { opacity: 1; padding-bottom: 36px; }
}

/* ---------- dealer ---------- */
.dealer {
  background: var(--moss-deep);
  color: var(--mist);
  padding: 0 0 clamp(96px, 14vh, 160px);
  overflow: hidden;
}
.marquee { padding: 40px 0; border-bottom: 1px solid var(--line-light); }
.marquee__track {
  display: flex; align-items: center; gap: 40px;
  width: max-content;
  font-size: clamp(2.5rem, 1.6rem + 4vw, 6rem);
  font-weight: 200;
  font-variation-settings: "wdth" 125;
  line-height: 1;
  white-space: nowrap;
  color: rgba(238, 241, 243, .9);
}
.marquee__track i {
  width: .32em; height: .5em;
  border: 2px solid var(--gold);
  border-radius: 3px;
  flex: none;
}
.dealer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 10vh, 120px) var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--gutter);
  align-items: end;
}
.dealer__title {
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 5rem);
  font-weight: 250;
  font-variation-settings: "wdth" 116;
  line-height: .98;
  letter-spacing: -.02em;
  color: var(--white);
  max-width: 12ch;
}
.dealer__stamps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

/* stamp: perforated edge via radial-gradient mask (after Kitchen's stamp idea) */
.stamp {
  --perf: 6px;
  position: relative;
  display: grid;
  min-height: 300px;
  padding: calc(var(--perf) * 1.6);
  background: var(--paper);
  color: var(--ink);
  /* holes only along the edge: hole grid unioned with a solid content box */
  -webkit-mask:
    radial-gradient(circle var(--perf) at var(--perf) var(--perf), transparent 97%, #000) calc(-1 * var(--perf)) calc(-1 * var(--perf)) / calc(var(--perf) * 2.6) calc(var(--perf) * 2.6) round,
    linear-gradient(#000 0 0) content-box;
          mask:
    radial-gradient(circle var(--perf) at var(--perf) var(--perf), transparent 97%, #000) calc(-1 * var(--perf)) calc(-1 * var(--perf)) / calc(var(--perf) * 2.6) calc(var(--perf) * 2.6) round,
    linear-gradient(#000 0 0) content-box;
  isolation: isolate;
  overflow: hidden;
  contain: layout paint style;
}
.stamp__inner {
  position: relative;
  display: grid; gap: 6px; align-content: end;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.stamp__brand {
  font-size: clamp(1.6rem, 1rem + 1.5vw, 2.6rem);
  font-weight: 700;
  font-variation-settings: "wdth" 125;
  line-height: 1;
  letter-spacing: -.01em;
}
.stamp__role { font-weight: 600; color: var(--ember-ink); }
.stamp__desc { color: var(--ink-2); font-size: var(--fs-small); max-width: 26ch; }

/* iridescent foil (after Kitchen's foil recipe, kept low-opacity) */
.foil { --pointer-x: 50%; --pointer-y: 50%; --foil-shift: 0; }
.foil__layer {
  position: absolute; inset: -48%; z-index: -1;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, .55), transparent 28%),
    linear-gradient(112deg,
      rgba(120, 220, 230, .0) 20%,
      rgba(120, 220, 230, .16) 32%,
      rgba(170, 235, 150, .14) 40%,
      rgba(250, 230, 140, .16) 48%,
      rgba(245, 160, 200, .16) 56%,
      rgba(170, 150, 245, .14) 64%,
      rgba(120, 180, 245, .0) 76%);
  transform: translate3d(calc(var(--foil-shift) * 18%), 0, 0);
  mix-blend-mode: multiply;
  opacity: .9;
}

@media (max-width: 960px) {
  .dealer__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .dealer__stamps { grid-template-columns: minmax(0, 1fr); }
  .stamp { min-height: 220px; }
}

/* ---------- visit ---------- */
.visit {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(96px, 14vh, 160px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.visit__copy { display: grid; gap: 20px; }
.visit__title {
  font-size: var(--fs-h2);
  font-weight: 250;
  font-variation-settings: "wdth" 116;
  line-height: .96;
  letter-spacing: -.02em;
  color: var(--ember);
  max-width: 10ch;
  overflow-wrap: break-word;
  min-width: 0;
}
.visit__address { font-style: normal; font-size: var(--fs-lead); line-height: 1.4; }
.visit__phone a {
  font-size: var(--fs-h3);
  font-weight: 350;
  font-variation-settings: "wdth" 112;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  display: inline-block;
  padding: 6px 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}
.visit__note { font-size: var(--fs-small); color: var(--ink-2); }
.visit__map {
  margin-top: 12px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--sky-lo);
}
.visit__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }

.enquiry {
  display: grid; gap: 18px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-l);
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 30px 60px -40px rgba(30, 34, 38, .35);
}
.enquiry__title {
  font-size: var(--fs-h3);
  font-weight: 350;
  font-variation-settings: "wdth" 112;
  line-height: 1.05;
}
.enquiry__lede { font-size: var(--fs-small); color: var(--ink-2); }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-small); font-weight: 500; }
.field__opt { color: var(--ink-2); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(30, 34, 38, .22);
  border-radius: var(--radius-s);
  background: var(--white);
  font-size: 1rem;
  caret-color: var(--ember);
  transition: border-color var(--t-ui) var(--ease-out), box-shadow var(--t-ui) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(216, 69, 44, .2);
}
.field input[aria-invalid="true"] { border-color: var(--ember-ink); }
.field__error { min-height: 1.2em; font-size: var(--fs-small); color: var(--ember-ink); }
.field__error:empty { min-height: 0; }
::placeholder { color: var(--ink-3); }

@media (max-width: 860px) {
  .visit { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- footer ---------- */
.footer {
  background: var(--ink);
  color: var(--mist);
  padding: clamp(64px, 10vh, 120px) var(--gutter) 32px;
  overflow: hidden;
}
.footer__word {
  font-size: clamp(3.5rem, .5rem + 12vw, 15rem);
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  line-height: .82;
  letter-spacing: -.03em;
  white-space: nowrap;
  text-align: center;
}
.footer__word span {
  display: inline-block;
  background: var(--tex-calacatta), var(--paper);
  background-size: 120% auto;
  background-position: 50% var(--word-y, 50%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.footer__row {
  max-width: var(--max);
  margin: 56px auto 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
  font-size: var(--fs-small);
  color: rgba(238, 241, 243, .74);
}
.footer__row a { display: inline-block; padding: 8px 0; }

/* ---------- 404 ---------- */
.lost {
  min-height: 100svh;
  display: grid; place-content: center; justify-items: start; gap: 24px;
  padding: var(--gutter);
  max-width: 900px; margin: 0 auto;
}
.lost h1 { font-size: var(--fs-h2); font-weight: 250; font-variation-settings: "wdth" 118; line-height: .96; color: var(--ember); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .loader { display: none; }

  .tip { opacity: 1; }
}
