/* Summit Roofing & Exteriors · phone first (375), daylight page + charcoal panels */
/* Fonts ship with the site (latin subsets), preloaded, block display: no swap jump on camera */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 700; font-display: block; src: url(assets/fonts/archivo.woff2) format('woff2'); }
@font-face { font-family: 'Big Shoulders Display'; font-style: normal; font-weight: 700 900; font-display: block; src: url(assets/fonts/big-shoulders.woff2) format('woff2'); }
@font-face { font-family: 'Bodoni Moda'; font-style: italic; font-weight: 500 600; font-display: block; src: url(assets/fonts/bodoni-italic.woff2) format('woff2'); }
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 500; font-display: block; src: url(assets/fonts/bodoni.woff2) format('woff2'); }
:root {
  --ink: #1E2124; --panel: #202326; --panel2: #2A2E32; --page: #F5F2ED; --paper: #fff;
  --cu: #C9834F; --cu2: #E3A877; --cut: #9A5A2C;
  --mute: #63676B; --mute-d: rgba(255,255,255,.62);
  --line: rgba(30,33,36,.10); --line-d: rgba(255,255,255,.10);
  --sand: #ECE6DD;
  --r: 18px; --r-sm: 12px;
  --ease: cubic-bezier(.23,1,.32,1);       /* strong ease-out */
  --ease-io: cubic-bezier(.77,0,.175,1);
  --wrap: 1220px; --gut: 20px;
  --font: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --disp: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --ser: 'Bodoni Moda', Didot, Georgia, serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--cu); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons: press = scale .97, 200 ms strong ease-out ---------- */
