/* Custom Granite Works north star.
   One idea: the slab you choose in the yard is the protagonist of the page. */

@font-face {
  font-family: "Archivo";
  src: url(../fonts/archivo.woff2) format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url(../fonts/source-serif-4.woff2) format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url(../fonts/source-serif-4-italic.woff2) format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --gravel: #dad9d3;   /* the yard: page ground */
  --paper: #f3f2ee;    /* slab tags, form */
  --ink: #1c2023;      /* polished black granite: text, dark chapter */
  --ink-2: #4a4f52;    /* secondary text on gravel */
  --lake: #235869;     /* Okanagan Lake: every primary action */
  --lake-deep: #173f4c;
  --marker: #f5f4f0;   /* the fabricator's paint-pen line on stone */
  --rule: rgba(28, 32, 35, .2);
  --rule-dark: rgba(245, 244, 240, .22);

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --pad: clamp(20px, 4.4vw, 64px);
  --max: 1320px;
  --bar-h: 64px;
  --ease-edge: 3px; /* an eased stone edge: the only radius on the site */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--gravel);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--lake); outline-offset: 3px; }
.step-dark :focus-visible { outline-color: var(--marker); }
h1, h2, h3 { font-family: var(--sans); font-stretch: 125%; font-weight: 640; letter-spacing: -.02em; line-height: 1.02; margin: 0; text-wrap: balance; }
p { margin: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--marker); padding: 10px 14px; font-family: var(--sans); }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--ease-edge); border: 1.5px solid transparent;
  font-family: var(--sans); font-weight: 600; font-size: 16px; letter-spacing: .005em; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-lake { background: var(--lake); color: var(--marker); }
.btn-lake:hover { background: var(--lake-deep); }
.btn-line { border-color: currentColor; background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--marker); border-color: var(--ink); }
.btn-marker { background: var(--marker); color: var(--ink); }
.btn-marker:hover { background: #fff; }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-wide { width: 100%; }
button.link { background: none; border: 0; padding: 4px; font: inherit; color: var(--lake); text-decoration: underline; cursor: pointer; }

/* ---------- header bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 30;
  height: var(--bar-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--pad);
  background: var(--gravel);
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-mark {
  width: 46px; height: 22px; background: currentColor; flex: none;
  -webkit-mask: url(../assets/mark.png) center / contain no-repeat;
          mask: url(../assets/mark.png) center / contain no-repeat;
}
.brand-name { font-stretch: 125%; font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a:hover { text-decoration: underline; }
.bar-actions { display: flex; align-items: center; gap: 18px; }
.bar-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; text-decoration: none; font-variant-numeric: tabular-nums; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); opacity: .5; }
.status-dot.is-open { background: #2f7d4f; opacity: 1; box-shadow: 0 0 0 3px rgba(47,125,79,.18); }

/* ---------- hero: the slab ---------- */
.hero {
  position: relative;
  height: calc(100svh - var(--bar-h));
  min-height: 600px; max-height: 1100px;
  overflow: hidden;
  background: #8d8b86;
}
.slab { position: absolute; inset: 0; touch-action: pan-y; cursor: crosshair; }
.slab-still, .slab-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slab-canvas { opacity: 0; transition: opacity .5s; }
.slab.is-ready .slab-canvas { opacity: 1; }
.js .slab-still { filter: saturate(.35) contrast(.7) brightness(1.18); }
.slab-brush {
  position: absolute; z-index: 1; top: 0; left: 0; width: 104px; height: 104px;
  border: 1px solid rgba(245,244,240,.9); border-radius: 50%;
  background: radial-gradient(circle, rgba(190,210,225,.13), rgba(190,210,225,.035) 55%, transparent 72%);
  box-shadow: 0 0 0 1px rgba(28,32,35,.45), inset 0 0 0 1px rgba(28,32,35,.2);
  opacity: 0; pointer-events: none; transform: translate3d(-150px,-150px,0) translate(-50%,-50%);
  transition: opacity .12s ease, width .12s ease, height .12s ease;
}
.slab-brush.is-visible { opacity: .9; }
.slab-brush.is-active { width: 168px; height: 168px; opacity: 1; }
@media (hover: hover) and (pointer: fine) { .slab { cursor: none; } }
.slab-hint {
  position: absolute; left: 50%; top: 28px; transform: translateX(-50%);
  margin: 0; padding: 8px 14px 9px;
  background: rgba(28, 32, 35, .78); color: var(--marker);
  font-family: var(--sans); font-size: 14px; font-weight: 500; border-radius: var(--ease-edge);
  pointer-events: none; transition: opacity .6s; white-space: nowrap;
}
.slab-hint.is-done { opacity: 0; }
.hint-coarse { display: none; }
@media (pointer: coarse) { .hint-fine { display: none; } .hint-coarse { display: inline; } }
html:not(.js) .slab-hint { display: none; }

/* slab tag: paper, a reinforced punch hole, lying on the stone */
.tag {
  position: relative;
  background: var(--paper);
  border-radius: var(--ease-edge);
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 24px 50px -28px rgba(0,0,0,.55);
}
.tag-hole {
  position: absolute; top: 18px; left: 18px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--gravel);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.35), 0 0 0 4px #e6e4dd, 0 0 0 5px rgba(0,0,0,.08);
}
.hero-tag {
  position: absolute; left: var(--pad); bottom: clamp(24px, 5vh, 56px);
  width: min(640px, 50vw);
  padding: 52px 44px 40px;
}
.hero-copy-desktop { display: block; }
.hero-copy-mobile { display: none; }
.hero-tag h1 { font-size: clamp(38px, 4.3vw, 66px); }
.hero-lede { margin-top: 20px; max-width: 34em; font-size: 18px; color: var(--ink-2); }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

