/* Your Favorite Roofing — base styles
   Static site, no framework, no build step. Motion lives in motion.css. */

@font-face {
  font-family: 'Montserrat';
  src: url('fonts/montserrat-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto Slab';
  src: url('fonts/roboto-slab-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #061a24;
  --ink-2: #0a2430;
  --ink-3: #10303d;
  --slate: #1d3d49;
  --paper: #f3f7f7;
  --paper-2: #e4ecec;
  --white: #ffffff;
  --accent: #0f7d94;
  --accent-light: #6fc6d6;
  --accent-deep: #0a5c6e;
  --water: #2b93a8;
  --water-light: #7fd0dd;
  --water-deep: #0a5c6e;
  --muted: #4f646b;
  --muted-dark: #90a6ac;
  --line: rgba(6, 26, 36, 0.13);
  --line-strong: rgba(6, 26, 36, 0.24);
  --line-dark: rgba(236, 243, 242, 0.15);

  --slab: 'Roboto Slab', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --radius: 5px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 20, 25, 0.05), 0 12px 30px -22px rgba(10, 20, 25, 0.55);
  --shadow-md: 0 2px 8px rgba(10, 20, 25, 0.07), 0 34px 60px -46px rgba(10, 20, 25, 0.7);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

a { color: var(--accent-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--slab);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 4.6vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.9vw, 3.1rem); }
h3 { font-size: 1.18rem; letter-spacing: -0.012em; line-height: 1.25; }

/* the second line of a heading is emphasis, not italics: Roboto Slab here has
   no italic cut, and a synthesised slant is not the look. */
h1 em, h2 em, h3 em, h4 em {
  font-style: normal;
  font-weight: 400;
  color: var(--accent-deep);
}
.section--dark h2 em, .quote h2 em, .hero h1 em { color: var(--accent-light); }

p { margin: 0; }
p + p { margin-top: 1em; }

ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

strong { font-weight: 620; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.texture {
  background-image: repeating-linear-gradient(90deg, rgba(236, 241, 240, 0.035) 0 1px, transparent 1px 96px);
}

/* ---------- layout ---------- */

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }

.section { padding: clamp(72px, 8.4vw, 124px) 0; }

.section-head { max-width: 760px; }
.section-head h2 { margin-bottom: 22px; }

.lede {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 58ch;
  line-height: 1.7;
}

.section--dark { background: var(--ink); color: var(--paper); }
.section--dark .lede { color: var(--muted-dark); }
.section--dark h2, .section--dark h3 { color: var(--paper); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.688rem;
  font-weight: 620;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 20px;
}

.section--dark .eyebrow, .hero .eyebrow, .quote .eyebrow { color: var(--accent-light); }

.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(15, 125, 148, 0.18);
}

/* ---------- buttons ---------- */

.btn {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 640;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.35s var(--ease);
}

.btn .icon { width: 17px; height: 17px; transition: transform 0.35s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.btn--accent { --btn-bg: var(--accent); box-shadow: 0 14px 30px -18px rgba(15, 125, 148, 0.9); }
.btn--accent:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 20px 36px -18px rgba(15, 125, 148, 0.85); }

.btn--ghost {
  background: transparent;
  border-color: rgba(236, 241, 240, 0.28);
  color: var(--paper);
}
.btn--ghost:hover { background: rgba(236, 241, 240, 0.09); border-color: rgba(236, 241, 240, 0.55); color: var(--paper); }
.btn--ghost .icon { width: 16px; height: 16px; }

.btn--outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent-deep); }

.btn--sm { padding: 11px 18px; font-size: 0.813rem; }
.btn--block { width: 100%; }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  color: var(--paper);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
  background: rgba(6, 26, 36, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(236, 241, 240, 0.09);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--paper);
  text-decoration: none;
  flex: none;
}
.brand:hover { color: var(--paper); }

.brand-mark { width: 34px; height: 34px; color: var(--accent); flex: none; }

.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--slab); font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.brand-sub {
  font-size: 0.563rem;
  font-weight: 620;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-top: 5px;
}

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }

.nav a {
  position: relative;
  font-size: 0.844rem;
  font-weight: 500;
  color: rgba(236, 241, 240, 0.76);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover,
.nav a.is-active { color: var(--paper); }
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 20px; flex: none; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.844rem;
  font-weight: 600;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone .icon { width: 15px; height: 15px; color: var(--accent-light); }
.header-phone:hover { color: var(--accent-light); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border: 1px solid rgba(236, 241, 240, 0.22);
  border-radius: var(--radius);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded='true'] .icon-menu { display: none; }
.nav-toggle[aria-expanded='true'] .icon-close { display: block; }

/* ---------- icon helpers ---------- */

.icon { width: 18px; height: 18px; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  font-size: 0.875rem;
}
.skip-link:focus { left: 16px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: min(940px, 100vh);
  display: grid;
  align-content: center;
  padding: clamp(120px, 15vh, 180px) 0 120px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}

.hero-scene { position: absolute; inset: 0; z-index: -2; }
.hero-svg { width: 100%; height: 100%; display: block; }

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(102deg, rgba(7, 15, 19, 0.94) 0%, rgba(7, 15, 19, 0.8) 38%, rgba(7, 15, 19, 0.18) 68%, rgba(7, 15, 19, 0) 100%),
    linear-gradient(to top, rgba(7, 15, 19, 0.96) 0%, rgba(7, 15, 19, 0.1) 34%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 322px;
  align-items: end;
  gap: clamp(32px, 5vw, 64px);
}

.hero-copy { max-width: 700px; }

.hero h1 { color: var(--paper); }
.hero h1 em {
  display: inline-block;
  letter-spacing: -0.028em;
}

.hero-sub {
  margin-top: 26px;
  max-width: 52ch;
  font-size: 1.05rem;
  line-height: 1.72;
  color: rgba(236, 241, 240, 0.76);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 34px;
  font-size: 0.813rem;
  color: rgba(236, 241, 240, 0.72);
}
.hero-chips li { display: inline-flex; align-items: center; gap: 8px; }
.hero-chips .icon { width: 14px; height: 14px; color: var(--accent-light); }

.hero-card {
  padding: 26px 24px;
  border: 1px solid rgba(236, 241, 240, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(10, 34, 45, 0.66);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 40px 80px -60px rgba(0, 0, 0, 0.9);
}

.hero-card__title {
  font-family: var(--slab);
  font-size: 1.05rem;
  font-weight: 700;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-dark);
}

.hero-facts { display: grid; gap: 16px; margin-top: 18px; }

.hero-facts dt {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 5px;
}
.hero-facts dt .icon { width: 13px; height: 13px; }
.hero-facts dd { font-size: 0.844rem; line-height: 1.55; color: rgba(236, 241, 240, 0.76); }

.hero-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
  width: 100%;
  font-size: 0.813rem;
  font-weight: 620;
  color: var(--paper);
  text-decoration: none;
}
.hero-card__link .icon { width: 15px; height: 15px; color: var(--accent-light); transition: transform 0.35s var(--ease); }
.hero-card__link:hover { color: var(--accent-light); }
.hero-card__link:hover .icon { transform: translateX(4px); }

.hero-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.688rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(236, 241, 240, 0.5);
}
.hero-cue__line {
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(236, 241, 240, 0.55));
}

/* ---------- anatomy ---------- */

.anatomy { background: var(--paper); }

.anatomy .section-head { margin-bottom: clamp(36px, 5vw, 64px); }

.anatomy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: start;
}

.anatomy-figure {
  margin: 0;
  background: #08161d;
  border-radius: var(--radius-lg);
  padding: 14px 14px 16px;
  box-shadow: var(--shadow-md);
}
.anatomy-figure svg { width: 100%; height: auto; border-radius: 4px; }
.anatomy-figure figcaption {
  margin-top: 12px;
  padding: 0 4px;
  font-size: 0.75rem;
  color: #7f8b92;
  line-height: 1.5;
}

