/* =========================================================
   Lovely Tile
   Palette pulled from their own installs: porcelain grout,
   sage glaze, harbor-blue glaze, matte black hardware, brass trim.
   ========================================================= */

:root {
  --porcelain: #ECEEE9;   /* page field, cool grout white */
  --grout: #D5D9D1;       /* joints, rules */
  --ink: #18211D;         /* text, matte-black hardware */
  --ink-soft: #4A554F;
  --glaze: #6F8C7E;       /* sage glaze */
  --glaze-deep: #22302A;  /* dark sections */
  --harbor: #4F6A82;      /* blue glaze, chalk line */
  --brass: #B88A3E;       /* call actions */
  --brass-light: #D6AE63;

  --wrap: min(1320px, 100% - 2 * var(--gutter));
  --gutter: clamp(16px, 4vw, 56px);
  --joint: 6px;           /* grout joint, used for every gap on the page */

  --ease-set: cubic-bezier(.2, .9, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-variation-settings: "wdth" 100;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--porcelain); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: var(--wrap); margin-inline: auto; }

/* ---------- Type ---------- */
.section-title {
  font-size: clamp(2.25rem, 5.2vw, 4.5rem);
  font-weight: 640;
  font-variation-settings: "wdth" 72;
  line-height: .95;
  letter-spacing: -.01em;
  max-width: 14ch;
}
.section-lede {
  margin-top: 1.1rem;
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 1.125rem;
}
.section-lede a { text-underline-offset: 3px; }
.section-head { margin-bottom: clamp(2rem, 5vw, 4rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 52px; padding: 0 1.4rem;
  border: 1.5px solid transparent; border-radius: 3px;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease-set);
}
.btn:active { transform: translateY(1px); }
.btn-icon { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--brass-light); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--porcelain); }
.btn-ink { background: var(--ink); color: var(--porcelain); }
.btn-ink:hover { background: var(--glaze-deep); }
.btn-line-light { border-color: rgba(236,238,233,.5); color: var(--porcelain); background: transparent; }
.btn-line-light:hover { border-color: var(--porcelain); background: rgba(236,238,233,.08); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: 14px var(--gutter);
  transition: background-color .35s, box-shadow .35s, transform .45s var(--ease-set);
}
.nav.is-scrolled { background: rgba(236,238,233,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--grout); }
.nav.is-hidden { transform: translateY(-100%); }
.nav-logo { display: block; background: var(--porcelain); padding: 4px 6px; border-radius: 3px; }
.nav-logo img { height: 52px; width: auto; mix-blend-mode: multiply; }
.nav-links {
  display: flex; gap: 1.6rem; margin-left: auto; padding: .7rem 1.3rem;
  background: rgba(236,238,233,.92); backdrop-filter: blur(10px); border-radius: 99px;
  transition: background-color .35s, padding .35s;
}
.nav.is-scrolled .nav-links { background: transparent; backdrop-filter: none; padding-inline: 0; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .98rem; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-set);
}
.nav-links a:hover::after { transform: scaleX(1); }

.call-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem .95rem .55rem .8rem;
  background: var(--ink); color: var(--porcelain);
  border-radius: 99px; text-decoration: none; font-weight: 600; font-size: .95rem;
  white-space: nowrap;
}
.call-pill:hover { background: var(--glaze-deep); }
.call-pill-status { font-weight: 400; opacity: .75; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa39e; flex: none; }
.is-open .status-dot { background: #7FCB9A; box-shadow: 0 0 0 0 rgba(127,203,154,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(127,203,154,0); } 100% { box-shadow: 0 0 0 0 rgba(127,203,154,0); } }

.nav-social { display: flex; gap: 4px; }
.nav-social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(236,238,233,.92); color: var(--ink); transition: background-color .2s, color .2s;
}
.nav-social a:hover { background: var(--ink); color: var(--porcelain); }
.nav-social svg { width: 19px; height: 19px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: stretch;
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px clamp(24px, 4vw, 64px) 64px var(--gutter);
}
.hero-title {
  --wdth: 70;
  font-size: clamp(3.4rem, 8.2vw, 8.4rem);
  font-weight: 680;
  font-variation-settings: "wdth" var(--wdth);
  line-height: .9;
  letter-spacing: -.015em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.12em; }
