:root {
  --charcoal: #081119;
  --charcoal-deep: #050b11;
  --slate: #132534;
  --slate-soft: #1f3444;
  --slate-mist: #9ca9b5;
  --paper: #f3efe8;
  --paper-warm: #e8e0d3;
  --ink: #111920;
  --muted: #61707c;
  --line: rgba(17, 25, 32, 0.11);
  --line-light: rgba(243, 239, 232, 0.14);
  --tan: #d1b58d;
  --tan-deep: #a98761;
  --shadow-soft: 0 20px 40px rgba(9, 17, 25, 0.12);
  --shadow-dark: 0 24px 56px rgba(0, 0, 0, 0.24);
  --font-heading: "Barlow Condensed", Impact, sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --header-offset: 124px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #071019 0%, #0b1620 100%);
  color: #f7f3ed;
  font-family: var(--font-body);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

p {
  margin: 0;
  line-height: 1.62;
}

h1,
h2,
h3,
summary {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0;
}

h1 {
  max-width: 8ch;
  font-size: 4.6rem;
}

h2 {
  font-size: 3rem;
}

h3,
summary {
  font-size: 1.5rem;
}

.section-frame {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(236, 230, 220, 0.96), rgba(229, 221, 209, 0.9));
  border-bottom: 1px solid rgba(17, 25, 32, 0.08);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px rgba(15, 24, 32, 0.08);
}

.site-header-static {
  position: fixed;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 46px;
  min-height: var(--header-offset);
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.brand {
  padding: 0;
}

.brand-logo {
  width: auto;
  height: 86px;
  opacity: 0.98;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.12));
}

.footer-brand {
  padding: 0;
}

.site-nav {
  justify-self: center;
  display: flex;
  gap: 28px;
  padding: 16px 26px;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(17, 25, 32, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.site-nav a,
.nav-cta,
.button,
.menu-toggle,
.eyebrow,
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0;
}

.site-nav a {
  color: rgba(17, 25, 32, 0.76);
  font-size: 0.76rem;
  font-weight: 600;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.2rem;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.nav-cta-mobile {
  display: none;
}

.trust-mobile-quote {
  display: none;
}

.nav-cta,
.button-primary {
  background: linear-gradient(180deg, #d8bf9a 0%, #c9ac80 100%);
  color: var(--ink);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.12);
}

.button-secondary {
  border-color: rgba(17, 25, 32, 0.14);
  background: rgba(243, 239, 232, 0.96);
  color: var(--ink);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.site-nav a:hover,
.nav-cta:hover,
.button:hover,
.menu-toggle:hover,
.service-card:hover,
.project-feature:hover,
.project-card:hover {
  transform: translateY(-2px);
}

.nav-cta {
  border-color: rgba(17, 25, 32, 0.08);
}

.nav-cta:hover {
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16);
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(17, 25, 32, 0.14);
  background: rgba(255, 255, 255, 0.38);
  color: var(--ink);
  padding: 0.75rem 1rem;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 88vh;
  padding: calc(var(--header-offset) + 34px) 0 124px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(209, 181, 141, 0.08), transparent 28%),
    linear-gradient(135deg, #13202b 0%, #203241 55%, #314758 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 190px;
  background: linear-gradient(180deg, rgba(19, 32, 43, 0) 0%, rgba(19, 32, 43, 0.74) 70%, rgba(19, 32, 43, 0.94) 100%);
  pointer-events: none;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 34, 45, 0.96) 0%, rgba(22, 37, 49, 0.84) 24%, rgba(34, 53, 68, 0.62) 46%, rgba(54, 77, 95, 0.32) 70%, rgba(69, 94, 113, 0.14) 100%),
    radial-gradient(circle at 76% 22%, rgba(255, 255, 255, 0.06), transparent 20%),
    url("./assets/hero-roofer.jpg") right -6px top 52px / auto 98% no-repeat;
  filter: saturate(0.82);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.85fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  padding: 42px 0 112px;
  max-width: 620px;
}

.eyebrow {
  margin-bottom: 0.9rem;
  color: var(--tan);
  font-size: 0.92rem;
  font-weight: 800;
}

.hero-eyebrow {
  margin-bottom: 0.65rem;
  font-size: 1rem;
  transform: translateY(-16px);
}

.eyebrow.dark {
  color: var(--tan-deep);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.05rem;
  color: rgba(247, 243, 237, 0.74);
  font-size: 0.74rem;
  font-weight: 700;
}

.hero-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: rgba(209, 181, 141, 0.85);
}

.hero-summary {
  max-width: 540px;
  margin-top: 1rem;
  color: rgba(247, 243, 237, 0.82);
  font-size: 1.04rem;
}

.hero-call-cta {
  display: inline-flex;
  margin-top: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  width: min(1220px, calc(100vw - 48px));
  margin-top: 1.6rem;
  justify-content: center;
  margin-left: 0;
}

.trust-strip-wrap {
  position: relative;
  z-index: 3;
  margin-top: -76px;
}

.field-work {
  position: relative;
  overflow: hidden;
  padding: 10px 0 204px;
  background: transparent;
  scroll-margin-top: 126px;
}

.field-work .section-frame {
  position: relative;
  z-index: 1;
}

.field-work::before,
.field-work::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 43, 52, 0.28), transparent);
  opacity: 0.65;
}

.field-work::before {
  margin-bottom: 18px;
}

.field-work::after {
  margin-top: 18px;
}

.field-work-heading {
  max-width: 100%;
  margin: 0 auto 14px;
  text-align: center;
}

.field-work-heading h2 {
  color: var(--ink);
  font-size: clamp(1.04rem, 1.35vw, 1.28rem);
  line-height: 1.08;
}

.field-work-carousel-shell {
  position: relative;
  margin-top: 0;
}

.field-work-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 4px;
  scroll-snap-type: none;
  scrollbar-width: none;
  touch-action: pan-y;
  scroll-behavior: auto;
}

.field-work-carousel::-webkit-scrollbar {
  display: none;
}

.field-work-carousel.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.field-work-card {
  position: relative;
  flex: 0 0 clamp(164px, 11vw, 184px);
  height: 150px;
  overflow: hidden;
  border-radius: 14px;
  background: transparent;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  scroll-snap-align: start;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.field-work-card:hover {
  transform: scale(1.015);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
}

.field-work-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) brightness(0.98);
  transition:
    transform 260ms ease,
    filter 260ms ease;
}

.field-work-card:hover img {
  transform: scale(1.04);
  filter: saturate(0.95) brightness(1);
}

.field-work-title {
  display: none;
}

.field-work-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(34, 43, 52, 0.12);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.field-work-card-link:hover {
  transform: scale(1.015);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
}

.field-work-card-link-label {
  font-size: 0.98rem;
}

.field-work-card-link-arrow {
  font-size: 1.05rem;
  line-height: 1;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 10px;
  background: rgba(20, 36, 49, 0.38);
  border: 1px solid rgba(243, 239, 232, 0.12);
  border-radius: 28px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-dark);
}

.trust-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 24px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
}

.trust-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--tan);
}

.trust-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-item h2 {
  margin-bottom: 0.4rem;
  color: #fff;
  font-size: 1.2rem;
}

.trust-item p {
  color: rgba(234, 238, 242, 0.78);
  font-size: 0.9rem;
}

