/* ==========================================================================
   CCI Landing Page: Colorado Complete Inspections, now a part of HouseMaster
   Values from docs/04-design-spec.md and design/reference/CCI Landing Page.dc.html
   ========================================================================== */

:root {
  /* Color */
  --crimson: #C1272D;          /* buttons and logo only */
  --crimson-dark: #9E1F24;
  --charcoal: #4D4F4E;
  --ink: #1E1F1F;
  --ink-deep: #141515;
  --brass: #7E6224;            /* accents on light backgrounds */
  --brass-light: #C8A45E;      /* accents on dark backgrounds, Book Online */
  --brass-light-hover: #D9BB7C;
  --off-white: #F6F5F2;
  --placeholder: #ECEBE7;
  --rule: #E4E4E0;
  --rule-dark: #3A3C3C;
  --gray-500: #8E908F;
  --gray-600: #6B6D6C;
  --gray-footer: #B5B6B3;
  --white: #FFFFFF;

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  /* Layout */
  --max: 1240px;
  --gutter: 32px;
  --section-y: 112px;

  /* Motion */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --cta-shadow: 0 8px 18px -10px rgba(30, 31, 31, .55);
}

@media (max-width: 599.98px) {
  :root { --gutter: 24px; --section-y: 88px; }
}
@media (max-width: 359.98px) {
  :root { --gutter: 20px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
input, select, textarea, button { font: inherit; }

a { color: var(--crimson-dark); text-underline-offset: 3px; }
a:hover { color: var(--crimson); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.on-dark :focus-visible { outline-color: var(--white); }
.on-dark .form-card :focus-visible { outline-color: var(--ink); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 12px 16px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* One breakpoint: 900px */
@media (max-width: 899.98px) { .desktop-only { display: none !important; } }
@media (min-width: 900px)    { .phone-only   { display: none !important; } }

/* ---------- Type roles ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass);
}
.label-sm {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass-light);
}

h1 {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.12;
  text-wrap: balance;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: none;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
  padding: 14px 18px;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}
.btn-primary { background: var(--crimson); color: var(--white); font-weight: 600; }
.btn-primary:hover { background: var(--crimson-dark); color: var(--white); }

.btn-gold { background: var(--brass-light); color: var(--ink); font-weight: 700; }
.btn-gold:hover { background: var(--brass-light-hover); color: var(--ink); }

.btn-lg { font-size: 14px; padding: 18px 26px; }

/* Ink: secondary actions (crimson stays reserved for Request) */
.btn-ink { background: var(--ink); color: var(--white); font-weight: 600; }
.btn-ink:hover { background: var(--charcoal); color: var(--white); }

.btn-call {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  border: 1.5px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  padding: 11.5px 16px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  letter-spacing: .02em;
  text-decoration: none;
}
.btn-call__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brass);
}
.btn-call:hover { background: var(--ink); color: var(--white); }
/* Brass fails on ink (spec); swap to brass-light on hover */
.btn-call:hover .btn-call__label { color: var(--brass-light); }

/* CTA hover lift */
@media (prefers-reduced-motion: no-preference) {
  .cta { transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), background-color 180ms, color 180ms; }
  .cta:hover { transform: translateY(-2px); box-shadow: var(--cta-shadow); }
}

/* ---------- Corner brackets ---------- */
/* <span class="brackets" aria-hidden="true"><i></i><i></i></span>
   --br-size, --br-w, --br-c1 (top-left), --br-c2 (bottom-right), --br-inset */
.has-brackets { position: relative; }
.brackets {
  --br-size: 22px;
  --br-w: 3px;
  --br-c1: var(--charcoal);
  --br-c2: var(--br-c1);
  --br-inset: 0px;
  position: absolute;
  inset: var(--br-inset);
  z-index: 1;
  pointer-events: none;
}
.brackets > i {
  position: absolute;
  width: var(--br-size);
  height: var(--br-size);
}
.brackets > i:first-child {
  left: 0; top: 0;
  border-left: var(--br-w) solid var(--br-c1);
  border-top: var(--br-w) solid var(--br-c1);
}
.brackets > i:last-child {
  right: 0; bottom: 0;
  border-right: var(--br-w) solid var(--br-c2);
  border-bottom: var(--br-w) solid var(--br-c2);
}
.brackets--hero     { --br-size: 56px; --br-c1: var(--charcoal); --br-c2: var(--brass); }
.brackets--trust    { --br-size: 14px; --br-w: 2px; }
.brackets--why      { --br-size: 40px; }
.brackets--card     { --br-size: 22px; }
.brackets--services { --br-size: 40px; --br-c1: var(--brass-light); }
.brackets--strip    { --br-size: 28px; --br-c1: var(--ink); --br-inset: -1px; }
.brackets--quote    { --br-size: 32px; --br-c1: var(--brass-light); --br-inset: 12px; }
.brackets--form     { --br-size: 36px; --br-c1: var(--brass-light); --br-inset: -10px; }
.brackets--testimonial { --br-size: 28px; --br-c1: var(--charcoal); --br-c2: var(--brass); }
.brackets--thanks   { --br-size: 28px; --br-c1: var(--charcoal); --br-c2: var(--brass); }
.brackets--video    { --br-size: 40px; --br-c1: var(--charcoal); --br-c2: var(--brass); }
.brackets--checklist{ --br-size: 14px; --br-w: 2px; --br-c1: var(--brass-light); --br-inset: -1px; }

/* ---------- Photos ---------- */
.photo {
  position: relative;
  overflow: hidden;
  background: var(--placeholder);
}
.photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ratio-5-4  { aspect-ratio: 5 / 4; }
.ratio-16-10{ aspect-ratio: 16 / 10; }
.ratio-4-3  { aspect-ratio: 4 / 3; }
.ratio-3-2  { aspect-ratio: 3 / 2; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--rule);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 32px;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-decoration: none;
  min-width: 0;
}
.brand img { height: 40px; width: auto; }
.brand__tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: .16em;
  line-height: 1;
  color: var(--charcoal);
  white-space: nowrap;
}

