/* Cortlandt Roofing, Inc. — local preview
   Palette from the new marks: red #E73425, black, white.
   Layout rhythm inspired by nexterraliving.com (structure only). */

:root {
  --red: #E73425;
  --red-deep: #C12C1F;
  --red-hover: #FF3B2B;
  --black: #000000;
  --night: #060C13;
  --ink: #0B0B0B;
  --char: #121212;
  --white: #FFFFFF;
  --paper: #F3F3F1;
  --muted: #9A9A9A;
  --muted-dark: #5C5C5C;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(0, 0, 0, 0.1);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --font-display: "Oswald", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;
  --header-h: 108px; /* fits 78px header logo with even padding */
  --radius: 4px;
  --measure: 68ch;
  --max: 1200px;
  --max-wide: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  color: var(--white);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin: 0;
}
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.skip {
  position: absolute;
  left: 16px; top: -48px;
  background: var(--red); color: var(--white);
  padding: 8px 14px; z-index: 1000;
}
.skip:focus { top: 16px; }

/* ----- Header ----- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background-color 0.45s ease, backdrop-filter 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(6, 12, 19, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.header-inner {
  width: min(100% - 40px, var(--max-wide));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-link img {
  height: 78px;
  width: auto;
}
.logo-fallback {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 1.35rem;
  color: var(--white);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  transition: color 0.25s;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--white); }
.nav a[aria-current="page"] { box-shadow: 0 2px 0 var(--red); }
.header-cta { margin-left: 8px; }
.menu-toggle {
  display: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  border-radius: var(--radius);
  padding: 8px 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-size: 0.85rem;
  cursor: pointer;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  padding: 14px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-hover); box-shadow: 0 8px 24px rgba(231, 52, 37, 0.35); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover { background: #222; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse at 50% 40%, #102033 0%, var(--night) 62%, #03060A 100%);
  overflow: hidden;
  padding: calc(var(--header-h) + 24px) 24px 72px;
}
.hero-rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 3;
  border: 0;
  transform: translateZ(0);
  mask-image: radial-gradient(ellipse 78% 76% at 50% 50%, #000 40%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 78% 76% at 50% 50%, #000 40%, transparent 76%);
}
.hero-mark-wrap {
  position: relative;
  z-index: 2;
  width: min(1180px, 94vw);
}
.hero-mark {
  width: 100%;
  height: auto;
  display: block;
  /* Blend the already-feathered banner a little more so no hard box remains */
  mask-image: radial-gradient(ellipse 78% 78% at 50% 50%, #000 48%, transparent 84%);
  -webkit-mask-image: radial-gradient(ellipse 78% 78% at 50% 50%, #000 48%, transparent 84%);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.45));
}
.hero-copy {
  position: relative;
  z-index: 2;
  margin-top: 8px;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.hero-copy h1 {
  font-size: clamp(2.2rem, 5.4vw, 4.6rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-headline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.12em;
  width: max-content;
  max-width: min(1100px, 96vw);
  white-space: nowrap;
}
.hero-badge {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
  animation: badge-in 0.7s ease 0.45s both;
}
.hero-badge img {
  display: block;
  height: 1.75em;
  width: auto;
}
@keyframes badge-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: none; }
}
.hero-copy .lede {
  font-weight: 300;
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  margin-bottom: 28px;
}
.hero-copy .btn-row { justify-content: center; }

/* ----- Sections ----- */
.section {
  padding: 112px 24px;
}
.section-narrow { padding: 96px 24px; }
.wrap {
  width: min(100%, var(--max));
  margin: 0 auto;
}
.wrap-wide {
  width: min(100%, var(--max-wide));
  margin: 0 auto;
}
.center { text-align: center; }
.center .wrap, .center .lede, .center p { margin-left: auto; margin-right: auto; }
.measure { max-width: var(--measure); }

.bg-night { background: var(--night); color: var(--white); }
.bg-ink { background: var(--ink); color: var(--white); }
.bg-paper { background: var(--paper); color: var(--ink); }
.bg-paper .eyebrow { color: var(--red); }
.bg-paper .muted, .bg-paper .lede { color: var(--muted-dark); }
.bg-white { background: var(--white); color: var(--ink); }
.bg-red { background: var(--red); color: var(--white); }
.bg-red .eyebrow { color: rgba(255,255,255,0.75); }

.section-title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 22px;
}
.section-title.tight { margin-bottom: 12px; }
.lede { color: rgba(255,255,255,0.78); font-size: 1.08rem; }
.bg-paper .lede, .bg-white .lede { color: #333; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.flip { direction: rtl; }
.split.flip > * { direction: ltr; }
.split-copy p { margin-bottom: 1.15em; }
.photo {
  overflow: hidden;
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}
.photo:hover img { transform: scale(1.03); }
.photo-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.photo-stack .photo:first-child { grid-column: 1 / -1; }

/* ----- Cards ----- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #10151C;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}
.bg-paper .card {
  background: var(--white);
  border-color: var(--line-dark);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #0A0A0A;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.card:hover .card-media img { transform: scale(1.03); }
.card-body { padding: 28px 28px 32px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 {
  font-size: 1.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}
.card-body p { color: var(--muted); flex: 1; }
.bg-paper .card-body p { color: #444; }
.card-body .btn { margin-top: 22px; align-self: flex-start; }

/* Reviews */
.quote {
  font-size: 1.02rem;
  line-height: 1.7;
}
.quote-heading { margin-bottom: 8px; }

/* ----- Gallery ----- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gallery a {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #111;
  border-radius: 4px;
}
.gallery a > img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease, filter 0.4s;
}
.gallery a:hover > img { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 32px;
  cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
  cursor: default;
}
.lightbox-close {
  position: absolute; top: 16px; right: 20px;
  background: transparent; border: 0; color: #fff;
  font-size: 2rem; cursor: pointer; line-height: 1;
}

/* ----- Page hero (inner) ----- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 88px) 24px 80px;
  background: radial-gradient(ellipse at 50% 0%, #122034 0%, var(--night) 70%);
  overflow: hidden;
  text-align: left;
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ----- Contact form ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}
.form {
  display: grid;
  gap: 18px;
  background: #fff;
  border: 1px solid #E2E2E2;
  border-radius: 6px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
.field { display: grid; gap: 6px; }
.field label {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #333;
}
.field input,
.field textarea {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #B3B3B3;
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(231, 52, 37, 0.15);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note, .form-success {
  font-size: 0.92rem;
}
.form-success {
  display: none;
  background: #111;
  color: var(--white);
  padding: 20px 22px;
  border-radius: var(--radius);
  border-left: 4px solid var(--red);
}
.form-success.is-visible { display: block; }
.form.is-sent .form-fields { display: none; }

.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.fact-list li h4 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.fact-list a:hover { color: var(--red); }
.contact-photo {
  margin-top: 28px;
  max-height: 420px;
}
.contact-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* Logo history */
.logo-history {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 16px;
}
.logo-history-mark {
  background: var(--white);
  border-radius: 6px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.logo-history-mark img { width: 100%; height: auto; }

/* CTA band */
.cta-band {
  padding: 100px 24px;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.cta-band p { max-width: 560px; margin: 0 auto 28px; }

/* ----- Footer ----- */
.site-footer {
  background: #05070A;
  color: var(--white);
  padding: 96px 24px 40px;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 40px;
  width: min(100%, var(--max-wide));
  margin: 0 auto 64px;
}
.footer-brand img { height: 96px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); max-width: 38ch; }
.footer-col h3 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--red);
}
.footer-col a, .footer-col p { color: rgba(255,255,255,0.78); }
.footer-col a { display: inline-block; margin-bottom: 8px; }
.footer-col a:hover { color: var(--white); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-bottom {
  width: min(100%, var(--max-wide));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-credit {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.34);
}
.license { color: rgba(255,255,255,0.7); }

/* Materials strip */
.materials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.materials span {
  border: 1px solid var(--line-dark);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #222;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s ease forwards;
}
.reveal-d1 { animation-delay: 0.1s; }
.reveal-d2 { animation-delay: 0.22s; }
.reveal-d3 { animation-delay: 0.34s; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}


/* ----- Materials logo marquee (sample) ----- */
.brand-marquee {
  background: #070b10;
  padding: 88px 0 72px;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.brand-marquee .wrap { text-align: center; margin-bottom: 40px; }
.brand-marquee .section-title { margin-bottom: 0; }
.brand-marquee-viewport {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.brand-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: brand-scroll 42s linear infinite;
}
.brand-set {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.brand-marquee-viewport:hover .brand-marquee-track,
.brand-marquee-viewport:focus-within .brand-marquee-track {
  animation-play-state: paused;
}
.brand-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 186px;
  height: 88px;
  margin-right: 16px;
  padding: 14px 16px;
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.brand-chip img {
  max-height: 52px;
  max-width: 154px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: grayscale(0.25);
  transition: filter 0.3s ease;
}
.brand-chip:hover img,
.brand-marquee-viewport:hover .brand-chip img {
  filter: grayscale(0);
}
@keyframes brand-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-rain { display: none !important; }
  .hero-badge { animation: none !important; }
  .reveal, .card, .card-media img, .photo img, .gallery a img, .btn, .brand-marquee-track {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  .brand-marquee-viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }
  .brand-marquee-track {
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    max-width: var(--max-wide);
    margin: 0 auto;
    gap: 16px;
    padding: 0 24px;
    transform: none;
  }
  .brand-marquee-track [aria-hidden="true"] { display: none; }
  .brand-set { flex-wrap: wrap; justify-content: center; }
  .brand-chip { margin-right: 0; }
  .brand-chip img { filter: none; }
}

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .split, .split.flip, .contact-grid, .logo-history, .card-grid, .card-grid.three {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 80px 20px; }
}
@media (max-width: 820px) {
  :root { --header-h: 62px; } /* fits 40px header logo */
  .hero {
    min-height: 0;
    padding: calc(var(--header-h) + 12px) 20px 48px;
    justify-content: flex-start;
  }
  .hero-mark-wrap { width: min(100%, 94vw); margin-top: 8px; }
  .hero-mark {
    mask-image: radial-gradient(ellipse 82% 86% at 50% 50%, #000 58%, transparent 88%);
    -webkit-mask-image: radial-gradient(ellipse 82% 86% at 50% 50%, #000 58%, transparent 88%);
  }
  .hero-copy { margin-top: 0; }
  .hero-copy h1 { font-size: 2.15rem; }
  .hero-headline {
    flex-direction: column;
    white-space: normal;
    width: 100%;
    max-width: 100%;
    gap: 8px;
  }
  .hero-badge img { height: 90px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    min-height: calc(100svh - var(--header-h));
    background: #060C13;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
  }
  .site-header.is-open {
    background: #060C13;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header.is-open .nav { display: flex; }
  .header-cta { margin-left: 0; width: 100%; }
  .logo-link img { height: 40px; }
  .hero { padding-bottom: 56px; }
  .hero-copy { margin-top: 4px; }
}
@media (max-width: 600px) {
  .brand-chip { width: 180px; height: 84px; margin-right: 14px; }
  .brand-chip img { max-height: 48px; max-width: 148px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .section-title { font-size: 2.2rem; }
  .btn { padding: 13px 22px; }
  .header-inner { width: min(100% - 28px, var(--max-wide)); }
}
@media (max-width: 420px) {
  :root { --header-h: 56px; } /* fits 34px header logo */
  .logo-link img { height: 34px; }
}

.eyebrow.hero-location {
  font-size: 1.56rem;
  letter-spacing: 0.18em;
  line-height: 1.15;
  margin-top: 6px;
  margin-bottom: 18px;
}
@media (max-width: 820px) {
  .eyebrow.hero-location {
    font-size: 1.2rem;
    margin-top: 8px;
    margin-bottom: 14px;
  }
}

/* ----- Reviews showcase & home teaser ----- */
.reviews-intro {
  background: var(--night);
  padding: 56px 24px 48px;
  border-bottom: 1px solid var(--line);
}
.reviews-intro .lede { color: rgba(255,255,255,0.78); }
.reviews-showcase {
  background: #070C12;
}
.review-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  border-bottom: 1px solid var(--line);
}
.review-feature.flip { direction: rtl; }
.review-feature.flip > * { direction: ltr; }
.review-media {
  position: relative;
  isolation: isolate;
  min-height: 420px;
  background: #0A0A0A;
  overflow: hidden;
}
/* Warm red-sepia wash on the left quarter of each review photo only (CSS overlay). */
.review-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(231, 52, 37, 0.45) 0%,
    rgba(168, 86, 42, 0.28) 12%,
    rgba(130, 72, 32, 0.10) 20%,
    rgba(130, 72, 32, 0) 25%
  );
  mix-blend-mode: color;
}
.review-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.review-feature .review-media { height: 100%; }
.review-copy {
  position: relative;
  padding: 72px 64px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.review-mark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(5.5rem, 10vw, 9.5rem);
  line-height: 0.55;
  color: var(--red);
  display: block;
  pointer-events: none;
  margin: 0 0 8px;
  letter-spacing: 0;
  text-transform: none;
}
.review-copy h2 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 22px;
}
.review-copy blockquote,
.reviews-teaser blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  font-style: normal;
}
.review-copy blockquote p {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.75;
  font-weight: 300;
  color: rgba(255,255,255,0.86);
  max-width: 40rem;
}
.review-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}
.review-share-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 6px;
}
.share-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.share-btn:hover,
.share-btn:focus-visible {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.06);
  outline: none;
}
.share-btn.is-copied {
  border-color: var(--red);
  color: var(--white);
}