.hero-title .line > span { display: inline-block; }
.hero-sub { margin-top: 1.75rem; max-width: 44ch; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-note { margin-top: 1.25rem; font-size: .95rem; color: var(--ink-soft); }

.hero-wall {
  position: relative;
  overflow: hidden;
  background: var(--porcelain);
  min-height: 560px;
}
.wall-grid {
  position: absolute; inset: 0;
  background: url("../assets/img/sage-shower.webp") center / cover no-repeat;
}
.wall-grid.is-tiled { background: none; }
.tile {
  position: absolute;
  will-change: transform, opacity;
}
.tile-face {
  position: absolute; inset: 0;
  background-repeat: no-repeat;
  border-radius: 1px;
  transform: translate3d(0, calc(var(--lift, 0) * -4px), 0) scale(calc(1 + var(--lift, 0) * .035));
  box-shadow: 0 calc(var(--lift, 0) * 14px) calc(var(--lift, 0) * 22px) rgba(24,33,29, calc(var(--lift, 0) * .35));
  transition: transform .18s linear, box-shadow .18s linear;
}
.tile-face::after { /* glaze highlight, unique per tile */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(var(--glint, 135deg), rgba(255,255,255,.16), rgba(255,255,255,0) 45%);
  pointer-events: none;
}
.tile-face::before { /* light sweeping across the glaze; driven by --gl */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,0) 25%, rgba(255,255,255,.6) 50%, rgba(255,255,255,0) 75%);
  opacity: var(--gl, 0);
}
.tile { touch-action: manipulation; }
.chalk { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.chalk line { stroke: var(--harbor); stroke-width: 1.5; stroke-dasharray: 6 5; opacity: 0; }
.sheen {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 40%), rgba(255,255,255,.22), transparent 60%);
  mix-blend-mode: soft-light;
  transition: opacity .4s;
}
.hero-wall:hover .sheen { opacity: 1; }

.level {
  position: absolute; left: 24px; bottom: 24px;
  display: flex; align-items: center; gap: .6rem;
  background: rgba(236,238,233,.92); padding: 8px 12px 8px 10px; border-radius: 4px;
  font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums;
  box-shadow: 0 6px 20px rgba(24,33,29,.18);
}
.level-vial {
  position: relative; width: 74px; height: 14px; border-radius: 99px;
  background: linear-gradient(#e7f2c9, #c8dc8c); border: 1px solid rgba(24,33,29,.35);
  overflow: hidden;
}
.level-mark { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(24,33,29,.6); }
.level-mark:first-child { left: calc(50% - 9px); }
.level-mark:nth-child(2) { left: calc(50% + 8px); }
.level-bubble {
  position: absolute; top: 2px; left: calc(50% - 7px); width: 14px; height: 8px; border-radius: 99px;
  background: rgba(255,255,255,.9); box-shadow: inset 0 -1px 2px rgba(0,0,0,.15);
}
.wall-caption {
  position: absolute; right: 24px; bottom: 28px; max-width: 26ch; text-align: right;
  color: var(--porcelain); font-size: .85rem; line-height: 1.35;
  text-shadow: 0 1px 12px rgba(0,0,0,.5);
}

/* =========================================================
   LISTELLO (decorative border strip)
   ========================================================= */
.listello {
  background: var(--ink); color: var(--porcelain);
  overflow: hidden; padding: 1.05rem 0;
  border-top: var(--joint) solid var(--porcelain);
}
.listello-track { display: flex; width: max-content; animation: listello 48s linear infinite; }
.listello ul { display: flex; flex: none; }
.listello li {
  display: flex; align-items: center; gap: 1.6rem; padding-right: 1.6rem;
  font-size: 1.15rem; font-variation-settings: "wdth" 85; font-weight: 500; white-space: nowrap;
}
.listello li::after {
  content: ""; width: 9px; height: 9px; background: var(--brass); transform: rotate(45deg);
}
@keyframes listello { to { transform: translateX(-50%); } }
.listello:hover .listello-track { animation-play-state: paused; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { padding: clamp(5rem, 11vw, 9rem) 0; }
.about-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  grid-template-areas: "statement photo" "facts photo";
  column-gap: clamp(2rem, 6vw, 7rem); row-gap: 3rem; align-items: start;
}
.about-statement { grid-area: statement; }
.facts { grid-area: facts; }
.about-photo { grid-area: photo; margin: 0; }
.about-photo figcaption { margin-top: .8rem; font-size: .92rem; color: var(--ink-soft); max-width: 34ch; }
.about-statement {
  font-size: clamp(1.5rem, 2.7vw, 2.35rem);
  font-weight: 360; line-height: 1.22; letter-spacing: -.005em;
  max-width: 34ch;
}
.facts { border-top: 1.5px solid var(--ink); display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; }
.facts > div { display: grid; gap: .15rem; padding: .95rem 0; border-bottom: 1px solid var(--grout); }
.facts dt { color: var(--ink-soft); font-size: .95rem; }
.facts dd { font-weight: 550; }

/* =========================================================
   WORK GALLERY (masonry columns, grout-width joints)
   ========================================================= */
.work { padding-bottom: clamp(5rem, 10vw, 8rem); }
.work-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 .95rem;
  border: 1.5px solid var(--grout); border-radius: 3px; background: transparent; cursor: pointer;
  font-size: .95rem; font-weight: 520; transition: background-color .2s, border-color .2s, color .2s;
}
.filter span { font-size: .8rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.filter:hover { border-color: var(--ink-soft); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--porcelain); }
.filter[aria-pressed="true"] span { color: rgba(236,238,233,.7); }

