/* ==========================================================================
   Slabline | Stone Countertop Fabricator HTML Template
   Table of contents
   1. Base          2. Layout & type     3. Buttons & links
   4. Header & nav  5. Hero              6. Sections
   7. Materials     8. Process           9. Edges
   10. Estimator    11. Reviews & CTA    12. Forms
   13. Footer       14. Motion           15. Breakpoints
   All colors, fonts, spacing and timings come from tokens.css.
   ========================================================================== */

/* 1. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--text-base)/1.6 var(--font-body); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-deep); text-underline-offset: .2em; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: var(--space-sm) var(--space-md); z-index: var(--z-modal); }
.skip:focus { left: var(--space-md); }
[hidden] { display: none !important; }

/* 2. Layout & type ------------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, 76rem); margin-inline: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 var(--space-md); text-wrap: balance; }
h2 { font-size: var(--text-display-s); }
h3 { font-size: var(--text-md); letter-spacing: -0.005em; }
p { margin: 0 0 var(--space-md); }
.eyebrow { font: 600 var(--text-sm)/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-deep); margin-bottom: var(--space-sm); }
.section--dark .eyebrow, .hero .eyebrow, .page-head .eyebrow, .est__result .eyebrow { color: var(--tint); }

/* 3. Buttons & links ----------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.35em; border-radius: var(--radius); font: 600 1rem/1 var(--font-body); text-decoration: none; white-space: nowrap; border: 2px solid transparent; transition: background var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.btn { flex-shrink: 0; }
/* Solid CTA: honed-stone depth (top sheen + warm cast shadow), a drawn arrow that advances,
 * and the templating laser sweeping across on hover. All derived from --brand. */
.btn--solid { position: relative; isolation: isolate; overflow: hidden; min-height: 2.75rem; background: var(--brand-deep); color: #fff; letter-spacing: .005em;
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / .22), inset 0 -1px 0 oklch(0% 0 0 / .18), 0 1px 2px oklch(25% 0.06 25 / .3), 0 10px 22px -12px oklch(45% 0.135 25 / .75);
  transition: background var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.btn--solid::before { content: ""; position: absolute; inset: -1px auto -1px -30%; width: 22%; z-index: -1; background: linear-gradient(100deg, transparent, oklch(100% 0 0 / .28) 45%, oklch(100% 0 0 / .5) 50%, transparent 56%); transform: skewX(-18deg) translateX(0); opacity: 0; pointer-events: none; }
.btn--solid::after { content: ""; flex: none; width: 1em; height: 1em; background: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h11M10.5 5l5 5-5 5'/%3E%3C/svg%3E"); -webkit-mask-position: center; -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat;
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h11M10.5 5l5 5-5 5'/%3E%3C/svg%3E"); mask-position: center; mask-size: contain; mask-repeat: no-repeat;
  transition: transform var(--dur-short) var(--ease-out); }
.btn--solid:hover { background: var(--brand); color: #fff; transform: translateY(-1px);
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / .26), inset 0 -1px 0 oklch(0% 0 0 / .18), 0 2px 4px oklch(25% 0.06 25 / .25), 0 16px 30px -14px oklch(50% 0.145 25 / .85); }
.btn--solid:hover::before { opacity: 1; transform: skewX(-18deg) translateX(720%); transition: transform var(--dur-long) var(--ease-out), opacity var(--dur-micro); }
.btn--solid:hover::after { transform: translateX(3px); }
.btn--solid:active { transform: translateY(1px); box-shadow: inset 0 1px 2px oklch(0% 0 0 / .25), 0 1px 2px oklch(25% 0.06 25 / .3); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--brand-deep); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " \2192"; display: inline-block; transition: transform var(--dur-short) var(--ease-out); }
.link-arrow:hover::after { transform: translateX(4px); }