/* Home teaser */
.reviews-teaser {
  position: relative;
  background: #070C12;
  padding: 108px 24px 100px;
  text-align: center;
  overflow: hidden;
}
.reviews-teaser-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.reviews-teaser-bg > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: grayscale(0.35);
}
.reviews-teaser-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,12,18,0.72) 0%, rgba(7,12,18,0.88) 45%, rgba(7,12,18,0.94) 100%);
}
.reviews-teaser .wrap { position: relative; z-index: 1; }
.reviews-teaser .section-title { margin-bottom: 8px; }
.reviews-teaser .review-mark { margin-top: 12px; }
.reviews-teaser blockquote p {
  margin: 0 auto;
  max-width: 44rem;
  font-size: clamp(1.12rem, 2.1vw, 1.45rem);
  line-height: 1.65;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
}
.reviews-teaser .quote-heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 28px 0 32px;
  color: var(--white);
}
.reviews-teaser .btn-ghost { margin: 0 auto; }

/* Follow-us styles ready for when official URLs are provided and the row is uncommented. */
.follow-us {
  padding: 48px 24px 64px;
  text-align: center;
}
.follow-us-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  margin: 12px 0 0;
  padding: 0;
}
.follow-us-list a { color: rgba(255,255,255,0.78); }
.follow-us-list a:hover { color: var(--white); }