.rack {
  position: absolute; right: var(--pad); bottom: clamp(24px, 5vh, 56px);
  display: grid; grid-template-columns: auto auto; align-items: center; gap: 10px 16px;
  padding: 16px 18px; background: rgba(28, 32, 35, .82); color: var(--marker);
  border-radius: var(--ease-edge); font-family: var(--sans);
}
.rack-now { grid-column: 1 / -1; font-size: 15px; font-weight: 600; }
.rack-kind { font-weight: 400; opacity: .75; }
.rack-swatches { display: flex; gap: 6px; }
.swatch {
  width: 44px; height: 22px; padding: 0; border: 0; border-radius: 1px; cursor: pointer;
  background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  position: relative;
}
.swatch[aria-checked="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: currentColor; }
.rack-next { background: none; border: 1.5px solid var(--rule-dark); color: inherit; font: 600 14px var(--sans); padding: 8px 12px; border-radius: var(--ease-edge); cursor: pointer; min-height: 40px; }
.rack-next:hover { border-color: var(--marker); }

/* ---------- steps ---------- */
.step { padding: clamp(72px, 10vw, 140px) var(--pad); }
.step > * { max-width: var(--max); margin-inline: auto; }
.step-head {
  display: grid; grid-template-columns: clamp(64px, 11vw, 168px) 1fr; column-gap: clamp(16px, 3vw, 40px);
  align-items: start;
}
.step-no {
  grid-row: 1 / span 2;
  font-family: var(--sans); font-stretch: 125%; font-weight: 200;
  font-size: clamp(88px, 13vw, 200px); line-height: .78; letter-spacing: -.04em;
  font-variant-numeric: lining-nums;
}
.step-name { font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--ink-2); margin-bottom: 14px; }
.step-head h2 { font-size: clamp(34px, 4.6vw, 68px); max-width: 15em; }
.step-body { margin-top: 36px; padding-left: calc(clamp(64px, 11vw, 168px) + clamp(16px, 3vw, 40px)); }
.cols { display: grid; grid-template-columns: minmax(0, 36em) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 96px); align-items: end; }
.prose p + p { margin-top: 1em; }
.prose { font-size: 19px; }