.nav-desktop {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  white-space: nowrap;
  max-width: 100%;
}
.nav-desktop__links { display: flex; gap: 20px; font-size: 15px; font-weight: 500; }
.nav-desktop__links a { color: var(--ink); text-decoration: none; }
.nav-desktop__links a:hover { color: var(--crimson-dark); }

/* Compact desktop header: the full header needs ~1100px for one row */
@media (min-width: 900px) and (max-width: 1099.98px) {
  .header-inner { padding: 12px 16px; gap: 12px 16px; flex-wrap: nowrap; }
  .brand img { height: 36px; }
  .brand__tag { font-size: 8.5px; }
  .nav-desktop { gap: 12px; flex-wrap: nowrap; }
  .nav-desktop__links { gap: 14px; font-size: 14px; }
  .nav-desktop .btn-call { padding: 10.5px 11px; font-size: 14px; gap: 6px; letter-spacing: 0; }
  .nav-desktop .btn { padding: 13px 12px; font-size: 12px; letter-spacing: .06em; }
}

/* Phone header */
.menu-btn {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--ink);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-btn__icon,
.menu-btn__icon::before,
.menu-btn__icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}
.menu-btn__icon { position: relative; }
.menu-btn__icon::before,
.menu-btn__icon::after { content: ""; position: absolute; left: 0; }
.menu-btn__icon::before { top: -7px; }
.menu-btn__icon::after  { top: 7px; }
.menu-btn[aria-expanded="true"] .menu-btn__icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__icon::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon::after  { top: 0; transform: rotate(-45deg); }

.nav-mobile {
  flex-basis: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 0 4px;
  max-height: calc(100vh - 80px);
  max-height: calc(100dvh - 80px);
  overflow: auto;
}
.nav-mobile a:not(.btn-call) {
  display: block;
  padding: 16px 4px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
}
.nav-mobile .btn-call {
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  padding: 15px;
  font-size: 16px;
  letter-spacing: 0;
}