.services {
  position: relative;
  margin-top: -10px;
  padding: 22px 0 88px;
  background:
    radial-gradient(circle at 18% 0%, rgba(169, 135, 97, 0.14), transparent 20%),
    linear-gradient(180deg, #ebe3d7 0%, #e2d7c8 100%);
  color: var(--ink);
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  box-shadow:
    0 -10px 24px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  overflow: hidden;
}

.services::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.services-heading,
.project-heading {
  margin-bottom: 34px;
}

.services-heading-centered {
  text-align: center;
  margin-bottom: 42px;
}

.services-heading-centered h2 {
  margin-bottom: 1rem;
  line-height: 1.04;
}

.services-subheading {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 600;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  display: block;
  position: relative;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 243, 236, 0.96));
  border: 1px solid rgba(17, 25, 32, 0.14);
  box-shadow:
    0 18px 32px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  min-height: 358px;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(216, 191, 154, 0.18), rgba(216, 191, 154, 0.9), rgba(216, 191, 154, 0.18));
}

.service-card img {
  display: block;
  width: 100%;
  height: 166px;
  object-fit: cover;
  filter: saturate(0.84);
}

.service-copy {
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
  padding: 26px 24px 24px;
}

.service-copy span,
.project-meta span {
  color: var(--tan-deep);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.service-copy p {
  color: var(--muted);
  font-size: 0.94rem;
}

.service-more {
  margin-top: auto;
  padding-top: 0.7rem;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.service-card-link:hover .service-more,
.service-card-link:hover .service-copy h3 {
  color: var(--tan-deep);
}

.service-card-link:hover {
  border-color: rgba(169, 135, 97, 0.28);
  box-shadow:
    0 22px 38px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.service-card-link:focus-visible {
  outline: 3px solid rgba(169, 135, 97, 0.48);
  outline-offset: 3px;
}

.services-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  margin-top: 52px;
  margin-inline: auto;
  padding: 18px 28px;
  border: 1px solid rgba(17, 25, 32, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 237, 227, 0.96));
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.36rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(169, 135, 97, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease;
}

.services-link::after {
  content: ">";
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 800;
}

.services-link:hover {
  color: var(--tan-deep);
  transform: translateY(-3px);
  border-color: rgba(169, 135, 97, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(246, 239, 229, 0.98));
  box-shadow:
    0 22px 38px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    inset 0 -1px 0 rgba(169, 135, 97, 0.1);
}

.projects {
  position: relative;
  margin-top: 0;
  padding: 82px 0 118px;
  background:
    linear-gradient(180deg, #e2d7c8 0%, #dacebd 100%);
  overflow: hidden;
}

.projects-panel {
  position: relative;
  overflow: hidden;
  padding: 54px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  background:
    radial-gradient(circle at 18% 12%, rgba(216, 191, 154, 0.08), transparent 22%),
    radial-gradient(circle at 84% 8%, rgba(255, 255, 255, 0.04), transparent 18%),
    linear-gradient(180deg, #152431 0%, #1f3241 58%, #223847 100%);
  box-shadow:
    0 28px 70px rgba(24, 38, 48, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.projects-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background:
    linear-gradient(90deg, rgba(216, 191, 154, 0.06), rgba(216, 191, 154, 0.36), rgba(216, 191, 154, 0.06));
  pointer-events: none;
}

.projects-panel > * {
  position: relative;
  z-index: 1;
}

.project-heading h2,
.project-heading .eyebrow {
  color: #fff;
}

.project-intro {
  max-width: 760px;
  margin: 0.7rem 0 0;
  color: rgba(243, 239, 232, 0.78);
  font-size: 1.02rem;
  line-height: 1.65;
}

.project-group-copy {
  max-width: 760px;
  margin-top: 0.7rem;
  color: rgba(243, 239, 232, 0.74);
  font-size: 1rem;
  line-height: 1.65;
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.82fr);
  gap: 22px;
  align-items: stretch;
}

.project-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.86fr) minmax(0, 0.86fr);
  grid-auto-rows: 224px;
  gap: 18px;
}

.project-tile {
  display: block;
  position: relative;
  overflow: hidden;
  min-height: 224px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-tile:hover,
.project-tile:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(216, 191, 154, 0.32);
  box-shadow:
    0 26px 52px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.project-tile-large {
  grid-row: span 2;
}

.project-tile img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.9);
}

.project-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 17, 25, 0.1), rgba(8, 17, 25, 0.86));
}

.project-feature,
.project-card {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-stack {
  display: grid;
  gap: 22px;
}

.project-card {
  min-height: 228px;
}

.project-feature img,
.project-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
}

.project-feature::after,
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 17, 25, 0.08), rgba(8, 17, 25, 0.86));
}

.project-meta {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
}

.project-meta h3 {
  margin: 0.45rem 0 0.55rem;
  color: #fff;
}

.project-meta p,
.project-meta small {
  display: block;
  color: rgba(243, 239, 232, 0.78);
}

.project-meta small {
  margin-top: 0.35rem;
  font-size: 0.84rem;
}

.projects-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 24px;
}

.project-gallery {
  position: relative;
  padding: 0 0 110px;
  background:
    linear-gradient(180deg, rgba(243, 239, 232, 0.96) 0%, rgba(247, 243, 237, 0.98) 120px, rgba(247, 243, 237, 1) 100%);
}

.project-gallery::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 92px;
  background: linear-gradient(180deg, rgba(209, 181, 141, 0.18) 0%, rgba(243, 239, 232, 0) 100%);
  pointer-events: none;
}

.project-gallery-header {
  overflow: hidden;
  padding: calc(var(--header-offset) + 24px) 0 42px;
  min-height: 430px;
  background:
    radial-gradient(circle at 12% 8%, rgba(209, 181, 141, 0.12), transparent 20%),
    linear-gradient(180deg, #1a2734 0%, #13202a 100%);
  border-bottom: 1px solid rgba(209, 181, 141, 0.18);
}

.project-gallery-header .detail-hero-backdrop {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 17, 23, 0.92) 0%, rgba(16, 26, 34, 0.82) 44%, rgba(209, 181, 141, 0.1) 100%);
}

.project-gallery-header-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
  align-items: center;
  column-gap: 46px;
  align-content: center;
  gap: 20px;
}

.project-gallery-header-copy {
  display: grid;
  gap: 14px;
  max-width: 820px;
  padding: 42px 0 24px;
  border-bottom: 1px solid rgba(209, 181, 141, 0.18);
}

.project-gallery-header-copy .eyebrow {
  color: var(--tan);
}

.project-gallery-header-copy h1 {
  color: #fff;
  font-size: clamp(2.8rem, 4.4vw, 4.9rem);
  line-height: 0.96;
  max-width: 12ch;
}

.project-gallery-header-copy .detail-summary {
  max-width: 720px;
}

.project-gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 2px;
}

.project-gallery-filters a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(243, 239, 232, 0.09);
  color: rgba(243, 239, 232, 0.9);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.project-gallery-filters a:hover,
.project-gallery-filters a:focus-visible,
.project-gallery-filters a.is-active {
  transform: translateY(-2px);
  border-color: rgba(216, 191, 154, 0.35);
  background: rgba(216, 191, 154, 0.12);
  color: #fff;
}

.project-gallery-header-media {
  position: relative;
  overflow: hidden;
  justify-self: end;
  align-self: center;
  margin: 0;
  aspect-ratio: 16 / 10;
  width: min(100%, 500px);
  min-height: 280px;
  border-radius: 22px;
  border: 1px solid rgba(243, 239, 232, 0.1);
  background: rgba(7, 14, 20, 0.76);
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.project-gallery-header-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: saturate(0.84) brightness(0.82) contrast(1.02);
}

.project-gallery-header-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 48%, rgba(7, 14, 20, 0.64) 100%);
  pointer-events: none;
}

.project-gallery-header-media figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
  color: rgba(243, 239, 232, 0.88);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-gallery > .section-frame {
  position: relative;
  z-index: 1;
}

.project-gallery .section-heading h2,
.project-gallery .section-heading .eyebrow {
  color: var(--ink);
}

.project-gallery .project-group-copy {
  color: #57636d;
}

.project-gallery-group {
  padding: 36px 0 12px;
  scroll-margin-top: calc(var(--header-offset) + 18px);
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.project-gallery-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
}

