/* ===========================================================
   Blackstone Roofing — self-hosted fonts (latin subset only)
   Generated by tools/fetch-fonts.py — do not hand-edit.
   =========================================================== */

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/fraunces-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC,
    U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/fraunces.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC,
    U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/geist.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC,
    U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/geist-mono.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC,
    U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   BLACKSTONE ROOFING ENTERPRISES
   Design system — Industrial Obsidian
   Palette: Black › Silver › White
   ============================================================ */

/* ---- TOKENS -------------------------------------------------- */
:root {
  /* Blacks (primary) */
  --ink:       #050505;
  --obsidian:  #0A0A0A;
  --graphite:  #111113;
  --char:      #18181B;
  --steel:     #26262A;
  --rule:      rgba(255,255,255,0.08);
  --rule-hi:   rgba(255,255,255,0.18);

  /* Silvers (accent) */
  --silver-50:  #F4F5F7;
  --silver-100: #E5E7EB;
  --silver-200: #C9CDD4;
  --silver-300: #ABB0BA;
  --silver-400: #898E99;
  --silver-500: #6B7079;
  --silver-600: #4B4F57;

  /* Whites */
  --bone:  #F7F7F4;
  --paper: #FAFAFA;
  --white: #FFFFFF;

  /* Brushed metal */
  --platinum: linear-gradient(
    135deg,
    #ECEDEF 0%,
    #C9CDD4 18%,
    #8C9099 38%,
    #ECEDEF 55%,
    #6F747D 72%,
    #C9CDD4 90%,
    #4B4F57 100%
  );
  --platinum-soft: linear-gradient(
    180deg,
    #D8DBE0 0%,
    #ABB0BA 50%,
    #6B7079 100%
  );

  /* Type */
  --font-display: "Fraunces", "Times New Roman", ui-serif, serif;
  --font-sans:    "Geist", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono:    "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Scale */
  --fs-mega: clamp(4rem, 14vw, 14rem);
  --fs-xxl:  clamp(2.75rem, 7vw, 7rem);
  --fs-xl:   clamp(2rem, 4.5vw, 4.5rem);
  --fs-lg:   clamp(1.5rem, 2.6vw, 2.5rem);
  --fs-md:   clamp(1.125rem, 1.4vw, 1.375rem);
  --fs-base: 1.0625rem;
  --fs-sm:   0.875rem;
  --fs-xs:   0.75rem;

  /* Spacing */
  --gutter:  clamp(1.25rem, 4vw, 3rem);
  --section: clamp(5rem, 12vw, 10rem);

  /* Motion */
  --ease-power:    cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-quart: cubic-bezier(0.5, 0, 0.75, 0);
  --dur-fast:   220ms;
  --dur-base:   480ms;
  --dur-slow:   900ms;
  --dur-epic:   1600ms;

  /* Surface */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 18px;

  /* Shadow */
  --shadow-soft: 0 30px 80px -30px rgba(0,0,0,0.55);
  --shadow-deep: 0 50px 120px -40px rgba(0,0,0,0.8);
  --glow-silver: 0 0 0 1px rgba(255,255,255,0.06),
                 0 20px 60px -20px rgba(200,205,215,0.15);
}

/* ---- RESET --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* No `scroll-behavior: smooth` here. As a global rule it animates *every*
   scroll — including programmatic ones and browser scroll restoration — which
   fights the user and never settles while the parallax is rewriting transforms.
   main.js opts into smooth scrolling per anchor click instead, and honours
   prefers-reduced-motion when it does. */
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Anchor targets clear the fixed header when jumped to. */
:target { scroll-margin-top: 6.5rem; }
[id] { scroll-margin-top: 6.5rem; }
body { background: var(--ink); color: var(--bone); font-family: var(--font-sans); font-size: var(--fs-base); font-weight: 400; line-height: 1.55; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--silver-200); color: var(--ink); }

/* ---- TYPOGRAPHY ---------------------------------------------- */
h1, h2, h3, h4, h5, .display {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--bone);
}
h1 { font-size: var(--fs-xxl); }
h2 { font-size: var(--fs-xl); letter-spacing: -0.03em; }
h3 { font-size: var(--fs-lg); letter-spacing: -0.02em; }
h4 { font-size: var(--fs-md); letter-spacing: -0.01em; }
.italic-accent { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--silver-400);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--silver-400));
}