@media (max-width: 899.98px) {
  .header-inner { gap: 0 8px; flex-wrap: wrap; justify-content: flex-start; }
  .brand { flex: 0 1 auto; gap: 4px; }
  .brand img { width: 150px; height: auto; }
  .brand__tag { font-size: 8.5px; }
  .btn-book-compact {
    margin-left: auto;
    height: 44px;
    padding: 0 12px;
    font-size: 12px;
    letter-spacing: .06em;
    white-space: nowrap;
  }
  /* With JS the menu is collapsed until opened */
  .js .nav-mobile:not(.is-open) { display: none; }
  /* Without JS: no toggle, menu shows inline and the header doesn't stick */
  .no-js .menu-btn { display: none; }
  .no-js .site-header { position: static; }
}
@media (max-width: 379.98px) {
  .header-inner { padding: 12px 14px; gap: 0 6px; }
  .brand img { width: 120px; }
  .brand__tag { font-size: 7px; letter-spacing: .12em; }
  .btn-book-compact { padding: 0 9px; font-size: 11px; letter-spacing: .04em; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--off-white);
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.grid-bg {
  position: absolute;
  inset: 0;
  background-size: 60px 60px;
  pointer-events: none;
}
.hero .grid-bg {
  background-image: url("../assets/patterns/grid-light.svg");
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 75%);
  mask-image: linear-gradient(90deg, transparent 20%, #000 75%);
}
.hero__inner {
  position: relative;
  padding-top: 88px;
  padding-bottom: var(--section-y);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
/* 7/5 split so the H1 sits in 3–4 lines at desktop widths */
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; }
}
.hero__copy { display: flex; flex-direction: column; gap: 24px; }
.hero__sub {
  max-width: 46ch;
  font-size: 20px;
  line-height: 1.5;
  color: var(--charcoal);
  text-wrap: pretty;
}
.hero__frame { padding: 16px; }
@media (max-width: 599.98px) {
  .hero__inner { padding-top: 56px; gap: 40px; }
  .hero__sub { font-size: 18px; }
}

/* ==========================================================================
   Trust bar
   ========================================================================== */
.trust { border-bottom: 1px solid var(--rule); }
.trust__inner {
  padding-top: 48px;
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.trust__title {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-align: center;
}
/* Flex-wrap with centered rows so a short last row never sits as an orphan:
   7 in one row at ≥1200px, 4 + 3 at 900–1199px, 2 columns (last centered) below. */
.trust__list {
  --cols: 2;
  --gap: 12px;
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
}
.trust__item {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  min-width: 0;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
}
.trust__item img { width: 30px; height: 30px; flex: none; }
@media (min-width: 900px) {
  .trust__list { --cols: 4; --gap: 16px; }
}
@media (min-width: 1200px) {
  .trust__list { --cols: 7; --gap: 12px; }
  .trust__item { padding: 14px 12px; gap: 10px; font-size: 13px; }
  .trust__item img { width: 24px; height: 24px; }
}
@media (max-width: 599.98px) {
  .trust__item { flex-direction: column; gap: 10px; padding: 14px; font-size: 13px; }
  .trust__item img { width: 26px; height: 26px; }
}

/* ==========================================================================
   Why CCI
   ========================================================================== */
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }

.why__inner { display: flex; flex-direction: column; gap: 48px; }
.why__top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
  align-items: center;
}
.why__heading {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.why__frame { flex: 1 1 380px; min-width: 0; padding: 12px; }
@media (max-width: 459.98px) {
  .why__heading, .why__frame { flex-basis: 100%; }
}
/* Desktop rhythm: photos alternate right / left / right / left / right
   (Hero, Why, Services, Common issues, HouseMaster). Phones keep source order. */
@media (min-width: 900px) { .why__frame { order: -1; } }

.why__cards-wrap { container: why-cards / inline-size; }
.why__cards {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}
.why-card {
  background: var(--off-white);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.why-card__n { font-family: var(--font-mono); font-size: 13px; line-height: 1.6; color: var(--brass); }
.why-card h3 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 21px;
  line-height: 1.25;
}
.why-card p { font-size: 16px; line-height: 1.6; color: var(--charcoal); }

/* CCI mark fills the empty cell when the 3 cards wrap 2+1, desktop only.
   2 columns happen while the grid is 580–879px wide (minmax 280 + gap 20). */
.why__logo {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.why__logo img { width: 100%; max-width: 200px; height: auto; }
@media (min-width: 900px) {
  @container why-cards (min-width: 580px) and (max-width: 879.98px) {
    .why__logo { display: flex; }
  }
}

.why__closing {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.4;
  max-width: 760px;
  padding-left: 20px;
  border-left: 3px solid var(--brass);
}
/* One line on desktop (≥900px); it fits the content width at 18–22px */
@media (min-width: 900px) {
  .why__closing { max-width: none; }
}

/* ==========================================================================
   Proof (placeholder content; see index.html)
   ========================================================================== */
.proof { background: var(--off-white); }
.proof__inner { display: flex; flex-direction: column; gap: 56px; }

.stats {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 32px 40px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 20px;
  border-left: 3px solid var(--brass);
}
.stat__num {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
/* During the count-up, JS stacks the final value (invisible) under the live
   value so the box keeps its final width and nothing shifts. */
.stat__value { display: inline-grid; }
.stat__value > span { grid-area: 1 / 1; }
.stat__ghost { visibility: hidden; }
.stat__label { font-size: 15px; line-height: 1.45; color: var(--charcoal); max-width: 28ch; }

/* 3 in a row at ≥1024px, 2 + 1 (centered) at 768–1023px, stacked below.
   Flex rows stretch, so cards in a row share a height; the caption is
   pushed to the bottom with margin-top: auto. */
.testimonials {
  --cols: 1;
  --gap: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
}
@media (min-width: 768px)  { .testimonials { --cols: 2; } }
@media (min-width: 1024px) { .testimonials { --cols: 3; } }
.testimonial {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  min-width: 0;
  background: var(--white);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.45;
  text-wrap: pretty;
}
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .testimonial { padding: 36px 28px; }
  .testimonial blockquote { font-size: 17px; }
}
.testimonial figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.5; color: var(--gray-600); }
.testimonial__name { font-weight: 600; color: var(--ink); }
.testimonial__source { padding-left: 1.3em; } /* lines up under the name, past the dash */
@media (max-width: 459.98px) {
  .testimonial { padding: 32px 24px; }
  .testimonial blockquote { font-size: 18px; }
}

/* ==========================================================================
   Photo band
   ========================================================================== */
.band {
  height: max(260px, 33.333vw);
  max-height: 520px;
}
.band > img { object-position: 50% 85%; }

/* ==========================================================================
   Services + Process (dark): two stacked rows
   ========================================================================== */
.dark { background: var(--ink); color: var(--white); }

.services__inner { --row-gap: 80px; display: flex; flex-direction: column; }
@media (max-width: 599.98px) { .services__inner { --row-gap: 64px; } }

/* Row 1: Services list + photo (60/40 at desktop) */
.services__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding-bottom: var(--row-gap);
  border-bottom: 1px solid var(--rule-dark);
}
@media (min-width: 900px) {
  .services__row { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 56px; align-items: center; }
}
.services__main { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.services__main .h2,
.process__row .h2 { line-height: 1.1; }

.services__list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 32px;
}
@media (min-width: 600px) {
  .services__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.services__list li {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--rule-dark);
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
}
.services__list li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--brass-light);
  border-bottom: 2px solid var(--brass-light);
}

/* Slim text line, no box */
.services__note {
  font-size: 15px;
  line-height: 1.5;
  color: var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
}
.services__note-sep { color: var(--gray-600); }
.services__note a { color: var(--white); font-weight: 600; }
.services__note a:hover { color: var(--brass-light); }