.project-gallery-card-wide {
  grid-column: span 2;
  min-height: 430px;
}

.project-gallery-card:hover,
.project-gallery-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(216, 191, 154, 0.32);
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.project-gallery-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.88);
}

.project-gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 17, 25, 0.12), rgba(8, 17, 25, 0.86));
}

.project-gallery-meta {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
}

.project-gallery-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 10px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(216, 191, 154, 0.16);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-gallery-meta h3 {
  margin: 0;
  color: #fff;
}

.project-gallery-meta p {
  margin: 0.45rem 0 0;
  color: rgba(243, 239, 232, 0.78);
  line-height: 1.55;
}

body.modal-open {
  overflow: hidden;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 11, 17, 0.88);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.gallery-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
}

.gallery-modal-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 12px));
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 92px;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  align-items: center;
}

.gallery-modal-stage {
  grid-column: 2;
  grid-row: 1 / span 3;
  margin: 0;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(24, 35, 44, 0.96), rgba(13, 22, 30, 0.98)),
    rgba(9, 16, 23, 0.94);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.gallery-modal-image {
  display: block;
  width: 100%;
  max-height: min(78vh, 840px);
  object-fit: contain;
  border-radius: 20px;
  background: #091017;
}

.gallery-modal-caption {
  display: grid;
  gap: 0.45rem;
  margin-top: 16px;
}

.gallery-modal-kicker {
  color: var(--tan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-modal-caption h3 {
  color: #fff;
}

.gallery-modal-desc {
  color: rgba(243, 239, 232, 0.76);
}

.gallery-modal-counter {
  margin-top: 0.4rem;
  color: rgba(243, 239, 232, 0.62);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-modal-nav,
.gallery-modal-close {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.gallery-modal-nav:hover,
.gallery-modal-nav:focus-visible,
.gallery-modal-close:hover,
.gallery-modal-close:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(216, 191, 154, 0.35);
  background: rgba(255, 255, 255, 0.09);
}

.gallery-modal-prev {
  grid-column: 1;
  grid-row: 2;
  justify-self: end;
  padding: 18px 16px;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  line-height: 1;
}

.gallery-modal-next {
  grid-column: 3;
  grid-row: 2;
  justify-self: start;
  padding: 18px 16px;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  line-height: 1;
}

.gallery-modal-close {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about {
  position: relative;
  margin-top: 0;
  padding: 110px 0 96px;
  background:
    radial-gradient(circle at 82% 18%, rgba(209, 181, 141, 0.08), transparent 18%),
    linear-gradient(180deg, #3b5568 0%, #29404f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.about::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 84px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 48%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.about::after {
  content: "";
  display: none;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}

.about-profile {
  display: grid;
  gap: 1px;
  transform: translateY(-18px);
}

.about-photo {
  position: relative;
  margin: 0;
  min-height: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
}

.about-photo::before {
  content: "";
  position: absolute;
  inset: auto 14% 6% 14%;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0) 72%);
  filter: blur(14px);
}

.about-photo img {
  position: relative;
  z-index: 1;
  width: min(100%, 410px);
  min-height: 0;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.24));
}

.about-meta {
  position: relative;
  overflow: hidden;
  width: min(100%, 460px);
  margin-top: 0;
  padding: 36px 38px 28px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(16, 35, 52, 0.98), rgba(11, 24, 38, 0.94));
  border: 1px solid rgba(214, 184, 132, 0.14);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.2),
    0 10px 22px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.about-meta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(214, 184, 132, 0.2),
    rgba(216, 191, 154, 0.95),
    rgba(214, 184, 132, 0.16)
  );
}

.about-meta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.08), transparent 26%),
    radial-gradient(circle at 88% 12%, rgba(216, 191, 154, 0.05), transparent 24%);
  pointer-events: none;
}

.about-name {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1;
}

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.about-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(214, 184, 132, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(247, 243, 237, 0.84);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-sidecopy {
  margin-top: 1.15rem;
  color: rgba(243, 239, 232, 0.74);
  font-size: 0.98rem;
}

.about-proofline {
  margin-top: 1.1rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(214, 184, 132, 0.14);
  color: rgba(243, 239, 232, 0.62);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-content h2,
.about-content .eyebrow {
  color: #fff;
}

.about-section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
  color: var(--tan) !important;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 120px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d8bf9a, rgba(216, 191, 154, 0.12));
}

.about-statement {
  display: grid;
  gap: 2px;
  margin-top: 1.15rem;
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.about-statement span {
  display: block;
}

.about-body {
  max-width: 58ch;
  margin-top: 1.25rem;
  color: rgba(243, 239, 232, 0.8);
}

.about-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
  margin-top: 2rem;
}

.about-points div {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.about-points div:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 184, 132, 0.35);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.045);
}

.about-point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: rgba(214, 184, 132, 0.08);
  border: 1px solid rgba(214, 184, 132, 0.16);
  color: var(--tan);
}

.about-point-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-points div > span:not(.about-point-icon) {
  display: block;
  margin-bottom: 0.45rem;
  color: #fff;
  font-weight: 800;
}

.about-points p {
  color: rgba(243, 239, 232, 0.7);
  font-size: 0.92rem;
}

.faq-contact {
  position: relative;
  margin-top: -22px;
  padding: 112px 0 88px;
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
  color: var(--ink);
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  box-shadow:
    0 -10px 24px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.faq-contact::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.faq-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.56fr);
  gap: 44px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 22px 22px 20px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(17, 25, 32, 0.08);
  box-shadow: var(--shadow-soft);
}

.faq-list summary {
  position: relative;
  padding-right: 34px;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 0;
  right: 0;
  color: var(--tan-deep);
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin-top: 0.78rem;
  color: var(--muted);
}

.contact-panel {
  position: relative;
  overflow: hidden;
  padding: 54px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(14, 25, 38, 0.98), rgba(8, 18, 28, 0.92));
  backdrop-filter: blur(10px);
  color: #fff;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(201, 172, 128, 0.28), #d8bf9a, rgba(201, 172, 128, 0.22));
  box-shadow: 0 0 18px rgba(216, 191, 154, 0.28);
}

.contact-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 86% 14%, rgba(216, 191, 154, 0.1), transparent 24%),
    radial-gradient(circle at 84% 16%, rgba(255, 255, 255, 0.03), transparent 10%);
  background-size:
    22px 22px,
    22px 22px,
    auto,
    auto;
  opacity: 0.12;
  pointer-events: none;
}

.contact-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.contact-panel > * {
  position: relative;
  z-index: 1;
}

.contact-panel h2 {
  font-size: 2.7rem;
}

.contact-panel p:not(.eyebrow) {
  margin-top: 0.85rem;
  color: rgba(243, 239, 232, 0.76);
}

.contact-list {
  display: grid;
  gap: 18px;
  margin: 2.1rem 0 2.3rem;
}

