/* Solace Auto Detailing: white, black and a thin red line. */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@view-transition { navigation: auto; }

:root {
  --white: #fff;
  --soft: #f4f4f4;
  --black: #000;
  --text-2: #4f4f4f;   /* secondary text on white */
  --text-2-dark: #bdbdbd; /* secondary text on black */
  --red: #c8102e;
  --line: rgb(0 0 0 / 0.16);
  --line-dark: rgb(255 255 255 / 0.24);

  --gutter: clamp(16px, 4.4vw, 72px);
  --header-h: 76px;
  --bar-h: 0px;

  --step-0: clamp(1.0625rem, 1.03rem + 0.16vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.125rem);
  --step-3: clamp(2.125rem, 1.6rem + 2.6vw, 3.75rem);
  --step-4: clamp(2.625rem, 1.5rem + 5vw, 5.75rem);

  --arrive: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scroll-padding-bottom: calc(var(--bar-h) + 16px);
  background: var(--white);
}

body {
  margin: 0;
  padding-bottom: var(--bar-h);
  background: var(--white);
  color: var(--black);
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; }
img { max-width: 100%; height: auto; }
figure, h1, h2, h3, p, ul, ol, dl, dd, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }

h1, h2 { font-weight: 400; letter-spacing: -0.012em; text-wrap: balance; }
h1 { font-size: var(--step-4); line-height: 1.03; }
h2 { font-size: var(--step-3); line-height: 1.06; }
h3 { font-size: var(--step-2); font-weight: 400; line-height: 1.15; }

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

.wrap { width: min(100%, 1480px); margin-inline: auto; padding-inline: var(--gutter); }
.lead { max-width: 40ch; font-size: var(--step-1); line-height: 1.35; color: var(--text-2); }
.band-black .lead { color: var(--text-2-dark); }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: fixed;
  z-index: 60;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  background: var(--black);
  color: var(--white);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Red rule: the one recurring accent. */
h1::before, .has-rule::before {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin-bottom: clamp(16px, 2vw, 24px);
  background: var(--red);
  transform-origin: left;
}

/* Fill in before launch: see CONTACT in scripts/build.mjs. */
.ph { border-bottom: 1px dashed var(--red); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 30px;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  font: inherit;
  font-weight: 500;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.btn:hover { background: var(--red); border-color: var(--red); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: progress; }
.btn-small { min-height: 44px; padding: 8px 20px; font-size: 1rem; }
.btn-outline { background: transparent; color: var(--black); }
.btn-outline:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.btn-light { background: var(--white); border-color: var(--white); color: var(--black); }
.btn-light:hover { background: var(--red); border-color: var(--red); color: var(--white); }
/* Book now: the red button, so it stands out beside the quote buttons. */
.btn.btn-book, .home .site-header .btn.btn-book, .home .site-header.is-solid .btn.btn-book { background: var(--red); border-color: var(--red); color: var(--white); }
.btn.btn-book:hover, .home .site-header .btn.btn-book:hover, .home .site-header.is-solid .btn.btn-book:hover { background: #9e0c24; border-color: #9e0c24; color: var(--white); }
.quote-book { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; }
.quote-book p { font-weight: 500; }
.quote-book-top { margin: 0 0 28px; }
.cta-actions { margin-top: 0; }
.band-black :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 0.18s ease;
}
.link:hover { text-decoration-color: var(--red); }

/* Video clips: the image shows first and stays underneath. */
.clip { position: relative; overflow: hidden; background: #e6e6e6; }
.clip img, .clip video { display: block; width: 100%; height: 100%; object-fit: cover; }
.clip video { position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s ease; }
.clip video.is-playing { opacity: 1; }

/* Header */
.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--header-h);
  padding-inline: var(--gutter);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  view-transition-name: site-header;
}
.site-header::after {
  /* Scroll position, drawn as a thin pinstripe. */
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
.brand { display: block; flex: none; margin-right: auto; }
.brand img { width: 172px; height: auto; }

.site-nav { display: flex; flex-wrap: wrap; gap: 0 clamp(12px, 1.5vw, 24px); margin-right: 12px; }
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 8px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--arrive);
}
.site-nav a[aria-current="page"]::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { font-weight: 500; }

.motion-toggle, .menu-toggle {
  flex: none;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.motion-toggle { display: grid; place-items: center; }
.motion-toggle[hidden], .menu-toggle[hidden] { display: none; }
.motion-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.motion-toggle .icon-play { display: none; }
.motion-toggle[aria-pressed="true"] .icon-play { display: block; }
.motion-toggle[aria-pressed="true"] .icon-pause { display: none; }
.menu-toggle { display: none; padding-inline: 10px; font-weight: 500; }

/* Bottom action bar on phones and tablets */
.action-bar { display: none; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1179px) {
  .js .menu-toggle { display: inline-flex; align-items: center; }
  .js .site-nav {
    position: absolute;
    z-index: 2;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    margin: 0;
    padding: 8px var(--gutter) 20px;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  }
  .js .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.22s ease, transform 0.22s var(--arrive);
  }
  .js .site-nav a { min-height: 52px; font-size: var(--step-1); border-bottom: 1px solid var(--line); }
  .js .site-nav a::after { display: none; }
  .js .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); padding-left: 12px; }
  html:not(.js) .site-header { height: auto; flex-wrap: wrap; padding-block: 12px; }
}

