/* ==========================================================================
   Thread & Frame Upholstery — site styles
   Palette: linen, ink, brass, clay. Type: Fraunces (display) + Instrument Sans (text).
   One file: tokens, base, components, home sections, inner pages, utilities.
   ========================================================================== */

:root {
  --linen: #F4EFE7;
  --linen-2: #EAE2D4;
  --paper: #FBF8F3;
  --ink: #1B2A41;
  --ink-2: #111C2E;
  --ink-3: #2B3B55;
  --text: #22304A;
  --muted: #525D70;
  --brass: #B08D57;
  --brass-text: #7A5E31;
  --brass-light: #D7BE8E;
  --clay: #B5684A;
  --sage: #7E8F7C;
  --line: rgba(27, 42, 65, .16);
  --line-strong: rgba(27, 42, 65, .32);
  --shadow: 0 1px 2px rgba(27,42,65,.06), 0 12px 32px -12px rgba(27,42,65,.22);
  --shadow-lg: 0 2px 4px rgba(27,42,65,.06), 0 30px 60px -24px rgba(27,42,65,.35);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(.84rem, .8rem + .2vw, .95rem);
  --step-0: clamp(1rem, .95rem + .3vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 1.8vw, 2.9rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.2vw, 4.4rem);
  --step-5: clamp(3.2rem, 2.1rem + 5vw, 6.2rem);

  --wrap: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 6vw + 2rem, 8rem);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: clip;
}
/* Linen weave: two hairline grids at low opacity, fixed so it never shifts with content. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(27,42,65,.045) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(27,42,65,.035) 0 1px, transparent 1px 3px);
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--brass); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--ink); color: var(--linen); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--linen); padding: .7rem 1rem; border-radius: var(--radius); font-weight: 600; }
.skip:focus { top: 1rem; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 2 * var(--gutter)); }
.section { padding-block: var(--section); }
.section.tight { padding-block: calc(var(--section) * .6); }
.section.alt { background: var(--linen-2); }
.section.paper { background: var(--paper); }

/* ---------- Type ---------- */
.display { font-size: var(--step-5); font-weight: 300; line-height: .98; letter-spacing: -.025em; font-variation-settings: "opsz" 144; }
.display em, .h2 em, .h1 em { font-style: italic; font-weight: 400; color: var(--brass-text); }
.h1 { font-size: var(--step-4); font-weight: 300; letter-spacing: -.02em; }
.h2 { font-size: var(--step-3); font-weight: 300; letter-spacing: -.02em; }
.h3 { font-size: var(--step-2); font-weight: 400; }
.h4 { font-size: var(--step-1); font-weight: 500; font-family: var(--sans); color: var(--ink); }
.kicker { font-family: var(--sans); font-size: var(--step--1); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-text); margin: 0 0 1rem; display: flex; align-items: center; gap: .75rem; }
.kicker::before { content: ""; width: 2.25rem; height: 2px; background: repeating-linear-gradient(90deg, var(--brass) 0 6px, transparent 6px 10px); flex: none; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-3); max-width: 38em; font-weight: 400; }
.lede + .lede { margin-top: -.25em; }
.measure { max-width: 62ch; }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head.split { max-width: none; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }
.section-head p:last-child { margin-bottom: 0; }

/* Stitch rule: brass dashes, the motif of the site. */
.stitch { height: 2px; background: repeating-linear-gradient(90deg, var(--brass) 0 10px, transparent 10px 18px); opacity: .85; }
.stitch-linen { background: repeating-linear-gradient(90deg, var(--brass-light) 0 10px, transparent 10px 18px); }
.rule { height: 1px; background: var(--line); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem; border-radius: var(--radius); border: 1.5px solid transparent;
  font-family: var(--sans); font-weight: 600; font-size: var(--step--1); letter-spacing: .02em; text-decoration: none;
  cursor: pointer; transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
  position: relative; isolation: isolate; min-height: 3rem;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 1.1em; height: 1.1em; }