@media (max-width: 820px) {
  .review-feature,
  .review-feature.flip {
    grid-template-columns: 1fr;
    direction: ltr;
    min-height: 0;
  }
  .review-feature.flip > * { direction: ltr; }
  .review-media { min-height: 0; aspect-ratio: 3 / 2; }
  .review-copy { padding: 40px 20px 56px; }
  .reviews-intro { padding: 40px 20px 36px; }
  .reviews-teaser { padding: 80px 20px 72px; }
}



/* ----- 35th Anniversary photo watermark (shared) ----- */
.job-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  width: 72px;
  pointer-events: none;
  opacity: 0.86;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
  line-height: 0;
}
.job-badge img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 820px) {
  .job-badge { width: 56px; }
}

/* ----- Storm & leak checklist ----- */
.checklist-page { max-width: 760px; }
.checklist-page > .lede { margin-bottom: 28px; }
.checklist-safety {
  background: #fff;
  border-left: 4px solid var(--red);
  padding: 18px 22px;
  margin: 0 0 32px;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.checklist-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.btn-ghost-ink {
  background: transparent;
  color: var(--ink);
  border-color: rgba(0,0,0,0.28);
}
.btn-ghost-ink:hover { border-color: var(--ink); background: rgba(0,0,0,0.04); }
.checklist { margin: 0; }
.checklist-group {
  border: 0;
  margin: 0 0 40px;
  padding: 0;
}
.checklist-group legend {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
  padding: 0;
}
.checklist-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.check-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #E2E2E2;
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.6;
}
.check-item:hover { border-color: #C8C8C8; }
.check-item:has(input:focus-visible) {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(231, 52, 37, 0.15);
}
.check-item:has(input:checked) {
  border-color: rgba(231, 52, 37, 0.45);
  background: #fff8f7;
}
.check-item input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 3px 0 0;
  flex-shrink: 0;
  border: 2px solid #555;
  border-radius: 3px;
  background: #fff;
  display: grid;
  place-content: center;
  cursor: pointer;
}
.check-item input:checked {
  background: var(--red);
  border-color: var(--red);
}
.check-item input:checked::after {
  content: "";
  width: 11px;
  height: 6px;
  border: 2.5px solid #fff;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}
.check-item input:focus { outline: none; }
.checklist-disclaimer {
  font-size: 0.92rem;
  color: var(--muted-dark);
  border-top: 1px solid var(--line-dark);
  padding-top: 22px;
  margin-top: 8px;
}
.checklist-teaser .lede { margin-top: 14px; }

@media print {
  .skip, .site-header, .menu-toggle, .site-footer,
  .checklist-toolbar, .hero-rain { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .page-hero {
    padding: 0 0 18px;
    background: none;
    color: #000;
  }
  .page-hero h1 { font-size: 28pt; }
  .section { padding: 12px 0; }
  .bg-paper, .bg-red, .cta-band { background: #fff; color: #000; }
  .cta-band { padding: 24px 0 0; text-align: left; }
  .cta-band h2 { color: #000; font-size: 16pt; }
  .cta-band .btn { color: #000; border-color: #000; background: none; box-shadow: none; transform: none; }
  .checklist-safety { box-shadow: none; border: 1px solid #000; border-left: 4px solid #000; }
  .check-item {
    break-inside: avoid;
    box-shadow: none;
    border-color: #bbb;
    background: #fff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .check-item input:checked {
    background: #000;
    border-color: #000;
  }
  .checklist-disclaimer { color: #333; }
}


/* ----- Roofing Materials Guide ----- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.guide-intro { padding-bottom: 40px; }
.guide-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.guide-jump a {
  border: 1px solid var(--line-dark);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #222;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.guide-jump a:hover { border-color: var(--red); color: var(--red); }
.guide-note {
  margin-top: 28px;
  background: #fff;
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: #333;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.guide-material .split { align-items: center; }
.guide-photo { margin: 0; position: relative; aspect-ratio: 4 / 3; }
.guide-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.92);
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0));
}
.guide-sub { margin: 0 0 1.15em; padding-left: 1.1em; }
.guide-sub li { margin-bottom: 0.6em; }
.guide-points { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.guide-points h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1rem;
  color: var(--red);
  margin: 0 0 8px;
}
.guide-points ul { margin: 0; padding-left: 1.1em; }
.guide-points li { margin-bottom: 0.45em; font-size: 0.97rem; }
.guide-best {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
}
.guide-best strong { font-weight: 600; }
.guide-table-wrap { margin-top: 32px; overflow-x: auto; }
.guide-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  font-size: 0.95rem;
}
.guide-table th, .guide-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid #E6E6E6; }
.guide-table thead th {
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.guide-table tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.guide-table tbody tr:last-child th, .guide-table tbody tr:last-child td { border-bottom: 0; }
.guide-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 18px; }
.guide-card {
  background: #fff;
  border-top: 4px solid var(--red);
  border-radius: 6px;
  padding: 36px 34px 38px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.07);
  display: flex; flex-direction: column;
}
.guide-card .section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.guide-card .lede { flex: 1; margin-bottom: 26px; }
.guide-card .btn { align-self: flex-start; }
@media (max-width: 900px) {
  .guide-cards { grid-template-columns: 1fr; }
  .guide-points { grid-template-columns: 1fr; gap: 14px; }
  .guide-table thead { display: none; }
  .guide-table, .guide-table tbody, .guide-table tr, .guide-table th, .guide-table td { display: block; width: 100%; }
  .guide-table { background: transparent; box-shadow: none; }
  .guide-table tr { background: #fff; border-radius: 6px; margin-bottom: 14px; box-shadow: 0 4px 14px rgba(0,0,0,0.06); overflow: hidden; }
  .guide-table tbody th { background: var(--ink); color: #fff; white-space: normal; border-bottom: 0; }
  .guide-table td { border-bottom: 1px solid #EEE; }
  .guide-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    color: var(--red);
    margin-bottom: 4px;
  }
}

/* ----- Services: subtle blueprint behind photos ----- */
/* The drawing extends --bp-ext beyond every edge of the photo and feathers to the
   section's base colour; the sections get enough padding that nothing is clipped. */
.has-blueprint {
  --bp-ext: clamp(110px, 13.2vw, 190px);
  --bp-x: var(--bp-ext);
  overflow-x: clip;
  /* the photo is vertically centred against the taller text column, so this still
     leaves >= --bp-ext of room above and below the photo */
  padding-top: calc(var(--bp-ext) - 50px);
  padding-bottom: calc(var(--bp-ext) - 50px);
}
.has-blueprint.bp-img-left { padding-left: calc(var(--bp-ext) + 24px); }
.has-blueprint.bp-img-right { padding-right: calc(var(--bp-ext) + 24px); }
.has-blueprint .split-copy { position: relative; z-index: 1; }
.blueprint-wrap { position: relative; isolation: isolate; }
.blueprint-wrap::before {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--bp-ext)) calc(-1 * var(--bp-x));
  z-index: -1;
  pointer-events: none;
  background: url("../assets/blueprint-roof.svg") center / cover no-repeat;
  opacity: 0.145;
  /* even feather on all four sides: opaque at the photo edge, transparent at the outer edge */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, rgba(0,0,0,.45) calc(var(--bp-x) * .5), #000 var(--bp-x), #000 calc(100% - var(--bp-x)), rgba(0,0,0,.45) calc(100% - var(--bp-x) * .5), transparent 100%),
    linear-gradient(to bottom, transparent 0, rgba(0,0,0,.45) calc(var(--bp-ext) * .5), #000 var(--bp-ext), #000 calc(100% - var(--bp-ext)), rgba(0,0,0,.45) calc(100% - var(--bp-ext) * .5), transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, rgba(0,0,0,.45) calc(var(--bp-x) * .5), #000 var(--bp-x), #000 calc(100% - var(--bp-x)), rgba(0,0,0,.45) calc(100% - var(--bp-x) * .5), transparent 100%),
    linear-gradient(to bottom, transparent 0, rgba(0,0,0,.45) calc(var(--bp-ext) * .5), #000 var(--bp-ext), #000 calc(100% - var(--bp-ext)), rgba(0,0,0,.45) calc(100% - var(--bp-ext) * .5), transparent 100%);
  mask-composite: intersect;
}
.has-blueprint.bg-white .blueprint-wrap::before { opacity: 0.13; background-position: 40% 50%; }
.has-blueprint#waterproofing .blueprint-wrap::before { background-position: 60% 50%; }
@media (max-width: 980px) {
  .has-blueprint,
  .has-blueprint.bp-img-left,
  .has-blueprint.bp-img-right {
    --bp-ext: 90px;
    --bp-x: 56px;            /* phone gutters: the drawing runs to the screen edge and fades out there */
    padding: calc(var(--bp-ext) + 16px) 20px 80px;
  }
  .has-blueprint .split { row-gap: calc(var(--bp-ext) + 12px); }
  .has-blueprint .blueprint-wrap { margin: 0 36px; }
  .blueprint-wrap::before { opacity: 0.135; }
  .has-blueprint.bg-white .blueprint-wrap::before { opacity: 0.125; }
}
@media (min-width: 981px) {
  /* shorter text column than the photo's surround needs, so give it the full room */
  .has-blueprint#metal-roofing { padding-top: calc(var(--bp-ext) + 16px); padding-bottom: calc(var(--bp-ext) + 16px); }
}

/* ----- About: faded Sea Ranch watercolor behind the intro copy ----- */
.about-intro { overflow-x: clip; }
.about-watercolor { position: relative; isolation: isolate; --wc-x: 130px; --wc-y: 90px; }
.about-watercolor::before {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--wc-y)) calc(-1 * var(--wc-x));
  z-index: -1;
  pointer-events: none;
  background: url("../assets/about/sea-ranch-watercolor.jpg") center / cover no-repeat;
  opacity: 0.17;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, rgba(0,0,0,.5) calc(var(--wc-x) * .55), #000 calc(var(--wc-x) * 1.4), #000 calc(100% - var(--wc-x) * 1.4), rgba(0,0,0,.5) calc(100% - var(--wc-x) * .55), transparent 100%),
    linear-gradient(to bottom, transparent 0, rgba(0,0,0,.5) calc(var(--wc-y) * .55), #000 calc(var(--wc-y) * 1.4), #000 calc(100% - var(--wc-y) * 1.4), rgba(0,0,0,.5) calc(100% - var(--wc-y) * .55), transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, rgba(0,0,0,.5) calc(var(--wc-x) * .55), #000 calc(var(--wc-x) * 1.4), #000 calc(100% - var(--wc-x) * 1.4), rgba(0,0,0,.5) calc(100% - var(--wc-x) * .55), transparent 100%),
    linear-gradient(to bottom, transparent 0, rgba(0,0,0,.5) calc(var(--wc-y) * .55), #000 calc(var(--wc-y) * 1.4), #000 calc(100% - var(--wc-y) * 1.4), rgba(0,0,0,.5) calc(100% - var(--wc-y) * .55), transparent 100%);
  mask-composite: intersect;
}
@media (max-width: 980px) {
  .about-watercolor { --wc-x: 20px; --wc-y: 56px; }
  .about-watercolor::before { opacity: 0.15; background-position: 62% 50%; }
}

/* ----- Drawing-mark image frames (A crop marks, B registration crosshairs, C dimension line, D crop marks + 6/12 pitch) -----
   Wrap a content image in <div class="frame frame-a|b|c|d">. The marks sit just outside the image,
   in --frame-mark: a tone a few shades off the background the image sits on (set per section below). */
.frame { --frame-mark: #D6D6D2; position: relative; }
.frame::after {
  content: ""; position: absolute; inset: -24px; z-index: 2; pointer-events: none;
  background: var(--frame-mark);
  -webkit-mask: var(--frame-mask); mask: var(--frame-mask);
}
.frame-a, .frame-d { --frame-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-linecap='square'%3E%3Cpath d='M18 40V18H40' stroke-width='1.5'/%3E%3C/svg%3E") left top / 48px 48px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-linecap='square'%3E%3Cpath d='M30 40V18H8' stroke-width='1.5'/%3E%3C/svg%3E") right top / 48px 48px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-linecap='square'%3E%3Cpath d='M18 8V30H40' stroke-width='1.5'/%3E%3C/svg%3E") left bottom / 48px 48px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-linecap='square'%3E%3Cpath d='M30 8V30H8' stroke-width='1.5'/%3E%3C/svg%3E") right bottom / 48px 48px no-repeat; }
.frame-b { --frame-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-linecap='square'%3E%3Ccircle cx='12' cy='12' r='5' stroke-width='1.25'/%3E%3Cpath d='M2.5 12H21.5M12 2.5V21.5' stroke-width='1.25'/%3E%3C/svg%3E") left top / 48px 48px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-linecap='square'%3E%3Ccircle cx='36' cy='12' r='5' stroke-width='1.25'/%3E%3Cpath d='M26.5 12H45.5M36 2.5V21.5' stroke-width='1.25'/%3E%3C/svg%3E") right top / 48px 48px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-linecap='square'%3E%3Ccircle cx='12' cy='36' r='5' stroke-width='1.25'/%3E%3Cpath d='M2.5 36H21.5M12 26.5V45.5' stroke-width='1.25'/%3E%3C/svg%3E") left bottom / 48px 48px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-linecap='square'%3E%3Ccircle cx='36' cy='36' r='5' stroke-width='1.25'/%3E%3Cpath d='M26.5 36H45.5M36 26.5V45.5' stroke-width='1.25'/%3E%3C/svg%3E") right bottom / 48px 48px no-repeat; }
.frame-c { --frame-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-linecap='square'%3E%3Cpath d='M19 30V19H30' stroke-width='1.25'/%3E%3Cpath d='M14 14l3 3' stroke-width='1.25'/%3E%3C/svg%3E") left top / 48px 48px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-linecap='square'%3E%3Cpath d='M29 30V19H18' stroke-width='1.25'/%3E%3Cpath d='M34 14l-3 3' stroke-width='1.25'/%3E%3C/svg%3E") right top / 48px 48px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24' fill='none' stroke='%23000' stroke-linecap='square'%3E%3Cpath d='M24 5V22' stroke-width='1.25'/%3E%3Cpath d='M20 19.5L28 11.5' stroke-width='1.6'/%3E%3C/svg%3E") left bottom / 48px 24px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24' fill='none' stroke='%23000' stroke-linecap='square'%3E%3Cpath d='M24 5V22' stroke-width='1.25'/%3E%3Cpath d='M20 19.5L28 11.5' stroke-width='1.6'/%3E%3C/svg%3E") right bottom / 48px 24px no-repeat,
    linear-gradient(#000 0 0) center bottom 8px / calc(100% - 36px) 1.25px no-repeat; }
.frame-d::before {
  content: ""; position: absolute; top: -33px; right: 30px; width: 58px; height: 36px; z-index: 2; pointer-events: none;
  background: var(--frame-mark);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='58' height='36' viewBox='0 0 58 36' fill='none' stroke='%23000' stroke-linecap='square'%3E%3Cpath d='M6 25H46V9' stroke-width='1.2'/%3E%3Cpath d='M6 25L46 9' stroke-width='1.6'/%3E%3Cpath d='M42 25v-4h4' stroke-width='1'/%3E%3Cg fill='%23000' stroke='none' font-family='Arial Narrow,Arial,Helvetica,sans-serif' font-weight='700' font-size='10'%3E%3Ctext x='26' y='34' text-anchor='middle'%3E12%3C/text%3E%3Ctext x='50' y='21'%3E6%3C/text%3E%3C/g%3E%3C/svg%3E") center / 58px 36px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='58' height='36' viewBox='0 0 58 36' fill='none' stroke='%23000' stroke-linecap='square'%3E%3Cpath d='M6 25H46V9' stroke-width='1.2'/%3E%3Cpath d='M6 25L46 9' stroke-width='1.6'/%3E%3Cpath d='M42 25v-4h4' stroke-width='1'/%3E%3Cg fill='%23000' stroke='none' font-family='Arial Narrow,Arial,Helvetica,sans-serif' font-weight='700' font-size='10'%3E%3Ctext x='26' y='34' text-anchor='middle'%3E12%3C/text%3E%3Ctext x='50' y='21'%3E6%3C/text%3E%3C/g%3E%3C/svg%3E") center / 58px 36px no-repeat;
}
/* mark tone per background */
.bg-white .frame { --frame-mark: #D4D4D4; }
.bg-paper .frame { --frame-mark: #D7D7D3; }
.bg-night .frame, .reviews-showcase .frame { --frame-mark: #222C38; }
.bg-ink .frame { --frame-mark: #2C2C2C; }
/* over the Services blueprint the marks sit a few shades stronger so they read apart from the drawing */
.has-blueprint.bg-paper .frame { --frame-mark: #C9C9C4; }
.has-blueprint.bg-white .frame { --frame-mark: #C8C8C8; }
main { overflow-x: clip; }
/* layouts that hold framed images get room for the marks */
.frame > .photo, .frame > .card, .frame > .review-media { height: 100%; }
.card-grid > .frame { display: flex; }
.card-grid > .frame > .card { flex: 1; }
.photo-stack.has-frames { gap: 36px; }
.photo-stack.has-frames > .frame:first-child { grid-column: 1 / -1; }
.gallery.has-frames { gap: 38px; }
.gallery.has-frames > .frame > a { height: 100%; }
.contact-photo-frame { margin-top: 28px; }
.contact-photo-frame .contact-photo { margin-top: 0; }
.split > .frame-c, .guide-material .frame-c, .contact-photo-frame.frame-c { margin-bottom: 22px; }
.review-frame { padding: 48px; height: 100%; }
.review-frame > .frame { height: 100%; }
.review-frame .review-media { border-radius: 4px; }
@media (max-width: 980px) {
  .gallery.has-frames { gap: 34px; }
}
@media (max-width: 820px) {
  .review-frame { padding: 32px 24px 8px; height: auto; }
}
@media (max-width: 600px) {
  .gallery.has-frames { gap: 30px 28px; }
  .photo-stack.has-frames { gap: 32px; }
}
@media print { .frame::before, .frame::after { display: none; } }

/* ----- Home: faded black-and-white Sonoma County landscape behind "The Highest Quality" ----- */
.home-quality { position: relative; isolation: isolate; overflow-x: clip; --sq-x: 22%; --sq-y: 24%; }
.home-quality::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../assets/home/sonoma-bw.jpg") 50% 62% / cover no-repeat;
  opacity: 0.168;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, rgba(0,0,0,.5) calc(var(--sq-x) * .5), #000 var(--sq-x), #000 calc(100% - var(--sq-x)), rgba(0,0,0,.5) calc(100% - var(--sq-x) * .5), transparent 100%),
    linear-gradient(to bottom, transparent 0, rgba(0,0,0,.5) calc(var(--sq-y) * .5), #000 var(--sq-y), #000 calc(100% - var(--sq-y)), rgba(0,0,0,.5) calc(100% - var(--sq-y) * .5), transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, rgba(0,0,0,.5) calc(var(--sq-x) * .5), #000 var(--sq-x), #000 calc(100% - var(--sq-x)), rgba(0,0,0,.5) calc(100% - var(--sq-x) * .5), transparent 100%),
    linear-gradient(to bottom, transparent 0, rgba(0,0,0,.5) calc(var(--sq-y) * .5), #000 var(--sq-y), #000 calc(100% - var(--sq-y)), rgba(0,0,0,.5) calc(100% - var(--sq-y) * .5), transparent 100%);
  mask-composite: intersect;
}
.home-quality > .wrap { position: relative; z-index: 1; }
/* keep the lede comfortably above 4.5:1 over the darkest parts of the landscape */
.home-quality .lede { color: #4A4A4A; }
.home-quality .eyebrow { color: #B2291D; } /* same deeper red as the About Us section so the small label stays >=4.5:1 over the landscape */
@media (max-width: 980px) {
  .home-quality { --sq-x: 10%; --sq-y: 14%; }
  .home-quality::before { background-position: 58% 64%; opacity: 0.156; }
}
@media print { .home-quality::before { display: none; } }

/* ----- Home: companion faded B&W landscape behind the "About Us" split ----- */
.home-about { position: relative; isolation: isolate; overflow-x: clip; --sa-x: 18%; --sa-y: 22%; }
.home-about::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../assets/home/sonoma-bw-2.jpg") 50% 58% / cover no-repeat;
  opacity: 0.143;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, rgba(0,0,0,.5) calc(var(--sa-x) * .5), #000 var(--sa-x), #000 calc(100% - var(--sa-x)), rgba(0,0,0,.5) calc(100% - var(--sa-x) * .5), transparent 100%),
    linear-gradient(to bottom, transparent 0, rgba(0,0,0,.5) calc(var(--sa-y) * .5), #000 var(--sa-y), #000 calc(100% - var(--sa-y)), rgba(0,0,0,.5) calc(100% - var(--sa-y) * .5), transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, rgba(0,0,0,.5) calc(var(--sa-x) * .5), #000 var(--sa-x), #000 calc(100% - var(--sa-x)), rgba(0,0,0,.5) calc(100% - var(--sa-x) * .5), transparent 100%),
    linear-gradient(to bottom, transparent 0, rgba(0,0,0,.5) calc(var(--sa-y) * .5), #000 var(--sa-y), #000 calc(100% - var(--sa-y)), rgba(0,0,0,.5) calc(100% - var(--sa-y) * .5), transparent 100%);
  mask-composite: intersect;
}
.home-about > .wrap-wide { position: relative; z-index: 1; }
/* the small red eyebrow uses the site's deeper red here so it stays crisp over the landscape */
.home-about .eyebrow { color: #B2291D; } /* a touch deeper than --red-deep so it stays >=4.5:1 over the slightly stronger landscape */
@media (max-width: 980px) {
  .home-about { --sa-x: 10%; --sa-y: 12%; }
  .home-about::before { background-position: 40% 60%; opacity: 0.132; }
}
@media print { .home-about::before { display: none; } }

/* ----- Previous Jobs: small copyright mark on every photo (HTML/CSS overlay, image files untouched) ----- */
.gallery a { container-type: inline-size; }
.copyright-mark {
  position: absolute; right: 8px; bottom: 8px; z-index: 3; pointer-events: none;
  font-family: var(--font-display); font-weight: 400; line-height: 1.2; letter-spacing: 0.03em;
  /* condensed face so the full line fits a phone-size thumbnail without wrapping */
  font-size: min(10px, calc((100cqi - 18px) / 19)); white-space: nowrap;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.6);
}
/* lift the 35th badge just above the mark so the two never overlap */
.gallery .job-badge { bottom: 26px; }
/* enlarged view */
.lightbox-figure { position: relative; margin: 0; display: inline-block; line-height: 0; }
.lightbox-figure .copyright-mark { right: 10px; bottom: 10px; font-size: 11px; line-height: 1.2; }
@media (max-width: 820px) {
  .gallery .job-badge { bottom: 20px; }
  .lightbox-figure .copyright-mark { font-size: 9px; right: 8px; bottom: 8px; }
}
@media print { .copyright-mark { color: #fff; } }

/* ----- Home hero: occasional soft lightning glow (cool white, low intensity; driven by main.js) -----
   One event every ~8-12s, at most two soft pulses per event; none with prefers-reduced-motion. */
.hero-sky-flash, .hero-flash { position: absolute; display: block; pointer-events: none; opacity: 0; }
.hero-sky-flash {
  inset: 0; z-index: 1;
  background: radial-gradient(ellipse 62% 52% at 50% 30%, rgba(214, 226, 255, 0.5), rgba(214, 226, 255, 0.12) 45%, transparent 72%);
}
.hero-flash {
  inset: -8%; z-index: 4;
  background: radial-gradient(ellipse 52% 50% at 50% 44%, rgba(222, 232, 255, 0.85), rgba(222, 232, 255, 0.2) 48%, transparent 72%);
  mix-blend-mode: screen;
}
@media (prefers-reduced-motion: reduce) { .hero-sky-flash, .hero-flash { display: none; } }
@media print { .hero-sky-flash, .hero-flash { display: none !important; } }

/* ----- About: Our Mission quote block ----- */
.about-mission { position: relative; overflow: hidden; }
.mission { max-width: 860px; margin: 0 auto; text-align: center; position: relative; }
.mission::before {
  content: "\201C"; display: block; font-family: Georgia, "Times New Roman", serif;
  font-size: 7rem; line-height: 0.6; height: 0.42em; color: var(--red); margin-bottom: 18px;
}
.mission .eyebrow { color: var(--red); letter-spacing: 0.22em; margin-bottom: 22px; }
.mission-quote { margin: 0; }
.mission-quote p {
  font-size: clamp(1.08rem, 1.6vw, 1.32rem); line-height: 1.8; font-weight: 300;
  color: rgba(255, 255, 255, 0.9); margin: 0 0 1.1em;
}
.mission-quote .mission-close { margin: 30px 0 0; font-weight: 400; color: rgba(255, 255, 255, 0.82); }
.mission-close strong {
  display: block; margin-top: 10px; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.3; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--white);
}
.mission-sign {
  margin-top: 40px; font-family: var(--font-display); font-weight: 400; font-size: 0.95rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72);
}
.mission-sign::before {
  content: ""; display: block; width: 56px; height: 2px; background: var(--red); margin: 0 auto 18px;
}
@media (max-width: 640px) {
  .about-mission { padding-top: 80px; padding-bottom: 80px; }
  .mission::before { font-size: 5.2rem; margin-bottom: 12px; }
  .mission-quote p { line-height: 1.75; }
  .mission-close strong { letter-spacing: 0.04em; }
}

/* Hero tagline: keep "Built Above the Rest™" on one line on very narrow phones (<380px) */
@media (max-width: 379px) { .hero-copy h1 { font-size: 1.9rem; } }

/* ----- Services: illustrative before/after roof image (full frame, no crop, so both labels stay visible) ----- */
.before-after-photo { margin: 0; position: relative; aspect-ratio: 16 / 9; }
.before-after-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.before-after-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.92);
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0));
}
@media (max-width: 640px) { .before-after-photo figcaption { font-size: 0.7rem; padding: 8px 10px; } }

/* Review attribution (used where a reviewer asked to be named). */
.review-attrib {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}