.lede { font-size: var(--fs-md); line-height: 1.45; color: var(--silver-200); max-width: 56ch; }
p { color: var(--silver-200); }

/* ---- LAYOUT -------------------------------------------------- */
.shell {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); position: relative; }
.section-tight { padding-block: clamp(3rem, 7vw, 6rem); }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2vw, 2rem); }
.hr-rule { height: 1px; background: var(--rule); border: 0; }
.hr-bright { height: 1px; background: linear-gradient(90deg, transparent, var(--rule-hi), transparent); border: 0; }

/* ---- DECOR --------------------------------------------------- */
.grain::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.metallic-text {
  background: var(--platinum);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  background-position: 0% 50%;
  transition: background-position var(--dur-slow) var(--ease-power);
}
.metallic-text:hover { background-position: 100% 50%; }

.silver-line {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--silver-500) 20%,
    var(--silver-200) 50%,
    var(--silver-500) 80%,
    transparent 100%);
}

/* ---- BUTTONS ------------------------------------------------- */
.btn {
  --bg: var(--bone);
  --fg: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.85em;
  padding: 1.05rem 1.6rem;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out-expo),
              color var(--dur-fast) var(--ease-power);
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform var(--dur-base) var(--ease-out-expo);
  z-index: -1;
  border-radius: inherit;
}
.btn:hover { color: var(--bone); }
.btn:hover::before { transform: translateY(0); }
.btn .arrow {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-out-expo);
}
.btn:hover .arrow { transform: translateX(6px); }

.btn-ghost {
  --bg: transparent;
  --fg: var(--bone);
  border: 1px solid var(--rule-hi);
}
.btn-ghost::before { background: var(--bone); }
.btn-ghost:hover { color: var(--ink); }

.btn-metal {
  background: var(--platinum-soft);
  color: var(--ink);
  font-weight: 600;
  background-size: 200% 200%;
  background-position: 0% 0%;
  transition: background-position var(--dur-slow) var(--ease-power),
              transform var(--dur-base) var(--ease-out-expo);
}
.btn-metal::before { display: none; }
.btn-metal:hover {
  background-position: 100% 100%;
  color: var(--ink);
}

/* ---- NAV ----------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 1.1rem;
  transition: background var(--dur-base) var(--ease-power),
              backdrop-filter var(--dur-base) var(--ease-power),
              border-color var(--dur-base) var(--ease-power);
  border-bottom: 1px solid transparent;
}
/* Unscrolled, the nav sits directly on the hero photograph. Now that the photo
   is no longer darkened, a soft top-down scrim is what keeps the wordmark and
   links readable over bright sky, foliage, or a white roof field. It fades out
   once .scrolled takes over with its own panel. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 5, 0.78) 0%,
    rgba(5, 5, 5, 0.45) 55%,
    rgba(5, 5, 5, 0) 100%
  );
  /* Reaches below the bar itself so the fade is gradual rather than a hard edge. */
  bottom: -2.5rem;
  transition: opacity var(--dur-base) var(--ease-power);
}
.nav.scrolled::before { opacity: 0; }
.nav.scrolled {
  background: rgba(5,5,5,0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--rule);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--bone);
}
/* Brand mark — clean shield extracted from the logo (white on transparent) */
.brand-mark {
  width: 56px; height: 56px;
  background-image: url('/assets/images/brand-mark.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  transition: transform var(--dur-base) var(--ease-out-expo);
  flex-shrink: 0;
}
.brand:hover .brand-mark {
  transform: rotate(-3deg) scale(1.05);
}
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: var(--silver-400);
  font-weight: 400;
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  color: var(--silver-200);
  transition: color var(--dur-fast) var(--ease-power);
  padding-block: 0.4rem;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--bone);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--dur-base) var(--ease-out-expo);
}
.nav-links a:hover { color: var(--bone); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left center; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--rule-hi);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  color: var(--bone);
  transition: background var(--dur-fast) var(--ease-power),
              color var(--dur-fast) var(--ease-power),
              border-color var(--dur-fast) var(--ease-power);
}
.nav-cta:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}
.nav-cta .dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--silver-200);
  box-shadow: 0 0 12px var(--silver-100);
  animation: pulse 2.4s var(--ease-power) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.menu-toggle { display: none; }