/* 4. Header & nav -------------------------------------------------------- */
[id] { scroll-margin-top: 5.5rem; } /* hash links (contact.html#quote, materials.html#compare) land below the sticky header */
.site-header { position: sticky; top: 0; z-index: var(--z-sticky); background-color: var(--paper); border-bottom: 1px solid transparent; transition: border-color var(--dur-short), box-shadow var(--dur-short); }
.site-header.is-scrolled { border-color: var(--rule); box-shadow: 0 6px 20px -14px oklch(20% 0.02 250 / .5); }
.site-header__row { display: flex; align-items: center; gap: var(--space-lg); min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand__mark { width: 2.2rem; fill: var(--ink); }
.brand__vein { fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; }
.brand__name { font: 700 1.35rem/1 var(--font-display); letter-spacing: -0.02em; }
.brand--light { color: var(--on-dark); }
.brand--light .brand__mark { fill: var(--on-dark); }
.nav__toggle { display: none; }
.nav__list { display: flex; gap: var(--space-lg); list-style: none; margin: 0; padding: 0; }
.nav__list a { color: var(--ink-2); text-decoration: none; font-weight: 500; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav__list a:hover, .nav__list a[aria-current="page"] { color: var(--ink); border-color: var(--brand); }
.site-header__phone { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.site-header__phone-icon { flex: none; width: 1.1rem; height: 1.1rem; fill: var(--brand-deep); }

/* 5. Hero ---------------------------------------------------------------- */
.hero { background: var(--grad-dark); color: var(--on-dark); padding: var(--space-3xl) 0 var(--space-xl); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-2xl); align-items: center; }
.hero__title { font-size: var(--text-display); font-weight: 700; letter-spacing: -0.03em; }
.hero__title em { font-style: normal; color: var(--tint); }
.hero__lead { color: var(--on-dark-2); font-size: var(--text-md); line-height: 1.5; max-width: 34rem; }
.hero__actions { display: flex; align-items: center; gap: var(--space-lg); margin-top: var(--space-lg); }
.hero__actions .link-arrow { color: var(--on-dark); }
.hero__collage { position: relative; aspect-ratio: 1; }
.slab { position: absolute; margin: 0; overflow: hidden; border-radius: var(--radius-s); box-shadow: 0 30px 60px -30px oklch(5% 0 0 / .8); }
.slab img { width: 100%; height: 100%; object-fit: cover; }
.slab--a { inset: 6% 26% 30% 4%; }
.slab--b { inset: 40% 2% 4% 46%; }
.slab--c { inset: 54% 60% 0 12%; }
.dims { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.dims__line path { fill: none; stroke: var(--tint); stroke-width: 1.2; }
.dims__label { fill: var(--tint); font: 500 11px var(--font-body); text-anchor: middle; letter-spacing: .04em; }
.hero__facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: 1px solid var(--dark-3); }
.hero__facts dt { color: var(--on-dark-2); font-size: var(--text-sm); }
.hero__facts dd { margin: 0; font: 600 var(--text-xl)/1.1 var(--font-display); font-variant-numeric: tabular-nums; }

/* 6. Sections ------------------------------------------------------------ */
.section { padding: var(--space-3xl) 0; }
.section--wash { background: var(--wash); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section__head { max-width: 46rem; margin-bottom: var(--space-2xl); }
.section__head p:not(.eyebrow) { color: var(--muted); font-size: var(--text-md); line-height: 1.5; }
.section--dark .section__head p:not(.eyebrow) { color: var(--on-dark-2); }
.section__more { margin-top: var(--space-xl); }
.page-head { background: var(--grad-dark); color: var(--on-dark); padding: var(--space-3xl) 0 var(--space-2xl); }
.page-head h1 { font-size: var(--text-display-s); max-width: 40rem; }
.page-head p:not(.eyebrow) { color: var(--on-dark-2); font-size: var(--text-md); max-width: 40rem; }

/* 7. Materials ----------------------------------------------------------- */
.stones { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.stone__img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--radius-s); margin-bottom: var(--space-md); transition: transform var(--dur-long) var(--ease-out); }
.stone:hover .stone__img { transform: scale(1.03); }
.stone p { color: var(--ink-2); font-size: .98rem; }
.rating { display: grid; grid-template-columns: auto 1fr; gap: .35rem var(--space-sm); margin: 0; font-size: var(--text-sm); align-items: center; }
.rating dt { color: var(--muted); }
.rating dd, .score { display: block; margin: 0; height: .4rem; border-radius: var(--radius-pill); background: var(--rule); position: relative; overflow: hidden; color: transparent; font-size: 0; }
.rating dd::after, .score::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--s, 0) * 20%); background: var(--brand); border-radius: inherit; transition: width var(--dur-long) var(--ease-out); }
[data-score="1"] { --s: 1; } [data-score="2"] { --s: 2; } [data-score="3"] { --s: 3; } [data-score="4"] { --s: 4; } [data-score="5"] { --s: 5; }
.compare { display: grid; gap: var(--space-lg); }
.compare__pick { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); max-width: 34rem; }
.compare__table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); }
.compare__table th, .compare__table td { padding: var(--space-md) var(--space-lg); text-align: left; vertical-align: middle; border-top: 1px solid var(--rule); }
.compare__table thead th, .compare__table thead td { border-top: 0; }
.compare__table thead td { width: 11rem; }
.compare__table tbody th { color: var(--muted); font-weight: 500; font-size: var(--text-sm); }
.compare__table td { color: var(--ink-2); }
.compare__stone { display: flex; align-items: center; gap: var(--space-sm); font: 600 var(--text-md)/1.2 var(--font-display); color: var(--ink); }
.compare__stone img { width: 3rem; height: 3rem; border-radius: var(--radius-s); object-fit: cover; flex: none; }
.compare__table .score { max-width: 12rem; }
.compare__table .is-better .score::after { background: var(--ok); }
.care { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl) var(--space-xl); }
.care__item { display: grid; grid-template-columns: 9rem 1fr; gap: var(--space-lg); align-items: start; }
.care__item img { border-radius: var(--radius-s); aspect-ratio: 1; object-fit: cover; }
.care__item ul { margin: 0; padding-left: 1.1rem; color: var(--ink-2); }

/* 8. Process ------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); counter-reset: step; }
.step { border-top: 2px solid var(--dark-3); padding-top: var(--space-lg); position: relative; }
.step::before { content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 0; background: var(--brand); transition: width var(--dur-long) var(--ease-out); }
.step.is-in::before { width: 100%; }
.step__day { display: block; color: var(--tint); font-weight: 600; font-size: var(--text-sm); margin-bottom: var(--space-sm); }
.step p { color: var(--on-dark-2); }

/* 9. Edges --------------------------------------------------------------- */
.edge-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-md); }
.edge { border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--space-lg) var(--space-md) var(--space-md); background: #fff; transition: border-color var(--dur-short); }
.edge:hover { border-color: var(--brand); }
.edge svg { width: 100%; height: auto; margin-bottom: var(--space-md); }
.edge path { fill: var(--wash); stroke: var(--ink); stroke-width: .8; stroke-linejoin: round; }
.edge:hover path { fill: color-mix(in oklch, var(--brand) 18%, var(--paper)); }
.edge h3 { font-size: 1rem; margin-bottom: .2rem; }
.edge p { margin: 0; font-size: var(--text-sm); color: var(--muted); }

