/* Terry's Loyal Cleaning Service
   Mobile first. Breakpoints: 640 (large phone / small tablet), 960 (desktop), 1280 (wide).
   Colors come from the TLC logo (gold on black) and the classroom tile in the job photos. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 500 800;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* night: the black field of the TLC logo, lifted so the gold does not halo */
  --night: #17150f; /* avoid-ai-design-ignore: SD2 (brand black from the TLC logo) */
  --night-2: #221f17;
  --night-3: #2e2a1f;
  --on-night: #f4f0e6;
  --on-night-2: #c9c3b4;
  --night-line: rgba(244, 240, 230, 0.14);

  /* gold: sampled from the logo mark */
  --gold: #e9b62d;
  --gold-hi: #f7c84a;
  --gold-ink: #75560c;
  --gold-wash: #fbf1d3;

  /* paper: cool, clean, not cream */
  --paper: #f1f2ef;
  --paper-2: #e6e8e3;
  --card: #fbfbf9;
  --ink: #1c1e1c;
  --ink-2: #454a47;
  --ink-3: #5d6460;
  --line: rgba(28, 30, 28, 0.13);
  --line-ctl: #868b87; /* form control edges: 3.3:1 on card */

  /* tile: the green vinyl tile in the classroom photos */
  --tile: #2c3a37;
  --tile-2: #23302d;
  --on-tile: #eef2ef;
  --on-tile-2: #bccac5;

  --f-display: "Archivo", "Arial Narrow", sans-serif;
  --f-body: "Public Sans", "Segoe UI", system-ui, sans-serif;

  --gutter: 20px;
  --max: 1200px;
  --sec: 72px;
  --top-h: 64px;
  --dock-h: 76px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 640px) { :root { --gutter: 32px; --sec: 96px; } }
