@font-face {
  font-family: DM;
  src: url('assets/fonts/dm-sans-400.b0ae3e89a7d3ef2b.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url('assets/fonts/dm-sans-500.376427b5322148d8.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url('assets/fonts/dm-sans-600.b79a2ea7a38f33fd.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/fonts/InstrumentSerif-Italic.08939b8bdf534afe.ttf') format('truetype');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

/* Graystone: warm charcoal, stone and ivory, with a brass accent. */
:root {
  --ink: #121415;
  --charcoal: #1c2021;
  --slate: #4c5153;
  --stone: #e7e2da;
  --ivory: #f6f3ee;
  --muted: #b7b3ac;
  --brass: #c9993f;
  --brass-bright: #dcb05c;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: DM, system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 6vw, 96px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
em,
.italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}
.skip-link {
  position: absolute;
  z-index: 100;
  left: 16px;
  top: -60px;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--ivory);
  color: var(--ink);
}
.skip-link:focus {
  top: 12px;
}

/* ---------- buttons ---------- */
.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.6em;
  border: 0;
  border-radius: 999px;
  background: var(--brass);
  color: var(--ink);
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.25s,
    transform 0.25s var(--ease);
}
.btn:hover,
.button:hover {
  background: var(--brass-bright);
  transform: translateY(-1px);
}
.btn:focus-visible,
.button:focus-visible,
.text-link:focus-visible,
.nav-links a:focus-visible {
  outline: 3px solid var(--brass-bright);
  outline-offset: 3px;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ivory);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}
