/* JR Stucco Inc. — site styles (clean, Apple-like) */

/* Apple devices render the system font (SF Pro). Everyone else gets Inter,
   which is only downloaded when the system font isn't available. */
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Light page (Apple-style): white and light grey, near-black text, one blue for actions. */
  --bg: #FFFFFF;
  --bg-alt: #F5F5F7;
  --surface: #F5F5F7;
  --surface-2: #E8E8ED;
  --field: #FFFFFF;
  --text: #1D1D1F;
  --muted: #6E6E73;
  /* navy from the logo (same values as config.js, so there is no blue flash before the script runs) */
  --accent: #0B1331;
  --accent-hover: #1A2550;
  --on-accent: #FFFFFF;
  --link: #0B1331;
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.16);
  --red: #D70015;
  --red-soft: rgba(255, 59, 48, 0.08);
  --red-line: rgba(215, 0, 21, 0.28);
  --sample-ink: #8A5A00;
  --sample-line: rgba(138, 90, 0, 0.45);
  --sample-bg: rgba(255, 204, 0, 0.12);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Inter", "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: clamp(16px, 4.5vw, 48px);
  --maxw: 1180px;
  --radius: 22px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --toolbar: 0px;
  color-scheme: light;
}
/* Dark scope: the film, the roof layers (shown like a product on black) and the header over them. */
.film, .layers, .site-header {
  --bg: #000000;
  --bg-alt: #000000;
  --surface: #1D1D1F;
  --surface-2: #2C2C2E;
  --field: #000000;
  --text: #F5F5F7;
  --muted: #86868B;
  --link: #2997FF;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.2);
  --red: #FF6961;
  --red-soft: rgba(255, 69, 58, 0.14);
  --red-line: rgba(255, 69, 58, 0.45);
  --sample-ink: #FFD60A;
  --sample-line: rgba(255, 214, 10, 0.5);
  --sample-bg: rgba(255, 214, 10, 0.06);
  color: var(--text);
}
@supports (height: 100lvh) {
  :root { --toolbar: calc(100lvh - 100svh); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Shared pieces ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  display: inline-block; margin: 0;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--muted);
}
.h2 {
  font-weight: 600; font-size: clamp(2.25rem, 5.6vw, 4rem); line-height: 1.06; letter-spacing: -0.035em;
  margin: 10px 0 0; text-wrap: balance;
}
.h2 em { font-style: normal; color: var(--muted); }
.lede { color: var(--muted); font-size: clamp(1.06rem, 1.7vw, 1.3rem); line-height: 1.42; letter-spacing: -0.015em; max-width: 52ch; margin: 18px 0 0; font-weight: 400; }
.section { padding: clamp(88px, 12vw, 160px) 0; position: relative; }
/* Light-grey band; cards inside it turn white. */
.section--alt { background: var(--bg-alt); --surface: #FFFFFF; --surface-2: #F5F5F7; }
.section-head { display: grid; gap: 4px; margin-bottom: clamp(36px, 6vw, 64px); }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 48px; }
  .section-head--split .lede { margin: 0; justify-self: end; }
}

.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 24px; border-radius: 980px;
  font-weight: 500; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap;
  border: 0; cursor: pointer;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: var(--surface); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); }
.btn svg { width: 17px; height: 17px; }

.sample {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px;
  color: var(--sample-ink); border: 1px dashed var(--sample-line); background: var(--sample-bg);
  vertical-align: middle; white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color 0.4s var(--ease), border-color 0.4s, color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(22, 22, 23, 0.72);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
}
.site-header.is-light {
  --text: #1D1D1F; --muted: #6E6E73; --line: rgba(0, 0, 0, 0.1);
  --red: #D70015; --red-soft: rgba(255, 59, 48, 0.08); --red-line: rgba(215, 0, 21, 0.28);
}
.site-header.is-light.is-solid { background: rgba(255, 255, 255, 0.76); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; height: 52px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 22px; height: 22px; flex: none; }
.logo__word { font-size: 17px; letter-spacing: -0.02em; white-space: nowrap; }
.logo__name { font-weight: 600; }
.logo__sub { font-weight: 400; color: var(--muted); }
.nav { display: none; gap: 32px; }
.nav a { text-decoration: none; font-size: 12.5px; letter-spacing: -0.01em; color: var(--text); opacity: 0.8; transition: opacity 0.2s; }
.nav a:hover { opacity: 1; }
.header-cta { --h: 30px; padding: 0 14px; font-size: 13px; font-weight: 400; }
.header-cta .full { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .header-cta .full { display: inline; }
  .header-cta .short { display: none; }
}

/* ---------- Scroll film ---------- */
.film { position: relative; height: calc(var(--screens, 5) * 100vh); background: #000; }
.film__stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: #000 center / cover no-repeat;
  background-image: var(--poster-desktop);
}
@supports (height: 100lvh) { .film__stage { height: 100lvh; } }
@media (max-aspect-ratio: 9/10) { .film__stage { background-image: var(--poster-mobile); } }
.film__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Native-resolution frame shown when the scroll rests (same cover crop as the canvas). */
.film__hd { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; }
.film__hd.is-on { opacity: 1; transition: opacity 0.18s ease; }
.film__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 26%, rgba(0, 0, 0, 0) 46%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 22%, rgba(0, 0, 0, 0) 40%);
}
@media (min-width: 900px) {
  .film__shade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 12%),
      linear-gradient(100deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.18) 30%, rgba(0, 0, 0, 0) 48%),
      linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 30%);
  }
}