@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--bone);
  }
  .menu-toggle .bars { width: 22px; height: 8px; position: relative; }
  .menu-toggle .bars::before,
  .menu-toggle .bars::after {
    content: ""; position: absolute; left: 0; right: 0;
    height: 1px; background: var(--bone);
    transition: transform var(--dur-base) var(--ease-out-expo);
  }
  .menu-toggle .bars::before { top: 0; }
  .menu-toggle .bars::after { bottom: 0; }
  .menu-open .menu-toggle .bars::before { transform: translateY(3.5px) rotate(45deg); }
  .menu-open .menu-toggle .bars::after  { transform: translateY(-3.5px) rotate(-45deg); }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 90;
  display: grid;
  align-content: center;
  padding-inline: var(--gutter);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-power);
}
.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu ul { list-style: none; display: grid; gap: 1.2rem; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.mobile-menu .italic-accent { color: var(--silver-200); }

/* ---- HERO ---------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(3rem, 8vw, 7rem);
  padding-top: 9rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
/* The hero lays its text out with justify-content: flex-end, so the copy sits
   along the bottom edge. The scrim is therefore weighted to the bottom and left
   fully clear across the top two-fifths: that is where the roof plane and sky
   are, and they should read in full colour. Previously a 0.55 wash sat over the
   top of the frame — darkening the subject to protect text that wasn't there. */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 5, 0)    0%,
    rgba(5, 5, 5, 0.10) 25%,
    rgba(5, 5, 5, 0.28) 45%,
    rgba(5, 5, 5, 0.46) 62%,
    rgba(5, 5, 5, 0.74) 82%,
    rgba(5, 5, 5, 0.92) 100%
  );
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* No brightness reduction. A slight saturation lift only, to counter the
     flattening that AVIF/WebP chroma subsampling can introduce. */
  filter: saturate(1.04);
  transform: scale(1.06);
  will-change: transform;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--silver-400);
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-headline {
  font-size: var(--fs-mega);
  line-height: 0.88;
  letter-spacing: -0.045em;
  margin-bottom: 1.5rem;
  /* The hero photo is now bright and full-colour, which is the point — but the
     headline crosses a white metal roof field. A soft shadow buys the contrast
     that would otherwise cost a heavy scrim over the whole photograph. Two
     layers: a tight one for edge definition, a wide diffuse one for separation
     from busy detail. */
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.34),
    0 4px 30px rgba(0, 0, 0, 0.42);
}
.hero-headline .line { display: block; }
.hero-headline .line span {
  display: inline-block;
}
.hero-headline .italic-accent {
  /* Was --silver-300 (#ABB0BA), which fell below usable contrast against a
     sunlit roof. Bone keeps the tonal shift from the roman line while staying
     legible; the italic and the optical size carry the distinction. */
  color: var(--bone);
  font-style: italic;
}
.hero-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.hero-sub p {
  max-width: 50ch;
  color: var(--silver-200);
  font-size: var(--fs-md);
  line-height: 1.5;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 720px) {
  .hero-sub { grid-template-columns: 1fr; }
  .hero-actions { justify-content: flex-start; }
}

.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--silver-400);
}
.scroll-cue .line {
  width: 1px; height: 56px;
  background: linear-gradient(180deg, var(--silver-400), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue .line::after {
  content: "";
  position: absolute; top: -20px; left: 0; right: 0;
  height: 20px;
  background: linear-gradient(180deg, transparent, var(--bone));
  animation: scroll-bead 2.2s var(--ease-power) infinite;
}
@keyframes scroll-bead {
  0% { top: -20px; opacity: 0; }
  30% { opacity: 1; }
  100% { top: 56px; opacity: 0; }
}

/* ---- MARQUEE ------------------------------------------------- */
.marquee {
  border-block: 1px solid var(--rule);
  padding-block: 1.5rem;
  overflow: hidden;
  position: relative;
  background: var(--obsidian);
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; width: 12vw;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--obsidian), transparent); }
.marquee::after  { right: 0; background: linear-gradient(-90deg, var(--obsidian), transparent); }
.marquee-track {
  display: flex;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-track > * {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--silver-300);
  white-space: nowrap;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.marquee-track .dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--platinum-soft);
  display: inline-block;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---- SPLIT SECTION (Commercial / Residential) ---------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.split-card {
  position: relative;
  padding: clamp(2.5rem, 5vw, 5rem) clamp(2rem, 4vw, 4rem);
  border-right: 1px solid var(--rule);
  min-height: 80svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  overflow: hidden;
  isolation: isolate;
  transition: background var(--dur-base) var(--ease-power);
}
.split-card:last-child { border-right: 0; }
/* These two cards carry copy down their full height, so they need more scrim
   than the hero does. What they did NOT need was grayscale(1) at brightness 0.55
   under a 0.25 opacity and a dark gradient — four stacked reductions that left
   the roof invisible. Now: full colour, materially more visible, with the scrim
   doing the legibility work on its own. */