.voice { margin: 0; padding-left: 20px; border-left: 2px solid var(--ink); }
.voice blockquote { margin: 0; font-style: italic; font-size: 24px; line-height: 1.35; }
.voice figcaption { margin-top: 8px; font-family: var(--sans); font-size: 14px; color: var(--ink-2); }

.materials { margin-top: clamp(56px, 7vw, 96px); padding-left: calc(clamp(64px, 11vw, 168px) + clamp(16px, 3vw, 40px)); }
.materials h3 { font-size: 26px; margin-bottom: 20px; }
.table-wrap { overflow-x: auto; }
.materials table { width: 100%; border-collapse: collapse; font-size: 17px; min-width: 640px; }
.materials th, .materials td { text-align: left; vertical-align: top; padding: 14px 20px 14px 0; border-top: 1px solid var(--rule); }
.materials thead th { font-family: var(--sans); font-stretch: 125%; font-weight: 640; font-size: 20px; border-top: 0; padding-bottom: 12px; }
.materials tbody th { font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--ink-2); width: 18%; padding-top: 16px; }
.aside { margin-top: 18px; font-size: 16px; color: var(--ink-2); }

/* ---------- step 2: the shop (dark) ---------- */
.step-dark { background: var(--ink); color: var(--marker); }
.step-dark .step-name { color: rgba(245,244,240,.7); }
.step-dark .step-no { color: var(--marker); }