/* Phone: title at the top, buttons at the bottom, the hole framed in between. */
.film__hero {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 86px) 0 calc(var(--safe-b) + var(--toolbar) + 26px);
  transform: translateY(var(--lift, 0px));
  will-change: opacity, transform;
}
.film__hero > .wrap { flex: 1; display: flex; flex-direction: column; }
/* Phone: extra shade behind the title while it is on screen (it fades out with the hero). */
@media (max-width: 899px) {
  .film__hero { background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.44) 46%, rgba(0, 0, 0, 0) 68%); }
}
/* Desktop: a soft pool of shade behind the bottom-left title; it fades out with the hero. */
@media (min-width: 900px) {
  .film__hero::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    left: 0; bottom: calc(-1 * (var(--safe-b) + 44px)); width: 78%; height: 175%;
    background: radial-gradient(ellipse 75% 62% at 24% 62%, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.42) 42%, rgba(0, 0, 0, 0) 78%);
  }
}
.film__hero .film__ctas { margin-top: auto; }
.film__hero .eyebrow { font-size: 15px; color: rgba(245, 245, 247, 0.72); font-weight: 500; }
.film__title {
  font-weight: 600; font-size: clamp(3rem, 13vw, 7rem); line-height: 1.02; letter-spacing: -0.04em;
  margin: 10px 0 0;
}
.film__title em { display: block; font-style: normal; color: #F5F5F7; }
.film__title, .film__sub, .film__hero .eyebrow { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), 0 2px 28px rgba(0, 0, 0, 0.35); }
.film__sub { margin: 14px 0 0; font-size: clamp(1.06rem, 2.2vw, 1.3rem); color: rgba(245, 245, 247, 0.86); display: flex; align-items: center; gap: 10px; letter-spacing: -0.015em; }
.film__sub .pulse { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.film__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 899px) {
  .film__ctas .btn { flex: 1 1 100%; --h: 50px; }
}
@media (min-width: 900px) {
  /* Desktop: bottom-left over the dark foreground, so the sky and the house stay clear. */
  .film__hero { inset: auto 0 calc(var(--safe-b) + 44px) 0; display: block; padding: 0; }
  .film__hero > .wrap { display: block; }
  .film__hero .film__ctas { margin-top: 26px; }
  .film__title { font-size: clamp(3.4rem, 4.8vw, 5.2rem); }
}

.film__chapter {
  position: absolute; left: 0; right: 0;
  bottom: calc(var(--safe-b) + var(--toolbar) + 26px);
}
.film__when { color: rgba(242, 243, 244, 0.7); font-weight: 500; }
.film__note { margin: 10px 0 0; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--sample-ink); opacity: 0.8; }
.film__chapter-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: -0.005em; color: rgba(245, 245, 247, 0.72); }
.film__chapter-text {
  font-weight: 600; font-size: clamp(1.4rem, 3.6vw, 2.1rem); line-height: 1.14; letter-spacing: -0.03em;
  margin: 8px 0 0; max-width: 22ch; min-height: 2.3em; text-wrap: balance;
}
@media (min-width: 900px) { .film__chapter-text { max-width: 26ch; } }
.film__chapter-text, .film__chapter-meta { transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out); }
.film__chapter.is-switching .film__chapter-text,
.film__chapter.is-switching .film__chapter-meta { opacity: 0; transform: translateY(8px); }
.film__progress { display: flex; gap: 6px; margin-top: 18px; max-width: 420px; }
.film__progress span { flex: 1; height: 3px; background: rgba(255, 255, 255, 0.2); border-radius: 3px; overflow: hidden; position: relative; }
.film__progress i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: #fff; }

.film__hint {
  position: absolute; right: var(--gutter); bottom: calc(var(--safe-b) + var(--toolbar) + 30px);
  display: grid; justify-items: center; gap: 8px;
  font-size: 12px; color: rgba(245, 245, 247, 0.7);
  transition: opacity 0.4s;
}
.film__hint::after { content: ""; width: 1px; height: 38px; background: linear-gradient(var(--text), transparent); animation: drip 1.8s var(--ease-out) infinite; transform-origin: top; }
@media (max-width: 899px) { .film__hint { display: none; } }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

.film__loader {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; pointer-events: none;
  background: #fff;
  transform-origin: left; transform: scaleX(0); transition: transform 0.3s, opacity 0.6s;
}
.film__loader.is-done { opacity: 0; }

