/*
  base.css: design tokens and shared building blocks for the whole page.
  Every section stylesheet builds on these; nothing here is specific to one section.

  Brand: their logo is a slanted, wide orange "ARMSTRONG" on black with a blue
  spray beam (Facebook profile picture and cover). The site keeps the orange as
  its one accent and builds the rest from what a freshly detailed car looks like:
  piano-black paint, chrome, and white snow foam.
  Tone: glossy, confident, hands-on. Not cheap, not corporate, not shouty.
  Type: Saira (one variable family). Display lines use the widest cut, italic and
  heavy, like the lettering in their logo; body text uses the normal width.
  Motion: most sections move on scroll (GSAP). Every section is fully readable
  without it: motion only starts when <html> has the "motion-ready" class
  (set by src/scripts/base.js).
*/

:root {
  /* Colors (contrast ratios measured against the background they sit on) */
  --black: #08090b;      /* page background, dark sections: piano-black paint */
  --coat: #131519;       /* raised dark surfaces: notice strip, rigs band, footer */
  --chrome: #f2f4f5;     /* text on dark (18:1 on black) */
  --steel: #a2aab3;      /* secondary text on dark (8.1:1 on black, 7.5:1 on coat) */
  --orange: #ff5a0d;     /* the one accent, from their logo: call buttons, ticks, stars (6.4:1 on black; black text on it 6.4:1) */
  --foam: #ecf0f3;       /* light sections: snow foam */
  --graphite: #4a525b;   /* secondary text on foam (6.8:1) */

  /* Lines: the text colors at low strength, so no new hues enter the palette */
  --line-dark: rgb(242 244 245 / 0.14);
  --line-light: rgb(8 9 11 / 0.14);

  /* Type */
  --font: "Saira", "Arial", sans-serif;
  --fs-sm: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.03rem + 0.45vw, 1.375rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --fs-h2: clamp(2rem, 1.25rem + 3.4vw, 4.25rem);
  --fs-display: clamp(2.6rem, 0.9rem + 8.2vw, 9.25rem);

  /* Spacing scale (4 to 128) */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --radius: 4px;          /* one corner radius: crisp, like trim lines */
  /* No shadow style: surfaces are told apart by color and by light streaks, not drop shadows. */
  --container: 1240px;
  --gutter: var(--s4);
  --header-h: 64px;
  --section-pad: var(--s8);

  /* Easing for CSS transitions, matched to GSAP "power3.out" */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Focus ring: orange on dark sections, black on light ones (light sections override it). */
  --focus: var(--orange);
}

@media (min-width: 640px) { :root { --gutter: var(--s5); } }
@media (min-width: 1024px) { :root { --gutter: var(--s6); --fs-body: 1.125rem; --header-h: 72px; --section-pad: var(--s9); } }

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--black);
  color: var(--chrome);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Sideways motion lives inside <main>. clip (not hidden) keeps position: sticky and pinning working,
   and it sits on <main> because a body value is handed to the viewport and phones then zoom out. */
main { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
input, select, textarea, button { font: inherit; color: inherit; }
ul[class], ol[class] { list-style: none; padding: 0; }

/* Lenis smooth scrolling (rules from the Lenis package). Lenis does the
   smoothing itself, so the browser's own smooth scrolling is switched off. */
html.lenis, html.lenis body { height: auto; scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Sections are reached from header links; keep their tops clear of the sticky header. */
[id] { scroll-margin-top: calc(var(--header-h) + var(--s4)); }

h1, h2, h3 {
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* Small label above section headings: wide, uppercase, with a short orange rule */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s4);
  font-size: var(--fs-sm);
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--orange);
  transform: skewX(-24deg);
}

/* Light sections (snow foam): dark text, black focus ring */
.on-foam {
  --focus: var(--black);
  background: var(--foam);
  color: var(--black);
}

/* Screen-reader-only text */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Buttons. 48px+ tall for thumbs. Orange is the call action everywhere; ghost is
   the quieter second choice on dark sections. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 48px;
  padding: var(--s3) var(--s5);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--lg { min-height: 56px; padding-inline: var(--s6); font-size: 1.0625rem; }