@media (max-width: 859px) {
  :root { --bar-h: calc(60px + env(safe-area-inset-bottom)); --header-h: 68px; }
  .header-cta { display: none; }
  .brand img { width: 150px; }
  .action-bar {
    position: fixed;
    z-index: 30;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1.1fr 1.2fr;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--black);
    view-transition-name: action-bar;
  }
  .action-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 60px;
    border-right: 1px solid var(--line-dark);
    color: var(--white);
    font-weight: 500;
    text-decoration: none;
    touch-action: manipulation;
    transition: background-color 0.15s ease;
  }
  .action-bar a:active { background: #2a2a2a; }
  .action-bar .action-primary { border-right: 0; background: var(--white); color: var(--black); }
  .action-bar .action-book { border-right: 0; background: var(--red); color: var(--white); }
  .action-bar .action-book:active { background: #9e0c24; }
  .action-bar .action-book:focus-visible { outline-color: var(--white); }
  .action-bar :focus-visible { outline-color: var(--red); outline-offset: -4px; }
}

/* Page heroes */
.page-hero { display: grid; }
.page-hero-copy { padding: clamp(36px, 7vw, 64px) var(--gutter) clamp(28px, 5vw, 44px); }
.page-hero-copy .lead { margin-top: clamp(16px, 2vw, 24px); max-width: 44ch; }
.page-hero-copy .lead + .lead { margin-top: 16px; }
.hero-clip { aspect-ratio: 4 / 5; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(22px, 3vw, 32px); }
.jump-list { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 18px; }
.jump-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.jump-list a:hover { text-decoration-color: var(--red); }

.page-head { padding: clamp(36px, 7vw, 88px) 0 clamp(8px, 2vw, 16px); }
.page-head .lead { margin-top: 16px; }

/* Bands */
.band { padding-block: clamp(56px, 8vw, 120px); }
.band-tight { padding-block-start: clamp(24px, 4vw, 48px); }
.band-black { background: var(--black); color: var(--white); }
.band-soft { background: var(--soft); }
.band-rule { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(28px, 4vw, 56px); }
.more { margin-top: 18px; }

.split { display: grid; gap: clamp(28px, 5vw, 48px); }
.split-media { aspect-ratio: 4 / 5; }

/* Lists */
.index-list { margin-top: clamp(20px, 3vw, 32px); border-top: 1px solid var(--line); }
.index-list li { padding-block: clamp(18px, 2.2vw, 26px); border-bottom: 1px solid var(--line); }
.index-list p { max-width: 50ch; margin-top: 8px; color: var(--text-2); }
.index-list a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; background: linear-gradient(var(--red), var(--red)) left bottom / 0 2px no-repeat; transition: background-size 0.3s var(--arrive); }
.index-list a:hover, .index-list a:focus-visible { background-size: 100% 2px; }
.band-black .index-list, .band-black .index-list li { border-color: var(--line-dark); }
.band-black .index-list p { color: var(--text-2-dark); }

.steps { margin-top: clamp(20px, 3vw, 32px); counter-reset: step; }
.steps li {
  position: relative;
  padding-block: clamp(18px, 2.2vw, 26px);
  padding-left: 56px;
  border-top: 1px solid var(--line-dark);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: clamp(16px, 2vw, 24px);
  left: 0;
  font-size: var(--step-2);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-2-dark);
}
.steps p { max-width: 44ch; margin-top: 6px; color: var(--text-2-dark); }

.ticks { margin-top: 16px; }
.ticks li { position: relative; padding: 6px 0 6px 22px; }
.ticks li::before {
  content: "";
  position: absolute;
  top: 1.05em;
  left: 0;
  width: 12px;
  height: 1.5px;
  background: var(--red);
}
.list-title { margin-top: clamp(22px, 3vw, 32px); font-size: var(--step-1); font-weight: 500; }
.has-rule + .list-title { margin-top: clamp(20px, 3vw, 28px); }
.note { max-width: 46ch; margin-top: 14px; color: var(--text-2); }

/* Services */
.services-list { padding-block-start: clamp(40px, 6vw, 80px); }
.service-row { display: grid; gap: 24px; scroll-margin-top: calc(var(--header-h) + 16px); }
.service-row + .service-row { margin-top: clamp(56px, 8vw, 112px); }
.service-media { aspect-ratio: 4 / 5; }
.service-copy .lead { margin-top: 14px; }
.service-copy .link { margin-top: 12px; }

/* Ceramic */
.facts { display: grid; gap: 28px; }
.facts h2 { font-size: var(--step-2); }
.facts h2::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-bottom: 14px;
  background: var(--red);
}
.facts p { max-width: 34ch; margin-top: 8px; color: var(--text-2-dark); }
.surfaces, .areas-short { display: grid; gap: clamp(24px, 4vw, 48px); }
.surfaces .lead, .areas-short .lead { margin-top: 16px; }
.area-names { display: grid; border-top: 1px solid var(--line); }
.area-names li {
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  font-size: var(--step-2);
  line-height: 1.2;
}
.pair { display: grid; gap: clamp(24px, 4vw, 40px); }
.pair .clip { aspect-ratio: 4 / 5; }
figcaption { max-width: 42ch; margin-top: 10px; color: var(--text-2); }

