/* Bespoke Stonework: showroom system */
:root {
  --paper: #FBFAF7;
  --sand: #F1EBDF;
  --sand-2: #E3D8C3;
  --ink: #1F1D1A;
  --muted: #625B50;
  --rule: #E4DED2;
  --lichen: #4F6330;
  --lichen-d: #3D4D24;
  --buff: #C9AE7C;
  --line: #2F5F74;
  --error: #8A2A1B;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --r-img: 4px;
  --r-ctl: 8px;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --space: clamp(64px, 8vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lichen); outline-offset: 2px; }
p { margin: 0 0 1em; max-width: 66ch; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -0.03em; line-height: 1.04; }
h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); font-weight: 750; letter-spacing: -0.04em; line-height: 0.98; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.2; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--lichen); color: #fff; border: 0; border-radius: var(--r-ctl); padding: 15px 22px; font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--lichen-d); color: #fff; }
.btn.ink { background: var(--ink); }
.btn.ink:hover { background: #3A3631; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.ghost:hover { background: var(--ink); color: #fff; box-shadow: none; }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: var(--sand); color: var(--ink); }
.btn:disabled { opacity: .6; cursor: progress; }
.textlink { font-weight: 600; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header */
.promo { background: var(--ink); color: #EDE7DC; font-size: .88rem; padding: 9px 0; }
.promo .wrap { display: flex; justify-content: space-between; gap: 16px; }
.promo a { color: #fff; }
@media (max-width: 700px) { .promo span:last-child { display: none; } }
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20; }
.bar { display: flex; align-items: center; gap: 32px; min-height: 74px; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 750 1.3rem/1 var(--display); letter-spacing: -.025em; }
.mark svg { width: 30px; height: 30px; }
.main-nav { display: flex; align-items: center; gap: 26px; flex: 1; }
.main-nav a:not(.btn) { text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:not(.btn):hover, .main-nav a[aria-current="page"] { border-color: var(--ink); }
.nav-cta { margin-left: auto; padding: 12px 18px; }
.menu { display: none; background: none; border: 1.5px solid var(--ink); border-radius: var(--r-ctl); padding: 9px 14px; font: 600 .95rem var(--sans); color: var(--ink); cursor: pointer; }
@media (max-width: 980px) {
  .bar { justify-content: space-between; gap: 16px; }
  .menu { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 20px; }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--rule); }
  .nav-cta { margin: 16px 0 0; }
}

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(24,22,19,.9) 0%, rgba(24,22,19,.74) 40%, rgba(24,22,19,.3) 70%, rgba(24,22,19,.15) 100%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(32px, 5vw, 80px); align-items: center; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); min-height: 680px; }
.hero h1 { max-width: 11ch; }
.hero-copy p { font-size: 1.22rem; max-width: 38ch; margin: 22px 0 0; color: rgba(255,255,255,.9); }
.ticks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--buff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-6.5' fill='none' stroke='%231F1D1A' stroke-width='2'/%3E%3C/svg%3E") center / 22px no-repeat; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(24,22,19,.85), rgba(24,22,19,.6) 45%, rgba(24,22,19,.8)); }
}