/* ---------- Statement + stats ---------- */
.statement { text-align: center; padding-top: clamp(100px, 13vw, 170px); }
.statement__title { font-weight: 600; font-size: clamp(2.3rem, 6vw, 4.5rem); line-height: 1.06; letter-spacing: -0.04em; margin: 12px auto 0; max-width: 17ch; text-wrap: balance; }
.statement__title em { display: block; font-style: normal; color: var(--muted); }
.statement__body { color: var(--muted); max-width: 56ch; margin: 24px auto 0; font-size: clamp(1.06rem, 1.7vw, 1.3rem); line-height: 1.42; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: clamp(56px, 8vw, 88px); }
.stat { background: var(--surface); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px) 16px; display: grid; gap: 6px; justify-items: center; }
.stat__value { font-weight: 600; font-size: clamp(2.6rem, 6vw, 3.8rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat__label { color: var(--muted); font-size: 15px; }
.stats-note { margin-top: 14px; display: flex; justify-content: center; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Services ---------- */
.services { display: grid; gap: 12px; }
.service { background: var(--surface); border-radius: var(--radius); padding: clamp(28px, 3.4vw, 40px); display: grid; gap: 12px; align-content: start; transition: transform 0.4s var(--ease-out), background-color 0.3s; }
.service:hover { background: var(--surface-2); transform: translateY(-2px); }
.service__icon { color: var(--text); }
.service__icon svg { width: 34px; height: 34px; }
.service h3 { font-weight: 600; font-size: 1.32rem; letter-spacing: -0.025em; margin: 8px 0 0; }
.service p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.47; }
@media (min-width: 680px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .services { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Process ---------- */
.steps { display: grid; gap: 12px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; padding: 26px 24px 26px 74px; border-radius: var(--radius); background: var(--surface); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 24px; top: 24px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px; font-weight: 600;
  background: var(--text); color: var(--bg); letter-spacing: 0;
}
.step h3 { margin: 2px 0 0; font-size: 1.12rem; font-weight: 600; letter-spacing: -0.02em; }
.step p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.step__when { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps--5 { grid-template-columns: repeat(5, 1fr); }
  .step { padding: 80px 24px 30px; min-height: 250px; }
  .step::before { top: 28px; width: 34px; height: 34px; }
}

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: 12px; }
.review { margin: 0; padding: 30px 26px; border-radius: var(--radius); background: var(--surface); display: grid; gap: 18px; align-content: space-between; }
.review__stars { display: flex; gap: 2px; color: var(--text); }
.review__stars svg { width: 15px; height: 15px; }
.review blockquote { margin: 0; font-size: 1.12rem; line-height: 1.5; letter-spacing: -0.02em; }
.review figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.review figcaption strong { color: var(--text); font-weight: 600; display: block; }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, 1fr); } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: clamp(1.06rem, 2vw, 1.2rem); font-weight: 600; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--surface-2); position: relative; transition: background-color 0.3s; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; border-radius: 2px; background: var(--text); transform: translate(-50%, -50%); }
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.35s var(--ease-out); }
.faq details[open] summary .plus { background: var(--text); }
.faq details[open] summary .plus::before, .faq details[open] summary .plus::after { background: var(--bg); }
.faq details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq details p { margin: -4px 0 24px; color: var(--muted); max-width: 66ch; }
@media (min-width: 900px) { .faq-layout .h2 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); } .faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; } .faq-layout .section-head { position: sticky; top: 100px; } }