.btn--orange { background: var(--orange); color: var(--black); }
.btn--orange:hover { background: var(--chrome); }
.btn--ghost { border-color: var(--chrome); color: var(--chrome); }
.btn--ghost:hover { background: var(--chrome); color: var(--black); }

/* Star row next to the real Google rating */
.stars { display: inline-flex; gap: 2px; color: var(--orange); }
.stars svg { width: 18px; height: 18px; fill: currentColor; }

/* Light streak that slides across glossy surfaces (photos, the paint panel).
   The streak only exists once motion is running; scripts move it by setting --glint. */
.gloss { position: relative; overflow: hidden; }
.motion-ready .gloss::after {
  content: "";
  position: absolute;
  inset: -10% -40%;
  background: linear-gradient(100deg, transparent 38%, rgb(255 255 255 / 0.3) 48%, rgb(255 255 255 / 0.06) 53%, transparent 62%);
  transform: translateX(var(--glint, -110%));
  pointer-events: none;
}

/* Skip link: first thing a keyboard user reaches, above everything else on the page */
.skip-link {
  position: absolute;
  left: var(--s4);
  top: -100px;
  z-index: 300;
  padding: var(--s3) var(--s4);
  background: var(--orange);
  color: var(--black);
  font-weight: 700;
  border-radius: var(--radius);
}
.skip-link:focus { top: var(--s4); }

/* HomeSampleNotice: the "sample website" strip above the header. */
.sample-notice {
  position: relative;
  z-index: 60; /* stays above the transparent header that overlaps the hero */
  background: var(--coat);
  color: var(--chrome);
  font-size: var(--fs-sm);
  line-height: 1.4;
  text-align: center;
  border-bottom: 1px solid var(--line-dark);
}
.sample-notice p { padding-block: var(--s2); }
.sample-notice a { font-weight: 700; }

/* HomeHeader: sticky bar with the name, section links and the call button. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  border-bottom: 1px solid var(--line-dark);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}
/* Over the hero photo: no fill, so the photo runs to the top of the screen. */
.site-header.is-over-hero {
  background: transparent;
  border-bottom-color: transparent;
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: var(--s4);
  min-height: var(--header-h);
}

.brand {
  display: flex;
  flex-direction: column;
  margin-right: auto;
  line-height: 1;
  text-decoration: none;
}
.brand__name {
  color: var(--orange);
  font-size: 1.375rem;
  font-style: italic;
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.brand__sub {
  margin-top: 3px;
  color: var(--chrome);
  font-size: 0.6875rem;
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-nav { display: none; }
.site-nav__list { display: flex; gap: var(--s5); }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-stretch: 112%;
  text-decoration: none;
}
.site-nav a:hover { color: var(--orange); }

.site-header__call { min-height: 44px; padding-inline: var(--s4); }
.site-header__call-full { display: none; }

@media (min-width: 560px) {
  .site-header__call-short { display: none; }
  .site-header__call-full { display: inline; }
}
@media (min-width: 1024px) {
  .brand__name { font-size: 1.625rem; }
  .site-nav { display: block; }
  .site-header__call { min-height: 48px; padding-inline: var(--s5); }
}

/*
  HomeHero: full-screen photo with the headline, call button and rating.
  The photo sits under the transparent header (pulled up by the header's height).
  Layers inside .hero__media, bottom to top: photo, fogged copy (opening effect
  only), shade for text contrast, light streak, wiper blade. The text sits above
  all of them, so the blade passes behind it.
*/
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 92vh;
  min-height: 92svh;
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + var(--s9));
  padding-bottom: var(--s6);
  overflow: hidden;
  background: var(--black);
  color: var(--chrome);
}

.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media picture { display: contents; }
.hero__img,
.hero__fog img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 30%; /* tall crop on phones: keep the car's nose and the foam cannon in frame */
}

/* Fogged glass: only while the opening effect runs. The mask is a cone that opens
   from the bottom centre as --sweep goes from 0 to 180 degrees (HomeHero.js),
   in step with the wiper blade. */