.btn-ink { background: var(--ink); color: var(--linen); border-color: var(--ink); box-shadow: 0 10px 24px -14px rgba(27,42,65,.7); }
.btn-ink:hover { background: var(--ink-2); }
.btn-linen { background: var(--linen); color: var(--ink); border-color: var(--linen); }
.btn-linen:hover { background: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-linen { background: transparent; color: var(--linen); border-color: rgba(244,239,231,.45); }
.btn-ghost-linen:hover { border-color: var(--linen); }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 1.5px solid var(--brass); padding-bottom: .15rem; }
.link-arrow .ico { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 2rem; }
.ico { width: 1.25rem; height: 1.25rem; flex: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
/* The frosted glass lives on a pseudo-element: a backdrop-filter on the header itself would become the containing block for the fixed mobile nav panel and collapse it. */
.site-header::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(244,239,231,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-header::before { content: ""; display: block; height: 3px; background: var(--ink); }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -20px rgba(27,42,65,.35); }
.site-header { isolation: isolate; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 5rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); }
.brand .mark { width: 2.6rem; height: 2.6rem; color: var(--ink); flex: none; transition: transform .6s var(--ease); }
.brand:hover .mark { transform: rotate(45deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-size: 1.55rem; font-weight: 400; letter-spacing: -.01em; }
.brand-name .amp { font-style: italic; font-weight: 300; color: var(--brass-text); margin: 0 .05em; }
.brand-sub { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-text); margin-top: .35rem; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-list { display: flex; gap: .25rem; list-style: none; }
.nav-link { display: block; padding: .6rem .8rem; text-decoration: none; font-weight: 500; font-size: var(--step--1); color: var(--ink); border-radius: var(--radius); position: relative; }
.nav-link::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .3rem; height: 1.5px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-extra { display: flex; align-items: center; gap: 1.25rem; }
.nav-phone { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; font-weight: 600; font-size: var(--step--1); color: var(--ink); }
.nav-phone .ico { width: 1rem; height: 1rem; color: var(--brass-text); }
.nav-cta { padding: .7rem 1.2rem; min-height: 2.6rem; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line-strong); border-radius: var(--radius); width: 2.9rem; height: 2.9rem; align-items: center; justify-content: center; cursor: pointer; }
.burger { display: flex; flex-direction: column; gap: 5px; width: 20px; }
.burger span { display: block; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; transform-origin: center; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-phone { display: none; }
  .nav-link { padding-inline: .6rem; }
}
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; inset: calc(5rem + 3px) 0 0 0; background: var(--linen); flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 1.5rem var(--gutter) 3rem; gap: 1.5rem; overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; border-top: 1px solid var(--line); }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-link { font-family: var(--display); font-size: var(--step-2); font-weight: 300; padding: .85rem 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-link::after { display: none; }
  .nav-link.is-active { color: var(--brass-text); }
  .nav-extra { flex-direction: column; align-items: stretch; gap: 1rem; }
  .nav-phone { display: inline-flex; justify-content: center; font-size: var(--step-1); }
  .nav-cta { width: 100%; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Frame: the offset brass border used on feature images ---------- */
.frame { position: relative; }
.frame-inner { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--linen-2); }
.frame::after { content: ""; position: absolute; inset: 0; border: 1.5px solid var(--brass); border-radius: var(--radius); transform: translate(14px, 14px); pointer-events: none; z-index: -1; }
.frame .cover { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 5vw, 5rem) 0 clamp(3rem, 6vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-copy .display { margin-bottom: 1.4rem; }
.hero-copy .lede { margin-bottom: 0; }
.hero-media { position: relative; }
.hero-media .frame-inner { aspect-ratio: 4 / 3; }
.hero-media .cover { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease); }
.hero-media:hover .cover { transform: scale(1.05); }
.swatch-strip { position: absolute; left: -1.25rem; bottom: 2rem; display: flex; gap: .5rem; padding: .6rem; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 2; }
.swatch-strip span { width: 2.6rem; height: 3.4rem; border-radius: 2px; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.hero-caption { position: absolute; right: 1rem; bottom: -1.9rem; font-family: var(--display); font-style: italic; font-size: var(--step--1); color: var(--muted); }
.trust-row { display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); list-style: none; }
.trust-row li { display: inline-flex; align-items: center; gap: .55rem; font-size: var(--step--1); font-weight: 500; color: var(--ink-3); }
.trust-row .ico { width: 1.1rem; height: 1.1rem; color: var(--brass-text); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; margin-bottom: 1rem; }
  .swatch-strip { left: 1rem; bottom: 1rem; }
  .hero-caption { position: static; margin-top: 2rem; text-align: right; }
}

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.1rem 0; overflow: hidden; background: var(--paper); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--display); font-style: italic; font-weight: 300; font-size: var(--step-1); color: var(--ink); white-space: nowrap; display: inline-flex; align-items: center; gap: 3rem; }
.marquee-track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; gap: .5rem 2rem; }
  .marquee-track[aria-hidden="true"] { display: none; }
}