/* Reviews */
.review-grid { display: grid; gap: clamp(28px, 4vw, 48px); margin-top: clamp(24px, 4vw, 48px); }
.review { padding-top: 18px; border-top: 1px solid var(--black); }
.review p { max-width: 58ch; }
.review p + p { margin-top: 12px; }
.review footer { margin-top: 14px; font-weight: 500; }

/* Service areas */
.area-rows { margin-top: clamp(20px, 3vw, 32px); border-top: 1px solid var(--line); }
.area-rows li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px 20px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
}
.area-rows span:first-child { font-size: var(--step-1); line-height: 1.2; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px) clamp(12px, 2vw, 28px);
  margin-top: clamp(20px, 3vw, 36px);
}
.gallery .clip { aspect-ratio: 9 / 16; }

/* FAQs */
.faq-wrap { display: grid; gap: clamp(44px, 6vw, 80px); }
.faq-group h2 { margin-bottom: clamp(16px, 2.4vw, 28px); font-size: var(--step-2); }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary {
  position: relative;
  display: block;
  padding: 16px 44px 16px 0;
  font-size: var(--step-1);
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::before, summary::after {
  content: "";
  position: absolute;
  top: calc(16px + 0.6em);
  right: 8px;
  width: 16px;
  height: 1.5px;
  background: var(--black);
  transition: transform 0.25s var(--arrive), background-color 0.2s ease;
}
summary::after { transform: rotate(90deg); }
details[open] summary::before { background: var(--red); }
details[open] summary::after { background: var(--red); transform: rotate(0deg); }
.answer { max-width: 60ch; padding-bottom: 20px; color: var(--text-2); }
.answer a { color: var(--black); }

/* Quote */
.quote-grid { display: grid; gap: clamp(28px, 5vw, 56px); }
.quote-grid .lead { margin-top: 16px; }
.quote-alt { margin-top: 16px; }
.quote-alt a { font-weight: 500; text-underline-offset: 0.25em; }
.quote-alt a:hover { text-decoration-color: var(--red); }

.quote-form { display: grid; gap: 18px; align-content: start; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.field { display: grid; align-content: start; gap: 6px; min-width: 0; }
.field label { font-weight: 500; }
.req { font-weight: 400; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid #6b6b6b;
  border-radius: 0;
  background: var(--white);
  color: var(--black);
  font: inherit;
  font-size: max(16px, 1em); /* Stops iOS zooming on focus */
  transition: border-color 0.15s ease;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--black); }
.field textarea { resize: vertical; }
.field :focus-visible { outline-offset: 1px; border-color: var(--black); }
.field [aria-invalid="true"] { border: 2px solid var(--red); }
.field-help { font-size: 1rem; color: var(--text-2); }
.field-error { color: var(--red); font-size: 1rem; font-weight: 500; }
.field-error:empty { display: none; }
.field-error::before { content: "Error: "; }
.form-foot { display: grid; justify-items: stretch; gap: 14px; }
.form-status { max-width: 52ch; font-weight: 500; }
.form-status:empty { display: none; }

/* Call to action */
.cta-band .lead { margin-top: 14px; }
.cta-row { display: grid; gap: 24px; justify-items: start; }

/* Contact */
.contact-page { padding-block: clamp(36px, 7vw, 88px) clamp(56px, 8vw, 104px); }
.contact-grid { display: grid; gap: clamp(36px, 5vw, 64px); }
.contact-side .lead { margin-top: 18px; }
.details { display: grid; gap: 16px; margin-block: clamp(24px, 3vw, 36px); }
.details dt { color: var(--text-2); font-size: 1rem; }
.details dd { max-width: 40ch; font-weight: 500; }
.contact-form { padding: clamp(20px, 3.4vw, 44px); background: var(--soft); scroll-margin-top: calc(var(--header-h) + 16px); }
.contact-form h2 { margin-bottom: clamp(18px, 2.4vw, 28px); font-size: var(--step-2); }

/* Footer */
.site-footer { padding-block: clamp(48px, 6vw, 80px) 24px; background: var(--black); color: var(--text-2-dark); }
.footer-grid { display: grid; gap: 36px; }
.footer-logo { width: min(100%, 260px); margin-bottom: 18px; filter: invert(1); }
.site-footer h2 { margin-bottom: 10px; color: var(--white); font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.site-footer nav { display: grid; justify-items: start; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.site-footer nav a:hover { color: var(--white); }
.footer-list li { padding-block: 3px; }
.legal { margin-top: 40px; font-size: 1rem; }

/* Tablet */
@media (min-width: 620px) {
  .quote-form { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
  .form-foot { justify-items: start; }
  .pair { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .area-names { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .details { grid-template-columns: 1fr 1fr; }
}

/* Desktop */
@media (min-width: 960px) {
  .page-hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    min-height: min(calc(100vh - var(--header-h)), 780px);
  }
  .page-hero-home { min-height: calc(100vh - var(--header-h)); }
  .page-hero-copy { align-self: end; padding-block: 64px clamp(48px, 6vw, 88px); }
  .hero-clip { aspect-ratio: auto; height: 100%; min-height: 0; }
  .hero-clip img { position: absolute; inset: 0; }
  .page-hero .hero-clip { min-height: 520px; }

  .split { grid-template-columns: 5fr 7fr; align-items: start; gap: clamp(40px, 6vw, 96px); }
  .split-flip { grid-template-columns: 7fr 5fr; }
  .split-flip .split-media { order: 2; }
  .split-media { position: sticky; top: calc(var(--header-h) + 24px); aspect-ratio: 9 / 13; }

  .service-row { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; gap: 0; }
  .service-media { grid-column: 1 / span 5; aspect-ratio: 4 / 5; }
  .service-copy { grid-column: 7 / -1; }
  .service-row:nth-child(even) .service-media { grid-column: 8 / -1; grid-row: 1; }
  .service-row:nth-child(even) .service-copy { grid-column: 1 / span 6; grid-row: 1; }

  .section-head { grid-template-columns: 7fr 5fr; align-items: end; gap: 48px; }
  .surfaces, .areas-short { grid-template-columns: 5fr 7fr; }

  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery figure:nth-child(3n + 2) { margin-top: clamp(32px, 5vw, 80px); }

  .faq-wrap { max-width: 1000px; margin-inline: 0; }
  .quote-grid { grid-template-columns: 5fr 7fr; }
  .form-foot { grid-template-columns: auto 1fr; align-items: center; }
  .cta-row { grid-template-columns: 1fr auto; align-items: end; }
  .contact-grid { grid-template-columns: 5fr 6fr; align-items: start; }
  .contact-form { position: sticky; top: calc(var(--header-h) + 24px); }
  .review-grid:not(.review-grid-2) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; }
}

/* Motion. Everything above is the complete static page. */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.22s; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .site-nav a:hover::after { transform: scaleX(1); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  @keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes answer-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

  /* One entrance per page: the red rule draws, then the copy settles. */
  h1::before { animation: draw 0.7s var(--arrive) 0.05s both; }
  .page-hero-copy > *, .page-head .wrap > *, .contact-side > h1, .contact-side > .lead { animation: rise 0.65s var(--arrive) 0.08s both; }
  .page-hero-copy > :nth-child(2), .page-head .wrap > :nth-child(2), .contact-side > .lead { animation-delay: 0.16s; }
  .page-hero-copy > :nth-child(3) { animation-delay: 0.24s; }

  /* Section rules draw as they arrive. */
  .has-rule::before { transition: transform 0.8s var(--arrive); }
  .js .has-rule:not(.in)::before { transform: scaleX(0); }

  /* Footage settles as it comes into view. */
  .clip img, .clip video { transition: opacity 0.35s ease, transform 1.2s var(--arrive); }
  .js .clip:not(.in) img, .js .clip:not(.in) video { transform: scale(1.05); }

  details[open] .answer { animation: answer-in 0.28s var(--arrive); }

  @supports (animation-timeline: scroll()) {
    @keyframes progress { to { transform: scaleX(1); } }
    .site-header::after { animation: progress linear both; animation-timeline: scroll(root); }
  }
}

/* ───────── Redesign layer: display type, dark heroes and the home page ───────── */

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --display: "Barlow Condensed", "Arial Narrow", "Jost", sans-serif;
  --foam: #edeeee;
}

h1, h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1 { font-size: clamp(3.25rem, 1.9rem + 6.6vw, 8.5rem); line-height: 0.93; }
h2 { font-size: clamp(2.75rem, 1.7rem + 4.8vw, 6.5rem); line-height: 0.95; }
.facts h2, .faq-group h2, .contact-form h2 { font-size: clamp(1.875rem, 1.5rem + 1.6vw, 2.75rem); }
.site-footer h2 { font-family: inherit; text-transform: none; line-height: 1.3; }

.btn { font-size: 1.0625rem; }
.btn-ghost { background: rgb(0 0 0 / 0.28); border-color: var(--white); color: var(--white); }
.btn-ghost:hover { background: var(--white); border-color: var(--white); color: var(--black); }

/* Inside pages open dark, with the title against the footage. */
.page-hero { background: var(--black); color: var(--white); }
.page-hero .lead { color: #d4d4d4; }
.page-hero :focus-visible { outline-color: var(--white); }
.page-hero .jump-list a:hover { text-decoration-color: var(--white); }
.page-head { background: var(--black); color: var(--white); padding-bottom: clamp(28px, 4vw, 56px); }
.page-head .lead { color: #d4d4d4; }
.band-tight { padding-block-start: clamp(40px, 6vw, 72px); }

/* Quote */
.quote-feature {
  position: relative;
  display: grid;
  background: var(--foam);
  scroll-margin-top: var(--header-h);
}
.quote-photo { width: 100%; height: clamp(220px, 58vw, 420px); object-fit: cover; object-position: 50% 45%; }
.quote-feature .quote-grid { display: grid; gap: clamp(24px, 4vw, 44px); padding: clamp(36px, 6vw, 72px) var(--gutter) clamp(44px, 7vw, 88px); }
.quote-intro .lead { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.chips legend { margin-bottom: 8px; padding: 0; font-weight: 500; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 16px;
  border: 1px solid #6b6b6b;
  background: var(--white);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover span { border-color: var(--black); }
.chip input:checked + span { background: var(--black); border-color: var(--black); color: var(--white); box-shadow: inset 0 -3px 0 var(--red); }
.chip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }

/* Header over the home hero */
.home .site-header {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
  color: var(--white);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.home .site-header .brand img { filter: invert(1); transition: filter 0.25s ease; }
.home .site-header .btn { background: var(--white); border-color: var(--white); color: var(--black); }
.home .site-header .btn:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.home .site-header :focus-visible { outline-color: currentColor; }
.home .site-header.is-solid, .home .site-header.menu-open {
  background: var(--white);
  border-bottom-color: var(--line);
  color: var(--black);
}
.home .site-header.is-solid .brand img, .home .site-header.menu-open .brand img { filter: none; }
.home .site-header.is-solid .btn { background: var(--black); border-color: var(--black); color: var(--white); }
.home .site-header.is-solid .btn:hover { background: var(--red); border-color: var(--red); }
.home .site-header:not(.is-solid)::after { opacity: 0; }

/* Entry */
.intro { display: none; }
.js:not(.no-intro) .intro {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--black);
  pointer-events: none;
}
.intro-mono { width: min(46vw, 280px); fill: var(--white); overflow: visible; }

/* Foam hero */
.wipe-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: calc(100svh - var(--bar-h));
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.wipe-clean, .wipe-clean img, .wipe-foam {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.wipe-clean { z-index: -3; }
.wipe-clean img { object-fit: cover; object-position: 50% 50%; }
.wipe-foam { z-index: -2; transition: opacity 0.5s ease; }
.wipe-foam.is-done { opacity: 0; }
.hero-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgb(0 0 0 / 0.9), rgb(0 0 0 / 0.68) 26%, rgb(0 0 0 / 0.12) 56%, transparent 68%),
    linear-gradient(to bottom, rgb(0 0 0 / 0.56), transparent 18%);
}
.hero-content {
  position: relative;
  width: 100%;
  padding: calc(var(--header-h) + 48px) var(--gutter) clamp(20px, 3vw, 40px);
  pointer-events: none;
}
.hero-content a { pointer-events: auto; }
.wipe-hero h1 { max-width: 12ch; }
.wipe-hero h1::before { display: none; }
.hero-row { display: grid; gap: 18px; margin-top: clamp(14px, 2vw, 24px); }
.hero-lead { max-width: 40ch; font-size: var(--step-1); line-height: 1.3; }
.wipe-hero .actions { margin-top: 0; }
.wipe-ui {
  position: absolute;
  top: calc(var(--header-h) + 12px);
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
}
.wipe-ui[hidden] { display: none; }
.wipe-hint { font-weight: 500; text-shadow: 0 1px 10px rgb(0 0 0 / 0.75); }
.wipe-button {
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-shadow: 0 1px 10px rgb(0 0 0 / 0.75);
  cursor: pointer;
  touch-action: manipulation;
}
.wipe-button:focus-visible { outline-color: var(--white); }
.wipe-cursor {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  display: none;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: -48px;
  border: 1.5px solid var(--white);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 500;
  pointer-events: none;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .wipe-hero.is-wiping { cursor: none; }
  .wipe-hero.is-wiping .wipe-cursor.is-on { display: grid; }
}

/* Highlights */
.highlights { background: var(--black); color: var(--white); border-top: 1px solid var(--line-dark); }
.highlight-row { display: grid; grid-template-columns: 1fr 1fr; }
.highlight-row li {
  padding-block: clamp(16px, 2.4vw, 26px);
  padding-right: 12px;
  font-family: var(--display);
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2.25rem);
  font-weight: 500;
  line-height: 1.02;
  text-transform: uppercase;
}

/* Story */
.story { background: var(--white); }
.story-head { display: grid; gap: 16px; padding-block: clamp(56px, 8vw, 120px) clamp(32px, 5vw, 72px); }
.chapters { --ch: calc(100svh - var(--header-h) - var(--bar-h)); }
.chapter {
  position: sticky;
  top: var(--header-h);
  height: var(--ch);
  min-height: 480px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--black);
}
.chapter::before {
  /* How far through the five stages you are. */
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  height: 3px;
  width: calc(var(--i) * 20%);
  background: var(--red);
}
.chapter-media { position: absolute; z-index: -2; inset: 0; background: #222; }
.chapter::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.88), rgb(0 0 0 / 0.5) 34%, transparent 62%);
}
.chapter-copy { position: relative; width: 100%; padding: 20px var(--gutter) clamp(20px, 4vw, 36px); }
.mega {
  --room: calc(100vw - var(--gutter) * 2);
  display: block;
  font-family: var(--display);
  font-size: min(calc(var(--room) / (var(--chars) * 0.47)), 7rem, 22vh);
  font-weight: 500;
  line-height: 0.92;
  text-transform: uppercase;
}
.chapter-no {
  display: block;
  margin-bottom: 6px;
  font-family: "Jost", sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
}
.chapter-copy p { max-width: 44ch; margin-top: 8px; }

/* Service switcher */
.services-switch { padding-block: clamp(64px, 9vw, 136px); background: var(--white); }
.switch { display: grid; gap: clamp(20px, 3vw, 40px); margin-top: clamp(20px, 3vw, 40px); }
.switch-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.switch-tab {
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--black);
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.switch-tab[aria-selected="true"] { background: var(--black); border-color: var(--black); color: var(--white); box-shadow: inset 0 -3px 0 var(--red); }
.switch-panel { display: grid; gap: clamp(20px, 3vw, 40px); }
.switch-panel[hidden] { display: none; }
.switch-media { aspect-ratio: 4 / 5; }
.switch-copy .lead { max-width: 34ch; }
.switch-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 20px; }
html:not(.js) .switch-tabs, html:not(.js) .voice-tabs, html:not(.js) .coating-map [role="tablist"] { display: none; }
html:not(.js) [role="tabpanel"][hidden] { display: block; margin-top: 28px; }