.hero__fog { display: none; }
.motion .hero__fog {
  display: block;
  position: absolute;
  inset: 0;
  background: var(--coat); /* shows for a moment if the fog image is still loading */
  -webkit-mask-image: conic-gradient(from -90deg at 50% 100%, transparent var(--sweep, 0deg), #000 var(--sweep, 0deg));
  mask-image: conic-gradient(from -90deg at 50% 100%, transparent var(--sweep, 0deg), #000 var(--sweep, 0deg));
}

/* Phones: the text covers the lower two thirds and the foam behind it is nearly
   white, so the shade turns dark early (measured: the small kicker line needs it
   to stay above 4.5:1). A lighter veil at the top keeps the header readable. */
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgb(8 9 11 / 0.55) 0%,
    rgb(8 9 11 / 0) 15%,
    rgb(8 9 11 / 0.3) 25%,
    rgb(8 9 11 / 0.8) 40%,
    rgb(8 9 11 / 0.94) 58%,
    rgb(8 9 11 / 0.97) 100%);
}

.hero__streak { position: absolute; inset: 0; }

/* Wiper blade: pivots on the bottom centre. Its length (--blade-len) is set by
   HomeHero.js so the tip always reaches the top corners. */
.hero__blade { display: none; }
.motion .hero__blade {
  display: block;
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 10px;
  height: var(--blade-len, 160vh);
  margin-left: -5px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(90deg, var(--black) 0 58%, var(--steel) 58% 70%, var(--black) 70%);
  transform-origin: 50% 100%;
  transform: rotate(-90deg);
}

.hero__content {
  position: relative;
  display: grid;
  gap: var(--s5);
  justify-items: start;
}
/* Hidden until HomeHero.js has set the starting positions, so the text never
   flashes in and out. If the scripts never start, head.js removes "motion"
   after 3 seconds and the text shows. */
.motion .hero__content { visibility: hidden; }
.hero__title { display: grid; gap: var(--s4); font-weight: inherit; }
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  font-size: var(--fs-sm);
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}
.hero__kicker::before {
  content: "";
  flex: none;
  width: 28px;
  height: 3px;
  background: var(--orange);
  transform: skewX(-24deg);
}
.hero__big {
  display: block;
  font-size: var(--hero-size, var(--fs-display));
  font-style: italic;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero__line { display: block; }
.hero__line--accent { color: var(--orange); }

.hero__lead { max-width: 36ch; font-size: var(--fs-lead); line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s4);
  font-size: 0.9375rem;
  font-weight: 600;
}
.hero__rating { display: inline-flex; align-items: center; gap: var(--s2); }
.hero__score {
  min-width: 2.1ch;
  font-size: 1.5rem;
  font-weight: 800;
  font-stretch: 112%;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.hero__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--steel); }

/* Phones: the rating and the call button come straight after the headline, so
   both are on the first screen even on a 320 x 568 phone; the description
   follows them. (Reading order for screen readers stays as in the HTML.) */
@media (max-width: 639px) {
  .hero { padding-top: calc(var(--header-h) + var(--s6)); }
  .hero__proof { order: 1; }
  .hero__actions { order: 2; }
  .hero__lead { order: 3; }
}
@media (max-width: 379px) {
  .hero { --hero-size: 2.375rem; }
  .hero__actions .btn { width: 100%; }
}

@media (min-width: 960px) {
  .hero__img,
  .hero__fog img { object-position: 60% 50%; }
  /* Wide screens: the text sits on the left, so the shade runs from the left edge. */
  .hero__shade {
    background:
      linear-gradient(90deg, rgb(8 9 11 / 0.92) 0%, rgb(8 9 11 / 0.7) 34%, rgb(8 9 11 / 0.1) 62%, rgb(8 9 11 / 0) 75%),
      linear-gradient(180deg, rgb(8 9 11 / 0.55) 0%, rgb(8 9 11 / 0) 22%, rgb(8 9 11 / 0) 62%, rgb(8 9 11 / 0.75) 100%);
  }
  .hero { min-height: 100vh; min-height: 100svh; padding-bottom: var(--s8); }
  .hero__content { max-width: calc(var(--container) + 2 * var(--gutter)); }
  .hero__title { max-width: 62%; }
  .hero__big { --hero-size: clamp(4rem, 1rem + 5vw, 7rem); }
}