.contact-list span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--tan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-list > div {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-list strong {
  display: block;
  line-height: 1.45;
}

.full-width {
  width: 100%;
}

.contact-panel .button-primary {
  min-height: 54px;
  border-radius: 13px;
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #dcc49f 0%, #c8aa7b 100%);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.contact-panel .button-primary:hover,
.contact-panel .button-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.site-footer {
  background: #31495a;
  border-top: 1px solid rgba(243, 239, 232, 0.08);
}

.footer-inner-projects {
  display: flex;
  justify-content: center;
  padding: 28px 0 32px;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.footer-actions-wrap {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.footer-button {
  min-width: 220px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 320px 1fr 1fr 1fr 1fr;
  gap: 28px;
  align-items: start;
  padding: 40px 0 44px;
  color: rgba(247, 243, 237, 0.72);
}

.footer-brand .brand-logo {
  height: 94px;
}

.footer-section {
  display: grid;
  gap: 8px;
}

.footer-section p {
  margin: 0;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.footer-list li {
  margin: 0;
}

.footer-list-check li::before {
  content: "✓ ";
  color: #d8bf9a;
  font-weight: 700;
}

.footer-title {
  color: #f7f3ed;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-section a {
  color: inherit;
  text-decoration: none;
}

.footer-section a:hover,
.footer-section a:focus-visible {
  color: #f7f3ed;
}

.footer-estimate-btn {
  margin-top: 10px;
  width: fit-content;
  color: var(--ink) !important;
}

.footer-section a.footer-estimate-btn:hover,
.footer-section a.footer-estimate-btn:focus-visible {
  color: var(--ink) !important;
}

.footer-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(216, 191, 154, 0.34);
  background: linear-gradient(180deg, rgba(247, 243, 237, 0.08), rgba(247, 243, 237, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.footer-trust-badge-centered {
  margin-top: 2px;
}

.footer-trust-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  border-radius: 999px;
  background: rgba(169, 135, 97, 0.2);
  border: 1px solid rgba(216, 191, 154, 0.45);
  color: #f3ddbc;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer-trust-copy {
  color: rgba(247, 243, 237, 0.86);
  font-size: 0.86rem;
  line-height: 1.3;
}

.detail-page {
  background: linear-gradient(180deg, #13202b 0%, #213442 100%);
}

.detail-page.projects-page {
  background:
    linear-gradient(180deg, #071019 0%, #0e1822 420px, #f3efe7 420px, #f7f3ed 100%);
}

.detail-page.projects-page.curated-gallery-page {
  background:
    radial-gradient(circle at top left, rgba(209, 181, 141, 0.12), transparent 26%),
    linear-gradient(180deg, #08121b 0%, #0d1721 28%, #101b27 100%);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-offset) + 28px) 0 72px;
  background:
    radial-gradient(circle at 18% 18%, rgba(209, 181, 141, 0.12), transparent 22%),
    linear-gradient(135deg, #172631 0%, #294050 58%, #385263 100%);
}

.detail-hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 38, 49, 0.92) 0%, rgba(31, 49, 62, 0.72) 38%, rgba(52, 74, 90, 0.3) 72%, rgba(62, 86, 103, 0.14) 100%),
    url("./assets/tporoof.png") center center / cover no-repeat;
  filter: saturate(0.78);
}

.detail-page.repair-page .detail-hero-backdrop {
  background:
    linear-gradient(90deg, rgba(18, 28, 37, 0.94) 0%, rgba(25, 36, 46, 0.76) 42%, rgba(44, 60, 73, 0.34) 76%, rgba(58, 77, 92, 0.16) 100%),
    url("./repair.png") center center / cover no-repeat;
}

.detail-page.maintenance-page .detail-hero-backdrop {
  background:
    linear-gradient(90deg, rgba(18, 28, 37, 0.94) 0%, rgba(26, 38, 49, 0.76) 42%, rgba(45, 61, 75, 0.34) 76%, rgba(59, 78, 94, 0.16) 100%),
    url("./assets/maintenance.png") center center / cover no-repeat;
}

.detail-page.epdm-page .detail-hero-backdrop {
  background:
    linear-gradient(90deg, rgba(18, 28, 37, 0.94) 0%, rgba(26, 38, 49, 0.75) 42%, rgba(45, 61, 75, 0.34) 76%, rgba(59, 78, 94, 0.16) 100%),
    url("./epdm.png") center center / cover no-repeat;
}

.detail-page.pvc-page .detail-hero-backdrop {
  background:
    linear-gradient(90deg, rgba(18, 28, 37, 0.94) 0%, rgba(26, 38, 49, 0.75) 42%, rgba(45, 61, 75, 0.34) 76%, rgba(59, 78, 94, 0.16) 100%),
    url("./pvc.png") center center / cover no-repeat;
}

.detail-page.residential-page .detail-hero-backdrop {
  background:
    linear-gradient(90deg, rgba(18, 28, 37, 0.93) 0%, rgba(26, 38, 49, 0.77) 42%, rgba(45, 61, 75, 0.34) 76%, rgba(59, 78, 94, 0.18) 100%),
    url("./flatroof.png") center center / cover no-repeat;
  filter: saturate(0.7) brightness(0.84);
}

.detail-page.modified-bitumen-page .detail-hero-backdrop {
  background:
    linear-gradient(90deg, rgba(18, 28, 37, 0.93) 0%, rgba(26, 38, 49, 0.77) 42%, rgba(45, 61, 75, 0.34) 76%, rgba(59, 78, 94, 0.18) 100%),
    url("./mbit.png") center center / cover no-repeat;
  filter: saturate(0.72) brightness(0.82);
}

.detail-page.projects-page .detail-hero-backdrop {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(18, 30, 40, 0.9) 0%, rgba(18, 30, 40, 0.76) 44%, rgba(18, 30, 40, 0.98) 100%);
}

.detail-page.replacement-page .detail-hero-backdrop {
  background:
    linear-gradient(90deg, rgba(18, 28, 37, 0.94) 0%, rgba(26, 38, 49, 0.74) 42%, rgba(45, 61, 75, 0.34) 76%, rgba(59, 78, 94, 0.16) 100%),
    url("./roofreplace.png") center center / cover no-repeat;
}

.services-grid.residential-services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-card-grid.residential-concern-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-card-grid.residential-systems-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-page.replacement-page .detail-hero-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.residential-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-offset) + 26px) 0 86px;
  background:
    radial-gradient(circle at 18% 18%, rgba(209, 181, 141, 0.12), transparent 22%),
    linear-gradient(135deg, #172631 0%, #274050 58%, #344f61 100%);
  color: #fff;
}

.residential-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 34px;
  align-items: stretch;
}

.residential-hero-copy {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 34px 0 18px;
  max-width: 640px;
}

.residential-hero .eyebrow,
.residential-hero h1 {
  color: #fff;
}

.residential-hero h1 {
  max-width: 10ch;
}

.residential-hero-media {
  position: relative;
  margin: 0;
  min-height: 520px;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(243, 239, 232, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(9, 16, 22, 0.18)),
    linear-gradient(145deg, rgba(14, 25, 38, 0.96), rgba(8, 18, 28, 0.9));
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.residential-hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 16, 22, 0.36) 0%, rgba(9, 16, 22, 0.16) 30%, transparent 64%),
    linear-gradient(180deg, rgba(9, 16, 22, 0.08) 0%, transparent 44%, rgba(9, 16, 22, 0.22) 100%);
  pointer-events: none;
}

.residential-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) brightness(0.8) contrast(0.96);
}

.residential-concerns {
  padding: 84px 0;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
  color: var(--ink);
}

.residential-concern-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.residential-concern-card {
  padding: 22px 22px 20px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 241, 232, 0.96));
  border: 1px solid rgba(17, 25, 32, 0.1);
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.residential-concern-card h3 {
  margin-top: 0.2rem;
  font-size: 1.06rem;
}