/* Coating map */
.coating { padding-block: clamp(64px, 9vw, 136px); background: var(--black); color: var(--white); }
.coating .lead { margin-top: 18px; color: #d4d4d4; }
.coating-grid { display: grid; gap: clamp(24px, 4vw, 48px); }
.coating-map { position: relative; order: -1; }
.coating-map img { width: 100%; height: auto; }
.coating-detail { min-height: 104px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-dark); }
.coating-detail h3 { font-family: var(--display); font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 500; line-height: 1; text-transform: uppercase; }
.coating-detail p { max-width: 42ch; margin-top: 6px; color: #d4d4d4; }
.coating .link { margin-top: 8px; }
.coating .link:hover { text-decoration-color: var(--white); }
.hot {
  position: absolute;
  width: 48px;
  height: 48px;
  margin: -24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
}
.hot::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: rgb(0 0 0 / 0.42);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.hot::after {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: var(--white);
}
.hot:hover::before { transform: scale(1.15); }
.hot[aria-selected="true"]::before { background: var(--red); border-color: var(--white); transform: scale(1.2); }
.hot:focus-visible { outline: 2px solid var(--white); outline-offset: 0; }

/* Work strip */
.work { padding-block: clamp(64px, 9vw, 136px) clamp(48px, 7vw, 96px); overflow: clip; background: var(--white); }
.work-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.strip-controls { display: flex; gap: 8px; }
.strip-controls[hidden] { display: none; }
.strip-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--black);
  background: var(--white);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.strip-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; }