@media (min-width: 960px) { :root { --gutter: 48px; --sec: 120px; --top-h: 76px; --dock-h: 0px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); scroll-padding-bottom: calc(var(--dock-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
/* focus ring: dark on light surfaces, gold on dark ones (gold on paper is only 1.7:1) */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.top :focus-visible, .menu :focus-visible, .dock :focus-visible, .hero :focus-visible, .work :focus-visible,
.story :focus-visible, .foot :focus-visible, .page-head :focus-visible, .nf :focus-visible, .sheet-bar :focus-visible,
.compare-frame:has(.compare-range:focus-visible) { outline-color: var(--gold); }
.cta :focus-visible { outline-color: var(--night); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--night); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.i { width: 20px; height: 20px; flex: none; stroke-width: 1.9; }

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

.h2 {
  font-family: var(--f-display);
  font-stretch: 80%;
  font-weight: 700;
  font-size: clamp(2.125rem, 1.5rem + 2.9vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.012em;
}
.lead { font-size: 1.0625rem; color: var(--ink-2); max-width: 46ch; }
@media (min-width: 960px) { .lead { font-size: 1.1875rem; } }

.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; color: var(--gold-ink);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, var(--gold) 70%, transparent);
  transition: text-decoration-color 150ms var(--ease), color 150ms var(--ease);
}
.text-link:hover { text-decoration-color: currentColor; }
.text-link-light { color: var(--gold); }

/* placeholder markers: dashed so nobody mistakes them for finished copy */
.ph {
  display: inline; padding: 1px 6px; border-radius: 4px;
  background: repeating-linear-gradient(-45deg, #fff4cf, #fff4cf 6px, #fdebb3 6px, #fdebb3 12px);
  color: #5a4206; font-size: 0.9em; font-weight: 500;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.ph::before { content: "\270E  "; }
.ph-slot {
  display: grid; align-content: center; gap: 8px;
  border: 2px dashed color-mix(in srgb, var(--gold-ink) 55%, transparent);
  border-radius: var(--r-lg);
  padding: 24px; color: var(--ink-2);
  background: color-mix(in srgb, var(--gold-wash) 60%, transparent);
}
.ph-slot > span {
  justify-self: start; font-size: 0.8125rem; font-weight: 600; color: #5a4206;
  background: #fdebb3; padding: 2px 8px; border-radius: 4px;
}
.ph-slot p { font-size: 0.9375rem; max-width: 40ch; }

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 22px;
  border: 0; border-radius: var(--r);
  font-family: var(--f-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), box-shadow 150ms var(--ease), transform 150ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-lg { --h: 60px; font-size: 1.0625rem; padding: 0 28px; }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-night { background: var(--night); color: var(--on-night); }
.btn-night:hover { background: var(--night-3); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }

/* the shine: a wax-gloss highlight that crosses gold buttons on hover */
.btn-gold::after, .btn-night::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, rgba(255, 255, 255, 0) 62%);
  transform: translateX(-130%);
}
.btn-night::after { background: linear-gradient(105deg, transparent 30%, rgba(233, 182, 45, 0.28) 48%, transparent 62%); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn-gold:hover::after, .btn-night:hover::after { transform: translateX(130%); transition: transform 800ms var(--ease-out); }
}

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  color: var(--on-night);
  transition: background-color 250ms var(--ease), box-shadow 250ms var(--ease);
}
.top::before { /* keeps the logo legible over the photo before the bar turns solid */
  content: ""; position: absolute; inset: 0 0 -24px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(23, 21, 15, 0.7), rgba(23, 21, 15, 0));
  transition: opacity 250ms var(--ease);
}
.top.is-solid, .top.is-open, body:not(.page-home) .top { background: var(--night); box-shadow: 0 1px 0 var(--night-line); }
.top.is-solid::before, .top.is-open::before, body:not(.page-home) .top::before { opacity: 0; }
.top-row { display: flex; align-items: center; gap: 12px; height: var(--top-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-height: 44px; }
.brand-mark { width: 44px; height: 44px; }
.brand-name { display: grid; font-family: var(--f-display); font-stretch: 80%; line-height: 1.05; }
.brand-name span:first-child { font-weight: 700; font-size: 1.125rem; letter-spacing: 0.01em; }
.brand-name span:last-child { font-weight: 500; font-size: 0.8125rem; color: var(--on-night-2); letter-spacing: 0.02em; }
.nav, .top-phone, .top-cta { display: none; }
.menu-btn {
  display: grid; place-items: center; width: 48px; height: 48px; margin-right: -8px;
  background: none; border: 0; color: var(--on-night); border-radius: var(--r-sm);
}
.menu-btn .i { width: 26px; height: 26px; }
.menu-btn-close { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn-open { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn-close { display: block; }
.menu {
  position: fixed; inset: var(--top-h) 0 0 0; background: var(--night); overflow-y: auto;
  border-top: 1px solid var(--night-line);
}
.menu-inner { display: flex; flex-direction: column; padding-top: 12px; padding-bottom: 40px; }
.menu-inner > a {
  font-family: var(--f-display); font-stretch: 80%; font-weight: 650; font-size: 2rem;
  line-height: 1; padding: 14px 0; text-decoration: none; border-bottom: 1px solid var(--night-line);
}
.menu-inner > a[aria-current] { color: var(--gold); }
.menu-contact { display: grid; gap: 4px; margin-top: 28px; }
.menu-contact .btn { margin-bottom: 12px; }
.menu-phone, .menu-mail { display: flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; color: var(--on-night-2); }
.menu-phone { color: var(--on-night); font-size: 1.25rem; font-weight: 600; }
.menu-phone .i, .menu-mail .i { color: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .menu:not([hidden]) { animation: menu-in 300ms var(--ease-out); }
  .menu:not([hidden]) .menu-inner > a { animation: menu-item 420ms var(--ease-out) both; }
  .menu:not([hidden]) .menu-inner > a:nth-child(2) { animation-delay: 30ms; }
  .menu:not([hidden]) .menu-inner > a:nth-child(3) { animation-delay: 60ms; }
  .menu:not([hidden]) .menu-inner > a:nth-child(4) { animation-delay: 90ms; }
  .menu:not([hidden]) .menu-inner > a:nth-child(5) { animation-delay: 120ms; }
}
@keyframes menu-in { from { opacity: 0; } }
@keyframes menu-item { from { opacity: 0; transform: translateY(10px); } }

@media (min-width: 960px) {
  .menu-btn, .menu { display: none !important; }
  .brand-mark { width: 52px; height: 52px; }
  .brand-name span:first-child { font-size: 1.3125rem; }
  .brand-name span:last-child { font-size: 0.875rem; }
  .nav { display: flex; gap: 4px; margin-right: 8px; }
  .nav a {
    position: relative; padding: 10px 12px; border-radius: var(--r-sm);
    text-decoration: none; font-size: 0.9375rem; font-weight: 500; color: var(--on-night-2);
    transition: color 150ms var(--ease);
  }
  .nav a:hover, .nav a[aria-current] { color: var(--on-night); }
  .nav a[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--gold); border-radius: 2px; }
  .top-phone { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px; text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
  .top-phone .i { color: var(--gold); width: 18px; height: 18px; }
  .top-cta { display: inline-flex; --h: 46px; font-size: 0.9375rem; padding: 0 18px; }
}

/* ---------- mobile dock: call + estimate in the thumb zone ---------- */
.dock {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  display: grid; grid-template-columns: 112px 1fr; gap: 10px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: var(--night); box-shadow: 0 -1px 0 var(--night-line);
  transition: transform 300ms var(--ease-out);
}
.dock.is-hidden { transform: translateY(110%); }
.dock-call {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px;
  border-radius: var(--r); color: var(--on-night); text-decoration: none; font-weight: 600;
  box-shadow: inset 0 0 0 1.5px var(--night-line);
}
.dock-call .i { color: var(--gold); }
.dock-call:active { transform: scale(0.97); }
.dock-count {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; margin-left: 2px;
  border-radius: 12px; background: var(--night); color: var(--gold); font-size: 0.8125rem; font-weight: 700; white-space: nowrap;
}
.dock-count[hidden] { display: none; }
@media (min-width: 960px) { .dock { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  background: var(--night); color: var(--on-night);
  padding-bottom: 56px;
}
.hero-media { position: absolute; inset: 0 0 auto 0; height: 46svh; min-height: 300px; max-height: 460px; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 35%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23, 21, 15, 0.35) 0%, rgba(23, 21, 15, 0.05) 28%, rgba(23, 21, 15, 0.72) 62%, var(--night) 100%);
}
.hero-body { padding-top: calc(clamp(300px, 46svh, 460px) - 96px); }
.hero-kicker {
  font-family: var(--f-body); font-weight: 600; font-size: 1rem; line-height: 1.4;
  color: var(--on-night); max-width: 32ch; margin-bottom: 12px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}
.hero-display {
  font-family: var(--f-display); font-stretch: 72%; font-weight: 760;
  font-size: clamp(3.1rem, 1.3rem + 8.8vw, 6.75rem); line-height: 0.92; letter-spacing: -0.015em;
  margin-bottom: 18px; max-width: 9ch; text-wrap: balance;
}
.hero-lead { color: var(--on-night-2); font-size: 1rem; max-width: 40ch; margin-bottom: 24px; }
@media (min-width: 640px) { .hero-lead { font-size: 1.125rem; margin-bottom: 32px; } }

.qs { max-width: 560px; }
.qs-q { font-family: var(--f-display); font-stretch: 88%; font-weight: 650; font-size: 1.375rem; margin-bottom: 12px; }
.qs-list { display: grid; gap: 8px; }
.qs-btn {
  display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 0 16px;
  background: var(--night-2); color: var(--on-night); text-decoration: none;
  border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--night-line);
  font-weight: 600; font-size: 1.0625rem;
  transition: background-color 150ms var(--ease), box-shadow 150ms var(--ease), transform 150ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.qs-btn span { flex: 1; }
.qs-btn .i:first-child { color: var(--gold); width: 24px; height: 24px; }
.qs-btn .i-chevron-right { color: var(--on-night-2); transition: transform 200ms var(--ease); }
.qs-btn:hover { background: var(--night-3); box-shadow: inset 0 0 0 1px rgba(233, 182, 45, 0.55); }
.qs-btn:hover .i-chevron-right { transform: translateX(3px); color: var(--gold); }
.qs-btn:active { transform: scale(0.98); }
.qs-foot { margin-top: 14px; font-size: 0.9375rem; color: var(--on-night-2); }
.qs-foot a { color: var(--on-night); font-weight: 600; text-underline-offset: 4px; text-decoration-color: var(--gold); white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { animation: rise 600ms var(--ease-out) both; }
}
@keyframes rise { from { opacity: 0.01; transform: translateY(16px); } }

@media (min-width: 640px) {
  .hero-media { height: 56svh; max-height: 600px; }
  .hero-body { padding-top: calc(clamp(300px, 56svh, 600px) - 150px); }
}
@media (min-width: 960px) {
  .hero { min-height: min(100svh, 900px); display: flex; align-items: center; padding: calc(var(--top-h) + 48px) 0 72px; }
  .hero-media { inset: 0 0 0 38%; height: auto; max-height: none; }
  .hero-media img { object-position: 35% 50%; }
  .hero-media::after {
    background:
      linear-gradient(90deg, var(--night) 0%, rgba(23, 21, 15, 0.6) 14%, rgba(23, 21, 15, 0) 42%),
      linear-gradient(180deg, rgba(23, 21, 15, 0.5) 0%, rgba(23, 21, 15, 0) 22%, rgba(23, 21, 15, 0) 70%, rgba(23, 21, 15, 0.6) 100%);
  }
  .hero-body { padding-top: 0; }
  .hero-body > * { max-width: 600px; }
  .hero-display { max-width: 8.5ch; }
  .qs-list { grid-template-columns: repeat(3, 1fr); }
  .qs { max-width: 680px; }
  .qs-btn { flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px; min-height: 128px; padding: 16px; font-size: 1rem; line-height: 1.25; background: rgba(34, 31, 23, 0.92); }
  .qs-btn span { flex: 0; }
  .qs-btn .i-chevron-right { position: absolute; display: none; }
}

/* ---------- record (spec sheet) ---------- */
.record { padding: var(--sec) 0; }
.record-grid { display: grid; gap: 36px; }
.record-intro .h2 { margin-bottom: 16px; max-width: 14ch; }
.record-list { margin: 0; border-top: 2px solid var(--ink); }
.record-row { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.record-row dt { font-size: 0.875rem; font-weight: 500; color: var(--ink-3); }
.record-row dd { margin: 0; font-size: 1.0625rem; font-weight: 500; line-height: 1.45; }
@media (min-width: 640px) {
  .record-row { grid-template-columns: 180px 1fr; gap: 24px; padding: 18px 0; }
  .record-row dt { padding-top: 3px; }
}
@media (min-width: 960px) {
  .record-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .record-intro { position: sticky; top: calc(var(--top-h) + 32px); }
  .record-row dd { font-size: 1.1875rem; }
}

/* ---------- before / after ---------- */
.work { background: var(--tile); color: var(--on-tile); padding: var(--sec) 0; }
.work .lead { color: var(--on-tile-2); }
.work-grid { display: grid; gap: 28px; grid-template-areas: "head" "compare" "more"; }
.work-head { grid-area: head; }
.work-head .h2 { margin-bottom: 16px; max-width: 13ch; }
.work-more { grid-area: more; }
.work-more-t { font-size: 0.875rem; font-weight: 500; color: var(--on-tile-2); margin-bottom: 4px; }
.work-list { list-style: none; margin: 0 0 12px; display: grid; gap: 0; border-top: 1px solid rgba(238, 242, 239, 0.14); }
.work-list li { padding: 10px 0; border-bottom: 1px solid rgba(238, 242, 239, 0.14); font-weight: 500; }
.work .text-link { color: var(--gold); }

.compare { grid-area: compare; margin: 0; }
.compare-frame {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  aspect-ratio: 1100 / 1375; background: var(--tile-2);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
  --pos: 50%;
}
.compare-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
/* fresh wax catches the light right behind the line */
.compare-glare {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(90deg, transparent calc(var(--pos) - 1%), rgba(255, 255, 255, 0.85) calc(var(--pos) + 2%), rgba(255, 255, 255, 0) calc(var(--pos) + 22%));
}
.compare-line {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px;
  background: var(--gold); box-shadow: 0 0 0 1px rgba(23, 21, 15, 0.25); pointer-events: none;
}
.compare-knob {
  position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--gold); color: var(--night); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 200ms var(--ease);
}
.compare-knob .i { width: 24px; height: 24px; stroke-width: 2.2; }
.compare-frame.is-dragging .compare-knob { transform: scale(1.08); }
.compare-tag {
  position: absolute; top: 14px; padding: 6px 10px; border-radius: 6px;
  background: rgba(23, 21, 15, 0.72); color: var(--on-night); font-size: 0.875rem; font-weight: 600; pointer-events: none;
  transition: opacity 200ms var(--ease);
}
.compare-tag-b { left: 14px; }
.compare-tag-a { right: 14px; }
.compare-frame[data-side="after"] .compare-tag-b, .compare-frame[data-side="before"] .compare-tag-a { opacity: 0; }
.compare-range { position: absolute; inset: auto 0 0 0; width: 100%; height: 44px; margin: 0; opacity: 0; pointer-events: none; }
.compare-frame:has(.compare-range:focus-visible) { outline: 3px solid var(--gold); outline-offset: 4px; }
.est-done-head:focus { outline: none; }
.compare figcaption { margin-top: 12px; font-size: 0.875rem; color: var(--on-tile-2); }
@media (min-width: 960px) {
  .work-grid { grid-template-columns: 6fr 5fr; grid-template-rows: auto 1fr; grid-template-areas: "compare head" "compare more"; column-gap: 72px; row-gap: 32px; }
  .work-head { align-self: end; }
}

/* ---------- services ---------- */
.svcs { padding: var(--sec) 0; }
.sec-head { display: grid; gap: 16px; margin-bottom: 36px; }
.sec-head .lead strong { color: var(--ink); }
.svc-list { list-style: none; border-top: 2px solid var(--ink); }
.svc {
  display: grid; grid-template-columns: 1fr auto; column-gap: 16px; row-gap: 6px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.svc-name { grid-column: 1; font-family: var(--f-display); font-stretch: 88%; font-weight: 650; font-size: 1.375rem; line-height: 1.15; }
.svc-name a { text-decoration: none; }
.svc-name a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.svc-line { grid-column: 1; color: var(--ink-2); font-size: 0.9375rem; max-width: 52ch; }
.svc-add {
  grid-column: 2; grid-row: 1 / span 2; align-self: start;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px;
  border: 0; border-radius: var(--r); background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: 0.9375rem;
  transition: background-color 150ms var(--ease), box-shadow 150ms var(--ease), transform 150ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.svc-add:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.svc-add:active { transform: scale(0.96); }
.svc-box {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px;
  box-shadow: inset 0 0 0 1.5px var(--ink-3); color: transparent;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.svc-box .i { width: 16px; height: 16px; stroke-width: 3; }
.svc-add[aria-pressed="true"] { background: var(--gold-wash); box-shadow: inset 0 0 0 1.5px var(--gold-ink); }
.svc-add[aria-pressed="true"] .svc-box { background: var(--gold); box-shadow: none; color: var(--night); }
.svcs-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.svcs-foot .dock-count { background: var(--night); }
@media (min-width: 960px) {
  .sec-head { grid-template-columns: 5fr 7fr; gap: 64px; align-items: end; margin-bottom: 48px; }
  .svc-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .svc { padding: 26px 0; }
  .svc-name { font-size: 1.625rem; }
  .svc-line { font-size: 1rem; }
}

/* ---------- who ---------- */
.who { background: var(--card); padding: var(--sec) 0; box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.who .h2 { margin-bottom: 28px; }
.who-tabs {
  display: flex; gap: 6px; padding: 5px; margin-bottom: 28px; border-radius: 14px; background: var(--paper-2);
  overflow-x: auto; scrollbar-width: none;
}
.who-tabs::-webkit-scrollbar { display: none; }
.who-tab {
  flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent;
  font-weight: 600; font-size: 0.9375rem; color: var(--ink-2); white-space: nowrap;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.who-tab .i { width: 18px; height: 18px; }
.who-tab[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(28, 30, 28, 0.12), 0 0 0 1px var(--line); }
.who-tab[aria-selected="true"] .i { color: var(--gold-ink); }
.who-tab span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .who-tab .i { display: none; } .who-tab { padding: 0 10px; font-size: 0.875rem; } }
.who-panel { max-width: 720px; }
.who-panel:focus-visible { outline-offset: 8px; }
.who-big { font-family: var(--f-display); font-stretch: 88%; font-weight: 600; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.15; letter-spacing: -0.005em; margin-bottom: 16px; }
.who-panel p:not(.who-big) { color: var(--ink-2); margin-bottom: 24px; max-width: 56ch; }
@media (prefers-reduced-motion: no-preference) {
  .who-panel:not([hidden]) { animation: panel-in 300ms var(--ease-out); }
}
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
.who-also { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.9375rem; }
@media (min-width: 960px) {
  .who-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; }
  .who-tabs { flex-direction: column; background: none; padding: 0; gap: 4px; margin: 0; border-left: 2px solid var(--line); border-radius: 0; }
  .who-tab {
    justify-content: flex-start; min-height: 64px; padding: 0 20px; margin-left: -2px; border-radius: 0;
    font-family: var(--f-display); font-stretch: 88%; font-size: 1.5rem; font-weight: 650;
    border-left: 2px solid transparent;
  }
  .who-tab .i { width: 22px; height: 22px; }
  .who-tab[aria-selected="true"] { box-shadow: none; background: transparent; border-left-color: var(--gold); }
  .who-tab:hover { color: var(--ink); }
}

/* ---------- how it works ---------- */
.how { padding: var(--sec) 0; }
.how .h2 { margin-bottom: 40px; max-width: 14ch; }
.how-steps { list-style: none; position: relative; display: grid; gap: 32px; padding-left: 36px; counter-reset: step; }
.how-steps::before, .how-steps::after {
  content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--line);
}
.how-steps::after { background: linear-gradient(var(--gold), var(--gold-ink)); transform-origin: top; }
.js .how-steps::after { transform: scaleY(0); }
.js .how-steps.is-drawn::after { transform: none; transition: transform 1200ms var(--ease-out); }
.how-step { position: relative; counter-increment: step; }
.how-dot { position: absolute; left: -36px; top: 2px; z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--gold-ink); }
.how-dot::after { content: counter(step); position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.6875rem; font-weight: 700; color: var(--gold-ink); }
.how-step h3 { font-family: var(--f-display); font-stretch: 88%; font-weight: 650; font-size: 1.375rem; line-height: 1.15; margin-bottom: 6px; }
.how-step p { color: var(--ink-2); font-size: 0.9375rem; max-width: 36ch; }
@media (min-width: 960px) {
  .how-steps { grid-template-columns: repeat(4, 1fr); gap: 40px; padding: 40px 0 0; }
  .how-steps::before, .how-steps::after { left: 0; right: 0; top: 9px; bottom: auto; width: auto; height: 2px; }
  .how-steps::after { background: linear-gradient(90deg, var(--gold), var(--gold-ink)); transform-origin: left; }
  .js .how-steps::after { transform: scaleX(0); }
  .how-dot { left: 0; top: -40px; }
}

/* ---------- story ---------- */
.story { background: var(--night); color: var(--on-night); padding: var(--sec) 0; }
.story-grid { display: grid; gap: 40px; }
.story-copy .h2 { margin-bottom: 20px; max-width: 15ch; }
.story-copy p { color: var(--on-night-2); font-size: 1.0625rem; max-width: 52ch; }
.story-copy .story-sign { color: var(--on-night); font-weight: 600; margin-top: 24px; }
.story .ph-slot { background: rgba(233, 182, 45, 0.06); border-color: rgba(233, 182, 45, 0.45); color: var(--on-night-2); aspect-ratio: 16 / 10; }
@media (min-width: 960px) { .story .ph-slot { aspect-ratio: 4 / 5; max-height: 560px; } }
@media (min-width: 960px) {
  .story-grid { grid-template-columns: 7fr 5fr; gap: 80px; align-items: center; }
  .story-copy p { font-size: 1.1875rem; }
}

/* ---------- proof placeholders ---------- */
.proof { padding: var(--sec) 0; }
.proof .h2 { margin-bottom: 32px; }
.proof-grid { display: grid; gap: 16px; }
.ph-slot { padding: 20px; }
@media (min-width: 960px) { .proof-slot { min-height: 200px; } .proof-logos { min-height: 120px; } .ph-slot { padding: 28px; } }
@media (min-width: 960px) {
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-logos { grid-column: 1 / -1; }
}

/* ---------- faq ---------- */
.faq { padding: 0 0 var(--sec); }
.faq-grid { display: grid; gap: 28px; }
.faq .h2 { max-width: 16ch; }
.faq-list { border-top: 2px solid var(--ink); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.0625rem; line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .i { color: var(--ink-3); transition: transform 200ms var(--ease); }
.qa[open] summary .i { transform: rotate(180deg); color: var(--gold-ink); }
.qa summary:hover { color: var(--gold-ink); }
.qa-a { padding: 0 32px 20px 0; color: var(--ink-2); max-width: 62ch; }
.qa-a a { color: var(--gold-ink); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .qa[open] .qa-a { animation: qa-in 300ms cubic-bezier(0, 0, 0.2, 1); }
}
@keyframes qa-in { from { opacity: 0; transform: translateY(-4px); } }
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .faq .h2 { position: sticky; top: calc(var(--top-h) + 32px); }
}

/* ---------- closing call to action: the one full-gold surface ---------- */
.cta { background: var(--gold); color: var(--night); padding: 64px 0; }
.cta-grid { display: grid; gap: 28px; }
.cta .h2 { max-width: 12ch; margin-bottom: 14px; }
.cta-lead { font-size: 1.0625rem; max-width: 44ch; color: #3a2d08; }
.cta-actions { display: grid; gap: 6px; align-content: start; }
.cta-actions .btn { margin-bottom: 10px; }
.cta-phone, .cta-mail { display: flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; font-weight: 600; }
.cta-phone { font-family: var(--f-display); font-stretch: 88%; font-size: 1.75rem; font-weight: 700; }
.cta-phone .i { width: 24px; height: 24px; }
.cta-mail { word-break: break-all; }
.cta-phone:hover span, .cta-mail:hover span { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 960px) {
  .cta { padding: 96px 0; }
  .cta-grid { grid-template-columns: 7fr 4fr; gap: 64px; align-items: end; }
}

/* ---------- footer ---------- */
.foot { background: var(--night); color: var(--on-night-2); padding: 56px 0 24px; font-size: 0.9375rem; }
.foot-grid { display: grid; gap: 32px; }
.foot-sign { display: flex; align-items: center; gap: 16px; }
.foot-sign img { width: 72px; height: 72px; }
.foot-tag { font-family: var(--f-display); font-stretch: 80%; font-weight: 650; font-size: 1.5rem; line-height: 1.1; color: var(--on-night); max-width: 12ch; }
.foot-contact { display: grid; gap: 2px; }
.foot-contact a { text-decoration: none; min-height: 40px; display: flex; align-items: center; }
.foot-phone { color: var(--on-night); font-weight: 600; font-size: 1.25rem; }
.foot-mail { color: var(--gold); }
.foot-contact p { margin-top: 8px; max-width: 36ch; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-nav a { min-height: 44px; display: flex; align-items: center; text-decoration: none; color: var(--on-night); }
.foot-nav a:hover { color: var(--gold); }
.foot-legal { margin-top: 36px; font-size: 0.8125rem; }
.foot-legal p { padding-top: 20px; border-top: 1px solid var(--night-line); }
@media (min-width: 960px) {
  .foot { padding-top: 80px; }
  .foot-grid { grid-template-columns: 5fr 4fr 3fr; gap: 48px; align-items: start; }
  .foot-nav { flex-direction: column; }
}

/* ---------- inner page header ---------- */
.page-head { position: relative; isolation: isolate; background: var(--night); color: var(--on-night); padding: calc(var(--top-h) + 48px) 0 56px; overflow: hidden; }
.page-head-media { position: absolute; inset: 0; z-index: -1; }
.page-head-media img { width: 100%; height: 100%; object-fit: cover; }
.page-head-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 21, 15, 0.55), rgba(23, 21, 15, 0.92) 75%, var(--night)); }
.page-head h1 {
  font-family: var(--f-display); font-stretch: 72%; font-weight: 750;
  font-size: clamp(2.75rem, 1.6rem + 5.6vw, 5.5rem); line-height: 0.95; letter-spacing: -0.015em;
  max-width: 14ch; margin-bottom: 18px;
}
.page-head p { color: var(--on-night-2); font-size: 1.0625rem; max-width: 50ch; }
.crumb { font-size: 0.875rem; color: var(--on-night-2); margin-bottom: 16px; }
.crumb a { color: var(--on-night); text-underline-offset: 3px; }
@media (min-width: 960px) {
  .page-head { padding: calc(var(--top-h) + 96px) 0 96px; }
  .page-head p { font-size: 1.1875rem; }
  .page-head-media { inset: 0 0 0 45%; }
  .page-head-media::after { background: linear-gradient(90deg, var(--night), rgba(23, 21, 15, 0.55) 40%, rgba(23, 21, 15, 0.25)); }
}

/* ---------- services page ---------- */
.svc-detail { padding: 48px 0; border-bottom: 1px solid var(--line); }
.svc-detail:last-child { border-bottom: 0; }
.svc-detail-grid { display: grid; gap: 20px; }
.svc-detail h2 { font-family: var(--f-display); font-stretch: 80%; font-weight: 700; font-size: clamp(1.875rem, 1.4rem + 2vw, 2.75rem); line-height: 1.02; margin-bottom: 12px; }
.svc-detail .lead { margin-bottom: 0; }
.incl-label { font-size: 0.875rem; font-weight: 500; color: var(--ink-3); margin-bottom: 8px; }
.incl { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); margin-bottom: 20px; }
.incl li { display: flex; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.incl .i { width: 16px; height: 16px; color: var(--gold-ink); transform: translateY(3px); stroke-width: 2.5; }
.svc-detail .svc-add { grid-column: auto; grid-row: auto; justify-self: start; }
@media (min-width: 960px) {
  .svc-detail { padding: 72px 0; }
  .svc-detail-grid { grid-template-columns: 5fr 4fr 3fr; gap: 56px; align-items: start; }
  .svc-detail .svc-add { justify-self: end; }
}
.services-index { padding: 8px 0 24px; }
@media (min-width: 960px) { .services-index { padding: 24px 0 48px; } }
.freq { background: var(--card); padding: var(--sec) 0; box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.freq-grid { display: grid; gap: 32px; }
.freq-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.freq-list li { padding: 16px; border-radius: var(--r); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.freq-list strong { display: block; font-family: var(--f-display); font-stretch: 88%; font-size: 1.25rem; font-weight: 650; margin-bottom: 2px; }
.freq-list span { font-size: 0.875rem; color: var(--ink-3); }
.why { padding: var(--sec) 0; }
.why-list { list-style: none; border-top: 2px solid var(--ink); margin-top: 32px; }
.why-list li { display: grid; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.why-list h3 { font-family: var(--f-display); font-stretch: 88%; font-weight: 650; font-size: 1.5rem; line-height: 1.15; }
.why-list p { color: var(--ink-2); max-width: 60ch; }
@media (min-width: 960px) {
  .freq-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
  .why-list li { grid-template-columns: 5fr 7fr; gap: 64px; padding: 32px 0; }
  .why-list p { font-size: 1.0625rem; }
}

/* ---------- about page ---------- */
.prose-sec { padding: var(--sec) 0; }
.prose-grid { display: grid; gap: 24px; }
.prose-grid .h2 { max-width: 14ch; }
.prose { font-size: 1.0625rem; color: var(--ink-2); max-width: 62ch; }
.prose p { margin-bottom: 1.1em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose-sec + .prose-sec { padding-top: 0; }
@media (min-width: 960px) {
  .prose-grid { grid-template-columns: 5fr 7fr; gap: 64px; }
  .prose { font-size: 1.1875rem; }
}
.pull {
  font-family: var(--f-display); font-stretch: 72%; font-weight: 760;
  font-size: clamp(3rem, 1.4rem + 8vw, 7.5rem); line-height: 0.92; letter-spacing: -0.015em;
  color: var(--night); max-width: 10ch;
}
.pull-sec { padding: var(--sec) 0; background: var(--card); box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.pull-sec p:not(.pull) { color: var(--ink-2); max-width: 56ch; margin-top: 24px; font-size: 1.0625rem; }

/* ---------- estimate page ---------- */
.est-page { padding: 32px 0 var(--sec); }
.est-page-grid { display: grid; gap: 40px; }
.est-card { background: var(--card); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -24px rgba(28, 30, 28, 0.35); padding: 24px 20px; }
.est-aside h2 { font-family: var(--f-display); font-stretch: 88%; font-weight: 650; font-size: 1.5rem; margin-bottom: 12px; }
.est-aside-phone { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-stretch: 80%; font-weight: 700; font-size: 2.25rem; text-decoration: none; min-height: 56px; }
.est-aside-phone .i { width: 28px; height: 28px; color: var(--gold-ink); }
.est-aside-mail { display: inline-flex; min-height: 44px; align-items: center; color: var(--gold-ink); font-weight: 600; word-break: break-all; }
.est-aside-block { padding: 24px 0; border-top: 1px solid var(--line); }
.est-aside-block:first-child { border-top: 2px solid var(--ink); }
.est-aside ol { padding-left: 20px; color: var(--ink-2); display: grid; gap: 8px; }
@media (min-width: 640px) { .est-card { padding: 32px; } }
@media (min-width: 960px) {
  .est-page { padding-top: 56px; }
  .est-page-grid { grid-template-columns: 7fr 4fr; gap: 64px; align-items: start; }
  .est-aside { position: sticky; top: calc(var(--top-h) + 32px); }
}

/* ---------- estimate form (sheet + inline) ---------- */
.est { display: grid; }
.est fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.est-head { margin-bottom: 20px; }
.est-title { font-size: 0.875rem; font-weight: 600; color: var(--ink-3); margin-bottom: 10px; }
.est-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.est-progress span { height: 4px; border-radius: 2px; background: var(--paper-2); position: relative; overflow: hidden; }
.est-progress span::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 420ms var(--ease-out); }
.est-progress span.is-on::after { transform: none; }
.est-count { font-size: 0.875rem; color: var(--ink-3); }
.est-q { font-family: var(--f-display); font-stretch: 80%; font-weight: 700; font-size: clamp(1.625rem, 1.3rem + 1.4vw, 1.875rem); line-height: 1.05; margin-bottom: 16px; padding: 0; }
.est-q2 { font-family: var(--f-display); font-stretch: 88%; font-weight: 650; font-size: 1.25rem; margin: 0 0 10px; padding: 0; }
.est-sub { margin-top: 28px !important; }
.est-for { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: -6px 0 14px; padding: 8px 8px 8px 12px; border-radius: var(--r-sm); background: var(--gold-wash); font-size: 0.9375rem; color: var(--ink-2); }
.est-for[hidden] { display: none; }
.est-for strong { color: var(--ink); font-weight: 600; margin-right: auto; }
.est-change { min-height: 36px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--gold-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.est-hint { font-size: 0.9375rem; color: var(--ink-3); margin: -8px 0 14px; }
.est-types { display: grid; gap: 8px; }
.opt { position: relative; display: flex; align-items: center; gap: 14px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.opt input, .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt-lg {
  min-height: 68px; padding: 12px 16px; border-radius: var(--r); background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--line-ctl);
  transition: box-shadow 150ms var(--ease), background-color 150ms var(--ease), transform 150ms var(--ease);
}
.opt-lg:active { transform: scale(0.98); }
.opt-lg > .i { width: 24px; height: 24px; color: var(--gold-ink); }
.opt-text { display: grid; gap: 1px; }
.opt-name { font-weight: 600; line-height: 1.3; }
.opt-sub { font-size: 0.875rem; color: var(--ink-3); line-height: 1.35; }
.opt-lg:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.opt-lg:has(input:checked) { background: var(--gold-wash); box-shadow: inset 0 0 0 2px var(--gold-ink); }
.opt-lg:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-ctl); font-size: 0.9375rem; font-weight: 500;
  transition: box-shadow 150ms var(--ease), background-color 150ms var(--ease), transform 150ms var(--ease);
}
.chip:hover span { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.chip:active span { transform: scale(0.96); }
.chip input:checked + span { background: var(--night); color: var(--on-night); box-shadow: none; }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.fields { display: grid; gap: 14px; }
.field label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 6px; }
.opt-tag { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 0; border-radius: var(--r);
  background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-ctl);
  font-size: 1rem; line-height: 1.4; transition: box-shadow 150ms var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:hover, .field textarea:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gold-ink), 0 0 0 4px rgba(233, 182, 45, 0.3); }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 2px #a3321f; }
.est-err { color: #a3321f; font-size: 0.875rem; font-weight: 500; margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.est-nav { display: flex; gap: 10px; margin-top: 24px; }
.est-nav .btn { flex: 1; }
.est-back { flex: 0 0 auto !important; padding: 0 16px 0 10px; }
.est-status { margin-top: 14px; padding: 12px 14px; border-radius: var(--r); background: #fbe6e2; color: #7c2416; font-size: 0.9375rem; }
.est-status a { color: inherit; font-weight: 700; }
.est-alt { margin-top: 16px; font-size: 0.9375rem; color: var(--ink-3); text-align: center; }
.est-alt a { color: var(--ink); font-weight: 600; white-space: nowrap; }
.est-done { text-align: left; padding: 8px 0; }
.est-done:focus { outline: none; }
.est-done-mark .i { width: 48px; height: 48px; color: var(--gold-ink); margin-bottom: 16px; stroke-width: 1.6; }
.est-done-text { font-size: 1.0625rem; color: var(--ink-2); }
.est-done-call { color: var(--ink-2); margin-bottom: 24px; }
.est-done-call a { color: var(--ink); font-weight: 600; }
.est.is-done > :not(.est-done) { display: none; }

/* stepper only when JS is running; without JS every field shows and submits normally */
.js .est-step:not(.is-current) { display: none; }
.js .est[data-step-now="1"] .est-back { visibility: hidden; }
.js .est:not([data-step-now="3"]) .est-send { display: none; }
.js .est[data-step-now="3"] .est-next { display: none; }
.est:not(.is-ready) .est-progress, .est:not(.is-ready) .est-count, .est:not(.is-ready) .est-back, .est:not(.is-ready) .est-next { display: none; }
.est:not(.is-ready) .est-step + .est-step { margin-top: 32px; }
@media (prefers-reduced-motion: no-preference) {
  .est-step.is-current { animation: step-in 300ms var(--ease-out); }
  .est-step.is-current.is-back { animation-name: step-back; }
}
@keyframes step-in { from { opacity: 0; transform: translateX(16px); } }
@keyframes step-back { from { opacity: 0; transform: translateX(-16px); } }

.sheet {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0;
  background: var(--paper); color: var(--ink);
  overscroll-behavior: contain;
}
.sheet[open] { display: flex; flex-direction: column; }
.sheet::backdrop { background: rgba(23, 21, 15, 0.62); }
.sheet-bar {
  display: flex; align-items: center; gap: 10px; flex: none;
  padding: 10px 8px 10px var(--gutter); padding-top: calc(10px + env(safe-area-inset-top));
  background: var(--night); color: var(--on-night);
}
.sheet-bar img { width: 32px; height: 32px; }
.sheet-brand { font-family: var(--f-display); font-stretch: 80%; font-weight: 700; font-size: 1.0625rem; margin-right: auto; }
.sheet-x { display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: none; color: var(--on-night); border-radius: var(--r-sm); }
.sheet-x .i { width: 24px; height: 24px; }
.sheet-body { flex: 1; overflow-y: auto; scroll-padding-bottom: 96px; padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
.sheet-body .est { max-width: 560px; margin-inline: auto; min-height: 100%; display: flex; flex-direction: column; }
.sheet-body .est-nav {
  order: 10; position: sticky; bottom: calc(-24px - env(safe-area-inset-bottom)); z-index: 2; margin-top: auto;
  margin-inline: calc(var(--gutter) * -1); margin-bottom: calc(-24px - env(safe-area-inset-bottom));
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: var(--paper); box-shadow: 0 -1px 0 var(--line);
}
.sheet-body .est-step { margin-bottom: 24px; }
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: sheet-up 380ms var(--ease-out); }
  .sheet[open]::backdrop { animation: fade 300ms var(--ease); }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@media (min-width: 640px) {
  .sheet { width: min(600px, calc(100% - 48px)); height: auto; max-height: min(860px, calc(100% - 48px)); margin: auto; border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5); }
  .sheet-bar { padding-top: 10px; }
  .sheet-body { padding: 28px 32px 28px; }
  .sheet-body .est { min-height: 0; }
  .sheet-body .est-nav { bottom: -28px; margin-inline: -32px; margin-bottom: -28px; padding: 14px 32px 16px; }
}
html.has-sheet { overflow: hidden; }

/* ---------- 404 ---------- */
.nf { min-height: 70svh; display: grid; align-content: center; padding: calc(var(--top-h) + 48px) 0 var(--sec); background: var(--night); color: var(--on-night); }
.nf h1 { font-family: var(--f-display); font-stretch: 72%; font-weight: 750; font-size: clamp(3rem, 2rem + 6vw, 6rem); line-height: 0.95; margin-bottom: 16px; max-width: 12ch; }
.nf p { color: var(--on-night-2); max-width: 44ch; margin-bottom: 28px; }
.nf-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .how-steps::after { transform: none; }
}

/* ---------- estimate page: get the form above the fold on phones ---------- */
.page-estimate .page-head { padding: calc(var(--top-h) + 20px) 0 24px; }
.page-estimate .page-head h1 { font-size: clamp(2.25rem, 1.6rem + 3.4vw, 4.5rem); max-width: none; margin-bottom: 8px; }
.page-estimate .page-head p { font-size: 1rem; }
.page-estimate .crumb { display: none; }
.page-estimate .est-page { padding-top: 16px; }
.page-estimate .est-title { display: none; }
.page-estimate .est-card { padding: 20px 16px; }
.page-estimate .dock { grid-template-columns: 1fr; }
.page-estimate .dock-est { display: none; }
.head-phone { color: var(--on-night); font-weight: 600; white-space: nowrap; }
.est-aside-note { color: var(--ink-2); }
.freq-lead { margin-top: 16px; }
@media (min-width: 960px) {
  .page-estimate .page-head { padding: calc(var(--top-h) + 56px) 0 48px; }
  .page-estimate .crumb { display: block; }
  .page-estimate .est-page { padding-top: 48px; }
  .page-estimate .est-card { padding: 32px; }
}