.btn { --h: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: var(--h); padding: 0 24px; border-radius: 12px; font-family: var(--disp); text-transform: uppercase; font-weight: 800; font-size: 19px; letter-spacing: .045em; white-space: nowrap; transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease); -webkit-tap-highlight-color: transparent; user-select: none; }
.btn:active, .press:active { transform: scale(.97); }
.btn .ic { width: 18px; height: 18px; }
.btn-cu { background: var(--cu); color: #1A1410; box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 8px 24px -10px rgba(201,131,79,.8); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-glass { background: rgba(20,22,24,.45); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.btn-line { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); background: var(--paper); }
.btn-line-d { color: #fff; box-shadow: inset 0 0 0 1.5px var(--line-d); }
@media (hover: hover) {
  .btn-cu:hover { background: #D38F5B; }
  .btn-glass:hover { background: rgba(255,255,255,.22); }
  .btn-ink:hover { background: #2C3034; }
  .btn-line:hover { box-shadow: inset 0 0 0 1.5px rgba(30,33,36,.3); }
  .btn-line-d:hover { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
}
.press { transition: transform .2s var(--ease); -webkit-tap-highlight-color: transparent; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: currentColor; }
.logo svg.mark { width: 34px; height: 24px; color: var(--cu); }
.logo .wm { display: flex; flex-direction: column; line-height: 1; }
.logo .wm b { font-family: 'Bodoni Moda', Georgia, serif; font-weight: 500; font-size: 21px; letter-spacing: .2em; margin-right: -.2em; }
.logo .wm small { white-space: nowrap; font-size: 7.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--cu); margin-top: 4px; font-weight: 600; }

/* ---------- Header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px); color: var(--ink); transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.hdr.solid { background: rgba(245,242,237,.97); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.hdr nav { display: none; }
.hdr-r { display: flex; align-items: center; gap: 8px; }
.hdr .btn { --h: 40px; padding: 0 15px; font-size: 16px; border-radius: 10px; }
.menu-b { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.hdr.solid .menu-b { box-shadow: inset 0 0 0 1px var(--line); }
.menu-b .ic { width: 20px; height: 20px; }
.sheet { position: fixed; top: 74px; left: 12px; right: 12px; z-index: 49; background: var(--paper); color: var(--ink); border-radius: var(--r); padding: 8px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.35); transform-origin: top right; opacity: 0; transform: scale(.96) translateY(-6px); pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.sheet.open { opacity: 1; transform: none; pointer-events: auto; }
.sheet a { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px; font-weight: 600; font-size: 17px; border-radius: 10px; }
.sheet a + a { border-top: 1px solid var(--line); }

/* ---------- Hero: headline on the page, the job film inside a gable, the estimate along the eave ---------- */
.hero { --pk: clamp(54px, 9vw, 150px); position: relative; height: calc(var(--vhu,1svh)*100); min-height: 640px; display: flex; flex-direction: column; background: var(--page); color: var(--ink); overflow: hidden; }
.hero-top { padding-top: 84px; padding-bottom: 18px; flex: none; }
.hero h1 { font-family: var(--disp); text-transform: uppercase; font-size: clamp(54px, 16vw, 124px); line-height: .88; letter-spacing: .004em; font-weight: 850; max-width: 9ch; }
.hero h1 em { display: block; margin-top: .14em; font-family: var(--ser); font-style: italic; text-transform: none; font-weight: 500; font-size: .44em; line-height: 1.08; letter-spacing: -.01em; color: var(--cut); max-width: 15ch; }
.hero-side { display: none; }
.hero .sub { font-size: 17px; line-height: 1.45; color: var(--mute); max-width: 36ch; }
.gable { position: relative; flex: 1; min-height: 0; background: var(--cu); clip-path: polygon(0 var(--pk), 50% 0, 100% var(--pk), 100% 100%, 0 100%); }
.g-media { position: absolute; inset: 4px 0 0; background: #3a3d40 center/cover no-repeat; clip-path: polygon(0 var(--pk), 50% 0, 100% var(--pk), 100% 100%, 0 100%); }
.g-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s var(--ease); }
.g-media video.on { opacity: 1; }
.g-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-media.drift .g-poster { animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.08) translateX(-1.5%); } }
.g-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(30,33,36,.55) 0%, rgba(30,33,36,0) 28%); pointer-events: none; }
.eave { flex: none; background: var(--panel); color: #fff; padding: 14px 0 16px; }
.eave-in { display: grid; gap: 12px; }
.est { display: grid; gap: 2px; }
.est-k { font-size: 12.5px; color: var(--mute-d); letter-spacing: .01em; }
.est-v { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px; font-family: var(--disp); font-weight: 850; font-size: 30px; line-height: 1; letter-spacing: .01em; }
.est-v i { font-family: var(--font); font-style: normal; font-weight: 500; font-size: 14px; color: var(--mute-d); }
.est-v em { font-family: var(--font); font-style: normal; font-weight: 500; font-size: 14px; color: var(--cu2); margin-left: 4px; }
.est-v em b { font-weight: 700; }
.hero .ctas { display: grid; gap: 10px; }
.hero .ctas .btn-line-d { display: none; }
.talk { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 15px; color: var(--mute); }
.talk .ic { width: 16px; height: 16px; color: var(--cu); }
.talk b { color: var(--ink); font-weight: 650; text-decoration: underline; text-decoration-color: rgba(201,131,79,.6); text-underline-offset: 3px; }
.hdr-call { display: none; align-items: center; gap: 7px; margin-right: 10px; font-size: 14.5px; font-weight: 600; }
.hdr-call .ic { width: 16px; height: 16px; color: var(--cu); }
.sheet-act { display: grid; gap: 8px; padding: 10px 6px 6px; }
.sheet-act > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet-act .btn { --h: 48px; font-size: 16px; padding: 0 12px; }
.sheet .sheet-act a { border-top: 0; padding: 0 12px; justify-content: center; font-size: 16px; }

/* one-time rise-in */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.w > span { display: inline-block; transform: translateY(105%); }
.ready .w > span { transform: none; transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 45ms + 150ms); }
.rise { opacity: 0; transform: translateY(16px); }
.ready .rise { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: var(--d, .55s); }
/* the service + city line inside the H1 (what search and critics read), above the designed headline */
.h1-k { display: block; margin-bottom: 14px; font-family: var(--font); font-size: 12px; font-weight: 650; line-height: 1.3; letter-spacing: .14em; color: var(--mute); white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* entrance, set before first paint (html.anim comes from the head): header drops in, the H1 waits for its word split,
   the trade + town line rises first, the eave band rises with the gable */
html.anim body:not(.ready) .hdr .wrap > *, html.anim body:not(.ready) .h1-k { opacity: 0; }
html.anim #h1:not(.split) { visibility: hidden; }
html.anim .ready .hdr .wrap > * { animation: hdrIn .8s var(--ease) backwards; }
html.anim .ready .hdr .wrap > :nth-child(2) { animation-delay: .08s; }
html.anim .ready .hdr .wrap > :nth-child(3) { animation-delay: .16s; }
@keyframes hdrIn { from { opacity: 0; transform: translateY(-14px); } }
html.anim .ready .h1-k { animation: kIn .7s var(--ease) .05s backwards; }
@keyframes kIn { from { opacity: 0; transform: translateY(10px); } }
html.anim .eave { opacity: 0; transform: translateY(16px); }
html.anim .ready .eave { opacity: 1; transform: none; transition: opacity .7s var(--ease) .3s, transform .8s var(--ease) .3s; }

/* ---------- Scroll reveals ---------- */
[data-rv] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
[data-rv="left"] { transform: translateX(48px); }
[data-rv].in { opacity: 1; transform: none; }
[data-rv].in.btn:active, [data-rv].in.press:active { transform: scale(.97); }

/* ---------- Section shells ---------- */
.sec { padding: 72px 0; }
.h2 { font-family: var(--disp); text-transform: uppercase; font-size: clamp(46px, 13vw, 92px); line-height: .9; letter-spacing: .004em; font-weight: 850; text-wrap: balance; }
.h2 em { display: block; margin-top: .12em; font-family: var(--ser); font-style: italic; text-transform: none; font-weight: 500; font-size: .5em; line-height: 1.1; letter-spacing: -.01em; color: var(--cut); }
.dark .h2 em, .close .h2 em { color: var(--cu2); }
.lede { margin-top: 12px; color: var(--mute); font-size: 17px; max-width: 46ch; }
.dark { background: var(--panel); color: #fff; }
.dark .lede { color: var(--mute-d); }

/* ---------- Trust row ---------- */
.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 18px; padding-bottom: 18px; }
.t-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-sm); background: var(--page); min-height: 68px; }
.t-item b { display: block; font-size: 14.5px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.t-item div span { display: block; font-size: 12.5px; line-height: 1.3; color: var(--mute); margin-top: 2px; }
.t-g { grid-column: 1 / -1; padding: 14px 16px; }
.t-g .g { width: 44px; height: 44px; border-radius: 999px; background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 4px 10px -6px rgba(30,33,36,.3); display: grid; place-items: center; flex: none; }
.t-g .g svg { width: 22px; height: 22px; }
.t-g .score { font-family: var(--disp); font-size: 46px; font-weight: 850; line-height: .9; min-width: 1.6ch; }
.stars, .t-item .stars { display: flex; gap: 2px; color: var(--cu); }
.stars .ic { width: 15px; height: 15px; }
.t-g .meta { display: flex; flex-direction: column; gap: 4px; }
.t-g .meta > span:last-child { font-size: 12.5px; color: var(--mute); }
.t-g .gr { margin-left: auto; font-size: 12.5px; color: var(--mute); text-align: right; line-height: 1.3; }
.g-stars, .t-item .g-stars, .rv .g-stars { color: #FBBC04; }
/* One badge size for the whole row: 44px, logo art inside */
.bdg { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; }
.bdg.bbb { background: #005F86; color: #fff; }
.bdg.bbb svg { width: 21px; height: 36px; }
.bdg.gaf { border-radius: 999px; box-shadow: 0 4px 10px -6px rgba(30,33,36,.35); }
.bdg.gaf svg { width: 44px; height: 44px; }
.bdg.ic-b { background: var(--ink); color: var(--cu2); }
.bdg.ic-b .ic { width: 22px; height: 22px; }

/* ---------- Calculator ---------- */
.calc-sec { padding: 56px 0 48px; position: relative; overflow: clip; }
.calc-sec::before { content: ""; position: absolute; inset: -40% -30% auto auto; width: 520px; height: 520px; background: radial-gradient(closest-side, rgba(201,131,79,.18), transparent); pointer-events: none; }

.calc { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; position: relative; }
.calc > * { min-width: 0; }
.qs { background: var(--panel2); border-radius: var(--r); padding: 6px 0; box-shadow: inset 0 0 0 1px var(--line-d); }
.q { padding: 11px 16px 12px; }
.q + .q { border-top: 1px solid var(--line-d); }
.q-l { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.78); margin-bottom: 9px; }
.q-l i { font-style: normal; font-size: 11px; color: var(--cu2); font-weight: 700; width: 14px; }
/* every answer on screen, wrapped onto the next line inside the panel (no sideways rows): one left edge, nothing cut */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; flex: none; height: 36px; padding: 0 13px; border-radius: 999px; font-size: 14px; font-weight: 600; background: rgba(255,255,255,.06); color: rgba(255,255,255,.86); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); transition: transform .2s var(--ease), background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease); white-space: nowrap; scroll-snap-align: start; -webkit-tap-highlight-color: transparent; }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--cu); color: #1A1410; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.chip small { font-weight: 500; opacity: .7; font-size: 12px; }