.strip-button:hover { background: var(--black); color: var(--white); }
.strip {
  display: flex;
  gap: clamp(10px, 1.4vw, 20px);
  margin-top: clamp(20px, 3vw, 36px);
  padding-inline: var(--gutter);
  padding-bottom: 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.strip::-webkit-scrollbar { display: none; }
.strip > li { flex: none; width: min(68vw, 400px); scroll-snap-align: start; }
.strip .clip { aspect-ratio: 9 / 16; max-height: 76vh; width: 100%; }
.strip-end { display: grid; }
.strip-more {
  display: grid;
  align-items: end;
  padding: 20px;
  background: var(--black);
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(2.25rem, 1.8rem + 2vw, 3.5rem);
  font-weight: 500;
  line-height: 0.95;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}
.strip-more:hover { background: var(--red); }

/* Reviews */
.voices { padding-block: clamp(64px, 9vw, 136px); background: var(--foam); }
.voices-grid { display: grid; gap: clamp(24px, 4vw, 56px); }
.voice-tabs { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: clamp(16px, 2.4vw, 28px); }
.voice-tab {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-2);
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: inset 0 -2px 0 transparent;
  transition: color 0.15s ease, box-shadow 0.15s ease;
}
.voice-tab:hover { color: var(--black); }
.voice-tab[aria-selected="true"] { color: var(--black); font-weight: 500; box-shadow: inset 0 -2px 0 var(--red); }
.voice-pull {
  font-family: var(--display);
  font-size: clamp(2.5rem, 1.5rem + 5vw, 6rem);
  font-weight: 500;
  line-height: 0.95;
  text-transform: uppercase;
}
.voice .review { margin-top: clamp(16px, 2.4vw, 28px); }
.voice[hidden] { display: none; }