/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.service-card { position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.service-card:hover, .service-card:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brass); }
.service-card .media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--linen-2); }
.service-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-card:hover .media img { transform: scale(1.04); }
.service-card .body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.service-card .num { font-family: var(--display); font-style: italic; font-size: var(--step-1); color: var(--brass-text); line-height: 1; }
.service-card .h3 { font-size: var(--step-1); }
.service-card p { color: var(--muted); font-size: var(--step--1); margin: 0; flex: 1; }
.service-card .link-arrow { margin-top: .75rem; font-size: var(--step--1); align-self: flex-start; }
.service-card .link-arrow::after { content: ""; position: absolute; inset: 0; }
.service-card.wide { grid-column: span 2; flex-direction: row; }
.service-card.wide .media { aspect-ratio: auto; flex: 1 1 55%; }
.service-card.wide .body { flex: 1 1 45%; justify-content: center; }
@media (max-width: 720px) { .service-card.wide { grid-column: span 1; flex-direction: column; } .service-card.wide .media { aspect-ratio: 4 / 3; } }

/* ---------- Before / after comparison ---------- */
.compare { margin: 0; }
.compare-stage { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--linen-2); user-select: none; }
.compare-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-after { clip-path: inset(0 0 0 var(--split, 50%)); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 2px; background: var(--linen); transform: translateX(-1px); box-shadow: 0 0 0 1px rgba(27,42,65,.3); pointer-events: none; }
.compare-handle span { position: absolute; top: 50%; left: 50%; width: 3rem; height: 3rem; transform: translate(-50%, -50%); border-radius: 50%; background: var(--linen); border: 1.5px solid var(--ink); display: grid; place-items: center; box-shadow: var(--shadow); }
.compare-handle span::before { content: ""; width: 10px; height: 10px; border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); }
.compare-tag { position: absolute; top: 1rem; padding: .35rem .7rem; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border-radius: 2px; }
.compare-tag.is-before { left: 1rem; background: #9A4F33; color: #fff; }
.compare-tag.is-after { right: 1rem; background: var(--ink); color: var(--linen); }
.compare-control { display: block; margin-top: .9rem; }
.compare-control input[type="range"] { width: 100%; accent-color: var(--ink); cursor: ew-resize; height: 2.25rem; }
.compare-caption { margin-top: .75rem; font-size: var(--step--1); color: var(--muted); }
.compare-caption strong { color: var(--ink); font-weight: 600; display: block; }
/* Without JS the two photos sit side by side with their labels in the alt text. */
.no-js .compare-stage { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; overflow: visible; }
.no-js .compare-img { position: static; aspect-ratio: 3 / 2; }
.no-js .compare-after { clip-path: none; }
.no-js .compare-handle, .no-js .compare-control { display: none; }
.no-js .compare-tag { display: none; }
.compare-feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 900px) { .compare-feature { grid-template-columns: 1fr; } }