.residential-concern-card p {
  margin-top: 0.62rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.residential-split {
  padding: 84px 0;
  background:
    radial-gradient(circle at 78% 14%, rgba(209, 181, 141, 0.08), transparent 18%),
    linear-gradient(180deg, #2a3d4d 0%, #375060 100%);
  color: #fff;
}

.residential-split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: center;
}

.residential-split-media {
  margin: 0;
  min-height: 420px;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(243, 239, 232, 0.08);
  box-shadow:
    0 22px 46px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.residential-split-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.residential-split-copy {
  display: grid;
  gap: 16px;
  max-width: 560px;
}

.residential-split-copy h2,
.residential-split-copy .eyebrow {
  color: #fff;
}

.residential-split-copy p {
  color: rgba(243, 239, 232, 0.8);
}

.residential-service-list {
  display: grid;
  gap: 10px;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.residential-service-list li {
  position: relative;
  padding-left: 18px;
  color: rgba(243, 239, 232, 0.84);
  font-weight: 700;
}

.residential-service-list li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tan);
}

.residential-systems {
  padding: 84px 0;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
  color: var(--ink);
}

.residential-system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.residential-system-card {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 243, 236, 0.98));
  border: 1px solid rgba(17, 25, 32, 0.1);
  color: inherit;
  text-decoration: none;
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.residential-system-card:hover {
  transform: translateY(-3px);
  border-color: rgba(169, 135, 97, 0.28);
  box-shadow:
    0 20px 36px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.82),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.residential-system-card:focus-visible {
  outline: 3px solid rgba(169, 135, 97, 0.48);
  outline-offset: 3px;
}

.residential-system-image {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: cover;
}

.residential-system-image--epdm {
  object-position: center center;
}

.residential-system-image--modified {
  object-position: center top;
}

.residential-system-image--tpo {
  object-position: center center;
}

.residential-system-copy {
  display: grid;
  gap: 0.5rem;
  padding: 20px 20px 22px;
}

.residential-system-copy span {
  color: var(--tan-deep);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.residential-system-copy p {
  color: var(--muted);
  font-size: 0.94rem;
}

.residential-faq {
  padding: 78px 0;
  background: linear-gradient(180deg, #eef0ec 0%, #e8e2d7 100%);
  color: var(--ink);
}

.residential-faq-list {
  max-width: 840px;
  margin-inline: auto;
}

.residential-cta {
  position: relative;
  padding: 78px 0 90px;
  background:
    radial-gradient(circle at 18% 0%, rgba(169, 135, 97, 0.12), transparent 18%),
    linear-gradient(180deg, #101b25 0%, #172634 100%);
  color: #fff;
}

.residential-cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.residential-cta .eyebrow,
.residential-cta h2,
.residential-cta p {
  color: #fff;
}

.residential-cta p {
  color: rgba(243, 239, 232, 0.8);
}

.residential-cta .detail-actions .button-secondary {
  background: rgba(255, 255, 255, 0.96);
}

.detail-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.56fr);
  gap: 34px;
  align-items: end;
}

.detail-hero-copy {
  max-width: 700px;
  padding: 56px 0 24px;
}

.detail-summary {
  max-width: 620px;
  margin-top: 1rem;
  color: rgba(243, 239, 232, 0.82);
  font-size: 1.08rem;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.7rem;
}

.detail-intro-panel,
.detail-compare-card,
.detail-maintenance-panel,
.detail-cta-panel {
  border: 1px solid rgba(243, 239, 232, 0.1);
  box-shadow: var(--shadow-dark);
}

.detail-intro-panel {
  padding: 28px;
  border-radius: 30px;
  background: rgba(49, 71, 86, 0.46);
  backdrop-filter: blur(18px);
}

.detail-panel-label {
  color: var(--tan);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  color: rgba(243, 239, 232, 0.84);
}

.detail-list li {
  position: relative;
  padding-left: 18px;
}

.detail-list li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tan);
}

.detail-overview,
.detail-faq {
  padding: 82px 0;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
  color: var(--ink);
}

.detail-overview-grid,
.detail-system-layout,
.detail-maintenance-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 42px;
  align-items: start;
}

.detail-copy-block,
.detail-system-copy {
  display: grid;
  gap: 18px;
  color: var(--muted);
}

.detail-benefits {
  padding: 84px 0;
  background:
    radial-gradient(circle at 78% 14%, rgba(209, 181, 141, 0.08), transparent 18%),
    linear-gradient(180deg, #2a3d4d 0%, #375060 100%);
}

.detail-heading-centered {
  text-align: center;
  margin-bottom: 38px;
}

.detail-benefits h2,
.detail-benefits .eyebrow {
  color: #fff;
}

.detail-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.detail-card {
  padding: 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(243, 239, 232, 0.08);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
}

.detail-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: rgba(214, 184, 132, 0.08);
  border: 1px solid rgba(214, 184, 132, 0.16);
  color: var(--tan);
}

.detail-card-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-card span {
  color: var(--tan);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-card h3 {
  margin-top: 0.7rem;
  color: #fff;
}

.detail-card p {
  margin-top: 0.8rem;
  color: rgba(243, 239, 232, 0.74);
}

.detail-card .button {
  width: fit-content;
  margin-top: 1rem;
}

.detail-system-band {
  padding: 84px 0;
  background: linear-gradient(180deg, #eef0ec 0%, #e3ddd2 100%);
  color: var(--ink);
}

.detail-compare-card {
  padding: 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.detail-compare-card h3 {
  font-size: 1.8rem;
}

.detail-compare-rows {
  display: grid;
  gap: 18px;
  margin-top: 1.1rem;
}

.detail-compare-rows div {
  padding-top: 14px;
  border-top: 1px solid rgba(17, 25, 32, 0.08);
}

.detail-compare-rows strong {
  display: block;
  margin-bottom: 0.35rem;
}

.detail-maintenance {
  padding: 86px 0;
  background:
    radial-gradient(circle at 16% 0%, rgba(169, 135, 97, 0.12), transparent 18%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
  color: var(--ink);
}

.detail-maintenance-panel {
  padding: 32px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-soft);
}

.detail-maintenance-panel p {
  color: var(--muted);
}

.detail-checklist {
  display: grid;
  gap: 16px;
  margin-top: 1.6rem;
}

.detail-checklist div {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(243, 239, 232, 0.8);
  border: 1px solid rgba(17, 25, 32, 0.06);
  color: var(--ink);
  font-weight: 600;
}

.detail-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.detail-process-step {
  position: relative;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(243, 239, 232, 0.08);
  box-shadow: var(--shadow-dark);
}

.detail-page.replacement-page .detail-process-step {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(17, 25, 32, 0.08);
  box-shadow: var(--shadow-soft);
}

.detail-process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -9px;
  width: 18px;
  height: 1px;
  background: rgba(214, 184, 132, 0.28);
}

.detail-process-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  margin-bottom: 1rem;
  background: rgba(214, 184, 132, 0.12);
  border: 1px solid rgba(214, 184, 132, 0.2);
  color: var(--tan);
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.detail-process-step h3 {
  color: #fff;
}

.detail-page.replacement-page .detail-process-step h3 {
  color: var(--ink);
}

.detail-process-step p {
  margin-top: 0.65rem;
  color: rgba(243, 239, 232, 0.76);
}

.detail-page.replacement-page .detail-process-step p {
  color: var(--muted);
}

.detail-page.replacement-page .detail-process-step:not(:last-child)::after {
  background: rgba(17, 25, 32, 0.12);
}

.detail-faq .section-heading {
  text-align: center;
}

.detail-cta {
  position: relative;
  margin-top: -34px;
  padding: 24px 0 84px;
  background: linear-gradient(180deg, var(--paper-warm) 0%, var(--paper-warm) 100%);
  color: var(--ink);
  overflow: hidden;
}

.detail-cta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(216, 191, 154, 0.05), rgba(216, 191, 154, 0.24), rgba(216, 191, 154, 0.05));
  pointer-events: none;
}

.detail-cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 34px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(42, 61, 74, 0.96), rgba(31, 47, 59, 1)),
    var(--charcoal);
  color: #fff;
  box-shadow:
    0 24px 60px rgba(17, 25, 32, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-22px);
}

.detail-cta-panel p:not(.eyebrow) {
  margin-top: 0.85rem;
  color: rgba(243, 239, 232, 0.78);
}

