/* ABP Roofing & Siding — site styles
   Palette from the ABP brand artwork: black field, white letters, gold trim.
   Layout: black header/footer and black "process" bands carry the logo; white
   content sections keep the type readable; gold is used as a rule and an
   accent, never as a fill behind text. Tokens are at the top. */

:root {
  --black: #050505;
  --coal: #121212;          /* dark section background */
  --coal-2: #1C1C1C;        /* cards on dark */
  --ink: #141414;           /* headings on light */
  --body: #3A3A3A;
  --muted: #5C5C5C;
  --line: #DDDAD3;
  --line-strong: #B8B3A8;
  --paper: #FFFFFF;
  --stone: #F4F2EC;         /* warm off-white (the siding in the logo) */
  --stone-deep: #E9E5DC;
  --gold: #C99A62;          /* sampled from the logo lettering */
  --gold-deep: #805E35;      /* AA on white, stone and stone-deep */
  --gold-light: #E0B987;    /* gold for text on black */
  --danger: #B42318;

  --font-head: "Barlow", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: 20px;
  --header-h: 88px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

@media (min-width: 720px) { :root { --gutter: 40px; } }
@media (min-width: 1100px) { :root { --gutter: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.site-header :focus-visible, .section-black :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--gold-light); }
.skip { position: absolute; left: 0; top: -100px; padding: 12px 18px; background: var(--gold); color: var(--black); z-index: 100; font-weight: 700; }
.skip:focus { top: 0; }

/* ---------- Type ---------- */
.h1, .hero-h, .h2, .h3, .h4 { font-family: var(--font-head); text-wrap: balance; }
.h1, .hero-h { font-weight: 800; letter-spacing: -0.01em; line-height: 1; color: var(--ink); text-transform: uppercase; }
.h1 { font-size: clamp(2.2rem, 1.2rem + 4.2vw, 5rem); overflow-wrap: break-word; hyphens: auto; }
.hero-h { font-size: clamp(2.6rem, 1.3rem + 4.8vw, 5.2rem); color: #fff; max-width: 15ch; }
.h2 { font-weight: 700; letter-spacing: -0.005em; line-height: 1.05; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); color: var(--ink); }
.h2-light { color: #fff; }
.h3 { font-weight: 700; line-height: 1.1; font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.1rem); color: var(--ink); text-transform: uppercase; letter-spacing: .01em; }
.h3-light { color: #fff; }
.h4 { font-weight: 700; font-size: 1.25rem; line-height: 1.25; color: var(--ink); }
.h4-light { color: #fff; }
.lead { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); line-height: 1.55; color: var(--body); }
.lead-light { color: rgba(255,255,255,.82); }
.h1 + .lead, .h2 + .lead, .h3 + .lead, .h1 + .note, .h2 + .note, .h3 + .note { margin-top: 1rem; }
.eyebrow { font-family: var(--font-head); font-size: .82rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 1rem; display: flex; align-items: center; gap: .75rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow a { text-decoration: none; }
.eyebrow-gold { color: var(--gold-light); }
.meta { font-size: .95rem; color: var(--muted); }
.note { font-size: 1rem; color: var(--muted); max-width: 60ch; margin-top: 1rem; }
.fine { font-size: .9rem; color: var(--muted); margin-top: 1rem; }
.fine a { color: var(--gold-deep); }
.photo-note { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: .6rem; }

.text-link { display: inline-block; margin-top: 1.25rem; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; color: var(--ink); text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid var(--gold); transition: border-color .2s var(--ease), color .2s var(--ease); }
.text-link:hover { color: var(--gold-deep); border-color: var(--ink); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 54px; padding: 0 1.8rem; font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; border-radius: 2px; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-primary { background: var(--black); color: #fff; border-color: var(--black); }
.btn-primary:hover { background: var(--coal-2); border-color: var(--coal-2); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost-light:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); border-bottom: 1px solid rgba(201,154,98,.35); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 62px; width: auto; }
@media (min-width: 900px) { .brand img { height: 74px; } }

.nav { display: flex; align-items: center; }
.nav-list { display: none; }
.nav-list li { white-space: nowrap; }
.nav-list a:not(.btn) { text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.nav-list a:not(.btn):hover { color: var(--gold-light); }
.nav-list a[aria-current="page"] { color: var(--gold-light); border-bottom: 2px solid var(--gold); padding-bottom: 3px; }
.nav-toggle { appearance: none; background: none; border: 1px solid rgba(255,255,255,.35); border-radius: 2px; width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 20px; height: 2px; background: #fff; content: ""; position: relative; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle-bar::before { position: absolute; top: -6px; }
.nav-toggle-bar::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1099.98px) {
  .nav-list.is-open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: var(--black); border-bottom: 2px solid var(--gold); padding: .5rem var(--gutter) 1.25rem; gap: 0; }
  .nav-list.is-open li { border-top: 1px solid rgba(255,255,255,.12); }
  .nav-list.is-open li a:not(.btn) { display: block; padding: .95rem 0; font-size: 1.15rem; }
  .nav-list.is-open a[aria-current="page"] { border-bottom: 0; }
  .nav-list.is-open .nav-cta { border-top: 0; padding-top: .75rem; }
  .nav-list.is-open .nav-cta .btn { width: 100%; }
}
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .nav-list { display: flex; align-items: center; gap: 1.6rem; }
  .nav-phone a { color: var(--gold-light) !important; font-size: 1.1rem !important; letter-spacing: .02em !important; }
}

/* ---------- Layout helpers ---------- */
.section { padding-block: clamp(3.5rem, 6vw, 7rem); }
.section-tight { padding-block: clamp(2rem, 4vw, 4rem); }
.section-stone { background: var(--stone); }
.section-black { background: var(--coal); color: rgba(255,255,255,.82); }
.section-black p { color: rgba(255,255,255,.78); }
.section-gold-rule { border-top: 4px solid var(--gold); background: var(--stone); }
.grid-2-1 { display: grid; gap: 1.5rem 3rem; }
.grid-2-1 > * { min-width: 0; }
@media (min-width: 900px) { .grid-2-1 { grid-template-columns: 5fr 7fr; align-items: start; } }

.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(86vh, 800px); display: grid; grid-template-rows: 1fr auto; color: #fff; background: var(--black); isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img, .hero-media picture { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,.25) 0%, rgba(5,5,5,.30) 40%, rgba(5,5,5,.86) 100%); }
.hero-content { position: relative; align-self: end; padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 5vw, 4rem); }
.hero-sub { max-width: 56ch; font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); line-height: 1.55; color: rgba(255,255,255,.9); margin-top: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-strip { position: relative; background: rgba(5,5,5,.92); border-top: 2px solid var(--gold); }
.hero-strip-row { min-width: 0; display: flex; flex-wrap: wrap; gap: .5rem 2rem; align-items: center; min-height: 56px; padding-block: .6rem; font-family: var(--font-head); font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); }
.hero-strip-row span::before { content: "\25C6"; font-size: .55em; margin-right: .6rem; vertical-align: middle; color: var(--gold); }
.hero-note { margin-left: auto; color: rgba(255,255,255,.45); font-weight: 500; letter-spacing: .08em; font-size: .72rem; }
.hero-note::before { content: none !important; }

/* ---------- Page head ---------- */
.page-head { padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .page-head .grid-2-1 { grid-template-columns: 7fr 5fr; } }
.page-head-photo { border-bottom: 0; padding-bottom: 0; }
.page-photo { margin-top: clamp(2rem, 4vw, 3.5rem); }
.page-photo img, .page-photo picture img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
@media (max-width: 719.98px) { .page-photo img, .page-photo picture img { aspect-ratio: 4 / 3; } }

/* ---------- Service cards (home) ---------- */
.services-grid { display: grid; gap: 2.5rem; }
@media (min-width: 720px) { .services-grid { grid-template-columns: 1fr 1fr; gap: 3rem 2.5rem; } }
.service-card { display: block; text-decoration: none; color: inherit; }
.service-media { overflow: hidden; background: var(--stone-deep); }
.service-media img, .service-media picture img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.03); }
.service-text { padding-top: 1.1rem; border-top: 3px solid var(--black); margin-top: 1.1rem; }
.service-text p { margin-top: .5rem; max-width: 52ch; }