/*
  HomePackages: the four packages as checklists.
  Phones: the four lists stack. Desktop (1024px+): each package is a row with
  its name on the left and its steps on the right. With motion on, HomePackages.js
  adds "is-pinned": the packages then sit on top of each other in one panel and
  scrolling wipes from one to the next behind a squeegee blade.
*/
.packages {
  padding-block: var(--section-pad);
  background: var(--black);
  color: var(--chrome);
}
.packages__top { display: grid; gap: var(--s5); margin-bottom: var(--s7); }
.packages__top h2 { max-width: 18ch; }
.packages__sub { margin-top: var(--s4); color: var(--steel); font-size: var(--fs-lead); }
.packages__rail { display: none; }

.packages__deck { position: relative; display: grid; gap: var(--s8); }
.packages__blade { display: none; }

.pkg {
  display: grid;
  gap: var(--s5);
  align-content: start;
  padding-top: var(--s6);
  border-top: 1px solid var(--line-dark);
  background: var(--black);
}
.pkg__head { display: grid; gap: var(--s2); align-content: start; }
.pkg__index {
  color: var(--orange);
  font-size: var(--fs-sm);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: 0.1em;
}
.pkg__name {
  font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3.25rem);
  font-style: italic;
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}
.pkg__brand {
  display: block;
  margin-bottom: 0.25em;
  color: var(--steel);
  font-size: 0.42em;
  letter-spacing: 0.08em;
}
.pkg__note { max-width: 30ch; color: var(--steel); }

.pkg__list { display: grid; align-content: start; }
.pkg__row {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 44px;
  padding-block: var(--s2);
  border-bottom: 1px solid var(--line-dark);
  line-height: 1.3;
}
.pkg__icon {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.packages__more { margin-top: var(--s7); }
.packages__more a {
  color: var(--orange);
  font-weight: 700;
  font-stretch: 112%;
}

/* Desktop: name on the left, steps on the right */
@media (min-width: 1024px) {
  .packages__top { grid-template-columns: 1fr auto; align-items: end; }
  .pkg { grid-template-columns: 5fr 7fr; gap: var(--s8); }
}

/* Pinned version (set by HomePackages.js only on desktop with motion on).
   Everything in the stage must fit one screen down to 1024 x 680 (measured):
   the heading and rows scale with the screen height. */
.packages.is-pinned { padding-block: 0 var(--section-pad); }
.packages.is-pinned .packages__stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding-top: calc(var(--header-h) + var(--s5));
  padding-bottom: var(--s5);
}
.packages.is-pinned .packages__top { margin-bottom: var(--s4); }
.packages.is-pinned .packages__top h2 { max-width: 22ch; font-size: clamp(1.875rem, 0.5rem + 3.2vh, 3rem); }
.packages.is-pinned .packages__sub { margin-top: var(--s2); font-size: 1.0625rem; }
.packages.is-pinned .packages__rail {
  display: flex;
  gap: var(--s4);
  color: var(--steel);
  font-size: var(--fs-sm);
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.packages__rail li { display: grid; gap: var(--s2); min-width: 88px; }
.packages__rail-bar { position: relative; display: block; height: 3px; overflow: hidden; background: var(--line-dark); }
.packages__rail-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--orange);
  transform: scaleX(var(--fill, 0));
  transform-origin: left center;
}
.packages.is-pinned .packages__deck { gap: 0; }
/* All four in one grid cell. Each keeps a solid background, so the wipe's
   clip-path never shows two lists at once. */
.packages.is-pinned .pkg { grid-area: 1 / 1; grid-template-columns: 4fr 8fr; padding-top: var(--s4); }
.packages.is-pinned .pkg__row { min-height: clamp(30px, 4.3vh, 46px); padding-block: 2px; }
.packages.is-pinned .packages__more { margin-top: var(--s6); }