.split-card .bg {
  position: absolute; inset: 0; z-index: -2;
  opacity: 0.6;
  transition: opacity var(--dur-slow) var(--ease-power),
              transform var(--dur-epic) var(--ease-power);
}
.split-card .bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.04);
}
.split-card::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 5, 0.28) 0%,
    rgba(5, 5, 5, 0.46) 45%,
    rgba(5, 5, 5, 0.74) 100%
  );
}
.split-card:hover .bg { opacity: 0.82; transform: scale(1.04); }
.split-card .index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver-400);
}
.split-card h2 {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.92;
}
.split-card p { max-width: 38ch; color: var(--silver-200); font-size: var(--fs-md); }
.split-card .systems {
  display: flex; flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.split-card .systems span {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--rule-hi);
  border-radius: 999px;
  color: var(--silver-200);
}
.split-card .systems .pri {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
  font-weight: 600;
}
.split-card .arrow-link {
  display: inline-flex; align-items: center; gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bone);
  width: fit-content;
}
.split-card .arrow-link svg { transition: transform var(--dur-base) var(--ease-out-expo); }
.split-card:hover .arrow-link svg { transform: translateX(8px); }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split-card { border-right: 0; border-bottom: 1px solid var(--rule); min-height: 70svh;} }

/* ---- CAPABILITIES (system tiles) ----------------------------- */
/* 3 x 2, not 5-across. There are six systems: at five columns the sixth tile sat
   alone on a second row beside four empty cells, and the five narrow columns
   forced the body copy into ~20-character lines. Three wider columns divide six
   evenly and give the text room to read. */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
  margin-top: 4rem;
}
.system-tile {
  background: var(--obsidian);
  padding: clamp(2rem, 3vw, 3rem) clamp(1.5rem, 2.5vw, 2.25rem);
  min-height: 26rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  transition: background var(--dur-base) var(--ease-power);
}
.system-tile::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--platinum);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out-expo);
}
.system-tile:hover { background: var(--graphite); }
.system-tile:hover::before { transform: scaleX(1); }
.system-tile .num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--silver-500);
}
.system-tile h3 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 0.95;
}
.system-tile h3 em {
  font-style: italic;
  color: var(--silver-300);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.system-tile p { color: var(--silver-200); font-size: 0.98rem; }
.system-tile .tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-400);
}
.system-tile .cert {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 999px;
  width: fit-content;
}
@media (max-width: 1080px) {
  .systems-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .systems-grid { grid-template-columns: 1fr; }
}
/* The old orphan-span rule (`:last-child:nth-child(odd)` spanning the full row)
   existed to absorb a 5th tile. With six systems, 3 and 2 columns both divide
   evenly and 1 column is moot, so it is no longer needed — and it would have
   stretched the TPO tile across the full width at two columns. */

