/*
  VOICE   Calm, confident, premium. A product page for a roof, the way Apple sells a phone.
  IDEA    The roof is the product: an exploded-view "anatomy" you scroll through, a home whose roof installs itself.
  PICTURE Illustrated homes drawn in code (no stock photos), a 3D layer stack, rain over a night-slate storm band.
  COLOUR  White and clear sky; deep slate (the stone) for night bands; one cobalt accent for actions.
  TYPE    San Francisco on Apple devices, Inter elsewhere. Big, tight headlines; quiet body. Layout: centered hero, then left-aligned bands up to 1240px.
*/

/* ------------------------------------------------------------- tokens */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --alt: #F5F5F4;
  --ink: #1A1D21;
  --ink-2: #59626B;
  --ink-3: #8A929A;
  --line: #E4E6E8;
  --slate: #16171A;
  --slate-2: #24262A;
  --sky: #D9DEE3;
  --accent: #D3141B;
  --accent-ink: #ffffff;
  --accent-soft: rgba(211, 20, 27, .09);
  --chrome: linear-gradient(180deg, #2A2D31 0%, #5E646B 38%, #A3A9AF 49%, #24272B 51%, #3B3F44 78%, #6A7077 100%);
  --bar: 0px;
  --r-xl: 32px;
  --r-l: 24px;
  --r-m: 16px;
  --wrap: 1240px;
  --pad: max(5vw, 20px);
  --nav-h: 56px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 var(--font); letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.band { padding: clamp(80px, 11vw, 150px) 0; }

/* ------------------------------------------------------------- type */
.h2 {
  font-size: clamp(34px, 5.2vw, 64px); line-height: 1.04; font-weight: 700;
  letter-spacing: -0.032em; text-wrap: balance;
}
.lead { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.45; color: var(--ink-2); max-width: 38ch; text-wrap: pretty; }
.fine { font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.sec-head { margin-bottom: clamp(40px, 5vw, 64px); display: grid; gap: 18px; }
.sec-head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.sample-note { font-size: 13px; color: var(--ink-3); }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { box-shadow: 0 8px 24px -8px var(--accent); }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 17px; }
.btn-ghost { background: rgba(26, 29, 33, .06); color: var(--ink); }
.btn-ghost:hover { background: rgba(26, 29, 33, .1); box-shadow: none; }
.btn-light { background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-light:hover { background: rgba(255, 255, 255, .22); box-shadow: none; }

/* ------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.solid {
  background: rgba(255, 255, 255, .76);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .07);
}
.nav-in { height: var(--nav-h); display: flex; align-items: center; gap: 24px; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; font-size: 17px; flex: none; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; }
.brand-mark svg { width: 30px; height: 30px; }
.brand-mark img { width: auto; height: 34px; max-width: 160px; }
.brand.has-logo .brand-name { display: none; }
.brand.has-logo .brand-mark { width: auto; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--ink-2); }
.nav-links a { padding: 6px 0; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-size: 14px; font-weight: 600; white-space: nowrap; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; margin-right: -10px; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.7px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 25px; }
.menu-open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.sheet {
  position: fixed; inset: 0; z-index: 45; background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  padding: calc(var(--nav-h) + env(safe-area-inset-top) + 16px) var(--pad) calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
}
.sheet[hidden] { display: none; }
.sheet nav { display: grid; }
.sheet nav a { font-size: 28px; font-weight: 600; letter-spacing: -0.025em; padding: 9px 0; border-bottom: 1px solid var(--line); }
.sheet-cta { display: grid; gap: 10px; margin-top: 28px; }
.menu-open { overflow: hidden; }
.menu-open .nav { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ------------------------------------------------------------- hero */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--nav-h) + env(safe-area-inset-top) + clamp(28px, 4.5vh, 72px)) var(--pad) 0;
  background: radial-gradient(120% 70% at 50% 0%, #FFFFFF 0%, rgba(255,255,255,0) 60%), linear-gradient(180deg, #CDD3D9 0%, #E6E9EC 40%, #F6F7F8 72%, #fff 100%);
  text-align: center; overflow: hidden;
}
.hero-copy { position: relative; z-index: 2; display: grid; justify-items: center; gap: 18px; max-width: 980px; will-change: transform, opacity; }
.hero-kicker { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.hero-title { font-size: clamp(44px, min(7.4vw, 10.4vh), 92px); line-height: 1; font-weight: 700; letter-spacing: -0.045em; text-wrap: balance; }
.hero-title .w { display: inline-block; opacity: 0; transform: translateY(.3em); animation: rise .9s var(--ease) forwards; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-sub { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.45; color: var(--ink-2); max-width: 46ch; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.hero-proof { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 18px; font-size: 14px; color: var(--ink-2); }
.hero-proof b { color: var(--ink); font-weight: 600; }
.stars { color: #F2A900; letter-spacing: 1px; }
.hero-proof .fin-chip { background: rgba(255, 255, 255, .7); border-radius: 999px; padding: 5px 12px; }
.hero-art { position: relative; z-index: 1; width: min(108vw, clamp(640px, calc((100svh - 470px) * 2.07), 1180px)); margin-top: auto; padding-top: 20px; will-change: transform; transform-origin: 50% 100%; }
.hero-art .house { width: 100%; height: auto; }

/* ------------------------------------------------------------- trust */
.trust { border-bottom: 1px solid var(--line); }
.trust-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.trust-list li { display: flex; gap: 14px; align-items: center; padding: 28px 20px 28px 0; }
.trust-list li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.trust-list svg { width: 30px; height: 30px; flex: none; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.trust-list strong { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.trust-list span { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.35; }

/* ------------------------------------------------------------- statement */
.statement { padding: clamp(100px, 14vw, 190px) var(--pad); max-width: calc(1100px + var(--pad) * 2); margin: 0 auto; }
.statement-text { font-size: clamp(30px, 4.5vw, 58px); line-height: 1.12; font-weight: 700; letter-spacing: -0.035em; text-wrap: pretty; }
.statement-text .w { color: #C7CCD1; transition: color .35s; }
.statement-text .w.on { color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(56px, 8vw, 96px); }
.stats li { border-top: 1px solid var(--line); padding-top: 18px; }
.stats .num { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; font-size: clamp(36px, 4.4vw, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats .lbl { display: block; margin-top: 8px; color: var(--ink-2); font-size: 15px; }

/* ------------------------------------------------------------- anatomy */
.anatomy { position: relative; height: 520vh; background: var(--alt); }
.anatomy-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); align-items: center; gap: 4vw;
  max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: var(--nav-h) var(--pad) 0;
}
.anatomy-copy { display: grid; gap: 28px; align-content: center; }
.anatomy-steps { position: relative; min-height: 190px; }
.a-step { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(16px); transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; }
.a-step.on { opacity: 1; transform: none; pointer-events: auto; }
.a-step .n { font-size: 14px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.a-step h3 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.025em; line-height: 1.1; margin: 6px 0 10px; }
.a-step p { color: var(--ink-2); font-size: clamp(17px, 1.5vw, 19px); max-width: 34ch; }
.a-step.intro p, .a-step.outro p { font-size: clamp(19px, 1.8vw, 23px); color: var(--ink-2); max-width: 26ch; }
.anatomy-rail { display: flex; gap: 6px; }
.anatomy-rail li { width: 28px; height: 4px; border-radius: 4px; background: #D9DCDF; transition: background-color .3s, width .3s var(--ease); }
.anatomy-rail li.past { background: var(--ink); }
.anatomy-rail li.on { background: var(--accent); width: 44px; }
.anatomy-stage { position: relative; height: 100%; display: grid; place-items: center; perspective: 2400px; perspective-origin: 50% 30%; }
.stack {
  --gap: 4px; --rx: 57deg; --rz: -38deg; --sc: 1;
  position: relative; width: min(42vw, 560px); aspect-ratio: 1.3 / 1;
  transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateZ(var(--rz)) scale(var(--sc));
  will-change: transform;
}
.layer { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--i) * var(--gap))); }
.face {
  position: absolute; inset: 0; border-radius: 3px;
  transform: translateZ(var(--lift, 0px));
  transition: transform .5s var(--ease), opacity .4s, filter .4s;
  box-shadow: 7px 9px 0 -2px rgba(20, 28, 36, .16), 0 0 0 1px rgba(0, 0, 0, .05);
}
.stack.focus .layer.above .face { opacity: .07; box-shadow: none; }
.layer.on .face { --lift: 26px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 14px 22px 30px -8px rgba(20, 28, 36, .3); }
.l-flash.on .face { box-shadow: none; }
.l-deck .face {
  background-color: #D7B587;
  background-image:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(92, 60, 28, .45) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(33.3% - 1px), rgba(92, 60, 28, .4) calc(33.3% - 1px) calc(33.3% + 1px), transparent calc(33.3% + 1px), transparent calc(66.6% - 1px), rgba(92, 60, 28, .4) calc(66.6% - 1px) calc(66.6% + 1px), transparent calc(66.6% + 1px)),
    repeating-linear-gradient(90deg, rgba(120, 78, 36, .12) 0 1px, transparent 1px 7px, rgba(120, 78, 36, .06) 7px 9px, transparent 9px 15px),
    linear-gradient(135deg, #E2C49A, #C9A473);
}
.l-ice .face {
  top: auto; height: 34%;
  background-color: #2B2F34;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.3px), linear-gradient(180deg, #34383E, #24272C);
  background-size: 5px 5px, 100% 100%;
}
.l-under .face {
  background-color: #D3D8DD;
  background-image:
    linear-gradient(transparent 44px, rgba(40, 50, 60, .2) 44px 46px, transparent 46px),
    linear-gradient(transparent 21px, rgba(211, 20, 27, .32) 21px 23px, transparent 23px),
    linear-gradient(135deg, #E3E7EA, #C5CBD1);
  background-size: 100% 46px, 100% 46px, 100% 100%;
}
.l-flash .face { background: none; border: 13px solid #B9C0C6; border-image: linear-gradient(135deg, #F5F7F8, #9AA3AB 30%, #EEF1F3 55%, #8C959D) 1; box-shadow: 7px 9px 0 -2px rgba(20, 28, 36, .12); }
.l-flash .face::after { content: ""; position: absolute; width: 18%; aspect-ratio: 1; left: 22%; top: 24%; border: 8px solid #A9B1B8; border-radius: 2px; }
.l-shingle .face { background-color: #3B3F44; background-size: 90px 16px; }
.l-ridge .face { top: 44%; height: 12%; border-radius: 2px; background: repeating-linear-gradient(90deg, #2E3237 0 13px, #454A51 13px 15px); }
.stack-shadow {
  position: absolute; left: 50%; top: 58%; width: min(44vw, 560px); height: 120px; transform: translate(-50%, 0) scale(var(--shs, 1));
  background: radial-gradient(closest-side, rgba(20, 30, 40, .22), transparent); filter: blur(10px); z-index: -1; pointer-events: none;
}
.anatomy.static { height: auto; }
.anatomy.static .anatomy-pin { position: relative; height: auto; padding-block: 120px; }
.anatomy.static .anatomy-steps { min-height: 0; display: grid; gap: 22px; }
.anatomy.static .a-step { position: static; opacity: 1; transform: none; }
.anatomy.static .a-step.intro, .anatomy.static .a-step.outro, .anatomy.static .anatomy-rail { display: none; }
.anatomy.static .anatomy-stage { height: 520px; }

/* ------------------------------------------------------------- visualizer */
.design { background: #fff; }
.viz { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.viz-art { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 1200 / 720; background: #DDE3E8; box-shadow: 0 30px 60px -30px rgba(20, 40, 60, .35); }
.viz-art .house { width: 100%; height: 100%; }
.viz-art .rf { transition: fill .5s; }
.viz-panel { display: grid; gap: 22px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--alt); border-radius: 999px; justify-self: start; }
.seg button { border: 0; background: none; cursor: pointer; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: background-color .25s, color .25s, box-shadow .25s; }
.seg button[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.seg-sm button { min-height: 38px; }
.viz-color-name { font-size: 15px; color: var(--ink-2); }
.viz-color-name b { color: var(--ink); font-weight: 600; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; margin-top: -10px; }
.swatches button { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 0 var(--ink); transition: box-shadow .2s, transform .2s var(--ease); }
.swatches button:hover { transform: scale(1.06); }
.swatches button[aria-checked="true"] { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
.viz-spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.viz-spec div { padding: 16px 0; }
.viz-spec div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.viz-spec dt { font-size: 13px; color: var(--ink-2); }
.viz-spec dd { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-top: 2px; white-space: nowrap; }
.viz-desc { color: var(--ink-2); font-size: 16px; }
.viz-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; border: 0; background: none; cursor: pointer; padding: 0; font-size: 15px; font-weight: 500; }
.toggle-dot { width: 46px; height: 28px; border-radius: 999px; background: #D9DCDF; position: relative; transition: background-color .3s; }
.toggle-dot::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .3s var(--ease); }
.toggle[aria-pressed="true"] .toggle-dot { background: var(--slate); }
.toggle[aria-pressed="true"] .toggle-dot::after { transform: translateX(18px); }

/* ------------------------------------------------------------- storm */
.storm { position: relative; background: linear-gradient(180deg, #0F1012, var(--slate) 60%, #1A1B1E); color: #fff; overflow: hidden; padding: clamp(100px, 13vw, 170px) 0; isolation: isolate; }
.storm-rain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .7; }
.storm-flash { position: absolute; inset: 0; background: radial-gradient(120% 80% at 70% 0%, rgba(220, 232, 255, .55), transparent 60%); opacity: 0; z-index: -1; pointer-events: none; }
.storm-flash.go { animation: flash 1.1s ease-out; }
@keyframes flash { 0% { opacity: 0 } 6% { opacity: 1 } 12% { opacity: .2 } 18% { opacity: .85 } 100% { opacity: 0 } }
.storm-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.storm .lead { color: rgba(255, 255, 255, .72); margin-top: 22px; }
.storm-actions { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.storm-note { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: rgba(255, 255, 255, .8); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.claim { display: grid; gap: 12px; counter-reset: c; }
.claim li {
  counter-increment: c; display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; align-items: start;
  padding: 20px 22px; border-radius: var(--r-l); background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .09); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.claim li::before { content: counter(c); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); font-weight: 600; font-size: 15px; }
.claim strong { font-size: 18px; letter-spacing: -0.015em; }
.claim span { color: rgba(255, 255, 255, .66); font-size: 15px; }

/* ------------------------------------------------------------- process */
.process { background: #fff; }
.timeline { position: relative; max-width: 860px; }
.timeline-line { position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.timeline-line span { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(var(--p, 0)); }
.timeline ol { display: grid; gap: clamp(36px, 5vw, 56px); }
.timeline li { position: relative; padding-left: 72px; display: grid; gap: 6px; }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #CDD2D6; transition: border-color .3s, background-color .3s, transform .3s var(--ease); }
.timeline li.on::before { border-color: var(--accent); background: var(--accent); transform: scale(1.1); box-shadow: 0 0 0 6px var(--accent-soft); }
.timeline h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.025em; line-height: 1.15; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.timeline .when { font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: 0; white-space: nowrap; }
.timeline p { color: var(--ink-2); max-width: 54ch; }

/* ------------------------------------------------------------- before / after */
.ba { background: var(--alt); }
/* comparison slider: centered card, white divider, round knob that grows while dragging */
.ba-frame { --pos: 50%; position: relative; width: 100%; max-width: 896px; margin-inline: auto; aspect-ratio: 1200 / 720; border-radius: 12px; overflow: hidden; background: #1B1D20; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25); }
.ba-frame.is-tall { max-width: min(100%, 560px); max-height: 82svh; }
.ba-layer { position: absolute; inset: 0; }
.ba-layer .house, .ba-layer img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 6px; margin-left: -3px; background: rgba(255, 255, 255, .8); box-shadow: 0 0 12px rgba(0, 0, 0, .25); pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #374151; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1); transition: transform .2s ease-in-out, box-shadow .2s ease-in-out; }
.ba-handle svg { width: 24px; height: 24px; }
.ba-frame.is-dragging .ba-handle span { transform: scale(1.1); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1); }
.ba-frame:focus-within .ba-handle span { outline: 3px solid var(--accent); outline-offset: 3px; }
.ba-tag { position: absolute; top: 18px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 13px; font-weight: 600; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }
.ba-tag-l { left: 18px; }
.ba-tag-r { right: 18px; }
.ba-range { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ba-cap { margin-top: 18px; color: var(--ink-2); font-size: 15px; text-align: center; }

/* ------------------------------------------------------------- projects */
.work { background: #fff; padding-bottom: clamp(60px, 8vw, 110px); }
.car-btns { display: flex; gap: 10px; flex: none; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--alt); cursor: pointer; display: grid; place-items: center; transition: background-color .2s; }
.round:hover { background: #EAEAE8; }
.round svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.round:disabled { opacity: .35; cursor: default; }
.carousel {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px max(var(--pad), calc((100vw - var(--wrap)) / 2)) 24px;
  scroll-padding-inline: max(var(--pad), calc((100vw - var(--wrap)) / 2));
}
.carousel::-webkit-scrollbar { display: none; }
.card { flex: 0 0 min(80vw, 430px); scroll-snap-align: start; }
.card-art { border-radius: var(--r-l); overflow: hidden; aspect-ratio: 1200 / 720; background: #C6E0F5; }
.card-art .house, .card-art img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-size: 21px; letter-spacing: -0.02em; margin-top: 16px; }
.card p { color: var(--ink-2); font-size: 15px; margin-top: 2px; }

/* ------------------------------------------------------------- estimate */
.estimate { background: var(--alt); }
.est-wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.est-intro { display: grid; gap: 22px; position: sticky; top: calc(var(--nav-h) + 40px); }
.est-points { display: grid; gap: 12px; margin-top: 8px; }
.est-points li { display: flex; gap: 12px; align-items: baseline; color: var(--ink-2); }
.est-points li::before { content: ""; flex: none; width: 16px; height: 9px; border: solid var(--accent); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translateY(-3px); }
.est-card { background: #fff; border-radius: var(--r-xl); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 30px 60px -32px rgba(20, 40, 60, .3); overflow: hidden; }
.est-progress { height: 4px; background: var(--alt); }
.est-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .5s var(--ease); }
.est-body { padding: clamp(24px, 3.4vw, 44px); min-height: 440px; display: grid; align-content: start; gap: 22px; }
.est-q { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.025em; line-height: 1.15; }
.est-step { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.opt {
  display: grid; gap: 10px; align-content: start; text-align: left; min-height: 116px; padding: 18px; cursor: pointer;
  border-radius: var(--r-m); border: 1.5px solid var(--line); background: #fff;
  transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.opt:hover { border-color: #C6CBD0; }
.opt:active { transform: scale(.98); }
.opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.opt svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.opt b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.opt small { font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.opt .sw { width: 28px; height: 28px; border-radius: 8px; }
.field { display: grid; gap: 8px; }
.field label, .fld-label { font-size: 14px; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input[aria-invalid="true"] { border-color: #D93025; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.size-out { font-size: clamp(36px, 4vw, 48px); font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.size-out small { font-size: 17px; font-weight: 500; color: var(--ink-2); letter-spacing: -0.01em; margin-left: 4px; }
.slider { width: 100%; height: 44px; -webkit-appearance: none; appearance: none; background: none; cursor: pointer; }
.slider::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--fill, 50%), #E1E4E7 var(--fill, 50%)); }
.slider::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--fill, 50%), #E1E4E7 var(--fill, 50%)); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .05); }
.slider::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.est-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.link-btn { border: 0; background: none; cursor: pointer; color: var(--ink-2); font-size: 15px; min-height: 44px; padding: 0 4px; }
.link-btn:hover { color: var(--ink); }
.result { border-radius: var(--r-l); background: var(--alt); padding: 24px; display: grid; gap: 6px; }
.result-label { font-size: 14px; color: var(--ink-2); }
.result-price { font-size: clamp(34px, 4.4vw, 52px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.result-sub { font-size: 16px; color: var(--ink-2); }
.result-sub b { color: var(--ink); }
.form-err { color: #C5221F; font-size: 14px; }
.done { text-align: center; justify-items: center; display: grid; gap: 14px; padding-top: 40px; }
.done-check { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.done-check svg { width: 34px; height: 34px; stroke: var(--accent-ink); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------- financing */
.fin { background: #fff; }
.fin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.fin-grid > div:first-child { display: grid; gap: 18px; }
.fin-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; font-weight: 600; margin-top: 18px; }
.fin-label output { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fin-result { border-radius: var(--r-xl); background: var(--alt); padding: clamp(28px, 4vw, 56px); display: grid; gap: 14px; justify-items: start; }
.fin-pay { font-size: clamp(64px, 9vw, 120px); font-weight: 700; letter-spacing: -0.055em; line-height: .95; font-variant-numeric: tabular-nums; }
.fin-pay small { font-size: .26em; font-weight: 600; color: var(--ink-2); letter-spacing: -0.01em; margin-left: 6px; }
.fin-apr { color: var(--ink-2); font-size: 15px; margin-bottom: 8px; }

/* ------------------------------------------------------------- reviews */
.reviews { background: var(--alt); }
.rev-score { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 17px; color: var(--ink-2); }
.rev-score b { font-size: 22px; color: var(--ink); letter-spacing: -0.02em; }
.marquee { display: grid; gap: 16px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.m-row { display: flex; gap: 16px; width: max-content; animation: slide var(--dur, 70s) linear infinite; }
.m-row.back { animation-direction: reverse; }
.marquee:hover .m-row, .marquee:focus-within .m-row { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.rev { width: min(78vw, 380px); flex: none; background: #fff; border-radius: var(--r-l); padding: 24px; display: grid; gap: 12px; align-content: start; }
.rev q { quotes: none; font-size: 16px; line-height: 1.5; }
.rev footer { font-size: 14px; color: var(--ink-2); }
.rev footer b { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------- areas */
.areas { background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 16px; font-weight: 500; }

/* ------------------------------------------------------------- faq */
.faq { background: #fff; padding-top: 0; }
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 22px 0; font-size: clamp(18px, 1.6vw, 20px); font-weight: 600; letter-spacing: -0.015em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat; transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(135deg); }
.faq-list details p { padding: 0 0 24px; color: var(--ink-2); max-width: 62ch; }

/* ------------------------------------------------------------- closing */
.closing { position: relative; display: flex; flex-direction: column; align-items: center; overflow: hidden; background: #0F1A2C; color: #fff; isolation: isolate; }
.closing-copy { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; gap: 18px; padding: clamp(100px, 12vw, 160px) var(--pad) 0; }
.closing .lead { color: rgba(255, 255, 255, .78); }
.closing-art { position: relative; z-index: 1; width: 100%; margin-top: -9vw; pointer-events: none; }
.closing-art .house { width: 100%; max-width: none; height: auto; aspect-ratio: 1200 / 720; }

/* ------------------------------------------------------------- footer */
.foot { background: var(--slate); color: rgba(255, 255, 255, .72); padding: clamp(64px, 8vw, 100px) 0 calc(28px + env(safe-area-inset-bottom)); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.brand-light { color: #fff; }
.foot address { font-style: normal; margin-top: 20px; display: grid; gap: 4px; line-height: 1.6; }
.foot address a:hover, .foot-links a:hover { color: #fff; }
.foot-h { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 14px; letter-spacing: -0.005em; }
.foot-links { display: grid; gap: 10px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: rgba(255, 255, 255, .5); }

/* ------------------------------------------------------------- dock (mobile) */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  display: none; grid-template-columns: 1fr 1.6fr; gap: 8px; padding: 8px; border-radius: 22px;
  background: rgba(24, 32, 40, .82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .35);
  transform: translateY(140%); transition: transform .45s var(--ease);
}
.dock.show { transform: none; }
.dock a { min-height: 50px; border-radius: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 16px; }
.dock-call { background: rgba(255, 255, 255, .12); color: #fff; }
.dock-call svg { width: 18px; height: 18px; fill: #fff; }
.dock-est { background: var(--accent); color: var(--accent-ink); }

/* ------------------------------------------------------------- reveal (used once per section heading) */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav-phone { display: none; }
  .dock { display: grid; }
  .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .trust-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .anatomy { height: 480vh; }
  .anatomy-pin { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: start; gap: 0; padding-top: calc(var(--nav-h) + 20px); }
  .anatomy-copy { order: 2; gap: 16px; padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .anatomy-copy .h2 { font-size: 30px; }
  .anatomy-stage { order: 1; height: auto; min-height: 40svh; }
  .stack { width: min(68vw, 400px); }
  .stack-shadow { width: min(80vw, 420px); top: 50%; }
  .anatomy-steps { min-height: 150px; }
  .viz, .storm-in, .est-wrap, .fin-grid, .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .est-intro { position: static; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .foot { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) {
  :root { --nav-h: 52px; }
  body { font-size: 16px; }
  .nav .btn-sm { display: none; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-art { width: 122vw; }
  .trust-list li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 12px 22px 0; }
  .trust-list li + li { padding-left: 16px; }
  .trust-list li:nth-child(3) { padding-left: 0; }
  .sec-head-row { align-items: start; flex-direction: column; }
  .opts { grid-template-columns: minmax(0, 1fr); }
  .opt { min-height: 0; grid-template-columns: 28px 1fr; align-items: center; column-gap: 14px; }
  .opt small { grid-column: 2; margin-top: -8px; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .viz-spec dd { font-size: 18px; }
  .ba-handle span { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .closing-art { margin-top: -6vw; }
  .closing-art .house { width: 150%; margin-left: -25%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-title .w { opacity: 1; transform: none; }
  .m-row { animation: none; width: auto; flex-wrap: nowrap; }
  .marquee { overflow-x: auto; -webkit-mask: none; mask: none; padding: 0 var(--pad); }
  .rv { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------- Pyramid Roofing brand layer */
.brand-name { font-family: "Cinzel", Georgia, serif; font-weight: 800; text-transform: uppercase; letter-spacing: .015em; font-size: 17px; }
.brand.wide-mark .brand-mark { width: 46px; height: 28px; }
.brand.wide-mark .brand-mark svg { width: 46px; height: 28px; }
.foot .brand-name { background: linear-gradient(180deg, #FFFFFF 0%, #C9CDD2 48%, #8D939A 52%, #E6E8EA 100%); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 20px; }
.btn { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 26px -10px var(--accent); }
.btn-ghost, .btn-light { box-shadow: none; }
.trust { border-top: 3px solid var(--accent); }
.anatomy-rail li.past { background: var(--slate); }
.closing { background: #0F1A2C; }

/* concept banner */
.has-bar { --bar: 34px; }
.concept {
  height: var(--bar); display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--slate); color: rgba(255, 255, 255, .86); font-size: 13px; font-weight: 500; padding: 0 16px; white-space: nowrap; overflow: hidden;
}
.concept-pill { background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.concept-short { display: none; }
.has-bar .hero { padding-top: calc(var(--nav-h) + var(--bar) + env(safe-area-inset-top) + clamp(28px, 4.5vh, 72px)); }
.has-bar .anatomy-pin { padding-top: calc(var(--nav-h) + var(--bar)); }
html.has-bar { scroll-padding-top: calc(var(--nav-h) + var(--bar) + 12px); }
.has-bar .sheet { padding-top: calc(var(--nav-h) + var(--bar) + env(safe-area-inset-top) + 16px); }
.has-bar .est-intro { top: calc(var(--nav-h) + var(--bar) + 40px); }

/* photo project cards */
.card.photo .card-art { aspect-ratio: 4 / 5; background: #E6E9EC; }
.card.photo { flex-basis: min(72vw, 340px); }

/* review cards as a grid */
.rev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rev-grid .rev { width: auto; }
.rev-grid .rev q { font-size: 19px; line-height: 1.45; letter-spacing: -0.01em; }
.rev-more { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }

@media (max-width: 900px) {
  .has-bar .anatomy-pin { padding-top: calc(var(--nav-h) + var(--bar) + 16px); }
  .rev-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .concept-long { display: none; }
  .concept-short { display: inline; }
  .brand-name { font-size: 15px; }
}

/* ------------------------------------------------------------- real job photos (Pyramid media update) */
.hero-art.has-photo { width: min(100%, 1120px); margin-top: clamp(24px, 4vh, 44px); padding: 0 0 clamp(36px, 6vh, 72px); transform-origin: 50% 0%; }
.hero-photo {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden; background: #CFD5DA;
  box-shadow: 0 50px 90px -50px rgba(18, 22, 28, .55), 0 0 0 1px rgba(0, 0, 0, .05);
}
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.card-art, .card.photo .card-art { aspect-ratio: 4 / 3; background: #E6E9EC; }
.card.photo { flex-basis: min(80vw, 430px); }
.card-art img { display: block; width: 100%; height: 100%; object-fit: cover; }

.ba-pair[hidden], .showcase[hidden] { display: none; }
.ba-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 2vw, 20px); max-width: 980px; }
.ba-pair figure { margin: 0; }
.ba-ph { aspect-ratio: 3 / 4; border-radius: var(--r-xl); overflow: hidden; background: #1B1D20; box-shadow: 0 30px 60px -30px rgba(20, 40, 60, .35); }
.ba-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ba-pair figcaption { margin-top: 12px; font-size: 15px; font-weight: 600; }

.gallery { background: #fff; }
.g-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 16px); }
.g-item { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-l); overflow: hidden; background: #E6E9EC; }
.g-item.wide { grid-column: span 2; aspect-ratio: auto; }
.g-btn { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: inherit; }
.g-btn img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.g-btn:hover img { transform: scale(1.03); }
.g-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

/* ------------------------------------------------------------- on the roof (phone scroll) */
.roofcam[hidden] { display: none; }
.roofcam { --p: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: clamp(64px, 9vw, 120px) 16px; overflow: hidden; }
.roofcam.is-live { --p: 0; height: 64rem; padding-block: 0; }
.rc-stage { width: 100%; perspective: 1200px; }
.rc-title { position: relative; z-index: 0; max-width: 1024px; margin: 0 auto; padding: 0 16px; text-align: center; }
.is-live .rc-title { transform: translateY(calc(var(--p) * -24px)); }
.rc-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.rc-h { margin: 12px 0 0; font-size: clamp(30px, 3.6vw, 44px); font-weight: 650; line-height: 1.05; letter-spacing: -0.03em; color: var(--ink); }
.rc-h span { display: block; margin-top: 4px; font-size: clamp(56px, 10vw, 112px); font-weight: 800; line-height: .95; letter-spacing: -0.045em; }
.rc-lead { margin: 18px auto 0; max-width: 46ch; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.rc-phone-wrap { position: relative; z-index: 1; }
.is-live .rc-phone-wrap { margin-top: clamp(-48px, -3vw, -24px); transform-origin: 50% 0; transform: translateY(calc(var(--p) * -20%)) rotateX(calc((1 - var(--p)) * 22deg)) scale(calc(.94 + var(--p) * .06)); will-change: transform; }
.rc-phone { position: relative; width: 13rem; margin: 32px auto 0; }
.rc-btn { position: absolute; width: 3px; background: rgba(26, 29, 33, .3); }
.rc-btn--a { left: -2px; top: 16%; height: 28px; border-radius: 2px 0 0 2px; }
.rc-btn--b { left: -2px; top: 24%; height: 44px; border-radius: 2px 0 0 2px; }
.rc-btn--c { right: -2px; top: 22%; height: 56px; border-radius: 0 2px 2px 0; }
.rc-chassis { aspect-ratio: 9 / 19.5; padding: .35rem; border: 1px solid #2B2E33; border-radius: 2.5rem; background: #1A1D21; box-shadow: 0 10px 20px rgba(0, 0, 0, .18), 0 40px 60px -20px rgba(0, 0, 0, .35); }
.rc-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 2.2rem; background: #0E0F11; }
.rc-island { position: absolute; left: 50%; top: 8px; z-index: 2; width: 4.25rem; height: 1.1rem; transform: translateX(-50%); border-radius: 999px; background: #000; }
.rc-screen video { display: block; width: 100%; height: 100%; object-fit: cover; background: #0E0F11; }
.rc-sound { position: absolute; left: 50%; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; transform: translateX(-50%); border: 0; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font: 600 13px/1 inherit; font-family: inherit; white-space: nowrap; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.rc-sound:hover { background: rgba(0, 0, 0, .72); }
.rc-sound:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.rc-sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rc-sound .rc-wave { display: none; }
.rc-sound[aria-pressed="true"] .rc-wave { display: inline; }
.rc-sound[aria-pressed="true"] .rc-x { display: none; }
@media (min-width: 640px) { .rc-phone { width: 15rem; } }
@media (min-width: 768px) { .roofcam.is-live { height: 76rem; } .rc-phone { width: 17rem; } }

.lb-open { overflow: hidden; }
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: 100vw; max-height: 100vh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(10, 11, 13, .92); }
.lb-fig { margin: 0; display: grid; justify-items: center; gap: 14px; max-width: min(92vw, 1100px); padding: calc(68px + env(safe-area-inset-top)) 16px calc(84px + env(safe-area-inset-bottom)); }
.lb-fig img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 230px); border-radius: 14px; }
.lb-fig figcaption { max-width: 60ch; text-align: center; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .84); }
.lb-btn { position: fixed; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: calc(14px + env(safe-area-inset-top)); right: 14px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-count { position: fixed; top: calc(28px + env(safe-area-inset-top)); left: 22px; margin: 0; font-size: 14px; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-item.wide { aspect-ratio: 3 / 2; }
}
@media (max-width: 600px) {
  .hero-art.has-photo { width: 100%; }
  .hero-photo { aspect-ratio: 4 / 3; border-radius: var(--r-l); }
  .ba-ph { border-radius: var(--r-m); }
  .g-item { border-radius: var(--r-m); }
  .lb-prev, .lb-next { top: auto; bottom: calc(18px + env(safe-area-inset-bottom)); transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}
@media (prefers-reduced-motion: reduce) {
  .g-btn img { transition: none; }
  .g-btn:hover img { transform: none; }
}

/* ---------- full-site additions: logo image, linked town chips, legal row ---------- */
.brand-logo { display: block; height: 56px; width: auto; }
.foot .brand-logo { height: 64px; }
.chips li:has(a) { padding: 0; }
.chips a { display: block; padding: 10px 18px; border-radius: inherit; color: inherit; text-decoration: none; }
.chips a:hover, .chips a:focus-visible { color: var(--accent); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-legal a { color: inherit; opacity: .8; }
@media (max-width: 640px) { .brand-logo { height: 44px; } }