/* 10. Estimator ---------------------------------------------------------- */
.teaser { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-2xl); align-items: center; }
.teaser p { color: var(--ink-2); }
.yard__photo { width: 100%; height: auto; border-radius: var(--radius); }
.remnant__price { font-weight: 600; color: var(--brand-deep); margin-top: var(--space-sm); font-variant-numeric: tabular-nums; }
.teaser__card { margin: 0; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--space-lg); box-shadow: 0 30px 60px -40px oklch(20% 0.02 250 / .45); }
.teaser__row { display: flex; justify-content: space-between; gap: var(--space-md); padding: var(--space-sm) 0; border-bottom: 1px dashed var(--rule); font-variant-numeric: tabular-nums; }
.teaser__row--total { border: 0; font-weight: 600; }
.teaser__bar { height: .5rem; background: var(--wash); border-radius: var(--radius-pill); overflow: hidden; }
.teaser__bar span { display: block; height: 100%; width: 62%; background: var(--grad-bar); }
.est { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--space-2xl); align-items: start; }
.est__pieces { display: grid; gap: var(--space-sm); margin-bottom: var(--space-md); }
.piece { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: var(--space-sm); align-items: end; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--space-md); }
.piece__remove { background: none; border: 0; color: var(--muted); cursor: pointer; padding: .7rem .4rem; font-size: 1.3rem; line-height: 1; }
.piece__remove:hover { color: var(--error); }
.est__opts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); margin-top: var(--space-lg); }
.est__result { position: sticky; top: 6rem; background: var(--dark); color: var(--on-dark); border-radius: var(--radius); padding: var(--space-xl); }
.est__result dl { display: grid; grid-template-columns: 1fr auto; gap: var(--space-sm) var(--space-md); margin: 0 0 var(--space-lg); font-variant-numeric: tabular-nums; }
.est__result dt { color: var(--on-dark-2); }
.est__result dd { margin: 0; text-align: right; font-weight: 600; }
.est__price { font: 700 var(--text-xl)/1.1 var(--font-display); margin: 0 0 var(--space-xs); font-variant-numeric: tabular-nums; }
.est__note { font-size: var(--text-sm); color: var(--on-dark-2); }
.est__slabs { display: flex; gap: .4rem; margin: 0 0 var(--space-lg); min-height: 3rem; flex-wrap: wrap; }
.est__slabs span { width: 2.4rem; height: 3rem; border-radius: 2px; background: var(--dark-3); position: relative; overflow: hidden; }
.est__slabs span i { position: absolute; inset: auto 0 0 0; background: var(--brand); height: var(--fill, 100%); transition: height var(--dur-long) var(--ease-out); }
.est__slabs span.f10 i { height: 10%; } .est__slabs span.f20 i { height: 20%; } .est__slabs span.f30 i { height: 30%; }
.est__slabs span.f40 i { height: 40%; } .est__slabs span.f50 i { height: 50%; } .est__slabs span.f60 i { height: 60%; }
.est__slabs span.f70 i { height: 70%; } .est__slabs span.f80 i { height: 80%; } .est__slabs span.f90 i { height: 90%; }

/* 11. Reviews & CTA ------------------------------------------------------ */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.review { margin: 0; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--space-xl) var(--space-lg) var(--space-lg); display: flex; flex-direction: column; justify-content: space-between; }
.review blockquote { margin: 0 0 var(--space-lg); font-size: 1.08rem; }
.review figcaption { display: flex; gap: var(--space-sm); align-items: center; font-size: var(--text-sm); }
.review figcaption strong { display: block; font-size: .95rem; }
.review__avatar { width: 2.4rem; height: 2.4rem; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--wash); color: var(--ink); font-weight: 600; }
.review__src { display: inline-flex; gap: .35rem; align-items: center; color: var(--muted); }
.review__src svg { width: 14px; height: 14px; }
.cta { background: var(--grad-bar); color: #fff; padding: var(--space-2xl) 0; }
.cta__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xl); }
.cta h2 { font-size: var(--text-lg); margin: 0; max-width: 40rem; }