.gallery { columns: 3; column-gap: var(--joint); }
.g-item { break-inside: avoid; padding-bottom: 1.6rem; }
.g-item[hidden] { display: none; }
.gallery.is-collapsed .g-item[data-extra] { display: none; }
.g-photo {
  display: block; width: 100%; padding: 0; border: 0; background: var(--grout); cursor: zoom-in;
  overflow: hidden; border-radius: 1px; position: relative;
}
.g-photo img { width: 100%; height: auto; transition: transform .8s var(--ease-set); }
.g-photo:hover img { transform: scale(1.035); }
.g-item h3 { margin-top: .8rem; font-size: 1.08rem; font-weight: 620; font-variation-settings: "wdth" 88; line-height: 1.2; }
.g-item p { margin-top: .2rem; font-size: .9rem; color: var(--ink-soft); max-width: 34ch; }
.g-item.is-entering { animation: g-in .5s var(--ease-set) both; }
@keyframes g-in { from { opacity: 0; transform: translateY(14px); } }
.gallery-more { display: flex; justify-content: center; margin-top: 1.5rem; }
.gallery-more[hidden] { display: none; }

/* =========================================================
   PATTERN LAB
   ========================================================= */
.lab { background: #E2E6E0; padding: clamp(5rem, 10vw, 8rem) 0; border-block: var(--joint) solid var(--porcelain); }
.lab-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "head head" "stage controls";
  column-gap: clamp(1.5rem, 4vw, 4rem);
}
.lab-head { grid-area: head; }
.lab-head .section-title { max-width: 18ch; }
.lab-stage { grid-area: stage; position: relative; }
.lab-canvas { display: block; width: 100%; aspect-ratio: 5 / 4; border-radius: 2px; background: var(--grout); box-shadow: 0 30px 60px -30px rgba(24,33,29,.45); }
.lab-controls { grid-area: controls; display: flex; flex-direction: column; gap: 1.6rem; }
.control { border: 0; margin: 0; padding: 0; min-width: 0; }
.control legend { padding: 0; margin-bottom: .7rem; font-weight: 600; font-size: .95rem; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.seg-small { grid-template-columns: repeat(2, minmax(0, 7rem)); }
.seg-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: .45rem;
  padding: .7rem .75rem; min-height: 44px;
  border: 1.5px solid transparent; border-radius: 3px; background: var(--porcelain);
  font-size: .9rem; font-weight: 520; text-align: left; cursor: pointer; line-height: 1.15;
  transition: border-color .2s, background-color .2s;
}
.seg-btn:hover { border-color: var(--grout); }
.seg-btn[aria-pressed="true"], .seg-btn[aria-checked="true"] { border-color: var(--ink); background: #fff; }
.seg-btn svg { width: 34px; height: 22px; }
.swatches { display: flex; gap: .6rem; flex-wrap: wrap; }
.swatch {
  display: flex; align-items: center; gap: .5rem;
  padding: .35rem .8rem .35rem .35rem; border-radius: 3px; border: 1.5px solid transparent;
  background: var(--porcelain); cursor: pointer; font-size: .9rem; min-height: 44px;
}
.swatch i { width: 30px; height: 30px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.swatch[aria-pressed="true"] { border-color: var(--ink); background: #fff; }
.lab-info { border-top: 1.5px solid var(--ink); padding-top: 1rem; }
.lab-info h3 { font-size: 1.5rem; font-weight: 650; font-variation-settings: "wdth" 80; }
.lab-info > p { margin-top: .35rem; color: var(--ink-soft); }
.lab-info dl { margin-top: .9rem; display: grid; gap: .6rem; }
.lab-info dt { font-weight: 600; font-size: .9rem; }
.lab-info dd { font-size: .95rem; color: var(--ink-soft); }
.lab-controls .btn { align-self: flex-start; }

/* =========================================================
   PROCESS
   ========================================================= */
.process { padding: clamp(5rem, 10vw, 8rem) 0; }
.steps { position: relative; }
.steps-track { position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--grout); }
.steps-fill {
  position: absolute; inset: 0; transform-origin: left; transform: scaleX(0);
  background: repeating-linear-gradient(90deg, var(--harbor) 0 8px, transparent 8px 13px);
}
.steps ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2.25rem); }
.step { position: relative; }
.step-num {
  display: grid; place-items: center;
  width: 48px; height: 48px; margin-bottom: 1.4rem;
  background: var(--porcelain); border: 1.5px solid var(--grout); border-radius: 2px;
  font-weight: 700; font-variation-settings: "wdth" 75; font-size: 1.3rem;
  transition: background-color .4s, border-color .4s, color .4s;
}
.step.is-reached .step-num { background: var(--ink); border-color: var(--ink); color: var(--porcelain); }
.step h3 { font-size: 1.2rem; font-weight: 620; font-variation-settings: "wdth" 88; line-height: 1.2; }
.step p { margin-top: .5rem; color: var(--ink-soft); font-size: .98rem; }

