/* =====================================================================
   SELF-HOSTED FONTS (latin subset, SIL Open Font License)
   Newsreader (display) + Figtree (text). No third-party font requests.
   ===================================================================== */
@font-face{
  font-family:'Newsreader';
  src:url('fonts/newsreader-latin.woff2') format('woff2');
  font-weight:400 600; font-style:normal; font-display:swap;
}
@font-face{
  font-family:'Figtree';
  src:url('fonts/figtree-latin.woff2') format('woff2');
  font-weight:400 700; font-style:normal; font-display:swap;
}

/* =====================================================================
   PARADIGM BUILDERS — ADUs & Garage Conversions, Los Angeles
   Built on the kitchen/roofing engine. Palette: "backyard cottage" —
   night-navy siding, rattan gold, warm linen.
   ===================================================================== */

/* ---------------------------------------------------------- TOKENS */
:root{
  --bone:      #F6F4EF;
  --limestone: #ECE8E0;
  --sand:      #D8D1C4;
  --ink:       #17222D;
  --charcoal:  #2C3640;
  --graphite:  #4E5862;
  --pencil:    #737C85;

  /* Variable names kept as --clay* so the engine's token system stays intact. */
  --clay:      #2C4A66;   /* navy — fills, buttons; white on it ~9:1 */
  --clay-deep: #203A52;   /* hover */
  --clay-text: #2C4A66;   /* small text on linen (AA) */
  --clay-lift: #D6A867;   /* rattan gold — accents on ink (AA) */
  --placeholder:#66707A;

  --bone-dim:   rgba(246,244,239,.76);
  --bone-faint: rgba(246,244,239,.16);
  --focus-ring: rgba(44,74,102,.2);
  --tint:       #E2E8ED;

  --err:       #A3301C;

  --serif: "Newsreader", "Georgia", "Times New Roman", serif;
  --sans:  "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mark:  "Figtree", "Segoe UI", system-ui, sans-serif;

  --shell: 1240px;
  --gutter: 20px;

  --ease: cubic-bezier(.2,.7,.25,1);
  --slow: 820ms;
}

/* ---------------------------------------------------------- RESET */
*,*::before,*::after{ box-sizing:border-box; }
/* The [hidden] attribute is only display:none in the UA sheet, so ANY author
   display rule silently defeats it. Several components here rely on [hidden]
   to leave both the layout and the tab order — this makes it authoritative. */
[hidden]{ display:none !important; }
html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  scroll-padding-top:82px;      /* clears the fixed masthead on anchor jumps */
  scroll-padding-bottom:84px;   /* clears the mobile CTA dock */
}
body{
  margin:0;
  background:var(--bone);
  color:var(--graphite);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.62;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img,svg,video{ display:block; max-width:100%; }
img{ height:auto; }
button{ font:inherit; color:inherit; }
a{ color:inherit; }
h1,h2,h3,h4,p,figure,blockquote,ol,ul{ margin:0; }
ol,ul{ padding:0; list-style:none; }
::selection{ background:var(--clay); color:var(--bone); }
:focus-visible{ outline:2px solid var(--clay); outline-offset:3px; }

.skip{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--ink); color:var(--bone); padding:12px 18px;
}
.skip:focus{ left:12px; top:12px; }

.shell{
  width:100%;
  max-width:var(--shell);
  margin-inline:auto;
  padding-inline:var(--gutter);
}

/* ---------------------------------------------------------- TYPE */
.display{
  font-family:var(--serif);
  font-optical-sizing:auto;
  color:var(--ink);
  font-weight:560;              /* Fraunces is variable (340–640) */
  letter-spacing:-.015em;
  line-height:1.14;
  font-size:clamp(1.7rem, 6vw, 2.6rem);
  text-wrap:balance;
}
.display em{
  font-style:italic;            /* Fraunces italic + colour carry the emphasis */
  font-weight:520;
  color:var(--clay);
}
.display .line{ display:block; }
.display--2{ font-size:clamp(1.3rem, 4vw, 2rem); line-height:1.18; }

.lede{
  font-size:clamp(1.02rem, 2vw, 1.18rem);
  color:var(--graphite);
  max-width:58ch;
  margin-top:20px;
  text-wrap:pretty;
}

.eyebrow{
  display:flex; align-items:center; gap:12px;
  font-size:.72rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  font-weight:600;
  color:var(--clay-text);
  margin-bottom:20px;
}
.eyebrow .rule{ height:1px; width:34px; flex:none; background:currentColor; opacity:.55; }
.band--ink .eyebrow--light,
.hero .eyebrow--light{ color:var(--clay-lift); }

/* ---------------------------------------------------------- BUTTONS */
.btn{
  --bg:transparent; --fg:var(--ink); --bd:transparent;
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  background:var(--bg); color:var(--fg);
  border:1px solid var(--bd);
  border-radius:2px;
  padding:15px 24px;
  font-family:var(--sans);
  font-size:.82rem;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  cursor:pointer;
  min-height:48px;                      /* comfortable tap target */
  transition:background .3s var(--ease), color .3s var(--ease),
             border-color .3s var(--ease), transform .12s var(--ease);
  -webkit-tap-highlight-color:transparent;
}
.btn:active{ transform:translateY(1px); }
.btn:disabled{ opacity:.6; cursor:default; }
.btn--lg{ padding:18px 30px; font-size:.85rem; min-height:56px; }
.btn--block{ display:flex; width:100%; }