/* ---------- Ledger rows ---------- */
.ledger { border-top: 2px solid var(--ink); }
.ledger-row { display: grid; gap: .5rem 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .ledger-row { grid-template-columns: 15rem 1fr; } }
.ledger-row p { max-width: 60ch; }

/* ---------- Materials ---------- */
.materials { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .materials { grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; } }
.material { padding-top: 1rem; border-top: 3px solid var(--gold); }
.material dt { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--ink); margin-bottom: .4rem; }
.material dd { color: var(--body); }

/* ---------- Trio ---------- */
.trio { display: grid; gap: 1.75rem; margin-top: 2.5rem; }
@media (min-width: 900px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.trio-item { padding-top: 1rem; border-top: 1px solid var(--line-strong); }
.trio-item p { margin-top: .5rem; }

/* ---------- Steps (black) ---------- */
.steps { display: grid; gap: 2rem; margin-top: 2.5rem; }
@media (min-width: 720px) { .steps { grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; } }
@media (min-width: 1100px) { .steps-4 { grid-template-columns: repeat(4, 1fr); } }
.step { padding-top: 1.1rem; border-top: 1px solid rgba(201,154,98,.45); }
.step-num { display: block; font-family: var(--font-head); font-weight: 700; font-size: .9rem; letter-spacing: .14em; color: var(--gold-light); margin-bottom: .9rem; }
.step p { margin-top: .5rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; font-family: var(--font-head); font-weight: 700; color: var(--ink); position: relative; font-size: 1.15rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-weight: 500; font-size: 1.6rem; color: var(--gold-deep); transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 0 1.25rem; max-width: 62ch; }

/* ---------- Area ---------- */
.area-list { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin-top: 1.5rem; }
.area-list li { padding: .4rem .9rem; border: 1px solid var(--line-strong); border-radius: 2px; font-family: var(--font-head); font-weight: 600; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--black); color: #fff; border-top: 4px solid var(--gold); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 5fr 7fr; gap: 3.5rem; align-items: start; } }
.about-photo img, .about-photo picture img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.prose p + p, .prose h2 + p, .prose p + h2 { margin-top: 1.1rem; }
.prose h2 { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--ink); margin-top: 2rem; }
.prose a { color: var(--gold-deep); }
.prose { max-width: 68ch; }
.team { border-top: 2px solid var(--ink); }
.team li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.team-name { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.team-role { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 4fr 8fr; gap: 4rem; align-items: start; } }
.facts { display: grid; gap: 1rem; }
.facts dt { font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.facts dd { color: var(--ink); font-weight: 500; font-size: 1.1rem; }
.facts a { text-decoration: none; }
.facts a:hover { text-decoration: underline; }

.inquiry { display: grid; gap: 1.1rem; padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--stone); border-top: 4px solid var(--black); }
.inquiry .h3 { margin-bottom: .25rem; }
.field { display: grid; gap: .4rem; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 600; color: var(--ink); font-size: 1rem; }
.req { color: var(--gold-deep); }
.opt { color: var(--muted); font-weight: 400; font-size: .9rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: .8rem .9rem; border: 1.5px solid var(--line-strong); border-radius: 2px; background: #fff; color: var(--ink); min-height: 52px; transition: border-color .2s var(--ease); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 2px solid var(--gold-deep); outline-offset: 2px; box-shadow: 0 0 0 3px rgba(201,154,98,.3); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); }
.error { color: var(--danger); font-size: .9rem; min-height: 1.2em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { color: var(--muted); min-height: 1.4em; }
.form-status.is-error { color: var(--danger); font-weight: 600; }
.inquiry-success { padding: 2rem; border: 3px solid var(--gold); }
.inquiry-success p { margin-top: .75rem; }
.inquiry-success a { color: var(--gold-deep); }
.plain-links { margin-top: 1rem; display: grid; gap: .5rem; }
.plain-links a { color: var(--gold-deep); }

/* ---------- Projects ---------- */
.project-grid { display: grid; gap: 2rem; }
@media (min-width: 720px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }
.project-card { text-decoration: none; color: inherit; }
.project-media { overflow: hidden; margin-bottom: .9rem; background: var(--stone-deep); }
.project-media img, .project-media picture img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover .project-media img { transform: scale(1.03); }
.gallery { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-item figcaption { font-size: .9rem; color: var(--muted); margin-top: .4rem; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(5,5,5,.95); display: none; place-items: center; padding: 3rem 1rem; }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 100%; max-height: 85vh; object-fit: contain; }
.lightbox [data-close] { position: absolute; top: 1rem; right: 1rem; background: var(--gold); color: var(--black); border: 0; padding: .6rem 1rem; font: inherit; font-weight: 700; cursor: pointer; border-radius: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: rgba(255,255,255,.75); padding-block: clamp(3rem, 5vw, 4.5rem) 1.5rem; border-top: 1px solid rgba(201,154,98,.35); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; } }
.footer-brand img { height: 86px; width: auto; }
.footer-brand p { margin-top: 1rem; max-width: 34ch; }
.badges { display: grid; gap: .35rem; margin-top: 1rem; font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); }
.badges li::before { content: "\25C6"; font-size: .55em; margin-right: .6rem; vertical-align: middle; color: var(--gold); }
.footer-h { font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); margin-bottom: .75rem; }
.footer-col a { color: #fff; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-phone { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; letter-spacing: .02em; }
.footer-links { display: grid; gap: .4rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; color: rgba(255,255,255,.5); display: grid; gap: .75rem; }
.footer-disclosure { max-width: 80ch; }

/* ---------- Mobile contact bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 899.98px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--black); border-top: 2px solid var(--gold); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 58px; font-family: var(--font-head); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .92rem; text-decoration: none; color: #fff; }
  .mobile-bar-cta { background: var(--gold); color: var(--black) !important; }
  @media (max-width: 419.98px) { .mobile-bar a { font-size: .82rem; padding-inline: .4rem; } .mb-ico { width: .95rem; height: .95rem; } }
}

@media print {
  .site-header, .mobile-bar, .cta-band, .hero-media::after { display: none; }
}

/* =====================================================================
   Interactive layer: hero cinema, header behaviour, tools, micro-motion
   ===================================================================== */

/* Scroll progress line (under the header) */
.scroll-progress { position: fixed; left: 0; top: var(--header-h); height: 3px; width: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); z-index: 49; pointer-events: none; }