.btn-small {
  padding: 0.7em 1.2em;
  font-size: 0.9rem;
}
.button-dark {
  background: var(--charcoal);
  color: var(--ivory);
}
.text-link {
  display: inline-flex;
  gap: 0.5em;
  margin-top: 22px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: var(--brass-bright);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
}
.text-link:hover {
  color: var(--ivory);
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(16px, 4vw, 48px);
  color: var(--ivory);
  transition:
    background 0.4s,
    padding 0.4s;
}
.nav.solid {
  background: rgba(18, 20, 21, 0.92);
  padding-top: 12px;
  padding-bottom: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.nav-logo img {
  width: 168px;
  height: auto;
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a {
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.nav-links a:hover {
  opacity: 1;
}
.nav-links a[aria-current='page'] {
  opacity: 1;
  color: var(--brass-bright);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* small screens: the links move into a disclosure menu */
.menu {
  display: none;
  position: relative;
}
.menu summary {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  cursor: pointer;
  list-style: none;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu summary span,
.menu summary span::before,
.menu summary span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ivory);
}
.menu summary span {
  position: relative;
}
.menu summary span::before,
.menu summary span::after {
  content: '';
  position: absolute;
  left: 0;
}
.menu summary span::before {
  top: -5px;
}
.menu summary span::after {
  top: 5px;
}
.menu[open] summary span {
  background: transparent;
}
.menu[open] summary span::before {
  top: 0;
  transform: rotate(45deg);
}
.menu[open] summary span::after {
  top: 0;
  transform: rotate(-45deg);
}
.menu summary:focus-visible {
  outline: 3px solid var(--brass-bright);
  outline-offset: 3px;
}
.menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: grid;
  min-width: 220px;
  padding: 10px;
  border-radius: 16px;
  background: var(--charcoal);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.menu nav a {
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
}
.menu nav a:hover,
.menu nav a[aria-current='page'] {
  background: rgba(255, 255, 255, 0.06);
  color: var(--brass-bright);
}
@media (max-width: 1040px) {
  .nav-links {
    display: none;
  }
  .menu {
    display: block;
  }
}
@media (max-width: 720px) {
  .nav-logo img {
    width: 132px;
  }
}
@media (max-width: 400px) {
  .nav-actions .btn-small {
    display: none;
  }
}
/* inner pages: the header is always solid and scrolls with the page */
.nav-page {
  position: sticky;
  top: 0;
  background: rgba(18, 20, 21, 0.94);
  padding-top: 12px;
  padding-bottom: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 60%;
  transform: scale(calc(1.08 - var(--hp, 0) * 0.06)) translateY(calc(var(--hp, 0) * 6%));
  animation: hero-in 2.4s var(--ease) both;
  will-change: transform;
}
@keyframes hero-in {
  from {
    opacity: 0;
    filter: brightness(0.4) saturate(0.7);
  }
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 20, 21, 0.55) 0%, rgba(18, 20, 21, 0) 26%),
    linear-gradient(90deg, rgba(18, 20, 21, 0.86) 0%, rgba(18, 20, 21, 0.55) 32%, rgba(18, 20, 21, 0) 62%),
    linear-gradient(0deg, rgba(18, 20, 21, 0.85) 0%, rgba(18, 20, 21, 0) 45%);
}
.hero-copy {
  position: relative;
  padding: 0 var(--gutter) clamp(72px, 12vh, 140px);
  max-width: 1100px;
  opacity: calc(1 - var(--hp, 0) * 1.6);
  transform: translateY(calc(var(--hp, 0) * -40px));
}
.eyebrow {
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-bright);
}
.eyebrow.dark {
  color: #9a7124;
}
.hero-title {
  margin: 0;
  font-weight: 600;
  font-size: clamp(3rem, 8vw, 7.2rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.hero-title .italic {
  font-size: 1.08em;
  letter-spacing: -0.01em;
}
.hero-sub {
  max-width: 560px;
  margin: 26px 0 34px;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  color: rgba(246, 243, 238, 0.84);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.reveal {
  display: inline-block;
  animation: rise 1.3s var(--ease) both;
  animation-delay: calc(0.35s + var(--d, 0) * 0.12s);
}
/* reveal delays are classes: the CSP (style-src 'self') blocks inline style attributes */
.d-1 {
  --d: 1;
}
.d-2 {
  --d: 2;
}
.d-3 {
  --d: 3;
}
.d-4 {
  --d: 4;
}
p.reveal,
div.reveal {
  display: block;
}
.hero-actions.reveal {
  display: flex;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.7em);
  }
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5);
  opacity: calc(1 - var(--hp, 0) * 4);
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 9px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: #fff;
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(12px);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@media (max-width: 720px) {
  .scroll-cue {
    display: none;
  }
  .hero-img {
    object-position: 34% 60%;
  }
}

/* ---------- scroll story ---------- */
.story {
  position: relative;
  height: 560vh;
}
.stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.frame {
  position: absolute;
  /* finale: the photo pulls back into a rounded card */
  inset: calc(var(--fin, 0) * 9vh) calc(var(--fin, 0) * 7vw);
  border-radius: calc(var(--fin, 0) * 28px);
  overflow: hidden;
  background: var(--charcoal);
  transform: scale(calc(1.06 - var(--sp, 0) * 0.06));
}
.layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 55%;
}
#l-roof {
  /* 01: a patch of new shingles opens on the weathered roof (app.js places it);
     02: the weathered roof wipes away left to right as the new roof goes on */
  --hole: calc(var(--patch, 0) * var(--patch-r, 120px));
  clip-path: inset(0 0 0 calc(var(--roof, 0) * 100%));
  -webkit-mask-image: radial-gradient(circle at var(--patch-x, 51%) var(--patch-y, 27%), transparent var(--hole), #000 calc(var(--hole) + 1px));
  mask-image: radial-gradient(circle at var(--patch-x, 51%) var(--patch-y, 27%), transparent var(--hole), #000 calc(var(--hole) + 1px));
}
.patch-ring {
  position: absolute;
  left: var(--patch-x, 51%);
  top: var(--patch-y, 27%);
  width: calc(var(--patch, 0) * var(--patch-r, 120px) * 2);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 2px var(--brass-bright),
    0 0 28px 4px rgba(220, 176, 92, 0.45);
  opacity: var(--ring, 0);
  pointer-events: none;
}
#l-foam {
  clip-path: circle(calc(var(--foam, 0) * 75%) at 42% 18%);
  opacity: calc(1 - var(--foam-out, 0));
}
.seam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--roof, 0) * 100%);
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--brass-bright) 20%, var(--brass-bright) 80%, transparent);
  box-shadow: 0 0 24px 4px rgba(220, 176, 92, 0.5);
  opacity: var(--seam, 0);
}
.frame-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 20, 21, 0.84) 0%, rgba(18, 20, 21, 0.5) 34%, rgba(18, 20, 21, 0) 60%);
  opacity: calc(1 - var(--fin, 0));
}
.frame::after {
  /* finale: darken the lower card so the closing line reads */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(18, 20, 21, 0.85) 0%, rgba(18, 20, 21, 0.4) 30%, rgba(18, 20, 21, 0) 55%);
  opacity: var(--fin, 0);
  pointer-events: none;
}
.rail {
  position: absolute;
  right: clamp(16px, 4vw, 48px);
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: calc(1 - var(--fin, 0));
}
.rail li {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: rgba(246, 243, 238, 0.6);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
  transition: color 0.4s;
}
.rail li span {
  order: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(246, 243, 238, 0.45);
  background: rgba(18, 20, 21, 0.45);
  font-size: 0.7rem;
  transition:
    background 0.4s,
    box-shadow 0.4s,
    color 0.4s;
}
.rail li.on {
  color: var(--ivory);
}
.rail li.on span {
  background: var(--brass);
  color: var(--ink);
  box-shadow: none;
}
@media (max-width: 720px) {
  .rail {
    top: auto;
    bottom: 22px;
    right: 50%;
    transform: translateX(50%);
    grid-auto-flow: column;
    gap: 8px;
  }
  .rail li {
    font-size: 0;
    gap: 0;
  }
}
.chapters {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.chapter {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  max-width: min(720px, calc(100vw - 32px));
  opacity: 0;
  transform: translateY(calc(-50% + 40px));
  transition:
    opacity 0.7s var(--ease),
    transform 0.9s var(--ease);
}
.chapter.on {
  opacity: 1;
  transform: translateY(-50%);
  pointer-events: auto;
}
.chapter.past {
  transform: translateY(calc(-50% - 40px));
}
.ch-num {
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-bright);
}
.chapter h2 {
  margin: 0 0 18px;
  font-weight: 600;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.chapter h2 em {
  font-size: 1.08em;
  letter-spacing: -0.01em;
}
.chapter p:not(.ch-num) {
  margin: 0;
  max-width: 480px;
  font-size: 1.08rem;
  color: rgba(246, 243, 238, 0.84);
}
.chapter-final {
  left: 50%;
  top: auto;
  bottom: calc(9vh + 44px);
  text-align: center;
  max-width: 900px;
  width: calc(100% - 32px);
  transform: translate(-50%, 40px);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}
.chapter-final.on {
  transform: translate(-50%, 0);
}
.chapter-final.past {
  transform: translate(-50%, 0);
}
.chapter-final h2 {
  margin-bottom: 26px;
}
.concept-note {
  position: absolute;
  left: var(--gutter);
  bottom: 18px;
  margin: 0;
  font-size: 0.72rem;
  color: rgba(246, 243, 238, 0.45);
}
@media (max-width: 720px) {
  .frame-shade {
    background: linear-gradient(0deg, rgba(18, 20, 21, 0.92) 0%, rgba(18, 20, 21, 0.55) 45%, rgba(18, 20, 21, 0) 70%);
  }
  .chapter {
    top: auto;
    bottom: 72px;
    transform: translateY(40px);
  }
  .chapter.on {
    transform: none;
  }
  .chapter.past {
    transform: translateY(-40px);
  }
  .chapter-final,
  .chapter-final.on,
  .chapter-final.past {
    bottom: 72px;
    transform: translateX(-50%);
  }
  .concept-note {
    display: none;
  }
}

/* ---------- closing ---------- */
.closing {
  background: var(--ivory);
  color: var(--charcoal);
  padding: clamp(80px, 14vh, 160px) var(--gutter);
}
.closing-inner {
  display: grid;
  grid-template-columns: 1fr minmax(0, 460px);
  gap: clamp(40px, 8vw, 120px);
  max-width: 1200px;
  margin: 0 auto;
  align-items: end;
}
.closing h2 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.closing-copy p {
  margin: 0 0 26px;
  color: var(--slate);
  font-size: 1.1rem;
}
.closing-copy .closing-alt {
  margin: 22px 0 0;
  font-size: 0.92rem;
}
.closing-alt a {
  color: var(--charcoal);
}
@media (max-width: 860px) {
  .closing-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* ---------- footer (every page) ---------- */
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding: 64px var(--gutter) 40px;
  background: var(--ink);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-brand img {
  width: 168px;
  height: auto;
  margin-bottom: 18px;
}
.footer-brand p {
  margin: 0 0 14px;
}
.footer-brand a,
.footer-col a {
  text-decoration: none;
}
.footer-brand a:hover,
.footer-col a:hover {
  color: var(--ivory);
}
.footer-col {
  display: grid;
  gap: 10px;
  align-content: start;
}
.footer-col h2 {
  margin: 0 0 4px;
  color: var(--ivory);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer-legal {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  opacity: 0.75;
}
@media (max-width: 860px) {
  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---------- inner pages ---------- */
.page-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(68vh, 640px);
  overflow: hidden;
}
.page-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 40%);
}
.page-hero.focus-roof {
  --focus: 52% 18%;
}
.page-hero.focus-attic {
  --focus: 42% 20%;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 20, 21, 0.9) 0%, rgba(18, 20, 21, 0.55) 40%, rgba(18, 20, 21, 0.1) 75%),
    linear-gradient(0deg, rgba(18, 20, 21, 0.8) 0%, rgba(18, 20, 21, 0) 50%);
}
.page-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 120px var(--gutter) clamp(48px, 9vh, 96px);
}
.page-hero h1 {
  margin: 0 0 20px;
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.page-hero p:not(.eyebrow) {
  max-width: 580px;
  margin: 0 0 30px;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  color: rgba(246, 243, 238, 0.86);
}
.page-hero .concept-note {
  position: absolute;
  z-index: 1;
  right: var(--gutter);
  left: auto;
  bottom: 16px;
}
.page-hero-plain {
  min-height: 0;
  background:
    radial-gradient(ellipse 70% 90% at 85% 0%, rgba(201, 153, 63, 0.18), transparent 60%),
    var(--charcoal);
}
.page-hero-plain::after {
  display: none;
}

.section {
  padding: clamp(72px, 12vh, 136px) var(--gutter);
  background: var(--ivory);
  color: var(--charcoal);
}
.section.stone {
  background: var(--stone);
}
.section.dark {
  background: var(--ink);
  color: var(--ivory);
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section h2 {
  margin: 0 0 18px;
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.section h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.section p,
.section li {
  color: var(--slate);
}
.section.dark p,
.section.dark li {
  color: rgba(246, 243, 238, 0.78);
}
.section a:not(.btn) {
  color: inherit;
}
.lede {
  max-width: 640px;
  font-size: 1.12rem;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 7vw, 110px);
  align-items: start;
}
.split > :last-child > p:first-child {
  margin-top: 0;
}
@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.card {
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 50px -34px rgba(28, 32, 33, 0.35);
}
.section.stone .card {
  background: var(--ivory);
}
.section.dark .card {
  background: var(--charcoal);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.card p {
  margin: 0;
}
.card-num {
  display: block;
  margin-bottom: 18px;
  color: #9a7124;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.section.dark .card-num {
  color: var(--brass-bright);
}

/* service cards with a photo, used on the homepage */
.service-card {
  display: grid;
  overflow: hidden;
  padding: 0;
  color: inherit;
  text-decoration: none;
  transition: transform 0.35s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
}
.service-card:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}
.service-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.service-card .card-body {
  padding: 24px 26px 28px;
}
.service-card .text-link {
  margin-top: 16px;
  color: #9a7124;
}
.service-card img.crop-roof {
  object-position: 52% 18%;
}
.service-card img.crop-attic {
  object-position: 42% 18%;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding-top: 22px;
  border-top: 1px solid rgba(28, 32, 33, 0.18);
}
.section.dark .steps li {
  border-top-color: rgba(246, 243, 238, 0.18);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  color: #9a7124;
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  line-height: 1;
}
.section.dark .steps li::before {
  color: var(--brass-bright);
}
.steps p {
  margin: 0;
}

.checks {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checks li {
  position: relative;
  padding-left: 30px;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid #9a7124;
  border-bottom: 2px solid #9a7124;
  transform: rotate(-45deg);
}
.section.dark .checks li::before {
  border-color: var(--brass-bright);
}

.compare {
  width: 100%;
  margin-top: 36px;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.compare-wrap {
  overflow-x: auto;
}
.compare th,
.compare td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(28, 32, 33, 0.12);
  text-align: left;
  vertical-align: top;
}
.compare thead th {
  color: var(--charcoal);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.compare tbody th {
  color: var(--charcoal);
  font-weight: 600;
  white-space: nowrap;
}
.compare td {
  color: var(--slate);
}
.fine-print {
  margin-top: 18px;
  font-size: 0.85rem;
}

.faq {
  max-width: 860px;
  margin-top: 32px;
}
.faq details {
  border-bottom: 1px solid rgba(28, 32, 33, 0.14);
}
.faq summary {
  position: relative;
  padding: 22px 44px 22px 0;
  color: var(--charcoal);
  font-weight: 600;
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: #9a7124;
  font-size: 1.6rem;
  font-weight: 400;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq summary:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 4px;
}
.faq details p {
  margin: 0 0 22px;
  max-width: 720px;
}

.callout {
  margin-top: 32px;
  padding: 22px 24px;
  border-left: 3px solid var(--brass);
  border-radius: 0 14px 14px 0;
  background: var(--stone);
}
.section.stone .callout {
  background: var(--ivory);
}
.callout p {
  margin: 0;
  color: var(--charcoal);
}

/* careers */
.roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin-top: 44px;
}
.role {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 24px;
  background: var(--charcoal);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.role h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
}
.role .role-tag {
  margin: 0;
  color: var(--brass-bright) !important;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.role h4 {
  margin: 8px 0 0;
  color: var(--ivory);
  font-size: 0.95rem;
}
.role .btn {
  justify-self: start;
  margin-top: 8px;
}

/* homepage careers band */
.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.band h2 {
  margin-bottom: 10px;
}
.band p {
  margin: 0;
  max-width: 560px;
}

/* ---------- estimate, privacy, terms ---------- */
.policy {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 88px) 24px clamp(64px, 10vh, 120px);
}
body:has(.policy) {
  background: var(--ivory);
  color: var(--charcoal);
}
.policy h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.policy h2 {
  margin: 40px 0 10px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.policy p,
.policy li {
  color: var(--slate);
}
.policy a {
  color: var(--charcoal);
}
.policy-updated {
  font-size: 0.9rem;
}
.policy-callout {
  padding: 18px 20px;
  border-left: 3px solid var(--brass);
  border-radius: 0 12px 12px 0;
  background: var(--stone);
  color: var(--charcoal) !important;
}
.estimate-form {
  display: grid;
  gap: 16px;
  margin-top: 32px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px -30px rgba(28, 32, 33, 0.25);
}
.estimate-form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
}
.estimate-form input:not([type='checkbox']),
.estimate-form select {
  width: 100%;
  padding: 0.85em 1em;
  border: 1px solid #d9d3cb;
  border-radius: 12px;
  background: #fdfcfa;
  font: 400 1rem var(--sans);
  color: var(--charcoal);
}
.estimate-form input:focus,
.estimate-form select:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(201, 153, 63, 0.22);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}
.optional {
  font-weight: 400;
  color: var(--slate);
}
.estimate-form .consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--slate);
}
.consent input {
  margin-top: 3px;
  flex-shrink: 0;
}
.estimate-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.estimate-error {
  margin: 0;
  color: #b42318;
  font-size: 0.92rem;
}
.estimate-form .button {
  width: 100%;
  padding: 1.1em;
  font-size: 1.05rem;
}
.estimate-done {
  margin-top: 32px;
}
.estimate-done h2 {
  margin-top: 0;
}