/* 12. Forms -------------------------------------------------------------- */
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: var(--text-sm); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-s); padding: .7rem .8rem; min-height: 2.9rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: 2px solid color-mix(in oklch, var(--brand) 35%, transparent); outline-offset: 0; }
.field textarea { min-height: 8rem; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__err { color: var(--error); font-size: var(--text-sm); min-height: 1.2em; }
.field__hint { color: var(--muted); font-size: var(--text-sm); }
.form { display: grid; gap: var(--space-lg); }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.form legend { font: 600 var(--text-md)/1.2 var(--font-display); margin-bottom: var(--space-md); }
.form .span-2 { grid-column: 1 / -1; }
.form .hp { position: absolute; left: -200vw; width: 1px; height: 1px; overflow: hidden; } /* honeypot for php/quote.php: bots fill it, people never see it */
.drop { border: 2px dashed var(--rule); border-radius: var(--radius); padding: var(--space-xl); text-align: center; background: #fff; transition: border-color var(--dur-short), background var(--dur-short); cursor: pointer; }
.drop.is-over { border-color: var(--brand); background: color-mix(in oklch, var(--brand) 6%, #fff); }
.drop__list { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: grid; gap: var(--space-xs); text-align: left; }
.drop__list li { display: grid; grid-template-columns: 3rem 1fr auto; gap: var(--space-sm); align-items: center; font-size: var(--text-sm); }
.drop__list img { width: 3rem; height: 3rem; object-fit: cover; border-radius: 2px; }
.drop__list progress { width: 100%; height: .35rem; accent-color: var(--brand); }
.form__send { display: flex; align-items: center; gap: var(--space-lg); flex-wrap: wrap; }
.form__send p { margin: 0; }
.form__status { padding: var(--space-md); border-radius: var(--radius-s); background: color-mix(in oklch, var(--ok) 12%, #fff); color: var(--ok); font-weight: 600; }
.form__status.is-error { background: color-mix(in oklch, var(--error) 12%, #fff); color: var(--error); }
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-2xl); align-items: start; }
.contact__aside { background: var(--wash); border-radius: var(--radius); padding: var(--space-xl); }
.contact__aside h2 { font-size: var(--text-lg); }

/* 13. Footer ------------------------------------------------------------- */
.site-footer { background: var(--dark); color: var(--on-dark-2); padding: var(--space-2xl) 0 var(--space-lg); }
.site-footer a { color: var(--on-dark); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-xl); }
.site-footer__h { font: 600 var(--text-sm)/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--tint); }
.site-footer address { font-style: normal; margin-bottom: var(--space-md); }
.site-footer__about { max-width: 22rem; margin-top: var(--space-md); }
.site-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.site-footer__base { display: flex; justify-content: space-between; gap: var(--space-md); border-top: 1px solid var(--dark-3); margin-top: var(--space-xl); padding-top: var(--space-lg); font-size: var(--text-sm); }
.site-footer__base p { margin: 0; }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }

/* 14. Motion ------------------------------------------------------------- */
/* JS adds .js to <html>; without JS everything is visible. */
.js [data-reveal-group] > * { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal-group] > .is-in { opacity: 1; transform: none; }
.js .slab { opacity: 0; transform: translateY(24px) rotate(-1.5deg); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.js .slab--b { transition-delay: 120ms; } .js .slab--c { transition-delay: 240ms; }
.is-ready .slab { opacity: 1; transform: none; }
.js .dims__line path { stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1200ms var(--ease-out) 500ms; }
.is-ready .dims__line path { stroke-dashoffset: 0; }
.js .dims__label { opacity: 0; transition: opacity var(--dur-long) 1300ms; }
.is-ready .dims__label { opacity: 1; }
.slab--a img, .slab--b img { transform: scale(1.12); }
.js [data-parallax] { translate: 0 var(--py, 0px); will-change: translate; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal-group] > *, .js .slab, .js .dims__label { opacity: 1; transform: none; transition: none; }
  .js .dims__line path { stroke-dashoffset: 0; transition: none; }
  .lightbox[open], .lightbox img.is-in { animation: none; }
  .slab img { animation: none !important; }
}

/* 15. Breakpoints: 1100 (notebook / tablet landscape), 820 (tablet portrait), 560 (phone), 400 (small phone) */
@media (max-width: 1100px) {
  .stones { grid-template-columns: repeat(2, 1fr); }
  .edge-list { grid-template-columns: repeat(3, 1fr); }
}
/* The header has its own two breakpoints, set by measuring the row: 8 links + quote button need a 1206 px viewport with
 * the phone number written out and 1103 px with the round call button. Each state starts with 66 px or more to spare. */
@media (max-width: 1279px) { /* the number folds into a round call button: same link, one tap on every screen */
  .site-header__phone { width: 2.75rem; height: 2.75rem; justify-content: center; background: #fff; border: 1px solid var(--rule); border-radius: 50%; box-shadow: 0 1px 2px oklch(20% 0.02 250 / .08); transition: border-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
  .site-header__phone:hover { border-color: oklch(70% 0.01 250); box-shadow: 0 4px 12px -6px oklch(20% 0.02 250 / .35); transform: translateY(-1px); }
  .site-header__phone:active { transform: translateY(1px); }
  .site-header__phone:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
  .site-header__phone-icon { width: 1.25rem; height: 1.25rem; }
  .site-header__phone-num { display: none; }
}
@media (max-width: 1179px) { /* menu button: between 821 and 1100 px the full row was wider than the page and it scrolled sideways */
  /* Toggle matches the CTA height (44px tap target). Bottom bar is a short "laser" stroke that
   * runs full width on hover; open state folds the bars into an X. */
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-width: 2.75rem; height: 2.75rem; padding: 0 .85rem; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); font: 600 .95rem/1 var(--font-body); color: var(--ink); cursor: pointer;
    box-shadow: 0 1px 2px oklch(20% 0.02 250 / .08); transition: border-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), background var(--dur-short) var(--ease-out); }
  .nav__toggle:hover { border-color: oklch(70% 0.01 250); box-shadow: 0 4px 12px -6px oklch(20% 0.02 250 / .35); }
  .nav__toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
  .nav__toggle[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
  .nav__bars { position: relative; display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: background var(--dur-micro) var(--ease-out); }
  .nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--dur-short) var(--ease-out), width var(--dur-short) var(--ease-out), top var(--dur-short) var(--ease-out), background var(--dur-short); }
  .nav__bars::before { top: -6px; width: 20px; }
  .nav__bars::after { top: 6px; width: 12px; background: var(--brand); }
  .nav__toggle:hover .nav__bars::after { width: 20px; }
  .nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
  .nav__toggle[aria-expanded="true"] .nav__bars::before { top: 0; transform: rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__bars::after { top: 0; width: 20px; background: currentColor; transform: rotate(-45deg); }
  .nav { order: 3; }
  .nav__list { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: var(--space-sm) 1.25rem var(--space-lg); box-shadow: 0 24px 40px -24px oklch(20% 0.02 250 / .45);
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path var(--dur-long) var(--ease-out), visibility 0s linear var(--dur-long); }
  .nav__list a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--rule); font: 600 1.2rem/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
  .nav__list a[aria-current="page"] { color: var(--brand-deep); border-color: var(--rule); }
  .nav.is-open .nav__list { clip-path: inset(0 0 -40px 0); visibility: visible; transition: clip-path var(--dur-long) var(--ease-out), visibility 0s; }
  .site-header__row { position: relative; gap: var(--space-sm); }
}
@media (max-width: 820px) {
  .hero__grid, .teaser, .est, .contact, .care { grid-template-columns: 1fr; }
  .hero__collage { max-width: 30rem; width: 100%; margin-inline: auto; }
  .hero__facts { grid-template-columns: repeat(2, 1fr); }
  .steps, .reviews { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .cta__row { flex-direction: column; align-items: flex-start; }
  .est__result { position: static; }
}
@media (max-width: 560px) {
  .section { padding: var(--space-2xl) 0; }
  .hero { padding-top: var(--space-2xl); }
  .stones, .steps, .reviews, .site-footer__grid { grid-template-columns: 1fr; }
  .edge-list { grid-template-columns: repeat(2, 1fr); }
  .piece { grid-template-columns: 1fr 1fr auto; }
  .piece .field:first-child { grid-column: 1 / -1; }
  .form fieldset, .est__opts { grid-template-columns: 1fr; }
  .care__item { grid-template-columns: 6rem 1fr; }
  .compare__table th, .compare__table td { padding: var(--space-sm); }
  .compare__table thead td { width: 5.5rem; }
  .compare__stone { flex-direction: column; align-items: flex-start; font-size: var(--text-base); }
  .site-footer__base { flex-direction: column; }
  .site-header__cta { display: none; } /* phones: brand + call button + menu is all that fits at 360; the hero and the menu keep the quote links */
}
@media (max-width: 400px) {
  .site-header__cta { padding: 0 .85em; font-size: .9rem; gap: .35em; }
  .brand__name { font-size: 1.15rem; }
  .nav__label { display: none; }
  .hero__actions { gap: var(--space-md); }
  .btn { padding: .8em 1em; }
  .compare__pick { grid-template-columns: 1fr; }
}
.h3 { font-size: var(--text-md); }
.hero__grid > *, .teaser > *, .est > *, .contact > * { min-width: 0; }
@media (max-width: 400px) {
  .hero__actions .link-arrow { font-size: .95rem; }
  .hero__actions .btn { font-size: .95rem; padding-inline: .9em; }
  .hero__actions { gap: var(--space-sm) var(--space-md); flex-wrap: wrap; }
}

/* 16. Hero visualizer ---------------------------------------------------- */
/* The kitchen photo is the stage; two texture layers, clipped by hero-mask.png to the countertop,
   take turns so a new stone wipes in over the old one. multiply keeps the photo's light and shadow.
   The mask uses the same size and position as the photo (cover, --viz-pos) so both crop together. */
.vhero { --viz-pos: 58% 72%; display: grid; grid-template-columns: minmax(22rem, 40%) 1fr; background: var(--grad-dark); color: var(--on-dark); }
.vhero__copy { align-self: center; padding: var(--space-3xl) clamp(1.25rem, 4vw, 4.5rem); }
.vhero__title { font-size: var(--text-display); font-weight: 700; letter-spacing: -0.03em; }
/* Two columns: the headline wraps in 3 lines, not 5, so the primary button stays inside a 1280x800 fold (the top sellers show theirs). */
@media (min-width: 1101px) { .vhero__title { font-size: clamp(2.4rem, 3vw + 0.5rem, 4rem); } }
.vhero__lead { color: var(--on-dark-2); font-size: var(--text-md); line-height: 1.5; max-width: 32rem; }
.vhero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); margin-top: var(--space-lg); }
.vhero__actions .link-arrow { color: var(--on-dark); }
.vhero .eyebrow { color: var(--tint); }
.vhero__stage { position: relative; height: min(84vh, 50rem); min-height: 32rem; overflow: hidden; }
.vhero__photo { width: 100%; height: 100%; object-fit: cover; object-position: var(--viz-pos); }
.vhero__layer { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; mix-blend-mode: multiply;
  -webkit-mask-image: url(../img/photo/hero-mask.png); -webkit-mask-position: var(--viz-pos); -webkit-mask-size: cover; -webkit-mask-repeat: no-repeat; mask-image: url(../img/photo/hero-mask.png); mask-position: var(--viz-pos); mask-size: cover; mask-repeat: no-repeat;
  clip-path: inset(0 100% 0 0); transition: clip-path 900ms var(--ease-out); }