.services__frame { padding: 12px; min-width: 0; }
@media (max-width: 899.98px) { .services__frame { width: 100%; max-width: 520px; } }
.services__frame .photo { background: #2A2C2C; }

/* Row 2: Process timeline. Vertical at every width; at 900px+ the heading
   stays pinned on the left while the steps scroll past. Without JS each step
   is joined by a static brass line. With JS (main.js initProcess) one track
   runs down the numbers, a brass fill follows the scroll, and each number
   fills in as it's reached, like a box being checked. */
.process__row {
  padding-top: var(--row-gap);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}
@media (min-width: 900px) {
  .process__row { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
  .process__title { position: sticky; top: 128px; }
}
.process__wrap { position: relative; }
.process {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.process li {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
}
/* Static connector (no JS) */
.process li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 27.5px;
  top: 56px;
  bottom: -40px;
  width: 1px;
  background: var(--brass-light);
}
.process__n {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--brass-light);
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  color: var(--brass-light);
}
.process__body { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; max-width: 60ch; }
.process h3 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
}
.process p { font-size: 15px; line-height: 1.6; color: var(--rule); }
@media (min-width: 900px) {
  .process { gap: 56px; }
  .process li:not(:last-child)::before { bottom: -56px; }
  .process h3 { font-size: 22px; }
  .process p { font-size: 16px; }
}

/* Scroll track (JS only) */
.process__track { display: none; }
.js .process li::before { display: none; }
.js .process__track {
  display: block;
  position: absolute;
  left: 27.5px;
  width: 1px;
  background: var(--rule-dark);
}
.process__fill {
  position: absolute;
  inset: 0;
  background: var(--brass-light);
  transform-origin: top;
  transform: scaleY(var(--p, 1));
}
.process.is-tracking .process__n { transition: color 300ms, border-color 300ms, background-color 300ms; }
.process.is-tracking li:not(.is-reached) .process__n { color: var(--gray-500); border-color: var(--rule-dark); }
.process li.is-reached .process__n { background: var(--brass-light); color: var(--ink); }

/* ==========================================================================
   Common issues (compact)
   ========================================================================== */
.issues { background: var(--off-white); padding: 56px 0; }
.issues__inner { display: flex; flex-direction: column; gap: 24px; }
.issues__head { display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
.issues__head .h2 {
  font-size: clamp(26px, 4.2vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-wrap: initial;
}
.issues__head .h2 > span:first-child { text-wrap: balance; }

/* Thin dividers: the 1px grid gap shows the rule color behind white cells */
.issues__grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 600px) { .issues__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .issues__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.issue {
  background: var(--white);
  padding: 20px 22px 22px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px 14px;
}
.issue img { width: 40px; height: 40px; }
.issue p { grid-column: 1 / -1; }
.issue h3 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
}
.issue p { font-size: 15px; line-height: 1.55; color: var(--charcoal); }

/* Tom's video: under the heading on phones; left of a 2x2 issue grid at 900px+ */
.issues__video { padding: 12px; min-width: 0; }
.issues__video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  object-fit: cover;
}
@media (min-width: 900px) {
  .issues__inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas:
      "head  head"
      "video grid"
      "strip strip";
    gap: 24px 40px;
    align-items: start;
  }
  .issues__head { grid-area: head; }
  .issues__video { grid-area: video; align-self: center; margin: -12px; }
  .issues__grid { grid-area: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checklist-strip { grid-area: strip; }
}

/* Checklist strip: the section's main action */
.checklist-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 20px 28px;
}
.checklist-strip > img { width: 44px; height: 44px; flex: none; }
.checklist-strip__text {
  flex: 1;
  min-width: min(100%, 260px);
  font-size: 18px;
  line-height: 1.45;
  font-weight: 500;
}
.checklist-strip__lead, .checklist-strip__sub { display: block; }
.checklist-strip__sub { margin-top: 4px; font-size: 16px; font-weight: 400; color: var(--charcoal); }
@media (max-width: 599.98px) {
  .issues { padding: 56px 0; }
  .checklist-strip { padding: 24px 20px; }
  .checklist-strip .btn { width: 100%; padding: 18px 16px; line-height: 1.2; }
}

