/* Maid in Merced homepage styles. Written 2026-10-10.
   Idea: "down to the baseboards". Rooms arrive dirty and get wiped clean
   under the scroll; the page ends on a baseboard. */

:root {
  --linen: #f6f3ec;
  --paper: #fffdf8;
  --ink: #142526;
  --ink-2: #4b5c5d;
  --ink-3: #7b8888;
  --line: #e4ded1;
  --teal-900: #083d40;
  --teal-800: #0a4a4e;
  --teal-700: #0e6b70;
  --teal-300: #8fc3c5;
  --teal-100: #d9edee;
  --amber: #e8a33d;
  --oak: #b98b5e;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --logo: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --hdr: 68px;
  --gut: clamp(20px, 4vw, 56px);
  --max: 1240px;
  --vh: 100vh; /* replaced with a locked px value by main.js */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-padding-top: calc(var(--hdr) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font: 400 17px/1.6 var(--sans);
  color: var(--ink);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
p, li, summary { text-wrap: pretty; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--teal-700); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--teal-800); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.08; }
h1 em, h2 em { font-style: italic; color: var(--teal-700); }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.9rem); text-wrap: balance; }
h3 { font-weight: 600; font-size: 1.12rem; letter-spacing: -0.005em; }

.eyebrow {
  font: 500 0.74rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 18px;
}
.eyebrow--light { color: var(--teal-300); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px;
  background: var(--teal-800); color: #fff;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1.5px solid var(--teal-800);
  transition: background .2s, transform .2s var(--ease), border-color .2s;
  white-space: nowrap;
}
.btn:hover { background: var(--teal-700); border-color: var(--teal-700); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .94rem; }
.btn--ghost { background: transparent; color: var(--teal-800); }
.btn--ghost:hover { background: rgba(14, 107, 112, .08); color: var(--teal-800); }
.btn--block { width: 100%; }
.btn--light { background: var(--paper); color: var(--teal-900); border-color: var(--paper); }
.btn--light:hover { background: var(--teal-100); border-color: var(--teal-100); }
.btn--line { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--line:hover { background: rgba(255,255,255,.08); border-color: #fff; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  height: var(--hdr);
  background: rgba(246, 243, 236, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr__in {
  height: 100%; display: flex; align-items: center; gap: 28px;
  max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut);
}

/* The client's logo, as on their site: house mark + system sans 800 */
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font: 800 1.05rem/1 var(--logo); letter-spacing: -0.01em;
  color: var(--teal-800); text-decoration: none; flex-shrink: 0;
  min-height: 44px;
}
.brand__mark { width: 26px; height: 26px; color: var(--teal-700); flex-shrink: 0; }

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: .95rem; font-weight: 500; }
.nav > a, .nav__trig { text-decoration: none; color: var(--ink-2); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 8px 0; }
.nav > a:hover, .nav__trig:hover { color: var(--teal-800); }
.nav__trig svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.nav__group { position: relative; }
.nav__panel {
  position: absolute; top: calc(100% + 10px); left: -16px; min-width: 220px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 8px; box-shadow: 0 18px 40px -18px rgba(8, 61, 64, .25);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}
.nav__group.open .nav__panel { opacity: 1; visibility: visible; transform: none; }
.nav__group.open .nav__trig svg { transform: rotate(180deg); }
.nav__panel a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.nav__panel a:hover { background: var(--linen); }
.nav__es { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px !important; }
.nav__call-m { display: none !important; }

