/* ==========================================================================
   Personal Impressions — Carpets & Rugs, Ottawa
   ========================================================================== */

:root {
  --linen: #f1f3f6;
  --paper: #fafbfc;
  --sand: #e3e8ee;
  --line: #d3dae3;
  --ink: #16202c;
  --ink-2: #3b4655;
  --muted: #586475;
  --blue: #24466f;
  --blue-dk: #183253;
  --steel: #5f84b0;
  --sky: #b4cbe6;
  --night: #111a26;
  --night-2: #1b2736;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 4px;
  --shadow: 0 1px 2px rgb(22 32 44 / 6%), 0 18px 40px -18px rgb(22 32 44 / 35%);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
a[href^="tel:"] { white-space: nowrap; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; font-variation-settings: "opsz" 96; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--blue); color: var(--paper); }

.sr-only { 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-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius); text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.on-dark .eyebrow { color: var(--sky); }
.display { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.025em; font-variation-settings: "opsz" 144; }
.h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); }
.display em, .h2 em, .h3 em { font-style: italic; font-weight: 400; color: var(--blue); }
.on-dark .h2 em, .on-dark .display em { color: var(--sky); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--ink-2); line-height: 1.6; max-width: 38em; }
.on-dark .lead { color: #cbd5e1; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-weight: 600; font-size: .975rem; letter-spacing: .01em; text-decoration: none;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: var(--paper); }
.btn-primary:hover { background: var(--blue-dk); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--sky); }
.on-dark .btn-outline { border-color: rgb(250 251 252 / 50%); color: var(--paper); }
.on-dark .btn-outline:hover { background: var(--paper); color: var(--ink); }
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .95rem; color: var(--blue); text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color .2s, gap .2s var(--ease);
}
.text-link:hover { border-color: currentColor; gap: 12px; }
.text-link svg { width: 16px; height: 16px; flex: none; }
.on-dark .text-link { color: var(--sky); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--night); color: #c3cedb; font-size: .8125rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 38px; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.topbar-item svg { width: 14px; height: 14px; color: var(--sky); }
a.topbar-item:hover { color: var(--paper); }