/* ==========================================================================
   HouseMaster
   ========================================================================== */
.hm__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 56px;
  align-items: start;
}
.hm__copy { display: flex; flex-direction: column; gap: 22px; }
.hm__logos { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hm__logos .hm-logo { height: 60px; width: auto; }
.hm__logos .cci-mark { height: 48px; width: auto; }
.logo-divider { width: 1px; height: 48px; background: var(--gray-500); flex: none; }
.hm__copy p { font-size: 17px; line-height: 1.65; color: var(--charcoal); }
.hm__link {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: 15px;
}
.hm__media { display: flex; flex-direction: column; min-width: 0; }

.quote {
  background: var(--ink);
  color: var(--white);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.quote blockquote {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.25;
  text-wrap: balance;
}
.quote figcaption { font-size: 15px; color: var(--rule); }
@media (max-width: 459.98px) {
  .quote { padding: 44px 32px; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
}
.faq__head { flex: 1 1 280px; display: flex; flex-direction: column; gap: 14px; }
.faq__head .h2 { line-height: 1.1; }
.faq__list {
  flex: 2 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 599.98px) {
  .faq__list { flex-basis: 100%; }
}
.faq-item { border-top: 1px solid var(--rule); }
.faq-item h3 { font-size: inherit; }
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
}
.faq-q:hover { color: var(--crimson-dark); }
.faq-q__sign {
  flex: none;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.faq-q__sign::before,
.faq-q__sign::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}
.faq-q__sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-q__sign::after { transform: translate(-50%, -50%) rotate(0deg); }
@media (prefers-reduced-motion: no-preference) {
  .faq-q__sign::after { transition: transform 260ms var(--ease-out); }
}
.no-js .faq-q { cursor: default; }
.no-js .faq-q__sign { display: none; }
.faq-a p {
  padding: 0 52px 24px 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal);
  max-width: 72ch;
}
.faq-a p.faq-a__lead { padding-bottom: 12px; }
.faq-a__links {
  list-style: none;
  padding: 0 52px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
  line-height: 1.5;
}
.faq-a__links a { font-weight: 600; }
/* Testimonial inside an FAQ answer: brass left rule, same attribution style as Proof */
.faq-quote {
  margin: 4px 52px 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--brass);
  max-width: 72ch;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-quote blockquote {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  text-wrap: pretty;
}
.faq-quote figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.5; color: var(--gray-600); }
@media (max-width: 459.98px) {
  .faq-a p, .faq-a__links { padding-right: 0; }
  .faq-quote { margin-right: 0; padding-left: 16px; }
}

/* Checklist card (dark) */
.checklist-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--charcoal);
  background: var(--ink);
  padding: 22px 24px;
  color: var(--white);
  text-decoration: none;
}
.checklist-card:hover { border-color: var(--brass-light); color: var(--white); }
.checklist-card > img { width: 44px; height: 44px; }
.checklist-card__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.checklist-card__title {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
}
.checklist-card__pdf {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brass-light);
  white-space: nowrap;
}
.checklist-after-faq { padding: 0 var(--gutter) 72px; margin-top: calc(var(--section-y) * -1 + 48px); }
.checklist-after-faq .checklist-card { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; }
@media (max-width: 359.98px) {
  .checklist-card { padding: 20px 18px; gap: 12px; }
}

/* ==========================================================================
   Request (dark)
   ========================================================================== */
.request { position: relative; overflow: hidden; }
.request .grid-bg {
  background-image: url("../assets/patterns/grid-dark.svg");
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 45%);
  mask-image: linear-gradient(90deg, #000, transparent 45%);
}
.request__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
}
@media (min-width: 900px) {
  .request__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
}
.request__copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.request__copy .h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; }
.request__copy > p { font-size: 17px; line-height: 1.6; color: var(--rule); }

.talk { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.talk--desktop { margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--rule-dark); }
.talk__call {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  color: var(--white);
  text-decoration: none;
}
.talk__call:hover { color: var(--brass-light-hover); }
.talk--phone .talk__call { font-size: 26px; line-height: 1.1; }
.nowrap { white-space: nowrap; }
@media (max-width: 359.98px) {
  .form-actions .btn { line-height: 1.25; }
}
.talk .btn { align-self: flex-start; margin-top: 14px; }