/* ---------- Process steps ---------- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; position: relative; }
.steps::before { content: ""; position: absolute; left: 1.5rem; right: 1.5rem; top: 1.6rem; height: 2px; background: repeating-linear-gradient(90deg, var(--brass) 0 10px, transparent 10px 18px); }
.step { counter-increment: step; position: relative; padding-top: 4.2rem; }
.step::before { content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--linen); border: 1.5px solid var(--ink); display: grid; place-items: center; font-family: var(--display); font-style: italic; font-size: 1.1rem; color: var(--ink); }
.step h3 { font-family: var(--sans); font-weight: 600; font-size: var(--step-0); margin-bottom: .4rem; }
.step p { font-size: var(--step--1); color: var(--muted); margin: 0; }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; } .steps::before { display: none; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } .step { padding-top: 0; padding-left: 4.25rem; } .steps::before { display: block; left: 1.6rem; right: auto; top: 1.5rem; bottom: 1.5rem; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--brass) 0 10px, transparent 10px 18px); } }

/* ---------- Swatches ---------- */
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 1.5rem 1.25rem; }
.swatch { display: flex; flex-direction: column; gap: .35rem; transition: opacity .3s, transform .3s var(--ease); }
.swatch[hidden] { display: none; }
.swatch-cloth { aspect-ratio: 1; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 10px 24px -14px rgba(27,42,65,.5); background-color: var(--c); position: relative; overflow: hidden; }
.swatch-cloth::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.14), transparent 45%, rgba(0,0,0,.08)); }
.swatch:hover .swatch-cloth { transform: rotate(-1.5deg) translateY(-3px); }
.swatch-cloth { transition: transform .4s var(--ease); }
.swatch-name { font-family: var(--display); font-weight: 400; font-size: var(--step-1); margin-top: .5rem; }
.swatch-note { font-size: var(--step--1); color: var(--muted); margin: 0; }
.swatch-meta { display: flex; gap: 1rem; margin: .35rem 0 0; font-size: .78rem; }
.swatch-meta div { display: flex; flex-direction: column; }
.swatch-meta dt { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .62rem; font-weight: 600; }
.swatch-meta dd { margin: 0; font-weight: 600; color: var(--ink); }
/* Textures, all CSS. */
.tex-linen { background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.12) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, rgba(0,0,0,.10) 0 1px, transparent 1px 4px); }
.tex-wool { background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,.14) 0 1px, transparent 2px), radial-gradient(circle at 70% 70%, rgba(0,0,0,.14) 0 1px, transparent 2px); background-size: 6px 6px, 6px 6px; }
.tex-herringbone { background-image: repeating-linear-gradient(45deg, var(--c) 0 6px, var(--c2) 6px 8px), repeating-linear-gradient(-45deg, var(--c) 0 6px, var(--c2) 6px 8px); background-size: 24px 24px, 24px 24px; background-position: 0 0, 12px 0; background-blend-mode: multiply; }
.tex-velvet { background-image: linear-gradient(160deg, var(--c2) 0%, var(--c) 35%, var(--c) 65%, var(--c2) 100%), repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 2px); }
.tex-boucle { background-image: radial-gradient(circle, var(--c2) 0 2px, transparent 2.5px), radial-gradient(circle, var(--c2) 0 1.5px, transparent 2px); background-size: 9px 9px, 13px 13px; background-position: 0 0, 4px 6px; }
.tex-leather { background-image: radial-gradient(ellipse at 40% 35%, var(--c2), var(--c) 70%), radial-gradient(circle, rgba(0,0,0,.18) 0 .6px, transparent 1.2px); background-size: 100% 100%, 5px 5px; }
.tex-performance { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 2px, transparent 2px 4px); }
.tex-stripe { background-image: repeating-linear-gradient(90deg, var(--c) 0 14px, var(--c2) 14px 17px, var(--c) 17px 20px, var(--c2) 20px 22px); }
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; border: 0; padding: 0; }
.filter-bar legend { font-size: var(--step--1); font-weight: 600; color: var(--muted); margin-bottom: .75rem; width: 100%; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: .5rem 1rem; border: 1.5px solid var(--line-strong); border-radius: 999px; font-size: var(--step--1); font-weight: 500; background: var(--paper); transition: background-color .2s, color .2s, border-color .2s; }
.chip input:checked + span { background: var(--ink); color: var(--linen); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 3px; }
.filter-count { font-size: var(--step--1); color: var(--muted); margin: -1rem 0 1.5rem; }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; }
.review { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; display: flex; flex-direction: column; gap: .9rem; position: relative; }
.review .quote-ico { width: 2rem; height: 2rem; color: var(--brass-light); }
.review blockquote { margin: 0; font-family: var(--display); font-size: var(--step-1); line-height: 1.4; color: var(--ink); font-weight: 300; flex: 1; }
.review footer { font-size: var(--step--1); color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.review footer strong { color: var(--ink); font-weight: 600; }
.stars { display: inline-flex; gap: .1rem; }
.stars .star { width: 1rem; height: 1rem; color: var(--brass); }
.stars .star.off { color: var(--line-strong); }
.rating-badge { display: inline-flex; align-items: center; gap: .9rem; padding: .9rem 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.rating-badge strong { font-family: var(--display); font-size: var(--step-2); line-height: 1; color: var(--ink); }
.rating-badge span { font-size: var(--step--1); color: var(--muted); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem 2rem; list-style: none; }
.stats li { border-left: 1.5px solid var(--brass); padding-left: 1.25rem; }
.stats strong { display: block; font-family: var(--display); font-size: var(--step-3); font-weight: 300; line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.stats span { font-size: var(--step--1); color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--linen); padding-block: clamp(3rem, 6vw, 5.5rem); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(244,239,231,.04) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(244,239,231,.03) 0 1px, transparent 1px 3px); pointer-events: none; }
.cta-band .h2 { color: var(--linen); margin-bottom: .75rem; }
.cta-band p { color: rgba(244,239,231,.78); max-width: 46rem; margin: 0; }
.cta-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; position: relative; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 800px) { .cta-grid { grid-template-columns: 1fr; } .cta-actions { justify-content: flex-start; } }