.planner {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.planner-shapes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; font-family: var(--sans); }
.planner-shapes button {
  min-height: 44px; padding: 8px 16px; border-radius: var(--ease-edge);
  border: 1.5px solid var(--rule-dark); background: transparent; color: var(--marker);
  font: 600 15px var(--sans); cursor: pointer;
}
.planner-shapes button[aria-checked="true"] { background: var(--marker); color: var(--ink); border-color: var(--marker); }
.planner-slab { position: relative; aspect-ratio: 2 / 1; background: #333; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.planner-slab canvas, .planner-slab svg, .planner-still { position: absolute; inset: 0; width: 100%; height: 100%; }
.planner-still { object-fit: cover; }
.planner-slab svg { overflow: visible; }
.tpl { cursor: grab; touch-action: none; outline: none; }
.tpl.is-dragging { cursor: grabbing; }
.tpl .cut { fill: rgba(245,244,240,.0); stroke: var(--marker); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.tpl .off, .off { fill: rgba(20, 22, 24, .42); } /* the stone outside the template dims */
.tpl .hole { fill: rgba(20,22,24,.55); stroke: var(--marker); stroke-width: 1.4; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.tpl .dim { stroke: var(--marker); stroke-width: 1; vector-effect: non-scaling-stroke; }
.tpl .dim-t { fill: var(--marker); font-family: var(--sans); font-size: 2.6px; font-weight: 600; paint-order: stroke; stroke: rgba(20,22,24,.8); stroke-width: .6px; }
.tpl:focus-visible .cut { stroke: #fff; stroke-width: 3.5; }
.planner-help { margin-top: 14px; font-family: var(--sans); font-size: 14px; color: rgba(245,244,240,.72); }

.planner-result { font-family: var(--sans); }
.piece-stage { position: relative; height: 300px; perspective: 1100px; perspective-origin: 50% 20%; }
.piece {
  position: absolute; left: 50%; top: 46%;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(58deg) rotateZ(-24deg);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.piece.is-lifting { transform: translate(-50%, -56%) rotateX(58deg) rotateZ(-24deg); }
.piece canvas { position: absolute; left: 0; top: 0; }
.piece-shadow {
  position: absolute; left: 50%; top: 62%; width: 70%; height: 36px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); filter: blur(6px);
}
.piece-name { font-stretch: 125%; font-weight: 640; font-size: 26px; letter-spacing: -.01em; }
.piece-meta { margin-top: 4px; font-size: 15px; color: rgba(245,244,240,.75); font-variant-numeric: tabular-nums; }
.planner-stones { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.planner-stones .swatch { width: 56px; height: 28px; }
.planner-note { margin-top: 12px; font-size: 14px; color: rgba(245,244,240,.7); max-width: 30em; }

.craft {
  margin-top: clamp(80px, 10vw, 140px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px;
  align-items: end;
}
.craft-text { grid-column: 1 / span 5; margin-bottom: 16px; }
.craft-text h3 { font-size: clamp(26px, 2.4vw, 34px); }
.craft-text p { margin-top: 16px; color: rgba(245,244,240,.82); }
.craft-shot { margin: 0; }
.craft-shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.craft-shot figcaption { margin-top: 10px; font-family: var(--sans); font-size: 14px; color: rgba(245,244,240,.72); }
.craft-shot { grid-column: span 4; align-self: start; }

/* ---------- step 3: work ---------- */
.lead-shot { margin: clamp(40px, 5vw, 64px) auto 0; max-width: none !important; margin-inline: calc(var(--pad) * -1); }
.lead-shot img { width: 100%; height: min(78vh, 820px); object-fit: cover; }
.lead-shot figcaption { padding: 12px var(--pad) 0; font-family: var(--sans); font-size: 14px; color: var(--ink-2); max-width: var(--max); margin: 0 auto; }
.work { margin-top: clamp(56px, 7vw, 96px); }
.work-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; font-family: var(--sans); }
.work-filters button {
  min-height: 44px; padding: 8px 16px; border-radius: var(--ease-edge);
  border: 1.5px solid var(--rule); background: transparent; color: var(--ink); font: 600 15px var(--sans); cursor: pointer;
}
.work-filters button[aria-pressed="true"] { background: var(--ink); color: var(--marker); border-color: var(--ink); }
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 240px); grid-auto-flow: dense; gap: 12px; }
.work-grid li { grid-column: span 4; grid-row: span 1; }
.work-grid li.w-wide { grid-column: span 8; grid-row: span 2; }
.work-grid li.w-tall { grid-row: span 2; }
.work-grid li[hidden] { display: none; }
.work-grid figure { margin: 0; height: 100%; position: relative; overflow: hidden; background: #c9c7c0; }
.work-grid img { width: 100%; height: 100%; object-fit: cover; }
.work-grid figcaption {
  position: absolute; left: 0; bottom: 0; padding: 7px 12px 8px;
  background: var(--paper); font-family: var(--sans); font-size: 14px; font-weight: 500;
}

/* ---------- proof ---------- */
.proof { padding: clamp(72px, 10vw, 140px) var(--pad); border-top: 1px solid var(--rule); }
.proof > * { max-width: var(--max); margin-inline: auto; }
.quote-big { margin-bottom: 0; }
.quote-big blockquote { margin: 0; font-style: italic; font-weight: 400; font-size: clamp(34px, 4.6vw, 68px); line-height: 1.12; letter-spacing: -.01em; max-width: 19em; text-wrap: balance; }
.quote-big figcaption, .quotes figcaption { margin-top: 16px; font-family: var(--sans); font-size: 15px; color: var(--ink-2); }
.quotes { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 56px); }
.quotes figure { margin: 0; padding-top: 18px; border-top: 1px solid var(--rule); }
.quotes blockquote { margin: 0; font-size: 21px; line-height: 1.45; }
.record { margin-top: clamp(48px, 6vw, 80px); font-family: var(--sans); font-size: 17px; font-weight: 500; }

/* ---------- visit ---------- */
.visit {
  padding: clamp(72px, 10vw, 140px) var(--pad);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px);
  max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; align-items: start;
}
.visit h2 { font-size: clamp(40px, 5vw, 76px); }
.open-now { margin-top: 18px; font-family: var(--sans); font-weight: 600; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.visit address { font-style: normal; margin-top: 28px; display: grid; gap: 6px; }
.addr { font-size: 22px; line-height: 1.35; text-decoration: none; }
.addr:hover { text-decoration: underline; }
.phone-big { font-family: var(--sans); font-stretch: 125%; font-weight: 640; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.01em; text-decoration: none; margin: 14px 0 4px; font-variant-numeric: tabular-nums; }
.hours { margin-top: 28px; border-collapse: collapse; font-size: 17px; }
.hours th { text-align: left; font-weight: 400; padding: 6px 28px 6px 0; }
.hours td { padding: 6px 0; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 650; }
.small { font-size: 15px; color: var(--ink-2); margin-top: 12px; max-width: 34em; }
.visit-info .btn { margin-top: 26px; }

.request { padding: 48px clamp(22px, 3.4vw, 44px) 36px; font-family: var(--sans); }
.request fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.request legend { font-weight: 600; font-size: 15px; margin-bottom: 10px; padding: 0; }
.intent { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.intent legend { grid-column: 1 / -1; }
.intent label {
  display: flex; align-items: center; justify-content: center; min-height: 52px; cursor: pointer;
  border: 1.5px solid var(--ink); font-weight: 600; font-size: 16px; position: relative;
}
.intent label:first-of-type { border-radius: var(--ease-edge) 0 0 var(--ease-edge); }
.intent label:last-of-type { border-radius: 0 var(--ease-edge) var(--ease-edge) 0; border-left: 0; }
.intent input, .chips input { position: absolute; opacity: 0; pointer-events: none; }
.intent label:has(input:checked) { background: var(--ink); color: var(--marker); }
.intent label:has(input:focus-visible), .chips label:has(input:focus-visible) { outline: 3px solid var(--lake); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; }
.chips label {
  display: inline-flex; align-items: center; min-height: 42px; padding: 6px 14px; cursor: pointer; position: relative;
  border: 1.5px solid var(--rule); border-radius: var(--ease-edge); font-size: 15px; font-weight: 500; background: #fff;
}
.chips label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--marker); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--ink-2); }
.field input:not([type=file]), .field textarea {
  width: 100%; min-height: 48px; padding: 11px 13px;
  font: 17px var(--serif); color: var(--ink); background: #fff;
  border: 1.5px solid rgba(28,32,35,.35); border-radius: var(--ease-edge);
}
.field input:focus, .field textarea:focus { outline: 3px solid var(--lake); outline-offset: 0; border-color: var(--lake); }
.field input[aria-invalid="true"] { border-color: #a3261b; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-pair .field { margin-bottom: 8px; }
.err { color: #a3261b; font-size: 14px; font-weight: 600; margin: 6px 0 12px; }
.form-foot { text-align: center; }
.form-foot a { white-space: nowrap; }
.form-error { margin-top: 12px; text-align: center; }
.form-error:focus { outline: 3px solid #a3261b; outline-offset: 3px; }
[data-for][hidden] { display: none; }

.layout-chip {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center;
  padding: 10px; margin-bottom: 22px; background: #fff; border: 1.5px solid var(--ink); border-radius: var(--ease-edge);
}
.layout-chip[hidden] { display: none; }
.layout-chip canvas { width: 96px; height: 48px; display: block; }
.layout-chip strong { display: block; font-size: 15px; }
.layout-chip span { font-size: 14px; color: var(--ink-2); }

.sent { position: absolute; inset: 0; background: var(--paper); padding: 72px 44px; border-radius: var(--ease-edge); }
.sent[hidden] { display: none; }
.sent-title { font-stretch: 125%; font-weight: 640; font-size: 36px; letter-spacing: -.02em; margin-bottom: 14px; }
.sent p:not(.sent-title) { font-family: var(--serif); font-size: 19px; max-width: 26em; }

/* ---------- footer + dock ---------- */
.foot { background: var(--ink); color: var(--marker); padding: 56px var(--pad) 120px; font-family: var(--sans); font-size: 15px; line-height: 1.55; }
.foot > * { max-width: var(--max); margin-inline: auto; }
.foot-brand { display: flex; gap: 16px; align-items: flex-start; }
.foot-brand .brand-mark { width: 64px; height: 30px; }
.foot-cols { margin-top: 36px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; color: rgba(245,244,240,.8); }
.foot-small { margin-top: 36px; font-size: 13px; color: rgba(245,244,240,.6); }
.dock { display: none; }
.all-work { margin-top: 28px; text-align: center; }
button:disabled { cursor: wait; opacity: .65; }

/* ---------- mid widths ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .bar-actions { margin-left: auto; }
  .hero-tag { width: min(600px, 62vw); }
  .rack { bottom: auto; top: 24px; }
  .slab-hint { top: auto; bottom: 24px; left: auto; right: var(--pad); transform: none; }
  .planner { grid-template-columns: 1fr; }
  .planner-result { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-items: start; }
  .piece-stage { grid-row: span 5; }
}

/* ---------- phones ---------- */
@media (max-width: 720px) {
  :root { --bar-h: 56px; }
  body { font-size: 17px; }
  .brand-name { font-size: 12px; letter-spacing: .12em; }
  .brand-mark { width: 38px; height: 18px; }
  .bar-actions { display: none; } /* phones: the hero buttons, then the dock, carry Call */

  .hero { height: auto; min-height: 0; max-height: none; background: var(--gravel); overflow: visible; }
  .slab { position: relative; inset: auto; height: 62svh; min-height: 380px; }
  .hero-tag { position: relative; left: auto; bottom: auto; width: auto; margin: -64px 14px 0; padding: 44px 22px 26px; }
  .hero-copy-desktop { display: none; }
  .hero-copy-mobile { display: block; }
  .hero-tag h1 { font-size: clamp(31px, 8.6vw, 40px); }
  .slab-brush { display: none; }
  .hero-lede { font-size: 17px; margin-top: 14px; }
  .hero-actions { margin-top: 22px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .rack { top: 14px; right: 14px; left: 14px; bottom: auto; padding: 10px 12px; grid-template-columns: 1fr auto; gap: 8px 12px; }
  .rack-now { grid-column: 1; font-size: 14px; }
  .rack-next { grid-row: 1 / span 2; grid-column: 2; }
  .rack-swatches .swatch { width: 36px; height: 18px; }
  .slab-hint { bottom: 80px; left: 14px; right: auto; white-space: normal; max-width: 70vw; font-size: 13px; }
  .slab-hint .hint-fine { display: none; }
  .slab-hint .hint-coarse { display: inline; }

  .step-head { grid-template-columns: 1fr; }
  .step-no { grid-row: auto; font-size: 88px; margin-bottom: 8px; }
  .step-body, .materials { padding-left: 0; }
  .cols { grid-template-columns: 1fr; }
  .prose { font-size: 18px; }
  .materials table { min-width: 560px; font-size: 16px; }

  .planner-result { display: block; }
  .piece-stage { height: 230px; }
  .planner-slab { margin-inline: calc(var(--pad) * -1); }
  .planner-result .btn { width: 100%; }

  .craft { grid-template-columns: 1fr 1fr; gap: 16px; }
  .craft-text { grid-column: 1 / -1; }
  .craft-shot { grid-column: span 1; }
  .craft-shot:last-child { grid-column: 1 / -1; }

  .lead-shot img { height: 56svh; }
  .work-filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scrollbar-width: none; }
  .work-filters button { flex: none; }
  .work-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; gap: 8px; }
  .work-grid li, .work-grid li.w-tall { grid-column: span 1; grid-row: span 1; }
  .work-grid li.w-wide { grid-column: span 2; grid-row: span 1; }
  .work-grid li.w-tall { grid-row: span 2; }

  .quotes { grid-template-columns: 1fr; }
  .visit { grid-template-columns: 1fr; }
  .request { margin-inline: -8px; }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
  .field-pair .field { margin-bottom: 18px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }

  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 2fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--gravel); border-top: 1px solid var(--rule);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .dock.is-on { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .piece, .dock, .slab-canvas, .slab-hint { transition: none; }
}