.btn--clay{ --bg:var(--clay); --fg:#fff; --bd:var(--clay); }
.btn--clay:hover{ --bg:var(--clay-deep); --bd:var(--clay-deep); }

.btn--outline{ --bg:transparent; --fg:var(--ink); --bd:rgba(22,21,15,.28); }
.btn--outline:hover{ --bg:var(--ink); --fg:var(--bone); --bd:var(--ink); }

.btn--outline-light{ --bg:transparent; --fg:var(--bone); --bd:rgba(246,241,232,.38); }
.btn--outline-light:hover{ --bg:var(--bone); --fg:var(--ink); --bd:var(--bone); }

/* ---------------------------------------------------------- MASTHEAD */
.masthead{
  position:fixed; inset:0 0 auto 0; z-index:80;
  border-bottom:1px solid transparent;
  transition:background .45s var(--ease), border-color .45s var(--ease);
}
.masthead__in{ display:flex; align-items:center; justify-content:center; height:66px; }
.masthead.is-stuck{
  background:rgba(246,241,232,.95);
  -webkit-backdrop-filter:saturate(140%) blur(6px);
  backdrop-filter:saturate(140%) blur(6px);
  border-bottom-color:var(--sand);
}
/* Client logo lockup: the supplied SVG mark + a "Roofing" descriptor in
   the brief's Montserrat SemiBold. The SVG paths carry no fill of their
   own, so `fill:currentColor` lets the whole lockup invert on scroll.
   Mobile-first: stacked and centred, with "ROOFING" tracked out to sit
   under the mark's ruled BUILDERS line. From 760px it becomes a
   horizontal lockup with a hairline divider. */
.wordmark{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  gap:7px;
  color:var(--bone);
  text-decoration:none;
  transition:color .45s var(--ease);
}
.wordmark__svg{
  height:clamp(21px, 5.8vw, 26px);
  width:auto;
  aspect-ratio:461.9 / 108.5;      /* reserves space before paint */
  fill:currentColor;
  display:block;
}
.wordmark__div{
  display:none;                    /* stacked on mobile — no divider */
  width:1px;
  height:clamp(18px, 4vw, 22px);
  background:currentColor;
  opacity:.34;
  flex:none;
}
.wordmark__sub{
  font-family:var(--mark);
  font-weight:400;
  text-transform:uppercase;
  letter-spacing:.2em;             /* Michroma is already wide — less tracking */
  text-indent:.2em;                /* cancels the trailing letter-space */
  font-size:clamp(.5rem, 1.9vw, .6rem);
  line-height:1;
  white-space:nowrap;
}
.masthead.is-stuck .wordmark{ color:var(--ink); }
.wordmark--light{ color:var(--bone); }
/* footer keeps the copy's left edge rather than centring */
.colophon .wordmark{ align-items:flex-start; }
.colophon .wordmark__svg{ height:32px; }
.colophon .wordmark__div{ height:26px; }
.colophon .wordmark__sub{ font-size:.62rem; }

/* ---------------------------------------------------------- HERO */
.hero{
  position:relative;
  padding-top:96px; padding-bottom:44px;
  isolation:isolate;
  overflow:hidden;
}
.hero__plate{ position:absolute; inset:0; z-index:-1; }
.hero__plate img{
  width:100%; height:100%; object-fit:cover; object-position:center 46%;
  transform:scale(1.06);
  animation:settle 2.4s var(--ease) forwards;
}
@keyframes settle{ to{ transform:scale(1); } }
.hero__wash{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(16,15,10,.58) 0%, rgba(16,15,10,.30) 40%, rgba(16,15,10,.82) 100%),
    linear-gradient(90deg, rgba(16,15,10,.66) 0%, rgba(16,15,10,.08) 64%);
}
.hero__grid{ display:grid; gap:32px; }
.hero__copy .display{ color:var(--bone); }
.hero__copy .display em{ color:var(--clay-lift); }
.hero__lead{
  color:var(--bone-dim);
  font-size:clamp(1.02rem, 1.5vw, 1.16rem);
  max-width:48ch;
  margin-top:20px;
  text-wrap:pretty;
}

/* hero type settles in — template signature (opacity:0 lives in the .js block) */
@keyframes riseIn{ from{ opacity:0; transform:translateY(18px); } to{ opacity:1; transform:none; } }
.hero__copy .eyebrow{ animation-delay:.05s; }
.hero .display .line:nth-child(1){ animation-delay:.16s; }
.hero .display .line:nth-child(2){ animation-delay:.30s; }
.hero__lead{ animation-delay:.46s; }

/* ---------------------------------------------------------- LEAD CARD */
.lead{
  background:var(--bone);
  border:1px solid rgba(22,21,15,.1);
  border-radius:2px;
  padding:26px 20px 22px;
  box-shadow:0 28px 64px -28px rgba(16,15,10,.6);
}
.lead__head{ margin-bottom:20px; text-align:center; }
.lead__kicker{
  font-size:.66rem; letter-spacing:.22em; text-transform:uppercase;
  font-weight:600; color:var(--clay-text); margin-bottom:8px;
}
.lead__title{
  font-family:var(--serif); font-weight:400;
  font-size:clamp(.88rem, 2.6vw, 1rem); line-height:1.5;
  color:var(--ink); letter-spacing:0;
}
.lead__title em{ font-style:normal; color:var(--clay-text); }

/* ---------------------------------------------------------- FORM */
.form-body{ display:flex; flex-direction:column; gap:15px; }
.field{ display:flex; flex-direction:column; gap:6px; }
.field label{
  font-size:.79rem;
  font-weight:600;
  letter-spacing:.02em;
  color:var(--charcoal);
  line-height:1.35;
}
.field .req{ color:var(--err); }
.control{
  width:100%;
  font-family:var(--sans);
  font-size:1rem;
  line-height:1.4;
  color:var(--ink);
  background:#fff;
  border:1px solid var(--sand);
  border-radius:3px;
  padding:13px 13px;
  min-height:48px;
  transition:border-color .25s var(--ease), box-shadow .25s var(--ease);
  -webkit-appearance:none; appearance:none;
}
textarea.control{ resize:vertical; min-height:96px; }
select.control{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23857F72' stroke-width='1.4'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:12px;
  padding-right:38px;
}
.control::placeholder{ color:var(--placeholder); opacity:1; }
.control:focus{
  outline:none;
  border-color:var(--clay);
  box-shadow:0 0 0 3px rgba(47,93,78,.18);
}
.field.is-bad .control{ border-color:var(--err); }
/* height is reserved rather than collapsed, so injecting a message never
   reflows the form out from under the pointer */