/* ---------- Two-column feature (image + copy) ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.feature.flip > .feature-media { order: 2; }
.feature-media .frame-inner { aspect-ratio: 4 / 3; }
.feature-media .frame-inner img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy .h2 { margin-bottom: 1.25rem; }
.feature-copy p { color: var(--ink-3); }
.check-list { list-style: none; display: grid; gap: .7rem; margin: 1.5rem 0; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; }
.check-list .ico { width: 1.25rem; height: 1.25rem; color: var(--brass-text); margin-top: .15rem; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature.flip > .feature-media { order: 0; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(2.5rem, 5vw, 5rem) 0 clamp(2.5rem, 5vw, 4.5rem); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--paper), var(--linen)); }
.page-hero .display { font-size: var(--step-4); margin-bottom: 1.25rem; }
.page-hero .lede { margin-bottom: 0; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.page-hero-media .frame-inner { aspect-ratio: 3 / 2; }
@media (max-width: 860px) { .page-hero-grid { grid-template-columns: 1fr; } }

/* ---------- Service page ---------- */
.service-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.service-body p { color: var(--ink-3); font-size: var(--step-0); }
.service-body .lede { color: var(--ink); }
.aside-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; position: sticky; top: 6.5rem; }
.aside-card + .aside-card { margin-top: 1.5rem; position: static; }
.aside-card .h4 { margin-bottom: 1rem; }
.aside-card .price { font-size: var(--step--1); color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 1rem; margin: 1.25rem 0; }
.aside-card .btn { width: 100%; }
.service-nav { list-style: none; display: grid; gap: .25rem; }
.service-nav a { display: flex; justify-content: space-between; align-items: center; padding: .65rem .25rem; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: var(--step--1); }
.service-nav a.is-active, .service-nav a:hover { color: var(--brass-text); }
.service-nav .ico { width: 1rem; height: 1rem; }
@media (max-width: 900px) { .service-layout { grid-template-columns: 1fr; } .aside-card { position: static; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; }
.gallery > * { grid-column: span 4; }
.gallery > .span-6 { grid-column: span 6; }
.gallery > .span-8 { grid-column: span 8; }
.gallery > .span-12 { grid-column: span 12; }
.work { display: flex; flex-direction: column; gap: .75rem; }
.work .media { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--linen-2); }
.work .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.work:hover .media img { transform: scale(1.03); }
.work-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--brass-text); }
.work h3 { font-size: var(--step-1); }
.work p { font-size: var(--step--1); color: var(--muted); margin: 0; }
.gallery .compare { grid-column: span 12; }
@media (max-width: 960px) { .gallery > *, .gallery > .span-6, .gallery > .span-8 { grid-column: span 6; } }
@media (max-width: 620px) { .gallery > *, .gallery > .span-6, .gallery > .span-8 { grid-column: span 12; } }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 2rem; }
.person .media { aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); margin-bottom: 1rem; }
.person .media img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: var(--step-2); }
.person .role { font-size: var(--step--1); color: var(--brass-text); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: .25rem 0 .75rem; }
.person p { color: var(--ink-3); font-size: var(--step--1); margin: 0; }