.request__mark {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}
.request__mark img { width: 100%; max-width: 180px; height: auto; }

.form-card {
  position: relative;
  min-width: 0;
  background: var(--white);
  color: var(--ink);
  padding: 36px;
  display: flex;
  flex-direction: column;
}
@media (max-width: 459.98px) {
  .form-card { padding: 28px 20px; }
}
.request-form {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  grid-template-rows: auto auto auto 1fr auto;
  gap: 22px 20px;
}
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field__opt { font-weight: 400; color: var(--gray-600); }
.field input,
.field select,
.field textarea {
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--gray-500);
  border-radius: 0;
  padding: 0 12px;
  font-size: 16px;
  font-weight: 400;
  background: var(--white);
  color: var(--ink);
}
.field select { padding: 0 10px; }
.field textarea {
  flex: 1;
  height: auto;
  min-height: 120px;
  padding: 12px;
  line-height: 1.5;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: var(--crimson-dark); }
.field__error {
  font-size: 13px;
  font-weight: 500;
  color: var(--crimson-dark);
}
.field__error:empty { display: none; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-actions {
  grid-column: 1 / -1;
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 12px;
}
.form-actions .btn { width: 100%; font-size: 14px; padding: 18px 28px; }
.form-actions .btn[disabled] { opacity: .7; cursor: progress; }
.form-error {
  font-size: 15px;
  line-height: 1.5;
  color: var(--crimson-dark);
  border-left: 3px solid var(--crimson-dark);
  padding-left: 12px;
}
.form-error a { font-weight: 600; }

/* Static so its brackets anchor to the card's corners, as in the design */
.thanks {
  position: static;
  flex: 1;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 12px;
}
.thanks[hidden] { display: none; }
.thanks > img { width: 48px; height: 48px; }
.thanks h3 {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
}
.thanks p { font-size: 17px; line-height: 1.6; color: var(--charcoal); max-width: 52ch; }
/* Launch flags (set on <html>; see the comment at the top of index.html) */
html[data-form="off"] [data-when-form="on"],
html:not([data-form="off"]) [data-when-form="off"],
html[data-credentials-faq="off"] [data-credentials-faq-item] { display: none !important; }

/* "Ready to schedule?" block: stands in for the form while data-form="off" */
.schedule {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 12px;
}
.schedule > img { width: 48px; height: 48px; }
.schedule__title {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
}
.schedule p { font-size: 17px; line-height: 1.6; color: var(--charcoal); }
.schedule__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 10px; }
.schedule__call {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
}
.schedule__call:hover { color: var(--brass); }

.link-btn {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--crimson-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 15px;
}
.link-btn:hover { color: var(--crimson); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink-deep);
  color: var(--rule);
}
.footer__inner {
  position: relative;
  padding-top: 64px;
  padding-bottom: 120px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 40px;
}
.footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer__brand { gap: 18px; }
.footer__logos { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer__logos .hm-logo { height: 52px; width: auto; }
.footer__logos .cci-logo { height: 44px; width: auto; }
.footer__logos .logo-divider { height: 44px; background: var(--charcoal); }
.footer__brand span { font-size: 14px; }
.footer__phone {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 18px;
  align-self: flex-start;
}
.footer__col a:not(.footer__phone) { color: var(--white); align-self: flex-start; }
.footer__col a:hover { color: var(--brass-light); }
.footer__copy { margin-top: 12px; font-size: 13px; color: var(--gray-footer); }
.footer__range {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 70px;
  background: url("../assets/patterns/front-range-white.svg") 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}

/* ==========================================================================
   Privacy page (privacy.html)
   ========================================================================== */
.legal { background: var(--white); }
.legal__inner {
  max-width: calc(760px + 2 * var(--gutter));
  padding-top: 64px;
  padding-bottom: var(--section-y);
  font-size: 17px;
  line-height: 1.65;
  color: var(--charcoal);
}
.legal__title {
  font-size: clamp(34px, 4vw, 48px);
  color: var(--ink);
}
.legal__date {
  margin-top: 12px;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gray-600);
}
.legal h2 {
  margin-top: 48px;
  margin-bottom: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
}
.legal p, .legal ul, .legal address { margin-bottom: 16px; }
.legal ul { padding-left: 1.25em; list-style: disc; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--brass); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal address { font-style: normal; }
.legal a { color: var(--ink); }
.legal a:hover { color: var(--crimson-dark); }
@media (max-width: 899.98px) {
  .legal__inner { padding-top: 40px; font-size: 16px; }
  .legal h2 { margin-top: 36px; font-size: 20px; }
}

