/* Fonts: Barlow and Barlow Condensed (SIL Open Font License), self-hosted, Latin set */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/barlow-condensed-700.woff2") format("woff2"); }

/* Roofcom — site styles
   Palette: asphalt slate darks, Roofcom teal (from the logo), flashing grey. */

:root {
  --slate: #0f1c26;
  --shingle: #1f303d;
  --teal: #2fc6af;
  --teal-ink: #0d7366;
  --teal-hover: #4fd8c3;
  --flashing: #edf1f3;
  --line: #d5dde2;
  --ink: #15222c;
  --muted: #4f5f6b;
  --on-dark: #e9eff2;
  --on-dark-muted: #a9b8c2;
  --star: #f5c21b;
  --white: #ffffff;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ridge: clamp(28px, 5vw, 64px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 0.98; margin: 0 0 0.4em; letter-spacing: 0.005em; }
h1, h2 { text-transform: uppercase; }
h1 { font-size: clamp(2.9rem, 8vw, 6rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: clamp(1.125rem, 1.8vw, 1.3rem); line-height: 1.5; }
.kicker { font-weight: 600; color: var(--teal-ink); margin-bottom: 0.6em; font-size: 1.05rem; }
.on-dark .kicker { color: var(--teal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 52px; padding: 0.7em 1.4em;
  font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.03em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--teal); color: var(--slate); }
.btn-primary:hover { background: var(--teal-hover); color: var(--slate); }
.btn-ghost { border-color: currentColor; color: var(--white); background: transparent; }
.btn-ghost:hover { background: var(--white); color: var(--slate); border-color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--slate); color: var(--on-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--on-dark); text-decoration: none; font-weight: 500; font-size: 1rem;
  padding: 8px 12px; border-radius: var(--radius);
}
.nav a:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.nav a[aria-current="page"] { color: var(--teal); }
.header-call {
  display: inline-flex; align-items: center; gap: 8px; color: var(--white); text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.02em; white-space: nowrap;
}
.header-call svg { width: 20px; height: 20px; color: var(--teal); }
.header-call:hover { color: var(--teal); }
.site-header .btn { min-height: 44px; font-size: 1.1rem; padding: 0.4em 1em; }
.menu-toggle {
  display: none; margin-left: 4px; background: none; border: 0; color: var(--white);
  width: 48px; height: 48px; align-items: center; justify-content: center; cursor: pointer; border-radius: var(--radius);
}
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1080px) {
  .nav, .site-header .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-call { margin-left: auto; }
  .site-header.open .nav {
    display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--slate); padding: 8px var(--gutter) 20px; border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .site-header.open .nav a { font-size: 1.2rem; padding: 14px 8px; border-bottom: 1px solid rgba(255,255,255,0.07); }
}
@media (max-width: 480px) {
  .brand img { height: 34px; }
  .header-call .num { display: none; }
  .header-call { width: 48px; height: 48px; justify-content: center; border: 2px solid rgba(255,255,255,0.25); border-radius: var(--radius); }
  .header-call svg { width: 22px; height: 22px; }
}

/* ---------- Hero (ridge-cut bottom edge, echoing the logo's roofline) ---------- */
.hero {
  position: relative; color: var(--white); background: var(--slate);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--ridge)), 50% 100%, 0 calc(100% - var(--ridge)));
  padding: clamp(72px, 12vw, 150px) 0 calc(clamp(72px, 10vw, 130px) + var(--ridge));
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,28,38,0.94) 0%, rgba(15,28,38,0.86) 55%, rgba(15,28,38,0.45) 100%);
}
.hero h1 { max-width: 12ch; }
.hero .lede { color: var(--on-dark); max-width: 54ch; margin-bottom: 1.6em; }
.hero-facts { list-style: none; padding: 0; margin: 2.2em 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--on-dark); font-weight: 500; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 20px; height: 20px; color: var(--teal); flex: none; }
.stars { color: var(--star); letter-spacing: 1px; }

@media (max-width: 700px) {
  .hero-bg::after { background: linear-gradient(180deg, rgba(15,28,38,0.78) 0%, rgba(15,28,38,0.92) 100%); }
}

/* Inner page header — same ridge, shorter */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 calc(clamp(48px, 6vw, 80px) + var(--ridge)); }
.page-hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.8rem); max-width: 16ch; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: clamp(40px, 6vw, 64px) 0; }
.bg-flashing { background: var(--flashing); }
.bg-slate { background: var(--slate); color: var(--on-dark); }
.bg-slate h2, .bg-slate h3 { color: var(--white); }
.bg-slate a:not(.btn) { color: var(--teal); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.section-head p { color: var(--muted); }
.bg-slate .section-head p { color: var(--on-dark-muted); }
.pull-up { margin-top: calc(var(--ridge) * -1); position: relative; z-index: 2; }

/* Proof bar under the hero */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.proof > div { padding: 28px 20px 28px 0; }
.proof > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.proof strong { display: block; font-family: var(--display); font-size: 2.1rem; line-height: 1; text-transform: uppercase; }
.proof span { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 820px) {
  .proof { grid-template-columns: 1fr 1fr; }
  .proof > div { padding: 20px 12px 20px 0; }
  .proof > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .proof > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Services: alternating photo rows ---------- */
.service { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.service + .service { margin-top: clamp(56px, 8vw, 96px); }
.service:nth-child(even) .service-photo { order: 2; }
.service-photo { position: relative; }
.service-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.service ul { list-style: none; padding: 0; margin: 1.2em 0 1.6em; display: grid; gap: 8px; }
.service li { display: flex; gap: 10px; align-items: baseline; }
.service li::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--teal); transform: translateY(-1px) rotate(45deg); }
@media (max-width: 820px) {
  .service { grid-template-columns: 1fr; }
  .service:nth-child(even) .service-photo { order: 0; }
}

/* ---------- Process: a real sequence, so it's numbered ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 0 20px 0 0; position: relative; }
.steps li::before {
  content: counter(step); display: block;
  font-family: var(--display); font-weight: 700; font-size: 4.2rem; line-height: 1; color: var(--teal);
  padding-bottom: 14px; margin-bottom: 16px; border-bottom: 2px solid rgba(255,255,255,0.14);
}
.steps h3 { font-size: 1.45rem; margin-bottom: 0.3em; }
.steps p { color: var(--on-dark-muted); font-size: 1rem; }
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { display: grid; grid-template-columns: 72px 1fr; column-gap: 16px; padding: 0; }
  .steps li::before { grid-row: span 2; border: 0; padding: 0; margin: 0; font-size: 3.4rem; }
}

/* ---------- Work strip (scroll-snap, no library) ---------- */
.strip-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.strip-controls { display: flex; gap: 8px; }
.strip-controls button {
  width: 52px; height: 52px; border-radius: var(--radius); border: 2px solid var(--ink); background: transparent; cursor: pointer; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.strip-controls button:hover { background: var(--ink); color: var(--white); }
.strip-controls svg { width: 22px; height: 22px; }
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 520px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 20px;
  margin-top: 32px; scrollbar-width: thin; overscroll-behavior-x: contain;
}
.strip figure { margin: 0; scroll-snap-align: start; }
.strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.strip figcaption { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }
@media (min-width: 1240px) { .strip { padding-left: calc((100vw - var(--wrap)) / 2 + var(--gutter)); } }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { margin: 0; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.review blockquote { margin: 12px 0 18px; }
.review blockquote p { margin: 0; }
.review figcaption { margin-top: auto; font-weight: 600; }
.review .stars { font-size: 1.1rem; }
.reviews-all { columns: 3 320px; column-gap: 20px; }
.reviews-all .review { break-inside: avoid; margin-bottom: 20px; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }

.rating-callout { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 36px; }
.rating-callout .big { font-family: var(--display); font-weight: 700; font-size: 4rem; line-height: 0.9; }
.rating-callout .stars { font-size: 1.5rem; display: block; }

/* ---------- Crew / about split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.checks { list-style: none; padding: 0; margin: 1em 0 1.6em; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; color: var(--teal-ink); flex: none; margin-top: 2px; }
.bg-slate .checks svg { color: var(--teal); }

/* Service area */
.areas { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.areas li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 100px; background: var(--white); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 2.4vw, 1.65rem); line-height: 1.15;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -10px;
  border-right: 3px solid var(--teal-ink); border-bottom: 3px solid var(--teal-ink); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq details p { padding-bottom: 12px; color: var(--muted); }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 1.4em 0 0; display: grid; gap: 22px; }
.contact-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.contact-list svg { width: 24px; height: 24px; color: var(--teal); margin-top: 3px; }
.contact-list .label { display: block; font-size: 0.95rem; color: var(--on-dark-muted); }
.contact-list a, .contact-list .value { color: var(--white); font-weight: 600; text-decoration: none; font-size: 1.15rem; }
.contact-list a:hover { color: var(--teal); }
.hours { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; color: var(--white); font-weight: 600; }
.hours dt { font-weight: 500; color: var(--on-dark-muted); }
.hours dd { margin: 0; }

.form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.form h2 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--ink); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink);
  padding: 12px 14px; min-height: 52px; border: 1.5px solid #b9c5cd; border-radius: var(--radius); background: var(--white);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--teal-ink); }