.hdr__act { display: flex; align-items: center; gap: 18px; }
.hdr__tel { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--teal-800); }
.hdr__tel svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; margin-right: -10px; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease), top .25s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ---------- 1. Hero (still) ---------- */
.hero {
  position: relative;
  min-height: calc(var(--vh) - var(--hdr));
  display: flex; align-items: center;
  padding: 40px 0 56px;
  isolation: isolate;
}
.hero__img { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 70%; }
.hero__img::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 52% 62% at 18% 34%, rgba(246,243,236,.92) 0%, rgba(246,243,236,.7) 45%, rgba(246,243,236,0) 100%);
}
.hero__in {
  width: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut);
  display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start;
}
.hero__copy { padding-top: clamp(8px, 4vh, 48px); }
.hero__copy { max-width: 540px; }
.hero h1 { font-size: clamp(2.5rem, 1.5rem + 2.6vw, 3.6rem); margin-bottom: 20px; }
.hero h1 em { display: block; }
.hero__sub { font-size: 1.1rem; color: var(--ink-2); max-width: 30em; margin-bottom: 30px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__ctas .btn:first-child { display: none; } /* desktop: the quote is already beside you */

/* The written quote */
.slip {
  background: var(--paper);
  border-radius: 18px;
  padding: 22px 22px 18px;
  box-shadow: 0 1px 0 rgba(8,61,64,.04), 0 30px 60px -28px rgba(8, 61, 64, .45);
  font-size: .95rem;
}
.slip__head { display: flex; justify-content: space-between; align-items: baseline; font: 500 .7rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.slip__flat { color: var(--teal-700); }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--linen); border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.seg label { position: relative; }
.seg input, .freq input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 38px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--teal-800); color: #fff; }
.seg input:focus-visible + span, .freq input:focus-visible + span { outline: 2px solid var(--teal-700); outline-offset: 2px; }

.slip__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.step { border: 1px solid var(--line); border-radius: 12px; padding: 8px 6px 6px 12px; display: flex; flex-direction: column; gap: 2px; }
.step__lbl { font-size: .78rem; color: var(--ink-3); }
.step__ctl { display: flex; align-items: center; justify-content: space-between; }
.step__ctl output { font: 500 1.35rem/1 var(--serif); min-width: 1.4em; text-align: center; }
.step__ctl button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--linen); font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--teal-800); transition: background .15s; }
.step__ctl button:hover { background: var(--teal-100); }
.step__ctl button:disabled { opacity: .35; cursor: default; background: var(--linen); }
.slip__hint { font-size: .78rem; color: var(--ink-3); margin: 6px 2px 14px; }

.freq { border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; transition: opacity .2s; }
.freq legend { font-size: .78rem; color: var(--ink-3); margin-bottom: 6px; }
.freq label { position: relative; }
.freq span { display: flex; justify-content: space-between; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font-size: .86rem; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s; }
.freq span b { font: 500 .74rem/1 var(--mono); color: var(--teal-700); }
.freq input:checked + span { border-color: var(--teal-700); background: rgba(14,107,112,.06); box-shadow: inset 0 0 0 1px var(--teal-700); }
.freq.is-off { opacity: .35; pointer-events: none; }
.freq__pop { position: absolute; top: -7px; left: 10px; font: 500 .58rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; font-style: normal; background: var(--amber); color: var(--teal-900); padding: 3px 6px; border-radius: 999px; pointer-events: none; }
.freq { margin-top: 2px; }

.town { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 0 4px 0 12px; min-height: 44px; margin-bottom: 16px; }
.town span { font-size: .78rem; color: var(--ink-3); }
.town select {
  -webkit-appearance: none; appearance: none; border: 0; border-radius: 0; cursor: pointer;
  font-weight: 600; font-size: 1rem; color: var(--teal-800); text-align: right; text-align-last: right;
  padding: 10px 30px 10px 8px; min-height: 42px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%230a4a4e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 10px center / 12px no-repeat;
}