.vhero__layer.is-on { clip-path: inset(0 0 0 0); }
.vhero__layer.is-under { clip-path: inset(0 0 0 0); transition: none; }
.vhero__picker { position: absolute; top: var(--space-lg); right: var(--space-lg); background: oklch(19% 0.012 250 / .9); border: 1px solid oklch(100% 0 0 / .12); border-radius: var(--radius); padding: var(--space-md); max-width: 25rem; }
.vhero__picker-title { font-weight: 600; margin-bottom: var(--space-sm); }
.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; }
.swatch { all: unset; cursor: pointer; display: grid; gap: .3rem; justify-items: center; font-size: .72rem; color: var(--on-dark-2); text-align: center; }
.swatch img { width: 3.1rem; height: 3.1rem; object-fit: cover; border-radius: 50%; border: 2px solid transparent; outline: 2px solid oklch(100% 0 0 / .18); transition: transform var(--dur-short) var(--ease-spring), border-color var(--dur-short); }
.swatch:hover img { transform: translateY(-2px); }
.swatch[aria-pressed="true"] img { border-color: var(--paper); outline-color: var(--brand); }
.swatch[aria-pressed="true"] { color: var(--on-dark); }
.swatch:focus-visible img { outline: 3px solid var(--focus); }
.vhero__now { margin: var(--space-sm) 0 0; font-size: var(--text-sm); color: var(--on-dark-2); }
.vhero__now strong { color: var(--on-dark); }
.vhero__now a { color: var(--tint); }
.vhero__facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); margin: 0; padding: var(--space-lg) clamp(1.25rem, 4vw, 4.5rem); border-top: 1px solid oklch(100% 0 0 / .14); }
.vhero__facts dt { color: var(--on-dark-2); font-size: var(--text-sm); }
.vhero__facts dd { margin: 0; font: 600 var(--text-xl)/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) {
  .vhero { grid-template-columns: minmax(0, 1fr); }
  .vhero__copy { padding: var(--space-2xl) clamp(1.25rem, 4vw, 3rem) var(--space-xl); }
  .vhero__stage { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 820px) {
  .vhero { --viz-pos: 62% 75%; }
  .vhero__stage { aspect-ratio: auto; overflow: visible; }
  .vhero__photo { display: block; }
  .vhero__layer { inset: 0 0 auto 0; }
  .vhero__photo, .vhero__layer { aspect-ratio: 4 / 3; height: auto; }
  .vhero__picker { position: relative; top: auto; right: auto; max-width: none; margin: calc(-1 * var(--space-xl)) var(--space-md) 0; }
  .vhero__facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .swatches { gap: .3rem; }
  .swatch img { width: 2.6rem; height: 2.6rem; }
  .swatch span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .vhero__layer { transition: none; } }

/* 18. Stage: the slab becomes a counter (home). Plain list without WebGL, a turning scene with it. ---- */
.stage { position: relative; background: var(--grad-dark); color: var(--on-dark); padding: var(--space-3xl) 0; }
.stage h2 { color: var(--on-dark); max-width: 18ch; }
.stage h3 { color: var(--on-dark); font-size: var(--text-lg); }
.stage .step p { color: var(--on-dark-2); }
.stage .step { border-top-color: oklch(100% 0 0 / .16); }
.stage__scene { display: none; }
.stage__hint { display: none; }
.stage__dots { display: none; } /* like the scene and the hint: only the live scene shows them */
.stage__steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--space-2xl); }
.stage .step.is-on::before { width: 0; }
.stage .picker { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: var(--space-md); }
.chipbtn { all: unset; cursor: pointer; padding: .4em .8em; border: 1px solid oklch(100% 0 0 / .3); border-radius: var(--radius-pill); color: var(--on-dark-2); font: 500 .85rem/1.2 var(--font-body); }
.chipbtn:hover { border-color: var(--on-dark); color: var(--on-dark); }
.chipbtn.is-on { background: var(--tint); border-color: var(--tint); color: var(--ink); }
.chipbtn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 820px) { .stage__steps { grid-template-columns: minmax(0, 1fr); } }