/* ---- PROCESS ------------------------------------------------- */
.process { position: relative; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 4rem;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
.process-step {
  background: var(--ink);
  padding: clamp(2rem, 3vw, 2.5rem);
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  transition: background var(--dur-base) var(--ease-power);
}
.process-step:hover { background: var(--obsidian); }
.process-step .step-num {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-style: italic;
  font-weight: 300;
  line-height: 1;
  color: var(--silver-300);
}
.process-step h4 { font-size: var(--fs-lg); }
.process-step p { color: var(--silver-300); font-size: 0.95rem; }
@media (max-width: 1080px) { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .process-steps { grid-template-columns: 1fr; } }

/* ---- BIG STAT BAND ------------------------------------------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--rule);
}
.stat {
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 2.5vw, 2.5rem);
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
}
.stat:last-child { border-right: 0; }
.stat .value {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat .value em { font-style: italic; color: var(--silver-300); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.stat .value-of {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--silver-400);
  margin-left: 0.35em;
  vertical-align: 0.55em;
}
.stat .label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-400);
  max-width: 18ch;
}
@media (max-width: 880px) {
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--rule); }
}


/* ---- PROJECTS GRID ------------------------------------------- */
.projects {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
  margin-top: 3rem;
}
.proj {
  position: relative;
  overflow: hidden;
  background: var(--graphite);
  border-radius: 4px;
  cursor: pointer;
  isolation: isolate;
}
/* The project gallery is the proof of work — it is the last place that should be
   desaturated. It was rendering at grayscale(0.85), i.e. near-monochrome, which
   hid the one thing a roofing buyer wants to look at: the finished roof. Full
   colour now; the caption stays legible on the bottom-anchored scrim below. */
.proj img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.04);
  transform: scale(1.02);
  transition: transform var(--dur-epic) var(--ease-out-expo),
              filter var(--dur-base) var(--ease-power);
  will-change: transform;
}
.proj::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    transparent 45%,
    rgba(5, 5, 5, 0.42) 68%,
    rgba(5, 5, 5, 0.88) 100%
  );
  z-index: 1;
}
.proj-meta {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: clamp(1rem, 2vw, 1.6rem);
  display: flex; justify-content: space-between; align-items: end; gap: 1rem;
}
.proj-meta h4 {
  font-size: var(--fs-md);
  letter-spacing: -0.015em;
  font-weight: 500;
  font-family: var(--font-display);
}
.proj-meta .tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-300);
}
.proj:hover img { transform: scale(1.07); filter: saturate(1.1); }

.proj-a { grid-column: span 7; grid-row: span 2; }
.proj-b { grid-column: span 5; grid-row: span 1; }
.proj-c { grid-column: span 5; grid-row: span 1; }
.proj-d { grid-column: span 4; grid-row: span 1; }
.proj-e { grid-column: span 4; grid-row: span 1; }
.proj-f { grid-column: span 4; grid-row: span 1; }
@media (max-width: 880px) {
  .projects { grid-template-columns: repeat(2, 1fr); }
  .proj-a, .proj-b, .proj-c, .proj-d, .proj-e, .proj-f { grid-column: span 2; grid-row: auto; }
}

/* ---- SERVICE AREA ------------------------------------------- */
.area-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.area-band .map {
  aspect-ratio: 4 / 5;
  position: relative;
  background: var(--graphite);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}
.area-band .map svg { width: 100%; height: 100%; display: block; }
.area-band .cities {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-200);
  margin-top: 2rem;
}
.area-band .cities li {
  display: flex; align-items: center; gap: 0.8rem;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--rule);
}
.area-band .cities li::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--platinum-soft);
  border-radius: 2px;
  flex-shrink: 0;
}
@media (max-width: 880px) {
  .area-band { grid-template-columns: 1fr; }
}

/* ---- CTA BAND ------------------------------------------------ */
.cta-band {
  padding-block: clamp(5rem, 12vw, 9rem);
  text-align: center;
  border-block: 1px solid var(--rule);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(110,116,128,0.22), transparent 65%);
}
.cta-band h2 {
  font-size: clamp(3rem, 9vw, 9rem);
  line-height: 0.92;
  margin-bottom: 2rem;
}
.cta-band p { margin: 0 auto 2.5rem; font-size: var(--fs-md); max-width: 50ch; }
.cta-band .actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- FOOTER -------------------------------------------------- */
.footer {
  padding-block: clamp(4rem, 8vw, 7rem) 2rem;
  border-top: 1px solid var(--rule);
  background: var(--ink);
}
/* Was a fixed `1.4fr 1fr 1fr 1fr` with four children. There are now six (logo,
   Markets, Who We Work With, Systems, Service Areas, Contact), so the link
   columns auto-fit and wrap instead of being crushed. align-items is `start`
   because the columns are no longer the same height. */
.footer-top {
  display: grid;
  grid-template-columns: minmax(200px, 1.3fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: 2.75rem 2rem;
  align-items: start;
}
.footer h5 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--silver-400);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.footer ul { list-style: none; display: grid; gap: 0.7rem; font-size: 0.95rem; color: var(--silver-200); }
.footer ul a { transition: color var(--dur-fast); }
.footer ul a:hover { color: var(--bone); }
.footer .mega-mark {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--bone);
  margin-bottom: 1.25rem;
}
.footer .mega-mark em { font-style: italic; color: var(--silver-300); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }

/* Logo lockup variant — replaces text in footer mega-mark */
.footer .mega-mark--logo {
  display: block;
  margin-bottom: 1.5rem;
  /* No invert() filter. The asset is now genuinely transparent and already
     bone-coloured, so it composites cleanly on any background. The old logo was
     black artwork on an opaque off-white plate, and invert(1) only appeared to
     work because it happened to flip that plate to roughly the page colour. */
  width: clamp(180px, 22vw, 280px);
  height: auto;
  transition: filter var(--dur-base) var(--ease-power),
              transform var(--dur-base) var(--ease-out-expo);
}
.footer .mega-mark--logo:hover {
  transform: translateY(-3px) scale(1.02);
}
.footer-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 4rem; padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--silver-500);
  flex-wrap: wrap; gap: 1rem;
}
@media (max-width: 880px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---- REVEAL ANIMATIONS -------------------------------------- */
/* Gated behind .js, which main.js sets on <html> as its first action.
   Without the gate, every revealed section starts at opacity:0 and stays there
   for anyone whose JavaScript fails to run — including a crawler that renders
   the page but bails before the IntersectionObserver fires. The content is the
   product here; it must never depend on a script to become visible. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity var(--dur-slow) var(--ease-out-expo),
              transform var(--dur-slow) var(--ease-out-expo);
  will-change: transform, opacity;
}
.js [data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}
.js [data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out-expo),
              transform 0.9s var(--ease-out-expo);
}
.js [data-reveal-stagger].in > * { opacity: 1; transform: translateY(0); }
.js [data-reveal-stagger].in > *:nth-child(1) { transition-delay: 0ms; }
.js [data-reveal-stagger].in > *:nth-child(2) { transition-delay: 90ms; }
.js [data-reveal-stagger].in > *:nth-child(3) { transition-delay: 180ms; }
.js [data-reveal-stagger].in > *:nth-child(4) { transition-delay: 270ms; }
.js [data-reveal-stagger].in > *:nth-child(5) { transition-delay: 360ms; }
.js [data-reveal-stagger].in > *:nth-child(6) { transition-delay: 450ms; }

/* The custom cursor was removed. It replaced the OS pointer with a small dot
   using mix-blend-mode: difference, which hides the affordance a visitor relies
   on to tell what is clickable — a direct cost on a site whose purpose is
   getting people to call or submit a form.
   Honour the reduced-motion preference for everything that remains. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal],
  .js [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---- UTILITIES ----------------------------------------------- */
.no-wrap { white-space: nowrap; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; } .gap-4 { gap: 2rem; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-4 { margin-top: 2rem; } .mt-8 { margin-top: 4rem; }
.text-mono { font-family: var(--font-mono); }
.text-silver { color: var(--silver-300); }
.text-bone { color: var(--bone); }
.col-7 { grid-column: span 7; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-8 { grid-column: span 8; }
@media (max-width: 880px) { .col-7, .col-5, .col-6, .col-4, .col-8 { grid-column: span 12; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; }
}

/* ==============================================================
   CONVERSION COMPONENTS
   Added in the 2026-07-29 overhaul. Conversion is the site's stated
   first priority, so these carry real weight: a persistent call
   target, visible credentials, and answers to the questions that
   otherwise become an unanswered email.
   ============================================================== */

/* ---- SKIP LINK ----------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.85rem 1.25rem;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

/* ---- HEADER PHONE + ACTIONS ---------------------------------- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
}
.nav-phone {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--bone);
  white-space: nowrap;
  transition: color var(--dur-base) var(--ease-power);
}
.nav-phone:hover { color: var(--silver-200); }
.nav-phone-label {
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--silver-500);
}
/* Below the desktop breakpoint the sticky action bar takes over, so the header
   phone would be a duplicate call target competing with it. */
@media (max-width: 1080px) { .nav-phone { display: none; } }

/* ---- MOBILE MENU FOOTER -------------------------------------- */
.mobile-menu-foot {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}
.mobile-menu-foot a { color: var(--silver-200); }

/* ---- FOOTER BLURB ------------------------------------------- */
.footer-blurb {
  max-width: 34ch;
  color: var(--silver-300);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- STICKY MOBILE ACTION BAR ------------------------------- */
.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9000;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule-hi);
  border-top: 1px solid var(--rule-hi);
  /* Respect the iOS home-indicator inset so the bar never sits under it. */
  padding-bottom: env(safe-area-inset-bottom, 0);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}
.action-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  /* 3.5rem clears the 44px minimum touch target with room to spare. */
  min-height: 3.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background var(--dur-base) var(--ease-power);
}
.action-bar-call {
  background: var(--bone);
  color: var(--ink);
  font-weight: 600;
}
.action-bar-call:active { background: var(--silver-200); }
.action-bar-quote {
  background: rgba(10, 10, 10, 0.92);
  color: var(--bone);
}
.action-bar-quote:active { background: rgba(30, 30, 30, 0.95); }

@media (min-width: 900px) { .action-bar { display: none; } }
/* Keep the bar from covering the end of the page on mobile. */
@media (max-width: 899px) { .footer { padding-bottom: 5rem; } }

/* ---- CREDENTIALS BAND --------------------------------------- */
.credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}
.credential {
  background: var(--ink);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display: grid;
  gap: 0.6rem;
  align-content: start;
}
.credential .cred-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--silver-500);
}
.credential .cred-value {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--bone);
}
.credential .cred-note {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--silver-300);
}