/* ==========================================================================
   v2.0 motion details (main.js drives the entrances; see initMotion)
   ========================================================================== */

/* Common issues: an inspector's checkbox on each card. Checked with JS off;
   with motion, the tick draws in as each card arrives. */
.issue { position: relative; }
.issue h3 { padding-right: 30px; }
.issue__check {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--charcoal);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.issue__check svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--brass);
  stroke-width: 2.6;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

/* Blueprint grid, reused behind Proof and the FAQ heading */
.proof { position: relative; overflow: hidden; }
.proof .grid-bg {
  background-image: url("../assets/patterns/grid-light.svg");
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 0% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 0% 0%, #000 20%, transparent 75%);
}
.proof__inner { position: relative; }
.faq { position: relative; overflow: hidden; }
.faq .grid-bg {
  background-image: url("../assets/patterns/grid-light.svg");
  -webkit-mask-image: radial-gradient(ellipse 45% 55% at 0% 0%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 45% 55% at 0% 0%, #000 15%, transparent 75%);
}
.faq__inner { position: relative; }

/* Ruler divider: a brass baseline with minor and major tick marks */
.ruler {
  display: block;
  width: 100%;
  height: 10px;
  color: var(--brass);
  opacity: .6;
  background:
    linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 60px) left bottom / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 12px) left bottom / 100% 5px no-repeat;
}
.faq__ruler { position: absolute; top: 0; left: 0; right: 0; z-index: 1; }

/* Header: soft shadow and a slightly smaller logo once the page scrolls.
   Only transforms change, so nothing below the header moves. */
.site-header.is-scrolled { box-shadow: 0 8px 20px -14px rgba(30, 31, 31, .45); }
.brand img { transform-origin: left center; }
.site-header.is-scrolled .brand img { transform: scale(.9); }
@media (prefers-reduced-motion: no-preference) {
  .site-header { transition: box-shadow 250ms var(--ease-out); }
  .brand img { transition: transform 250ms var(--ease-out); }
}

/* Arrows nudge right on hover */
.arrow { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .arrow { transition: transform 200ms var(--ease-out); }
  a:hover .arrow, a:focus-visible .arrow { transform: translateX(4px); }
}

/* Request heading: brass underline under "license-ready" (drawn in by JS) */
.draw-line {
  white-space: nowrap;
  padding-bottom: 7px;
  background: linear-gradient(var(--brass-light), var(--brass-light)) left bottom / 100% 3px no-repeat;
}

/* Inspection progress bar (v2.1, built by main.js initProgress): a brass line
   along the bottom of the sticky header, with ruler ticks at each section. */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  pointer-events: none;
}
.scroll-progress__fill {
  position: absolute;
  inset: 0;
  background: var(--brass-light);
  transform-origin: left center;
  transform: scaleX(var(--p, 0));
}
.scroll-progress__tick {
  position: absolute;
  bottom: 0;
  width: 1px;
  height: 7px;
  margin-left: -.5px;
  background: var(--gray-500);
}
.scroll-progress__tick.is-passed { height: 9px; background: var(--brass-light); }
@media (prefers-reduced-motion: no-preference) {
  .scroll-progress__tick { transition: height 200ms var(--ease-out), background-color 200ms; }
}