/* Team */
.team { padding-block: clamp(64px, 9vw, 136px); background: var(--white); }
.team-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.team-a { grid-column: 1 / span 4; aspect-ratio: 4 / 5; }
.team-b { grid-column: 5 / span 2; align-self: end; aspect-ratio: 3 / 5; }
.team-c { display: none; }
.team-copy { grid-column: 1 / -1; margin-top: 14px; }
.team-copy .lead { margin-top: 14px; }
.team-copy .link { margin-top: 10px; }

/* Areas poster */
.area-poster { padding-block: clamp(56px, 8vw, 120px); background: var(--black); color: var(--white); }
.area-title { font-family: "Jost", sans-serif; font-size: var(--step-1); font-weight: 500; line-height: 1.3; text-transform: none; }
.area-words { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.2em; margin-block: 14px 22px; font-family: var(--display); font-size: clamp(2.75rem, 1.4rem + 6.4vw, 8rem); font-weight: 500; line-height: 1.02; text-transform: uppercase; }
.area-words li { display: inline-flex; align-items: center; }
.area-words li:not(:last-child)::after {
  /* Same slant as the cuts in the monogram. */
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.62em;
  margin-left: 0.2em;
  background: var(--red);
  transform: skewX(-24deg);
}
.area-words a { text-decoration: none; background: linear-gradient(var(--white), var(--white)) left 94% / 0 3px no-repeat; transition: background-size 0.3s var(--arrive); }
.area-words a:hover, .area-words a:focus-visible { background-size: 100% 3px; }
.area-poster .lead { color: #d4d4d4; }
.area-poster :focus-visible { outline-color: var(--white); }

/* Larger screens */
@media (min-width: 620px) {
  .highlight-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chips { grid-column: 1 / -1; }
}

@media (min-width: 760px) {
  .hero-row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; }
  .wipe-hero h1 { max-width: none; }
  .wipe-ui { top: auto; left: auto; right: var(--gutter); bottom: calc(clamp(20px, 3vw, 40px) + 64px); justify-content: flex-end; max-width: 240px; text-align: right; display: none; }
}