/* ---- FAQ ---------------------------------------------------- */
.faq {
  border-top: 1px solid var(--rule);
  margin-top: 2.5rem;
}
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  /* list-style on the summary itself removes the default marker in Firefox;
     ::-webkit-details-marker handles older Safari. */
  list-style: none;
  cursor: pointer;
  padding: clamp(1.25rem, 2.2vw, 1.75rem) 3rem clamp(1.25rem, 2.2vw, 1.75rem) 0;
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  letter-spacing: -0.015em;
  color: var(--bone);
  transition: color var(--dur-base) var(--ease-power);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--silver-200); }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 12px; height: 12px;
  margin-top: -6px;
  border-right: 1.5px solid var(--silver-300);
  border-bottom: 1.5px solid var(--silver-300);
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform var(--dur-base) var(--ease-out-expo);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .faq-body {
  padding: 0 3rem clamp(1.5rem, 2.5vw, 2rem) 0;
  max-width: 78ch;
  color: var(--silver-200);
  font-size: 1rem;
  line-height: 1.65;
}
.faq .faq-body p + p { margin-top: 0.9rem; }
.faq .faq-body a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; }

/* ---- H1 KICKER ---------------------------------------------- */
/* Lets the display headline keep its art direction while the h1 still states
   plainly what the business does and where — the two things a search engine and
   a first-time visitor both need from it. */
.h1-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(0.66rem, 1.1vw, 0.78rem);
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  /* Bone rather than silver, with a heavier shadow: this line lands around a
     quarter of the way down the hero, which on the current photograph is the
     brightest part of the roof field. Silver-200 was legible but weak there. */
  color: var(--bone);
  font-variation-settings: normal;
  /* The parent .hero-headline sets line-height: 0.88 at up to 14rem. Glyphs
     overflow that line box by roughly 12% of the font size — about 27px — and
     were painting straight over this kicker. Resetting line-height here and
     clearing enough space below keeps them apart at every viewport. */
  line-height: 1.4;
  margin-bottom: clamp(1.5rem, 3.5vw, 2.75rem);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.6),
    0 2px 16px rgba(0, 0, 0, 0.75);
}

/* ---- LIGHTBOX ----------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: none;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(3, 3, 3, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox[open],
.lightbox.is-open { display: grid; }
.lightbox figure {
  margin: 0;
  max-width: min(1400px, 100%);
  display: grid;
  gap: 1rem;
  justify-items: center;
}
.lightbox img {
  max-width: 100%;
  max-height: 78svh;
  width: auto; height: auto;
  border-radius: 4px;
}
.lightbox figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-300);
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule-hi);
  border-radius: 999px;
  color: var(--bone);
  font-size: 1.1rem;
  background: rgba(20, 20, 20, 0.7);
}
.lightbox-close:hover { border-color: var(--bone); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule-hi);
  border-radius: 999px;
  color: var(--bone);
  background: rgba(20, 20, 20, 0.7);
}
.lightbox-nav:hover { border-color: var(--bone); }
.lightbox-prev { left: clamp(0.5rem, 2vw, 1.5rem); }
.lightbox-next { right: clamp(0.5rem, 2vw, 1.5rem); }
html.lightbox-open { overflow: hidden; }