.slip__lines { font: 400 .82rem/1.3 var(--mono); color: var(--ink-2); border-top: 1px dashed var(--line); padding-top: 12px; }
.slip__lines div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.slip__lines dd { color: var(--ink); white-space: nowrap; }
.slip__lines [hidden] { display: none; }
.slip__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); margin: 10px 0 14px; padding-top: 10px; }
.slip__total span { font: 500 .74rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.slip__total strong { font: 400 2.5rem/1 var(--serif); letter-spacing: -0.02em; color: var(--teal-900); font-variant-numeric: tabular-nums; }
.slip__foot { font-size: .78rem; color: var(--ink-3); text-align: center; margin-top: 10px; line-height: 1.45; }

/* ---------- Wipe (shared): dirty layer cleared by --p (0..100) ---------- */
.wipe { position: relative; overflow: hidden; border-radius: 14px; background: #ddd8cc; aspect-ratio: 3 / 2; }
.wipe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.wipe__dirty {
  -webkit-mask-image: linear-gradient(90deg, transparent calc(var(--p) * 1% - 4%), #000 calc(var(--p) * 1% + 4%));
          mask-image: linear-gradient(90deg, transparent calc(var(--p) * 1% - 4%), #000 calc(var(--p) * 1% + 4%));
}
.wipe__edge {
  position: absolute; top: 0; bottom: 0; width: 70px;
  left: calc(var(--p) * 1%); transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28) 50%, transparent);
  pointer-events: none;
  opacity: calc(min(var(--p), 100 - var(--p)) / 6);
}

/* ---------- 2. Baseboard ---------- */
.bb { padding: clamp(80px, 11vw, 150px) 0 clamp(60px, 8vw, 110px); }
.bb__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.bb__copy p { color: var(--ink-2); max-width: 26em; }
.bb__copy h2 { margin-bottom: 20px; }
.bb__fine { font: 400 .82rem/1.4 var(--mono); color: var(--ink-3) !important; margin-top: 16px; }

.wipe--drag { cursor: ew-resize; touch-action: pan-y; box-shadow: 0 40px 80px -50px rgba(8,61,64,.6); }
.wipe__range { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; margin: 0; clip-path: inset(50%); }
.wipe--drag .wipe__edge::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a4a4e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6 3 12l6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.wipe--drag .wipe__edge { opacity: 1; background: linear-gradient(90deg, transparent 34px, rgba(255,255,255,.9) 34px, rgba(255,255,255,.9) 36px, transparent 36px); }
.wipe:has(.wipe__range:focus-visible) { outline: 2px solid var(--teal-700); outline-offset: 4px; }
.wipe__tag {
  position: absolute; left: 16px; bottom: 16px;
  font: 500 .7rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  background: rgba(20, 37, 38, .72); color: #fff; padding: 9px 12px; border-radius: 999px;
  transition: opacity .3s; pointer-events: none;
}
.wipe--drag.touched .wipe__tag { opacity: 0; }

/* ---------- 3. Services ---------- */
.svc { padding: clamp(60px, 8vw, 110px) 0 clamp(90px, 11vw, 150px); }
.sec-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.svc__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { position: relative; display: flex; flex-direction: column; }
.card .wipe { border-radius: 12px; }
.card__body { padding: 22px 4px 0; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font: 400 1.6rem/1.15 var(--serif); letter-spacing: -0.01em; }
.card__time { font: 500 .78rem/1.3 var(--mono); color: var(--teal-800); margin: 8px 0 16px; }
.card__time span { color: var(--ink-3); font-weight: 400; }
/* Time on site, on an 8-hour ruler: shows how deep each clean goes */
.ruler {
  position: relative; height: 14px; margin-top: 14px;
  background: repeating-linear-gradient(90deg, #cfc8b8 0 1px, transparent 1px calc(100% / 8)) bottom / 100% 6px no-repeat;
  border-bottom: 1px solid #cfc8b8;
}
.ruler i { position: absolute; bottom: 0; height: 8px; border-radius: 2px; background: var(--teal-700); left: 0; width: calc(var(--b) / 8 * 100%); }
.ruler i::before { content: ""; position: absolute; inset: 0 0 0 calc(var(--a) / var(--b) * 100%); background: var(--teal-300); border-radius: 0 2px 2px 0; }
.card__body > p:not([class]) { color: var(--ink-2); font-size: .98rem; margin-bottom: 18px; }
.card__price { margin-top: auto; display: flex; justify-content: space-between; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.card__price b { font: 500 1.15rem/1 var(--serif); color: var(--ink); margin-left: 2px; }
.card__link { margin-top: 14px; font-weight: 600; color: var(--teal-800); text-decoration: none; font-size: .95rem; }
.card__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.card__flag {
  position: absolute; z-index: 2; top: 14px; left: 14px;
  font: 500 .68rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  background: var(--amber); color: var(--teal-900); padding: 8px 11px; border-radius: 999px;
}

/* ---------- 4. Scope sheet ---------- */
.scope { background: var(--teal-900); color: #fff; padding: clamp(90px, 11vw, 150px) 0; overflow: hidden; }
.scope__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.scope__copy h2 em { color: var(--teal-300); }
.scope__copy p { color: rgba(255,255,255,.72); margin-top: 22px; max-width: 24em; }

.sheet {
  position: relative; background: var(--paper); color: var(--ink);
  border-radius: 6px; padding: 30px clamp(22px, 3vw, 40px) 30px;
  box-shadow: 0 50px 80px -40px rgba(0,0,0,.6);
  transform: rotate(-1.2deg);
}
.sheet__head { display: flex; justify-content: space-between; font: 500 .7rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 16px; border-bottom: 2px solid var(--ink); margin-bottom: 22px; }
.sheet__head span:first-child { color: var(--ink); }
.sheet__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 36px; }
.sheet h3 { font: 500 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--teal-700); margin: 4px 0 10px; }
.sheet h3 ~ h3 { margin-top: 20px; }
.ticks li { position: relative; padding: 7px 0 7px 32px; border-bottom: 1px solid #efeadf; font-size: .95rem; line-height: 1.35; }
.ticks li small { font: 400 .7rem/1 var(--mono); color: var(--ink-3); margin-left: 4px; white-space: nowrap; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 20px; height: 20px; border: 1.5px solid #c9c2b2; border-radius: 4px; }
.ticks li::after {
  content: ""; position: absolute; left: 4px; top: 12px; width: 12px; height: 7px;
  border-left: 2.5px solid var(--teal-700); border-bottom: 2.5px solid var(--teal-700);
  transform: rotate(-45deg) scale(0); transform-origin: 30% 70%;
  transition: transform .35s var(--ease);
}
.ticks li.on::after { transform: rotate(-45deg) scale(1); }

.sheet__add { margin-top: 24px; padding-top: 18px; border-top: 1px dashed #d9d2c2; }
.sheet__add ul { max-width: calc(50% - 18px); margin-bottom: 14px; }
.sheet__add li { display: flex; justify-content: space-between; font-size: .88rem; color: var(--ink-2); padding: 5px 0; }
.sheet__add li span:last-child { font-family: var(--mono); font-size: .8rem; color: var(--ink); }
.sheet__add a { font-size: .88rem; font-weight: 600; color: var(--teal-800); text-decoration: none; }
.sheet__add a:hover { text-decoration: underline; }

.stamp {
  position: absolute; right: 9%; bottom: 34px;
  width: 184px; height: 184px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px;
  background: var(--amber); color: var(--teal-900);
  font: 500 .66rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  transform: rotate(9deg); padding: 18px;
  box-shadow: 0 16px 30px -12px rgba(0,0,0,.45);
}
.stamp b { font: 400 1.02rem/1.15 var(--serif); max-width: 9em; letter-spacing: 0; text-transform: none; }

/* ---------- 5. Cloths + price ---------- */
.why { padding: clamp(90px, 11vw, 150px) 0; }
.why__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px); align-items: center; }
.why__cloths { grid-column: 1 / span 7; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 2; background: #e9e5dc; }
.why__cloths img { width: 100%; height: 100%; object-fit: cover; }
.why__cloths-copy { grid-column: 9 / span 4; }
.why__cloths-copy h2, .why__price h2 { font-size: clamp(1.7rem, 1.1rem + 1.6vw, 2.4rem); }
.why__cloths-copy p:last-child { color: var(--ink-2); margin-top: 18px; }

.why__price { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px clamp(28px, 4vw, 56px); margin-top: clamp(60px, 8vw, 110px); padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); align-items: end; }
.why__price .eyebrow, .why__price h2 { grid-column: 1; }
.why__price > p:last-child { grid-column: 1; color: var(--ink-2); grid-row: 3; }
.trail { grid-column: 2; grid-row: 1 / span 3; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: t; }
.trail li {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px 20px;
  display: flex; flex-direction: column; gap: 6px; position: relative;
  opacity: .25; transform: translateY(10px); transition: opacity .5s, transform .5s var(--ease);
}
.trail li.on { opacity: 1; transform: none; }
.trail li span { font: 500 .7rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.trail li b { font: 400 clamp(2.4rem, 1.6rem + 2vw, 3.4rem)/1 var(--serif); letter-spacing: -0.02em; color: var(--teal-900); margin-top: 10px; }
.trail li small { font-size: .85rem; color: var(--ink-2); }
.trail li + li::before { content: "="; position: absolute; left: -12px; top: 50%; transform: translate(-50%, -50%); font: 400 1.2rem/1 var(--serif); color: var(--ink-3); }

/* ---------- 6. Owner ---------- */
.owner { background: var(--paper); padding: clamp(90px, 12vw, 160px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.owner__in { max-width: 900px; text-align: center; }
.owner blockquote p { font: 400 clamp(1.9rem, 1.1rem + 2.6vw, 3.2rem)/1.15 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }
.owner blockquote p::before { content: "“"; color: var(--teal-700); }
.owner blockquote p::after { content: "”"; color: var(--teal-700); }
.owner__sub { color: var(--ink-2); max-width: 34em; margin: 26px auto 0; }
.owner__sig { margin-top: 26px; font: 500 .74rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-700); }
.owner__sig span { color: var(--ink-3); margin: 0 6px; }

/* ---------- 7. Area ---------- */
.area { padding: clamp(90px, 11vw, 150px) 0; }
.area__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.area__copy > p { color: var(--ink-2); margin-top: 16px; }
.zones { margin-top: 30px; border-top: 1px solid var(--line); }
.zones li { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: baseline; padding: 14px 6px; border-bottom: 1px solid var(--line); cursor: default; transition: background .2s; border-radius: 6px; }
.zones li b { font: 400 1.35rem/1 var(--serif); color: var(--teal-900); display: flex; align-items: center; gap: 10px; }
.zones li b::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--zc); flex-shrink: 0; }
.zones li span { color: var(--ink-2); font-size: .95rem; }
.zones li.hot { background: rgba(14,107,112,.06); }
.zones [data-z="0"]  { --zc: #0a4a4e; }
.zones [data-z="15"] { --zc: #2f8d91; }
.zones [data-z="25"] { --zc: #7fbcbd; }
.zones [data-z="40"] { --zc: #c9c2b2; }
.area__links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: .92rem; }
.area__links::before { content: "Town pages:"; color: var(--ink-3); }
.area__links a { color: var(--teal-800); font-weight: 600; text-underline-offset: 4px; }

.map { position: relative; aspect-ratio: 1 / 1; background: var(--paper); border-radius: 18px; border: 1px solid var(--line); overflow: hidden; }
.map svg { width: 100%; height: 100%; display: block; }
.map .road { fill: none; stroke: #e2dbcc; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.map .road-lbl { font: 500 11px var(--mono); fill: var(--ink-3); }
.map .ring { fill: none; stroke: var(--teal-700); stroke-opacity: .16; stroke-dasharray: 2 5; }
.map .town circle { fill: var(--zc); transition: r .25s var(--ease); }
.map .town text { font: 500 14px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.map .town .fee { font: 500 10.5px var(--mono); fill: var(--ink-3); }
.map .town.home text:first-of-type { font-weight: 700; }
.map .town { transition: opacity .25s; }
.map.focus .town:not(.hot) { opacity: .22; }
.map .pin { fill: var(--teal-900); }

/* ---------- 8. FAQ ---------- */
.faq { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 6vw, 88px); }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex-shrink: 0; background: linear-gradient(var(--teal-800), var(--teal-800)) center / 12px 1.5px no-repeat, linear-gradient(var(--teal-800), var(--teal-800)) center / 1.5px 12px no-repeat; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding: 0 0 24px; max-width: 40em; }
.faq details a { color: var(--teal-800); }

/* ---------- 9. Close ---------- */
.close { background: var(--teal-900); color: #fff; padding: clamp(90px, 12vw, 160px) 0; text-align: center; }
.close h2 { font-size: clamp(2.2rem, 1.3rem + 3vw, 3.6rem); }
.close h2 em { color: var(--teal-300); }
.close p { color: rgba(255,255,255,.72); margin-top: 18px; }
.close__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.close__mail { display: inline-block; margin-top: 26px; color: rgba(255,255,255,.65); font-size: .92rem; text-underline-offset: 4px; }
.close__mail:hover { color: #fff; }

/* ---------- Footer, ending on a baseboard ---------- */
.ftr { background: var(--linen); padding-top: 72px; }
.ftr__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.ftr__brand p { color: var(--ink-2); font-size: .92rem; margin-top: 16px; max-width: 22em; }
.ftr nav { display: flex; flex-direction: column; gap: 8px; font-size: .92rem; }
.ftr nav h3 { font: 500 .7rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.ftr nav a { text-decoration: none; color: var(--ink-2); }
.ftr nav a:hover { color: var(--teal-800); }
.ftr__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; padding-bottom: 18px; font-size: .8rem; color: var(--ink-3); }
.credit a { color: var(--ink-2); }
.baseboard {
  /* A colonial baseboard meeting an oak floor */
  height: 76px; border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(0,0,0,.10), transparent) 0 62px / 100% 5px no-repeat,
    linear-gradient(180deg,
      #d8d2c5 0, #ffffff 2px, #fbfaf6 5px, #e2ddd1 6px, #f4f1ea 8px, #ffffff 10px,
      #ece8de 13px, #fdfcf9 15px, #f8f6f0 40px, #efebe2 60px, #cdc6b7 61px, #cdc6b7 62px) top / 100% 62px no-repeat,
    repeating-linear-gradient(90deg, #ba8d60 0 260px, #9f7449 260px 261px, #c49871 261px 540px, #9f7449 540px 541px, #b48759 541px 830px, #9f7449 830px 831px) bottom / 100% 14px no-repeat;
}

/* ---------- Mobile dock ---------- */
.dock { display: none; }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .nav > a[href$="policies"] { display: none; }
  .hero__in { grid-template-columns: minmax(0, 1fr) 370px; gap: 32px; }
}

@media (max-width: 900px) {
  :root { --hdr: 60px; }
  .burger { display: block; }
  .hdr__tel span, .hdr__act .btn { display: none; }
  .hdr__tel { width: 44px; height: 44px; justify-content: center; border-radius: 50%; }
  .hdr__tel svg { width: 20px; height: 20px; }
  .hdr__act { gap: 4px; margin-left: auto; }

  .nav {
    position: fixed; inset: var(--hdr) 0 auto 0; height: calc(var(--vh) - var(--hdr));
    background: var(--linen); flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gut) 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
    font-size: 1.15rem;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav > a, .nav__trig { padding: 16px 0; border-bottom: 1px solid var(--line); width: 100%; justify-content: space-between; color: var(--ink); min-height: 56px; }
  .nav > a[href$="policies"] { display: flex; }
  .nav__es { border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; padding: 16px 0 !important; }
  .nav__call-m { display: flex !important; justify-content: center !important; margin-top: 24px; background: var(--teal-800); color: #fff !important; border-radius: 999px; border: 0 !important; }
  .nav__panel { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 8px 12px; display: none; min-width: 0; }
  .nav__group.open .nav__panel { display: block; }
  .nav__panel a { padding: 12px 0; font-size: 1.02rem; color: var(--ink-2); }

  /* Hero: product photo on top, words, then the quote */
  .hero { display: block; min-height: 0; padding: 0 0 8px; }
  .hero__img { position: relative; inset: auto; height: clamp(170px, calc(var(--vh) * .3), 300px); }
  .hero__img::after { background: linear-gradient(180deg, rgba(246,243,236,0) 60%, rgba(246,243,236,.9) 100%); }
  .hero__img img { object-position: 62% 72%; }
  .hero__in { display: block; }
  .hero__copy { padding: 18px 0 8px; max-width: none; }
  .hero h1 { font-size: clamp(2.05rem, 1.2rem + 4.4vw, 2.7rem); margin-bottom: 12px; }
  .hero h1 em { display: inline; }
  .hero__sub { font-size: 1rem; margin-bottom: 18px; }
  .hero__ctas .btn { flex: 1; }
  .hero__ctas .btn:first-child { display: inline-flex; }
  .slip { margin-top: 28px; }

  .bb__grid, .scope__grid, .area__grid, .faq__grid { grid-template-columns: 1fr; }
  .bb__copy { order: 0; }

  .svc__list { grid-template-columns: 1fr; gap: 56px; }

  .sheet { transform: none; padding-bottom: 120px; }
  .sheet__head span:last-child { display: none; }
  .sheet__cols { grid-template-columns: 1fr; }
  .sheet__add ul { max-width: none; }
  .sheet__cols > div + div h3 { margin-top: 20px; }
  .stamp { right: 16px; bottom: -44px; width: 150px; height: 150px; }

  .why__cloths, .why__cloths-copy { grid-column: 1 / -1; }
  .why__price { display: block; }
  .why__price h2 { margin-bottom: 26px; }
  .trail { grid-template-columns: 1fr; gap: 10px; margin-bottom: 22px; }
  .trail li { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; padding: 16px 18px; }
  .trail li span { flex: 1 0 60%; }
  .trail li b { margin: 0; font-size: 2rem; order: 2; }
  .trail li small { flex-basis: 100%; order: 3; }
  .trail li + li::before { content: none; }

  .map { aspect-ratio: 1 / 1; }
  .map .town text { font-size: 21px; stroke-width: 6px; }
  .map .town.minor text { display: none; }
  .map .road-lbl { font-size: 17px; }
  .map .town circle { r: 8px; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .ftr__brand { grid-column: 1 / -1; }

  .dock {
    display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px;
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40;
    padding: 6px; border-radius: 999px;
    background: rgba(255, 253, 248, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px -10px rgba(8,61,64,.4), 0 0 0 1px var(--line);
    transform: translateY(140%); transition: transform .35s var(--ease);
  }
  .dock.show { transform: none; }
  .dock a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--teal-800); }
  .dock .dock__main { background: var(--teal-800); color: #fff; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .freq span { padding: 0 10px; font-size: .82rem; }
  .card__price { flex-direction: column; gap: 6px; }
  .ftr__base { flex-direction: column; }
  .credit { align-self: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .wipe--scroll .wipe__dirty { display: none; }
  .ticks li::after { transform: rotate(-45deg) scale(1); }
  .trail li { opacity: 1; transform: none; }
}
@media (max-width: 900px) { .hide-s { display: none; } }

/* Phone turned sideways: photo beside the words so both fit one short screen */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 520px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) 42%; align-items: start; }
  .hero__img { grid-column: 2; grid-row: 1; height: calc(var(--vh) - var(--hdr)); }
  .hero__img::after { background: none; }
  .hero__in { grid-column: 1 / -1; grid-row: 1 / span 2; display: grid; grid-template-columns: minmax(0, 1fr) 42%; }
  .hero__copy { grid-column: 1; padding: 14px 24px 0 0; }
  .hero h1 { font-size: 1.85rem; margin-bottom: 8px; }
  .hero__sub { font-size: .92rem; margin-bottom: 12px; }
  .hero__ctas .btn { min-height: 46px; }
  .slip { grid-column: 1 / -1; }
}