/* with WebGL and without the reduced-motion preference the section is a tall runway: the steps ride on the scroll */
.stage.is-live { height: 400svh; padding: 0; }
.stage.is-live .stage__sticky { position: sticky; top: 0; height: 100svh; padding: 0; overflow: hidden; }
.stage.is-live .stage__scene { display: block; position: absolute; inset: 0 0 44% 0; }
.stage.is-live .stage__canvas { width: 100%; height: 100%; touch-action: pan-y; }
.stage.is-live .stage__ui { position: absolute; inset: 56% 0 0 0; display: grid; grid-template-rows: auto minmax(0, 1fr); padding-block: var(--space-sm) var(--space-md); }
.stage.is-live .stage__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); margin: 0 0 var(--space-xs); }
.stage.is-live .stage__head .eyebrow { display: none; }
.stage.is-live h2 { font-size: var(--text-sm); font-family: var(--font-body); font-weight: 500; letter-spacing: 0; color: var(--on-dark-2); margin: 0; max-width: none; }
.stage.is-live .stage__dots { display: flex; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.stage__dots li { width: 16px; height: 4px; border-radius: 1px; background: var(--dark-3); transition: background-color var(--dur-short) var(--ease-out); }
.stage__dots li.is-on { background: var(--tint); }
.stage.is-live .stage__steps { position: relative; display: block; }
.stage.is-live .step { position: absolute; inset: 0; align-content: start; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out), visibility var(--dur-short); }
.stage.is-live .step.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.stage.is-live .step p { font-size: var(--text-base); margin-bottom: var(--space-sm); max-width: 38rem; }
.stage.is-live .stage__hint { position: absolute; right: var(--space-lg); bottom: var(--space-sm); display: inline-flex; align-items: center; margin: 0;
  font-size: var(--text-sm); color: var(--on-dark-2); opacity: 0; transition: opacity var(--dur-short); }
.stage.is-live .stage__hint.is-on { opacity: 1; }
@media (min-width: 60rem) {
  .stage.is-live .stage__scene { inset: 0; }
  .stage.is-live .stage__ui { inset: 0; background: none; pointer-events: none; grid-template-rows: auto minmax(0, 1fr); align-content: center; padding-block: var(--space-2xl); }
  .stage.is-live .stage__head { display: block; margin-bottom: var(--space-lg); }
  .stage.is-live .stage__head .eyebrow { display: block; }
  .stage.is-live h2 { font-family: var(--font-display); font-size: var(--text-h2, var(--text-2xl)); font-weight: 600; letter-spacing: -0.022em; color: var(--on-dark); max-width: 14ch; margin-bottom: var(--space-md); }
  .stage.is-live .stage__dots { max-width: 28rem; }
  .stage.is-live .stage__steps { max-width: 28rem; }
  .stage.is-live .step { pointer-events: none; }
  .stage.is-live .step.is-on { pointer-events: auto; }
}