/* =========================================================
   QUOTE
   ========================================================= */
.quote {
  background: var(--glaze-deep); color: var(--porcelain);
  padding: clamp(5rem, 10vw, 8rem) 0;
  /* faint stacked-tile texture */
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 128px;
}
.quote .section-lede { color: rgba(236,238,233,.75); }
.quote-grid { display: grid; grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.quote-intro { position: sticky; top: 110px; }
.direct { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(236,238,233,.2); }
.direct-label { color: rgba(236,238,233,.7); }
.direct-phone {
  display: inline-block; margin-top: .2rem;
  font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 680; font-variation-settings: "wdth" 72;
  text-decoration: none; color: var(--brass-light); line-height: 1.1;
}
.direct-phone:hover { color: #E8C987; }
.direct-status { margin-top: .4rem; color: rgba(236,238,233,.75); font-size: .95rem; }
.direct-email { display: inline-block; margin-top: .7rem; color: var(--porcelain); text-underline-offset: 3px; }

.quote-form {
  background: var(--porcelain); color: var(--ink);
  border-radius: 4px; padding: clamp(1.25rem, 3vw, 2.5rem);
  display: grid; gap: 0;
}
.q-block { border: 0; margin: 0; padding: 1.5rem 0; border-bottom: 1px solid var(--grout); min-width: 0; }
.q-block:first-child { padding-top: 0; }
.q-block legend, .q-label { display: flex; align-items: center; gap: .6rem; padding: 0; margin-bottom: .9rem; font-weight: 620; font-size: 1.05rem; }
.q-num {
  display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none;
  background: var(--ink); color: var(--porcelain); font-size: .78rem; font-weight: 700; border-radius: 2px;
}
.q-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.5rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
  border: 1.5px solid var(--grout); border-radius: 3px; background: #fff;
  font-size: .95rem; font-weight: 500; transition: border-color .15s, background-color .15s, color .15s;
}
.chip:hover span { border-color: var(--ink-soft); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--porcelain); }
.chip input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.chips-tight .chip span { padding: 0 .8rem; }