.consent { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: 0.92rem; color: var(--muted); line-height: 1.5; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--teal-ink); }
.form .btn { width: 100%; margin-top: 8px; }
.form-legal { font-size: 0.92rem; color: var(--muted); margin: 14px 0 0; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status[data-state="ok"] { color: var(--teal-ink); }
.form-status[data-state="error"] { color: #b42318; }

/* ---------- Portfolio grid + lightbox ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  font: inherit; font-weight: 600; padding: 10px 18px; min-height: 44px; border-radius: 100px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; display: block; width: 100%; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.03); }
.gallery [hidden] { display: none; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(8,15,21,0.94); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 16px 24px; }
.lightbox img { max-width: min(1600px, 100%); max-height: calc(100vh - 140px); width: auto; object-fit: contain; border-radius: var(--radius); }
.lightbox p { color: var(--on-dark); margin: 12px 0 0; text-align: center; }
.lightbox .lb-btn {
  position: absolute; width: 52px; height: 52px; border-radius: var(--radius); border: 0; cursor: pointer;
  background: rgba(255,255,255,0.12); color: var(--white); display: inline-flex; align-items: center; justify-content: center;
}
.lightbox .lb-btn:hover { background: rgba(255,255,255,0.24); }
.lightbox .lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; margin-top: -26px; }
.lb-next { right: 12px; top: 50%; margin-top: -26px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.9rem; margin-top: 1.6em; }
.legal h3 { font-size: 1.35rem; margin-top: 1.2em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.4em; }

/* ---------- Footer ---------- */
.site-footer { background: #0a141c; color: var(--on-dark-muted); padding: 64px 0 120px; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h2 { font-size: 1.25rem; color: var(--white); letter-spacing: 0.04em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--teal); text-decoration: underline; }
.site-footer .brand img { height: 44px; margin-bottom: 16px; }
.footer-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.92rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
@media (min-width: 1081px) { .site-footer { padding-bottom: 40px; } }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(15,28,38,0.97); border-top: 1px solid rgba(255,255,255,0.1);
}
.action-bar .btn { min-height: 50px; font-size: 1.2rem; padding: 0.4em 0.5em; white-space: nowrap; }
@media (max-width: 1080px) { .action-bar { display: grid; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Short and never fully transparent, so the headline is readable on first paint
     (the old site's slow fade left it near-invisible for a second). */
  .hero-copy > * { animation: rise .45s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .06s; }
  .hero-copy > *:nth-child(3) { animation-delay: .12s; }
  .hero-copy > *:nth-child(4) { animation-delay: .18s; }
  .hero-copy > *:nth-child(5) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0.35; transform: translateY(10px); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.service h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }

/* ---------- Roof layers: scroll-built cross-section (signature motion) ---------- */
.layers { position: relative; height: 250vh; background: var(--flashing); }
.layers-sticky { position: sticky; top: 76px; height: calc(100vh - 76px); display: flex; align-items: center; overflow: hidden; }
.layers-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.layers-stage svg { width: 100%; height: auto; display: block; max-height: calc(100vh - 170px); margin: 0 auto; }
.layers-copy h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.layer-steps { list-style: none; padding: 0; margin: 20px 0 0; counter-reset: layer; display: grid; gap: 4px; }
.layer-steps li {
  counter-increment: layer; position: relative; padding: 12px 0 12px 52px;
  border-left: 3px solid var(--line); margin-left: 18px; padding-left: 30px;
  color: var(--muted); transition: color .25s, border-color .25s;
}
.layer-steps li::before {
  content: attr(data-n); position: absolute; left: -19px; top: 12px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--flashing); border: 3px solid var(--line);
  font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--muted); transition: all .25s;
}
.layer-steps h3 { font-size: 1.4rem; margin: 4px 0 2px; color: inherit; }
.layer-steps p { margin: 0; font-size: 1rem; transition: max-height .35s, opacity .35s; }
.layers.is-live .layer-steps p { max-height: 0; overflow: hidden; opacity: 0; }
.layer-steps li.is-done { border-color: var(--teal-ink); }
.layer-steps li.is-done::before { background: var(--teal-ink); border-color: var(--teal-ink); color: var(--white); }
.layer-steps li.is-active { color: var(--ink); border-color: var(--teal); }
.layer-steps li.is-active::before { background: var(--teal); border-color: var(--teal); color: var(--slate); }
.layers.is-live .layer-steps li.is-active p { max-height: 8em; opacity: 1; }

@media (max-width: 900px) {
  .layers { height: 220vh; }
  .layers-sticky { top: 76px; height: calc(100vh - 76px - 72px); }
  .layers-grid { grid-template-columns: 1fr; gap: 8px; }
  .layers-stage svg { max-height: 44vh; }
  .layers-copy h2 { font-size: 1.9rem; margin-bottom: 0; }
  .layer-steps { margin-top: 8px; }
  .layers.is-live .layer-steps li { display: none; }
  .layers.is-live .layer-steps li.is-active { display: block; }
}

/* No motion: show the finished roof and all steps, no pinning */
@media (prefers-reduced-motion: reduce) {
  .layers { height: auto; padding: 64px 0; }
  .layers-sticky { position: static; height: auto; }
  .layer-steps li, .layer-steps li.is-active { display: block; color: var(--ink); }
  .layer-steps p { max-height: none; opacity: 1; }
}

/* ---------- Mascot in the quote section ---------- */
@media (prefers-reduced-motion: no-preference) {
  .quote-moose { transform: translateY(40px); opacity: 0; transition: transform .7s cubic-bezier(.2,.8,.2,1.15), opacity .5s; }
  .quote-moose.in-view { transform: none; opacity: 1; }
  /* Hero photo: one slow settle on load */
  .hero-bg img { animation: settle 2.2s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes settle { from { transform: scale(1.08); } }
}

/* ======================================================================
   Roofcom scroll effects (paired with js/scroll-fx.js)
   ====================================================================== */

/* Home: realistic house stage */
.layers-stage .house { border-radius: 10px; box-shadow: 0 30px 60px -30px rgba(15,28,38,.45); background: #cfe3f0; }
[data-nailgun] { transition: opacity .2s; }
.layers-hint { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; margin-top: 18px; }
.layers-hint svg { width: 18px; height: 18px; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }
.layers-cta { margin-top: 20px; transition: transform .3s, box-shadow .3s; }
.layers.is-built .layers-cta { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(47,198,175,.25); }
.layers.is-built .layers-hint { visibility: hidden; }

/* Nailed in */
[data-nail] { position: relative; }
.nail { position: absolute; top: -26px; left: 50%; width: 16px; height: 48px; margin-left: -8px; z-index: 3; pointer-events: none; opacity: 0; }
.nail svg { width: 100%; height: 100%; display: block; }
[data-nail].nailed .nail { opacity: 1; animation: drive .22s cubic-bezier(.3,1.4,.6,1) both; }
[data-nail].nailed { animation: thunk .28s .16s ease-out both; }
@keyframes drive { from { transform: translateY(-70px) rotate(-6deg); opacity: 0; } 60% { opacity: 1; } to { transform: translateY(0); } }
@keyframes thunk { 30% { transform: translateY(4px); } 60% { transform: translateY(-1px); } }
.steps [data-nail] .nail { left: 22px; top: -30px; }

/* Services: photos lay down like shingles */
[data-lay] { transform-origin: 50% 100%; will-change: transform; }

[data-drift] [data-tags] { transition: transform .1s linear; }


/* Reviews: star meter */
.star-meter { position: sticky; top: 88px; z-index: 5; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; width: fit-content; margin: 0 auto 32px; padding: 10px 18px; border-radius: 100px; background: var(--white); box-shadow: 0 8px 24px rgba(15,28,38,.12); }
.meter-stars { position: relative; font-size: 1.9rem; line-height: 1; letter-spacing: 3px; color: #d5dde2; }
.meter-fill { position: absolute; inset: 0 auto 0 0; width: 0; overflow: hidden; color: var(--star); white-space: nowrap; }
.star-meter .meter-text { font-weight: 600; }
.star-meter .meter-done { display: none; }
.star-meter.is-full .meter-done { display: inline; }
.star-meter.is-full .meter-reading { display: none; }
.star-meter.is-full .meter-stars { animation: pop .4s ease-out; }
@keyframes pop { 50% { transform: scale(1.15); } }

/* FAQ: storm that clears */
.storm-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.storm {
  --clear: 0; position: sticky; top: 100px; height: min(62vh, 480px); border-radius: 12px; overflow: hidden; color: var(--white);
  background: linear-gradient(180deg,
    color-mix(in srgb, #2c3842 calc((1 - var(--clear)) * 100%), #7fb3d8) 0%,
    color-mix(in srgb, #4a5761 calc((1 - var(--clear)) * 100%), #d6e8f3) 100%);
}
.storm canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.storm-sun { position: absolute; right: 12%; top: 16%; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, #fff6d5 30%, rgba(255,240,190,0) 70%); opacity: calc((var(--clear) - .55) * 2.2); }
.storm-cloud { position: absolute; left: -10%; right: -10%; top: -6%; height: 42%; background: radial-gradient(60% 70% at 30% 40%, #56636d, transparent 70%), radial-gradient(50% 60% at 70% 30%, #4c5862, transparent 70%); opacity: calc(1 - var(--clear) * 1.2); transform: translateY(calc(var(--clear) * -60%)); }
.storm-roof { position: absolute; left: 6%; right: 6%; bottom: -2px; }
.storm-roof svg { width: 100%; height: auto; display: block; }
.storm-caption { position: absolute; left: 22px; right: 22px; top: 20px; font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.1rem); text-transform: uppercase; line-height: 1; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.storm-cta { position: absolute; left: 22px; top: 70px; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s; z-index: 2; }
.storm.is-clear .storm-cta { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .storm-layout { grid-template-columns: 1fr; }
  .storm { top: 76px; height: 130px; z-index: 5; }
  .storm-roof, .storm-sun { display: none; }
  .storm-cta { left: auto; right: 14px; top: auto; bottom: 14px; }
  .storm-cta .btn { min-height: 40px; font-size: 1rem; padding: .3em .8em; }
}

/* Every form: roof builds as you fill it in */
.roof-progress { display: flex; align-items: center; gap: 14px; margin: -6px 0 20px; }
.roof-progress svg { width: 74px; height: auto; flex: none; }
.rp-row { fill: #dfe5e9; transition: fill .3s; }
.rp-row.on { fill: #36454f; }
.rp-cap { fill: #dfe5e9; transition: fill .3s; }
.roof-progress.is-ready .rp-cap { fill: var(--teal); }
.rp-label { font-weight: 600; color: var(--muted); font-size: .98rem; }
.roof-progress.is-ready .rp-label { color: var(--teal-ink); }

@media (prefers-reduced-motion: reduce) {
  .storm { position: relative; }
}

/* Service areas: city checker + grid */
.area-check { max-width: 760px; }
.area-check h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.area-form { display: flex; gap: 10px; flex-wrap: wrap; }
.area-form input { flex: 1 1 260px; font: inherit; font-size: 1.1rem; min-height: 54px; padding: 10px 16px; border: 2px solid #b9c5cd; border-radius: var(--radius); }
.area-form input:focus { outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--teal-ink); }
.area-result { margin-top: 16px; font-size: 1.15rem; font-weight: 600; min-height: 1.6em; }
.area-result[data-state="yes"] { color: var(--teal-ink); }
.area-result a { font-weight: 700; }
.city-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.city-grid li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.city-grid h3 { font-size: 1.6rem; margin-bottom: 6px; }
.city-grid p { margin: 0; color: var(--muted); font-size: 1rem; }

/* 404 */
.not-found { min-height: 70vh; display: flex; align-items: center; }
.lost-moose { width: min(320px, 70%); aspect-ratio: auto; justify-self: center; object-fit: contain; border-radius: 0; }
@media (prefers-reduced-motion: no-preference) {
  .lost-moose { animation: windblown 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
  @keyframes windblown { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(4deg) translateX(8px); } }
}

/* ---------- Home hero: interactive roof check ---------- */
.hero-home { padding-top: clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-home h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); max-width: 16ch; }
.roof-check:not(.ready) { display: none; }
.roof-check { position: relative; background: rgba(15,28,38,.72); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 12px; backdrop-filter: blur(6px); }
.rc-stage { position: relative; }
.rc-house { width: 100%; height: auto; display: block; border-radius: 10px; cursor: crosshair; background: #cfe3f0; }
.rc-moose { position: absolute; left: -26px; bottom: -14px; width: clamp(84px, 11vw, 132px); height: auto; filter: drop-shadow(0 8px 10px rgba(0,0,0,.35)); pointer-events: none; }
.rc-bubble {
  position: absolute; left: 12px; top: 12px; max-width: min(62%, 330px); padding: 10px 14px; border-radius: 12px;
  background: var(--white); color: var(--ink); box-shadow: 0 10px 24px rgba(15,28,38,.25); font-weight: 600; font-size: .98rem; line-height: 1.35;
}
.rc-bubble p { margin: 0; }
.rc-controls { padding: 14px 6px 4px; color: var(--on-dark); }
.rc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rc-row label { font-weight: 600; color: var(--white); }
.rc-age-out { font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--teal); min-width: 4.5ch; text-align: right; }
.roof-check.is-old .rc-age-out { color: var(--star); }
#rc-age { width: 100%; margin: 8px 0 14px; accent-color: var(--teal); height: 28px; cursor: pointer; }
.rc-swatches { display: flex; gap: 10px; }
.rc-swatches button { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); background: var(--c); cursor: pointer; padding: 0; }
.rc-swatches button[aria-checked="true"] { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(47,198,175,.3); }
.rc-fix { margin: 0; font-size: .95rem; color: var(--on-dark); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rc-fix-btn { font: inherit; font-weight: 600; color: var(--slate); background: var(--star); border: 0; border-radius: 100px; padding: 4px 12px; cursor: pointer; }
.rc-cta { width: 100%; margin-top: 14px; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .rc-moose { left: -8px; }
}
@media (max-width: 520px) {
  .rc-bubble { font-size: .88rem; max-width: 72%; padding: 8px 11px; }
}

/* ---------- About: climb the ladder (works at every screen size) ---------- */
.climb { position: relative; height: 240vh; background: var(--slate); color: var(--on-dark); }
.climb-sticky { position: sticky; top: 76px; height: calc(100vh - 76px); display: flex; align-items: center; overflow: hidden; }
.climb-grid { display: grid; grid-template-columns: minmax(220px, 0.8fr) 1.2fr; gap: clamp(24px, 5vw, 72px); align-items: center; width: 100%; }
.climb-scene { position: relative; height: min(72vh, 620px); border-radius: 12px; overflow: hidden;
  background:
    linear-gradient(180deg, #7fb3d8 0 18%, transparent 18%),
    repeating-linear-gradient(180deg, #c9d3da 0 12px, #a3b0b9 12px 14px);
}
.climb-scene .eave { position: absolute; left: -4%; right: -4%; top: 14%; height: 9%; background: linear-gradient(180deg, #3a444c, #2b3339); clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%); }
.climb-scene .gutter { position: absolute; left: 0; right: 0; top: 23%; height: 3%; background: linear-gradient(180deg, #e7ecef, #9aa7b0); }
.climb-scene .ground { position: absolute; left: 0; right: 0; bottom: 0; height: 9%; background: linear-gradient(180deg, #6f9e49, #3f6b2c); }
.climb-ladder { position: absolute; left: 50%; width: 92px; margin-left: -46px; top: 8%; bottom: 4%;
  background:
    linear-gradient(90deg, #d9dfe3 0 9px, transparent 9px calc(100% - 9px), #aab5bc calc(100% - 9px)),
    repeating-linear-gradient(180deg, transparent 0 40px, #c3ccd2 40px 47px);
  filter: drop-shadow(4px 6px 6px rgba(0,0,0,.3)); }
.climb-moose { position: absolute; left: 50%; bottom: 6%; width: clamp(100px, 13vw, 150px); margin-left: calc(clamp(100px, 13vw, 150px) / -2); height: auto; transform-origin: 50% 90%; will-change: transform; filter: drop-shadow(0 8px 10px rgba(0,0,0,.35)); }
.climb-bubble { position: absolute; left: 10px; right: 10px; top: 2.5%; text-align: center; background: var(--white); color: var(--ink); border-radius: 12px; padding: 10px 12px; font-weight: 600; opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s; z-index: 3; }
.climb.at-top .climb-bubble { opacity: 1; transform: none; }
.climb h2 { color: var(--white); }
.climb-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.climb-list li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; opacity: .6; transition: opacity .3s; }
.climb-list li.on { opacity: 1; }
.climb-list .rung { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.3); display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--on-dark-muted); transition: all .3s; }
.climb-list li.on .rung { background: var(--teal); border-color: var(--teal); color: var(--slate); }
.climb-list strong { color: var(--white); }
.climb-list p { margin: 2px 0 0; font-size: 1rem; color: var(--on-dark-muted); }
.climb-cta { margin-top: 22px; }
@media (max-width: 820px) {
  .climb { height: 220vh; }
  .climb-sticky { height: calc(100vh - 76px - 72px); }
  .climb-grid { grid-template-columns: 38% 1fr; gap: 16px; }
  .climb-scene { height: min(62vh, 520px); }
  .climb-ladder { width: 64px; margin-left: -32px; }
  .climb-moose { width: 84px; margin-left: -42px; }
  .climb h2 { font-size: 1.7rem; }
  .climb-list { gap: 6px; }
  .climb-list li { grid-template-columns: 26px 1fr; gap: 8px; }
  .climb-list .rung { width: 26px; height: 26px; font-size: .9rem; border-width: 2px; }
  .climb-list p { display: none; }
  .climb-list li.on:last-of-type p, .climb-list li.current p { display: block; font-size: .9rem; }
  .climb-bubble { font-size: .85rem; padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .climb { height: auto; padding: 64px 0; }
  .climb-sticky { position: static; height: auto; }
  .climb-list li { opacity: 1; }
}

/* Roof check: repair meter + nail-gun cursor */
.rc-fix { margin-top: 12px; }
.rc-fix[hidden] { display: none; }
.rc-count { font-size: .95rem; font-weight: 600; color: var(--on-dark); }
.rc-meter { height: 8px; margin-top: 8px; border-radius: 100px; background: rgba(255,255,255,.14); overflow: hidden; }
.rc-meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--star)); transition: width .3s ease-out; }
.roof-check.can-repair .rc-house {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Ccircle cx='9' cy='31' r='8' fill='%234a5258' stroke='%2322292e' stroke-width='2'/%3E%3Crect x='6' y='8' width='22' height='18' rx='4' fill='%23262c31'/%3E%3Crect x='6' y='15' width='22' height='3' fill='%232fc6af'/%3E%3Crect x='24' y='5' width='14' height='6' rx='3' fill='%231d2328'/%3E%3Crect x='2' y='24' width='5' height='14' rx='1' fill='%235b636a'/%3E%3C/svg%3E") 4 38, crosshair;
}

/* ---------- Our work: drone pull-up -> photo stack -> photos fly into the sky ---------- */
.flyby { position: relative; height: 340vh; background: var(--slate); }
.fb-sticky { position: sticky; top: 76px; height: calc(100vh - 76px); overflow: hidden; perspective: 1400px; }
.fb-sky { position: absolute; inset: 0; opacity: 0; background: linear-gradient(180deg, #5b92bd 0%, #9cc6e2 55%, #e2eff7 100%); }
.fb-cloud { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,255,255,0)); will-change: transform; }
.fb-cloud.c1 { width: 420px; height: 150px; left: -6%; top: 10%; }
.fb-cloud.c2 { width: 520px; height: 170px; right: -10%; top: 24%; }
.fb-cloud.c3 { width: 340px; height: 120px; left: 30%; top: 4%; }
.fb-copy { position: relative; z-index: 30; padding-top: clamp(20px, 4vh, 44px); color: var(--ink); opacity: 0; }
.fb-copy h1 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); max-width: 16ch; margin-bottom: .2em; }
.fb-copy .kicker { color: var(--ink); font-weight: 700; }
.fb-copy .lede { max-width: 46ch; margin: 0; }
.fb-stack { position: absolute; left: 50%; top: 62%; width: min(64vw, 700px); aspect-ratio: 16 / 10; transform: translate(-50%, -50%); transform-style: preserve-3d; }
.fb-card { position: absolute; inset: 0; margin: 0; padding: 8px; background: #fff; border-radius: 6px; box-shadow: 0 22px 44px rgba(15,28,38,.35); will-change: transform, opacity; backface-visibility: hidden; }
.fb-card img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 3px; }
.fb-hint { position: absolute; z-index: 40; left: 50%; top: 46%; transform: translate(-50%, -50%); margin: 0; text-align: center; color: #fff; font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2.3rem); text-transform: uppercase; letter-spacing: .04em; text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.fb-hint span { display: block; font-family: var(--body); font-weight: 500; font-size: 1rem; text-transform: none; letter-spacing: 0; }
.fb-end { position: absolute; z-index: 35; left: 0; right: 0; top: 56%; text-align: center; padding: 0 var(--gutter); opacity: 0; transform: translateY(20px); pointer-events: none; }
.fb-end p { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 5vw, 3.6rem); text-transform: uppercase; line-height: 1; color: var(--ink); margin: 0 auto 20px; max-width: none; }
.fb-end .btn-row { justify-content: center; }
.flyby.is-done .fb-end { pointer-events: auto; }
@media (max-width: 700px) {
  .fb-stack { width: 84vw; top: 64%; }
  .fb-cloud.c2 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .flyby { height: auto; }
  .fb-sticky { position: relative; height: 92vh; }
  .fb-hint { display: none; }
}

/* ---------- Live storm alert banner ---------- */
.storm-alert { position: relative; z-index: 45; color: var(--white); animation: alertIn .4s ease-out both; }
.storm-alert.is-active { background: linear-gradient(90deg, #8c1d18, #b42318); }
.storm-alert.is-recent { background: linear-gradient(90deg, #1f303d, #2b4252); border-bottom: 3px solid var(--star); }
.storm-alert-inner { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.storm-alert-inner > svg { width: 28px; height: 28px; flex: none; color: var(--star); }
.storm-alert.is-active .storm-alert-inner > svg { animation: flash 1.2s steps(2) infinite; }
.storm-alert p { margin: 0; flex: 1; font-size: 1rem; line-height: 1.35; max-width: none; }
.storm-alert-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.storm-alert .btn { min-height: 42px; font-size: 1.05rem; padding: .3em .9em; }
.storm-alert-close { border: 0; background: none; color: var(--white); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 4px 8px; opacity: .8; }
@keyframes alertIn { from { transform: translateY(-100%); opacity: 0; } }
@keyframes flash { 50% { opacity: .35; } }
@media (max-width: 760px) {
  .storm-alert-inner { flex-wrap: wrap; gap: 8px 12px; }
  .storm-alert p { flex-basis: calc(100% - 80px); font-size: .95rem; }
  .storm-alert-actions { width: 100%; }
  .storm-alert-actions .btn { flex: 1; }
  .storm-alert-close { position: absolute; right: 8px; top: 6px; }
  .storm-alert-inner { position: relative; padding-right: 36px; }
}

/* Our work: skip the intro animation */
.fb-skip { position: absolute; z-index: 45; right: var(--gutter); top: 14px; padding: 8px 14px; border-radius: 100px; background: rgba(15,28,38,.72); color: var(--white); font-weight: 600; font-size: .95rem; text-decoration: none; }
.fb-skip:hover { background: var(--slate); color: var(--teal); }

/* ---------- Quote section: form first, three steps ---------- */
.quote .quote-head, .quote .form-steps, .quote .contact-strip { max-width: 900px; margin-left: auto; margin-right: auto; }
.quote-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.quote-head .lede { margin-bottom: 0; }
.quote-moose { width: clamp(96px, 12vw, 140px); height: auto; flex: none; margin-bottom: -18px; position: relative; z-index: 2; filter: drop-shadow(0 8px 10px rgba(0,0,0,.35)); }
.form-steps { margin-top: 0; position: relative; }
.steps-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.steps-top .roof-progress { margin: 0; }
.step-dots { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; counter-reset: sd; }
.step-dots li { counter-increment: sd; display: flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.step-dots li::before { content: counter(sd); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); font-size: .85rem; }
.step-dots li + li::after { order: -1; content: ""; width: 16px; height: 2px; background: var(--line); }
.step-dots li.on { color: var(--ink); }
.step-dots li.on::before { background: var(--teal); border-color: var(--teal); color: var(--slate); }
.form-steps .step { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-steps legend { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.3rem); text-transform: uppercase; line-height: 1; margin-bottom: 16px; padding: 0; outline: none; }
.need-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.need-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .15s, background-color .15s, transform .15s; }
.need-card:hover { border-color: var(--teal-ink); transform: translateY(-2px); }
.need-card input { position: absolute; opacity: 0; pointer-events: none; }
.need-card:has(input:checked) { border-color: var(--teal-ink); background: #e5f6f2; }
.need-card:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }
.nc-icon { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--flashing); }
.nc-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--teal-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.need-card:has(input:checked) .nc-icon { background: var(--teal); }
.need-card:has(input:checked) .nc-icon svg { stroke: var(--slate); }
.nc-text strong { display: block; font-size: 1.05rem; }
.nc-text small { color: var(--muted); font-size: .9rem; }
.step-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.form .step-nav .btn { width: auto; margin: 0; }
@media (max-width: 560px) { .form .step-nav .btn { flex: 1; } .quote-moose { width: 84px; } }
.form-steps.is-sent .step, .form-steps.is-sent .steps-top { display: none; }
.form-steps.is-sent .form-status { font-size: 1.3rem; padding: 24px 0; text-align: center; }
.contact-strip { list-style: none; padding: 22px 0 0; margin-top: 26px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 16px 34px; }
.contact-strip .label { display: block; font-size: .95rem; color: #c3ced6; }
.contact-strip a, .contact-strip .value { color: var(--white); font-weight: 600; text-decoration: none; }
.contact-strip a:hover { color: var(--teal); }

/* ---------- Service-area map ---------- */
.area-map-section { background: var(--flashing); }
.area-map-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .area-map-grid { grid-template-columns: 1fr; } }
.area-map { margin: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 44px -24px rgba(15,28,38,.45); background: #f6f8f9; }
.area-map > svg { width: 100%; height: auto; display: block; }
.map-county { font: 700 15px var(--display); letter-spacing: .14em; text-transform: uppercase; fill: #9aa7b0; }
.map-water { font: italic 600 15px var(--body); fill: #ffffff; text-anchor: middle; }
.map-city circle { fill: var(--teal); stroke: #fff; stroke-width: 3; transition: r .15s; }
.map-city text { font: 600 17px var(--body); fill: var(--ink); paint-order: stroke; stroke: #f6f8f9; stroke-width: 5px; stroke-linejoin: round; }
.map-city:hover circle, .map-city:focus-visible circle { r: 13; fill: var(--teal-ink); }
.map-city:hover text, .map-city:focus-visible text { fill: var(--teal-ink); text-decoration: underline; }
.map-city:focus-visible { outline: none; }
.map-home circle { fill: var(--teal); stroke: var(--slate); stroke-width: 4; }
.map-home:hover circle { r: 24; }
.map-home text { font-size: 19px; font-weight: 700; }
.map-home .map-sub { font-size: 14px; font-weight: 500; fill: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  [data-area-map] .map-city { opacity: 0; transform: translateY(-24px); transition: opacity .35s ease-out, transform .45s cubic-bezier(.3,1.5,.6,1); transition-delay: calc(var(--d) * 90ms); transform-box: fill-box; }
  [data-area-map].in-view .map-city { opacity: 1; transform: none; }
}

/* ---------- Homepage problem picker ---------- */
.picker-grid { display: grid; grid-template-columns: minmax(240px, 0.75fr) 1.5fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.picker-tabs { display: grid; gap: 0; }
.picker-tabs [role="tab"] {
  position: relative; display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  padding: 18px 20px; margin-top: -6px; border: 0; border-radius: 6px 6px 3px 3px; cursor: pointer; font: inherit; color: var(--on-dark);
  background: linear-gradient(180deg, #34434e, #26323b); box-shadow: 0 4px 0 #151b20, 0 10px 18px -10px rgba(0,0,0,.5);
  transition: transform .2s, background .2s;
}
.picker-tabs [role="tab"]:first-child { margin-top: 0; }
.picker-tabs [role="tab"]:nth-child(odd) { transform: translateX(-6px); }
.picker-tabs [role="tab"]:hover { transform: translateX(6px); }
.picker-tabs [role="tab"][aria-selected="true"] { background: linear-gradient(180deg, var(--teal), #26a893); color: var(--slate); transform: translateX(10px); z-index: 2; }
.picker-tabs strong { display: block; font-family: var(--display); font-size: 1.45rem; text-transform: uppercase; line-height: 1; }
.picker-tabs small { font-size: .92rem; opacity: .85; }
.pt-icon { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.pt-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.picker-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 24px 50px -30px rgba(15,28,38,.45); }
.picker-panel img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.pp-body { padding: clamp(20px, 3vw, 32px); }
.pp-body h3 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); text-transform: uppercase; }
.pp-body ul { list-style: none; padding: 0; margin: 14px 0 20px; display: grid; gap: 8px; }
.pp-body li { display: flex; gap: 10px; align-items: baseline; }
.pp-body li::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--teal); transform: translateY(-1px) rotate(45deg); }
.picker-more { margin-top: 22px; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .picker-panel.is-in { animation: layShingle .45s cubic-bezier(.2,.8,.2,1) both; transform-origin: 50% 0; }
  @keyframes layShingle { from { opacity: 0; transform: perspective(900px) rotateX(-14deg) translateY(-18px); } }
}
@media (max-width: 900px) {
  .picker-grid { grid-template-columns: 1fr; }
  .picker-tabs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .picker-tabs [role="tab"], .picker-tabs [role="tab"]:nth-child(odd) { margin: 0; transform: none; padding: 12px 14px; }
  .picker-tabs [role="tab"][aria-selected="true"] { transform: none; }
  .picker-tabs strong { font-size: 1.15rem; }
  .pt-icon { width: 32px; height: 32px; }
  .picker-panel { grid-template-columns: 1fr; }
  .picker-panel img { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
}

.picker-panel[hidden] { display: none; }

/* ---------- Mid-page call-to-action band ---------- */
.cta-band { background: linear-gradient(90deg, var(--teal), #26a893); color: var(--slate); padding: clamp(26px, 4vw, 40px) 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; }
.cta-band p { margin: 0; font-size: 1.15rem; max-width: 56ch; }
.cta-band strong { display: block; font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.1rem); text-transform: uppercase; line-height: 1.05; }
.cta-band .btn-primary { background: var(--slate); color: var(--white); }
.cta-band .btn-primary:hover { background: #1f303d; color: var(--teal); }
.cta-band .btn-ghost { color: var(--slate); }
.cta-band .btn-ghost:hover { background: var(--slate); color: var(--white); border-color: var(--slate); }

/* ---------- Keep exploring (bottom of each page) ---------- */
.explore { background: var(--white); padding: clamp(40px, 6vw, 72px) 0; }
.explore h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.explore-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .explore-grid { grid-template-columns: 1fr; } }
.explore-card { position: relative; display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.explore-card:hover { border-color: var(--teal-ink); transform: translateY(-3px); box-shadow: 0 16px 30px -20px rgba(15,28,38,.5); color: var(--ink); }
.explore-card img { width: 120px; height: 90px; object-fit: cover; border-radius: 6px; }
.explore-card strong { display: block; font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; line-height: 1.05; }
.explore-card span { color: var(--muted); font-size: .98rem; }
.explore-card em { font-style: normal; color: var(--teal-ink); font-weight: 600; }
.explore-card img[src*="moose"] { object-fit: contain; background: var(--slate); }

/* ---------- FAQ: Ask the moose ---------- */
.ask-moose { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 18px; padding: 14px 16px 0; border-radius: 12px; background: var(--flashing); overflow: hidden; }
.ask-moose img { width: 78px; height: auto; flex: none; margin-bottom: -6px; }
.ask-field { flex: 1; padding-bottom: 14px; }
.ask-field label { display: block; font-family: var(--display); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; margin-bottom: 6px; }
.ask-field input { width: 100%; font: inherit; font-size: 1.1rem; min-height: 52px; padding: 10px 16px; border: 2px solid #b9c5cd; border-radius: 100px; background: var(--white); }
.ask-field input:focus { outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--teal-ink); }
.ask-count { margin: 6px 0 0 6px; font-size: .95rem; font-weight: 600; color: var(--teal-ink); min-height: 1.2em; }
.ask-none { padding: 20px; border: 2px dashed var(--line); border-radius: 12px; margin-bottom: 16px; }
.ask-none p { margin: 0 0 12px; }
.faq summary mark { background: #fbe9a6; color: inherit; border-radius: 3px; padding: 0 2px; }
.faq details[hidden] { display: none; }

/* ---------- About: by the numbers ---------- */
.numbers { background: var(--white); border-bottom: 1px solid var(--line); }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.numbers-grid > div { padding: 28px 16px 28px 0; }
.numbers-grid > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.numbers-grid strong { display: block; font-family: var(--display); font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.numbers-grid span { color: var(--muted); }
@media (max-width: 760px) {
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .numbers-grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .numbers-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
body:has(.ask-moose) .quote-moose { display: none; }

/* ======================================================================
   Services page
   ====================================================================== */

/* Roof Doctor */
.doctor-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .doctor-grid { grid-template-columns: 1fr; } }
.symptoms { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.symptom { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; font-weight: 600; line-height: 1.3; transition: border-color .15s, background-color .15s, transform .15s; }
.symptom:hover { border-color: var(--teal-ink); transform: translateY(-2px); }
.symptom input { position: absolute; opacity: 0; pointer-events: none; }
.symptom::before { content: ""; flex: none; width: 24px; height: 24px; border-radius: 6px; border: 2px solid #b9c5cd; background: var(--white) center / 16px no-repeat; transition: all .15s; }
.symptom:has(input:checked) { border-color: var(--teal-ink); background: #e5f6f2; }
.symptom:has(input:checked)::before { background-color: var(--teal-ink); border-color: var(--teal-ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.symptom:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }
.diagnosis { position: sticky; top: 140px; padding: clamp(20px, 3vw, 30px); border-radius: 14px; background: var(--slate); color: var(--on-dark); text-align: center; box-shadow: 0 24px 50px -30px rgba(15,28,38,.6); }
.gauge { width: min(260px, 80%); height: auto; display: block; margin: 0 auto 6px; }
.gauge .needle { transform-origin: 100px 100px; transform: rotate(-90deg); transition: transform .6s cubic-bezier(.3,1.6,.5,1); }
.gauge path { opacity: .9; }
.dx-level { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.4rem); text-transform: uppercase; color: var(--white); margin: 0 auto 8px; line-height: 1; }
.diagnosis[data-level="1"] .dx-level, [data-doctor][data-level="1"] .dx-level { color: var(--teal); }
[data-doctor][data-level="2"] .dx-level { color: var(--star); }
[data-doctor][data-level="3"] .dx-level { color: #ff7a6b; }
.dx-text { color: var(--on-dark); margin: 0 auto 16px; max-width: 44ch; }
.dx-actions { justify-content: center; }
.dx-actions[hidden], .dx-more[hidden] { display: none; }
.dx-actions .btn-outline { color: var(--white); border-color: rgba(255,255,255,.5); }
.dx-actions .btn-outline:hover { background: var(--white); color: var(--slate); }
.dx-more { margin: 14px 0 0; font-size: .95rem; color: var(--on-dark-muted); max-width: none; }
.dx-more a { color: var(--teal); }
@media (max-width: 900px) { .diagnosis { position: relative; top: 0; } }

/* Sticky service tabs */
.svc-nav { position: sticky; top: 76px; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.svc-nav .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; }
.svc-nav a { flex: none; padding: 10px 16px; border-radius: 100px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s; }
.svc-nav a:hover { background: var(--flashing); color: var(--ink); }
.svc-nav a.on { background: var(--slate); color: var(--white); }
.svc-bays .bay { scroll-margin-top: 150px; }

/* Service bays */
.bay { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.bay + .bay, .claim + .bay { margin-top: clamp(64px, 9vw, 110px); }
.bay:nth-of-type(even) .bay-photo { order: 2; }
.bay-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.bay-tag { display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 100px; background: var(--flashing); color: var(--teal-ink); font-weight: 700; font-size: .9rem; }
.bay h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 20px 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.facts div { padding: 12px 14px; }
.facts div + div { border-left: 1px solid var(--line); }
.facts dt { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 600; line-height: 1.3; }
.ticks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--teal); transform: translateY(-1px) rotate(45deg); }
@media (max-width: 860px) {
  .bay { grid-template-columns: 1fr; }
  .bay:nth-of-type(even) .bay-photo { order: 0; }
  .facts { grid-template-columns: 1fr; }
  .facts div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* Storm claim path: storm cloud at the top, sunshine at the bottom */
.claim { --p: 0; margin-top: clamp(48px, 7vw, 80px); padding: clamp(24px, 4vw, 44px); border-radius: 14px; color: var(--white);
  background: linear-gradient(180deg, #2c3842 0%, color-mix(in srgb, #2c3842 calc((1 - var(--p)) * 100%), #5b92bd) 55%, color-mix(in srgb, #3a4752 calc((1 - var(--p)) * 100%), #9cc6e2) 100%); }
.claim h3 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); text-transform: uppercase; color: var(--white); }
.claim-path { list-style: none; margin: 24px 0 0; padding: 0 0 0 46px; position: relative; counter-reset: cp; }
.claim-path::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 4px; border-radius: 4px; background: rgba(255,255,255,.18); }
.claim-path::after { content: ""; position: absolute; left: 15px; top: 6px; width: 4px; border-radius: 4px; height: calc((100% - 12px) * var(--p)); background: linear-gradient(180deg, #8fa0ab, var(--star)); }
.claim-path li { counter-increment: cp; position: relative; padding: 0 0 22px; opacity: .45; transition: opacity .3s; }
.claim-path li:last-child { padding-bottom: 0; }
.claim-path li::before { content: counter(cp); position: absolute; left: -46px; top: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; background: #3a4752; border: 3px solid rgba(255,255,255,.3); color: var(--white); z-index: 1; transition: all .3s; }
.claim-path li.lit { opacity: 1; }
.claim-path li.lit::before { background: var(--teal); border-color: var(--teal); color: var(--slate); }
.claim-path li:last-child.lit::before { background: var(--star); border-color: var(--star); }
.claim-path strong { display: block; font-size: 1.15rem; }
.claim-path span { color: rgba(255,255,255,.88); }
.claim.is-clear h3::after { content: " \2600"; color: var(--star); }

/* Repair or replace */
.rr-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.rr-card { height: 100%; padding: clamp(20px, 3vw, 30px); border-radius: 12px; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.rr-card .btn { margin-top: auto; align-self: flex-start; }
.rr-card h3 { font-size: 1.9rem; text-transform: uppercase; }
.rr-card.is-replace { border: 2px solid var(--teal-ink); }
.rr-vs { font-family: var(--display); font-weight: 700; font-size: 1.6rem; text-transform: uppercase; color: var(--muted); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); }
.rr-note { margin-top: 22px; font-weight: 600; }
@media (max-width: 820px) { .rr-grid { grid-template-columns: 1fr; } .rr-vs { justify-self: center; } }

/* ---------- Home roof build: cutaway sample that stacks up as the roof goes on ---------- */
.layer-progress { display: flex; align-items: center; gap: 12px; margin: 6px 0 18px; }
.lp-label { font-weight: 700; color: var(--teal-ink); min-width: 0; flex: 1 1 auto; }
.lp-bar { flex: 0 0 34%; height: 8px; border-radius: 100px; background: #d5dde2; overflow: hidden; }
.lp-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--star)); }
.layers.is-built .lp-label { color: var(--ink); font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; }
.layer-stack { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; gap: 6px; }
.layer-stack li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; }
.ls-strip { display: block; width: 100%; border-radius: 4px; border: 2px dashed #b9c5cd; background: transparent; transition: background .3s, border-color .3s, transform .4s cubic-bezier(.3,1.5,.5,1), box-shadow .3s; }
.ls-deck .ls-strip { height: 26px; }
.ls-under .ls-strip { height: 10px; }
.ls-flash .ls-strip { height: 12px; width: 108%; margin-left: -4%; }
.ls-shingle .ls-strip { height: 26px; width: 104%; margin-left: -2%; }
.ls-ridge .ls-strip { height: 16px; width: 60%; margin: 0 auto; border-radius: 10px 10px 4px 4px; }
.layer-stack li.is-active .ls-strip, .layer-stack li.is-done .ls-strip { border-style: solid; transform: none; }
.ls-deck.is-active .ls-strip, .ls-deck.is-done .ls-strip { background: url("/img/brand/wood.png") center / 160px auto; border-color: #8e6a35; }
.ls-under.is-active .ls-strip, .ls-under.is-done .ls-strip { background: repeating-linear-gradient(90deg, #7f8990 0 22px, #6c767d 22px 24px); border-color: #5d666c; }
.ls-flash.is-active .ls-strip, .ls-flash.is-done .ls-strip { background: linear-gradient(180deg, #eef2f4, #9aa7b0); border-color: #8fa0ab; }
.ls-shingle.is-active .ls-strip, .ls-shingle.is-done .ls-strip { background: url("/img/brand/grain.png"), repeating-linear-gradient(90deg, #3a444c 0 26px, #151b20 26px 28px, #444e56 28px 52px, #151b20 52px 54px, #2e3840 54px 82px, #151b20 82px 84px); border-color: #151b20; }
.ls-ridge.is-active .ls-strip, .ls-ridge.is-done .ls-strip { background: linear-gradient(180deg, var(--teal), #26a893); border-color: var(--teal-ink); }
.layer-stack li.is-active .ls-strip { box-shadow: 0 0 0 4px rgba(47,198,175,.28); }
.ls-text h3 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin: 0; color: var(--muted); transition: color .3s; }
.ls-num { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .95rem; border: 2px solid #b9c5cd; color: var(--muted); background: var(--flashing); }
.layer-stack li.is-active .ls-text h3, .layer-stack li.is-done .ls-text h3 { color: var(--ink); }
.layer-stack li.is-active .ls-num { background: var(--teal); border-color: var(--teal); color: var(--slate); animation: nailPulse 1s ease-in-out infinite; }
.layer-stack li.is-done .ls-num { background: var(--teal-ink); border-color: var(--teal-ink); color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); background-size: 15px; background-position: center; background-repeat: no-repeat; animation: none; }
.ls-text p { margin: 4px 0 0 36px; font-size: .98rem; color: var(--muted); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s, opacity .35s; }
.layer-stack li.is-active .ls-text p { max-height: 12em; opacity: 1; }
@keyframes nailPulse { 50% { box-shadow: 0 0 0 6px rgba(47,198,175,.25); } }
@media (max-width: 900px) {
  .layers-stage svg { max-height: 36vh; }
  .layer-progress { margin: 4px 0 10px; }
  .layer-stack { gap: 4px; }
  .layer-stack li { grid-template-columns: 84px 1fr; gap: 10px; }
  .ls-deck .ls-strip, .ls-shingle .ls-strip { height: 18px; }
  .ls-text h3 { font-size: 1.05rem; }
  .ls-text p { font-size: .88rem; margin-left: 36px; }
  .layers .layers-hint { display: none; }
  .layers .layers-cta { margin-top: 12px; min-height: 44px; font-size: 1.05rem; }
}
/* Without JavaScript or with reduced motion: show the finished sample with every description */
.layers:not(.is-live) .layer-stack li .ls-strip { border-style: solid; }
.layers:not(.is-live) .ls-text p { max-height: none; opacity: 1; }
.layers:not(.is-live) .ls-text h3 { color: var(--ink); }
.layers:not(.is-live) .layer-progress { display: none; }
@media (prefers-reduced-motion: reduce) { .layer-stack li.is-active .ls-num { animation: none; } }
@media (max-width: 900px) { .layer-progress { flex-wrap: wrap; gap: 6px; } .lp-bar { flex-basis: 100%; } }

/* Picker v2: tabs fill the panel's height, no zig-zag, link sits at the bottom of the column */
.picker-grid { align-items: stretch; }
.picker-side { display: flex; flex-direction: column; }
.picker-tabs { display: flex; flex-direction: column; gap: 0; flex: 1; }
.picker-tabs [role="tab"] { flex: 1; min-height: 84px; }
.picker-tabs [role="tab"]:nth-child(odd) { transform: none; }
.picker-tabs [role="tab"]:hover { transform: translateX(4px); }
.picker-tabs [role="tab"][aria-selected="true"] { transform: translateX(12px); }
.picker-side .picker-more { margin: 18px 0 0; }
@media (max-width: 900px) {
  .picker-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: none; }
  .picker-tabs [role="tab"], .picker-tabs [role="tab"][aria-selected="true"], .picker-tabs [role="tab"]:hover { min-height: 0; transform: none; }
  .picker-side .picker-more { order: 2; }
}

/* Four-county map refinements */
.area-map .map-city text { font-size: 14.5px; }
.area-map .map-city:hover circle, .area-map .map-city:focus-visible circle { r: 10; }
.area-map .map-home circle { r: 19; }
.area-map .map-home:hover circle { r: 21; }
.area-map .map-home text { font-size: 17px; }
.map-county { font-size: 20px; letter-spacing: .2em; fill: #aab5bc; }
.map-country { font: 600 15px var(--body); fill: #8a979f; text-anchor: middle; letter-spacing: .04em; }
.map-water { font-size: 17px; }
.map-river { font-size: 12px; fill: #5b7f99; font-style: italic; }
.areas-more { margin-top: 16px; color: var(--muted); }
.areas-more a { font-weight: 600; }
.county-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 24px; }
.county-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.county-card.is-home { border: 2px solid var(--teal-ink); }
.county-card h3 { font-size: 1.7rem; text-transform: uppercase; margin-bottom: 4px; }
.county-note { margin: 0 0 8px; color: var(--teal-ink); font-weight: 700; font-size: .95rem; }
.county-card ul { list-style: none; padding: 0; margin: 10px 0 0; columns: 2; column-gap: 14px; }
.county-card li { padding: 3px 0; break-inside: avoid; }

/* Service zone traced from the owner's drawing */
.map-zone { fill: #2fc6af; fill-opacity: .13; stroke: var(--teal-ink); stroke-width: 3; stroke-dasharray: 10 6; stroke-linejoin: round; }
.map-home-label { font: 700 17px var(--body); fill: var(--ink); paint-order: stroke; stroke: #f6f8f9; stroke-width: 5px; stroke-linejoin: round; }
.area-map .map-sub { font: 500 13px var(--body); fill: var(--muted); paint-order: stroke; stroke: #f6f8f9; stroke-width: 4px; }
.area-map .map-city text { font-size: 13.5px; }
.area-map .map-city circle { r: 6; }
.area-map .map-city:hover circle, .area-map .map-city:focus-visible circle { r: 9; }
.area-map .map-home circle { r: 16; }
.area-map .map-home:hover circle { r: 18; }
.area-map .map-county { font-size: 17px; }
.map-zone-fill { fill: #2fc6af; fill-opacity: .13; }
.map-zone-line { fill: none; stroke: var(--teal-ink); stroke-width: 3; stroke-dasharray: 10 6; stroke-linejoin: round; }
.map-small { font-size: 13px; }
.map-zone-line { stroke-dasharray: none; stroke-width: 2.5; stroke-opacity: .85; }

/* ---------- Real street map (Leaflet + OpenStreetMap) ---------- */
.service-map { height: clamp(380px, 62vh, 560px); width: 100%; background: #e9eef1; border-radius: 12px; z-index: 0; font-family: var(--body); }
.service-map-loading { display: grid; place-items: center; height: 100%; margin: 0; color: var(--muted); font-weight: 600; max-width: none; }
.service-map .leaflet-tile-pane { filter: grayscale(1) contrast(.92) brightness(1.06); }
.service-map .leaflet-control-zoom a { width: 40px; height: 40px; line-height: 40px; font-size: 20px; color: var(--ink); }
.service-map .leaflet-control-attribution { font-size: 11px; }
.map-moose { background: none; border: 0; }
.map-moose img { width: 56px; height: auto; display: block; filter: drop-shadow(0 6px 6px rgba(0,0,0,.35)); }
.map-moose span { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); white-space: nowrap; background: var(--slate); color: var(--white); font: 700 11px var(--body); padding: 2px 7px; border-radius: 100px; }
.leaflet-tooltip { font: 600 13px var(--body); color: var(--ink); border-radius: 6px; }
.leaflet-popup-content { margin: 12px 14px; text-align: center; }
.map-pop-town { display: block; font: 700 18px var(--display); text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.map-pop-btn { display: inline-block; padding: 8px 12px; border-radius: 6px; background: var(--teal); color: var(--slate) !important; font: 700 14px var(--body); text-decoration: none; }
.map-pop-btn:hover { background: var(--teal-hover); }
.map-list { margin-top: 16px; }
.map-list summary { cursor: pointer; font-weight: 700; color: var(--teal-ink); }
.map-list ul { padding-left: 1.1em; margin: 10px 0 0; display: grid; gap: 8px; font-size: .98rem; }
@media (max-width: 860px) { .service-map { height: 420px; } }
.service-map svg { max-width: none; }
.service-map .leaflet-control-attribution svg { display: none !important; }
.service-map .leaflet-marker-pane .map-moose img { width: 56px !important; height: auto !important; }

/* Roofs-we've-worked-on layer */
.jobs-stat { margin: 0 0 14px; padding: 12px 16px; border-left: 4px solid #f5c21b; background: #fff8e0; border-radius: 0 8px 8px 0; }
.jobs-stat strong { font-family: var(--display); font-size: 1.25rem; text-transform: uppercase; }
.map-legend { display: grid; gap: 4px; padding: 8px 12px; background: rgba(255,255,255,.94); border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.15); font-size: .85rem; font-weight: 600; color: #15222c; }
.map-legend span { display: flex; align-items: center; gap: 8px; }
.map-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.map-legend .lg-job { background: #f5c21b; border: 1px solid #15222c; }
.map-legend .lg-zone { background: rgba(47,198,175,.35); border-radius: 3px; }

/* Footer social links */
.site-footer .social { display: flex; gap: 10px; margin-top: 16px; }
.site-footer .social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); color: var(--white); transition: background-color .2s, color .2s, border-color .2s; }
.site-footer .social a:hover { background: var(--teal); border-color: var(--teal); color: var(--slate); }
.site-footer .social svg { width: 20px; height: 20px; }

/* ======================================================================
   Extras: storm mode, season strip, moose reactions, exit offer, estimator, after-call, before/after
   ====================================================================== */

/* Storm mode: rain over the homepage hero */
.hero-home { position: relative; }
.rain { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.rain::before, .rain::after { content: ""; position: absolute; inset: -140px 0 0 0; animation: rainFall .55s linear infinite; }
.rain::before { background: linear-gradient(105deg, transparent 48%, rgba(205,228,246,.55) 49%, transparent 50%) 0 0 / 26px 90px; --rh: 90px; }
.rain::after { background: linear-gradient(105deg, transparent 48%, rgba(205,228,246,.35) 49%, transparent 50%) 7px 0 / 41px 130px; --rh: 130px; animation-duration: .8s; }
@keyframes rainFall { to { transform: translateY(var(--rh, 90px)); } }
.rc-stage .rain { border-radius: 14px; }
@media (prefers-reduced-motion: reduce) { .rain::before, .rain::after { animation: none; } }

/* Seasonal strip */
.season-strip { background: var(--teal); color: var(--slate); }
.season-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 9px; padding-bottom: 9px; }
.season-inner p { margin: 0; font-weight: 600; font-size: .98rem; line-height: 1.35; }
.season-inner a { color: var(--slate); text-decoration: underline; white-space: nowrap; }
.season-close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--slate); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.season-close:hover { background: rgba(15,28,38,.12); }

/* Moose reactions */
.quote-moose.is-waving { animation: mooseWave 1s ease-in-out 2; transform-origin: 50% 90%; }
@keyframes mooseWave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
.quote-head { position: relative; }
.moose-bubble { position: absolute; right: clamp(100px, 14vw, 160px); top: 0; margin: 0; max-width: 220px; padding: 10px 14px; border-radius: 14px; background: var(--white); color: var(--ink); font-weight: 600; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.moose-bubble::after { content: ""; position: absolute; right: -8px; bottom: 14px; border: 8px solid transparent; border-left-color: var(--white); border-right: 0; }
.rc-moose.is-cheering { animation: moosePop 1.2s ease-in-out; }
@keyframes moosePop { 0%, 100% { transform: none; } 25% { transform: translateY(-22px) rotate(-5deg); } 50% { transform: translateY(0); } 70% { transform: translateY(-12px) rotate(4deg); } }
.confetti { position: absolute; top: 28%; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; z-index: 5; animation: confettiFall 1.7s ease-out forwards; }
@keyframes confettiFall { from { transform: translate(0, 0) rotate(0); opacity: 1; } to { transform: translate(var(--dx, 0), 260px) rotate(540deg); opacity: 0; } }

/* Exit offer */
.exit-pop { border: 0; border-radius: 16px; padding: 28px; width: calc(100% - 32px); max-width: 580px; background: var(--white); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.exit-pop[open] { display: grid; grid-template-columns: 110px 1fr; gap: 22px; align-items: center; }
.exit-pop::backdrop { background: rgba(15,28,38,.72); }
.exit-pop img { width: 110px; height: auto; }
.exit-pop h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); text-transform: uppercase; margin: 0 0 8px; }
.exit-pop p { margin: 0 0 16px; color: var(--muted); }
.exit-pop .btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.exit-x { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.exit-x:hover { background: var(--flashing); }
@media (max-width: 520px) { .exit-pop[open] { grid-template-columns: 1fr; } .exit-pop img { display: none; } }

/* Roof cost estimator */
.est-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.est-controls { display: grid; gap: 14px; margin-top: 22px; }
.est-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.est-row output { font-family: var(--display); font-size: 1.5rem; color: var(--teal-ink); }
.estimator input[type=range] { width: 100%; accent-color: var(--teal-ink); }
.est-choice { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.est-choice legend { float: left; width: 100%; padding: 0; margin-bottom: 8px; font-weight: 600; }
.est-choice label { position: relative; }
.est-choice input { position: absolute; opacity: 0; inset: 0; }
.est-choice span { display: inline-block; min-width: 56px; text-align: center; padding: 10px 16px; border: 2px solid var(--line); border-radius: 100px; font-weight: 600; background: var(--white); cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.est-choice input:checked + span { border-color: var(--teal-ink); background: var(--teal-ink); color: var(--white); }
.est-choice input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.est-card { position: sticky; top: 120px; padding: clamp(22px, 3vw, 34px); border-radius: 14px; background: var(--slate); color: var(--on-dark); box-shadow: 0 24px 50px -30px rgba(15,28,38,.6); }
.est-label { margin: 0; color: var(--on-dark-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.est-range { margin: 6px 0 4px; font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.3rem); line-height: 1.05; color: var(--star); }
.est-detail { margin: 0 0 14px; color: var(--white); }
.est-note { font-size: .92rem; color: var(--on-dark-muted); max-width: none; }
@media (max-width: 860px) { .est-grid { grid-template-columns: 1fr; } .est-card { position: relative; top: 0; } }

/* What happens after you call */
.after-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: as; }
.after-steps li { counter-increment: as; position: relative; padding-top: 58px; }
.after-steps li::before { content: counter(as); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-ink); color: var(--white); font-family: var(--display); font-weight: 700; font-size: 1.4rem; }
.after-steps li:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: 56px; right: -12px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.after-steps strong { display: block; font-size: 1.15rem; margin-bottom: 4px; }
.after-steps span { color: var(--muted); }
@media (max-width: 900px) { .after-steps { grid-template-columns: 1fr 1fr; } .after-steps li::after { display: none; } }
@media (max-width: 520px) { .after-steps { grid-template-columns: 1fr; } }

/* Text us a photo: phones only */
.contact-strip .text-photo { display: none; }
@media (pointer: coarse) { .contact-strip .text-photo { display: block; } }

/* Before / after sliders */
.ba-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 26px; }
.ba { margin: 0; }
.ba-stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: #000; user-select: none; -webkit-user-select: none; }
.ba-stage:has(.ba-range:focus-visible) { outline: 3px solid var(--teal); outline-offset: 3px; }
.ba-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; background: var(--white); transform: translateX(-50%); box-shadow: 0 0 10px rgba(0,0,0,.5); pointer-events: none; }
.ba-handle i { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; border-radius: 50%; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1c26' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 26px no-repeat; transform: translate(-50%, -50%); box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.ba-tag { position: absolute; top: 12px; padding: 5px 12px; border-radius: 100px; background: rgba(15,28,38,.82); color: var(--white); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; pointer-events: none; }
.ba-tag-b { left: 12px; }
.ba-tag-a { right: 12px; background: rgba(13,115,102,.92); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none; background: transparent; }
.ba-range::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.ba-range::-moz-range-track { height: 100%; background: transparent; }
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 56px; height: 1000px; }
.ba-range::-moz-range-thumb { width: 56px; height: 1000px; border: 0; background: transparent; }
.ba figcaption { margin-top: 10px; font-weight: 600; }
.ba figcaption span { color: var(--muted); font-weight: 400; margin-left: 6px; }
.ba-section[hidden] { display: none; }
.hero-home .hero-grid { position: relative; z-index: 2; }
.rc-stage .rain { z-index: 3; }

/* ======================================================================
   How a roof comes together: one-day build (overlays, controls, photos)
   ====================================================================== */
.layers-stage { position: relative; }
.layers-sub { margin: 4px 0 10px; color: var(--muted); font-weight: 500; }

.layers-clock { position: absolute; left: 14px; top: 14px; padding: 3px 14px 3px 36px; border-radius: 100px; background: rgba(15,28,38,.84) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232fc6af' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") 10px center / 20px no-repeat; color: var(--white); font-family: var(--display); font-size: 1.35rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; pointer-events: none; }

.layers-bubble { position: absolute; right: 13%; bottom: 25%; max-width: 36%; padding: 10px 14px; border-radius: 14px; background: var(--white); color: var(--ink); font-weight: 600; font-size: .95rem; line-height: 1.3; box-shadow: 0 8px 22px rgba(0,0,0,.28); pointer-events: none; }
.layers-bubble p { margin: 0; max-width: none; }
.layers-bubble::after { content: ""; position: absolute; right: -8px; bottom: 18px; border: 8px solid transparent; border-left-color: var(--white); border-right: 0; }
.layers-bubble.is-new { animation: bubbleIn .35s ease-out; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.layers-rain { position: absolute; inset: 0; border-radius: 10px; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .6s; }
.layers.is-raining .layers-rain { opacity: 1; }
.layers-rain::before, .layers-rain::after { content: ""; position: absolute; inset: -140px 0 0 0; animation: rainFall .55s linear infinite; }
.layers-rain::before { background: linear-gradient(105deg, transparent 48%, rgba(205,228,246,.6) 49%, transparent 50%) 0 0 / 26px 90px; --rh: 90px; }
.layers-rain::after { background: linear-gradient(105deg, transparent 48%, rgba(205,228,246,.4) 49%, transparent 50%) 7px 0 / 41px 130px; --rh: 130px; animation-duration: .8s; }
.layers-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: 10px; }

.lmoose { transform-box: fill-box; transform-origin: 50% 100%; filter: drop-shadow(0 6px 6px rgba(0,0,0,.35)); }
.layers.is-built .lmoose { animation: layersCheer 1.2s ease-in-out 2; }
@keyframes layersCheer { 0%, 100% { transform: none; } 30% { transform: translateY(-30px) rotate(-5deg); } 60% { transform: translateY(0); } 80% { transform: translateY(-16px) rotate(4deg); } }

/* Step list: buttons that jump, and "See a real one" */
.ls-btn { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ls-btn:focus-visible, .ls-photo:focus-visible, .ld-swatches button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.ls-photo { padding: 0; margin-left: 4px; border: 0; background: none; font: inherit; font-weight: 700; color: var(--teal-ink); text-decoration: underline; cursor: pointer; white-space: nowrap; }
.ls-text p { pointer-events: auto; }
.ls-tear .ls-strip { height: 26px; }
.ls-tear.is-active .ls-strip, .ls-tear.is-done .ls-strip { background: repeating-linear-gradient(90deg, #6b6258 0 24px, #2a2622 24px 26px, #766d62 26px 50px, #2a2622 50px 52px); border-color: #4a443d; }
.ls-under.is-active .ls-strip, .ls-under.is-done .ls-strip { background: linear-gradient(180deg, #252d33 0 42%, transparent 42%), repeating-linear-gradient(90deg, #7f8990 0 22px, #6c767d 22px 24px); border-color: #5d666c; }
.ls-under .ls-strip { height: 14px; }

.layers-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.layers-actions .layers-hint { margin-top: 0; }
.layers-play { gap: 8px; }
.layers-play svg { width: 18px; height: 18px; flex: none; }
.layers-play[hidden] { display: none; }
.layers-done { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); animation: bubbleIn .4s ease-out; }
.layers-done[hidden] { display: none; }
.ld-title { margin: 0 0 8px; font-weight: 700; }
.ld-swatches { display: flex; gap: 12px; }
.ld-swatches button { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #d5dde2; background: var(--c); cursor: pointer; padding: 0; transition: transform .15s, box-shadow .15s; }
.ld-swatches button:hover { transform: scale(1.08); }
.ld-swatches button[aria-checked="true"] { border-color: var(--teal-ink); box-shadow: 0 0 0 3px rgba(47,198,175,.35); }
.layers:not(.is-live) .layers-actions { display: none; }

/* Real-photo pop-up */
.photo-pop { border: 0; padding: 0; border-radius: 12px; width: min(92vw, 900px); background: var(--slate); color: var(--white); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.photo-pop::backdrop { background: rgba(15,28,38,.78); }
.photo-pop figure { margin: 0; }
.photo-pop img { display: block; width: auto; height: auto; max-width: 100%; max-height: 72vh; margin: 0 auto; }
.photo-pop figcaption { padding: 12px 18px 16px; font-weight: 600; }
.photo-pop-x { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(15,28,38,.7); color: var(--white); font-size: 1.7rem; line-height: 1; cursor: pointer; }

@media (max-width: 900px) {
  .layers-sub { display: none; }
  .layers-clock { font-size: 1.1rem; left: 10px; top: 10px; }
  .layers-bubble { font-size: .8rem; padding: 7px 10px; max-width: 42%; bottom: 22%; }
  .layers-actions { margin-top: 8px; gap: 10px; }
  .layers .layers-hint { display: none; }
  .layers-done { margin-top: 8px; padding: 8px 12px; display: flex; align-items: center; gap: 12px; }
  .ld-title { margin: 0; }
  .ld-swatches button { width: 34px; height: 34px; }
  .ls-photo { display: none; }
}
@media (prefers-reduced-motion: reduce) { .layers.is-built .lmoose, .layers-bubble.is-new, .layers-done { animation: none; } .layers-rain { display: none; } }

/* Bubble sits in the sky above the foreman moose so it never covers the house */
.layers-bubble { right: 3%; bottom: auto; top: 11%; max-width: 31%; }
.layers-bubble::after { right: 22%; bottom: -8px; border: 8px solid transparent; border-top-color: var(--white); border-bottom: 0; border-left-color: transparent; }
@media (max-width: 900px) { .layers-bubble { top: 11%; max-width: 40%; } }

/* Phones: only the current step is shown, and the pinned area never clips its top */
@media (max-width: 900px) {
  .layers-sticky { align-items: flex-start; padding-top: 6px; }
  .layers.is-live .layer-stack li:not(.is-active) { display: none; }
  .layers.is-live .layer-stack li.is-active { display: grid; }
  .layers.is-live.is-built .layer-stack { display: none; }
  .layers-copy h2 { font-size: 1.7rem; }
  .layer-progress { margin: 4px 0 8px; }
}
@media (max-width: 560px) { .layers-bubble { display: none; } }

/* Reduced-motion note (footer) */
.motion-note { margin: 14px 0 0; font-size: .9rem; color: var(--on-dark-muted); }
.motion-btn { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--teal); text-decoration: underline; cursor: pointer; }

/* Phones: the roof checker's speech bubble sits under the picture instead of covering the roof */
@media (max-width: 980px) {
  .rc-stage { display: grid; grid-template-columns: 100%; }
  .rc-stage > .rc-house, .rc-stage > .rc-house-slot { grid-row: 1; grid-column: 1; }
  .rc-stage > .rc-moose { position: relative; left: auto; bottom: auto; grid-row: 1; grid-column: 1; align-self: end; justify-self: start; width: clamp(60px, 17vw, 92px); margin: 0 0 -12px -6px; z-index: 2; }
  .rc-stage > .rc-bubble { position: relative; left: auto; top: auto; grid-row: 2; grid-column: 1; max-width: none; margin-top: 20px; font-size: .92rem; }
  .rc-stage > .rc-bubble::before { content: ""; position: absolute; left: 44px; top: -8px; border: 8px solid transparent; border-bottom-color: var(--white); border-top: 0; }
}

/* "Animations are paused" strip (phones with Reduce Motion on) */
.motion-strip { background: var(--shingle); color: var(--white); }
.motion-strip .season-inner p { font-weight: 500; }
.motion-strip .season-close { color: var(--white); }
.motion-strip .season-close:hover { background: rgba(255,255,255,.14); }
.motion-top { color: var(--teal); font-weight: 700; white-space: nowrap; }