.anatomy-figure .part { transition: opacity 0.35s var(--ease), filter 0.35s var(--ease); }
.anatomy-figure .part.is-dim { opacity: 0.22; }
.anatomy-figure .part.is-active { filter: drop-shadow(0 0 10px rgba(127, 208, 221, 0.85)); }
.anatomy-figure .part.is-active .leader,
.anatomy-figure .part.is-active path { shape-rendering: geometricPrecision; }
.anatomy-figure .marker .leader { stroke: #64757c; stroke-width: 1.4; stroke-dasharray: 4 4; fill: none; }

.anatomy-panel { display: grid; gap: 22px; }

.parts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}

.part-btn {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 0.25s var(--ease), padding-left 0.3s var(--ease);
}
.part-btn__n {
  font-family: var(--slab);
  font-size: 0.688rem;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}
.part-btn:hover { color: var(--accent-deep); padding-left: 3px; }
.part-btn.is-on { color: var(--accent-deep); font-weight: 620; }
.part-btn.is-on .part-btn__n { color: var(--accent); }

.part-copy {
  padding: 22px 24px;
  border-left: 2px solid var(--accent);
  background: rgba(250, 252, 250, 0.72);
  border-radius: 0 var(--radius) var(--radius) 0;
  min-height: 178px;
}
.part-copy h3 { margin-bottom: 10px; }
.part-copy p { font-size: 0.938rem; color: var(--muted); line-height: 1.7; }
.part-copy > div[hidden] { display: none; }

/* ---------- build scene ---------- */

.build {
  position: relative;
  height: 340vh;
  background: var(--ink);
  color: var(--paper);
}

.build-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.build-pin::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 78% 24%, rgba(15, 125, 148, 0.13), transparent 62%),
    repeating-linear-gradient(90deg, rgba(236, 241, 240, 0.028) 0 1px, transparent 1px 88px);
  pointer-events: none;
}

.build-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
  padding: 88px 0 56px;
}

.build h2 { color: var(--paper); font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.build h2 em { color: var(--accent-light); }

.build-steps { display: grid; gap: 0; margin-top: 26px; }

.build-steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line-dark);
  opacity: 0.62;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.build-steps li.is-on { opacity: 1; transform: translateX(4px); }

.build-steps__n {
  font-family: var(--slab);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-light);
  padding-top: 5px;
}
.build-steps h3 { color: var(--paper); margin-bottom: 5px; font-size: 1rem; }
.build-steps p { font-size: 0.844rem; line-height: 1.55; color: #b6c0c6; max-width: 44ch; }

.build-meter {
  height: 2px;
  margin-top: 22px;
  background: rgba(236, 241, 240, 0.14);
  border-radius: 2px;
  overflow: hidden;
}
.build-meter span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(to right, var(--accent-deep), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
}

.build-art { position: relative; }
.build-svg { width: 100%; height: auto; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55)); }

.b-badge__label {
  fill: #8d99a1;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3.4px;
}
.b-badge__num {
  fill: var(--accent-light);
  font-family: var(--slab);
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -1px;
}

/* ---------- the water run ----------
   Every pipe is three stacked strokes: a copper casing, a dark bore, and a
   water core. The core carries pathLength="1", so the scene can fill it with
   stroke-dashoffset alone and never has to measure a path. */

.build .seg .case,
.build .seg .bore,
.build .seg .wet { fill: none; stroke-linecap: round; stroke-linejoin: round; }