.size { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1rem; }
.size-meter { display: grid; grid-template-columns: repeat(12, 14px); grid-auto-rows: 14px; gap: 3px; flex: none; }
.size-meter i { background: var(--grout); border-radius: 1px; transition: background-color .25s, transform .25s var(--ease-set); }
.size-meter i.on { background: var(--glaze); transform: scale(1); }
.size-meter i.pop { animation: pop .35s var(--ease-set); }
@keyframes pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
.size-read output { display: block; font-size: 2rem; font-weight: 680; font-variation-settings: "wdth" 72; line-height: 1; font-variant-numeric: tabular-nums; }
.size-read span { color: var(--ink-soft); font-size: .95rem; }
.range { width: 100%; accent-color: var(--ink); height: 28px; cursor: pointer; }
.unsure { display: inline-flex; gap: .5rem; align-items: center; margin-top: .5rem; font-size: .95rem; color: var(--ink-soft); cursor: pointer; }
.unsure input { width: 18px; height: 18px; accent-color: var(--ink); }

.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
select, .field input, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem;
  border: 1.5px solid var(--grout); border-radius: 3px; background: #fff;
  font-size: 1rem;
}
select { appearance: none; padding-right: 2.5rem; cursor: pointer; }
select:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.field { display: grid; gap: .35rem; font-size: .9rem; font-weight: 520; }
.field-wide { grid-column: 1 / -1; }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9AA39E; }
.q-error { margin-top: .7rem; color: #9B3B21; font-size: .92rem; font-weight: 550; }

.q-send { padding-top: 1.5rem; display: grid; gap: 1rem; }
.q-summary {
  font-size: .92rem; color: var(--ink-soft); line-height: 1.5;
  background: #fff; border-left: 3px solid var(--glaze); padding: .8rem 1rem; border-radius: 2px;
}
.q-summary strong { color: var(--ink); font-weight: 600; }
.q-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.q-actions .btn-line-light { border-color: var(--ink); color: var(--ink); }
.q-actions .btn-line-light:hover { background: var(--ink); color: var(--porcelain); }
.q-foot { font-size: .88rem; color: var(--ink-soft); }

/* =========================================================
   CALL
   ========================================================= */
.call { padding: clamp(5rem, 11vw, 9rem) 0; text-align: left; }
.call-kicker { font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 400; max-width: 30ch; line-height: 1.2; }
.phone-tiles {
  display: flex; flex-wrap: wrap; gap: clamp(10px, 2vw, 28px);
  margin-top: 2rem; text-decoration: none; color: var(--ink); width: fit-content;
}
.pt-group { display: flex; gap: var(--joint); }
.pt {
  display: grid; place-items: center;
  width: min(108px, calc((100vw - 2 * var(--gutter) - 110px) / 10)); aspect-ratio: 1;
  background: #fff; border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(24,33,29,.06), 0 1px 0 var(--grout);
  font-size: min(5.2rem, calc((100vw - 2 * var(--gutter) - 110px) / 10 * .78)); font-weight: 700; font-variation-settings: "wdth" 70;
  line-height: 1; font-variant-numeric: tabular-nums;
  background-image: linear-gradient(135deg, rgba(255,255,255,1), rgba(226,230,224,.6));
  transition: background-color .3s, color .3s;
}
.phone-tiles:hover .pt, .phone-tiles:focus-visible .pt { color: var(--porcelain); background: var(--glaze-deep); }
.call-sub { margin-top: 2rem; max-width: 60ch; color: var(--ink-soft); }
.call-sub a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

.social-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.social-btn {
  display: inline-flex; align-items: center; gap: .7rem; min-height: 56px; padding: .5rem 1.2rem .5rem .9rem;
  border: 1.5px solid var(--grout); border-radius: 3px; background: #fff; text-decoration: none; color: var(--ink);
  transition: border-color .2s, background-color .2s, color .2s;
}
.social-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--porcelain); }
.social-btn svg { width: 24px; height: 24px; flex: none; }
.social-btn span { display: grid; font-weight: 600; line-height: 1.2; }
.social-btn small { font-weight: 400; font-size: .85rem; opacity: .7; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); color: rgba(236,238,233,.8); padding: 4rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 2rem; }
.footer-logo { width: 190px; filter: invert(1); mix-blend-mode: screen; opacity: .95; }
.footer-h { color: var(--porcelain); font-size: .95rem; font-weight: 620; margin-bottom: .7rem; }
.footer a, .footer p { display: block; text-decoration: none; margin-bottom: .3rem; }
.footer a:hover { color: var(--brass-light); }
.footer-social { display: flex !important; align-items: center; gap: .5rem; }
.footer-social svg { width: 18px; height: 18px; flex: none; }
.footer-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(236,238,233,.12); font-size: .85rem; color: rgba(236,238,233,.55); }