/* ---------- Open status dot ---------- */
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
[data-state="open"] .status-dot { background: #4f9a5b; box-shadow: 0 0 0 3px rgb(79 154 91 / 22%); }
[data-state="closed"] .status-dot { background: #c2564f; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgb(241 243 246 / 92%);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgb(22 32 44 / 40%); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 38px; height: 38px; color: var(--blue); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; letter-spacing: -0.01em; font-variation-settings: "opsz" 72; }
.brand-tag { font-size: .625rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 6px; font-weight: 600; }

.site-nav ul { list-style: none; display: flex; gap: 4px; }
.site-nav a:not(.btn) {
  position: relative; display: block; padding: 10px 12px;
  font-size: .9375rem; font-weight: 600; text-decoration: none; color: var(--ink-2);
  transition: color .2s;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--blue); }
.nav-cta { display: none; }

.header-call {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px;
  background: var(--blue); color: var(--paper); border-radius: var(--radius);
  font-weight: 700; font-size: .9375rem; text-decoration: none; white-space: nowrap; transition: background .2s;
}
.header-call:hover { background: var(--blue-dk); }
.header-call svg { width: 16px; height: 16px; }

.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line);
  background: var(--paper); border-radius: var(--radius); cursor: pointer; position: relative;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  position: absolute; left: 50%; width: 20px; height: 1.5px; margin-left: -10px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle .bars { top: 50%; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle .bars::before { transform: translateY(-6px); }
.nav-toggle .bars::after { transform: translateY(6px); }
.nav-open .nav-toggle .bars { background: transparent; }
.nav-open .nav-toggle .bars::before { transform: rotate(45deg); background: var(--ink); }
.nav-open .nav-toggle .bars::after { transform: rotate(-45deg); background: var(--ink); }

/* ---------- Rug border band ---------- */
.rug-band {
  height: 26px;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Cpath d='M8 1.5l6.5 6.5L8 14.5 1.5 8z' fill='%2324466f'/%3E%3Cpath d='M24 4l4 4-4 4-4-4z' fill='none' stroke='%235f84b0' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: center;
  border-block: 2px solid var(--blue);
  box-shadow: inset 0 3px 0 var(--paper), inset 0 4px 0 var(--sky), inset 0 -3px 0 var(--paper), inset 0 -4px 0 var(--sky);
}
.rug-band.on-night { background-color: var(--night); box-shadow: inset 0 3px 0 var(--night), inset 0 4px 0 rgb(180 203 230 / 40%), inset 0 -3px 0 var(--night), inset 0 -4px 0 rgb(180 203 230 / 40%); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.section-paper { background: var(--paper); }
.section-sand { background: var(--sand); }
.section-night { background: var(--night); color: var(--paper); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .lead { margin: 14px 0 0; }
.section-head-center { flex-direction: column; align-items: center; text-align: center; }
.section-head-center .lead { margin-inline: auto; }

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-copy .lead { margin: 26px 0 34px; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--ink-2); }
.hero-facts li { display: inline-flex; align-items: center; gap: 10px; }
.hero-facts svg { width: 18px; height: 18px; color: var(--blue); }
.hero-facts a { text-decoration: none; font-weight: 600; }
.hero-facts a:hover { color: var(--blue); }

.hero-media { position: relative; padding: 0 0 56px 0; }
.hero-main { position: relative; aspect-ratio: 5 / 4.4; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-inset {
  position: absolute; left: -36px; bottom: 0; width: 42%; margin: 0;
  border: 8px solid var(--linen); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.hero-inset img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hero-badge {
  position: absolute; right: 22px; bottom: 22px;
  display: grid; place-items: center; text-align: center;
  width: 128px; height: 128px; border-radius: 50%;
  background: var(--blue); color: var(--paper);
  font-family: var(--font-display); font-size: 1rem; line-height: 1.15; padding: 18px;
  box-shadow: 0 0 0 6px var(--linen), var(--shadow);
}
.hero-badge small { display: block; font-family: var(--font-body); font-size: .625rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sky); margin-bottom: 4px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.service { display: flex; flex-direction: column; text-decoration: none; }
.service-img { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; background: var(--sand); }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service:hover .service-img img { transform: scale(1.05); }
.service-num { position: absolute; top: 14px; left: 14px; font-family: var(--font-display); font-style: italic; font-size: .95rem; color: var(--paper); background: rgb(17 26 38 / 55%); padding: 2px 10px; border-radius: 20px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.service h3 { margin: 20px 0 8px; font-size: 1.45rem; }
.service p { color: var(--ink-2); font-size: .975rem; margin-bottom: 14px; }
.service .text-link { margin-top: auto; align-self: flex-start; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.split-reverse > :first-child { order: 2; }
.split-media { position: relative; }
.split-media > img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-media .inset {
  position: absolute; right: -24px; bottom: -40px; width: 38%;
  border: 6px solid var(--night); border-radius: var(--radius); box-shadow: var(--shadow);
}
.section-paper .split-media .inset { border-color: var(--paper); }
.split-copy .lead { margin: 22px 0 28px; }
.checklist { list-style: none; display: grid; gap: 14px; margin: 0 0 34px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--steel); }
.checklist strong { display: block; font-weight: 700; }
.checklist span { color: var(--ink-2); font-size: .975rem; }
.on-dark .checklist span { color: #bcc8d6; }
.on-dark .checklist svg { color: var(--sky); }

/* ---------- Materials ---------- */
.materials { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.material {
  display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start;
  padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.material h3 { font-size: 1.25rem; margin-bottom: 4px; }
.material p { margin: 0; font-size: .925rem; color: var(--ink-2); line-height: 1.55; }
.swatch { width: 64px; height: 64px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 8%); }
.swatch-wool { background-color: #2c4a73; background-image: radial-gradient(circle at 3px 3px, rgb(255 255 255 / 18%) 1.6px, transparent 2px), radial-gradient(circle at 7px 7px, rgb(0 0 0 / 18%) 1.6px, transparent 2px); background-size: 8px 8px; }
.swatch-sisal { background-color: #c8ad82; background-image: repeating-linear-gradient(45deg, rgb(92 66 32 / 28%) 0 3px, transparent 3px 6px), repeating-linear-gradient(-45deg, rgb(255 246 225 / 30%) 0 3px, transparent 3px 6px); }
.swatch-silk { background: linear-gradient(125deg, #d8c9b3 0%, #fbf6ee 38%, #cdbca3 55%, #f4ece0 78%, #c9b697 100%); }
.swatch-shag { background-color: #9aa3ad; background-image: repeating-linear-gradient(100deg, rgb(255 255 255 / 25%) 0 2px, transparent 2px 5px, rgb(0 0 0 / 15%) 5px 6px, transparent 6px 9px), repeating-linear-gradient(80deg, rgb(255 255 255 / 12%) 0 1px, transparent 1px 7px); }
.swatch-nylon { background-color: #7d8a98; background-image: linear-gradient(rgb(255 255 255 / 10%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 10%) 1px, transparent 1px); background-size: 4px 4px; }
.swatch-jute { background-color: #b08b56; background-image: linear-gradient(90deg, rgb(70 48 20 / 30%) 50%, transparent 50%), linear-gradient(rgb(255 240 210 / 22%) 50%, transparent 50%); background-size: 12px 12px, 12px 12px; }
.swatch-seagrass { background-color: #a9a777; background-image: repeating-linear-gradient(0deg, rgb(60 60 20 / 28%) 0 2px, transparent 2px 6px), repeating-linear-gradient(90deg, rgb(255 255 230 / 15%) 0 10px, transparent 10px 20px); }

/* ---------- Work mosaic (home) ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 230px); gap: 12px; }
.mosaic a { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mosaic a:hover img { transform: scale(1.05); }
.mosaic .m-tall { grid-row: span 2; }
.mosaic .m-wide { grid-column: span 2; }
.mosaic .m-big { grid-column: span 2; grid-row: span 2; }
.mosaic-tag { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 20px; background: rgb(250 251 252 / 92%); font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: var(--ink); }

/* ---------- Brands marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track ul { list-style: none; display: flex; align-items: center; }
.marquee-track li { display: flex; align-items: center; gap: 36px; padding-right: 36px; font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2rem); font-style: italic; white-space: nowrap; color: var(--ink-2); }
.marquee-track li::after { content: "◆"; font-style: normal; font-size: .55em; color: var(--steel); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Values / why us ---------- */
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.value { padding-top: 22px; border-top: 1px solid var(--line); }
.on-dark .value { border-color: rgb(180 203 230 / 25%); }
.value svg { width: 30px; height: 30px; color: var(--blue); margin-bottom: 16px; }
.on-dark .value svg { color: var(--sky); }
.value h3 { font-size: 1.25rem; margin-bottom: 8px; }
.value p { font-size: .95rem; color: var(--ink-2); margin: 0; }
.on-dark .value p { color: #bcc8d6; }

/* ---------- Visit block ---------- */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--paper); }
.visit-info { padding: clamp(28px, 4vw, 52px); }
.visit-info .h2 { margin-bottom: 18px; }
.visit-map { min-height: 420px; background: var(--sand); }
.visit-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.4); }
.contact-lines { list-style: none; display: grid; gap: 14px; margin: 22px 0 28px; }
.contact-lines li { display: flex; gap: 14px; align-items: flex-start; }
.contact-lines svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--blue); }
.contact-lines a { text-decoration: none; font-weight: 600; }
.contact-lines a:hover { color: var(--blue); }
.contact-lines small { display: block; color: var(--muted); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }

.hours { width: 100%; border-collapse: collapse; font-size: .975rem; }
.hours caption { text-align: left; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-bottom: 8px; }
.hours th, .hours td { padding: 9px 0; border-bottom: 1px dashed var(--line); text-align: left; font-weight: 500; }
.hours td { text-align: right; color: var(--ink-2); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--blue); font-weight: 700; }
.hours tr.is-today th::after { content: "Today"; margin-left: 10px; font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; background: var(--blue); color: var(--paper); padding: 2px 7px; border-radius: 20px; vertical-align: 2px; }
.open-status { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; margin-bottom: 18px; }
.fine-print { font-size: .8125rem; color: var(--muted); margin-top: 12px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--blue); color: var(--paper); }
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M20 4l16 16-16 16L4 20z' fill='none' stroke='%23fafbfc' stroke-width='1.2'/%3E%3Cpath d='M20 13l7 7-7 7-7-7z' fill='%23fafbfc'/%3E%3C/svg%3E");
}
.cta-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; padding-block: clamp(48px, 7vw, 80px); }
.cta-inner .h2 { max-width: 16em; }
.cta-inner .h2 em { color: var(--sky); }
.cta-inner p { color: #dce7f4; margin: 12px 0 0; max-width: 34em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #c3cedb; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-block: clamp(56px, 7vw, 84px) 40px; }
.site-footer .brand { margin-bottom: 18px; }
.site-footer .brand-name { color: var(--paper); }
.site-footer .brand-tag { color: #93a0b0; }
.site-footer .brand-mark { color: var(--sky); }
.footer-grid h2 { font-family: var(--font-body); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sky); margin-bottom: 18px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--paper); }
.footer-grid p { color: #98a5b5; }
.footer-hours li { display: flex; justify-content: space-between; gap: 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px 28px; border-top: 1px solid rgb(180 203 230 / 15%); font-size: .8125rem; color: #8391a2; }

/* ---------- Inner page hero ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); }
.page-hero .display { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 14em; }
.page-hero .lead { margin-top: 22px; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: .8125rem; color: var(--muted); margin-bottom: 26px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.page-banner { position: relative; }
.page-banner img { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Products page ---------- */
.product-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 40px; background: var(--paper); font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--ink-2); transition: border-color .2s, color .2s, background .2s; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.product:first-of-type { border-top: 0; }
.product:nth-of-type(even) .product-media { order: 2; }
.product-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.product .h2 { margin-bottom: 18px; }
.product p { color: var(--ink-2); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.tags li { font-size: .8125rem; font-weight: 600; padding: 5px 12px; border-radius: 20px; background: var(--sand); color: var(--ink-2); }

.fibre-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.fibre-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .95rem; }
.fibre-table th, .fibre-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.fibre-table thead th { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--linen); }
.fibre-table tbody th { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; white-space: nowrap; }
.fibre-table tbody tr:last-child > * { border-bottom: 0; }

/* ---------- Gallery ---------- */
.filter-bar { position: sticky; top: var(--header-h); z-index: 20; background: rgb(241 243 246 / 94%); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding-block: 14px; border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 42px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 40px; background: var(--paper); cursor: pointer;
  font-weight: 600; font-size: .925rem; color: var(--ink-2); transition: all .2s;
}
.filter span { font-size: .75rem; font-weight: 700; color: var(--muted); }
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter[aria-pressed="true"] span { color: var(--sky); }
.work-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; padding-top: 28px; }
.work-item[hidden] { display: none; }
.work-item a { display: block; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand); cursor: zoom-in; }
.work-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .7s var(--ease), opacity .4s; }
.work-item a:hover img { transform: scale(1.04); }
.work-item a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(17 26 38 / 35%), transparent 40%); opacity: 0; transition: opacity .3s; }
.work-item a:hover::after { opacity: 1; }
.load-more-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 28px; }
.load-more-wrap p { font-size: .875rem; color: var(--muted); margin: 0; }