.detail-related-links {
  padding: 8px 0 50px;
  background: linear-gradient(180deg, var(--paper-warm) 0%, #f4f0e9 100%);
  color: var(--ink);
}

.detail-related-links-panel h2 {
  margin: 8px 0 10px;
}

.detail-related-links-panel p {
  margin: 0;
  color: #35506a;
  max-width: 760px;
}

.detail-related-links-grid {
  margin-top: 22px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.detail-related-links-grid a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  color: #0a2033;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(10, 32, 51, 0.12);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.detail-related-links-grid a:hover {
  transform: translateY(-1px);
  border-color: rgba(210, 174, 121, 0.8);
  background: #ffffff;
}

#services,
#projects,
#about,
#faq,
#contact,
#tpo-maintenance {
  scroll-margin-top: calc(var(--header-offset) + 18px);
}

@media (max-width: 1100px) {
  h1 {
    font-size: 3.8rem;
  }

  h2 {
    font-size: 2.55rem;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "brand spacer cta"
      "nav nav nav";
    gap: 26px;
    min-height: 96px;
  }

  .brand {
    grid-area: brand;
  }

  .site-nav {
    grid-area: nav;
    justify-self: start;
  }

  .nav-cta-desktop {
    grid-area: cta;
    justify-self: end;
    align-self: center;
  }

  .hero-grid,
  .project-layout,
  .faq-contact-grid,
  .about-layout,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }

  .about-layout {
    gap: 36px;
  }

  .projects-panel {
    padding: 42px;
  }

  .project-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 220px;
  }

  .project-gallery-header-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-gallery-header-copy {
    padding-bottom: 0;
  }

  .project-gallery-header-media {
    width: min(100%, 760px);
    min-height: 300px;
  }

  .project-hero-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-hero-copy {
    padding: 44px 0 0;
  }

  .project-hero-collage {
    min-height: 420px;
  }

  .project-tile-large {
    grid-column: span 2;
    grid-row: span 2;
  }

  .detail-hero-layout,
  .detail-overview-grid,
  .detail-system-layout,
  .detail-maintenance-grid,
  .detail-cta-panel {
    grid-template-columns: 1fr;
  }

  .residential-hero-layout,
  .residential-split-layout,
  .residential-cta-panel {
    grid-template-columns: 1fr;
  }

  .residential-concern-grid,
  .residential-system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --header-offset: 88px;
  }

  .section-frame {
    width: calc(100% - 28px);
    max-width: 1220px;
  }

  .header-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav";
    gap: 8px 12px;
    min-height: auto;
    padding-top: 10px;
    padding-right: 86px;
    padding-bottom: 14px;
  }

  .brand {
    grid-area: brand;
  }

  .brand-logo {
    height: 54px;
    margin-inline: 0;
  }

  .menu-toggle {
    position: fixed;
    top: 16px;
    right: 14px;
    z-index: 60;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 72px;
    min-height: 44px;
    border-radius: 10px;
    background: linear-gradient(180deg, #d8bf9a 0%, #c9ac80 100%);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
    justify-self: end;
    align-self: center;
  }

  .site-nav {
    grid-area: nav;
    min-width: 0;
    width: 100%;
    display: none !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px;
    padding: 10px 0 0;
    background: none;
    border: 0;
    border-top: 1px solid rgba(17, 25, 32, 0.08);
    border-radius: 0;
    backdrop-filter: none;
  }

  .site-nav.is-open {
    display: grid !important;
  }

  .nav-cta-desktop {
    display: none !important;
  }

  .nav-cta-mobile {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-offset) + 20px) 0 54px;
  }

  .hero-backdrop {
    background:
      linear-gradient(90deg, rgba(20, 34, 45, 0.9) 0%, rgba(22, 37, 49, 0.78) 34%, rgba(34, 53, 68, 0.3) 70%, rgba(54, 77, 95, 0.08) 100%),
      radial-gradient(circle at 76% 22%, rgba(255, 255, 255, 0.05), transparent 20%),
      url("./assets/hero-roofer.jpg") right 0 top 92px / auto 70% no-repeat;
  }

  .detail-hero {
    padding: calc(var(--header-offset) + 8px) 0 48px;
  }

  .residential-hero {
    padding: calc(var(--header-offset) + 8px) 0 68px;
  }

  .hero-grid,
  .trust-strip,
  .services-grid,
  .project-layout,
  .project-stack,
  .about-layout,
  .about-points,
  .faq-contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-trust-badge {
    border-radius: 14px;
  }

  .hero-grid,
  .trust-strip-wrap {
    width: calc(100vw - 28px);
    max-width: 1220px;
  }

  .detail-card-grid,
  .detail-overview-grid,
  .detail-system-layout,
  .detail-maintenance-grid,
  .detail-cta-panel,
  .detail-process-grid {
    grid-template-columns: 1fr;
  }

  .residential-hero-layout,
  .residential-split-layout,
  .residential-cta-panel,
  .residential-concern-grid,
  .residential-system-grid {
    grid-template-columns: 1fr;
  }

  .residential-hero-media,
  .residential-split-media {
    min-height: 280px;
  }

  .residential-concern-card,
  .residential-system-card {
    padding: 18px;
  }

  .residential-system-image {
    height: 122px;
  }

  .hero-copy {
    padding: 0;
    max-width: 28rem;
  }

  .hero-actions {
    width: 100%;
    margin-left: 0;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(2.45rem, 10vw, 2.95rem);
  }

  h2 {
    font-size: 2.15rem;
  }

  .hero-summary {
    max-width: min(100%, 24rem);
    font-size: 0.98rem;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .residential-hero-copy {
    padding: 0;
  }

  .residential-hero h1 {
    max-width: 10ch;
    font-size: 2.8rem;
  }

  .residential-hero-media {
    min-height: 300px;
  }

  .residential-split-media {
    min-height: 260px;
  }

  .residential-split-copy {
    gap: 14px;
  }

  .residential-service-list {
    gap: 8px;
  }

  .services-heading-centered {
    margin-bottom: 30px;
  }

  .services-heading-centered h2 {
    margin-bottom: 0.72rem;
  }

  .services-subheading {
    margin-top: 0.6rem;
    font-size: 0.96rem;
  }

  .trust-strip-wrap {
    position: relative;
    z-index: 4;
    clear: both;
    margin-top: 26px;
    padding-top: 0;
    padding-bottom: 34px;
  }

  .site-nav a {
    justify-content: center;
    min-width: 0;
    padding: 10px 8px;
    background: rgba(255, 255, 255, 0.34);
    border: 1px solid rgba(17, 25, 32, 0.08);
    border-radius: 999px;
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .trust-strip {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
    border-radius: 22px;
  }

  .trust-item {
    grid-template-columns: 32px 1fr;
    gap: 10px;
    min-width: 0;
    padding: 13px 12px;
    border-radius: 16px;
  }

  .trust-item div {
    min-width: 0;
  }

  .trust-icon {
    width: 28px;
    height: 28px;
  }

  .trust-icon svg {
    width: 24px;
    height: 24px;
  }

  .trust-item h2 {
    font-size: 0.95rem;
  }

  .trust-item p {
    font-size: 0.78rem;
    line-height: 1.46;
  }

  .services {
    margin-top: 0;
    padding: 62px 0 56px;
  }

  .services-grid {
    gap: 14px;
  }

  .service-card {
    border-radius: 18px;
  }

  .service-card img {
    height: 152px;
  }

  .service-copy {
    padding: 20px 18px 18px;
    gap: 0.45rem;
  }

  .service-copy p {
    font-size: 0.9rem;
  }

  .services-link {
    width: 100%;
    margin-top: 28px;
    padding: 16px 18px;
    border-radius: 14px;
    font-size: 1.12rem;
  }

  .projects {
    padding: 54px 0 66px;
  }

  .projects-panel {
    padding: 20px;
    border-radius: 22px;
  }

  .project-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 14px;
  }

  .project-gallery-header {
    min-height: auto;
    padding: calc(var(--header-offset) + 12px) 0 34px;
  }

  .project-gallery-header-copy {
    padding: 26px 0 0;
  }

  .project-gallery-header-copy h1 {
    font-size: 3rem;
  }

  .project-gallery-filters {
    gap: 8px;
  }

  .project-gallery-filters a {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
  }

  .project-gallery-header-media {
    width: 100%;
    min-height: 240px;
    border-radius: 18px;
  }

  .project-hero-copy {
    padding: 32px 0 0;
    gap: 12px;
  }

  .project-hero-chips {
    gap: 8px;
  }

  .project-hero-chips a {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
  }

  .project-hero-collage {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 12px;
    min-height: auto;
  }

  .project-hero-card,
  .project-hero-card-large {
    grid-column: auto;
    grid-row: auto;
    min-height: 220px;
    border-radius: 18px;
  }

  .project-hero-card-large {
    min-height: 280px;
  }

  .project-hero-meta {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .project-tile,
  .project-tile-large {
    grid-column: auto;
    grid-row: auto;
    min-height: 238px;
    border-radius: 18px;
  }

  .project-layout {
    gap: 14px;
  }

  .project-feature,
  .project-card {
    border-radius: 18px;
  }

  .project-feature {
    min-height: 300px;
  }

  .project-card {
    min-height: 220px;
  }

  .project-meta {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .project-meta h3 {
    margin: 0.4rem 0 0.45rem;
    font-size: 1.42rem;
  }

  .project-meta p,
  .project-meta small {
    font-size: 0.8rem;
  }

  .project-intro {
    font-size: 0.94rem;
  }

  .project-gallery {
    padding: 0 0 88px;
  }

  .project-gallery-group {
    padding: 28px 0 6px;
  }

  .project-gallery-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-gallery-card {
    min-height: 260px;
    border-radius: 18px;
  }

  .project-gallery-card-wide {
    grid-column: auto;
    min-height: 280px;
  }

  .project-gallery-meta {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .project-gallery-meta p {
    font-size: 0.88rem;
  }

  .projects-actions {
    justify-content: stretch;
  }

  .projects-actions .button {
    width: 100%;
    flex: 1 1 100%;
    justify-content: center;
  }

  .about {
    padding: 72px 0 72px;
  }

  .about-layout {
    gap: 24px;
  }

  .about-profile {
    transform: none;
    gap: 0;
  }

  .about-photo img {
    width: min(100%, 300px);
  }

  .about-section-title {
    font-size: 24px;
    padding-bottom: 10px;
  }

  .about-section-title::after {
    width: 92px;
    height: 2px;
  }

  .about-statement {
    margin-top: 0.9rem;
    font-size: clamp(36px, 11vw, 52px);
  }

  .about-body {
    margin-top: 0.95rem;
    font-size: 0.96rem;
  }

  .about-meta {
    padding: 22px;
  }

  .about-name {
    font-size: 1.7rem;
  }

  .about-pills {
    gap: 8px;
    margin-top: 0.85rem;
  }

  .about-pill {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.72rem;
  }

  .about-proofline {
    margin-top: 0.9rem;
    padding-top: 0.8rem;
    font-size: 0.72rem;
  }

  .about-points {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 1.45rem;
  }

  .about-points div {
    padding: 18px;
    border-radius: 16px;
  }

  .faq-contact {
    padding: 72px 0 72px;
  }

  .faq-contact-grid {
    gap: 22px;
  }

  .faq-list details {
    padding: 18px;
  }

  .faq-list summary {
    padding-right: 28px;
  }

  .faq-list p {
    margin-top: 0.65rem;
    font-size: 0.94rem;
  }

  .contact-panel {
    padding: 22px;
    border-radius: 20px;
  }

  .contact-panel h2 {
    font-size: 2.1rem;
  }

  .contact-list {
    gap: 14px;
    margin: 1.5rem 0 1.8rem;
  }

  .contact-list > div {
    padding-bottom: 12px;
  }

  .contact-panel .button-primary {
    min-height: 50px;
    font-size: 0.84rem;
  }

  .button {
    width: 100%;
  }

  .detail-actions {
    width: 100%;
  }

  .detail-intro-panel,
  .detail-compare-card,
  .detail-maintenance-panel,
  .detail-cta-panel {
    padding: 24px;
  }

  .detail-process-step:not(:last-child)::after {
    display: none;
  }

  .trust-strip-wrap {
    margin-top: 28px;
    padding-top: 0;
    padding-bottom: 34px;
  }
}

@media (max-width: 480px) {
  :root {
    --header-offset: 88px;
  }

  .menu-toggle {
    min-height: 42px;
    padding: 0.65rem 0.9rem;
    font-size: 0.78rem;
  }

  .trust-strip {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .trust-item {
    grid-template-columns: 34px 1fr;
    padding: 14px 13px;
  }

  .trust-icon {
    width: 30px;
    height: 30px;
  }

  .trust-icon svg {
    width: 26px;
    height: 26px;
  }

  .trust-item h2 {
    font-size: 0.96rem;
  }

  .trust-item p {
    font-size: 0.78rem;
  }

  .hero {
    padding: calc(var(--header-offset) + 18px) 0 46px;
  }

  .hero-backdrop {
    background:
      linear-gradient(90deg, rgba(20, 34, 45, 0.9) 0%, rgba(22, 37, 49, 0.78) 34%, rgba(34, 53, 68, 0.28) 70%, rgba(54, 77, 95, 0.08) 100%),
      radial-gradient(circle at 76% 22%, rgba(255, 255, 255, 0.04), transparent 18%),
      url("./assets/hero-roofer.jpg") right 0 top 112px / auto 62% no-repeat;
  }

  .hero-copy {
    max-width: 19rem;
  }

  h1 {
    font-size: clamp(2.25rem, 11vw, 2.7rem);
  }

  .hero-summary {
    max-width: min(100%, 20rem);
    font-size: 0.95rem;
  }

  .trust-strip-wrap {
    margin-top: 26px;
    padding-top: 0;
    padding-bottom: 36px;
  }
}

@media (max-width: 760px) and (hover: none), (max-width: 760px) and (pointer: coarse) {
  .button.trust-mobile-quote {
    display: flex;
    width: min(100%, 360px);
    min-height: 52px;
    margin: 14px auto 0;
    border-radius: 14px;
  }
}

.curated-gallery-page {
  background: linear-gradient(180deg, #0d1721 0%, #172737 240px, #0f1d2a 100%);
}

.project-featured-work {
  padding: calc(var(--header-offset) + 34px) 0 42px;
}

.portfolio-intro h1,
.compact-heading h2 {
  color: #fff;
}

.portfolio-intro h1 {
  font-size: clamp(2.7rem, 5vw, 5rem);
}

.gallery-section-copy {
  max-width: 760px;
  margin-top: 0.72rem;
  color: rgba(243, 239, 232, 0.76);
  font-size: 0.98rem;
}

.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
}

.featured-primary {
  min-height: 520px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.featured-grid .project-gallery-card {
  min-height: 252px;
}

.portfolio-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 24px;
  padding: 0 18px;
  border: 1px solid rgba(216, 191, 154, 0.34);
  border-radius: 999px;
  background: rgba(216, 191, 154, 0.12);
  color: #f3efe8;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.portfolio-link-button:hover,
.portfolio-link-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(216, 191, 154, 0.52);
  background: rgba(216, 191, 154, 0.2);
  color: #fff;
}

.portfolio-link-button-wide {
  width: 100%;
  max-width: 320px;
}

.project-gallery-curated {
  padding: 30px 0 94px;
  background: transparent;
}

.gallery-section-shell {
  position: relative;
  overflow: hidden;
  max-height: none;
  transition: max-height 260ms ease;
}

.gallery-section-shell.is-collapsed::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 92px;
  background: linear-gradient(180deg, rgba(13, 18, 26, 0) 0%, rgba(13, 18, 26, 0.94) 100%);
  pointer-events: none;
}

.project-gallery-curated .section-heading h2 {
  color: #fff;
}

.project-gallery-curated .section-heading .eyebrow {
  color: var(--accent);
}

.curated-gallery-page .project-gallery-card img {
  filter: saturate(0.9) brightness(0.98) contrast(1.02);
}

.curated-gallery-page .project-gallery-card::after {
  background: linear-gradient(180deg, rgba(8, 17, 25, 0.04), rgba(8, 17, 25, 0.82));
}

.gallery-section-block + .gallery-section-block {
  margin-top: 56px;
}

.portfolio-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  overflow: visible;
  padding-bottom: 0;
  scrollbar-width: none;
  scroll-snap-type: none;
}

.portfolio-strip .project-gallery-card {
  min-height: 240px;
}

.gallery-section-toggle {
  display: inline-flex;
  justify-content: center;
  min-width: min(100%, 320px);
  margin-top: 18px;
}

.portfolio-footer-link {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(243, 239, 232, 0.08);
}

.photo-admin-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
}

.photo-admin-modal[hidden] {
  display: none;
}

.photo-admin-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 15, 0.78);
  backdrop-filter: blur(10px);
}