/* The squeegee: a rubber blade that crosses the panel during each wipe */
.packages.is-pinned .packages__blade {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--gutter); /* the panels start after the deck's side padding */
  z-index: 2;
  width: 10px;
  margin-left: -5px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--black) 0 30%, var(--steel) 30% 42%, var(--orange) 42% 58%, var(--black) 58%);
  visibility: hidden;
}
/* The wet sheen just behind the blade, on the freshly wiped side */
.packages.is-pinned .packages__blade::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  width: 160px;
  background: linear-gradient(90deg, transparent, rgb(242 244 245 / 0.08));
  pointer-events: none;
}

/*
  HomeInterior: the "Interiorologist" word, the interior work, one review.
  Light section (snow foam). The word is sized with container units so it
  always spans the column without overflowing it.
*/
.interior { padding-block: var(--section-pad); }

.interior__wordbox { position: relative; container-type: inline-size; }
.interior__word {
  font-size: 12.6cqi;
  font-style: italic;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.interior__dust { position: absolute; inset: 0; pointer-events: none; }
.interior__speck {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--d);
  height: var(--d);
  border-radius: 50%;
  background: var(--graphite);
}

.interior__grid {
  display: grid;
  gap: var(--s7);
  margin-top: var(--s6);
}
.interior__def { max-width: 44ch; font-size: var(--fs-lead); }
.interior__say { margin-right: var(--s2); font-weight: 800; font-stretch: 112%; }
.interior__pos { margin-right: var(--s2); color: var(--graphite); font-style: italic; font-weight: 700; }

.interior__list { margin-top: var(--s5); border-top: 1px solid var(--line-light); }
.interior__list li {
  display: flex;
  gap: var(--s3);
  padding-block: var(--s3);
  border-bottom: 1px solid var(--line-light);
}
.interior__list li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 3px;
  margin-top: 0.75em;
  background: var(--orange);
  transform: skewX(-24deg);
}

.interior__quote {
  align-self: start;
  padding-top: var(--s5);
  border-top: 3px solid var(--black);
}
.interior__quote p {
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.5;
}
.interior__quote figcaption {
  margin-top: var(--s4);
  color: var(--graphite);
  font-weight: 700;
  font-stretch: 112%;
}

@media (min-width: 1024px) {
  .interior__grid { grid-template-columns: 6fr 5fr; gap: var(--s9); }
  .interior__quote { margin-top: var(--s2); }
}

/*
  HomeProtect: copy on the left, a black "paint" panel with water beads on the right
  (below the copy on phones). The beads are spans made by HomeProtect.js; each one
  is drawn with gradients: a bright highlight top-left, a soft glow bottom-right
  and a darker rim, which reads as a drop of water sitting on gloss paint.
*/
.protect {
  padding-block: var(--section-pad);
  background: var(--black);
  color: var(--chrome);
}
.protect__grid { display: grid; gap: var(--s7); align-items: center; }
.protect__copy h2 { max-width: 14ch; }
.protect__items { display: grid; gap: var(--s5); margin-top: var(--s6); }
.protect__item {
  padding-top: var(--s4);
  border-top: 1px solid var(--line-dark);
}
.protect__item h3 { color: var(--orange); }
.protect__item p { max-width: 46ch; margin-top: var(--s2); color: var(--steel); }
.protect__note { max-width: 46ch; margin-top: var(--s6); font-weight: 600; }

/* The panel is painted in their brand orange: a freshly waxed panel, lit from
   above (sky reflection at the top, a softbox streak across, shade at the foot).
   Only palette colors are used; the light and shade are white and black at low strength. */
.protect__panel {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background:
    radial-gradient(140% 55% at 50% -10%, rgb(242 244 245 / 0.42), transparent 62%),
    linear-gradient(104deg, transparent 18%, rgb(242 244 245 / 0.16) 25%, rgb(242 244 245 / 0.16) 31%, transparent 38%),
    radial-gradient(100% 45% at 70% 112%, rgb(8 9 11 / 0.5), transparent 72%),
    linear-gradient(170deg, rgb(242 244 245 / 0.08) 0%, transparent 40%, rgb(8 9 11 / 0.3) 100%),
    var(--orange);
}
.protect__beads { position: absolute; inset: 0; }