.res { background: linear-gradient(180deg, #2E3236, #26292D); border-radius: var(--r); padding: 18px 16px 16px; box-shadow: inset 0 0 0 1px rgba(227,168,119,.22), 0 30px 60px -30px rgba(0,0,0,.6); }
.res-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,.7); font-weight: 600; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--cu2); }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--cu2); box-shadow: 0 0 0 4px rgba(227,168,119,.18); }
.price { margin-top: 6px; white-space: nowrap; font-family: var(--disp); font-size: clamp(36px, 10.2vw, 64px); font-weight: 850; letter-spacing: .005em; line-height: .95; }
.price .to { font-family: var(--ser); font-style: italic; font-weight: 500; color: var(--cu2); font-size: .42em; margin: 0 .2em; }
.term { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.term > span { font-size: 13px; color: rgba(255,255,255,.7); font-weight: 600; white-space: nowrap; }
.seg { position: relative; flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(0,0,0,.28); border-radius: 999px; padding: 3px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.seg .thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); transform: translateX(calc(var(--t, 1) * 100%)); transition: transform .45s cubic-bezier(.32,.72,0,1); }
.seg button { position: relative; height: 34px; font-size: 14px; font-weight: 650; color: rgba(255,255,255,.72); transition: color .3s var(--ease), transform .2s var(--ease); border-radius: 999px; }
.seg button[aria-pressed="true"] { color: var(--ink); }
.seg button:active { transform: scale(.97); }
.mo { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-d); display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.mo b { font-size: 20px; font-weight: 650; letter-spacing: -.01em; }
.mo b .n { font-family: var(--disp); font-size: 32px; font-weight: 850; color: var(--cu2); letter-spacing: .01em; vertical-align: -2px; }
.mo > span { font-size: 13px; color: rgba(255,255,255,.62); }
.res .act { margin-top: 16px; }
/* questions first, the estimate under them (same reading order as desktop): on phones the price stays in view while you tap */
.qs { order: 1; } .res { order: 2; }
.incl { display: none; }
.res .act .btn { width: 100%; }
.form { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.form > div { overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility 0s .45s; }
.form.open > div { opacity: 1; visibility: visible; transition: opacity .25s var(--ease) .1s, visibility 0s; }
.form.open { grid-template-rows: 1fr; }
.form .fields { display: grid; gap: 10px; padding-top: 16px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.75); }
.form input { height: 46px; border-radius: 12px; border: 0; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); color: #fff; font: inherit; font-size: 16px; padding: 0 14px; transition: box-shadow .2s var(--ease); }
.form input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--cu2); }
.form .btn { margin-top: 4px; }
.lock.hide { display: none; }