.field__err{
  font-size:.76rem; color:var(--err); line-height:1.4;
  min-height:0;
}
.field.is-bad .field__err{ min-height:1.4em; }

.form-body .btn{ margin-top:6px; }

/* TCPA express-written-consent disclosure. This is legally operative text —
   it must stay "clear and conspicuous", so it is sized and contrasted to pass
   WCAG AA (var(--graphite) on bone = 6.4:1). Do not shrink or lighten it. */
.consent{
  font-size:.8rem;
  line-height:1.55;
  color:var(--graphite);
}
.consent a{ color:var(--ink); text-decoration:underline; text-underline-offset:2px; }

.form-err{ color:var(--err); font-size:.84rem; margin-top:8px; }

/* success panel replaces the form body (JS hides .form-body) */
.form-done{ text-align:center; padding:38px 8px; }
.form-done__tick{ display:block; width:48px; margin:0 auto 16px; color:var(--clay); }
.form-done h3{
  font-family:var(--serif); font-size:1rem; font-weight:400; line-height:1.5;
  color:var(--ink); margin-bottom:10px;
}
.form-done p{ color:var(--graphite); max-width:36ch; margin-inline:auto; }

/* form on the dark contact band */
.band--ink .field label{ color:var(--bone); }
.band--ink .consent{ color:rgba(246,241,232,.62); }
.band--ink .consent a{ color:var(--bone); }
.band--ink .form-done h3{ color:var(--bone); }
.band--ink .form-done p{ color:var(--bone-dim); }
.band--ink .form-done__tick{ color:var(--clay-lift); }
.band--ink .field__err{ color:#F0A18E; }
.lead--flush{
  background:transparent; border:0; box-shadow:none; padding:0;
}

/* ---------------------------------------------------------- BANDS */
.band{ padding:clamp(60px, 10vw, 130px) 0; }
.band--bone{ background:var(--limestone); }
.band--ink{ background:var(--ink); }
.band--ink .display{ color:var(--bone); }
.band--ink .display em{ color:var(--clay-lift); }
.band--ink .lede{ color:var(--bone-dim); }

.chapter{
  display:grid; gap:12px;
  padding-bottom:28px;
  margin-bottom:38px;
  border-bottom:1px solid var(--sand);
}
.chapter--light{ border-bottom-color:var(--bone-faint); }
.chapter__num{
  font-family:var(--serif);
  font-size:1.35rem; font-weight:400; line-height:1;
  color:var(--sand); letter-spacing:0;
}
.chapter--light .chapter__num{ color:rgba(246,241,232,.24); }

/* ------------------------------------------- SERVICE / TYPE CARDS
   Shared card language, straight from the site-1-7 template:
   image plate on top, serif title, hairline spec list, flat CTA. */
.works,
.types{ display:grid; gap:20px; }
.work,
.type{
  display:flex; flex-direction:column;
  background:var(--bone);
  border:1px solid rgba(22,21,15,.08);
  border-radius:2px;
  overflow:hidden;
  transition:transform .5s var(--ease), box-shadow .5s var(--ease);
}
.work:hover,
.type:hover{ transform:translateY(-4px); box-shadow:0 24px 50px -28px rgba(16,15,10,.5); }
.work__plate,
.type__plate{ overflow:hidden; background:var(--sand); }
.work__plate img,
.type__plate img{
  width:100%; aspect-ratio:16/11; object-fit:cover;
  filter:saturate(.92);
  transition:transform 1.1s var(--ease), filter .6s var(--ease);
}
.work:hover .work__plate img,
.type:hover .type__plate img{ transform:scale(1.05); filter:saturate(1); }
.work__body,
.type__body{ padding:28px 24px 24px; display:flex; flex-direction:column; flex:1; }
.work__body h3,
.type__body h3{
  font-family:var(--serif);
  font-size:.9rem; font-weight:400; line-height:1.5;
  color:var(--ink); letter-spacing:0;
}
.work__lede{ margin-top:12px; font-size:.98rem; }
.type__body p{ margin-top:10px; font-size:.96rem; flex:1; }

.spec{ margin:20px 0 24px; flex:1; }
.spec li{
  display:grid; grid-template-columns:16px 1fr; gap:11px;
  padding:10px 0;
  border-top:1px solid var(--sand);
  font-size:.9rem; color:var(--graphite); line-height:1.4;
}
.spec li::before{
  content:""; width:6px; height:6px; margin-top:.5em;
  background:var(--clay); transform:rotate(45deg);
}

.type--cta{ background:var(--ink); border-color:var(--ink); }
.type--cta:hover{ transform:none; box-shadow:none; }
.type--cta h3{ color:var(--bone); }
.type--cta p{ color:var(--bone-dim); margin-bottom:22px; }

/* ---------------------------------------------------------- INTERSTITIAL */
.interstitial{
  background:#E7EBE2;                       /* soft sage tint */
  border-block:1px solid var(--sand);
  padding:clamp(42px, 6vw, 72px) 0;
}
.interstitial__in{
  display:flex; flex-direction:column; align-items:flex-start;
  gap:22px;
}
.interstitial .display--3{
  font-size:clamp(1.5rem, 3.6vw, 2.4rem);
  line-height:1.14; font-weight:400;
  max-width:22ch; color:var(--ink);
}
.interstitial .btn{ width:100%; }

/* ---------------------------------------------------------- PILLARS (why us) */
.pillars{ display:grid; gap:28px; }
.pillar{ padding-top:22px; border-top:2px solid var(--ink); }
.pillar__n{
  font-family:var(--serif); font-style:normal;
  font-size:.92rem; color:var(--clay);
  display:block; margin-bottom:12px;
}
.pillar h3{
  font-family:var(--serif);
  font-size:.94rem; font-weight:400; color:var(--ink);
  letter-spacing:0; line-height:1.45; margin-bottom:12px;
}

/* ---------------------------------------------------------- STAGES */
.stages{ display:grid; gap:22px; }
.stage{ padding-top:20px; border-top:1px solid var(--ink); }
.stage__n{
  font-family:var(--serif);
  font-size:clamp(1.5rem, 4.2vw, 2.1rem);
  font-weight:400; line-height:1;
  color:var(--clay);
  display:block; margin-bottom:14px;
  letter-spacing:-.04em;
}
.stage h3{
  font-family:var(--serif); font-size:.85rem; font-weight:400; line-height:1.5;
  color:var(--ink); margin-bottom:8px;
}
.stage p{ font-size:.95rem; }

/* ---------------------------------------------------------- FAQ */
.faq{ border-top:1px solid var(--sand); max-width:900px; }
.faq__item{ border-bottom:1px solid var(--sand); }
.faq__q{
  width:100%;
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:20px;
  background:none; border:0; cursor:pointer;
  padding:20px 0;
  text-align:left;
  font-family:var(--serif);
  font-size:clamp(.82rem, 1.5vw, .88rem);
  font-weight:400; line-height:1.6;
  color:var(--ink); letter-spacing:0;
  transition:color .25s var(--ease);
}
.faq__q:hover{ color:var(--clay); }
.faq__q i{ position:relative; flex:none; width:15px; height:15px; margin-top:.45em; }
.faq__q i::before,
.faq__q i::after{
  content:""; position:absolute; inset:50% 0 auto 0;
  height:1.5px; background:currentColor;
  transition:transform .35s var(--ease), opacity .25s var(--ease);
}
.faq__q i::after{ transform:rotate(90deg); }
.faq__q[aria-expanded="true"]{ color:var(--clay-text); }
.faq__q[aria-expanded="true"] i::after{ transform:rotate(0); opacity:0; }
.faq__a{ display:grid; grid-template-rows:0fr; transition:grid-template-rows .45s var(--ease); }
/* visibility (not just 0fr) so a collapsed answer leaves the accessibility
   tree and find-in-page, matching what aria-expanded="false" promises */
.faq__a > div{
  overflow:hidden;
  visibility:hidden;
  transition:visibility 0s linear .45s;
}
.faq__item.is-open .faq__a{ grid-template-rows:1fr; }
.faq__item.is-open .faq__a > div{ visibility:visible; transition-delay:0s; }
/* heading wrapper keeps the questions in the document outline */
.faq__h{ margin:0; font:inherit; font-weight:inherit; }
.faq__a p{
  padding:0 0 24px;
  max-width:70ch;
  opacity:0; transform:translateY(6px);
  transition:opacity .4s var(--ease) .06s, transform .4s var(--ease) .06s;
}
.faq__item.is-open .faq__a p{ opacity:1; transform:none; }
.faq__a b{ color:var(--ink); font-weight:600; }

/* ---------------------------------------------------------- CONTACT */
.contact__grid{ display:grid; gap:44px; }
.details{ display:grid; gap:26px; }
.details li{ display:grid; grid-template-columns:44px 1fr; gap:16px; align-items:start; }
.details__ic{
  width:44px; height:44px;
  display:grid; place-items:center;
  background:var(--clay); color:#fff;
  border-radius:3px;
}
.details__ic svg{ width:22px; height:22px; }
.details h3{
  font-family:var(--serif); font-size:.82rem; font-weight:400; line-height:1.5;
  color:var(--bone); margin-bottom:6px;
}
.details p{ color:var(--bone-dim); font-size:.96rem; }
.details a{ text-decoration:none; border-bottom:1px solid rgba(246,241,232,.3); }
.details a:hover{ color:var(--clay-lift); border-bottom-color:var(--clay-lift); }
.details__note{ color:rgba(246,241,232,.5); font-size:.88rem; }

/* ---------------------------------------------------------- COLOPHON */
.colophon{
  background:var(--ink);
  color:var(--bone-dim);
  padding:clamp(52px, 8vw, 88px) 0 30px;
  border-top:1px solid var(--bone-faint);
}
.colophon__grid{
  display:grid; gap:34px;
  padding-bottom:34px;
  border-bottom:1px solid var(--bone-faint);
}
.colophon__brand .wordmark{ margin-bottom:16px; letter-spacing:.16em; }
.colophon__brand p{ font-size:.92rem; max-width:44ch; }
.colophon__lic{ margin-top:12px; color:var(--bone); font-weight:600; letter-spacing:.04em; }
.colophon h4{
  font-size:.68rem; letter-spacing:.2em; text-transform:uppercase;
  color:var(--clay-lift); font-weight:600; margin-bottom:16px;
}
.colophon__cities{ font-size:.9rem; line-height:1.85; }
.colophon__links{ display:flex; flex-direction:column; gap:10px; }
.colophon__links a{
  text-decoration:none; font-size:.9rem; width:fit-content;
  padding-block:3px;                    /* clears the 24px min target */
  transition:color .25s var(--ease);
}
.colophon__links a:hover{ color:var(--clay-lift); }
.colophon__legal{
  padding:22px 0;
  border-bottom:1px solid var(--bone-faint);
}
.colophon__legal p{
  font-size:.78rem; line-height:1.6;
  color:rgba(246,241,232,.5);
  max-width:80ch;
}
.colophon__bar{
  display:flex; flex-direction:column; gap:8px;
  padding-top:22px;
  font-size:.76rem; color:rgba(246,241,232,.62);
}
.colophon__bar a{ color:var(--bone); text-decoration:underline; text-underline-offset:2px; }

/* ---------------------------------------------------------- DOCK */
.dock{
  position:fixed; left:0; right:0; bottom:0; z-index:70;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:10px 16px calc(10px + env(safe-area-inset-bottom));
  background:rgba(22,21,15,.97);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  border-top:1px solid var(--bone-faint);
  transform:translateY(115%);
  transition:transform .45s var(--ease);
}
.dock.is-up{ transform:none; }
/* The consent banner sits on top of the dock (z 130 vs 70). Retract the dock
   while the banner is up so its CTA is never buried under an opaque bar.
   Must stay AFTER .dock.is-up — equal specificity, source order decides. */
.has-cbanner .dock{ transform:translateY(115%); }
.dock__txt{
  font-size:.68rem; letter-spacing:.09em; text-transform:uppercase;
  color:var(--bone-dim); line-height:1.35;
}
.dock .btn{ padding:12px 16px; font-size:.7rem; flex:none; min-height:44px; }

/* ---------------------------------------------------------- CCPA BANNER */
.cbanner{
  position:fixed; left:0; right:0; bottom:0; z-index:130;
  display:flex; flex-direction:column; gap:14px;
  padding:16px 20px calc(16px + env(safe-area-inset-bottom));
  background:var(--ink);
  border-top:1px solid var(--bone-faint);
  transform:translateY(115%);
  transition:transform .5s var(--ease);
}
.cbanner.is-up{ transform:none; }
/* Both bars are position:fixed at the bottom edge, so the page needs matching
   bottom padding or the last of the footer is permanently unreachable. */
.has-cbanner body{ padding-bottom:112px; }
.cbanner p{ font-size:.8rem; color:var(--bone-dim); max-width:74ch; }
.cbanner a{ color:var(--clay-lift); }
.cbanner__btns{ display:flex; gap:10px; }
.cbanner__btns .btn{ flex:1; padding:11px 16px; font-size:.72rem; min-height:44px; }

/* ---------------------------------------------------------- REVEALS
   Gated on .js (set by main.js before paint). Without it the whole page
   below the hero would stay opacity:0 forever if the script fails to run. */
.js [data-reveal]{
  opacity:0; transform:translateY(22px);
  transition:opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
.js [data-reveal].is-in{ opacity:1; transform:none; }

/* Same reasoning for the hero's entrance animation. */
.js .hero .display .line,
.js .hero__copy .eyebrow,
.js .hero__lead{ opacity:0; animation:riseIn .95s var(--ease) forwards; }
.js .hero .lead{ opacity:0; animation:riseIn 1s var(--ease) .55s forwards; }

/* =====================================================================
   BREAKPOINTS (mobile-first)
   ===================================================================== */
/* the dock is only rendered below 1000px — reserve room for it there */
@media (max-width:999px){
  body{ padding-bottom:76px; }
  /* Single-column hero: the copy now sits over the full width of the photo,
     including where the horizontal wash thins out. Add a flat scrim so hero
     contrast never depends on which part of the image is behind the text. */
  .hero__wash{
    background:
      linear-gradient(180deg, rgba(16,15,10,.62) 0%, rgba(16,15,10,.46) 40%, rgba(16,15,10,.86) 100%),
      linear-gradient(0deg, rgba(16,15,10,.30), rgba(16,15,10,.30));
  }
}

@media (min-width:600px){
  :root{ --gutter:26px; }
  .cbanner{ flex-direction:row; align-items:center; justify-content:space-between; gap:20px; }
  .cbanner__btns{ flex:none; }
  .cbanner__btns .btn{ flex:none; }
  .colophon__bar{ flex-direction:row; justify-content:space-between; gap:18px; flex-wrap:wrap; }
  /* :not() keeps this from silently re-padding the flush contact-form card */
  .lead:not(.lead--flush){ padding:32px 28px 28px; }
}

@media (min-width:760px){
  /* logo lockup goes horizontal: mark | divider | ROOFING */
  .masthead__in{ justify-content:flex-start; }
  .wordmark{ flex-direction:row; align-items:center; gap:clamp(10px, 2.2vw, 14px); }
  .wordmark__div{ display:block; }
  .wordmark__sub{ letter-spacing:.09em; text-indent:0; font-size:clamp(.56rem, 1.3vw, .64rem); }
  .colophon .wordmark{ align-items:center; }
  .colophon .wordmark__sub{ font-size:.66rem; }
  body{ font-size:17px; }
  .works,
  .types{ grid-template-columns:repeat(2,1fr); }
  .interstitial__in{
    flex-direction:row; align-items:center; justify-content:space-between;
    gap:32px;
  }
  .interstitial .btn{ width:auto; flex:none; }
  .pillars{ grid-template-columns:repeat(3,1fr); gap:30px; }
  .stages{ grid-template-columns:repeat(2,1fr); gap:28px; }
  .chapter{
    grid-template-columns:auto 1fr; gap:30px; align-items:start;
    padding-bottom:40px; margin-bottom:52px;
  }
  .chapter__num{ font-size:clamp(1.55rem, 3vw, 2.05rem); }
  .details{ grid-template-columns:repeat(2,1fr); gap:32px; }
}

@media (min-width:1000px){
  .hero{
    min-height:100svh;
    display:flex; align-items:center;
    padding-top:112px; padding-bottom:64px;
  }
  /* Compact the hero card on desktop so the whole form — including the
     TCPA consent line under the button — clears the fold and is never
     hidden behind the fixed cookie banner. Mobile keeps roomier targets. */
  .hero .lead{ padding:30px 28px 26px; }
  .hero .lead__head{ margin-bottom:18px; }
  .hero .form-body{ gap:13px; }
  .hero .field{ gap:6px; }
  .hero .control{ padding:12px 13px; min-height:46px; }
  .hero .btn--lg{ min-height:54px; padding:16px 30px; }
  .hero__grid{
    grid-template-columns:minmax(0,1.15fr) minmax(0,420px);
    gap:52px; align-items:center; width:100%;
  }
  .hero__copy{ padding-bottom:8px; }
  /* capped so "Trusted Roofing Contractor" actually holds its own line in
     the copy column — the two-line break is deliberate, not a wrap */
  .hero .display{ font-size:clamp(2.6rem, 4.4vw, 3.45rem); }
  .works,
  .types{ grid-template-columns:repeat(3,1fr); gap:clamp(20px,2.6vw,34px); }
  .stages{ grid-template-columns:repeat(4,1fr); }
  .contact__grid{ grid-template-columns:minmax(0,.9fr) minmax(0,1fr); gap:clamp(40px,5vw,80px); align-items:start; }
  .details{ grid-template-columns:1fr; gap:30px; }
  .colophon__grid{ grid-template-columns:1.35fr 1fr 1fr; gap:clamp(30px,4vw,64px); }
  .dock{ display:none; }
}

/* ---------------------------------------------------------- MOTION OFF */
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
  [data-reveal]{ opacity:1 !important; transform:none !important; }
  .hero .display .line,
  .hero__copy .eyebrow,
  .hero__lead,
  .lead{ opacity:1 !important; transform:none !important; }
  .hero__plate img{ transform:none; }
}

/* ---------------------------------------------------------- LEGAL PAGES */
.legal{
  max-width:820px;
  margin-inline:auto;
  padding:56px var(--gutter) 96px;
}
.legal h1{
  font-family:var(--serif);
  font-size:clamp(1.05rem, 3.2vw, 1.55rem);
  font-weight:400; line-height:1.4;
  color:var(--ink); letter-spacing:0;
  margin-bottom:8px;
}
.legal h2{
  font-family:var(--serif);
  font-size:clamp(.8rem, 1.7vw, .93rem);
  font-weight:400; color:var(--ink); line-height:1.55;
  letter-spacing:0;
  margin:2em 0 .55em;
  scroll-margin-top:24px;
}
.legal h3{
  font-family:var(--serif);
  font-size:.82rem; font-weight:400; color:var(--ink); line-height:1.55;
  margin:1.8em 0 .5em;
  scroll-margin-top:24px;
}
.legal p,
.legal li{ margin-bottom:.9em; }
.legal ul{ list-style:none; padding-left:0; }
.legal ul li{
  position:relative; padding-left:22px;
}
.legal ul li::before{
  content:""; position:absolute; left:2px; top:.62em;
  width:6px; height:6px; background:var(--clay); transform:rotate(45deg);
}
.legal b{ color:var(--ink); font-weight:600; }
.legal a{ color:var(--clay-text); text-underline-offset:2px; }
.legal .updated{
  font-size:.8rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--graphite); margin-bottom:2.4em;
}
.legal .backlink{
  display:inline-block;
  font-size:.78rem; letter-spacing:.14em; text-transform:uppercase;
  font-weight:600; color:var(--graphite);
  text-decoration:none; margin-bottom:2.4em;
}
.legal .backlink:hover{ color:var(--clay); }