/* Header: transparent over the home hero, solid once scrolled */
.has-transparent-header .site-header { background: linear-gradient(180deg, rgba(5,5,5,.78), rgba(5,5,5,0)); border-bottom-color: transparent; transition: background .35s var(--ease), border-color .35s var(--ease); }
.has-transparent-header .site-header.is-solid { background: var(--black); border-bottom-color: rgba(201,154,98,.35); }
.has-transparent-header .hero { margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h); min-height: min(100vh, 900px); }
.brand img { transition: height .3s var(--ease); }
.site-header.is-solid .brand img { height: 56px; }
@media (min-width: 900px) { .site-header.is-solid .brand img { height: 64px; } }

/* Hero slideshow + staggered entrance */
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-slide.is-active { opacity: 1; }
.hero-slide img, .hero-slide picture img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-slide.is-active img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }
.hero-word { display: inline-block; }
.js .hero-anim { opacity: 0; transform: translateY(18px); }
.js.hero-ready .hero-anim, .js .hero-ready .hero-anim { animation: rise .8s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-cue { position: absolute; right: var(--gutter); bottom: 72px; width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; display: none; }
@media (min-width: 900px) { .hero-cue { display: block; } }
.hero-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(16px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .js .hero-anim { opacity: 1; transform: none; animation: none; }
  .hero-slide.is-active img { animation: none; }
  .hero-cue span { animation: none; }
}

/* Button sheen */
.btn-sheen { position: relative; overflow: hidden; }
.btn-sheen::after { content: ""; position: absolute; top: -60%; left: -40%; width: 40%; height: 220%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: rotate(18deg) translateX(-120%); transition: transform .7s var(--ease); }
.btn-sheen:hover::after { transform: rotate(18deg) translateX(420%); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 1.1rem; font-size: .85rem; }

/* Card tilt */
.service-card .service-media { box-shadow: 0 30px 50px -40px rgba(5,5,5,.7); transition: box-shadow .3s var(--ease); }
.service-card:hover .service-media { box-shadow: 0 40px 60px -36px rgba(5,5,5,.8); }

/* Cursor glow on dark sections */
[data-glow] { position: relative; overflow: hidden; }
[data-glow]::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px circle at var(--gx, -1000px) var(--gy, -1000px), rgba(201,154,98,.14), transparent 60%); transition: opacity .3s; }
[data-glow] > * { position: relative; }