/* A drop of water on paint: a bright highlight top-left, light focused through
   the drop at the bottom-right, a darker refracted rim, and a soft shadow. */
.bead {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--d);
  height: calc(var(--d) * var(--r));
  translate: -50% -50%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 33% 28%, rgb(242 244 245 / 0.95) 0 7%, rgb(242 244 245 / 0.35) 14%, transparent 32%),
    radial-gradient(circle at 62% 76%, rgb(242 244 245 / 0.5) 0 9%, transparent 44%),
    radial-gradient(circle at 50% 46%, rgb(242 244 245 / 0.06) 48%, rgb(8 9 11 / 0.3) 100%);
  box-shadow: 1px 2px 3px rgb(8 9 11 / 0.3);
}

@media (min-width: 1024px) {
  .protect__grid { grid-template-columns: 5fr 6fr; gap: var(--s9); }
  .protect__panel { aspect-ratio: 5 / 6; max-height: 78vh; }
}

/*
  HomeWork: two rows of photos at a fixed height (each photo keeps its shape).
  Default (phones, tablets, reduced motion): each row is a sideways-swipe strip
  with snap points. Desktop with motion: HomeWork.js adds "is-drifting" and the
  rows become free strips moved by the page scroll; <main> and this section clip
  them, so the page itself never scrolls sideways.
*/
.work {
  --row-h: 240px;
  padding-block: var(--section-pad);
  overflow-x: clip;
}
.work__head { margin-bottom: var(--s7); }
.work__head h2 { max-width: 16ch; }
.work__sub { margin-top: var(--s4); color: var(--graphite); }

.work__rows { display: grid; gap: var(--s5); }
.work__scroller {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.work__row {
  display: flex;
  gap: var(--s4);
  width: max-content;
  padding-inline: var(--gutter);
  padding-bottom: var(--s4); /* keeps the row's scrollbar clear of the captions */
}
.work__item { flex: none; scroll-snap-align: start; }
.work__frame { height: var(--row-h); border-radius: var(--radius); background: var(--coat); }
.work__frame img {
  width: auto;
  max-width: none;
  height: 100%;
  object-fit: cover;
}
.work__item figcaption {
  margin-top: var(--s2);
  color: var(--graphite);
  font-size: var(--fs-sm);
  font-weight: 700;
  font-stretch: 112%;
}

/* Before a photo is "polished" it is a little dull; HomeWork.js adds is-polished. */
.motion-ready .work__frame img { filter: saturate(0.5) brightness(0.86); transition: filter 1.4s var(--ease-out); }
.motion-ready .work__frame.is-polished img { filter: none; }

@media (min-width: 640px) { .work { --row-h: 300px; } .work__row { gap: var(--s5); } }
@media (min-width: 1024px) { .work { --row-h: clamp(260px, 32vh, 380px); } }

.work.is-drifting .work__scroller { overflow: visible; scroll-snap-type: none; }

/* HomeBigRigs: a compact dark band with three services in columns. */
.rigs {
  padding-block: var(--s8);
  background: var(--coat);
  color: var(--chrome);
}
.rigs__grid { display: grid; gap: var(--s6); }
.rigs__head h2 { font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3.25rem); }
.rigs__list { display: grid; gap: var(--s5); }
.rigs__item { padding-top: var(--s4); border-top: 2px solid var(--orange); }
.rigs__item h3 { font-style: italic; font-weight: 900; text-transform: uppercase; }
.rigs__item p { margin-top: var(--s2); color: var(--steel); }