.photo-admin-panel {
  position: relative;
  width: min(1200px, 100%);
  max-height: min(90vh, 1100px);
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(216, 191, 154, 0.18);
  border-radius: 28px;
  background: linear-gradient(180deg, #0e1720 0%, #13212d 100%);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.36);
  color: #f7f3ed;
}

.photo-admin-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.photo-admin-copy {
  max-width: 760px;
  margin-top: 0.55rem;
  color: rgba(243, 239, 232, 0.72);
  font-size: 0.95rem;
}

.photo-admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.photo-admin-save-status {
  align-self: center;
  color: rgba(247, 243, 237, 0.78);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.photo-admin-body {
  display: grid;
  gap: 14px;
}

.photo-admin-section {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  transition: opacity 180ms ease, filter 180ms ease;
}

.photo-admin-body.has-open-section .photo-admin-section {
  opacity: 0.42;
  filter: saturate(0.7);
}

.photo-admin-body.has-open-section .photo-admin-section[open] {
  opacity: 1;
  filter: none;
}

.photo-admin-section > summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.photo-admin-section > summary::-webkit-details-marker {
  display: none;
}

.photo-admin-summary-tag {
  color: var(--tan);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-admin-section-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.photo-admin-section-grid label {
  display: grid;
  gap: 8px;
  color: rgba(247, 243, 237, 0.88);
  font-size: 0.84rem;
  font-weight: 700;
}

.photo-admin-section-grid input,
.photo-admin-section-grid textarea {
  width: 100%;
  border: 1px solid rgba(216, 191, 154, 0.2);
  border-radius: 14px;
  background: rgba(6, 12, 18, 0.72);
  color: #f7f3ed;
  padding: 12px 14px;
  font: inherit;
}

.photo-admin-section-grid textarea {
  resize: vertical;
  min-height: 96px;
}

.photo-admin-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}

.photo-admin-switch input {
  width: auto;
}

.photo-admin-section-actions,
.photo-admin-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.photo-admin-photos {
  display: grid;
  gap: 12px;
}

.photo-admin-photos-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.photo-admin-dropzone {
  border: 1px dashed rgba(216, 191, 154, 0.42);
  border-radius: 14px;
  min-height: 140px;
  max-width: 220px;
  padding: 14px;
  display: grid;
  place-items: center;
  text-align: center;
  color: rgba(247, 243, 237, 0.76);
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(8, 17, 25, 0.38);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease,
    color 180ms ease, transform 180ms ease;
}

.photo-admin-dropzone.is-drag-over {
  border-color: rgba(216, 191, 154, 0.95);
  background: rgba(21, 38, 56, 0.72);
  box-shadow: 0 0 0 2px rgba(216, 191, 154, 0.28);
  color: #f9efe0;
  transform: translateY(-1px);
}

.photo-admin-photo-list {
  display: grid;
  gap: 12px;
}

.photo-admin-photo {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.photo-admin-preview {
  width: 120px;
  height: 100px;
  border-radius: 14px;
  object-fit: cover;
  background: #081119;
}

.photo-admin-preview-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.photo-admin-preview-button:focus-visible {
  outline: 2px solid rgba(214, 179, 124, 0.8);
  outline-offset: 3px;
  border-radius: 14px;
}

.photo-admin-photo-fields {
  display: grid;
  gap: 10px;
}

.photo-admin-photo-fields label {
  display: grid;
  gap: 8px;
  color: rgba(247, 243, 237, 0.88);
  font-size: 0.82rem;
  font-weight: 700;
}

.photo-admin-empty {
  margin: 0;
  color: rgba(247, 243, 237, 0.68);
}

.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 18px;
}

.quote-modal[hidden] {
  display: none !important;
}

.quote-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 10, 18, 0.74);
  backdrop-filter: blur(5px);
}