.thread { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.thread > div { overflow: hidden; visibility: hidden; transition: visibility 0s .5s; }
.thread.open > div { visibility: visible; transition: none; }
.res .act { overflow-anchor: none; }
.thread.open { grid-template-rows: 1fr; }
.th-in { margin-top: 14px; max-height: 360px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 0 2px 4px; display: flex; flex-direction: column; gap: 8px; mask-image: linear-gradient(180deg, transparent 0, #000 18px); }
.th-in::-webkit-scrollbar { display: none; }
.msgs { display: flex; flex-direction: column; gap: 8px; }
.th-who { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.55); padding: 14px 0 6px; background: linear-gradient(180deg, #2C3034 70%, transparent); }
.th-who .av { width: 26px; height: 26px; border-radius: 999px; background: var(--ink); display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(227,168,119,.4); }
.th-who .av svg { width: 16px; height: 12px; color: var(--cu2); }
.th-who b { color: #fff; font-weight: 650; font-size: 13px; }
.typing, .bubble { border-radius: 20px 20px 20px 6px; background: #E9E6E1; color: #1B1D1F; }
.typing { display: inline-flex; align-self: flex-start; gap: 4px; padding: 13px 15px; }
.typing i { width: 7px; height: 7px; border-radius: 99px; background: #8D8F91; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.bubble { padding: 11px 14px; font-size: 14.5px; line-height: 1.42; max-width: 86%; align-self: flex-start; transform-origin: bottom left; }
.bubble.out { align-self: flex-end; background: var(--cu); color: #1A1410; border-radius: 20px 20px 6px 20px; transform-origin: bottom right; }
.land { animation: land .5s cubic-bezier(.2,1.1,.3,1) both; }
.booked { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 14px; border-radius: 16px; background: rgba(227,168,119,.1); box-shadow: inset 0 0 0 1px rgba(227,168,119,.45); transform-origin: bottom center; }
.booked .bk-ic { width: 34px; height: 34px; border-radius: 999px; background: var(--cu); color: #1A1410; display: grid; place-items: center; }
.booked .bk-ic .ic { width: 19px; height: 19px; }
.booked b { display: block; font-family: var(--disp); text-transform: uppercase; font-size: 26px; font-weight: 850; letter-spacing: .02em; line-height: 1; color: #fff; }
.booked .bk-what { display: block; margin-top: 4px; font-size: 14px; font-weight: 650; color: #fff; }
.booked .bk-when { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 13px; font-weight: 600; color: var(--cu2); }
.booked .bk-when .ic { width: 15px; height: 15px; }
.booked p { margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,.72); }
@keyframes land { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
.th-meta { margin-top: 6px; font-size: 11.5px; color: rgba(255,255,255,.45); }
.fine { margin-top: 16px; font-size: 12px; line-height: 1.5; color: rgba(255,255,255,.48); }

/* ---------- Roof types ---------- */
.roofs .rail { margin-top: 26px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-left: calc(var(--gut) * -1); margin-right: calc(var(--gut) * -1); padding: 4px var(--gut) 8px; scroll-padding: 0 var(--gut); overscroll-behavior-x: contain; }
.roofs .rail::-webkit-scrollbar { display: none; }
.card { flex: 0 0 80%; scroll-snap-align: start; background: var(--paper); border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 18px 40px -28px rgba(30,33,36,.45); display: flex; flex-direction: column; }
.card .ph { aspect-ratio: 4 / 3.6; background: var(--sand) center/cover no-repeat; position: relative; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .life { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; background: #fff; color: var(--ink); }
.card .life .ic { width: 14px; height: 14px; color: var(--cut); }
.card .bd { padding: 16px 16px 14px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-family: var(--disp); text-transform: uppercase; font-size: 27px; line-height: .95; letter-spacing: .01em; font-weight: 850; }
.card p { margin-top: 6px; font-size: 14.5px; color: var(--mute); line-height: 1.45; flex: 1; }
.card .ft { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card .from { min-width: 0; font-size: 13px; line-height: 1.3; color: var(--mute); }
.card .from .per { white-space: nowrap; }
.card .from b { color: var(--ink); font-size: 15px; font-weight: 700; }
.card .go { font-family: var(--disp); text-transform: uppercase; letter-spacing: .05em; font-weight: 800; font-size: 16px !important; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 13.5px; font-weight: 700; color: var(--cut); padding: 6px 0; }
.card .go .ic { width: 15px; height: 15px; transition: transform .2s var(--ease); }
@media (hover: hover) { .card .go:hover .ic { transform: translateX(3px); } }
.rail-bar { margin-top: 14px; height: 3px; border-radius: 9px; background: var(--line); overflow: hidden; }
.rail-bar i { display: block; height: 100%; width: 30%; background: var(--ink); border-radius: 9px; transform-origin: left; transition: transform .15s linear; }
.note { margin-top: 18px; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--mute); }
.note .ic { color: var(--cut); margin-top: 2px; }

/* ---------- Layers ---------- */
.layers { background: #F3EDE8; }
#process { background: var(--paper); }
.cut { margin: 18px -8px 0; }
.cut img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ly { margin-top: 22px; position: relative; display: grid; gap: 0; }
.ly::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: rgba(30,33,36,.1); }
.ly .prog { position: absolute; left: 19px; top: 20px; width: 2px; height: calc(100% - 40px); background: var(--cu); transform-origin: top; transform: scaleY(var(--p, 0)); transition: transform .5s var(--ease); }
.l { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 12px 0; opacity: .18; transform: translateX(10px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.l.in { opacity: 1; transform: none; }
.l .n { width: 40px; height: 40px; border-radius: 999px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; color: var(--cut); position: relative; z-index: 1; transition: background-color .5s var(--ease), color .5s var(--ease); }
.l.in .n { background: var(--ink); color: var(--cu2); box-shadow: none; }
.l .n .ic { width: 19px; height: 19px; }
.l h3 { font-size: 17.5px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; padding-top: 2px; }
.l h3 small { font-size: 12px; color: var(--cut); font-weight: 700; margin-right: 6px; letter-spacing: .02em; }
.l p { font-size: 14.5px; color: var(--mute); margin-top: 3px; }

/* ---------- Color visualizer ---------- */
.viz { position: relative; background: var(--paper); }
.viz-grid { margin-top: 24px; display: grid; gap: 16px; }
.viz-frame { position: relative; aspect-ratio: 3 / 2; border-radius: var(--r); overflow: hidden; background: var(--sand); box-shadow: 0 30px 60px -34px rgba(30,33,36,.55); }
.viz-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; z-index: 1; transition: opacity .6s cubic-bezier(.4,0,.2,1); }
/* new colour fades in on top, the one showing stays solid underneath (no dim mid-swap) */
.viz-frame img.under { opacity: 1; z-index: 2; }
.viz-frame img.on { opacity: 1; z-index: 3; }
.viz-tag { position: absolute; z-index: 20; left: 12px; bottom: 12px; display: grid; padding: 9px 13px; border-radius: 12px; background: rgba(20,22,24,.85); color: #fff; font-size: 12px; line-height: 1.25; }
.viz-tag b { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--cu2); font-weight: 700; }
.viz-tag span { font-family: var(--disp); text-transform: uppercase; font-size: 24px; font-weight: 850; letter-spacing: .02em; }
.viz-side { display: grid; gap: 18px; align-content: start; }
.sw { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.sw-b { position: relative; display: grid; justify-items: center; gap: 7px; padding: 8px 2px; border-radius: 12px; font-size: 11.5px; font-weight: 600; line-height: 1.2; text-align: center; color: var(--mute); transition: transform .2s var(--ease), background-color .25s var(--ease), color .25s; }
.sw-b:active { transform: scale(.97); }
.sw-b i { width: 42px; height: 42px; border-radius: 999px; background: repeating-linear-gradient(170deg, var(--s) 0 5px, var(--s2) 5px 7px, var(--s) 7px 11px); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.sw-b[aria-pressed="true"] { color: var(--ink); background: var(--page); }
.sw-b[aria-pressed="true"] i { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--cu); transform: scale(1.06); }
.viz-side .btn { justify-self: start; }

/* ---------- Layer markers ---------- */
.cut { position: relative; }
.hs { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%) scale(.8); width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.85); color: var(--mute); box-shadow: 0 2px 10px rgba(0,0,0,.15); opacity: .55; transition: transform .5s var(--ease), background-color .4s var(--ease), color .4s, opacity .4s; }
.hs.in { opacity: 1; transform: translate(-50%, -50%) scale(1); background: var(--ink); color: var(--cu2); }
.hs.now { background: var(--cu); color: #1A1410; }
.hs.now::after { content: ""; position: absolute; inset: -6px; border-radius: 999px; border: 2px solid var(--cu); animation: ping 1.6s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.ly-cta { margin-top: 14px; justify-self: start; margin-left: 54px; }
/* phones: the cutaway stays pinned under the header while the five layers scroll up beneath it (Molten's layer stack),
   so each marker lights on the picture as its layer is read; a soft band of the section colour hides the text sliding under */
@media (max-width: 759px) {
  .lay-grid .cut { position: sticky; top: calc(66px + env(safe-area-inset-top, 0px)); z-index: 2; padding-bottom: 8px; background: #F3EDE8; box-shadow: 0 14px 16px #F3EDE8; }
}

/* ---------- How it gets done: one house, pinned full-bleed, six steps ---------- */
.job { background: var(--page); }
.job-head { padding-top: 72px; padding-bottom: 28px; }
.job-track { position: relative; height: calc(calc(var(--vhu,1svh)*100) + 6 * calc(var(--vhu,1svh)*62)); }
.job-stage { position: sticky; top: 0; height: calc(var(--vhu,1svh)*100); overflow: hidden; background: #2a2d30; color: #fff; isolation: isolate; }
.job-media { position: absolute; inset: 0; }
/* shots dissolve on top of the one showing (no slow push: scaling full-screen photos re-decodes them every frame) */
.jm-l { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; z-index: 1; transition: opacity .9s cubic-bezier(.4,0,.2,1); }
.jm-l.under { opacity: 1; z-index: 2; }
.jm-l.on { opacity: 1; z-index: 3; }
.job-media::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; background:
  linear-gradient(180deg, rgba(20,22,24,.62) 0%, rgba(20,22,24,0) 26%),
  linear-gradient(0deg, rgba(20,22,24,.86) 0%, rgba(20,22,24,.5) 34%, rgba(20,22,24,0) 62%); }
.job-ui { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.job-top { padding-top: 84px; }
.ridge { position: relative; height: 34px; }
.ridge svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ridge polyline { fill: none; stroke: rgba(255,255,255,.28); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ridge-fill { position: absolute; inset: -4px 0; overflow: hidden; transform: translateX(calc(var(--p, 0) * 100% - 100%)); }
.ridge-fill > div { position: absolute; inset: 4px 0; transform: translateX(calc(100% - var(--p, 0) * 100%)); }
.ridge-fill polyline { stroke: var(--cu2); stroke-width: 3; }
.ridge-ticks { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.ridge-ticks li { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.ridge-ticks i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 999px; background: #2a2d30; box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); transition: background-color .4s var(--ease), box-shadow .4s var(--ease); }
.ridge-ticks li.done i { background: var(--cu2); box-shadow: inset 0 0 0 2px var(--cu2); }
.ridge-ticks span { display: none; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); transition: color .4s var(--ease); }
.ridge-ticks li.now span { color: #fff; }
.ridge-ticks li:first-child span { left: 0; transform: none; }
.ridge-ticks li:last-child span { left: auto; right: 0; transform: none; }
.job-bot { position: relative; display: flex; flex-direction: column-reverse; gap: 14px; padding-bottom: 104px; }
.job-copy { position: relative; display: grid; }
.jc { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease), transform .6s var(--ease); }
.jc.on { opacity: 1; transform: none; transition-delay: .12s; }
.jc small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cu2); }
.jc h3 { font-family: var(--disp); text-transform: uppercase; font-size: 46px; line-height: .92; font-weight: 850; letter-spacing: .01em; margin-top: 6px; }
.jc p { margin-top: 8px; font-size: 16px; color: rgba(255,255,255,.82); max-width: 36ch; }
.job-msgs { position: relative; display: grid; }
.msg { grid-area: 1 / 1; align-self: end; max-width: 360px; background: #F5F2ED; color: var(--ink); border-radius: 18px; padding: 12px 14px 13px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); opacity: 0; transform: translateY(16px) scale(.98); transform-origin: bottom left; transition: opacity .4s var(--ease), transform .55s var(--ease); }
.msg.on { opacity: 1; transform: none; transition-delay: .25s; }
.msg-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mute); }
.msg-h b { color: var(--ink); font-weight: 700; font-size: 13.5px; }
.msg-h .av { width: 26px; height: 26px; border-radius: 999px; background: var(--panel); color: var(--cu); display: grid; place-items: center; flex: none; }
.msg-h .av svg { width: 16px; height: 12px; }
.msg-h time { margin-left: auto; }
.msg p { margin-top: 7px; font-size: 15px; line-height: 1.4; }
.job-est { display: none; }
.job-end { padding-top: 28px; padding-bottom: 72px; }

/* ---------- Our work ---------- */
.work { background: var(--paper); }
.wk-frame { position: relative; margin-top: 26px; aspect-ratio: 4 / 3.2; border-radius: var(--r); overflow: hidden; background: var(--sand); box-shadow: 0 30px 60px -34px rgba(30,33,36,.55); isolation: isolate; }
.wk-l { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; z-index: 1; pointer-events: none; transition: opacity .65s cubic-bezier(.4,0,.2,1); }
.wk-l.under { opacity: 1; z-index: 2; }
.wk-l.on { opacity: 1; z-index: 3; pointer-events: auto; }
.ba { --x: 50%; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ba .ba-b { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.ba-lab { position: absolute; top: 12px; z-index: 2; padding: 6px 11px; border-radius: 999px; background: rgba(20,22,24,.82); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; }
.ba-lab.is-b { left: 12px; }
.ba-lab.is-a { right: 12px; }
.ba-h { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--x); width: 44px; margin-left: -22px; display: grid; place-items: center; outline: none; }
.ba-h::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.35); }
.ba-h i { position: relative; width: 44px; height: 44px; border-radius: 999px; background: var(--cu); color: #1A1410; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px -8px rgba(0,0,0,.55), 0 0 0 3px rgba(255,255,255,.9); transition: transform .2s var(--ease); }
.ba-h i .ic { width: 14px; height: 14px; }
.ba.drag .ba-h i, .ba-h:focus-visible i { transform: scale(1.08); }
.wk-tag { position: absolute; z-index: 20; left: 12px; bottom: 12px; display: grid; padding: 9px 13px; border-radius: 12px; background: rgba(20,22,24,.85); color: #fff; font-size: 12.5px; line-height: 1.25; pointer-events: none; }
.wk-tag b { font-family: var(--disp); text-transform: uppercase; font-size: 24px; font-weight: 850; letter-spacing: .02em; line-height: 1; }
.wk-tag span { color: rgba(255,255,255,.78); margin-top: 3px; }
.wk-tag.swap { animation: tagIn .45s var(--ease) both; }
@keyframes tagIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wk-rail { margin-top: 14px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-left: calc(var(--gut) * -1); margin-right: calc(var(--gut) * -1); padding: 4px var(--gut) 8px; scroll-padding: 0 var(--gut); overscroll-behavior-x: contain; }
.wk-rail::-webkit-scrollbar { display: none; }
.wk-c { flex: 0 0 44%; scroll-snap-align: start; text-align: left; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; border-radius: 14px; overflow: hidden; background: var(--page); box-shadow: 0 0 0 1px var(--line); position: relative; transition: transform .2s var(--ease), box-shadow .3s var(--ease); -webkit-tap-highlight-color: transparent; }
.wk-c:active { transform: scale(.97); }
.wk-c .ph { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); }
.wk-c .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.wk-c .cap { display: grid; align-content: start; flex: 1; padding: 9px 11px 11px; font-size: 12px; line-height: 1.3; color: var(--mute); }
.wk-c .cap b { font-family: var(--disp); text-transform: uppercase; font-size: 18px; font-weight: 850; letter-spacing: .02em; color: var(--ink); line-height: 1.05; }
.wk-c[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--cu); }
.wk-c[aria-pressed="true"] .cap b { color: var(--cut); }
@media (hover: hover) {
  .wk-c:hover .ph img { transform: scale(1.06); }
  .wk-c:hover { box-shadow: 0 0 0 1.5px rgba(201,131,79,.6); }
  .wk-c[aria-pressed="true"]:hover { box-shadow: 0 0 0 2px var(--cu); }
}
.wk-bar { margin-top: 8px; }

/* ---------- Reviews (carousel, no autoplay) ---------- */
.rv-head { display: grid; gap: 18px; }
.gsum { display: inline-flex; align-items: center; gap: 12px; justify-self: start; padding: 10px 18px 10px 10px; border-radius: 999px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line-d); }
.gsum-g { width: 40px; height: 40px; border-radius: 999px; background: #fff; display: grid; place-items: center; flex: none; }
.gsum-g svg { width: 20px; height: 20px; }
.gsum > div { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 9px; row-gap: 3px; }
.gsum b { font-family: var(--disp); font-size: 34px; font-weight: 850; line-height: .9; grid-row: span 2; }
.gsum small { font-size: 12.5px; color: var(--mute-d); }
.gsum .stars .ic { width: 14px; height: 14px; }
.revs { margin: 26px calc(var(--gut) * -1) 0; padding: 4px var(--gut) 8px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gut); scrollbar-width: none; overscroll-behavior-x: contain; }
.revs::-webkit-scrollbar { display: none; }
.rv { flex: 0 0 84%; scroll-snap-align: start; margin: 0; background: var(--panel2); border-radius: var(--r); padding: 18px; box-shadow: inset 0 0 0 1px var(--line-d); display: flex; flex-direction: column; gap: 14px; }
.rv .top { display: flex; justify-content: space-between; align-items: center; }
.rv .gi { width: 30px; height: 30px; border-radius: 999px; background: #fff; display: grid; place-items: center; }
.rv .gi svg { width: 16px; height: 16px; }
.rv q { quotes: none; font-size: 17px; line-height: 1.45; letter-spacing: -.01em; flex: 1; }
.rv .who { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.rv .who .av { width: 34px; height: 34px; border-radius: 99px; background: rgba(227,168,119,.16); color: var(--cu2); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.rv .who b { display: block; font-weight: 650; }
.rv .who span { color: var(--mute-d); font-size: 12.5px; }
.rv-nav { margin-top: 14px; display: flex; align-items: center; gap: 8px; }
.rv-nav .rail-bar { display: block; flex: 1; margin: 0 8px 0 0; background: var(--line-d); }
.rv-nav .rail-bar i { background: var(--cu2); }
.rv-arrow { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; color: #fff; box-shadow: inset 0 0 0 1.5px var(--line-d); transition: transform .2s var(--ease), opacity .25s var(--ease), background-color .2s; }
.rv-arrow .ic { width: 18px; height: 18px; }
.rv-arrow:disabled { opacity: .3; cursor: default; }
@media (hover: hover) { .rv-arrow:not(:disabled):hover { background: rgba(255,255,255,.08); } }
.all { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--cu2); }
.all .ic { width: 16px; height: 16px; }
.ref { margin-top: 40px; border-radius: var(--r); padding: 22px 18px; background: linear-gradient(135deg, rgba(201,131,79,.22), rgba(201,131,79,.06)); box-shadow: inset 0 0 0 1px rgba(227,168,119,.25); display: grid; gap: 16px; }
.ref .gift { width: 44px; height: 44px; border-radius: 12px; background: var(--cu); color: #1A1410; display: grid; place-items: center; }
.ref .gift .ic { width: 22px; height: 22px; }
.ref p { font-size: 17px; line-height: 1.45; }
.ref p b { font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.fq { border-bottom: 1px solid var(--line); }
.fq button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; padding: 18px 0; font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.fq button .ic { width: 20px; height: 20px; color: var(--cut); transition: transform .3s var(--ease); }
.fq.open button .ic { transform: rotate(45deg); }
.fq .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.fq.open .a { grid-template-rows: 1fr; }
.fq .a > div { overflow: hidden; }
.fq .a p { padding: 0 32px 18px 0; color: var(--mute); font-size: 15.5px; }

/* ---------- Service area + close ---------- */
.towns { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.towns li { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.towns li .ic { width: 15px; height: 15px; color: var(--cut); }
.close { margin-top: 40px; border-radius: 24px; background: var(--panel); color: #fff; padding: 34px 20px 22px; position: relative; overflow: hidden; }
.close::before { content: ""; position: absolute; right: -120px; top: -140px; width: 360px; height: 360px; background: radial-gradient(closest-side, rgba(201,131,79,.3), transparent); }
.close .h2 { position: relative; max-width: 14ch; }
.close .ctas { position: relative; margin-top: 24px; display: grid; gap: 10px; }

/* ---------- Footer ---------- */
.foot { background: var(--panel); color: rgba(255,255,255,.7); padding: 56px 0 120px; font-size: 14.5px; }
.foot .logo { color: #fff; }
.f-top { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 20px; }
.f-brand { grid-column: 1 / -1; }
.foot .about { margin-top: 16px; max-width: 40ch; }
.f-act { margin-top: 20px; display: grid; gap: 8px; }
.fbtn { white-space: nowrap; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 12px; color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line-d); background: rgba(255,255,255,.03); transition: transform .2s var(--ease), background-color .2s; }
.fbtn:active { transform: scale(.97); }
.fbtn .ic { width: 18px; height: 18px; color: var(--cu2); }
.f-col { display: grid; align-content: start; gap: 10px; }
.f-col h4 { margin: 0 0 4px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--cu2); font-weight: 700; }
.f-col a { color: #fff; font-weight: 500; }
.f-col p { margin: 0; }
.f-col .lic { color: rgba(255,255,255,.5); font-size: 13.5px; }
.foot .soc { margin-top: 6px; display: flex; gap: 8px; }
.foot .soc a { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-d); color: #fff; }
.foot .soc svg { width: 17px; height: 17px; fill: currentColor; }
.foot .soc .nd svg { width: 30px; height: 7px; }
.foot .bot { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line-d); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: rgba(255,255,255,.5); }
.foot .bot a { color: rgba(255,255,255,.75); }
@media (hover: hover) { .fbtn:hover { background: rgba(255,255,255,.07); } .f-col a:hover { color: var(--cu2); } }

/* ---------- Sticky phone bar ---------- */
.pbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: grid; grid-template-columns: 48px 48px 1fr; gap: 6px; padding: 5px; border-radius: 18px; background: rgba(26,28,30,.96); box-shadow: 0 14px 34px -12px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.07); transform: translateY(calc(100% + 30px)); transition: transform .45s var(--ease); }
.pbar.show { transform: none; }
.pbar a { height: 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; background: rgba(255,255,255,.08); transition: transform .2s var(--ease); -webkit-tap-highlight-color: transparent; }
.pbar a:active { transform: scale(.97); }
.pbar a .ic { width: 19px; height: 19px; }
.pbar .pl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pbar a.p { background: var(--cu); color: #1A1410; font-family: var(--disp); text-transform: uppercase; letter-spacing: .05em; font-weight: 800; font-size: 17px; }
.pbar a.p .ic { width: 16px; height: 16px; }

/* ---------- Desktop ---------- */
@media (min-width: 760px) {
  :root { --gut: 32px; }
  .sec { padding: 112px 0; }
  .res { padding: 24px; order: 2; }
  .qs { order: 1; }
  .fine { max-width: 70ch; }
  .q { padding: 14px 22px 16px; }
  .viz-head { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: end; }
  .viz-grid { grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; margin-top: 40px; }
  .sw { grid-template-columns: 1fr; gap: 4px; }
  .sw-b { grid-template-columns: auto 1fr; justify-items: start; align-items: center; gap: 14px; padding: 8px 12px 8px 8px; font-size: 16px; text-align: left; }
  .sw-b i { width: 44px; height: 44px; }
  .job-head { padding-top: 112px; padding-bottom: 44px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: end; }
  .job-top { padding-top: 104px; }
  .ridge { height: 46px; }
  .ridge-ticks span { display: block; }
  .job-bot { flex-direction: row; justify-content: space-between; align-items: flex-end; padding-bottom: 48px; }
  .jc h3 { font-size: 64px; }
  .jc p { font-size: 17px; }
  .msg { width: 360px; }
  .job-end { padding-bottom: 112px; }
  .lay-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; margin-top: 44px; }
  .lay-grid .cut { margin: 0; position: sticky; top: 96px; }
  .lay-grid .ly { margin: 0; }
  .l { padding: 18px 0; }
  .revs { gap: 16px; margin: 40px 0 0; padding: 4px 0 8px; scroll-padding: 0; }
  .rv { flex-basis: calc((100% - 32px) / 3); padding: 22px; }
  .rv-head { grid-template-columns: 1fr auto; align-items: end; }
  .work-head { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: end; }
  .wk-frame { margin-top: 40px; aspect-ratio: 16 / 8.4; }
  .wk-tag { left: 18px; bottom: 18px; padding: 12px 16px; }
  .wk-tag b { font-size: 30px; }
  .ref { grid-template-columns: auto 1fr auto; align-items: center; padding: 26px 28px; gap: 22px; }
  .faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
  .faq { margin-top: 0; }
  .foot { padding-bottom: 56px; }
  .f-top { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; }
  .f-brand { grid-column: auto; }
  .f-act { display: flex; flex-wrap: wrap; }
  .fbtn { height: 44px; padding: 0 14px; font-size: 14px; }
  .foot .bot .by { margin-left: auto; }
  .area-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; }
  .towns { margin-top: 6px; grid-template-columns: repeat(3, 1fr); column-gap: 24px; }
}

/* iPad portrait (760–999): the trust row, roof cards, estimator and close keep their phone layout, so nothing is squeezed or cut */
@media (min-width: 760px) and (max-width: 999px) {
  .calc { margin-top: 32px; }
  .card { flex-basis: 44%; }
  .wk-c { flex-basis: 30%; }
  .close .ctas { grid-auto-flow: column; justify-content: start; }
}
@media (min-width: 1000px) {
  .trust .wrap { grid-template-columns: 1.4fr repeat(4, 1fr); gap: 0; padding-top: 0; padding-bottom: 0; }
  .t-item { background: none; border-radius: 0; padding: 22px 18px; min-height: 96px; }
  .t-item + .t-item { border-left: 1px solid var(--line); }
  .t-g { grid-column: auto; padding-left: 0; }
  .t-g .gr { display: none; }
  .calc { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 40px; }
  .roofs .rail { display: grid; grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 40px 0 0; padding: 0; }
  .card { flex: auto; }
  .rail-bar { display: none; }
  .card .ft { flex-direction: column; align-items: flex-start; gap: 4px; }
  .wk-rail { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; overflow: visible; margin: 16px 0 0; padding: 0; }
  .wk-bar { display: none; }
  .close { padding: 56px 56px 52px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px; }
  .close .ctas { margin: 0; grid-auto-flow: column; }
}
@media (min-width: 1000px) {
  .hdr nav { display: flex; gap: 18px; font-size: 14.5px; font-weight: 600; }
  .hdr nav a { opacity: .88; transition: opacity .2s; }
  .hdr nav a:hover { opacity: 1; }
  .menu-b { display: none; }
  .pbar { display: none; }
  .hero-top { padding-top: 96px; padding-bottom: 22px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: end; }
  .hero h1 { font-size: clamp(60px, 6.4vw, 96px); max-width: none; white-space: nowrap; }
  .hero h1 em { max-width: none; white-space: nowrap; }
  .h1-k { font-size: 13px; margin-bottom: 16px; }
  .hero-side { display: block; padding-bottom: 4px; }
  .hero .sub { font-size: 15.5px; }
  .eave { padding: 18px 0; }
  .eave-in { grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
  .est-v { font-size: 38px; flex-wrap: nowrap; white-space: nowrap; }
  .est-k { font-size: 13.5px; }
  .est-v em { font-size: 16px; margin-left: 10px; }
  .hero .ctas { display: flex; }
  .hero .ctas .btn { flex: none; padding: 0 26px; --h: 54px; }
  .hero .ctas .btn-line-d { display: inline-flex; }
  .job-est { display: block; position: absolute; right: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); top: 50%; width: 340px; background: #fff; color: var(--ink); border-radius: 16px; padding: 18px 20px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.6); opacity: 0; transform: translateY(calc(-50% + 18px)); transition: opacity .45s var(--ease), transform .6s var(--ease); }
  .job-est.on { opacity: 1; transform: translateY(-50%); transition-delay: .2s; }
  .je-h b { display: block; font-family: var(--disp); text-transform: uppercase; font-weight: 850; font-size: 24px; line-height: 1; }
  .je-h > span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--mute); }
  .job-est ul { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
  .job-est li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
  .job-est li .ic { width: 16px; height: 16px; color: var(--cut); }
  .je-t { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--mute); }
  .je-t b { font-family: var(--disp); font-weight: 850; font-size: 22px; color: var(--ink); letter-spacing: .01em; }
  .hdr-call { display: inline-flex; }
  .calc-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: end; }
  .calc { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
  .calc .res { position: relative; top: auto; height: 660px; display: flex; flex-direction: column; }
  .calc .qs { display: flex; flex-direction: column; }
  .calc .q { flex: 1; display: flex; flex-direction: column; justify-content: center; }
  .res .act { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; }
  .thread.open { flex: 1; min-height: 0; }
  .thread > div { min-height: 0; }
  .th-in { max-height: none; height: 100%; }
  .incl { display: block; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-d); }
  .incl span { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--cu2); font-weight: 700; }
  .incl ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .incl li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.82); }
  .incl li .ic { width: 16px; height: 16px; color: var(--cu2); flex: none; }
  .res:has(.form.open) .incl, .res:has(.thread.open) .incl { display: none; }
}

/* ---------- Roof card hover (pointer devices) ---------- */
.card { cursor: pointer; position: relative; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.5px var(--cu); opacity: 0; transition: opacity .3s var(--ease); pointer-events: none; }
.card .ph img { transition: transform .9s var(--ease); }
.card .life { transition: transform .4s var(--ease); }
@media (hover: hover) {
  .card:hover::after { opacity: 1; }
  .card:hover .ph img { transform: scale(1.07); }
  .card:hover .life { transform: translateY(-3px); }
  .card:hover .go .ic { transform: translateX(3px); }
  .hdr-call:hover { color: var(--cu); }
}

@media (min-width: 1200px) {
  .hdr nav { gap: 30px; }
  .hdr-r { min-width: 330px; justify-content: flex-end; }
  .hdr .btn-cu { width: 168px; overflow: hidden; }   /* fixed width: the nav never moves when the fonts arrive */
}

/* ---------- Reduced motion: fades only ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .w > span, .rise, [data-rv], .l { transform: none !important; }
  .btn:active, .press:active, .chip:active, .seg button:active, .pbar a:active { transform: none; }
  .seg .thumb { transition: opacity .2s; }
  .bubble.land { animation: fade .3s ease both; }
  .jm-l, .jm-l.on, .jm-l.under, .jc, .msg, .card:hover .ph img, .wk-c:hover .ph img { transform: none !important; }
  .typing i { animation: none; }
  .pbar { transition: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