/* ---------- 404 ---------- */
.section-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 18vh 24px;
}
.section-wrap img {
  width: 168px;
  height: auto;
  margin-bottom: 40px;
}
.section-wrap h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.section-wrap p {
  color: var(--muted);
  margin: 0 0 28px;
}
.section-wrap .button-dark {
  background: var(--brass);
  color: var(--ink);
}

/* ---------- reduced motion: finished states, no scroll effects ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .hero-img,
  .scroll-cue span {
    animation: none;
  }
  .hero-img,
  .hero-copy,
  .frame {
    transform: none;
  }
  .chapter {
    transition: none;
  }
}

/* recent work: real job photos, before and after */
.work-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 36px;
}
.work-shot {
  margin: 0;
}
.work-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  background: var(--charcoal);
}
.work-shot figcaption {
  margin-top: 10px;
  color: var(--slate);
  font-size: 0.9rem;
  line-height: 1.45;
}
.work-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--ivory);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.work-shot.after .work-tag {
  background: var(--brass);
  color: var(--ink);
}
/* Owner-provided homeowner photos. */
.homeowner-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.homeowner-wall img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  background: var(--stone);
}
@media (max-width: 860px) {
  .homeowner-wall {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

.work-link { margin-top: 28px; }
.work-pair + .work-pair { margin-top: 32px; }