.quote-modal-panel {
  position: relative;
  width: min(540px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(216, 191, 154, 0.24);
  background:
    linear-gradient(135deg, rgba(9, 18, 28, 0.98), rgba(10, 30, 50, 0.92));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
  padding: 26px;
  color: #f7f3ed;
}

.quote-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #f7f3ed;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  font-size: 1.3rem;
  cursor: pointer;
}

.quote-modal-copy {
  margin: 0 0 14px;
  color: rgba(247, 243, 237, 0.82);
}

.quote-form {
  display: grid;
  gap: 12px;
}

.quote-form label {
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: rgba(247, 243, 237, 0.9);
}

.quote-form input {
  width: 100%;
  border: 1px solid rgba(216, 191, 154, 0.26);
  border-radius: 12px;
  background: rgba(8, 16, 24, 0.8);
  color: #f7f3ed;
  padding: 11px 12px;
  font: inherit;
}

.quote-form-status {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.85rem;
  color: #d6b37c;
}

.quote-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 1100px) {
  .featured-layout {
    grid-template-columns: 1fr 1fr;
  }

  .featured-primary {
    grid-column: span 2;
    min-height: 440px;
  }

  .featured-grid {
    grid-column: span 2;
  }

  .portfolio-strip {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .field-work-card {
    flex-basis: clamp(160px, 17vw, 220px);
  }
}

@media (max-width: 760px) {
  .project-featured-work {
    padding: calc(var(--header-offset) + 14px) 0 24px;
  }

  .featured-layout,
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .featured-primary {
    min-height: 280px;
  }

  .featured-grid .project-gallery-card {
    min-height: 230px;
  }

  .portfolio-strip {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .portfolio-strip .project-gallery-card {
    min-height: 230px;
  }

  .portfolio-link-button,
  .portfolio-link-button-wide {
    width: 100%;
    max-width: none;
  }

  .field-work {
    padding: 10px 0 160px;
  }

  .field-work-heading {
    margin-bottom: 10px;
  }

  .field-work-heading h2 {
    font-size: clamp(1rem, 4.8vw, 1.22rem);
  }

  .field-work-carousel-shell {
    margin-top: 0;
  }

  .field-work-carousel {
    padding: 4px 0 6px;
    gap: 16px;
  }

  .field-work-card {
    flex-basis: 74vw;
    height: 148px;
  }

  .photo-admin-panel {
    padding: 18px;
  }

  .photo-admin-header {
    flex-direction: column;
  }

  .photo-admin-header-actions {
    justify-content: flex-start;
  }

  .photo-admin-photo {
    grid-template-columns: 1fr;
  }

  .photo-admin-preview {
    width: 100%;
    height: 180px;
  }
}