.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(11 17 25 / 96%); color: var(--paper); }
.lightbox::backdrop { background: rgb(11 17 25 / 80%); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-size: .875rem; color: #c3cedb; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 70px; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 2px; box-shadow: 0 30px 80px -20px rgb(0 0 0 / 70%); transition: opacity .25s; }
.lb-stage img.is-loading { opacity: .3; }
.lb-caption { text-align: center; padding: 14px 18px 22px; font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: #dde5ee; }
.lb-btn { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgb(250 251 252 / 25%); border-radius: 50%; background: rgb(250 251 252 / 6%); color: var(--paper); cursor: pointer; transition: background .2s, border-color .2s; }
.lb-btn:hover { background: rgb(250 251 252 / 16%); border-color: rgb(250 251 252 / 50%); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

/* ---------- Brands page ---------- */
.brand-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.brand-cat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.brand-cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 2px solid var(--blue); }
.brand-cat-head h2 { font-size: 1.6rem; }
.brand-cat-head span { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.brand-cat p { font-size: .95rem; color: var(--ink-2); }
.brand-list { list-style: none; columns: 2; column-gap: 24px; }
.brand-list li { break-inside: avoid; padding: 8px 0; border-bottom: 1px dashed var(--line); font-weight: 600; font-size: .975rem; }
.brand-note { margin: 16px 0 0; }
.brand-cat-dark { background: var(--night); border-color: var(--night); color: var(--paper); }
.brand-cat-dark .brand-cat-head { border-color: var(--sky); }
.brand-cat-dark p { color: #cbd5e1; }
.brand-cat-dark .btn { margin-top: 8px; }
.pt-0 { padding-top: 0 !important; }
.center { text-align: center; }
.mt-28 { margin-top: 28px; }

/* ---------- Care guide ---------- */
.care-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.care-step { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); }
.care-step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-display); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--blue); margin-bottom: 14px; }
.care-step h3 { font-size: 1.4rem; margin-bottom: 12px; }
.care-step p { font-size: .975rem; color: var(--ink-2); }
.care-step p:last-child { margin-bottom: 0; }
.callout { display: flex; gap: 14px; padding: 16px 18px; border-left: 3px solid var(--blue); background: rgb(36 70 111 / 6%); border-radius: 0 var(--radius) var(--radius) 0; font-size: .95rem; }
.callout svg { width: 22px; height: 22px; flex: none; color: var(--blue); margin-top: 1px; }
.callout strong { color: var(--blue); }