/* Animated underline on text links */
.text-link { position: relative; border-bottom: 0; padding-bottom: 6px; }
.text-link::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--gold); transform-origin: 0 50%; transition: transform .35s var(--ease), background .2s; }
.service-card:hover .text-link::after, .text-link:hover::after { transform: scaleX(1.15); background: var(--ink); }

/* Steps on light + stagger */
.steps-light .step { border-top-color: var(--line-strong); }
.steps-light .step-num { color: var(--gold-deep); }
.js .steps .step[data-reveal] { transition-delay: calc(var(--i, 0) * 90ms); }

/* FAQ smooth */
.faq-item p { animation: faqin .35s var(--ease); }
@keyframes faqin { from { opacity: 0; transform: translateY(-4px); } }

.area-list-dark li { border-color: rgba(255,255,255,.3); color: #fff; }

/* ---------- Roof anatomy (isometric) ---------- */
.anatomy-grid { display: grid; gap: 2rem; margin-top: 2.5rem; }
@media (min-width: 1000px) { .anatomy-grid { grid-template-columns: 7fr 5fr; gap: 3rem; align-items: start; } }
.anatomy-list { display: grid; gap: 2px; }
.anatomy-item { appearance: none; width: 100%; text-align: left; background: var(--coal-2); border: 1px solid rgba(255,255,255,.08); border-left: 3px solid transparent; color: #fff; padding: .8rem 1rem; cursor: pointer; display: grid; grid-template-columns: 2.4rem 1fr; gap: 0 .5rem; align-items: baseline; transition: background .2s var(--ease), border-color .2s var(--ease); font: inherit; }
.anatomy-item:hover, .anatomy-item.is-active { background: #262626; border-left-color: var(--gold); }
.anatomy-num { font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .12em; color: var(--gold-light); }
.anatomy-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .03em; }
.anatomy-text { grid-column: 2; font-size: .93rem; color: rgba(255,255,255,.72); max-height: 0; overflow: hidden; transition: max-height .4s var(--ease), margin .3s var(--ease); }
.anatomy-item.is-active .anatomy-text { max-height: 8rem; margin-top: .35rem; }
.anatomy-stage { background: var(--coal-2); border: 1px solid rgba(255,255,255,.08); padding: .5rem; }
.anatomy-svg { width: 100%; height: auto; display: block; }
.anatomy-svg .layer { transition: opacity .35s var(--ease), transform .7s var(--ease), filter .3s; }
.anatomy-svg [data-anatomy-scene] { transition: transform .7s var(--ease); }
.anatomy-svg.is-exploded [data-anatomy-scene] { transform: translateY(74px); }
.anatomy-svg .layer.is-hidden { opacity: 0; transform: translateY(-40px); }
.anatomy-svg.has-active .layer { opacity: .28; }
.anatomy-svg.has-active .layer.is-active { opacity: 1; filter: url(#an-glow); }
.anatomy-svg .an-rake { transition: opacity .5s var(--ease); }
.anatomy-svg .an-badge { transition: opacity .35s var(--ease), transform .7s var(--ease); pointer-events: none; }
.anatomy-svg .an-badge.is-hidden { opacity: 0; }
.anatomy-svg.has-active .an-badge { opacity: .35; }
.anatomy-controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: .9rem .5rem .4rem; }
.anatomy-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.anatomy-caption { font-size: .95rem; color: rgba(255,255,255,.78); max-width: 52ch; margin: 0; min-height: 2.8em; }
@media (prefers-reduced-motion: reduce) { .anatomy-svg .layer, .anatomy-svg .an-rake, .anatomy-svg .an-badge { transition: none; } }

/* ---------- Visualizer ---------- */
.viz-grid { display: grid; gap: 2rem; margin-top: 2.5rem; }
@media (min-width: 1000px) { .viz-grid { grid-template-columns: 7fr 5fr; gap: 3rem; align-items: start; } }
.viz-stage { background: #fff; border: 1px solid var(--line); padding: .5rem; }
.viz-svg { width: 100%; height: auto; display: block; --viz-siding: #9AA0A2; --viz-trim: #FFFFFF; --viz-roof: #2B2B2B; }
.viz-svg * { transition: fill .35s var(--ease); }
.viz-readout { font-family: var(--font-head); font-weight: 600; letter-spacing: .02em; padding: .8rem .5rem .3rem; color: var(--ink); min-height: 2.4em; }
.viz-controls { display: grid; gap: 1.4rem; }
.viz-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.viz-group legend { font-family: var(--font-head); font-weight: 700; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .6rem; }
.swatches { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.swatch { appearance: none; position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); background: var(--sw); cursor: pointer; padding: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.swatches-sm .swatch { width: 34px; height: 34px; }
.swatch span { display: none; position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; max-width: 60vw; background: var(--black); color: #fff; font-size: .75rem; padding: .2rem .5rem; border-radius: 2px; pointer-events: none; z-index: 2; }
.swatch:hover span, .swatch:focus-visible span { display: block; }
.swatches .swatch:nth-last-child(-n+2) span { left: auto; right: 0; transform: none; }
.swatches .swatch:nth-child(-n+2) span { left: 0; right: auto; transform: none; }
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--stone), 0 0 0 4px var(--ink); }
.segmented { display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: 3px; overflow: hidden; }
.segmented button { appearance: none; background: #fff; border: 0; padding: .7rem 1rem; font-family: var(--font-head); font-weight: 600; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.segmented button + button { border-left: 1.5px solid var(--line-strong); }
.segmented button[aria-pressed="true"] { background: var(--black); color: var(--gold-light); }
.viz-actions { margin-top: .5rem; }

/* ---------- Quiz ---------- */
.quiz { background: var(--stone); border-top: 4px solid var(--black); padding: clamp(1.25rem, 3vw, 2.25rem); position: relative; }
.quiz-progress { height: 4px; background: var(--stone-deep); margin-bottom: 1.5rem; }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .4s var(--ease); }
.quiz-step { border: 0; padding: 0; margin: 0; min-width: 0; animation: faqin .35s var(--ease); }
.quiz-step legend { display: grid; gap: .3rem; margin-bottom: 1.2rem; }
.quiz-count { font-family: var(--font-head); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.quiz-q { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); color: var(--ink); line-height: 1.15; }
.quiz-options { display: grid; gap: .6rem; }
@media (min-width: 640px) { .quiz-options { grid-template-columns: 1fr 1fr; } }
.quiz-option { appearance: none; text-align: left; background: #fff; border: 1.5px solid var(--line-strong); border-radius: 2px; padding: .95rem 1.1rem; font: inherit; font-weight: 500; color: var(--ink); cursor: pointer; transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s; }
.quiz-option:hover { border-color: var(--ink); transform: translateY(-1px); }
.quiz-option.is-picked { background: var(--black); color: #fff; border-color: var(--black); }
.quiz-back { appearance: none; background: none; border: 0; margin-top: 1rem; padding: 0; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; text-decoration: underline; }
.quiz-result { animation: faqin .4s var(--ease); }
.quiz-result p { margin-top: .75rem; max-width: 60ch; }
.quiz-result .cta-actions { margin-top: 1.5rem; }

/* ---------- Storm checklist ---------- */
.storm-check { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--black); padding: clamp(1.25rem, 3vw, 2rem); }
.checklist { display: grid; gap: .25rem; margin-top: 1rem; }
.checklist label { display: grid; grid-template-columns: 26px 1fr; gap: .8rem; align-items: start; padding: .6rem .4rem; cursor: pointer; border-radius: 2px; transition: background .2s; }
.checklist label:hover { background: var(--stone); }
.checklist input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { width: 24px; height: 24px; border: 2px solid var(--line-strong); border-radius: 2px; margin-top: 2px; position: relative; transition: background .2s, border-color .2s; }
.check-box::after { content: ""; position: absolute; left: 7px; top: 2px; width: 6px; height: 12px; border: solid var(--black); border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0); transition: transform .2s var(--ease); }
.checklist input:checked + .check-box { background: var(--gold); border-color: var(--gold); }
.checklist input:checked + .check-box::after { transform: rotate(45deg) scale(1); }
.checklist input:focus-visible + .check-box { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.storm-summary { margin-top: 1rem; font-weight: 600; color: var(--ink); min-height: 1.5em; }
.storm-summary.is-strong { color: var(--gold-deep); }
.storm-check .cta-actions { margin-top: 1rem; }

/* ---------- Multi-step form ---------- */
.form-progress { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; padding-bottom: .9rem; margin-bottom: .5rem; }
.fp-step { font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; }
.fp-step.is-active { color: var(--ink); }
.fp-step.is-done { color: var(--gold-deep); }
.fp-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--stone-deep); display: block; }
.fp-bar b { display: block; height: 100%; width: 33.3%; background: var(--gold); transition: width .4s var(--ease); }
.form-step { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 1.1rem; animation: faqin .35s var(--ease); }
.form-step legend { margin-bottom: .5rem; outline: none; }
.type-tiles { display: grid; gap: .75rem; }
@media (min-width: 640px) { .type-tiles { grid-template-columns: repeat(3, 1fr); } }
.type-tile { position: relative; display: grid; gap: .3rem; justify-items: center; text-align: center; padding: 1.2rem .9rem; background: #fff; border: 2px solid var(--line-strong); border-radius: 3px; cursor: pointer; transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s; }
.type-tile:hover { transform: translateY(-2px); border-color: var(--ink); }
.type-tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile-ico { width: 44px; height: 44px; color: var(--gold-deep); }
.tile-ico svg { width: 100%; height: 100%; }
.tile-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.tile-sub { font-size: .88rem; color: var(--muted); }
.type-tile:has(input:checked) { border-color: var(--black); background: var(--black); box-shadow: 0 0 0 2px var(--gold); }
.type-tile:has(input:checked) .tile-name { color: #fff; }
.type-tile:has(input:checked) .tile-sub { color: rgba(255,255,255,.7); }
.type-tile:has(input:checked) .tile-ico { color: var(--gold-light); }
.type-tile:has(input:focus-visible) { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.type-tiles.is-invalid .type-tile { border-color: var(--danger); }
.step-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; margin-top: .5rem; }
.mini-steps { margin-top: 2rem; display: grid; gap: .8rem; counter-reset: ms; }
.mini-steps li { position: relative; padding-left: 2.4rem; counter-increment: ms; color: var(--body); }
.mini-steps li::before { content: "0" counter(ms); position: absolute; left: 0; top: .1rem; font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .12em; color: var(--gold-deep); }
.prefill-note { margin-top: 2rem; padding: 1rem 1.1rem; background: var(--stone); border-left: 3px solid var(--gold); font-size: .95rem; }
.prefill-note .eyebrow { margin-bottom: .4rem; }

/* ---------- Photos on the form ---------- */
.field-photos input[type=file] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.note-tight { margin-top: 0; }
.photo-drop { display: inline-flex; align-items: center; gap: .6rem; padding: .8rem 1.1rem; border: 2px dashed var(--line-strong); border-radius: 3px; background: #fff; cursor: pointer; font-weight: 600; color: var(--ink); transition: border-color .2s; width: fit-content; }
.photo-drop:hover { border-color: var(--ink); }
.field-photos input:focus-visible + .photo-drop { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.photo-drop-ico { font-size: 1.4rem; line-height: 1; color: var(--gold-deep); }
.photo-list { display: grid; gap: .5rem; }
.photo-list li { display: grid; grid-template-columns: 56px 1fr auto; gap: .8rem; align-items: center; background: #fff; border: 1px solid var(--line); padding: .4rem .6rem .4rem .4rem; }
.photo-list img, .photo-ph { width: 56px; height: 42px; object-fit: cover; background: var(--stone-deep); display: block; }
.photo-name { font-size: .92rem; color: var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-remove { appearance: none; border: 0; background: none; font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; padding: .2rem .5rem; }
.photo-remove:hover { color: var(--danger); }

/* ---------- Roof sizer ---------- */
.sizer-section { background: var(--paper); }
.sizer { background: var(--stone); border-top: 4px solid var(--black); padding: clamp(1.25rem, 3vw, 2.25rem); display: grid; gap: 1.25rem; position: relative; }
.sizer-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .sizer-grid { grid-template-columns: 1fr 1fr; } }
.sizer-out { display: grid; gap: 1rem; align-items: center; padding-top: 1rem; border-top: 1px solid var(--line-strong); }
@media (min-width: 640px) { .sizer-out { grid-template-columns: auto 1fr; gap: 1rem 2.5rem; align-items: center; } .sizer-pitch { grid-row: 1; grid-column: 2; justify-self: end; } .sizer-facts { grid-column: 1 / -1; } }
.sizer-facts { grid-template-columns: repeat(3, auto); gap: 1rem 2.5rem; justify-content: start; }
.sizer-facts dd { white-space: nowrap; }
.sizer-big { font-family: var(--font-head); font-weight: 800; font-size: clamp(3rem, 2rem + 4vw, 5rem); line-height: 1; color: var(--ink); display: flex; align-items: baseline; gap: .5rem; font-variant-numeric: tabular-nums; }
.sizer-big small { font-size: 1rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.sizer-facts { display: grid; gap: .5rem; }
.sizer-facts dt { font-family: var(--font-head); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sizer-facts dd { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.sizer-pitch { width: 150px; display: none; }
@media (min-width: 640px) { .sizer-pitch { display: block; } }
.sizer-svg path[data-sz-line] { transition: d .4s var(--ease); }
.sizer .btn { width: fit-content; }

/* ---------- Claim timeline ---------- */
.claim-track { margin-top: 2.5rem; }
.claim-steps { display: grid; gap: 0; border-top: 1px solid rgba(201,154,98,.4); }
@media (min-width: 900px) { .claim-steps { grid-template-columns: repeat(6, 1fr); border-top: 0; } }
.claim-step { border-bottom: 1px solid rgba(255,255,255,.1); }
@media (min-width: 900px) { .claim-step { border-bottom: 0; border-top: 3px solid rgba(255,255,255,.15); padding-right: 1.25rem; transition: border-color .3s; } .claim-step:has([aria-expanded="true"]) { border-top-color: var(--gold); } }
.claim-btn { appearance: none; background: none; border: 0; width: 100%; text-align: left; color: #fff; padding: 1rem 0; cursor: pointer; display: grid; gap: .25rem; font: inherit; }
.claim-num { font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .14em; color: var(--gold-light); }
.claim-title { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1.15; }
.claim-who { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.claim-btn:hover .claim-title { color: var(--gold-light); }
.claim-text { padding: 0 0 1.25rem; color: rgba(255,255,255,.78); font-size: .98rem; animation: faqin .35s var(--ease); }
@media (min-width: 900px) { .claim-text { padding-right: .5rem; } }
.claim-note { margin-top: 2rem; padding: 1rem 1.2rem; border-left: 3px solid var(--gold); color: rgba(255,255,255,.85); max-width: 80ch; font-size: .98rem; }

/* ---------- Photo visualizer ---------- */
.viz-canvas-wrap { position: relative; background: var(--stone-deep); }
.viz-canvas { width: 100%; height: auto; display: block; }
.viz-fallback { width: 100%; height: auto; display: block; }
.viz-compare { position: absolute; right: .75rem; bottom: .75rem; appearance: none; border: 0; background: rgba(5,5,5,.75); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; padding: .55rem .9rem; border-radius: 2px; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none; }
.viz-compare[aria-pressed="true"] { background: var(--gold); color: var(--black); }
.viz-legend-note { font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--muted); margin-left: .5rem; }
.swatch-custom { display: grid; place-items: center; background: #fff; overflow: hidden; }
.swatch-custom::before { content: "+"; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--ink); line-height: 1; }
.swatch-custom[style*="--sw"]::before { content: none; }
.swatch-custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.swatch-custom[style*="--sw"] { background: var(--sw); }
.viz-brand { margin-top: .75rem; }
.viz-source { margin-top: .6rem; }
.viz-stage .photo-note { padding: 0 .5rem .4rem; }

/* ---------- Referral / gutters ---------- */
.referral { background: var(--stone); border-top: 1px solid var(--line); }
.inline-link { color: var(--gold-deep); font-weight: 600; }
.footer-sister { margin-top: .75rem; font-size: .9rem; color: rgba(255,255,255,.6); }
.footer-sister a { color: var(--gold-light); }
.viz-grid.is-loading .viz-canvas-wrap::after { content: "Loading photo…"; position: absolute; left: .75rem; bottom: .75rem; background: rgba(5,5,5,.75); color: #fff; font-family: var(--font-head); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; padding: .55rem .9rem; border-radius: 2px; }
.viz-canvas[hidden] { display: none !important; }

/* ---------- Hero start card ---------- */
.hero-start-wrap { background: var(--black); padding: clamp(1.5rem, 4vw, 2.75rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero-start { background: var(--coal-2); border: 1px solid rgba(255,255,255,.1); border-top: 3px solid var(--gold); padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1.4rem; }
@media (min-width: 900px) { .hero-start { grid-template-columns: minmax(0, 19rem) minmax(0, 1fr) auto; align-items: center; gap: 2.25rem; } }
.hero-start .hs-head p.note { color: rgba(255,255,255,.66); margin: .35rem 0 0; }
.hero-start .h3 { color: #fff; margin: .2rem 0 0; }
.hs-options { display: flex; flex-wrap: wrap; gap: .5rem; min-width: 0; }
.hs-chip { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.hs-chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.hs-chip span { display: inline-block; border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.88); padding: .55rem .9rem; font-size: .92rem; line-height: 1.2; transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease); }
.hs-chip:hover span { border-color: var(--gold); }
.hs-chip.is-on span { background: var(--gold); border-color: var(--gold); color: var(--black); font-weight: 600; }
.hs-chip input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.hs-go { display: grid; gap: .4rem; justify-items: start; }
@media (min-width: 900px) { .hs-go { justify-items: end; } }
.hs-go .fine { color: var(--gold-light); margin: 0; min-height: 1.2em; }

/* ---------- Multi-select project tiles ---------- */
.type-tiles-multi { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.type-hint { margin: .6rem 0 0; }

/* ---------- Mobile action bar ---------- */
@media (max-width: 859.98px) {
  .mobile-bar { transform: translateY(102%); visibility: hidden; transition: transform .28s var(--ease), visibility 0s linear .28s; will-change: transform; }
  .mobile-bar.is-in { transform: none; visibility: visible; transition: transform .28s var(--ease), visibility 0s; }
  .mobile-bar a { gap: .45rem; }
  .mb-ico { display: inline-flex; width: 1.05rem; height: 1.05rem; }
  .mb-ico svg { width: 100%; height: 100%; }
  .mobile-bar-cta .mb-label { font-size: .86rem; }
}
@media (prefers-reduced-motion: reduce) { .mobile-bar { transition: none; } }

/* ---------- Itemized bid comparison ---------- */
.bidcompare { background: var(--stone); border-top: 4px solid var(--gold); }
.bid-grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; align-items: start; }
@media (min-width: 900px) { .bid-grid { grid-template-columns: 1fr 1.25fr; gap: 1.75rem; } }
.bid-col { background: #fff; border: 1px solid rgba(5,5,5,.12); padding: clamp(1.2rem, 2.5vw, 1.9rem); min-width: 0; }
.bid-clear { border: 2px solid var(--black); box-shadow: 0 18px 40px -28px rgba(5,5,5,.55); }
.bid-label { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; color: var(--gold-deep); margin: 0 0 1.1rem; }
.bid-clear .bid-label { color: var(--black); }
.bid-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.bid-lines li { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: baseline; padding: .6rem 0; border-bottom: 1px solid rgba(5,5,5,.09); font-size: .95rem; }
.bid-vague .bid-lines li { padding: 1rem 0; font-size: 1rem; }
.bid-text { min-width: 0; overflow-wrap: anywhere; }
.bid-amt { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.bid-total { display: flex; justify-content: space-between; gap: 1rem; margin: .9rem 0 0; padding-top: .8rem; border-top: 2px solid var(--black); font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem; }
.bid-foot { font-size: .92rem; color: rgba(5,5,5,.7); margin: 1rem 0 0; }
.bid-note { margin: 1rem 0 0; }
.bid-points { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 820px) { .bid-points { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.bid-point { border-top: 3px solid var(--gold); padding-top: 1rem; min-width: 0; }
.bid-point .h3 { margin: 0 0 .5rem; }
.bid-point p { margin: 0; font-size: .96rem; }
.bid-cta { margin-top: 2.5rem; }

/* ---------- Cost page ---------- */
.drivers-grid { display: grid; gap: 1.75rem; margin-top: 2.5rem; }
@media (min-width: 680px) { .drivers-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (min-width: 1040px) { .drivers-grid { grid-template-columns: repeat(3, 1fr); } }
.driver { border-top: 1px solid rgba(5,5,5,.16); padding-top: 1rem; min-width: 0; }
.driver-n { display: block; font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .14em; color: var(--gold-deep); margin-bottom: .45rem; }
.driver .h3 { margin: 0 0 .5rem; }
.driver p { margin: 0; font-size: .96rem; }
.tiers-grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; align-items: start; }
@media (min-width: 880px) { .tiers-grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }
.tier { background: var(--paper); border: 1px solid rgba(5,5,5,.14); padding: clamp(1.2rem, 2.4vw, 1.8rem); min-width: 0; }
.tier:nth-child(2) { border: 2px solid var(--black); }
.tier-band { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; letter-spacing: .1em; color: var(--gold-deep); margin: 0 0 .3rem; }
.tier .h3 { margin: 0 0 .7rem; }
.tier-text { font-size: .95rem; margin: 0 0 1rem; }
.tier-items { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; border-top: 1px solid rgba(5,5,5,.12); padding-top: 1rem; }
.tier-items li { position: relative; padding-left: 1.4rem; font-size: .92rem; }
.tier-items li::before { content: ""; position: absolute; left: 0; top: .42em; width: .62rem; height: .32rem; border-left: 2px solid var(--gold-deep); border-bottom: 2px solid var(--gold-deep); transform: rotate(-45deg); }
.includes-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.includes-list li { padding: .75rem 0; border-bottom: 1px solid rgba(5,5,5,.1); padding-left: 1.6rem; position: relative; }
.includes-list li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: .7rem; height: .36rem; border-left: 2px solid var(--gold-deep); border-bottom: 2px solid var(--gold-deep); transform: rotate(-45deg); }

/* ---------- Three-question estimator ---------- */
.estimator-section { background: var(--black); color: #fff; }
.estimator-section .h2 { color: #fff; }
.estimator-section .eyebrow { color: var(--gold); }
.estimator-section .lead { color: rgba(255,255,255,.82); }
.estimator { margin-top: 2.5rem; background: var(--coal-2); border: 1px solid rgba(255,255,255,.1); border-top: 3px solid var(--gold); padding: clamp(1.4rem, 3vw, 2.4rem); }
.est-progress { height: 3px; background: rgba(255,255,255,.12); margin-bottom: 1.8rem; }
.est-progress span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .4s var(--ease); }
.est-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.est-step legend { display: block; width: 100%; padding: 0; }
.est-count { display: block; font-family: var(--font-head); font-weight: 700; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.est-q { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.2; color: #fff; margin: .45rem 0 .35rem; }
.est-hint { display: block; font-size: .92rem; color: rgba(255,255,255,.6); max-width: 54ch; }
.est-options { display: grid; gap: .6rem; margin-top: 1.4rem; }
@media (min-width: 720px) { .est-options { grid-template-columns: repeat(2, 1fr); } }
.est-option { appearance: none; font: inherit; text-align: left; cursor: pointer; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.22); padding: .95rem 1.1rem; transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease); min-width: 0; overflow-wrap: anywhere; }
.est-option:hover { border-color: var(--gold); background: rgba(201,154,98,.1); }
.est-option.is-picked { background: var(--gold); border-color: var(--gold); color: var(--black); font-weight: 600; }
.est-back { appearance: none; background: none; border: 0; color: var(--gold-light); font: inherit; text-decoration: underline; cursor: pointer; margin-top: 1.1rem; padding: .3rem 0; }
.est-result { outline: none; }
.est-lead { color: rgba(255,255,255,.8); margin: 0; }
.est-range { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.05; color: var(--gold); margin: .4rem 0 .6rem; overflow-wrap: anywhere; }
.est-basis { color: rgba(255,255,255,.72); font-size: .95rem; margin: 0 0 1.2rem; }
.est-note { color: rgba(255,255,255,.62) !important; max-width: 62ch; }
.est-excludes { margin: 1.8rem 0 0; border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.4rem; }
.est-ex-h { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; color: var(--gold-light); margin: 0 0 .8rem; }
.est-excludes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
@media (min-width: 800px) { .est-excludes ul { grid-template-columns: repeat(2, 1fr); gap: .4rem 2rem; } }
.est-excludes li { position: relative; padding-left: 1.3rem; font-size: .93rem; color: rgba(255,255,255,.78); }
.est-excludes li::before { content: ""; position: absolute; left: 0; top: .62em; width: .6rem; height: 1px; background: var(--gold); }
.est-result .cta-actions { margin-top: 1.8rem; }

/* ---------- Visualizer secondary actions ---------- */
.viz-secondary { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.viz-copied { font-size: .88rem; color: var(--gold-deep); margin: .6rem 0 0; min-height: 1.2em; overflow-wrap: anywhere; }

/* ---------- "Send us a photo of your house" offer ---------- */
.viz-offer { border-top: 4px solid var(--gold); }
.offer-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.offer-steps li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; align-items: start; min-width: 0; }
.offer-n { font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: .1em; color: var(--gold); padding-top: .35rem; }
.offer-steps .h3 { margin: 0 0 .35rem; }
.offer-steps p { margin: 0; color: rgba(255,255,255,.76); font-size: .96rem; }
.offer-steps .cta-actions { margin-top: 2rem; }
.offer-fine { color: rgba(255,255,255,.55) !important; margin-top: 1rem; max-width: 56ch; }

/* ---------- Home tools strip ---------- */
.tool-cards { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .tool-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .tool-cards { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.tool-card { display: grid; align-content: start; gap: .55rem; background: var(--coal-2); border: 1px solid rgba(255,255,255,.1); border-top: 3px solid var(--gold); padding: 1.5rem 1.35rem 1.35rem; text-decoration: none; color: #fff; min-width: 0; transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.tool-card:hover { background: #262626; transform: translateY(-3px); }
.tool-ico { display: block; width: 2.1rem; height: 2.1rem; color: var(--gold); margin-bottom: .35rem; }
.tool-ico svg { width: 100%; height: 100%; }
.tool-card .h4 { color: #fff; margin: 0; }
.tool-card p { margin: 0; font-size: .93rem; color: rgba(255,255,255,.72); }
.tool-card .text-link-light { color: var(--gold-light); margin-top: .35rem; }
@media (prefers-reduced-motion: reduce) { .tool-card:hover { transform: none; } }

.section-head { max-width: 30ch; }
@media (max-width: 679.98px) { .section-head { max-width: none; } }

/* ---------- Hero slideshow pause (WCAG 2.2.2) ---------- */
.hero-pause { position: absolute; right: 1rem; bottom: 5.5rem; z-index: 4; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); background: rgba(5,5,5,.55); color: #fff; cursor: pointer; border-radius: 50%; padding: 0; }
.hero-pause:hover { background: rgba(5,5,5,.8); border-color: var(--gold); }
.hero-pause-ico { display: block; width: .7rem; height: .8rem; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.hero-pause.is-paused .hero-pause-ico { width: 0; height: 0; border: solid transparent; border-width: .4rem 0 .4rem .7rem; border-left-color: currentColor; }
@media (min-width: 900px) { .hero-pause { right: 2rem; bottom: 6.5rem; } }

/* ---------- Owners ---------- */
.team { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 720px) { .team { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.team li { display: grid; gap: .2rem; align-content: start; border-top: 2px solid var(--gold); padding-top: .9rem; min-width: 0; }
.team-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; }
.team-role { font-size: .9rem; color: var(--muted); }
.team-email { font-size: .9rem; overflow-wrap: break-word; margin-top: .3rem; }