/* 17. Pages: projects gallery, lightbox, splits, FAQ ---------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--space-xl); }
.filter { font: 600 .95rem var(--font-body); padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink-2); cursor: pointer; transition: background var(--dur-short), color var(--dur-short); }
.filter:hover { color: var(--ink); border-color: var(--ink-2); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item[hidden] { display: none; }
.gallery__open { all: unset; cursor: zoom-in; display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); }
.gallery__item:not(.gallery__item--wide) .gallery__open { aspect-ratio: auto; height: 100%; max-height: 27rem; }
.gallery__open img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.gallery__open:hover img { transform: scale(1.04); }
.gallery__open:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.gallery__meta { margin: .6rem 0 0; color: var(--muted); font-size: var(--text-sm); }
.gallery__meta strong { display: block; color: var(--ink); font-size: 1rem; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 80rem); color: var(--on-dark); touch-action: pan-y; }
.lightbox::backdrop { background: oklch(14% 0.01 250 / .88); }
.lightbox img { max-height: 80vh; width: auto; border-radius: var(--radius); }
.lightbox img.is-in { animation: lb-img 240ms var(--ease-out); }
@keyframes lb-img { from { opacity: 0; transform: translateX(var(--lb-dx, 0)); } }
.lightbox p { margin: .75rem 0 0; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.lightbox__count { white-space: nowrap; font-size: var(--text-sm); opacity: .7; }
.lightbox__close { position: absolute; top: .75rem; right: .75rem; font: 600 .9rem var(--font-body); padding: .5rem .9rem; border-radius: 999px; border: 0; background: var(--paper); color: var(--ink); cursor: pointer; }
.lightbox__arrow { position: absolute; top: 50%; translate: 0 -50%; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 999px; border: 0; background: var(--paper); color: var(--ink); cursor: pointer; opacity: .9; transition: opacity var(--dur-short), transform var(--dur-short); }
.lightbox__arrow:hover { opacity: 1; transform: scale(1.06); }
.lightbox__arrow:focus-visible, .lightbox__close:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.lightbox__arrow--prev { left: .75rem; }
.lightbox__arrow--next { right: .75rem; }
.lightbox__arrow[hidden] { display: none; }
.lightbox[open] { animation: lb-in 260ms var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-2xl); align-items: center; }
.split + .split { margin-top: var(--space-3xl); }
.split--flip > .split__img { order: 2; }
.split__img { border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.split p { color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: var(--space-md) 0 0; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: .8rem; height: .45rem; border-left: 2px solid var(--brand-deep); border-bottom: 2px solid var(--brand-deep); transform: rotate(-45deg); }
.minis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg); }
.minis li { border-top: 2px solid var(--ink); padding-top: var(--space-md); }
.minis p { color: var(--ink-2); margin: .4rem 0 0; }
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg); margin: 0; }
.numbers dt { color: var(--on-dark-2); font-size: var(--text-sm); }
.numbers dd { margin: 0; font: 700 var(--text-display-s)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.faq { max-width: 50rem; }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary { cursor: pointer; list-style: none; padding: var(--space-md) 2rem var(--space-md) 0; position: relative; font: 600 var(--text-md)/1.3 var(--font-display); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; right: .3rem; top: 50%; width: .6rem; height: .6rem; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform var(--dur-short) var(--ease-out); }
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__item summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.faq__item p { color: var(--ink-2); margin: 0 0 var(--space-md); max-width: 44rem; }
.recent { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-md); }
.recent img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 1100px) {
  .minis, .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: var(--space-lg); }
  .split--flip > .split__img { order: 0; }
  .recent { grid-template-columns: 1fr 1fr; }
  .recent a:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .gallery, .minis { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: auto; }
  .gallery__item:not(.gallery__item--wide) .gallery__open { aspect-ratio: 16 / 10; height: auto; }
}

/* 17. Guides: blog.html (index) and blog-single.html (article) ------------ */
.post__meta { color: var(--muted); font-size: var(--text-sm); margin: 0; font-variant-numeric: tabular-nums; }
.page-head .post__meta { color: var(--on-dark-2); font-size: var(--text-base); }
.page-head .eyebrow a { color: inherit; text-decoration: none; }
.page-head .eyebrow a:hover { text-decoration: underline; }
.feature__title { font-size: var(--text-xl); }
.feature__title a { color: inherit; text-decoration: none; }
.feature__title a:hover { color: var(--brand-deep); }
.feature .post__meta { margin-bottom: var(--space-lg); }
.posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl) var(--space-lg); }
.post { position: relative; display: flex; flex-direction: column; }
.post__img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; border-radius: var(--radius-s); margin-bottom: var(--space-md); transition: transform var(--dur-long) var(--ease-out); }
.post:hover .post__img { transform: scale(1.03); }
.post h3 { font-size: var(--text-md); margin-bottom: var(--space-sm); }
.post h3 a { color: inherit; text-decoration: none; }
.post h3 a::after { content: ""; position: absolute; inset: 0; } /* the whole card is the link; one tab stop per card */
.post h3 a:focus-visible { outline: 0; }
.post:has(h3 a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 6px; border-radius: var(--radius-s); }
.post:hover h3 a { color: var(--brand-deep); }
.post > p:not(.eyebrow):not(.post__meta) { color: var(--ink-2); font-size: .98rem; margin-bottom: var(--space-sm); }
.post .post__meta { margin-top: auto; }
.article { max-width: 44rem; margin-inline: auto; }
.article__lead { font-size: var(--text-md); line-height: 1.5; color: var(--ink); }
.article h2 { font-size: var(--text-lg); margin-top: var(--space-2xl); }
.article p, .article li { color: var(--ink-2); }
.article li strong { color: var(--ink); }
.article__fig { margin: 0 0 var(--space-xl); overflow: hidden; border-radius: var(--radius); }
.article__fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article__fig figcaption { color: var(--muted); font-size: var(--text-sm); margin-top: var(--space-sm); }
.article .compare__table { margin: var(--space-lg) 0; }
.article__pull { margin: var(--space-2xl) 0; padding-left: var(--space-lg); border-left: 3px solid var(--brand); }
.article__pull p { margin: 0; font: 500 var(--text-lg)/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.article__pull cite { display: block; margin-top: var(--space-sm); font-size: var(--text-sm); font-style: normal; color: var(--muted); }
.article__actions { display: flex; align-items: center; gap: var(--space-lg); margin: var(--space-xl) 0; flex-wrap: wrap; }
.article__author { display: flex; gap: var(--space-md); align-items: center; border-top: 1px solid var(--rule); padding-top: var(--space-lg); margin-top: var(--space-2xl); font-size: var(--text-sm); }
.article__author p { margin: 0; color: var(--muted); }
.article__author strong { display: block; color: var(--ink); font-size: .95rem; }
@media (max-width: 1100px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .posts { grid-template-columns: 1fr; } .article h2 { margin-top: var(--space-xl); } .feature__title { font-size: var(--text-lg); } }

/* 19. Before and after (projects): two photos in one frame, the before copy on top clipped at --pos, and the <input type="range">
   stretched over the frame as the only control (drag, tap, arrow keys, Home/End): no pointer code of its own. The line, knob
   and labels are decoration that follows --pos and lets every event through to the input beneath them. */
.ba { margin: 0; --pos: 50%; }
.ba__frame { position: relative; aspect-ratio: 1600 / 914; overflow: hidden; border-radius: var(--radius); background: var(--dark-2); user-select: none; -webkit-user-select: none; }
.ba__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__frame input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none; background: none; }
.ba__frame input::-webkit-slider-runnable-track { height: 100%; }
.ba__frame input::-webkit-slider-thumb { -webkit-appearance: none; width: 3rem; height: 100%; }
.ba__frame input::-moz-range-thumb { width: 3rem; height: 100%; border: 0; border-radius: 0; }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; translate: -50% 0; background: var(--paper); box-shadow: 0 0 0 1px oklch(0% 0 0 / .2); pointer-events: none; }
.ba__knob { position: absolute; top: 50%; left: var(--pos); translate: -50% -50%; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--ink); box-shadow: 0 6px 18px oklch(0% 0 0 / .32); pointer-events: none; transition: scale var(--dur-micro) var(--ease-out); }
.ba__knob svg { width: 1.3rem; height: 1.3rem; }
.ba__frame:hover .ba__knob, .ba__frame input:active ~ .ba__knob { scale: 1.08; }
.ba__frame input:focus-visible ~ .ba__knob { outline: 3px solid var(--focus); outline-offset: 3px; }
.ba__tag { position: absolute; top: var(--space-md); padding: .35rem .75rem; border-radius: var(--radius-pill); background: color-mix(in oklch, var(--dark) 72%, transparent); color: var(--on-dark); font: 600 .9rem/1 var(--font-body); pointer-events: none; transition: opacity var(--dur-short); }
.ba__tag--before { left: var(--space-md); }
.ba__tag--after { right: var(--space-md); }
.ba.is-left-edge .ba__tag--before, .ba.is-right-edge .ba__tag--after { opacity: 0; }
.ba figcaption { margin: var(--space-md) 0 0; color: var(--muted); font-size: var(--text-sm); }