.stain-finder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.stain-search { position: relative; margin-bottom: 16px; }
.stain-search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.stain-search input { width: 100%; min-height: 54px; padding: 0 16px 0 46px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font-size: 1rem; }
.stain-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(36 70 111 / 12%); }
.stain-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; max-height: 440px; overflow-y: auto; padding: 2px; }
.stain-list button { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 40px; background: var(--paper); font-size: .9rem; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all .15s; }
.stain-list button:hover { border-color: var(--ink); color: var(--ink); }
.stain-list button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--paper); }
.stain-empty { color: var(--muted); font-size: .95rem; }
.stain-result { position: sticky; top: calc(var(--header-h) + 20px); background: var(--night); color: var(--paper); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 40px); min-height: 320px; box-shadow: var(--shadow); }
.stain-result .eyebrow { color: var(--sky); }
.stain-result h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 22px; }
.stain-result ol { list-style: none; display: grid; gap: 14px; counter-reset: s; margin: 0 0 22px; padding: 0; }
.stain-result li { counter-increment: s; display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; padding: 14px 16px; background: var(--night-2); border-radius: var(--radius); }
.stain-result li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); font-family: var(--font-display); font-size: 1.1rem; }
.stain-result li p { margin: 0; color: #dbe3ed; font-size: .975rem; padding-top: 7px; }
.stain-result .fine-print { color: #95a2b2; }
.stain-placeholder { display: grid; place-items: center; text-align: center; min-height: 240px; color: #a8b4c3; }
.stain-placeholder svg { width: 48px; height: 48px; margin: 0 auto 14px; color: var(--sky); }

.treatments { list-style: none; counter-reset: t; columns: 2 320px; column-gap: 40px; }
.treatments li { counter-increment: t; break-inside: avoid; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: .975rem; }
.treatments li::before { content: counter(t); font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--blue); line-height: 1.3; }
details.chart { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
details.chart summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.chart summary::-webkit-details-marker { display: none; }
details.chart summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--blue); transition: transform .2s; }
details.chart[open] summary::after { transform: rotate(45deg); }
.chart-scroll { overflow-x: auto; padding: 0 22px 22px; }
.chart-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: .925rem; }
.chart-table th, .chart-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.chart-table thead th { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.chart-table td { text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- About ---------- */
.about-collage { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.about-collage img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.about-collage img:first-child { grid-row: span 2; aspect-ratio: 3 / 4; }
.process { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: p; border-top: 1px solid rgb(180 203 230 / 25%); }
.process li { counter-increment: p; padding: 32px 28px 8px 0; }
.process li + li { padding-left: 28px; border-left: 1px solid rgb(180 203 230 / 25%); }
.process li::before { content: "0" counter(p); display: block; font-family: var(--font-display); font-style: italic; font-size: 3rem; line-height: 1; color: var(--sky); margin-bottom: 18px; }
.process h3 { font-size: 1.4rem; margin-bottom: 10px; }
.process p { color: #bcc8d6; font-size: .975rem; }
.pull-quote { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.3; font-style: italic; font-weight: 400; color: var(--ink); border-left: 3px solid var(--blue); padding-left: clamp(20px, 3vw, 32px); margin: 0; max-width: 30em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.contact-card { display: block; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
a.contact-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.contact-card svg { width: 22px; height: 22px; color: var(--blue); margin-bottom: 12px; }
.contact-card small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-card strong { display: block; font-weight: 700; font-size: 1rem; overflow-wrap: anywhere; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 44px); box-shadow: var(--shadow); }
.form-card .h3 { margin-bottom: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .8125rem; font-weight: 700; color: var(--ink-2); }
.field label span { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--linen); font-size: 1rem; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgb(36 70 111 / 12%); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; }
.form-foot p { margin: 0; font-size: .8125rem; color: var(--muted); max-width: 28em; }
.form-status { margin-top: 16px; font-size: .9rem; color: var(--blue); font-weight: 600; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sand); }
.map-frame iframe { width: 100%; height: 440px; border: 0; filter: grayscale(.4); }

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.not-found .display { margin-bottom: 18px; }
.not-found .lead { margin: 0 auto 30px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s !important; }
.reveal-d2 { transition-delay: .16s !important; }
.reveal-d3 { transition-delay: .24s !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-track ul[aria-hidden="true"] { display: none; }
  .marquee-track ul { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .site-nav a:not(.btn) { padding-inline: 9px; font-size: .9rem; }
  .site-nav a:not(.btn)::after { left: 9px; right: 9px; }
  .header-call span { display: none; }
  .header-call { padding: 0 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .topbar { display: none; }
  .nav-toggle { display: block; }
  .header-inner { gap: 10px; }
  /* backdrop-filter would trap the fixed menu panel inside the header */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--linen); }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
    padding: 20px var(--gutter) 32px; background: var(--linen);
    overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .nav-open .site-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav-open { overflow: hidden; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a:not(.btn) { font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn)::after { display: none; }
  .nav-cta { display: inline-flex; width: 100%; }

  .hero-grid, .split, .visit, .stain-finder, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 640px; }
  .hero-inset { left: -8px; }
  .split-reverse > :first-child { order: 0; }
  .split-media .inset { right: -8px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 44vw; }
  .mosaic .m-big { grid-row: span 1; }
  .mosaic .m-tall { grid-row: span 1; }
  .product { grid-template-columns: 1fr; }
  .product:nth-of-type(even) .product-media { order: 0; }
  .care-steps { grid-template-columns: 1fr; }
  .stain-result { position: static; }
  .process { grid-template-columns: 1fr; }
  .process li, .process li + li { padding: 28px 0 4px; border-left: 0; border-top: 1px solid rgb(180 203 230 / 25%); }
  .process li:first-child { border-top: 0; }
  .visit-map, .visit-map iframe { min-height: 320px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .brand-name { font-size: 1.15rem; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-tag { font-size: .55rem; letter-spacing: .16em; }
  .header-call { width: 46px; height: 46px; padding: 0; justify-content: center; }
  .hero-media { padding-bottom: 40px; }
  .hero-badge { width: 96px; height: 96px; font-size: .8rem; right: 10px; bottom: 10px; padding: 12px; }
  .hero-badge small { font-size: .5rem; }
  .hero-inset { width: 46%; border-width: 5px; }
  .services { grid-template-columns: 1fr; }
  .service-img { aspect-ratio: 4 / 3; }
  .values { grid-template-columns: 1fr; }
  .mosaic { grid-auto-rows: 42vw; gap: 8px; }
  .mosaic .m-wide, .mosaic .m-big { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-cards, .form-grid { grid-template-columns: 1fr; }
  .brand-list { columns: 1; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .lb-stage { padding: 0 8px; }
  .lb-prev, .lb-next { top: auto; bottom: -58px; transform: none; }
  .lb-prev { left: calc(50% - 58px); }
  .lb-next { right: calc(50% - 58px); }
  .lb-caption { padding-top: 70px; }
  .split-media .inset { display: none; }
  .btn-row .btn { flex: 1 1 auto; }
  .material { grid-template-columns: 52px 1fr; padding: 16px; }
  .swatch { width: 52px; height: 52px; }
}

@media print {
  .topbar, .site-header, .site-footer, .rug-band, .filter-bar, .cta-band { display: none !important; }
  body { background: #fff; }
}
.btn-row-center { justify-content: center; }