/* ---------- Service area ---------- */
.area { display: grid; gap: 40px; align-items: center; }
.area__map { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; margin: 0 auto; }
.area__map svg { width: 100%; height: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.chips li { padding: 8px 14px; border-radius: 980px; background: var(--surface); font-size: 15px; }
@media (min-width: 900px) { .area { grid-template-columns: 1.1fr 1fr; gap: 64px; } }

/* ---------- Quote form ---------- */
.quote__grid { display: grid; gap: 40px; }
.quote__contact { display: grid; gap: 14px; margin-top: 30px; }
.quote__contact a, .quote__contact div { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.quote__contact a:hover { color: var(--link); }
.quote__contact svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.form { border-radius: 28px; padding: clamp(22px, 4vw, 40px); background: var(--surface); display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 620px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 12px;
  background: var(--field); border: 1px solid var(--line-strong);
  font-size: 17px; /* 16px+ stops iOS zoom-on-focus */
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 42px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.22); }
.field input:user-invalid, .field select:user-invalid { border-color: #FF453A; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 4px; }
.form__foot small { color: var(--muted); font-size: 13px; max-width: 36ch; letter-spacing: -0.01em; }
.form__error { color: #FF453A; margin: 0; }
.form__success { display: none; text-align: center; padding: 30px 10px; }
.form__success h3 { font-weight: 600; font-size: 1.9rem; letter-spacing: -0.035em; margin: 16px 0 6px; }
.form__success p { color: var(--muted); margin: 0; }
.form.is-sent { align-content: center; }
.form.is-sent > :not(.form__success) { display: none; }
.form.is-sent .form__success { display: block; }
.check { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
@media (min-width: 960px) { .quote__grid { grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; } }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 calc(110px + var(--safe-b)); background: var(--bg-alt); font-size: 13px; }
@media (min-width: 900px) { .site-footer { padding-bottom: 40px; } }
.footer__top { display: grid; gap: 32px; }
.footer__tag { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; font-size: 13px; }
.footer__cols h3, .footer__cols h4 { margin: 0 0 10px; font-size: 13px; color: var(--text); font-weight: 600; letter-spacing: -0.01em; }
.footer__cols a, .footer__cols p { display: block; margin: 0 0 8px; text-decoration: none; color: var(--muted); }
.footer__cols a:hover { color: var(--text); text-decoration: underline; }
.footer__demo { margin-top: 40px; padding: 16px 18px; border: 1px dashed var(--sample-line); border-radius: 14px; color: var(--muted); font-size: 12.5px; line-height: 1.6; background: var(--sample-bg); }
.footer__demo strong { color: var(--sample-ink); }
.footer__legal { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1fr 1.4fr; } .footer__cols { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); z-index: 40;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 8px;
  border-radius: 980px; background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.16), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  transform: translateY(140%); transition: transform 0.5s var(--ease-out);
}
.action-bar.is-visible { transform: none; }
.action-bar .btn { --h: 46px; padding: 0 14px; font-size: 16px; }
@media (min-width: 900px) { .action-bar { display: none; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .film__hint::after, .film__sub .pulse { animation: none; }
}
@media (max-width: 429px) { .site-header .logo__sub { display: none; } }

/* ---------- Header extras ---------- */
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn--leak { --h: 30px; padding: 0 14px; font-size: 13px; font-weight: 400; background: var(--red-soft); color: var(--red); box-shadow: inset 0 0 0 1px var(--red-line); }
.btn--leak:hover { background: var(--red-soft); filter: brightness(0.97); }
.header-leak { display: none; }
@media (min-width: 900px) { .header-leak { display: inline-flex; } }
.leak-dot { width: 8px; height: 8px; border-radius: 50%; background: #FF453A; flex: none; box-shadow: 0 0 0 0 rgba(255, 69, 58, 0.7); animation: leakPulse 1.8s infinite; }
@keyframes leakPulse { 70% { box-shadow: 0 0 0 8px rgba(255, 69, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 69, 58, 0); } }
.btn--leak-ghost { background: rgba(255, 255, 255, 0.14); color: var(--text); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
.btn--leak-ghost:hover { background: rgba(255, 255, 255, 0.22); }
.action-bar .btn--leak-ghost { background: rgba(0, 0, 0, 0.06); backdrop-filter: none; -webkit-backdrop-filter: none; }
.section--tight { padding-top: clamp(40px, 6vw, 80px); }

/* ---------- Film: infrared scan, markers, read-outs ---------- */
.film__thermal { position: absolute; inset: 0; visibility: hidden; opacity: 0; pointer-events: none; }
.film__thermal picture, .film__thermal img { position: absolute; inset: 0; width: 100%; height: 100%; }
.film__thermal img { object-fit: cover; }
.film__scanline {
  position: absolute; top: 0; bottom: 0; left: 0; width: 3px; margin-left: -1.5px; opacity: 0;
  background: #fff; box-shadow: 0 0 14px 4px rgba(255, 255, 255, 0.55), 0 0 48px 14px rgba(255, 255, 255, 0.18);
}
.film__markers { position: absolute; inset: 0; pointer-events: none; }
.marker { position: absolute; left: 0; top: 0; opacity: 0; display: flex; align-items: center; gap: 10px; transition: opacity 0.2s; }
.marker__dot { position: relative; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px #fff, 0 2px 10px rgba(0, 0, 0, 0.45); flex: none; }
.marker__dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #fff; animation: markerPing 1.8s var(--ease-out) infinite; }
@keyframes markerPing { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(2.6); opacity: 0; } }
.marker__label {
  margin-top: -7px; padding: 6px 12px; border-radius: 980px; white-space: nowrap;
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: #fff;
  background: rgba(16, 17, 19, 0.72); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.marker.is-left { flex-direction: row-reverse; }
.marker.is-left .marker__dot { margin: -7px -7px 0 0; }
@media (max-width: 899px) { .marker__label { font-size: 13px; padding: 5px 10px; } }
.film__readout { position: absolute; right: var(--gutter); top: calc(env(safe-area-inset-top, 0px) + 74px); display: grid; justify-items: end; pointer-events: none; }
.readout {
  grid-area: 1 / 1; visibility: hidden; opacity: 0; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 16px; font-size: 14px; color: rgba(242, 243, 244, 0.8);
  background: rgba(16, 17, 19, 0.72); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.readout strong { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.readout__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (max-width: 899px) { .film__readout { left: var(--gutter); right: var(--gutter); justify-items: start; top: calc(env(safe-area-inset-top, 0px) + 66px); } }

/* ---------- Roof layers (exploded assembly) ---------- */
.layers { position: relative; height: 460vh; background: radial-gradient(90% 60% at 30% 40%, #161618 0%, #000 70%); }
.layers__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
@supports (height: 100lvh) { .layers__stage { height: 100svh; } }
.layers__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; width: 100%; }
.layers__visual { height: min(80vh, 740px); display: grid; place-items: center; perspective: 2200px; }
.stack { --size: min(29vw, 400px); width: var(--size); height: var(--size); transform-style: preserve-3d; transform: scale3d(var(--fit, 1), var(--fit, 1), var(--fit, 1)) translateY(var(--drop, 0px)); transition: transform 0.25s var(--ease-out); }
.stack__iso { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: translateY(24%) rotateX(58deg) rotateZ(-38deg); }
.slab { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.25s var(--ease-out), opacity 0.3s; }
.slab__face { position: absolute; background-image: var(--tex); background-size: cover; background-position: center; }
.slab__top { inset: 0; transform: translateZ(var(--t)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.slab__s1, .slab__s3 { left: 0; width: 100%; height: var(--t); }
.slab__s2, .slab__s4 { top: 0; height: 100%; width: var(--t); }
.slab__s1 { bottom: 0; transform-origin: bottom; transform: rotateX(-90deg) translateY(var(--t)); filter: brightness(0.62); }
.slab__s3 { top: 0; transform-origin: top; transform: rotateX(90deg); filter: brightness(0.5); }
.slab__s2 { right: 0; transform-origin: right; transform: rotateY(90deg) translateX(var(--t)); filter: brightness(0.78); }
.slab__s4 { left: 0; transform-origin: left; transform: rotateY(-90deg); filter: brightness(0.5); }
.slab.is-active .slab__top { box-shadow: inset 0 0 0 2px #fff, 0 0 60px rgba(255, 255, 255, 0.2); }
.layers__title { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.layers__info { margin-top: 28px; min-height: 210px; }
.layers__count { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.layers__name { margin: 8px 0 0; font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.layers__text { margin: 12px 0 0; color: var(--muted); font-size: 17px; max-width: 40ch; }
.layers__spec { margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.layers__spec span:first-child { padding: 6px 12px; border-radius: 980px; background: var(--surface-2); }
.layers__systems { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.sys { min-height: 40px; padding: 0 16px; border-radius: 980px; border: 0; background: var(--surface); color: var(--muted); font-size: 15px; font-weight: 500; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.sys:hover { color: var(--text); }
.sys[aria-pressed="true"] { background: #F5F5F7; color: #1D1D1F; }
.sys__short { display: none; }
.layers__note { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); }
@media (max-width: 899px) {
  .layers { height: 420vh; }
  .layers__stage { align-items: stretch; padding: calc(env(safe-area-inset-top, 0px) + 66px) 0 calc(var(--safe-b) + 88px); }
  @supports (height: 100lvh) { .layers__stage { height: 100lvh; } }
  .layers__grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; height: 100%; }
  .layers__panel { display: contents; }
  .layers__panel > .eyebrow { order: 1; font-size: 15px; }
  .layers .layers__title { order: 2; margin-top: 4px; font-size: 1.75rem; }
  .layers__visual { order: 3; flex: 1 1 auto; height: auto; min-height: 150px; }
  .stack { --size: min(58vw, 240px); }
  .stack__iso { transform: translateY(6%) rotateX(58deg) rotateZ(-38deg); }
  .layers__info { order: 4; margin-top: 0; min-height: 146px; flex-shrink: 0; }
  .layers__name { font-size: 1.4rem; margin-top: 4px; }
  .layers__text { font-size: 15px; margin-top: 6px; }
  .layers__spec { margin-top: 8px; font-size: 13.5px; }
  .layers__systems { order: 5; margin-top: 10px; gap: 6px; flex-wrap: nowrap; }
  .sys { flex: 0 0 auto; min-height: 36px; padding: 0 12px; font-size: 13.5px; }
  .sys__full { display: none; }
  .sys__short { display: inline; }
  .layers__note { display: none; }
}
/* Short phones (iPhone SE): drop the spec pill so the system buttons clear the action bar. */
@media (max-width: 899px) and (max-height: 620px) {
  .layers__spec { display: none; }
  .layers__info { min-height: 0; }
  .layers__visual { min-height: 120px; }
  .layers .layers__name { font-size: 1.2rem; }
  .layers__text { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .layers { height: auto; } .layers__stage { position: relative; height: auto; padding: 100px 0; } }

/* ---------- Planner ---------- */
.planner { display: grid; gap: 20px; }
.planner__form { background: var(--surface); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; align-content: start; }
.planner__form label output { float: right; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.field input[type="range"] { min-height: 28px; padding: 0; border: 0; background: none; accent-color: var(--accent); }
.field input[type="range"]:focus { box-shadow: none; }
.planner__issues { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.planner__issues legend { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 8px; padding: 0; }
.tick { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.planner__issues .tick span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 980px; background: var(--field); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 15px; color: var(--text); transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.planner__issues .tick input { position: absolute; opacity: 0; pointer-events: none; }
.planner__issues .tick input:checked + span { background: rgba(0, 113, 227, 0.08); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--accent); }
.planner__issues .tick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.planner__result { display: grid; gap: 14px; align-content: start; }
.planner__verdict { margin: 0; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.planner__verdict span { font-size: 15px; color: var(--muted); }
.planner__verdict strong { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.04em; color: var(--text); }
.planner__why { margin: -4px 0 4px; color: var(--muted); max-width: 60ch; }
.planner__options { display: grid; gap: 10px; }
.opt { background: var(--surface); border-radius: 18px; padding: 18px 20px; display: grid; gap: 4px; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 0.3s, background-color 0.3s; }
.opt.is-pick { box-shadow: inset 0 0 0 2px var(--accent); }
.opt__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.opt h3 { margin: 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.opt__badge { display: none; font-size: 12px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; padding: 4px 10px; border-radius: 980px; background: var(--accent); color: var(--on-accent); }
.opt.is-pick .opt__badge { display: inline-block; }
.opt__price { margin: 4px 0 0; white-space: nowrap; font-size: clamp(1.25rem, 1.7vw, 1.55rem); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.opt__years { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.opt__text { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.planner__energy { margin: 0; font-size: 14px; color: var(--muted); }
.planner__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.planner__foot small { color: var(--muted); font-size: 13px; max-width: 46ch; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
@media (min-width: 1000px) {
  .planner { grid-template-columns: 0.78fr 1.22fr; gap: 28px; align-items: start; }
  .planner__options { grid-template-columns: repeat(3, 1fr); }
}
/* Stacked cards: the recommended option goes first, right under the verdict. */
@media (max-width: 999px) { .opt.is-pick { order: -1; } }

/* ---------- Sectors ---------- */
.sectors { display: grid; gap: 12px; }
.sector { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: var(--surface); }
.sector__icon { flex: none; color: var(--text); }
.sector__icon svg { width: 28px; height: 28px; }
.sector h3 { margin: 2px 0 0; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; }
.sector p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
@media (min-width: 680px) { .sectors { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .sectors { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .steps--6 { grid-template-columns: repeat(3, 1fr); } .steps--6 .step { min-height: 210px; } }

/* ---------- Projects + credentials ---------- */
.projects { display: grid; gap: 12px; }
.project { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); display: grid; }
.project img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.project__body { padding: 20px 22px 24px; }
.project h3 { margin: 0; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
.project__place { margin: 6px 0 0; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.project ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.project li { padding: 6px 12px; border-radius: 980px; background: var(--surface-2); font-size: 13.5px; font-weight: 500; }
@media (min-width: 900px) { .projects { grid-template-columns: repeat(3, 1fr); } }
.creds { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--surface); }
.creds__list { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.cred { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.cred svg { width: 18px; height: 18px; color: var(--text); }
.render-note { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---------- Quote extras ---------- */
.leak-card { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 16px 18px; border-radius: 18px; text-decoration: none; background: var(--red-soft); box-shadow: inset 0 0 0 1px var(--red-line); }
.leak-card strong { display: block; font-size: 15px; font-weight: 600; color: var(--red); }
.leak-card span:last-child { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
@media (min-width: 760px) { .form__row--3 { grid-template-columns: repeat(3, 1fr); } }
.form__row--3 { display: grid; gap: 16px; }
.tick--wide { font-size: 15px; color: var(--text); }
.tick--wide input { width: 20px; height: 20px; accent-color: var(--accent); }
.action-bar { grid-template-columns: 1fr 1.5fr; }
@media (prefers-reduced-motion: reduce) { .leak-dot, .marker__dot::after { animation: none; } }

/* ======================================================================
   JR Stucco additions
   ====================================================================== */

/* ---------- Apple type scale ----------
   SF Pro tracking: large display text near -0.005em, 21px headings +0.011em,
   body copy 17px / 1.47059 / -0.022em. */
body { line-height: 1.47059; letter-spacing: -0.022em; text-rendering: optimizeLegibility; }
.h2, .statement__title, .film__title, .film__chapter-text, .service h3, .step h3, .layers__name, .faq summary, .form__success h3 {
  letter-spacing: -0.005em; line-height: 1.07;
}
.h2 { font-size: clamp(2.25rem, 5.4vw, 3.5rem); }
.statement__title { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.07; letter-spacing: -0.012em; max-width: 22ch; }
.film__title { line-height: 1.05; letter-spacing: -0.015em; }
.film__chapter-text { line-height: 1.14; letter-spacing: 0.004em; }
.lede, .statement__body, .layers__text { letter-spacing: 0.011em; line-height: 1.381; }
.service h3, .step h3 { font-size: 21px; line-height: 1.19; letter-spacing: 0.011em; }
.faq summary { font-size: clamp(1.1rem, 1.8vw, 1.3125rem); line-height: 1.3; letter-spacing: 0.011em; }
.service p, .step p, .chips li { letter-spacing: -0.016em; }
.btn { font-weight: 400; letter-spacing: -0.022em; }
.nav a { font-size: 12px; letter-spacing: -0.01em; }
small, .footer__legal, .footer__note { letter-spacing: -0.01em; }

/* ---------- Logo (vector, white over the film, navy on light) ---------- */
.logo { gap: 0; }
.logo > span { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: auto; height: 30px; }
.logo__name { width: auto; height: 15px; }
.logo__on-light { display: none !important; }
.site-header.is-light .logo__on-dark { display: none !important; }
.site-header.is-light .logo__on-light { display: inline-flex !important; }
@media (max-width: 380px) { .logo__mark { height: 26px; } .logo__name { height: 13px; } }

/* ---------- Header + hero buttons ---------- */
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn--call { --h: 30px; padding: 0 14px; font-size: 13px; background: rgba(255, 255, 255, 0.12); color: var(--text); }
.btn--call svg { width: 14px; height: 14px; }
.site-header.is-light .btn--call { background: rgba(0, 0, 0, 0.05); }
.header-call { display: none; }
@media (min-width: 900px) { .header-call { display: inline-flex; } }
.site-header .header-cta { background: #F5F5F7; color: #0B1331; }
.site-header.is-light .header-cta { background: var(--accent); color: var(--on-accent); }
.header-cta:hover { filter: brightness(0.96); }
.btn--light { background: #F5F5F7; color: #0B1331; }
.btn--light:hover { background: #FFFFFF; }
.btn--glass { background: rgba(255, 255, 255, 0.14); color: #F5F5F7; backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.22); }
.btn--call-bar { background: rgba(0, 0, 0, 0.06); color: var(--text); }
.action-bar { grid-template-columns: 1fr 1.9fr; }

/* ---------- Facts ---------- */
.stat__value { letter-spacing: -0.01em; }

/* ---------- General contractors strip ---------- */
.gcs { padding: 8px 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.gcs__label { margin: 0 0 22px; text-align: center; font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: -0.016em; }
.gcs__track { display: flex; width: max-content; animation: gcs 46s linear infinite;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.gcs__row { display: flex; gap: clamp(36px, 5vw, 64px); margin: 0; padding: 0 clamp(18px, 2.5vw, 32px); list-style: none; }
.gcs { --logo-a: 66px; }
.gcs__track { animation-duration: 126s; }
.gcs__row { align-items: center; gap: clamp(44px, 6vw, 80px); }
.gcs__row li { display: flex; align-items: center; line-height: 0; }
.gcs__row img { display: block; width: auto; max-width: none; }
@media (min-width: 900px) {
  .gcs { --logo-a: 86px; }
  .gcs__track { animation-duration: 147s; }
  .gcs__row { gap: clamp(48px, 5vw, 88px); }
}
/* Pause on hover so a logo can be read */
@media (hover: hover) { .gcs:hover .gcs__track { animation-play-state: paused; } }
@keyframes gcs { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .gcs__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; }
  .gcs__row[aria-hidden], .gcs__dup { display: none; }
  .gcs__row { flex-wrap: wrap; justify-content: center; row-gap: 12px; }
}

/* ---------- Systems ---------- */
.service { position: relative; }
.service__tag { position: absolute; top: clamp(28px, 3.4vw, 40px); right: clamp(28px, 3.4vw, 40px); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; padding: 4px 10px; border-radius: 980px; background: var(--accent); color: var(--on-accent); }
/* 3 + 2 with equal card widths; the second row is centered. */
@media (min-width: 1040px) { .services { grid-template-columns: repeat(6, 1fr); } .services .service { grid-column: span 2; } .services .service:nth-child(4) { grid-column: 2 / span 2; } }

/* ---------- Anatomy: slab sides keep the material color ---------- */
.layers__spec span:first-child { padding: 6px 12px; border-radius: 980px; background: var(--surface-2); }

/* ---------- Projects gallery + certifications ---------- */
.gallery { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.shot { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 3; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.shot:hover img { transform: scale(1.03); }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; display: grid; gap: 2px; color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0)); font-size: 13px; letter-spacing: -0.01em; }
.shot figcaption strong { font-size: 16px; font-weight: 600; letter-spacing: -0.016em; }
.shot figcaption span { opacity: 0.85; }
@media (max-width: 599px) { .gallery { grid-template-columns: 1fr; } }
@media (min-width: 600px) and (max-width: 899px) { .shot--wide { grid-column: span 2; aspect-ratio: 16 / 9; } }
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  /* Feature tile: two columns wide, same height as its neighbour. */
  .shot--wide { grid-column: span 2; aspect-ratio: auto; }
  .shot--wide img { position: absolute; inset: 0; }
}
.certs { margin-top: 28px; display: grid; gap: 12px; }
.cert { display: flex; align-items: center; gap: 20px; padding: 20px 24px; border-radius: var(--radius); background: var(--surface); }
.cert img { width: 104px; height: 76px; object-fit: contain; flex: none; }
.cert p { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.016em; }
@media (min-width: 760px) { .certs { grid-template-columns: 1fr 1fr; } }

/* ---------- Bid form: system picks ---------- */
.picks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.picks legend { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 8px; padding: 0; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 980px; background: var(--field); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 15px; transition: box-shadow 0.2s, background-color 0.2s; }
.pick input:checked + span { background: rgba(11, 19, 49, 0.06); box-shadow: inset 0 0 0 1.5px var(--accent); }
.pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 4px rgba(11, 19, 49, 0.16); }

/* ---------- Footer ---------- */
.footer__logo img { width: 210px; height: auto; }
.footer__note { margin-top: 32px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }

/* ---------- Rhythm: tighter section spacing (about 25% less on desktop) ---------- */
.section { padding: clamp(80px, 9vw, 120px) 0; }
.statement { padding-top: clamp(96px, 10vw, 136px); padding-bottom: clamp(56px, 6vw, 84px); }
.gcs { padding-bottom: clamp(64px, 7vw, 96px); }

/* ======================================================================
   Inner pages: EIFS, fiber cement, blog (static HTML + page.js)
   ====================================================================== */
.nav a[aria-current="page"] { opacity: 1; font-weight: 600; }

/* ---------- Photo hero (dark, the header sits over it) ---------- */
.page-hero {
  --text: #F5F5F7; --muted: rgba(245, 245, 247, 0.78);
  position: relative; min-height: min(92vh, 880px); display: flex; align-items: flex-end;
  background: #000; color: var(--text); overflow: hidden; isolation: isolate;
}
@supports (height: 100svh) { .page-hero { min-height: min(92svh, 880px); } }
.page-hero__img { position: absolute; inset: 0; z-index: -2; margin: 0; }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 22%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.74) 38%, rgba(0, 0, 0, 0.4) 62%, rgba(0, 0, 0, 0) 82%);
}
@media (min-width: 900px) {
  .page-hero::before {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 14%),
      radial-gradient(ellipse 62% 70% at 18% 78%, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0) 100%),
      linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 36%);
  }
}
.page-hero__body { width: 100%; padding-top: 120px; padding-bottom: calc(var(--safe-b) + clamp(36px, 6vw, 72px)); }
.page-hero .eyebrow { font-size: 15px; color: rgba(245, 245, 247, 0.8); font-weight: 500; }
.page-hero h1 {
  margin: 10px 0 0; font-weight: 600; font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.05; letter-spacing: -0.015em;
  max-width: 15ch; text-wrap: balance;
}
.page-hero h1 em { display: block; font-style: normal; color: rgba(255, 255, 255, 0.84); }
.page-hero__sub { margin: 18px 0 0; max-width: 46ch; font-size: clamp(1.06rem, 1.8vw, 1.3rem); line-height: 1.38; letter-spacing: 0.011em; color: rgba(245, 245, 247, 0.88); }
.page-hero h1, .page-hero__sub, .page-hero .eyebrow { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 2px 24px rgba(0, 0, 0, 0.35); }
.page-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 599px) { .page-hero__ctas .btn { flex: 1 1 100%; --h: 50px; } }

/* "Illustration" tag on generated pictures */
.ill-tag {
  position: absolute; right: 12px; bottom: 12px; z-index: 1; pointer-events: none;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 6px; color: #fff; background: rgba(0, 0, 0, 0.5);
}
.page-hero .ill-tag { top: calc(env(safe-area-inset-top, 0px) + 66px); bottom: auto; right: var(--gutter); }

/* ---------- Text + photo rows ---------- */
.rows { display: grid; gap: clamp(56px, 8vw, 104px); }
.row { display: grid; gap: 24px; align-items: center; }
.row__media { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 3 / 2; }
.row__media img { width: 100%; height: 100%; object-fit: cover; }
.row__num { display: block; font-size: 15px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.row h2, .row h3 { margin: 6px 0 0; font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.005em; text-wrap: balance; }
.row h2 em { font-style: normal; color: var(--muted); }
.row p { margin: 14px 0 0; color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.15rem); line-height: 1.47; letter-spacing: 0.011em; max-width: 46ch; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; font-size: 16px; letter-spacing: -0.016em; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px; border-left: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(-45deg); }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 500; color: var(--link); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link::after { content: "\203A"; font-size: 1.2em; line-height: 1; }
@media (min-width: 900px) {
  .row { grid-template-columns: 1.15fr 1fr; gap: 64px; }
  .row--flip .row__media { order: 2; }
}

/* ---------- System cards ---------- */
.duo, .trio { display: grid; gap: 12px; }
.duo .service { padding: clamp(28px, 3.6vw, 44px); }
.duo .service h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; } .trio { grid-template-columns: repeat(3, 1fr); } }
.service__link { margin-top: 6px; font-weight: 500; font-size: 16px; color: var(--link); text-decoration: none; justify-self: start; }
.service__link:hover { text-decoration: underline; }
.service__link::after { content: " \203A"; }

/* ---------- Real project photos on inner pages ---------- */
@media (min-width: 600px) { .gallery--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .gallery--2 { grid-template-columns: 1fr 1fr; } }
.photo-note { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---------- Call to action band ---------- */
.cta-band { background: var(--accent); color: #F5F5F7; padding: clamp(72px, 9vw, 112px) 0; text-align: center; }
.cta-band .eyebrow { color: rgba(245, 245, 247, 0.72); }
.cta-band h2 { margin: 10px auto 0; font-weight: 600; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.07; letter-spacing: -0.005em; max-width: 20ch; text-wrap: balance; }
.cta-band p { margin: 16px auto 0; max-width: 48ch; color: rgba(245, 245, 247, 0.8); font-size: clamp(1.02rem, 1.6vw, 1.2rem); letter-spacing: 0.011em; }
.cta-band__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
@media (max-width: 599px) { .cta-band__btns .btn { flex: 1 1 100%; } }

/* ---------- Related links ---------- */
.related { display: grid; gap: 12px; }
.related a { display: grid; gap: 4px; align-content: start; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: background-color 0.3s; }
.related a:hover { background: var(--surface-2); }
.related small { color: var(--muted); font-size: 13px; font-weight: 600; }
.related strong { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
@media (min-width: 900px) { .related { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Blog ---------- */
.page-top { padding-top: calc(env(safe-area-inset-top, 0px) + clamp(104px, 11vw, 140px)); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "\203A"; margin-right: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.h1 { margin: 10px 0 0; font-weight: 600; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.07; letter-spacing: -0.012em; text-wrap: balance; }
.h1 em { font-style: normal; color: var(--muted); }
.posts { display: grid; gap: 16px; margin-top: clamp(40px, 6vw, 64px); }
.post-card { display: grid; align-content: start; border-radius: var(--radius); overflow: hidden; background: var(--surface); text-decoration: none; transition: transform 0.4s var(--ease-out), background-color 0.3s; }
.post-card:hover { transform: translateY(-2px); background: var(--surface-2); }
.post-card__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); margin: 0; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 22px 24px 26px; display: grid; gap: 8px; }
.post-card__meta { font-size: 13px; font-weight: 600; color: var(--muted); }
.post-card h2 { margin: 0; font-size: 1.3rem; font-weight: 600; line-height: 1.22; letter-spacing: -0.01em; text-wrap: balance; }
.post-card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.45; }
@media (min-width: 760px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .posts { grid-template-columns: repeat(3, 1fr); } }

.article { max-width: 720px; margin: 0 auto; }
.article__meta { margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.article__cover { position: relative; max-width: 1040px; margin: clamp(32px, 5vw, 48px) auto 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 18px; line-height: 1.6; letter-spacing: -0.012em; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.008em; }
.prose h3 { margin-top: 1.6em; font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.5em; }
.prose a { color: var(--link); text-underline-offset: 3px; }
.prose strong { font-weight: 600; }
.prose .lead { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.5; }
.table-wrap { overflow-x: auto; border-radius: 16px; background: var(--bg-alt); -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.prose thead th { font-size: 13px; color: var(--muted); font-weight: 600; }
.prose tbody tr:last-child > * { border-bottom: 0; }
.prose tbody th { font-weight: 600; }
.callout { padding: 22px 24px; border-radius: 18px; background: var(--bg-alt); }
.callout > * { margin: 0; }
.callout > * + * { margin-top: 0.6em; }
.article__end { margin-top: clamp(48px, 7vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.article__end p { margin: 0; font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; }

/* Form error: tappable contact links */
.form__error a { color: inherit; font-weight: 600; }

/* Article: space between the cover and the text; shorter breadcrumb and table on phones */
.article__cover + .prose { margin-top: clamp(32px, 5vw, 48px); }
@media (max-width: 599px) { .crumbs li[aria-current] { display: none; } .prose table { min-width: 480px; font-size: 14.5px; } .prose th, .prose td { padding: 12px 12px; } }

/* ---------- Phone menu ---------- */
.menu-btn { display: none; }
@media (max-width: 899px) {
  .menu-btn {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    width: 40px; height: 40px; margin-right: -6px; padding: 0; border: 0; border-radius: 50%;
    background: transparent; color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .menu-btn span { width: 18px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform 0.3s var(--ease-out); }
  .site-header.is-open .menu-btn span:first-child { transform: translateY(3.3px) rotate(45deg); }
  .site-header.is-open .menu-btn span:last-child { transform: translateY(-3.3px) rotate(-45deg); }
  .site-header.is-open { --menu-bg: #161617; background: var(--menu-bg); border-bottom-color: var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header.is-open.is-light { --menu-bg: #FFFFFF; }
  .site-header.is-open .nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    padding: 4px var(--gutter) 22px; background: var(--menu-bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(0, 0, 0, 0.18);
    max-height: calc(100vh - 60px); overflow-y: auto;
  }
  .site-header.is-open .nav a { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; padding: 14px 0; opacity: 1; border-bottom: 1px solid var(--line); }
  .site-header.is-open .nav a:last-child { border-bottom: 0; }
}

/* Skip link: visible when it gets keyboard focus */
.visually-hidden:focus { position: fixed !important; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; clip-path: none; white-space: normal; padding: 10px 14px; border-radius: 8px; background: #fff; color: #000; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); }
.form__foot small a { color: inherit; }

/* ---------- Systems: whole card is a link; dark navy on hover ---------- */
a.service--link { text-decoration: none; color: var(--text); cursor: pointer; }
.service__more { margin-top: 6px; font-size: 16px; font-weight: 500; color: var(--link); }
.service__more::after { content: " \203A"; }
a.service--link:hover, a.service--link:focus-visible { background: var(--accent); color: #FFFFFF; transform: translateY(-3px); }
a.service--link:hover p, a.service--link:focus-visible p { color: rgba(255, 255, 255, 0.78); }
a.service--link:hover .service__icon, a.service--link:focus-visible .service__icon,
a.service--link:hover .service__more, a.service--link:focus-visible .service__more { color: #FFFFFF; }
a.service--link:hover .service__tag, a.service--link:focus-visible .service__tag { background: #FFFFFF; color: var(--accent); }
a.service--link:active { transform: scale(0.99); }
/* three cards: one even row */
@media (min-width: 1040px) { .services .service:nth-child(4) { grid-column: auto; } }

/* Projects: fill any gap left by a wide photo on tablets */
.gallery { grid-auto-flow: dense; }