/* ---------------------------------------------------------- PRINT */
@media print{
  .masthead,.dock,.cbanner,.hero__plate{ display:none !important; }
  body{ background:#fff; color:#000; }
}

/* =====================================================================
   US PHONE FIELD + QUICK CALLBACK
   Appended after the breakpoints so these rules win where they overlap.
   No phone number is published anywhere on this site by design.
   ===================================================================== */

/* ---- phone input, US by default ------------------------------------ */
.telwrap{ position:relative; display:block; }
.telwrap__cc{
  position:absolute; left:1px; top:1px; bottom:1px;
  display:flex; align-items:center; gap:6px;
  padding:0 10px;
  border-right:1px solid var(--sand);
  border-radius:2px 0 0 2px;
  background:var(--limestone);
  font-size:.9rem; font-weight:600; color:var(--charcoal);
  pointer-events:none;              /* clicks fall through to the input */
  white-space:nowrap;
}
.telwrap__flag{ width:19px; height:13px; display:block; border:1px solid rgba(0,0,0,.14); }
/* `.hero .control` in the desktop breakpoint sets the padding shorthand,
   which reset padding-left and slid the placeholder under the +1 prefix.
   Three classes outrank it at every width. */
.field .telwrap .control--tel{ padding-left:74px; }
.field.is-bad .telwrap__cc{ border-right-color:var(--err); }

/* ---- pulsing callback button --------------------------------------- */
.callfab{
  position:fixed;
  right:16px;
  bottom:calc(84px + env(safe-area-inset-bottom));  /* clears the dock */
  z-index:75;
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  width:58px; height:58px;
  padding:0;
  border:0; border-radius:999px;
  background:var(--clay); color:#fff;
  box-shadow:0 12px 30px -8px rgba(16,15,10,.55);
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:background .3s var(--ease), transform .18s var(--ease);
}
.callfab:hover{ background:var(--clay-deep); }
.callfab:active{ transform:scale(.95); }
.callfab__ico{ width:25px; height:25px; flex:none; position:relative; z-index:1; }
.callfab__txt{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}

/* the pulse sits behind the button and never intercepts clicks */
.callfab__ring{
  position:absolute; inset:0;
  border-radius:inherit;
  background:var(--clay);
  pointer-events:none;
  animation:fabPulse 2.6s cubic-bezier(.24,.7,.35,1) infinite;
}
@keyframes fabPulse{
  0%   { transform:scale(1);    opacity:.6; }
  70%  { transform:scale(1.75); opacity:0; }
  100% { transform:scale(1.75); opacity:0; }
}

/* ---- callback dialog ------------------------------------------------ */
.cbmodal{
  position:fixed; inset:0; z-index:140;
  display:grid; place-items:center;
  padding:18px;
}
.cbmodal__scrim{
  position:absolute; inset:0;
  background:rgba(16,15,10,.74);
  -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
  opacity:0; transition:opacity .35s var(--ease);
}
.cbmodal.is-open .cbmodal__scrim{ opacity:1; }
.cbmodal__card{
  position:relative;
  width:min(430px,100%);
  max-height:90svh; overflow:auto;
  background:var(--bone);
  border-radius:2px;
  padding:34px 26px 26px;
  box-shadow:0 40px 90px -30px rgba(16,15,10,.7);
  opacity:0; transform:translateY(14px);
  transition:opacity .38s var(--ease), transform .38s var(--ease);
}
.cbmodal.is-open .cbmodal__card{ opacity:1; transform:none; }
.cbmodal__x{
  position:absolute; top:6px; right:8px;
  width:42px; height:42px;
  background:none; border:0; cursor:pointer;
  font-size:1.7rem; line-height:1; color:var(--pencil);
  transition:color .25s var(--ease);
}
.cbmodal__x:hover{ color:var(--clay); }
.cbmodal__sub{ margin-top:8px; margin-bottom:20px; font-size:.95rem; color:var(--pencil); }

/* stop the page scrolling behind an open dialog */
body.has-modal{ overflow:hidden; }

@media (min-width:1000px){
  /* the dock is hidden at this width, so the button can drop lower */
  .callfab{
    right:24px; bottom:24px;
    width:auto; height:auto;
    padding:15px 22px;
    border-radius:999px;
  }
  .callfab__txt{
    position:relative; z-index:1;
    width:auto; height:auto;
    margin:0; overflow:visible;
    clip-path:none;
    font-family:var(--mark);
    font-size:.62rem; letter-spacing:.14em; text-transform:uppercase;
  }
}

@media (prefers-reduced-motion:reduce){
  .callfab__ring{ animation:none; opacity:0; }
}

/* The consent banner is fixed at the bottom with a higher stacking order,
   so on a first visit it covered the call button and made it unclickable.
   main.js publishes the banner's measured height; sit above it.
   Two classes beat the single-class rules above regardless of order. */
.has-cbanner .callfab{
  bottom:calc(var(--cbanner-h, 0px) + 16px + env(safe-area-inset-bottom));
}

/* "(optional)" hint beside a non-required field label */
.field .opt{
  font-weight:400;
  font-size:.92em;
  color:var(--pencil);
  letter-spacing:0;
}

/* <picture> is a wrapper with no box of its own — display:contents lets the
   inner <img> lay out as a direct child, so every existing rule that targets
   `.hero__plate img`, `.work__plate img` etc. keeps working unchanged. */
picture{ display:contents; }

/* ---------------------------------------------------------- TESTIMONIAL */
.quote{ max-width:860px; margin-inline:auto; text-align:center; }
.quote blockquote{
  font-family:var(--serif); font-weight:420; font-style:italic;
  font-size:clamp(1.28rem, 3.2vw, 1.95rem); line-height:1.4;
  color:var(--ink); letter-spacing:-.01em;
  text-wrap:balance;
}
.quote blockquote::before{
  content:"\201C"; display:block;
  font-family:var(--serif); font-style:normal; font-weight:560;
  font-size:3.4rem; line-height:.55; color:var(--clay-lift);
  margin-bottom:.14em;
}
.quote figcaption{ margin-top:26px; display:flex; flex-direction:column; gap:4px; }
.quote__name{
  font-family:var(--sans); font-weight:600; font-size:.92rem;
  letter-spacing:.03em; color:var(--ink);
}
.quote__meta{
  font-size:.72rem; letter-spacing:.18em; text-transform:uppercase;
  color:var(--clay-text); font-weight:600;
}


/* =====================================================================
   ADU / ADDITIONS COMPONENTS
   Appended after the engine so these rules win where they overlap.
   ===================================================================== */
.control:focus{ box-shadow:0 0 0 3px var(--focus-ring); }
/* spam trap field: off-screen, still in the DOM for bots */
.hpx{ position:absolute !important; left:-10000px; top:auto; width:1px; height:1px; overflow:hidden; }
.interstitial{ background:var(--tint); }
.display em,
.quote blockquote{ font-style:normal; }

/* ---- hero ticks ---------------------------------------------------- */
.hero__ticks{ display:grid; gap:9px; margin-top:24px; }
.hero__ticks li{
  display:flex; align-items:flex-start; gap:10px;
  color:var(--bone); font-size:.96rem; line-height:1.4;
}
.hero__ticks li::before{
  content:""; flex:none; width:16px; height:9px; margin-top:.32em;
  border-left:2px solid var(--clay-lift); border-bottom:2px solid var(--clay-lift);
  transform:rotate(-45deg) translateY(-2px);
}
.js .hero__ticks{ opacity:0; animation:riseIn .95s var(--ease) .56s forwards; }

/* ---- trust strip --------------------------------------------------- */
.trust{ background:var(--ink); border-top:1px solid var(--bone-faint); }
.trust__in{
  display:grid; grid-template-columns:repeat(2,1fr);
  gap:1px; background:var(--bone-faint);
  padding:0;
}
.trust__in li{
  background:var(--ink);
  display:flex; flex-direction:column; gap:3px;
  padding:18px var(--gutter);
}
.trust__in li:last-child{ grid-column:1 / -1; }
.trust b{
  font-family:var(--serif); font-weight:600; color:var(--clay-lift);
  font-size:1rem; letter-spacing:.01em; line-height:1.25;
}
.trust span{ font-size:.8rem; color:var(--bone-dim); line-height:1.4; }

/* ---- project-type cards ------------------------------------------- */
.kinds{ display:grid; gap:20px; }
.kind{
  display:flex; flex-direction:column;
  background:var(--bone);
  border:1px solid rgba(22,21,15,.08);
  border-radius:2px;
  padding:28px 24px 24px;
  transition:transform .5s var(--ease), box-shadow .5s var(--ease);
}
.kind:hover{ transform:translateY(-4px); box-shadow:0 24px 50px -28px rgba(16,15,10,.45); }
.kind__ic{ display:block; width:76px; color:var(--clay); margin-bottom:18px; }
.kind__ic svg{ width:100%; height:auto; }
.kind h3{
  font-family:var(--serif); font-weight:600;
  font-size:1.22rem; line-height:1.25; color:var(--ink); letter-spacing:-.005em;
}
.kind__lede{ margin-top:10px; font-size:.98rem; }
.kind--cta{ background:var(--ink); border-color:var(--ink); justify-content:center; }
.kind--cta:hover{ transform:none; box-shadow:none; }
.kind--cta h3{ color:var(--bone); }
.kind--cta .kind__lede{ color:var(--bone-dim); margin-bottom:24px; }

/* ---- pillars / stages tuned for 4 and 6 items ---------------------- */
.pillar h3{ font-size:1.12rem; font-weight:600; line-height:1.3; }
.stage h3{ font-size:1.05rem; font-weight:600; line-height:1.3; }
.note{
  margin-top:40px; max-width:880px;
  padding:20px 22px;
  border-left:3px solid var(--clay);
  background:var(--limestone);
  font-size:.98rem;
}
.note b{ color:var(--ink); }

/* ---- gallery (real client photos) ---------------------------------- */
.band--ink .lede{ color:var(--bone-dim); }
.gallery{ display:grid; gap:16px; }
.shot{ position:relative; overflow:hidden; border-radius:2px; background:#0d0d0d; }
.shot img{
  width:100%; height:100%; aspect-ratio:3/2; object-fit:cover;
  transition:transform 1.2s var(--ease);
}
.shot:hover img{ transform:scale(1.04); }
.shot figcaption{
  position:absolute; left:0; right:0; bottom:0;
  display:flex; flex-direction:column; gap:2px;
  padding:42px 16px 14px;
  background:linear-gradient(180deg, transparent, rgba(10,10,10,.82));
  color:var(--bone);
}
.shot figcaption b{ font-family:var(--serif); font-weight:600; font-size:1rem; line-height:1.3; }
.shot figcaption span{ font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; color:var(--clay-lift); }

/* ---- testimonials grid --------------------------------------------- */
.rquotes{ display:grid; gap:20px; }
.rq{
  display:flex; flex-direction:column; justify-content:space-between; gap:22px;
  background:var(--limestone);
  border-top:3px solid var(--clay);
  padding:30px 24px 24px;
}
.rq blockquote{
  font-family:var(--serif); font-weight:400;
  font-size:1.14rem; line-height:1.5; color:var(--ink);
  text-wrap:pretty;
}
.rq figcaption{ display:flex; flex-direction:column; gap:4px; }
.rquotes--1 .rq{ max-width:860px; margin-inline:auto; text-align:center; padding:40px 28px 32px; }
.rquotes--1 .rq blockquote{ font-size:clamp(1.2rem, 2.8vw, 1.6rem); line-height:1.42; }
.rquotes__src{ margin-top:22px; font-size:.8rem; color:var(--pencil); text-align:center; }

@media (min-width:600px){
  .trust__in{ grid-template-columns:repeat(3,1fr); }
  .trust__in li:last-child{ grid-column:auto; }
  .trust__in li:nth-child(4){ grid-column:span 1; }
  .gallery{ grid-template-columns:repeat(2,1fr); }
  .shot--wide{ grid-column:1 / -1; }
}
@media (min-width:760px){
  .kinds{ grid-template-columns:repeat(2,1fr); }
  .pillars--4{ grid-template-columns:repeat(2,1fr); }
  .stages--6{ grid-template-columns:repeat(3,1fr); }
  .rquotes--3{ grid-template-columns:repeat(3,1fr); }
}
@media (min-width:1000px){
  .trust__in{ grid-template-columns:repeat(5,1fr); }
  .trust__in li{ padding:22px 20px; }
  .kinds--5, .kinds--6{ grid-template-columns:repeat(3,1fr); }
  .kinds--4{ grid-template-columns:repeat(4,1fr); }
  .pillars--4{ grid-template-columns:repeat(4,1fr); }
  .stages--6{ grid-template-columns:repeat(3,1fr); }
  .gallery{ grid-template-columns:repeat(4,1fr); grid-auto-rows:1fr; }
  .shot--wide{ grid-column:span 2; grid-row:span 2; }
  .shot--wide img{ aspect-ratio:auto; }
  .shot:not(.shot--wide) figcaption{ padding:30px 12px 10px; }
  .shot:not(.shot--wide) figcaption b{ font-size:.86rem; }
  .shot:not(.shot--wide) figcaption span{ font-size:.6rem; letter-spacing:.12em; }
}
@media (min-width:1200px){
  .stages--6{ grid-template-columns:repeat(6,1fr); gap:24px; }
}
@media (prefers-reduced-motion:reduce){
  .hero__ticks{ opacity:1 !important; }
}

/* ---- ADU: Newsreader display tuning -------------------------------- */
.display{ font-weight:500; letter-spacing:-.02em; }
.display em{ color:var(--clay); }
.hero .display{ font-weight:500; }
.lead__title{ font-size:clamp(1.05rem, 2.8vw, 1.22rem); font-weight:500; line-height:1.35; }
.work__body h3,.type__body h3,.faq__q{ font-size:clamp(1rem, 1.6vw, 1.08rem); font-weight:500; }
.faq__q{ font-family:var(--serif); }
.chapter__num{ font-weight:500; }
.details h3{ font-size:1rem; font-weight:500; }
.form-done h3{ font-size:1.2rem; }
.legal h1{ font-size:clamp(1.5rem,3.6vw,2rem); font-weight:500; }
.legal h2{ font-size:1.2rem; font-weight:600; }
.legal h3{ font-size:1.05rem; font-weight:600; }