@media (min-width: 960px) {
  .wipe-ui, .wipe-ui[hidden] { display: none; }
  .wipe-ui:not([hidden]) {
    display: flex;
    top: calc(var(--header-h) + 16px);
    bottom: auto;
    left: var(--gutter);
    right: auto;
    max-width: none;
    justify-content: flex-start;
    text-align: left;
  }
  .story-head { grid-template-columns: 7fr 5fr; align-items: end; gap: 48px; }

  /* Three layouts for the stacked chapters. */
  .chapter { align-items: stretch; }
  .chapter::after { display: none; }
  .chapter-media { inset: 0 0 0 auto; width: 44%; }
  .chapter-copy {
    --copy: 56vw;
    width: 56%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-block: clamp(32px, 5vh, 56px);
  }
  .mega { --room: calc(56vw - var(--gutter) * 2); font-size: min(calc(var(--room) / (var(--chars) * 0.45)), 13rem, 32vh); }
  .chapter-copy p { max-width: 42ch; font-size: var(--step-1); line-height: 1.32; }
  .chapter-light { background: var(--white); color: var(--black); }
  .chapter-light .chapter-copy p { color: var(--text-2); }
  .chapter-flip { justify-content: flex-end; }
  .chapter-flip .chapter-media { inset: 0 auto 0 0; }
  .chapter-center .chapter-media { inset: 6vh auto 6vh 34%; width: 30%; }
  .chapter-center .chapter-copy { width: 100%; justify-content: space-between; flex-direction: column; }
  .chapter-center .mega { --room: calc(100vw - var(--gutter) * 2); font-size: min(calc(var(--room) / (var(--chars) * 0.45)), 19rem, 40vh); }
  .chapter-center .chapter-copy p { align-self: flex-end; max-width: 26ch; margin-top: auto; }
  .chapter-center .mega { position: relative; }

  .switch { grid-template-columns: 5fr 7fr; align-items: start; gap: clamp(32px, 5vw, 80px); }
  .switch-tabs { grid-template-columns: 1fr; gap: 0; position: sticky; top: calc(var(--header-h) + 24px); border-top: 1px solid var(--line); }
  .switch-tab {
    min-height: 0;
    padding: clamp(14px, 1.6vw, 22px) 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: none;
    color: #8a8a8a;
    font-size: clamp(2.25rem, 1.3rem + 2.8vw, 4.5rem);
    line-height: 0.95;
    box-shadow: none;
  }
  .switch-tab:hover { color: var(--black); }
  .switch-tab[aria-selected="true"] { background: none; color: var(--black); box-shadow: inset 0 -3px 0 var(--red); }
  .switch-panel { grid-template-columns: 5fr 4fr; align-items: end; }

  .coating-grid { grid-template-columns: 4fr 7fr; align-items: center; }
  .coating-map { order: 0; }

  .voices-grid { grid-template-columns: 4fr 8fr; }

  .team-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .team-a { grid-column: 1 / span 5; grid-row: 1 / span 2; }
  .team-b { grid-column: 6 / span 3; grid-row: 2; aspect-ratio: 3 / 4; }
  .team-c { display: block; grid-column: 9 / span 4; grid-row: 2; aspect-ratio: 3 / 4; }
  .team-copy { grid-column: 6 / -1; grid-row: 1; align-self: start; margin: 0 0 clamp(24px, 4vw, 56px) clamp(0px, 2vw, 32px); }

  .quote-feature { grid-template-columns: 5fr 7fr; align-items: stretch; }
  .quote-photo { height: 100%; min-height: 100%; position: absolute; inset: 0 auto 0 0; width: 41.66%; }
  .quote-feature .quote-grid { grid-column: 2; grid-template-columns: 1fr; padding: clamp(48px, 6vw, 96px) var(--gutter); }
  .strip > li { width: min(26vw, 420px); }
}

@media (max-height: 560px) {
  .wipe-hero h1 { font-size: clamp(2.5rem, 7vw, 4rem); }
  .hero-lead { font-size: 1.0625rem; }
  .chapter { min-height: 360px; }
  .chapter-copy p { font-size: 1rem; }
  .mega { font-size: min(calc(var(--room) / (var(--chars) * 0.47)), 22vh); }
}