/* =========================================================
   DOCK (mobile)
   ========================================================= */
.dock { display: none; }

/* Lab: photo reference */
.lab-ref {
  display: inline-flex; align-items: center; gap: .75rem; margin-top: 1rem; padding: 4px 1rem 4px 4px;
  border: 1.5px solid var(--grout); border-radius: 3px; background: var(--porcelain); cursor: zoom-in;
  font-size: .92rem; font-weight: 550;
}
.lab-ref:hover { border-color: var(--ink-soft); }
.lab-ref img { width: 52px; height: 52px; object-fit: cover; border-radius: 2px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--ink); color: var(--porcelain);
  grid-template-rows: minmax(0, 1fr) auto;
}
.lightbox[open] { display: grid; animation: lb-in .3s var(--ease-set); }
.lightbox::backdrop { background: rgba(24,33,29,.6); }
.lb-frame { display: grid; place-items: center; min-height: 0; padding: clamp(12px, 3vw, 40px); touch-action: pan-y; }
.lb-frame img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 2px; transition: opacity .2s, transform .3s var(--ease-set); }
.lb-frame img.is-swapping { opacity: 0; transform: scale(.98); }
.lb-bar {
  display: flex; align-items: center; gap: .75rem 1rem; flex-wrap: wrap;
  padding: .9rem var(--gutter) calc(.9rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(236,238,233,.12);
}
.lb-bar p { flex: 1 1 18rem; font-size: .98rem; }
.lb-count { font-size: .85rem; color: rgba(236,238,233,.6); font-variant-numeric: tabular-nums; }
.lb-nav { display: flex; gap: .4rem; }
.lb-nav button {
  display: grid; place-items: center; min-width: 48px; height: 48px; padding: 0 .9rem;
  border: 1.5px solid rgba(236,238,233,.3); border-radius: 3px; background: transparent; color: inherit; cursor: pointer; font-weight: 600;
}
.lb-nav button[hidden] { display: none; }
.lb-nav button:hover { border-color: var(--porcelain); }
.lb-nav svg { width: 20px; height: 20px; }
.lb-nav .lb-close { background: var(--porcelain); color: var(--ink); border-color: var(--porcelain); }
@keyframes lb-in { from { opacity: 0; } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .call-pill { margin-left: auto; }
  .nav-social { display: none; }
  .lab-grid { grid-template-columns: 1fr; grid-template-areas: "head" "stage" "controls"; row-gap: 2rem; }
  .lab-stage { position: sticky; top: 10px; z-index: 5; }
  .lab-canvas { aspect-ratio: 16 / 10; max-height: 42svh; }
  .lab-grid { align-items: start; }
  .steps ol { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.5rem; }
  .steps-track { display: none; }
  .quote-grid { grid-template-columns: 1fr; }
  .quote-intro { display: contents; }
  .quote-grid { row-gap: 0; }
  .quote-grid .section-lede { margin-bottom: 2rem; }
  .quote-form { order: 3; }
  .direct { order: 4; margin-top: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { order: 2; padding: 2.5rem var(--gutter) 3.5rem; }
  .hero-wall { order: 1; min-height: 0; height: clamp(300px, 52svh, 560px); margin-top: 80px; }
  .hero-copy { padding-top: 2rem; }
  .about-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "statement statement" "photo facts"; }
  .facts { grid-template-columns: 1fr; }
  .gallery { columns: 2; }
  .fields { grid-template-columns: 1fr 1fr; }
  .q-split { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav { padding-block: 10px; }
  .nav-logo img { height: 38px; }
  .call-pill { display: none; }
  .hero-wall { margin-top: 66px; height: clamp(300px, 50svh, 460px); }
  .level { display: none; }
  .hero-copy {
    position: relative; z-index: 2;
    margin: -52px 10px 0; padding: 1.5rem calc(var(--gutter) - 10px) 2.75rem;
    background: var(--porcelain); border-radius: 2px;
    box-shadow: 0 -18px 40px -24px rgba(24,33,29,.45);
  }
  .hero-title { font-size: clamp(3rem, 15vw, 4.4rem); }
  .hero-sub { margin-top: 1.1rem; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .level { left: 14px; bottom: 14px; }
  .wall-caption { display: none; }
  .steps ol { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 1rem; }
  .step-num { grid-row: span 2; margin: 0; }
  .fields { grid-template-columns: 1fr; }
  .social-btn { flex: 1 1 100%; }
  .about-grid { grid-template-columns: 1fr; grid-template-areas: "statement" "photo" "facts"; row-gap: 2rem; }
  .about-photo { max-width: 420px; }
  .swatches { display: grid; grid-template-columns: 1fr 1fr; }
  .about-photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter); scrollbar-width: none; width: calc(100% + 2 * var(--gutter)); }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .g-item h3 { font-size: 1rem; }
  .g-item p { font-size: .84rem; }
  .lb-bar p { flex-basis: 100%; }
  .lb-nav { margin-left: auto; }
  .size-meter { grid-template-columns: repeat(10, 12px); grid-auto-rows: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer { padding-bottom: 2rem; }
  .q-actions .btn { flex: 1 1 100%; justify-content: center; }
  .phone-tiles { gap: 10px 14px; }
  .pt { width: min(64px, calc((100vw - 2 * var(--gutter) - 14px - 30px) / 6)); font-size: min(3rem, calc((100vw - 2 * var(--gutter) - 44px) / 6 * .74)); }

  .dock {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
    padding: 6px; border-radius: 6px;
    background: rgba(24,33,29,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 14px 34px -10px rgba(24,33,29,.55);
    transform: translateY(calc(100% + 24px)); visibility: hidden;
    transition: transform .5s var(--ease-set), visibility 0s linear .5s;
  }
  .dock.is-shown { transform: none; visibility: visible; transition: transform .5s var(--ease-set), visibility 0s; }
  .dock a {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 48px; padding: 0 1.1rem; border-radius: 3px;
    text-decoration: none; font-weight: 600; font-size: .98rem; color: var(--porcelain);
  }
  .dock a.dock-call { background: var(--brass); color: var(--ink); }
  .dock a.dock-text { border: 1.5px solid rgba(236,238,233,.3); }
  .dock svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .listello-track { animation: none; }
  .tile-face { transition: none; }
}

/* "Use this layout" lands on the select */
.select-wrap.flash select { animation: flash 1.4s var(--ease-set); }
@keyframes flash { 0%, 60% { border-color: var(--brass); box-shadow: 0 0 0 4px rgba(184,138,62,.3); } }

/* Small screens: photos open from the center like a tile being set */
@media (max-width: 860px) {
  .is-settable .g-photo, .is-settable.about-photo .g-photo {
    clip-path: inset(38% 38% 38% 38% round 2px);
    transition: clip-path 1s var(--ease-set);
  }
  .is-settable .g-photo img, .is-settable.about-photo .g-photo img { transform: scale(1.18); transition: transform 1.3s var(--ease-set); }
  .is-settable .is-set .g-photo, .is-settable.about-photo.is-set .g-photo { clip-path: inset(0 0 0 0 round 1px); }
  .is-settable .is-set .g-photo img, .is-settable.about-photo.is-set .g-photo img { transform: scale(1); }
}

.g-progress { display: none; }

/* =========================================================
   PHONES: extra motion and a swipeable gallery
   ========================================================= */
@media (max-width: 760px) {
  /* gallery becomes a swipe carousel */
  .gallery {
    columns: auto; display: flex; gap: 10px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 6px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery .g-item { flex: 0 0 80%; scroll-snap-align: start; padding-bottom: 0; transform-origin: 50% 40%; transition: transform .25s ease-out; }
  .gallery.is-collapsed .g-item[data-extra]:not([hidden]) { display: block; }
  .gallery .g-photo { aspect-ratio: 4 / 5; }
  .gallery .g-photo img { height: 100%; object-fit: cover; }
  .gallery-more { display: none !important; }
  .g-progress { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; font-size: .85rem; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
  .g-bar { flex: 1; height: 2px; background: var(--grout); position: relative; overflow: hidden; }
  .g-bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(.06); transition: transform .3s var(--ease-set); }

  /* process: number tiles flip as you reach them */
  .step.is-reached .step-num { animation: step-flip .7s var(--ease-set); }
  @keyframes step-flip { 0% { transform: perspective(300px) rotateX(0); } 45% { transform: perspective(300px) rotateX(-95deg); } 100% { transform: perspective(300px) rotateX(0); } }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .step.is-reached .step-num { animation: none; }
}