/* Builder */
.builder { background: #fff; color: var(--ink); border-radius: 12px; overflow: hidden; }
.builder-home { box-shadow: 0 30px 70px -30px rgba(0,0,0,.65); }
.builder-quote { box-shadow: 0 0 0 1px var(--rule), 0 18px 40px -28px rgba(0,0,0,.35); }
.b-draw { background: var(--sand); border-bottom: 1px solid var(--rule); padding: 10px 14px 4px; position: relative; }
.b-draw svg { width: 100%; height: auto; color: var(--line); }
.b-draw .lbl { position: absolute; left: 16px; top: 12px; font-size: .8rem; font-weight: 600; color: var(--muted); }
#piece-mark { color: var(--line); font-weight: 700; }
.b-body { padding: 18px 20px 20px; }
.seg { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; background: var(--sand); padding: 4px; border-radius: var(--r-ctl); margin-bottom: 14px; }
.seg label { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px 6px; border-radius: 6px; font-size: .76rem; font-weight: 600; color: var(--muted); cursor: pointer; text-align: center; }
.seg svg { width: 26px; height: 18px; }
.seg svg path { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.seg input, .stones input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.seg label:has(input:focus-visible), .stones label:has(input:focus-visible) { outline: 2px solid var(--lichen); }
.fl { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.stones { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.stones label { position: relative; display: flex; align-items: center; gap: 7px; padding: 6px 10px 6px 6px; border: 1px solid var(--rule); border-radius: 999px; font-size: .86rem; font-weight: 500; cursor: pointer; }
.stones i { width: 18px; height: 18px; border-radius: 50%; display: block; border: 1px solid rgba(0,0,0,.12); }
.stones label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 700; }
.sw-york { background: linear-gradient(160deg, #D6C08F, #B59C6B); }
.sw-lime { background: linear-gradient(160deg, #ECE5D3, #D3C9B0); }
.sw-granite { background: radial-gradient(#3F4442 1px, transparent 1.5px) 0 0 / 5px 5px, #8E9290; }
.sw-slate { background: linear-gradient(160deg, #5A646B, #3E464E); }
.sw-marble { background: linear-gradient(125deg, #F1EFEA 0 44%, #B9B5AD 46%, #F1EFEA 50%); }
.sw-unsure { background: repeating-linear-gradient(45deg, #E2E2DC 0 3px, #BDBDB4 3px 4px); }
.dims { display: grid; grid-template-columns: repeat(3, 1fr) .8fr; gap: 8px; margin-bottom: 12px; }
.dims label { font-size: .78rem; font-weight: 700; color: var(--muted); }
.builder input[type=number], .builder input[type=text], .builder select { width: 100%; margin-top: 4px; font: 600 1rem var(--sans); padding: 10px; border: 1px solid #CFC7B8; border-radius: var(--r-ctl); background: #fff; color: var(--ink); min-height: 44px; }
.builder input[type=text] { font-weight: 500; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row2 .fl { margin: 0; }
.more { margin-top: 12px; border-top: 1px solid var(--rule); padding-top: 10px; }
.more summary { cursor: pointer; font-weight: 600; font-size: .95rem; padding: 4px 0; }
.more[open] summary { margin-bottom: 10px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-bottom: 12px; }
.checks label { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.checks input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex: none; }
@media (max-width: 480px) { .checks { grid-template-columns: 1fr; } .dims { grid-template-columns: 1fr 1fr; } }
.total { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 16px 0 14px; padding-top: 14px; border-top: 1px solid var(--rule); }
.total strong { font: 750 1.9rem/1 var(--display); letter-spacing: -.03em; }
.total small { display: block; color: var(--muted); font-size: .84rem; margin-top: 6px; }
.total .spec { font-size: .84rem; color: var(--muted); text-align: right; max-width: 22ch; }
.b-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.b-actions .btn { flex: 1 1 200px; }
.b-actions .textlink { font-size: .92rem; }
.b-error, .form-error { color: var(--error); font-weight: 600; background: #F6E6E1; border-left: 4px solid var(--error); padding: 10px 14px; border-radius: 0 6px 6px 0; }
.added { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 0; padding: 12px 14px; background: #EEF2E6; border-radius: var(--r-ctl); font-weight: 600; font-size: .95rem; }

/* Sections */
.section { padding: var(--space) 0; }
.section.tight-top { padding-top: 0; }
.section-sand { background: var(--sand); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.sec-head p { margin: 10px 0 0; color: var(--muted); max-width: 54ch; }
.page-head { padding: clamp(48px, 6vw, 88px) 0 clamp(36px, 4vw, 56px); background: var(--sand); }
.page-head h1 { font-size: clamp(2.4rem, 4.8vw, 4.2rem); max-width: 16ch; }
.page-head .lede { font-size: 1.2rem; color: var(--muted); max-width: 52ch; margin-top: 18px; }

/* Piece index */
.pieces { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.pieces a { display: flex; flex-direction: column; gap: 12px; padding: 26px 18px 22px; text-decoration: none; border-left: 1px solid var(--rule); }
.pieces a:first-child { border-left: 0; }
.pieces a:hover { background: var(--sand); }
.pieces svg { width: 76px; height: 48px; }
.pieces svg path { fill: #E7D9BC; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.pieces b { font: 650 1.12rem/1.2 var(--display); letter-spacing: -.01em; }
.pieces span { font-size: .92rem; color: var(--muted); margin-top: -8px; }
@media (max-width: 980px) { .pieces { grid-template-columns: repeat(3, 1fr); } .pieces a:nth-child(4) { border-left: 0; } .pieces a:nth-child(n+4) { border-top: 1px solid var(--rule); } }
@media (max-width: 560px) { .pieces { grid-template-columns: repeat(2, 1fr); } .pieces a { border-left: 0; border-top: 1px solid var(--rule); } .pieces a:nth-child(even) { border-left: 1px solid var(--rule); } .pieces a:nth-child(-n+2) { border-top: 0; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--r-img); background: var(--sand); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(251,250,247,.94); font-size: .88rem; font-weight: 600; padding: 6px 10px; border-radius: 6px; }
.g1 { grid-column: span 7; grid-row: span 2; } .g2, .g3 { grid-column: span 5; } .g4, .g5, .g6 { grid-column: span 4; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; } .g1 { grid-column: span 2; grid-row: span 2; } .g2, .g3, .g4, .g5, .g6 { grid-column: span 1; } }

/* Swatches */
.swatch-rows { display: grid; gap: 40px; }
.swatch-rows h3 { margin-bottom: 14px; }
.sw { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.sw figure { margin: 0; }
.chip { aspect-ratio: 1; border-radius: var(--r-img); background-repeat: no-repeat; background-color: #DDD; }
.sw figcaption { margin-top: 10px; font-weight: 700; }
.sw figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .sw { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .sw { grid-template-columns: repeat(2, 1fr); } }
.note-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 40px; padding: 22px 24px; background: #fff; border-radius: var(--r-ctl); }
.note-bar p { margin: 0; font-weight: 600; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: s; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 2px; background: var(--rule); }
.timeline li { counter-increment: s; position: relative; padding-top: 48px; }
.timeline li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 32px; height: 32px; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--ink); border-radius: 50%; font: 750 .95rem var(--display); }
.section-sand .timeline li::before { background: var(--sand); }
.timeline h3 { margin-bottom: 6px; }
.timeline p { margin: 0; color: var(--muted); }
.timeline.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 860px) { .timeline, .timeline.five { grid-template-columns: 1fr; gap: 0; } .timeline::before { left: 15px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; } .timeline li { padding: 0 0 28px 56px; } }

/* Split sections */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.split img { border-radius: var(--r-img); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.dash { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.dash li { padding-left: 28px; position: relative; }
.dash li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 2px; background: var(--lichen); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Dark band */
.band { background: var(--ink); color: #F1ECE2; }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.band p { color: rgba(241,236,226,.78); max-width: 44ch; margin: 16px 0 28px; }
.band svg { width: 100%; height: auto; color: #9FB6C2; }
.band svg .o { fill: none; stroke: #F1ECE2; stroke-width: 1.6; }
.band svg .d { fill: none; stroke: currentColor; stroke-width: 1; }
.band svg text { fill: currentColor; font: italic 15px var(--sans); }
.band.simple .wrap { grid-template-columns: 1fr auto; }
.band.simple h2 { max-width: 20ch; }
@media (max-width: 860px) { .band .wrap, .band.simple .wrap { grid-template-columns: 1fr; } }

/* Service items */
.item-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.item + .item { border-top: 1px solid var(--rule); }
.item h2 { margin-bottom: 14px; }
.item h3 { font-size: 1.05rem; margin: 1.6rem 0 .5rem; }
.item p { color: var(--muted); }
.need { margin: 0; padding-left: 1.2em; color: var(--muted); }
.need li { margin: .25em 0; }
.profiles { margin: 0; padding: 20px; background: var(--sand); border-radius: var(--r-ctl); }
.profiles figcaption { font-size: .9rem; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.profile-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 14px; }
.profile-row svg path { fill: #E7D9BC; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.profile-row span { display: block; font-size: .88rem; margin-top: 4px; text-align: center; font-weight: 600; }
.item-photo { border-radius: var(--r-img); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (max-width: 860px) { .item-grid { grid-template-columns: 1fr; } }

/* Stone table */
.stone-table { border-top: 2px solid var(--ink); }
.st-row { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) minmax(0, 18rem); gap: 8px 32px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.st-head { padding: 10px 0; font-size: .85rem; color: var(--muted); font-weight: 700; }
.st-name { display: flex; align-items: center; gap: 14px; font: 650 1.2rem/1.2 var(--display); }
.st-name i { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); flex: none; }
@media (max-width: 760px) { .st-row { grid-template-columns: 1fr; } .st-head { display: none; } }

/* Lists, FAQ, prose */
.ledger { margin: 0; border-top: 2px solid var(--ink); }
.ledger > div { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 8px 32px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.ledger dt { font: 650 1.15rem/1.25 var(--display); }
.ledger dd { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .ledger > div { grid-template-columns: 1fr; } }
.two-col { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 2px solid var(--ink); }
.faq summary { cursor: pointer; padding: 18px 0; font: 650 1.15rem/1.3 var(--display); }
.faq details p { color: var(--muted); padding-bottom: 8px; }
.prose h2 { font-size: 1.6rem; margin: 2rem 0 .6rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); }

/* Quote page */
.quote-grid { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.quote-side { position: sticky; top: 96px; }
@media (max-width: 980px) { .quote-grid { grid-template-columns: minmax(0, 1fr); } .quote-side { position: static; } }
.cutting-list h2, .contact h2 { font-size: 1.8rem; margin-bottom: 14px; }
.empty { color: var(--muted); background: var(--sand); padding: 18px 20px; border-radius: var(--r-ctl); }
.table-scroll { overflow-x: auto; position: relative; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; border: 1px solid var(--rule); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 700; white-space: nowrap; background: var(--sand); }
td:first-child { font-weight: 700; color: var(--line); }
.link-btn { font: inherit; background: none; border: 0; padding: 0; color: var(--line); text-decoration: underline; cursor: pointer; }
.contact { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--rule); }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-weight: 600; margin-bottom: 6px; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; font: 400 1rem var(--sans); color: var(--ink); background: #fff; border: 1px solid #CFC7B8; border-radius: var(--r-ctl); padding: 11px 12px; min-height: 46px; }
.field textarea { resize: vertical; }
.fields2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .fields2 { grid-template-columns: 1fr; } }
.hint { font-size: .95rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--sand); padding: 56px 0 28px; font-size: .95rem; }
.fgrid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.fgrid h2 { font: 650 1rem var(--display); letter-spacing: 0; margin: 0 0 12px; }
.fgrid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); }
.fgrid ul a { text-decoration: none; }
.fgrid ul a:hover { text-decoration: underline; }
.f-intro { margin: 12px 0 10px; color: var(--muted); }
.f-contact { color: var(--muted); overflow-wrap: anywhere; }
.fine { border-top: 1px solid var(--sand-2); margin-top: 40px; padding-top: 18px; font-size: .8rem; color: var(--muted); }
.fine p { margin: 0 0 6px; max-width: none; }
@media (max-width: 860px) { .fgrid { grid-template-columns: 1fr 1fr; } .fgrid > div:first-child { grid-column: 1 / -1; } }
.intro { color: var(--muted); margin-top: 1rem; }
.finishes { margin-top: 2rem; }

/* ===== World-class pass ===== */
:root { --ink-2: #34302B; --field: #857B6C; }
p { color: var(--ink-2); }
.sec-head p, .page-head .lede, .item p, .prose p, .timeline p, .faq details p { color: var(--ink-2); }
h1 { font-variation-settings: "opsz" 96; }
h2, h3 { font-variation-settings: "opsz" 36; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }

/* Headline masks for the entrance */
.mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.line { display: inline-block; }

/* Header */
.site-header { transition: background-color .2s ease; }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(251,250,247,.9); backdrop-filter: blur(10px); } }
.bar { min-height: 70px; }
.main-nav a[aria-current="page"], .main-nav a:not(.btn):hover { border-color: var(--line); }
.nav-contact { display: flex; gap: 18px; margin-left: auto; font-size: .95rem; color: var(--muted); }
.nav-contact a { text-decoration: none; }
.nav-contact a:hover { color: var(--ink); text-decoration: underline; }
.nav-cta { margin-left: 0; }
.count { font-weight: 700; }
@media (max-width: 980px) {
  .nav-contact { margin: 14px 0 0; flex-direction: column; gap: 4px; font-size: 1.05rem; }
  .nav-contact a { padding: 10px 0; }
}
.promo { display: none; }

/* Hero */
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero picture img { object-fit: cover; object-position: 60% 45%; }
.hero::before { z-index: 1; }
.hero h1 { max-width: 12ch; }
.ticks li::before { width: 14px; height: 2px; border-radius: 0; background: var(--buff); }
.ticks li { font-weight: 500; color: rgba(255,255,255,.92); }
.hero-copy p { color: rgba(255,255,255,.9); }

/* Builder */
.builder input[type=number], .builder input[type=text], .builder select, .field input, .field textarea { border-color: var(--field); }
[aria-invalid="true"] { border: 2px solid var(--error) !important; }
.seg label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); }
.b-draw .lbl { margin: 0; }
.total { display: block; }
.t-spec { margin: 0; font: 650 1.3rem/1.2 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--ink); }
.t-note { margin: 6px 0 0; font-size: .88rem; color: var(--muted); }
.b-error:empty, .form-error:empty, .added:empty { display: none; }
.b-error, .form-error { margin: 0 0 12px; }

/* Piece index */
.pieces-section { padding-bottom: clamp(48px, 6vw, 80px); }
.pieces { border: 0; gap: 14px; }
.pieces a { border: 0 !important; padding: 0 0 6px; gap: 10px; border-radius: var(--r-img); }
.pieces a:hover { background: none; }
.pc { display: grid; place-items: center; background: var(--sand); border-radius: var(--r-img); aspect-ratio: 5/3; transition: background-color .2s ease; }
.pieces a:hover .pc { background: var(--sand-2); }
.pieces svg { width: 72%; height: auto; }
.pieces svg .dl { fill: none; stroke: var(--line); stroke-width: 1; opacity: 0; transition: opacity .25s ease; }
.pieces svg .cut { fill: var(--paper); }
.pieces a:hover svg .dl, .pieces a:focus-visible svg .dl { opacity: 1; }
.pieces b { margin-top: 4px; }
.pieces span:not(.pc) { margin-top: -6px; }
@media (max-width: 980px) { .pieces { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .pieces { grid-template-columns: repeat(2, 1fr); } }

/* Gallery, five tiles */
.g1 { grid-column: span 6; grid-row: span 2; } .g2, .g3 { grid-column: span 6; } .g4, .g5 { grid-column: span 6; }
.gallery { grid-auto-rows: 210px; }
.g2, .g3 { grid-column: span 3; } .g4 { grid-column: span 4; } .g5 { grid-column: span 2; }
.gallery { grid-template-columns: repeat(12, 1fr); }
.g1 { grid-column: 1 / span 6; grid-row: 1 / span 2; } .g2 { grid-column: 7 / span 3; grid-row: 1; } .g3 { grid-column: 10 / span 3; grid-row: 1; } .g4 { grid-column: 7 / span 6; grid-row: 2; } .g5 { grid-column: 1 / span 12; grid-row: 3; }
.g5 { display: none; }
@media (max-width: 860px) { .g1, .g2, .g3, .g4 { grid-column: auto; grid-row: auto; } .g1 { grid-column: span 2; grid-row: span 2; } .g4 { grid-column: span 2; } }

/* Drawn stone textures */
.tex { background-color: #DDD; }
.tex-york { background: repeating-linear-gradient(168deg, rgba(120,92,52,.18) 0 2px, transparent 2px 9px), linear-gradient(160deg, #D6C08F, #B59C6B); }
.tex-lime { background: radial-gradient(rgba(140,120,80,.22) .8px, transparent 1.2px) 0 0 / 7px 7px, radial-gradient(rgba(140,120,80,.14) .8px, transparent 1.2px) 3px 4px / 9px 9px, linear-gradient(160deg, #EFE8D6, #D9CFB6); }
.tex-granite { background: radial-gradient(#2E3231 1.1px, transparent 1.6px) 0 0 / 6px 6px, radial-gradient(#E8E9E6 1px, transparent 1.5px) 3px 2px / 7px 7px, radial-gradient(#5D6260 1.4px, transparent 2px) 1px 4px / 11px 11px, #8E9290; }
.tex-slate { background: repeating-linear-gradient(176deg, rgba(255,255,255,.07) 0 1px, transparent 1px 6px), linear-gradient(160deg, #5A646B, #3E464E); }
.tex-marble { background: linear-gradient(118deg, transparent 0 40%, rgba(150,145,138,.55) 41%, transparent 43% 64%, rgba(170,165,158,.4) 65%, transparent 66%), linear-gradient(160deg, #F4F2EE, #E2DFD8); }
.tex-flamed { background: radial-gradient(rgba(40,40,40,.35) .9px, transparent 1.4px) 0 0 / 4px 4px, radial-gradient(rgba(255,255,255,.35) .9px, transparent 1.4px) 2px 2px / 5px 5px, #8A8D8B; }
.tex-unsure { background: repeating-linear-gradient(45deg, #E2E2DC 0 3px, #BDBDB4 3px 4px); }
.chip { box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.stones i { box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); border: 0; }

/* How to measure */
.measure { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.measure h2 { margin-bottom: 16px; }
.measure-fig { margin: 0; background: var(--sand); border-radius: var(--r-ctl); padding: 20px; }
.section-sand .measure-fig { background: #fff; }
.measure-fig svg { width: 100%; height: auto; color: var(--line); }
.measure-fig .o { fill: #E7D9BC; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.measure-fig .d { fill: none; stroke: currentColor; stroke-width: 1.2; }
.measure-fig text { fill: currentColor; font: italic 15px var(--sans); }
.measure-fig figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.glossary { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 28px; }
.glossary h3 { margin-bottom: 14px; }
.glossary dl { margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.glossary dt { font: 650 1.05rem/1.2 var(--display); margin-bottom: 4px; }
.glossary dd { margin: 0; color: var(--ink-2); font-size: .95rem; }
.more-link { margin-top: 8px; }
@media (max-width: 900px) { .measure { grid-template-columns: 1fr; } .glossary dl { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .glossary dl { grid-template-columns: 1fr; } }

/* Timeline with a fill */
.tl { position: relative; }
.tl .timeline::before { display: none; }
.tl::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 2px; background: var(--rule); }
.tl-fill { position: absolute; left: 0; right: 0; top: 15px; height: 2px; background: var(--ink); transform-origin: left center; }
.timeline li::before { transition: background-color .3s ease, color .3s ease; }
.motion .timeline li.lit::before, .timeline li.lit::before { background: var(--ink); color: #fff; }
.section-sand .timeline li.lit::before { background: var(--ink); }
.tl-vertical::before, .tl-vertical .tl-fill { left: 15px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform-origin: center top; }
.tl-vertical .tl-fill { bottom: 0; }
.stages { grid-template-columns: 1fr; gap: 0; }
.stages li { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 6px 40px; padding: 0 0 40px 64px; }
.stages li::before { top: 0; }
.stages p { max-width: 60ch; }
@media (max-width: 860px) {
  .tl::before, .tl .tl-fill { left: 15px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform-origin: center top; }
  .stages li { grid-template-columns: 1fr; padding-left: 56px; }
}

/* Services */
.svc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding-top: clamp(32px, 4vw, 56px); }
.svc-index { position: sticky; top: 96px; align-self: start; display: grid; gap: 2px; border-left: 2px solid var(--rule); }
.svc-index a { text-decoration: none; padding: 8px 0 8px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); font-weight: 500; }
.svc-index a:hover, .svc-index a.on { color: var(--ink); border-left-color: var(--line); }
.item { padding: clamp(40px, 5vw, 72px) 0; }
.item:first-child { padding-top: 0; }
.item h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 650; letter-spacing: -.02em; }
.item .btn.ghost { margin-top: 24px; }
.diagram { width: 100%; height: auto; color: var(--line); }
.diagram path { fill: #E7D9BC; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.diagram path.cut { fill: var(--paper); stroke-dasharray: 4 3; }
.diagram path.dl { fill: none; stroke: currentColor; stroke-width: 1; }
.diagram text { fill: currentColor; font: italic 12px var(--sans); }
.profiles .inset { margin-top: 16px; border-radius: var(--r-img); aspect-ratio: 16/9; object-fit: cover; width: 100%; }
@media (max-width: 980px) {
  .svc-layout { grid-template-columns: 1fr; }
  .svc-index { position: sticky; top: 70px; z-index: 5; display: flex; overflow-x: auto; gap: 6px; border: 0; background: var(--paper); padding: 10px 0; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); }
  .svc-index a { white-space: nowrap; border: 1px solid var(--rule); border-radius: 999px; padding: 8px 14px; margin: 0; }
  .svc-index a.on { border-color: var(--ink); }
}

/* Materials */
table.stone-table { border: 0; border-top: 2px solid var(--ink); background: none; }
.stone-table th, .stone-table td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--rule); background: none; vertical-align: middle; }
.stone-table thead th { font-size: .85rem; color: var(--muted); font-weight: 700; padding-top: 12px; padding-bottom: 12px; }
.stone-table tbody th { font-weight: 400; color: var(--ink); }
.st-name { display: flex; align-items: center; gap: 16px; }
.st-name .tile { width: 64px; height: 64px; border-radius: var(--r-img); flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.table-note { margin-top: 20px; color: var(--ink-2); }
@media (max-width: 760px) {
  .stone-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stone-table tr { display: grid; grid-template-columns: 1fr; padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .stone-table th, .stone-table td { border: 0; padding: 4px 0; }
}
.finish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.finish-grid figure { margin: 0; background: #fff; border-radius: var(--r-ctl); padding: 18px; }
.finish-grid svg { width: 100%; height: auto; margin-bottom: 12px; }
.finish-grid svg path { fill: #E7D9BC; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.finish-grid svg .fine { fill: none; stroke-width: 1; }
.finish-grid svg .shine { fill: none; stroke: var(--line); stroke-width: 2; }
.finish-grid b { display: block; font: 650 1.15rem/1.2 var(--display); margin-bottom: 4px; }
.finish-grid figcaption { color: var(--ink-2); font-size: .95rem; }

/* About */
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 21/8; object-fit: cover; object-position: 35% 50%; }
.statements { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.statements div { border-top: 2px solid var(--buff); padding-top: 18px; }
.statements h3 { font-size: 1.5rem; margin-bottom: 10px; }
@media (max-width: 800px) { .statements { grid-template-columns: 1fr; } .about-photo img { aspect-ratio: 4/3; } }

/* Quote page */
.quote-section { padding-top: clamp(32px, 4vw, 56px); }
.step-label { font-weight: 700; color: var(--line); margin: 0 0 10px; font-size: .95rem; }
.quote-side { top: 88px; }
@media (min-width: 981px) { .quote-side { max-height: calc(100vh - 100px); overflow: auto; border-radius: 12px; } }
.cl-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cl-count { color: var(--muted); font-weight: 600; }
.empty { display: flex; align-items: center; gap: 20px; }
.empty svg { width: 120px; flex: none; }
.empty svg path { fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-dasharray: 4 3; }
.empty p { margin: 0; color: var(--muted); }
.card { background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--rule); padding: clamp(20px, 3vw, 32px); }
.contact.card { margin-top: 36px; border-top: 0; }
.contact h2 { font-size: 1.6rem; }
.actions .textlink { align-self: center; }
th[scope="row"] { font-weight: 700; color: var(--line); background: #fff; }
@media (max-width: 760px) {
  #cl-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  #cl-table, #cl-table tbody, #cl-table tr { display: block; }
  #cl-table { border: 0; background: none; }
  #cl-table tr { position: relative; background: #fff; border: 1px solid var(--rule); border-radius: var(--r-ctl); padding: 14px 16px; margin-bottom: 10px; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; }
  #cl-table th, #cl-table td { display: block; border: 0; padding: 0; }
  #cl-table th[scope="row"] { grid-row: span 3; font: 750 1.3rem/1 var(--display); }
  #cl-table td::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 400; }
  #cl-table td.rm { position: absolute; right: 16px; top: 14px; }
  #cl-table td.rm::before { content: none; }
  .send { width: 100%; }
}
.list-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; background: var(--paper); border-radius: 12px; box-shadow: 0 0 0 1px var(--rule), 0 12px 30px -12px rgba(0,0,0,.35); font-weight: 700; }
@media (max-width: 980px) { .list-bar:not([hidden]) { display: flex; } }

/* Bands and footer */
.band .btn.light:hover { background: var(--buff); }
.band :focus-visible, .site-footer :focus-visible { outline-color: var(--line); }
.band :focus-visible { outline-color: #F1ECE2; }
.site-footer { position: relative; padding-top: 72px; }
.footer-line { position: absolute; top: 0; left: 0; width: 100%; height: 40px; color: var(--line); opacity: .5; }
.footer-line path { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.footer-line .d { stroke: currentColor; }
.f-mark { font-size: 1.6rem; }
.f-contact a { text-decoration: none; }
.f-contact a:hover { text-decoration: underline; }
.fgrid ul { gap: 4px; }
.fgrid ul a { display: inline-block; padding: 6px 0; }
.fine details summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.fine details p { margin-top: 6px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Stone textures from noise */
.tex-granite { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.17 0 0 0 0 0.17 0 0 0 2.4 -1.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' fill='%238A8E8C'/%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='1' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.92 0 0 0 0 0.93 0 0 0 0 0.91 0 0 0 3 -1.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' fill='none'/%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E"), #8A8E8C; background-size: cover; }
.tex-lime { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.48 0 0 0 0 0.36 0 0 0 1.3 -0.62'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' fill='%23E6DEC9'/%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E"), #E6DEC9; background-size: cover; }
.tex-slate { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.08 0.9' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.23 0 0 0 0 0.26 0 0 0 1.8 -0.7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' fill='%234C565E'/%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E"), #4C565E; background-size: cover; }
.tex-flamed { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.18 0 0 0 0 0.18 0 0 0 0 0.18 0 0 0 2.2 -1.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' fill='%238C8F8D'/%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E"), #8C8F8D; background-size: cover; }
.tex-york { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04 0.6' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.34 0 0 0 0 0.2 0 0 0 1.6 -0.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' fill='%23C9B184'/%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E"), linear-gradient(160deg, #D6C08F, #B59C6B); background-size: cover; }
img { height: auto; }
.gallery img, .hero picture img, .chip img { height: 100%; }

/* ===== Brand layer: keystone identity ===== */
:root {
  --paper: #ECE9E3;     /* Portland */
  --sand: #F7F5F1;      /* Chalk */
  --sand-2: #DDD8CF;
  --rule: #C9C3B8;
  --ink: #1F2428;       /* Slate */
  --ink-2: #4A4741;
  --muted: #66625B;     /* Lichen */
  --lichen: #8A5A2E;    /* Hamstone: primary action */
  --lichen-d: #6E4723;
  --buff: #C9A77C;      /* Sandstone, accent on Slate */
  --line: #8A5A2E;      /* dimension lines take the V-cut colour */
  --moss: #4D5A47;
  --field: #8C857A;
  --display: "Cinzel", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
}
body { font-family: var(--sans); }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: .02em; line-height: 1.1; font-variation-settings: normal; }
h1 { font-size: clamp(2.4rem, 5vw, 4.3rem); line-height: 1.04; letter-spacing: .015em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3, .pieces b, .ledger dt, .glossary dt, .faq summary, .finish-grid b, .timeline h3, .statements h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -.005em; font-variation-settings: normal; }
.item h2 { font-family: var(--display); font-weight: 500; letter-spacing: .02em; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.page-head h1 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); max-width: 20ch; }
.t-spec { font-family: var(--sans); font-weight: 700; }
.cutting-list h2, .contact h2 { font-size: 1.6rem; }
#cl-table th[scope="row"] { font-family: var(--sans); }

/* Header and lockup */
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(236,233,227,.9); } }
.site-header { background: var(--paper); border-bottom-color: var(--rule); }
.mark { gap: 12px; font-family: var(--display); }
.keystone { width: 34px; height: 34px; flex: none; }
.lockup { display: inline-flex; flex-direction: column; gap: 4px; }
.lk-1 { font: 600 1.18rem/0.9 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.lk-2 { display: flex; align-items: center; gap: 7px; font: 500 .62rem/1 var(--display); letter-spacing: .42em; text-transform: uppercase; }
.lk-2 i { display: block; width: 18px; height: 1.5px; background: var(--lichen); }
.f-mark .keystone { width: 44px; height: 44px; }
.f-mark .lk-1 { font-size: 1.5rem; }
.f-mark .lk-2 { font-size: .78rem; }
.f-mark .lk-2 i { width: 24px; }

/* Buttons: square-cornered like cut stone */
.btn { border-radius: 2px; font-weight: 700; letter-spacing: .01em; }
.btn.ink { background: var(--ink); }
.btn.ghost { box-shadow: inset 0 0 0 1px currentColor; }
.btn.light:hover { background: var(--buff); color: var(--ink); }
.builder, .card, .list-bar { border-radius: 4px; }
.seg, .stones label, .note-bar, .measure-fig, .profiles, .finish-grid figure, .empty { border-radius: 2px; }
.stones label { border-radius: 2px; }
.textlink { text-decoration-color: var(--lichen); }
a:not(.btn):hover { color: var(--lichen); }

/* Hero and dark grounds take Slate */
.hero::before { background: linear-gradient(90deg, rgba(31,36,40,.92) 0%, rgba(31,36,40,.76) 40%, rgba(31,36,40,.3) 70%, rgba(31,36,40,.12) 100%); }
@media (max-width: 980px) { .hero::before { background: linear-gradient(180deg, rgba(31,36,40,.88), rgba(31,36,40,.62) 45%, rgba(31,36,40,.82)); } }
.band { background: var(--ink); }
.band svg { color: var(--buff); }
.ticks li::before { background: var(--buff); }

/* Drawings use the brand stone fill */
.pieces svg path, .profile-row svg path, .diagram path, .finish-grid svg path, .measure-fig .o { fill: #DCD3C3; stroke: var(--ink); }
.diagram path.cut, .pieces svg .cut { fill: var(--sand); }
.diagram path.dl, .pieces svg .dl { stroke: var(--line); fill: none; }
.pc { background: var(--sand); }
.pieces a:hover .pc { background: #fff; }
.section-sand .measure-fig, .finish-grid figure, .note-bar { background: #fff; }
.b-draw { background: var(--paper); }

/* Coursing band */
.site-footer { background: var(--sand); padding-top: 0; }
.coursing { display: grid; gap: 3px; margin-bottom: 56px; }
.coursing div { display: flex; gap: 3px; height: 14px; }
.coursing i { display: block; background: var(--ink); }
.coursing i.h { background: var(--lichen); }
.fine { border-top-color: var(--rule); }

/* Round-two fixes */
.send-fallback { margin: 8px 0 16px; padding: 18px; background: var(--paper); border-radius: 2px; box-shadow: inset 0 0 0 1px var(--rule); }
.send-fallback p { margin: 0 0 10px; font-weight: 600; color: var(--ink); }
.send-fallback textarea { width: 100%; font: 400 .9rem/1.5 ui-monospace, Menlo, Consolas, monospace; padding: 10px; border: 1px solid var(--field); border-radius: 2px; background: #fff; color: var(--ink); }
.send-fallback .actions { margin-top: 12px; }
.noscript-note { padding-top: 16px; }
.noscript-note p { background: #fff; padding: 14px 16px; border-left: 4px solid var(--lichen); font-weight: 600; }
.mobile-cta { display: none; }
@media (max-width: 760px) {
  html { scroll-padding-top: 150px; }
  .mobile-cta { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); box-shadow: 0 -1px 0 var(--rule), 0 -10px 24px -16px rgba(0,0,0,.4); }
  .mobile-cta a:not(.btn) { font-weight: 700; text-decoration: none; padding: 10px 0; }
  .mobile-cta .btn { padding: 12px 16px; }
  body { padding-bottom: 72px; }
  .page-quote .mobile-cta { display: none; }
  .page-quote body, body.page-quote { padding-bottom: 0; }
}
@media (max-height: 520px) { .site-header { position: static; } .list-bar:not([hidden]) { display: none; } }

/* Product modules: steps, copings and sills render their own fields into #module-panel */
.dims { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dims .qty-field { grid-column: 1 / -1; max-width: 220px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.stepper { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 4px; margin-top: 4px; }
.stepper input[type=number] { margin-top: 0; text-align: center; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.st-btn { min-height: 44px; border: 1px solid var(--field); border-radius: 2px; background: var(--sand); color: var(--ink); font: 700 1.2rem/1 var(--sans); cursor: pointer; }
.st-btn:hover { background: #fff; }
.mod { margin-bottom: 4px; }
.mgroup { margin: 0 0 14px; padding-top: 12px; border-top: 1px solid var(--rule); }
.mgroup:first-child { border-top: 0; padding-top: 0; }
.mgroup > legend { float: left; width: 100%; margin-bottom: 8px; }
.mgroup > legend + * { clear: both; }
.mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 10px; }
.mfield { min-width: 0; }
.mfield.wide, .mrows.wide { grid-column: 1 / -1; }
.ml { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); line-height: 1.3; }
.mfield > fieldset, fieldset.mfield { margin: 0; }
fieldset.mfield > legend.ml { margin-bottom: 6px; }
.mh { display: block; margin: 4px 0 0; font-size: .8rem; line-height: 1.4; color: var(--muted); }
.me { display: block; font-size: .82rem; font-weight: 600; color: var(--error); margin-top: 4px; }
.me:empty { display: none; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 9px 12px; min-height: 44px; border: 1px solid var(--field); border-radius: 2px; background: #fff; font-size: .9rem; font-weight: 600; cursor: pointer; flex: 1 1 auto; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt small { font-size: .76rem; font-weight: 500; color: var(--muted); }
.opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); background: var(--sand); }
.opt:has(input:focus-visible) { outline: 3px solid var(--lichen); outline-offset: 2px; }
.opts.cards .opt { flex: 1 1 120px; }
.mcheck { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: .92rem; font-weight: 600; cursor: pointer; }
.mcheck input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.mrows { display: grid; gap: 10px; }
.mrow { margin: 0; padding: 10px 12px 8px; background: var(--paper); border-radius: 2px; box-shadow: inset 0 0 0 1px var(--rule); min-width: 0; }
.mrow-h { float: left; width: 100%; margin: 0 0 6px; font-weight: 700; font-size: .9rem; }
.mrow-h + * { clear: both; }
.row-acts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; font-size: .88rem; }
.row-acts .link-btn, .b-actions .link-btn { min-height: 44px; }
.btn.add-row { justify-self: start; padding: 12px 16px; font-size: .92rem; }
.b-sched { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; font-size: .86rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.b-sched li { padding-left: 14px; position: relative; overflow-wrap: anywhere; }
.b-sched li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1.5px; background: var(--lichen); }
.b-checks { margin: 0 0 14px; padding: 12px 14px; background: var(--paper); border-radius: 2px; }
.b-checks-h { margin: 0 0 6px; font-weight: 700; font-size: .9rem; color: var(--ink); }
.b-checks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.b-checks li { font-size: .86rem; line-height: 1.45; padding-left: 12px; border-left: 3px solid #B7791F; color: var(--ink); }
.b-checks li.info { border-left-color: var(--field); color: var(--ink-2); }
.b-checks ul:empty { display: none; }
.b-foot { margin: 8px 0 0; font-size: .8rem; color: var(--muted); }
.b-foot:empty { display: none; }
.has-module .b-draw svg { max-height: 260px; }
@media (max-width: 359px) { .mgrid { grid-template-columns: minmax(0, 1fr); } .mgrid .mfield.mf-number, .mgrid .mfield.mf-stepper, .mgrid .mfield.mf-select { grid-column: auto; } }

/* Cutting list: designs grouped under a heading row, with edit and duplicate */
#cl-table tbody.grp-body { border-top: 2px solid var(--ink); }
#cl-table tr.grp th { background: var(--paper); white-space: normal; color: var(--ink); }
.grp-name { font-weight: 700; margin-right: 6px; }
.grp-sum { font-weight: 400; color: var(--ink-2); font-size: .9rem; }
#cl-table td.rm { white-space: nowrap; }
#cl-table td.rm .link-btn + .link-btn { margin-left: 12px; }
#cl-table td.rm .link-btn { min-height: 32px; }
@media (max-width: 760px) {
  #cl-table tbody { display: block; }
  #cl-table tr.grp { display: block; padding: 12px 0 6px; background: none; border: 0; margin: 14px 0 6px; }
  #cl-table tr.grp th { display: block; background: none; padding: 0; font-family: var(--sans); }
  #cl-table tr.grp td.rm { position: static; display: flex; gap: 16px; margin-top: 4px; }
  #cl-table tr.line td.rm { position: static; grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; }
  #cl-table tr.line td.rm:empty { display: none; }
  #cl-table td.rm .link-btn { min-height: 44px; }
  #cl-table td.rm .link-btn + .link-btn { margin-left: 0; }
}
/* A module panel is taller than the screen, so the builder scrolls with the page instead of sticking. */
.quote-side:has(.has-module) { position: static; }
#cl-table td.pc-cell { min-width: 15rem; }
#cl-table td.sz { white-space: nowrap; }
.pd { display: block; margin-top: 2px; font-size: .82rem; line-height: 1.4; color: var(--muted); }

/* ===== Product landing pages (stream W2: /stone-steps, /stone-copings, /stone-sills,
   /stone-hearths, /stone-worktops, /paving-cut-to-size) and the hub links to them ===== */
.crumbs ol { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--field); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.page-head .actions { margin-top: 28px; }
.product-copy h2 { margin-bottom: 18px; }
.product-copy h3 { font-size: 1.05rem; margin: 1.8rem 0 .4rem; }
.product-copy .dash { margin: 12px 0 0; }
.dash li b { color: var(--ink); }
.dash li { color: var(--ink-2); }
.measure .dash { margin: 18px 0 22px; }
.measure-fig .s { fill: var(--sand); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.section-sand .measure-fig .s { fill: var(--paper); }
.ledger dd { color: var(--ink-2); }
.advisory { margin: 22px 0 0; padding: 14px 18px; background: var(--sand); border-left: 3px solid var(--line); font-size: .95rem; color: var(--ink-2); max-width: none; }
.quote-need { align-items: start; }
.quote-need .card h2 { font-size: 1.6rem; }
.checklist { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; color: var(--ink-2); }
.checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border: 1.5px solid var(--ink); border-radius: 2px; }
.checklist li::after { content: ""; position: absolute; left: 7px; top: calc(.2em + 3px); width: 6px; height: 11px; border: solid var(--lichen); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.card .hint { margin: 14px 0 0; }
.related .pc { background: #fff; }
.related .pieces a:hover .pc { background: var(--sand-2); }
.item .actions { margin-top: 24px; }
.item .actions .btn.ghost { margin-top: 0; }

/* P2a hearths and surrounds: taller plan and elevation drawings.
   Release: eight piece types (seven modules and Other) sit in two rows of four at every width. */
.seg { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seg label { min-width: 0; min-height: 44px; justify-content: center; }
.builder[data-piece="hearth"] .b-draw svg, .builder[data-piece="surround"] .b-draw svg { max-height: 340px; }

/* ----- P2b paving builder (phase2-paving) ----- */
/* Module builders scroll with the page on wide screens too, instead of inside a short box. */
.quote-side:has(.has-module) { max-height: none; overflow: visible; }
#piece-svg g.pv:hover > rect, #piece-svg g.pv:hover > path { stroke: var(--ink); stroke-width: 1.4; }
/* The paving plan is a drawing of the whole area, so it gets more height than a single piece. */
.builder:has(.seg input[value="paving"]:checked) .b-draw svg { max-height: 380px; }
/* ----- end P2b ----- */

/* Worktop plan editor (stone-core worktops module): cut-outs drag on the plan or move with the arrow keys.
   On the quote page at desktop width the builder takes the full width, with the plan beside the fields. */
#builder[data-module="worktops"] .b-draw svg { max-height: none; }
#builder[data-module="worktops"] .b-draw { padding: 30px 8px 6px; }
.wt-obj { cursor: grab; touch-action: none; outline: none; }
.wt-obj.dragging { cursor: grabbing; }
.wt-obj:focus-visible .co, .wt-obj.dragging .co { stroke: var(--lichen); stroke-width: 3; }
.wt-obj:hover .co { stroke-width: 2.2; }
.wt-rd { font-variant-numeric: tabular-nums; }
.b-checks .fix-btn { display: block; margin-top: 2px; min-height: 32px; font-weight: 700; text-align: left; }
@media (min-width: 981px) {
  .quote-grid:has(#builder[data-module="worktops"]) { grid-template-columns: minmax(0, 1fr); }
  .quote-grid:has(#builder[data-module="worktops"]) .quote-side { position: static; max-height: none; overflow: visible; }
  #builder.builder-quote[data-module="worktops"] { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; overflow: clip; }
  #builder.builder-quote[data-module="worktops"] .b-draw { position: sticky; top: 84px; border-bottom: 0; border-right: 1px solid var(--rule); }
}
@media (forced-colors: active) { .wt-obj:focus-visible .co { stroke: Highlight; } }

/* ----- Release: product and finish renders (assets/img/renders.json) ----- */
/* Renders sit on Chalk, close to the panel colour; 16:10 trims the empty margin round the piece. */
.profiles .inset.render { margin-top: 16px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; height: auto; background: #F7F5F1; }
.profiles .inset.render + .inset { margin-top: 10px; }
.chip .render-chip { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.finish-grid .render-chip, .finish-grid .chip { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 12px; border-radius: 2px; }