@media (min-width: 768px) {
  .rigs__list { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .rigs__grid { grid-template-columns: 4fr 8fr; align-items: end; gap: var(--s8); }
}

/*
  HomeReviews: big score on the left, two quotes on the right (stacked on phones).
  Quotes stay upright: only the heavy weights of Saira's italic are loaded.
*/
.reviews { padding-block: var(--section-pad); }
.reviews__grid { display: grid; gap: var(--s7); }

.reviews__title { display: grid; gap: var(--s2); font-weight: inherit; }
.reviews__num {
  font-size: clamp(5rem, 3rem + 9vw, 10rem);
  font-style: italic;
  font-weight: 900;
  font-stretch: 125%;
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.reviews__of { font-size: var(--fs-lead); font-weight: 700; font-stretch: 112%; letter-spacing: 0; }

.reviews__stars { position: relative; display: inline-block; margin-top: var(--s4); }
.reviews__stars-row { display: flex; gap: 4px; }
.reviews__stars-row svg { width: 30px; height: 30px; flex: none; }
.reviews__stars-base svg { fill: var(--line-light); }
.reviews__stars-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill-w, 98%); /* 4.9 of 5 */
  overflow: hidden;
}
.reviews__stars-fill svg { fill: var(--orange); }

.reviews__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: var(--s4);
  font-weight: 700;
  font-stretch: 112%;
  text-decoration: underline;
}

.reviews__list { display: grid; gap: var(--s7); }
.review { padding-top: var(--s5); border-top: 3px solid var(--black); }
.review p:first-child {
  max-width: 52ch;
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  font-weight: 500;
  line-height: 1.4;
}
.review__by { margin-top: var(--s4); color: var(--graphite); font-weight: 700; font-stretch: 112%; }

@media (min-width: 1024px) {
  .reviews__grid { grid-template-columns: 4fr 7fr; gap: var(--s9); align-items: start; }
}

/*
  HomeContact: the closing call to action on piano black.
  The phone number is the biggest thing in the section and is itself a call link.
*/
.contact {
  padding-block: var(--section-pad);
  background: var(--black);
  color: var(--chrome);
}
.contact__grid { display: grid; gap: var(--s8); }
/* Container units size the phone number to the column, so it never overflows. */
.contact__main { container-type: inline-size; }
.contact__main h2 { max-width: 16ch; }
.contact__lead { max-width: 44ch; margin-top: var(--s5); color: var(--steel); font-size: var(--fs-lead); }

.contact__phone {
  display: inline-block;
  margin-top: var(--s6);
  color: var(--orange);
  font-size: min(10.4cqi, 6.25rem);
  font-style: italic;
  font-weight: 900;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}
.contact__phone:hover { color: var(--chrome); }
.contact__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }

.contact__facts { display: grid; gap: var(--s5); align-content: start; }
.contact__facts > div { padding-top: var(--s4); border-top: 1px solid var(--line-dark); }
.contact__facts dt {
  color: var(--steel);
  font-size: var(--fs-sm);
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact__facts dd { margin-top: var(--s1); font-size: 1.125rem; font-weight: 600; overflow-wrap: anywhere; }
.contact__facts a { text-decoration: underline; }

@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: 7fr 4fr; gap: var(--s9); align-items: end; }
}

/* HomeFooter: the name across the full width, tagline, details and the sample notice. */
.site-footer {
  padding-block: var(--s8) var(--s6);
  background: var(--coat);
  color: var(--chrome);
  border-top: 1px solid var(--line-dark);
}
.site-footer__inner { container-type: inline-size; }
.site-footer__mark {
  color: var(--orange);
  font-size: 14.2cqi; /* measured: the word fills about 97% of the column */
  font-style: italic;
  font-weight: 900;
  font-stretch: 125%;
  line-height: 0.85;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-footer__tag {
  margin-top: var(--s4);
  font-size: var(--fs-h3);
  font-weight: 800;
  font-stretch: 125%;
}
.site-footer__meta {
  display: grid;
  gap: var(--s2);
  margin-top: var(--s7);
  padding-top: var(--s4);
  border-top: 1px solid var(--line-dark);
  color: var(--steel);
  font-size: var(--fs-sm);
}
.site-footer__meta a { color: var(--chrome); font-weight: 700; }