/* ============ PRINT ============
   Customers print the estimate (or save it as PDF) to bring to the yard, and guides get printed too: white paper,
   no navigation, buttons, 3D scene or slider handle, dark sections turned light, and everything the scroll reveal
   hides shown at once. Delete this block if you do not want a print layout. */
/* 20. Project page: the story beside a spec sheet that stays in view while you read; one column on phones. */
.project { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--space-2xl); align-items: start; }
.project .article { margin-inline: 0; }
.specs-aside { position: sticky; top: 6rem; background: var(--wash); border-radius: var(--radius); padding: var(--space-xl); }
.specs { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .6rem var(--space-md); margin: var(--space-md) 0 var(--space-lg); font-size: var(--text-sm); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--ink); font-weight: 500; }
.specs dd + dt, .specs dd + dt + dd { border-top: 1px solid var(--rule); padding-top: .6rem; }
@media (max-width: 1100px) { .project { grid-template-columns: minmax(0, 1fr) 17rem; } }
@media (max-width: 820px) { .project { grid-template-columns: 1fr; } .specs-aside { position: static; } }

@media print {
  :root { --grad-dark: none; --dark: #fff; --dark-3: #ccc; --on-dark: #000; --on-dark-2: #444; --tint: var(--brand-deep); --paper: #fff; }
  @page { margin: 14mm; }
  html, body { background: #fff; color: #000; }
  .skip, .nav, .site-header__phone, .site-header__cta, .btn, .piece__remove, .stage__scene, .stage__dots, .stage__hint, .ba input, .ba__line, .ba__knob, .ba__tag, .site-footer__links, .site-footer__base p + p, .lightbox { display: none !important; }
  .site-header { position: static; border-bottom: 1px solid #ccc; }
  .site-footer { border-top: 1px solid #ccc; }
  .est__result { position: static; border: 1px solid #ccc; }
  .specs-aside { position: static; }
  .stage.is-live .stage__sticky { position: static; height: auto; overflow: visible; }
  .stage .step { border-top-color: #ccc; }
  .section, .page-head, .stage, .site-footer { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
  .vhero__picker { position: static; background: #fff; border-color: #ccc; }
  .swatch { color: #000; }
  .swatch img { outline-color: #ccc; }
  .js [data-reveal-group] > *, .js .slab, .js .dims__label { opacity: 1; transform: none; transition: none; }
  .js .dims__line path { stroke-dashoffset: 0; transition: none; }
  .piece, .est__result, .step, figure, article, .card { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
  .est__slabs span, .est__slabs span i, .swatch img, .stone__img { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit; }
}