/* ---------- Areas ---------- */
.areas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.25rem; }
.area { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.area h2, .area h3 { font-size: var(--step-1); display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.area h2 small, .area h3 small { font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--brass-text); white-space: nowrap; }
.area p { margin: .5rem 0 0; font-size: var(--step--1); color: var(--muted); }
.map { width: 100%; aspect-ratio: 16 / 7; border: 0; border-radius: var(--radius); filter: saturate(.75) contrast(1.02); }
.map-wide { margin-top: clamp(2rem, 4vw, 3.5rem); }
@media (max-width: 700px) { .map { aspect-ratio: 4 / 3; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.price-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); min-width: 640px; }
.price-table caption { text-align: left; padding: 1.25rem 1.5rem .5rem; font-family: var(--display); font-size: var(--step-1); color: var(--ink); }
.price-table th, .price-table td { padding: .9rem 1.5rem; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.price-table thead th { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-top: 0; }
.price-table tbody th { font-weight: 600; color: var(--ink); }
.price-table td.num { font-family: var(--display); font-size: var(--step-0); color: var(--ink); white-space: nowrap; }
.price-table td.note { color: var(--muted); }
.price-table tbody tr:hover { background: var(--linen); }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.25rem 0; font-family: var(--display); font-size: var(--step-1); color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ico { width: 1.25rem; height: 1.25rem; color: var(--brass-text); transform: rotate(90deg); transition: transform .3s var(--ease); flex: none; }
.faq-item[open] .faq-ico { transform: rotate(-90deg); }
.faq-body { padding: 0 0 1.5rem; color: var(--ink-3); max-width: 62ch; }
.faq-body p:last-child { margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .8fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field label { display: block; font-weight: 600; font-size: var(--step--1); margin-bottom: .4rem; color: var(--ink); }
.field input, .field textarea, .field select { width: 100%; padding: .85rem 1rem; font: inherit; font-size: var(--step-0); color: var(--text); background: var(--linen); border: 1.5px solid var(--line-strong); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231B2A41'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 1.2rem; padding-right: 2.6rem; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(176,141,87,.35); }
.field textarea { resize: vertical; min-height: 9rem; }
.field .hint { font-size: .82rem; color: var(--muted); margin: .35rem 0 0; }
.field .error { font-size: .85rem; color: #8E2F1F; font-weight: 600; margin: .4rem 0 0; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #B03A26; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-alert { padding: 1rem 1.25rem; border-radius: var(--radius); font-weight: 500; margin: 0; }
.form-alert.ok { background: #E6EFE6; color: #1F4B2A; border: 1px solid #B9D3BC; }
.form-alert.bad { background: #F7E6E2; color: #7A2A1C; border: 1px solid #E5B9B0; }
.contact-aside { display: grid; gap: 1.25rem; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.contact-card h2 { font-size: var(--step-1); margin-bottom: .9rem; }
.contact-card p { margin: 0 0 .5rem; }
.contact-card a { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 500; }
.contact-card a:hover { color: var(--brass-text); }
.contact-card .ico { width: 1.1rem; height: 1.1rem; color: var(--brass-text); }
.address-block { display: flex; gap: .6rem; align-items: flex-start; line-height: 1.5; }
.hours-list { list-style: none; display: grid; gap: .5rem; }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--step--1); border-bottom: 1px dashed var(--line); padding-bottom: .5rem; }
.hours-list strong { font-weight: 600; color: var(--ink); text-align: right; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--step-2); margin: 2.25rem 0 .75rem; }
.prose h3 { font-size: var(--step-1); margin: 1.75rem 0 .5rem; font-family: var(--sans); font-weight: 600; }
.prose p, .prose li { color: var(--ink-3); }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.25em; }
.prose li { margin-bottom: .4em; }
.legal-meta { font-size: var(--step--1); color: var(--muted); border-left: 2px solid var(--brass); padding-left: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(244,239,231,.8); margin-top: 0; }
.site-footer .stitch { opacity: .6; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem; padding: clamp(3rem, 5vw, 4.5rem) 0 2.5rem; }
.brand-footer, .brand-footer .mark { color: var(--linen); }
.brand-footer .brand-sub, .brand-footer .amp { color: var(--brass-light); }
.footer-tag { margin: 1.25rem 0; font-size: var(--step--1); max-width: 34ch; }
.social-row { display: flex; gap: .6rem; }
.social { width: 2.6rem; height: 2.6rem; border: 1px solid rgba(244,239,231,.3); border-radius: 50%; display: grid; place-items: center; color: var(--linen); transition: background-color .2s, border-color .2s; }
.social:hover { background: rgba(244,239,231,.1); border-color: var(--linen); }
.social .ico { width: 1.1rem; height: 1.1rem; }
.footer-h { font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--brass-light); margin-bottom: 1.1rem; }
.footer-address, .footer-contact { font-size: var(--step--1); line-height: 1.7; }
.footer-contact { margin-top: .9rem; }
.site-footer a { color: var(--linen); text-decoration: none; }
.site-footer a:hover { color: var(--brass-light); }
.footer-links { list-style: none; display: grid; gap: .45rem; font-size: var(--step--1); }
.footer-hours { list-style: none; display: grid; gap: .5rem; font-size: var(--step--1); margin-bottom: 1rem; }
.footer-hours li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed rgba(244,239,231,.2); padding-bottom: .5rem; }
.footer-hours strong { color: var(--linen); font-weight: 600; text-align: right; }
.footer-note { font-size: .85rem; color: rgba(244,239,231,.6); margin-bottom: 1.25rem; }
.footer-bottom { border-top: 1px solid rgba(244,239,231,.15); padding: 1.5rem 0 2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom .legal { display: flex; gap: 1.5rem; }
.footer-bottom a { text-decoration: underline; text-decoration-color: rgba(244,239,231,.35); text-underline-offset: .2em; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Transform only, no opacity: a fade would let an accessibility audit sample a half-blended colour. */
  .reveal { transform: translateY(14px); transition: transform .7s var(--ease); }
  .reveal.in { transform: none; }
  .reveal.instant { transition: none; }
  .no-js .reveal { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; } .reveal.d5 { transition-delay: .4s; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer .btn, .cta-band, .nav-toggle, .skip, .marquee { display: none !important; }
  body::before { display: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* Home-page swatch teaser: six across so nothing orphans onto a second row. */
.swatch-grid.six { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1000px) { .swatch-grid.six { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .swatch-grid.six { grid-template-columns: repeat(2, 1fr); } }

/* Phone hero: the swatch strip tucks under the photo's bottom edge and the caption sits below it. */
@media (max-width: 860px) {
  .hero-media { display: flex; flex-direction: column; align-items: flex-start; }
  .hero-media .frame-inner { width: 100%; }
  .swatch-strip { position: static; margin: -2.4rem 0 0 1rem; }
  .hero-caption { margin: 1rem 0 0; align-self: flex-end; }
  .frame::after { transform: translate(10px, 10px); }
}

/* Tap targets: footer links get a padded box so neighbours are at least 24px apart. */
.footer-contact a, .footer-links a, .footer-bottom a, .contact-card p > a { display: inline-block; padding: .3rem 0; }
.footer-contact { line-height: 1.4; }
.footer-links { gap: .1rem; }

/* Laptop widths: keep nav items on one line so nothing wraps between 920px and 1180px. */
.nav-link, .nav-cta, .nav-phone { white-space: nowrap; }
@media (min-width: 921px) and (max-width: 1180px) {
  .header-inner { gap: 1rem; }
  .nav { gap: .75rem; }
  .nav-link { padding: .6rem .5rem; font-size: .85rem; }
  .nav-cta { padding: .6rem .9rem; font-size: .82rem; }
  .brand-name { font-size: 1.35rem; }
}

/* ---------- Even grids (house rule: no row of N then a single box). Column counts divide the item counts. ---------- */
.swatch-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .swatch-grid { grid-template-columns: repeat(4, 1fr); } }
.swatch-grid.six { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .swatch-grid.six { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .swatch-grid.six { grid-template-columns: repeat(6, 1fr); } }
.services-grid { grid-template-columns: 1fr; }
@media (min-width: 560px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.reviews-grid, .areas-grid, .team-grid { grid-template-columns: 1fr; }
@media (min-width: 800px) { .reviews-grid, .areas-grid, .team-grid { grid-template-columns: repeat(3, 1fr); } }
.stats { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 960px) { .gallery > .work, .gallery > .work.span-6 { grid-column: span 6; } }
@media (max-width: 620px) { .gallery > .work, .gallery > .work.span-6 { grid-column: span 12; } }
/* Grid children may shrink below their content width; nothing may push the page sideways on a phone. */
.swatch-grid > *, .areas-grid > *, .gallery > *, .services-grid > *, .reviews-grid > *, .team-grid > * { min-width: 0; }
.swatch-meta { flex-wrap: wrap; gap: .5rem .9rem; }
.area h2, .area h3 { flex-wrap: wrap; }
.area h2 small, .area h3 small { white-space: normal; }
.compare-control input[type="range"] { margin: 0; box-sizing: border-box; }