/* Motion */
.wipe-foam, .hero-shade { will-change: auto; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes intro-lift { to { transform: translateY(-100%); visibility: hidden; } }
  @keyframes piece-a { from { transform: translate(-70px, 60px); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes piece-b { from { transform: translate(70px, -60px); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes piece-c { from { transform: translate(90px, 40px); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes hero-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes tab-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes hot-ping { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2.1); opacity: 0; } }

  .js:not(.no-intro) .intro { animation: intro-lift 0.62s cubic-bezier(0.76, 0, 0.24, 1) 1s both; }
  .intro-mono .m1 { animation: piece-a 0.7s var(--arrive) 0.1s both; }
  .intro-mono .m2 { animation: piece-b 0.7s var(--arrive) 0.2s both; }
  .intro-mono .m3 { animation: piece-c 0.7s var(--arrive) 0.28s both; }

  .js:not(.no-intro) .hero-content > * { animation: hero-rise 0.7s var(--arrive) 1.25s both; }
  .js:not(.no-intro) .hero-content > :nth-child(2) { animation-delay: 1.38s; }

  .switch-panel:not([hidden]), .voice:not([hidden]), .coating-detail > :not([hidden]) { animation: tab-fade 0.32s ease both; }
  .hot[aria-selected="true"]:not(:focus-visible) { box-shadow: 0 0 0 0 transparent; }
  .js .coating-map .hot[aria-selected="true"]::after { animation: none; }

  /* The rule above page titles no longer needs to rise with the home hero. */
  .home h1::before { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wipe-foam { transition: none; }
}

/* Legibility over the foam */
.hero-shade {
  background:
    linear-gradient(to top, rgb(0 0 0 / 0.9), rgb(0 0 0 / 0.68) 26%, rgb(0 0 0 / 0.12) 56%, transparent 68%),
    linear-gradient(to bottom, rgb(0 0 0 / 0.72), rgb(0 0 0 / 0.42) 11%, transparent 24%);
}
.wipe-ui { width: fit-content; max-width: calc(100% - var(--gutter) * 2); padding: 2px 14px; background: rgb(0 0 0 / 0.62); }
.wipe-hint, .wipe-button { text-shadow: none; }

/* Wipe controls stay available at tablet widths */
@media (min-width: 760px) and (max-width: 959px) {
  .wipe-ui:not([hidden]) { display: flex; top: calc(var(--header-h) + 12px); bottom: auto; left: var(--gutter); right: auto; max-width: none; justify-content: flex-start; text-align: left; }
}

/* The intro never stays up for people who ask for less motion */
@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
}

/* In-copy links keep the existing quiet underline */
.lead a, .note a, .answer a, .index-list p a, .steps p a, figcaption a, .details a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  color: inherit;
}
.lead a:hover, .note a:hover, .answer a:hover, .index-list p a:hover, .details a:hover { text-decoration-color: var(--red); }
.index-list p a { display: inline; min-height: 0; background: none; }
.cta-links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 12px; }
.cta-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
.cta-links a:hover { text-decoration-color: var(--red); }
.story-head .link { margin-top: 8px; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { color: var(--white); }

/* Sized for the full list of 16 towns */
.area-words { font-size: clamp(2.125rem, 1.2rem + 3.9vw, 5.25rem); }
.footer-list { columns: 2; column-gap: 20px; }
.footer-list li { break-inside: avoid; }
.site-footer div:last-child .footer-list { columns: 1; }
@media (min-width: 960px) {
  .area-rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .area-rows li { align-content: center; }
}

@media (min-width: 960px) {
  .area-rows li { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding-block: 12px 6px; }
  .footer-grid { grid-template-columns: 1.5fr 0.9fr 2.2fr 1fr; gap: 28px; }
  .footer-list { column-gap: 16px; font-size: 1rem; }
}

@media (min-width: 960px) {
  .area-rows li { flex-wrap: nowrap; align-content: flex-start; }
}

.footer-brands { max-width: 38ch; margin-top: 12px; }

/* GoHighLevel quote form */
.ghl-form { width: 100%; min-width: 0; }
.ghl-form iframe { display: block; min-height: 831px; }

/* Privacy Policy */
.privacy-body { max-width: 760px; }
.privacy-body > * + * { margin-top: 14px; }
.privacy-body h2 { margin-top: clamp(36px, 5vw, 56px); font-size: clamp(1.875rem, 1.5rem + 1.6vw, 2.75rem); }
.privacy-body ul { padding-left: 20px; list-style: disc; }
.privacy-body li + li { margin-top: 6px; }
.privacy-body a { text-decoration: underline; text-underline-offset: 0.2em; }
.privacy-body address { font-style: normal; line-height: 1.7; }
.privacy-body code { font-size: 0.95em; overflow-wrap: anywhere; }
.review-banner, .review-note { padding: 12px 16px; background: #fdecec; border-left: 3px solid var(--red); }
.review-banner { margin-bottom: 24px; }

/* Holds the form's space while it loads, so the page doesn't jump */
.ghl-form { min-height: 831px; }

/* Privacy Policy link under the quote form */
.form-privacy { margin-top: 12px; font-size: 0.875rem; }
.form-privacy a { text-decoration: underline; text-underline-offset: 0.2em; }

.link-pair { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Cookie choice */
.cookie-banner {
  position: fixed;
  z-index: 80;
  inset: auto 0 var(--bar-h, 0px);
  display: grid;
  gap: 12px;
  padding: 16px var(--gutter);
  background: var(--white);
  color: var(--black);
  border-top: 3px solid var(--red);
  box-shadow: 0 -8px 24px rgb(0 0 0 / 0.18);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { margin-bottom: 4px; font-size: 1.25rem; }
.cookie-banner p { font-size: 0.9375rem; line-height: 1.45; }
.cookie-banner a { text-decoration: underline; text-underline-offset: 0.2em; }
.cookie-banner-status { margin-top: 4px; font-weight: 500; }
.cookie-banner-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie-settings {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.cookie-settings[hidden] { display: none; }
.cookie-settings:hover { color: var(--white); }
@media (min-width: 768px) {
  .cookie-banner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; }
  .cookie-banner-actions { grid-template-columns: repeat(2, minmax(120px, auto)); }
}