.build .seg .case { stroke: #8e5a2a; stroke-width: 15; }
.build .seg .bore { stroke: #0b171d; stroke-width: 8; }
.build .seg .wet {
  stroke: #8fe0ea;
  stroke-width: 5.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.build .seg--hot .case { stroke: #9a6330; }
.build .seg--drain .case { stroke: #55655f; }
.build .seg--drain .wet { stroke: #93ad8a; stroke-width: 6; }
.build .seg--vent .case { stroke: #46564f; }
.build .seg--vent .bore { stroke: #0a151a; }

.build .wet.is-static,
html.js .build .wet.is-static { stroke-dashoffset: 0; opacity: 0.5; }

.build .flow {
  fill: none;
  stroke: #9fe6ef;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 0.028 0.072;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.build .flow.is-live { opacity: 0.85; animation: flowDash 1.1s linear infinite; }

@keyframes flowDash {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -0.1; }
}

.w-gauge__needle { transform-origin: 170px 272px; }

.build .w-tank__water {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: fill 0.9s var(--ease);
}
.build .w-tank.is-hot .w-tank__water { fill: #c9743f; }
.build .w-tank__glow { transition: opacity 0.9s var(--ease); }

.w-label text {
  fill: #7d9299;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .build .flow.is-live { animation: none; }
}

/* ---------- services ---------- */

.services { background: var(--paper); }
.services .section-head { margin-bottom: clamp(36px, 4.5vw, 56px); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: 18px;
}

.service {
  position: relative;
  padding: 30px 28px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
  overflow: hidden;
}
.service::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(15, 125, 148, 0.35); }
.service:hover::after { transform: scaleX(1); }

/* A pointer-tracking sheen. The card itself is tilted by motion.js, which sets
   --mx/--my from the pointer position; without a fine pointer nothing here is
   reachable, so it is gated on the media query as well as the script. */
.service > * { position: relative; z-index: 1; }
@media (hover: hover) and (pointer: fine) {
  .service::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(15, 125, 148, 0.15), transparent 68%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
  }
  .service:hover::before { opacity: 1; }

  .promise-grid li:hover {
    background-image: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(15, 125, 148, 0.13), transparent 68%);
  }
}

.service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: rgba(15, 125, 148, 0.1);
  color: var(--accent-deep);
}
.service__icon svg { width: 27px; height: 27px; }

.service h3 { margin-bottom: 9px; }
.service > p { font-size: 0.906rem; color: var(--muted); line-height: 1.65; }

.service__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.service__list li {
  position: relative;
  padding-left: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.service__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* the marker chips on the cut-away */
.marker { cursor: pointer; }
.marker circle { fill: #0b1c24; stroke: rgba(15, 125, 148, 0.8); stroke-width: 1.6; transition: fill 0.3s var(--ease), stroke 0.3s var(--ease); }
.marker text {
  font-family: var(--slab);
  font-size: 13px;
  font-weight: 700;
  fill: var(--accent-light);
  text-anchor: middle;
  dominant-baseline: central;
  transition: fill 0.3s var(--ease);
}
.marker:hover circle { stroke: var(--accent-light); }
.marker.is-on circle { fill: var(--accent); stroke: var(--accent); }
.marker.is-on text { fill: #061a24; }

/* ---------- process ---------- */

.process { background: var(--paper); }

.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.process-head { position: sticky; top: 120px; }
.process-head h2 { margin-bottom: 22px; }
.process-head h2 em { font-style: normal; font-weight: 400; color: var(--accent-deep); }

.process-rail { height: 2px; margin-top: 30px; background: var(--line); overflow: hidden; }
.process-rail span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(to right, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
}

.steps { display: grid; }

.step {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }

.step__n {
  font-family: var(--slab);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  padding-top: 4px;
}
.step h3 { margin-bottom: 8px; font-size: 1.32rem; }
.step p { color: var(--muted); font-size: 0.938rem; max-width: 52ch; }

/* ---------- promises ---------- */

.promises {
  background: var(--ink-2);
  color: var(--paper);
  padding: clamp(56px, 6vw, 84px) 0;
  border-top: 1px solid rgba(236, 241, 240, 0.08);
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 32px;
}

.promise-grid li {
  padding-top: 22px;
  border-top: 1px solid rgba(236, 241, 240, 0.16);
  position: relative;
  transition: transform 0.4s var(--ease);
}

[data-tilt] { will-change: transform; }
.promise-grid li::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 46px; height: 1px;
  background: var(--accent);
}
.promise-grid h3 { color: var(--paper); font-size: 1.15rem; margin-bottom: 9px; }
.promise-grid p { font-size: 0.875rem; color: var(--muted-dark); line-height: 1.65; }

/* ---------- faq ---------- */

.faq { background: var(--paper); }

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.faq-list { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-family: var(--slab);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  transition: color 0.25s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-deep); }

.faq-plus {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform 0.4s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.faq-plus::before,
.faq-plus::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
}
.faq-plus::before { width: 10px; height: 1.4px; }
.faq-plus::after { width: 1.4px; height: 10px; }

.faq-item[open] .faq-plus { transform: rotate(135deg); background: var(--accent); border-color: var(--accent); }
.faq-item[open] .faq-plus::before,
.faq-item[open] .faq-plus::after { background: #fff; }

.faq-item p {
  padding: 0 56px 24px 0;
  color: var(--muted);
  font-size: 0.938rem;
  line-height: 1.72;
}

/* ---------- quote ---------- */

.quote { background: var(--ink); color: var(--paper); }
.quote h2 { color: var(--paper); }
.quote h2 em { font-style: normal; font-weight: 400; color: var(--accent-light); }
.quote h2 { margin-bottom: 22px; }
.quote .lede { color: var(--muted-dark); }

.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.contact-list { display: grid; gap: 20px; margin-top: 40px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list__icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(236, 241, 240, 0.18);
  color: var(--accent-light);
}
.contact-list__icon .icon { width: 16px; height: 16px; }
.contact-list a { color: var(--paper); text-decoration: none; font-weight: 560; }
.contact-list a:hover { color: var(--accent-light); }
.contact-list em { display: block; margin-top: 3px; font-style: normal; font-size: 0.813rem; color: var(--muted-dark); }
.contact-list > li > span:last-child { font-size: 0.938rem; }

.quote-form {
  padding: clamp(24px, 3.2vw, 36px);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.8);
}

.field { margin: 0 0 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.688rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
}
.field label span { font-weight: 500; letter-spacing: 0.04em; text-transform: none; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.938rem;
  line-height: 1.5;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 36px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 125, 148, 0.16);
}
.field input:user-invalid,
.field select:user-invalid { border-color: #b4432c; }

.field--honeypot {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-note { margin-top: 12px; font-size: 0.75rem; color: var(--muted); text-align: center; }

.form-status {
  margin-top: 12px;
  font-size: 0.875rem;
  min-height: 0;
  color: var(--accent-deep);
}
.form-status:empty { margin-top: 0; }
.form-status.is-error { color: #a3381f; }
.form-status.is-ok { color: #2f6b4f; }

/* ---------- footer ---------- */

.site-footer {
  background: #05141c;
  color: var(--paper);
  padding: clamp(56px, 6vw, 84px) 0 32px;
  border-top: 1px solid rgba(236, 241, 240, 0.09);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.7fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
  padding-bottom: 40px;
}

.brand--footer { margin-bottom: 18px; }
.footer-brand p { font-size: 0.875rem; color: var(--muted-dark); max-width: 38ch; line-height: 1.7; }

.footer-nav h3,
.footer-contact h3 {
  font-family: var(--sans);
  font-size: 0.688rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.footer-nav { display: flex; flex-direction: column; gap: 9px; }
.footer-nav a { color: rgba(236, 241, 240, 0.72); font-size: 0.875rem; text-decoration: none; }
.footer-nav a:hover { color: var(--paper); }

.footer-contact { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-contact a { color: rgba(236, 241, 240, 0.8); font-size: 0.906rem; text-decoration: none; }
.footer-contact a:hover { color: var(--paper); }
.footer-contact .btn { margin-top: 8px; border-color: rgba(236, 241, 240, 0.28); color: var(--paper); }
.footer-contact .btn:hover { border-color: var(--accent); color: var(--accent-light); }

.footer-foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(236, 241, 240, 0.09);
  font-size: 0.75rem;
  color: rgba(236, 241, 240, 0.44);
}
.footer-demo { max-width: 56ch; text-align: right; }

/* ---------- mobile bar ---------- */

.mobile-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 70;
  display: none;
  grid-template-columns: 0.8fr 1.2fr;
  background: rgba(5, 20, 28, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(236, 241, 240, 0.14);
}
.mobile-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 12px;
  font-size: 0.875rem;
  font-weight: 640;
  text-decoration: none;
}
.mobile-bar__call { color: var(--paper); border-right: 1px solid rgba(236, 241, 240, 0.14); }
.mobile-bar__call .icon { width: 16px; height: 16px; color: var(--accent-light); }
.mobile-bar__quote { background: var(--accent); color: #fff; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .nav a { font-size: 0.813rem; }
  .header-phone { display: none; }
}

@media (max-width: 980px) {
  .nav {
    position: fixed;
    inset: 76px 0 auto;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 12px 24px 28px;
    background: rgba(6, 26, 36, 1);
    border-bottom: 1px solid rgba(236, 241, 240, 0.12);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav a { padding: 15px 0; border-bottom: 1px solid rgba(236, 241, 240, 0.08); font-size: 1rem; }
  .nav a::after { display: none; }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: 0; }
  .header-actions .btn { display: none; }

  .hero-inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero { min-height: auto; padding-bottom: 96px; }
  .hero-card { max-width: 420px; }
  .hero-cue { display: none; }

  .anatomy-grid,
  .process-grid,
  .faq-grid,
  .quote-grid { grid-template-columns: minmax(0, 1fr); }

  .process-head { position: static; }

  .build { height: auto; }
  .build-pin { position: static; height: auto; overflow: visible; }
  .build-grid { grid-template-columns: minmax(0, 1fr); padding: 72px 0; }
  .build-art { order: -1; max-width: 520px; }
  .build-steps li { opacity: 0.55; }
  .build-steps li.is-on { opacity: 1; }

  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .wrap { width: min(1160px, 100% - 36px); }

  .hero { padding-top: 112px; }
  .hero-chips { gap: 10px 18px; font-size: 0.75rem; }
  .hero-actions .btn { width: 100%; }

  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }

  .parts { grid-template-columns: minmax(0, 1fr); }
  .part-copy { min-height: 0; }

  .step { grid-template-columns: 44px 1fr; gap: 12px; }
  .step__n { font-size: 1.15rem; }

  .faq-item p { padding-right: 0; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-foot { flex-direction: column; gap: 12px; }
  .footer-demo { text-align: left; }

  .mobile-bar { display: grid; }
  body { padding-bottom: 59px; }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   Layout
   ───────────────────────────────────────────────────────────────────
   The content is arranged differently to the roofing template this page
   shares its bones with: the visit details run as a strip under the hero
   rather than a floating card, the cut-away sits on the right, the six
   services are ruled rows instead of tiles, and the form leads its section.
   ═══════════════════════════════════════════════════════════════════ */

/* ---------- hero: copy above, visit strip below ---------- */

.hero { min-height: min(1020px, 100vh); }

.hero-inner {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 4vw, 46px);
}

.hero-copy { max-width: 760px; }

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 2.5fr) auto;
  column-gap: clamp(20px, 3vw, 44px);
  align-items: start;
  padding: 22px 26px 22px;
  border-radius: var(--radius-lg);
}

.hero-card__title {
  padding-bottom: 0;
  border-bottom: 0;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px clamp(20px, 2.6vw, 36px);
  margin-top: 0;
}

.hero-card__link {
  width: auto;
  margin-top: 0;
  padding-top: 2px;
  border-top: 0;
  white-space: nowrap;
}

/* ---------- anatomy: panel leads, cut-away follows ---------- */

.anatomy-grid {
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: center;
}
.anatomy-panel { order: 1; }
.anatomy-figure { order: 2; margin: 0; }

.anatomy-figure .part.is-dim { opacity: 0.42; }

.part-copy {
  border-left: 0;
  border-top: 2px solid var(--accent);
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ---------- services: ruled rows, two columns ---------- */

.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(28px, 4vw, 64px);
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  column-gap: 18px;
  align-items: start;
  padding: 30px 0 30px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  overflow: visible;
}
.service::after,
.service::before { display: none; }
.service:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}

.service__icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 46px;
  height: 46px;
  margin: 2px 0 0;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--accent-deep);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.service__icon svg { width: 23px; height: 23px; }
.service:hover .service__icon { background: var(--accent); color: #fff; }

.service h3 { grid-column: 2; grid-row: 1; margin-bottom: 7px; }
.service > p { grid-column: 2; grid-row: 2; max-width: 42ch; }
.service__list { grid-column: 2; grid-row: 3; margin-top: 15px; padding-top: 13px; }

/* ---------- process: steps lead, heading follows ---------- */

.process {
  padding-top: clamp(52px, 6vw, 84px);
  border-top: 1px solid var(--line);
}

.process-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.steps { order: 1; }
.process-head { order: 2; }

/* ---------- promises: light band, two by two ---------- */

.promises {
  background: var(--paper-2);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.promise-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(28px, 4vw, 64px);
}

.promise-grid li {
  padding: 24px 0 28px;
  border-top: 1px solid var(--line-strong);
}
.promise-grid h3 { color: var(--ink); }
.promise-grid p { color: var(--muted); }
.promise-grid li::before { background: var(--accent); }

/* ---------- quote: the form leads ---------- */

.quote-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); }
.quote-form { order: 1; }
.quote-copy { order: 2; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero-card { grid-template-columns: minmax(0, 0.5fr) minmax(0, 2.5fr); }
  .hero-card__link { grid-column: 2; margin-top: 4px; }
}

@media (max-width: 980px) {
  .anatomy-grid,
  .process-grid,
  .quote-grid { grid-template-columns: minmax(0, 1fr); }

  .hero-card { grid-template-columns: minmax(0, 1fr); row-gap: 18px; }
  .hero-facts { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hero-card__link { grid-column: 1; padding-top: 14px; border-top: 1px solid var(--line-dark); }

  .anatomy-panel,
  .anatomy-figure { order: 0; }
  .anatomy-grid { align-items: start; }
  .anatomy-figure { order: -1; }

  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .process-grid { grid-template-columns: minmax(0, 1fr); }
  .process-head { order: 0; }
  .steps { order: 1; }

  .quote-form { order: 2; }
  .quote-copy { order: 1; }
}

@media (max-width: 700px) {
  /* the art is cropped hard on a phone, so it becomes texture behind the copy */
  .hero-svg { opacity: 0.55; }
  .hero::after {
    background:
      linear-gradient(to bottom, rgba(6, 26, 36, 0.9) 0%, rgba(6, 26, 36, 0.82) 55%, rgba(6, 26, 36, 0.96) 100%);
  }

  .promise-grid { grid-template-columns: minmax(0, 1fr); }
  .service { grid-template-columns: 46px minmax(0, 1fr); column-gap: 14px; padding: 26px 0; }
  .service__icon { width: 40px; height: 40px; }
  .service__icon svg { width: 20px; height: 20px; }
}

/* ---------- photos (Unsplash placeholders; swap for the client's own job photos) ---------- */

.service__photo {
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 0 0 22px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: 0 24px 40px -32px rgba(6, 26, 36, 0.55);
}
.service__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.9s var(--ease);
  filter: saturate(0.9);
}
.service:hover .service__photo img { transform: scale(1.04); filter: saturate(1.05); }
.service:has(.service__photo) .service__icon { grid-row: 2 / span 2; }
.service:has(.service__photo) h3 { grid-row: 2; }
.service:has(.service__photo) > p { grid-row: 3; }
.service:has(.service__photo) .service__list { grid-row: 4; }

.quote { position: relative; isolation: isolate; overflow: hidden; }
.quote-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  filter: grayscale(1) contrast(1.1);
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, #000 55%);
  mask-image: linear-gradient(100deg, transparent 0%, #000 55%);
}

@media (max-width: 700px) {
  .service__photo { margin-bottom: 18px; }
}
