/* =====================================================================
   SealProof Corp — Site CSS
   Components and section patterns
   ===================================================================== */

@import url("./tokens.css?v=20");
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,700&family=Inter:wght@400;500;700&family=Inter:ital,wght@1,400&display=swap");

/* Local display face — Universal Accreditation by TracerTong/Paul Reid.
   Freeware for personal use; £20 commercial license required before launch.
   See assets/fonts/UniAcc_LICENSE.txt */
@font-face {
  font-family: "Universal Accreditation";
  src: url("../fonts/Uni_acc.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Universal Accreditation";
  src: url("../fonts/Uni_acc_Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Reset / base ----------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--deep-ink);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--w-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, picture, video { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-quick);
}

p { margin: 0 0 1em 0; }

/* ---------- Layout helpers --------------------------------------- */

.container {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

.container--wide {
  max-width: var(--max-w);
}

.section {
  padding: var(--section-pad-y) 0;
}

.section--tight {
  padding: var(--section-pad-y-tight) 0;
}

.section--charcoal {
  background: var(--charcoal);
  color: var(--paper);
}

.section--charcoal h1, .section--charcoal h2, .section--charcoal h3 {
  color: var(--paper);
}

/* ---------- Eyebrow + cyan rule signature ------------------------ */

.eyebrow {
  font-family: var(--body);
  font-size: var(--fs-eyebrow);
  font-weight: var(--w-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--cool-gray);
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: var(--rule-cyan-w) solid var(--cyan);
  margin-bottom: 28px;
  line-height: 1;
}

.eyebrow--bronze {
  color: var(--bronze);
}

.section--charcoal .eyebrow {
  color: rgba(250, 250, 247, 0.65);
}

/* ---------- Type ------------------------------------------------- */

h1, .h1 {
  font-family: var(--display);
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: var(--w-regular);
  color: var(--navy);
  letter-spacing: -0.014em;
  margin: 0 0 0.4em 0;
}

h2, .h2 {
  font-family: var(--display);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--w-regular);
  color: var(--navy);
  letter-spacing: -0.008em;
  margin: 0 0 0.5em 0;
}

h3, .h3 {
  font-family: var(--display);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--w-medium);
  color: var(--navy);
  margin: 0 0 0.35em 0;
}

.subhead {
  font-family: var(--body);
  font-size: 21px;
  line-height: 1.45;
  color: var(--cool-gray);
  font-weight: var(--w-regular);
  max-width: 640px;
}

.section--charcoal .subhead { color: rgba(250, 250, 247, 0.78); }

/* ---------- Buttons ---------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: var(--w-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--t-quick), color var(--t-quick), border var(--t-quick);
}

.btn--primary {
  background: var(--navy);
  color: var(--paper);
}
.btn--primary:hover {
  background: var(--deep-ink);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--ghost:hover {
  background: var(--navy);
  color: var(--paper);
}

.section--charcoal .btn--ghost {
  color: var(--paper);
  border-color: var(--paper);
}
.section--charcoal .btn--ghost:hover {
  background: var(--paper);
  color: var(--navy);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: var(--w-medium);
  color: var(--navy);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-quick);
}
.link-arrow:hover { border-bottom-color: var(--cyan); }

.section--charcoal .link-arrow { color: var(--paper); }

/* ---------- Header ----------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0;
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.site-header__logo {
  /* Source PNG is a stacked lockup (icon + "SealProof" wordmark + "WATERPROOFING
     CONTRACTOR" tagline). Show the full lockup at a readable size — tagline reads
     small but accurately. A properly-stripped PNG can replace this file later. */
  height: 56px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.site-header__logo img {
  height: 100%;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.site-nav a {
  font-family: var(--body);
  font-size: 14px;
  font-weight: var(--w-medium);
  color: var(--deep-ink);
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-quick);
}
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a.is-active { color: var(--navy); }
.site-nav a.is-active::after { transform: scaleX(1); }

.site-header__utility {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-header__phone {
  font-family: var(--body);
  font-size: 14px;
  font-weight: var(--w-medium);
  color: var(--navy);
  letter-spacing: 0.02em;
}

/* Mobile nav toggle — display:none on desktop, so desktop layout is untouched */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform var(--t-quick), opacity var(--t-quick);
}
.site-nav__phone { display: none; }

@media (max-width: 920px) {
  .site-header__utility .site-header__phone { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 12px 24px rgba(15, 20, 25, 0.08);
    padding: 8px 0 12px;
  }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav a {
    padding: 14px 24px;
    font-size: 15px;
    border-bottom: 1px solid var(--hairline);
  }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav a::after { display: none; }
  .site-nav__phone { display: block; color: var(--navy); font-weight: var(--w-medium); }
}

/* ---------- Footer ----------------------------------------------- */

.site-footer {
  background: var(--charcoal);
  color: var(--paper);
  padding: 96px 0 36px;
  position: relative;
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(250, 250, 247, 0.12);
}
.site-footer__col h4 {
  font-family: var(--body);
  font-size: 11px;
  font-weight: var(--w-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 18px 0;
}
.site-footer__col ul {
  list-style: none;
  margin: 0; padding: 0;
}
.site-footer__col li {
  margin: 0 0 10px 0;
}
.site-footer__col a {
  font-family: var(--body);
  font-size: 14px;
  color: rgba(250, 250, 247, 0.78);
  font-weight: var(--w-regular);
}
.site-footer__col a:hover { color: var(--cyan); }
.site-footer__col p {
  font-family: var(--body);
  font-size: 14px;
  color: rgba(250, 250, 247, 0.78);
  margin: 0 0 6px 0;
}
.site-footer__bottom {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--body);
  font-size: 12px;
  color: rgba(250, 250, 247, 0.55);
  letter-spacing: 0.04em;
}

@media (max-width: 800px) {
  .site-footer__cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer__bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ---------- HEROES (photo-backed) -------------------------------- */

.page-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  padding: 120px 0 80px;
  overflow: hidden;
  background-color: var(--charcoal);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Warm color grade tweak via CSS filter — matches "+5 warmth, -5 sat" intent */
  isolation: isolate;
}
.page-hero::before {
  /* Directional NAVY gradient — protects bottom-left text zone, lets the
     right side stay bright and clean (where the metadata block sits).
     Photo retains full color; only the text region is dimmed. */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg,
      rgba(14,42,71,0.68) 0%,
      rgba(14,42,71,0.55) 28%,
      rgba(14,42,71,0.18) 60%,
      rgba(14,42,71,0.00) 100%);
  pointer-events: none;
  z-index: 0;
}
.page-hero::after {
  /* Soft bottom anchor under text stack — keeps long sub-headlines readable */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(14,42,71,0.00) 55%,
      rgba(14,42,71,0.45) 100%);
  pointer-events: none;
  z-index: 0;
}
.page-hero > * { position: relative; z-index: 1; }

/* Slot bindings — swap the file at the path to swap the photo */
.page-hero--home          { background-image: url("../img/hero-home.jpg"); }
.page-hero--capabilities  { background-image: url("../img/hero-capabilities.jpg"); }
.page-hero--projects      { background-image: url("../img/hero-projects.jpg"); }
.page-hero--about         { background-image: url("../img/hero-about.jpg"); }
.page-hero--contact       { background-image: url("../img/hero-contact.jpg"); }
.page-hero--compliance    { background-image: url("../img/hero-compliance.jpg"); }

.home-hero {
  /* Photo-only background. The dark left-half overlay lives on
     .home-hero::before so it sits as a real layer between the photo
     and the text — text on z-index:2, overlay on z-index:1, photo at 0. */
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  padding: 120px 0 80px;
  overflow: hidden;
  background-color: var(--charcoal);
  background-image: url("../img/hero-home.jpg");
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.home-hero::before {
  /* Left-half dark navy overlay — full opacity at left edge,
     transparent at ~62% across, leaving the right side (where the
     Authorized Installer / Coverage block sits) fully visible. */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(10, 25, 47, 0.85) 0%,
      rgba(10, 25, 47, 0.78) 25%,
      rgba(10, 25, 47, 0.45) 48%,
      rgba(10, 25, 47, 0.00) 62%);
  pointer-events: none;
  z-index: 1;
}
.home-hero::after {
  /* No bottom-anchor on home; left overlay handles legibility. */
  content: none;
}
.home-hero__inner {
  position: relative;
  z-index: 2;            /* float text + meta block above the overlay */
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: end;
  width: 100%;
}

/* Mobile: text reflows to single column, so extend the overlay further
   across to cover the full text zone at smaller viewports. */
@media (max-width: 920px) {
  .home-hero::before {
    background: linear-gradient(180deg,
        rgba(10, 25, 47, 0.55) 0%,
        rgba(10, 25, 47, 0.85) 60%,
        rgba(10, 25, 47, 0.92) 100%);
  }
}
.home-hero__inner .col-text { color: var(--paper); }
.home-hero h1,
.page-hero h1 {
  color: var(--paper);
  margin-bottom: 28px;
  letter-spacing: -0.018em;
  text-wrap: pretty;      /* modern Chrome — avoids orphans, respects br */
}
.home-hero .col-text,
.page-hero .col-text {
  /* Constrain to ~7 columns of the 12-col grid so long H1s break cleanly */
  max-width: 820px;
}

/* Desktop-only line breaks — used inside hero H1s to anchor break points
   that read intentionally rather than rag-randomly. Hidden on mobile so
   small screens fall back to natural wrapping. */
.br-desktop { display: inline; }
@media (max-width: 920px) {
  .br-desktop { display: none; }
}
.home-hero .eyebrow {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
/* Hero subhead — bright white on every page (home + other 4) */
.home-hero .subhead,
.page-hero .subhead {
  color: var(--paper);
  font-weight: var(--w-medium);
  font-size: 19px;
  margin-bottom: 36px;
  max-width: 580px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}
.home-hero__cta { display: flex; align-items: center; gap: 24px; }
.home-hero__inner .col-meta {
  /* Architectural callout — charcoal panel @ 80%, 24px padding,
     2px bronze hairline on LEFT edge only. Reads as a credentialed block,
     not floating type over a photo. */
  align-self: end;
  background: rgba(27, 35, 44, 0.80);             /* charcoal #1B232C @ 80% */
  border-left: 2px solid var(--bronze);
  padding: 24px;
  font-family: var(--body);
  font-size: 13px;
  color: var(--paper);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.7;
  font-weight: var(--w-medium);
}
.home-hero__inner .col-meta strong {
  color: var(--bronze);
  font-weight: var(--w-bold);
  letter-spacing: 0.18em;
}

/* ---------- Brand Label (ACTIVE — Universal Accreditation typeset) ----
   Movie-poster condensed display, sourced from Sean's font drop. */
.brand-label {
  display: block;
  font-family: "Universal Accreditation", "Bebas Neue", "Impact", sans-serif;
  font-weight: 400;
  font-size: 64px;
  line-height: 1.0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 22px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
@media (max-width: 920px) {
  .brand-label { font-size: 42px; margin-bottom: 14px; }
}

/* ---------- Brand Mark (ACTIVE — cropped SealProof wordmark) ---
   Programmatically cropped from the source logo PNG (just the
   "SealProof Corp." wordmark band, no shield). Source 962x110.
   `brightness(0) invert(1)` recolors the cyan-blue source pixels to
   pure white at render time so we don't need a second asset file.
   Drop-shadow for depth on the dark hero photo. */
.brand-mark {
  display: block;
  height: 76px;
  width: auto;
  margin-bottom: 24px;
  filter: brightness(0) invert(1) drop-shadow(0 2px 14px rgba(0,0,0,0.55));
}
@media (max-width: 920px) {
  .brand-mark { height: 52px; margin-bottom: 16px; }
}

/* About-specific lighter overlay — keep prior treatment so photo color stays */
.page-hero.page-hero--about::before {
  background: linear-gradient(95deg,
      rgba(14,42,71,0.55) 0%,
      rgba(14,42,71,0.40) 30%,
      rgba(14,42,71,0.10) 65%,
      rgba(14,42,71,0.00) 100%);
}
.page-hero.page-hero--about::after {
  background: linear-gradient(180deg,
      rgba(14,42,71,0.00) 60%,
      rgba(14,42,71,0.30) 100%);
}
@media (max-width: 920px) {
  .home-hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .home-hero__inner .col-meta { border-left: none; border-top: 1px solid rgba(250,250,247,0.18); padding-left: 0; padding-top: 24px; }
  .home-hero { min-height: auto; padding: 100px 0 64px; }
}

/* ---------- GC PARTNER WALL -------------------------------------- */

.gc-wall {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.gc-wall__header {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  margin-bottom: 56px;
}
.gc-wall__names {
  /* Match the manufacturer wall geometry — same gutter, same row height */
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  border: none;
  margin: 0;
  padding: 0;
}
.gc-wall__names li {
  list-style: none;
  border: none;
  border-bottom: 1px solid var(--hairline);
  padding: 0 0 14px 0;
  font-family: var(--display);
  font-size: 17px;
  color: var(--cool-gray);
  font-weight: var(--w-regular);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  transition: color var(--t-quick);
}
.gc-wall__names li:hover { color: var(--navy); }
@media (max-width: 920px) {
  .gc-wall__header { grid-template-columns: 1fr; gap: 24px; margin-bottom: 32px; }
  .gc-wall__names { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- CAPABILITY GRID -------------------------------------- */

.cap-section {
  background: var(--paper);
}
.cap-section__inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}
.cap-section__intro p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--deep-ink);
  max-width: 460px;
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.cap-card {
  background: var(--paper);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: background var(--t-quick);
  position: relative;
  min-height: 200px;
}
.cap-card:hover { background: #fff; }
.cap-card__num {
  font-family: var(--body);
  font-size: 11px;
  font-weight: var(--w-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
}
.cap-card__title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: var(--w-medium);
  color: var(--navy);
  line-height: 1.2;
  margin: 0;
}
.cap-card__body {
  font-family: var(--body);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--deep-ink);
  margin: 0;
}
.cap-card__more {
  margin-top: auto;
  font-family: var(--body);
  font-size: 13px;
  font-weight: var(--w-medium);
  color: var(--cyan);
  opacity: 0;
  transition: opacity var(--t-quick);
}
.cap-card:hover .cap-card__more { opacity: 1; }

@media (max-width: 920px) {
  .cap-section__inner { grid-template-columns: 1fr; gap: 40px; }
  .cap-grid { grid-template-columns: 1fr; }
}

/* ---------- FEATURED PROJECTS ------------------------------------ */

.proj-section { background: var(--paper); }
.proj-section__header {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.proj-tile {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform var(--t-quick);
}
.proj-tile:hover { transform: translateY(-4px); }
.proj-tile__img {
  aspect-ratio: 4 / 5;
  background-color: var(--charcoal);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.proj-tile__img::before {
  /* subtle dark vignette for tile cohesion + bronze numeral legibility */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,42,71,0) 50%, rgba(14,42,71,0.55) 100%);
  z-index: 1;
}
.proj-tile__img::after {
  content: attr(data-num);
  position: absolute;
  bottom: -28px;
  right: -8px;
  font-family: var(--display);
  font-size: 220px;
  line-height: 1;
  color: rgba(176, 138, 74, 0.55);
  font-weight: var(--w-regular);
  pointer-events: none;
  z-index: 2;
  text-shadow: 0 2px 18px rgba(0,0,0,0.25);
}
.proj-tile--atlantic    .proj-tile__img { background-image: url("../img/proj-atlantic.jpg"); }
.proj-tile--heights     .proj-tile__img { background-image: url("../img/proj-heights.jpg"); }
.proj-tile--yeshiva     .proj-tile__img { background-image: url("../img/proj-yeshiva.jpg"); }
.proj-tile--sagharbor   .proj-tile__img { background-image: url("../img/proj-sagharbor.jpg"); }
.proj-tile--rockefeller .proj-tile__img { background-image: url("../img/proj-rockefeller.jpg"); }
.proj-tile--corbin      .proj-tile__img { background-image: url("../img/proj-heights.jpg"); }
.proj-tile--yonkers     .proj-tile__img { background-image: url("../img/proj-yeshiva.jpg"); }
.proj-tile--w11th       .proj-tile__img { background-image: url("../img/proj-rockefeller.jpg"); }
.proj-tile__meta {
  padding: 20px 0 0 0;
}
.proj-tile__name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: var(--w-medium);
  color: var(--navy);
  margin: 0 0 4px 0;
}
.proj-tile__loc {
  font-family: var(--body);
  font-size: 14px;
  color: var(--cool-gray);
  margin: 0 0 10px 0;
}
.proj-tile__scope {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cool-gray);
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 920px) {
  .proj-section__header { grid-template-columns: 1fr; gap: 24px; margin-bottom: 32px; }
  .proj-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  /* bronze numerals: accent, not takeover — scale with the smaller tiles */
  .proj-tile__img::after { font-size: 96px; bottom: -12px; right: -4px; }
}
@media (max-width: 640px) {
  .proj-grid { grid-template-columns: 1fr; gap: 40px; }
  .proj-tile__img::after { font-size: 120px; bottom: -14px; right: -6px; }
}

/* ---------- MANUFACTURER BAND ------------------------------------ */

.mfr-section { background: var(--paper); border-top: 1px solid var(--hairline); }
.mfr-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.mfr-grid li {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  font-family: var(--display);
  font-size: 16px;
  color: var(--cool-gray);
  font-weight: var(--w-regular) !important;   /* defensive — no bold on any item */
  font-style: normal;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 12px;
  transition: color var(--t-quick);
}
.mfr-grid li:hover { color: var(--navy); }
@media (max-width: 920px) {
  .mfr-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

/* ---------- COMPLIANCE STRIP ------------------------------------- */

.compliance-strip {
  background: var(--charcoal);
  color: var(--paper);
  padding: 36px 0;
  border-top: 0.5px solid var(--bronze);
  border-bottom: 0.5px solid var(--bronze);
}
.compliance-strip ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
}
.compliance-strip li {
  font-family: var(--body);
  font-size: 13px;
  font-weight: var(--w-medium);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 32px;
}
.compliance-strip li:not(:last-child)::after {
  content: "·";
  color: var(--bronze);
  font-size: 18px;
  margin-left: 32px;
}

/* ---------- CLOSING CTA ------------------------------------------ */

.cta-section {
  background: var(--charcoal);
  color: var(--paper);
  text-align: center;
  padding: 140px 0;
}
.cta-section h2 {
  color: var(--paper);
  max-width: 820px;
  margin: 0 auto 24px;
}
.cta-section .subhead {
  color: rgba(250,250,247,0.78);
  margin: 0 auto 40px;
  text-align: center;
}
.cta-section .btn { margin-bottom: 32px; }
.cta-section__phone {
  font-family: var(--body);
  font-size: 16px;
  font-weight: var(--w-medium);
  color: rgba(176, 138, 74, 0.78);   /* muted bronze */
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.cta-section__phone a {
  color: rgba(176, 138, 74, 0.92);
  border-bottom: 1px solid rgba(176, 138, 74, 0.4);
  padding-bottom: 1px;
  transition: color var(--t-quick), border-color var(--t-quick);
}
.cta-section__phone a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ---------- Case Study Pages ------------------------------------ */

.case-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  padding: 120px 0 80px;
  overflow: hidden;
  background-color: var(--charcoal);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.case-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg,
      rgba(14,42,71,0.78) 0%,
      rgba(14,42,71,0.55) 32%,
      rgba(14,42,71,0.20) 62%,
      rgba(14,42,71,0.10) 100%);
  pointer-events: none;
  z-index: 1;
}
.case-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,42,71,0) 60%, rgba(14,42,71,0.45) 100%);
  pointer-events: none;
  z-index: 1;
}
.case-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: end;
  width: 100%;
}
.case-hero__inner .col-text { color: var(--paper); }
.case-hero h1 {
  color: var(--paper);
  margin-bottom: 24px;
  letter-spacing: -0.018em;
  font-size: 48px;
  line-height: 1.05;
}
.case-hero .col-meta {
  background: rgba(27, 35, 44, 0.80);
  border-left: 2px solid var(--bronze);
  padding: 24px;
  font-family: var(--body);
  font-size: 13px;
  color: var(--paper);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.7;
  font-weight: var(--w-medium);
  align-self: end;
}
.case-hero .col-meta strong {
  color: var(--bronze);
  font-weight: var(--w-bold);
  letter-spacing: 0.18em;
}
@media (max-width: 920px) {
  .case-hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .case-hero h1 { font-size: 32px; }
}

/* Case Study Metadata definition list */
dl.case-meta {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px 32px;
  margin: 24px 0 0 0;
  font-family: var(--body);
  font-size: 14px;
}
dl.case-meta dt {
  font-weight: var(--w-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--cool-gray);
  padding-top: 2px;
}
dl.case-meta dd {
  margin: 0;
  color: var(--deep-ink);
  font-size: 14.5px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 12px;
}
@media (max-width: 800px) {
  dl.case-meta { grid-template-columns: 1fr; gap: 4px 0; }
  dl.case-meta dd { margin-bottom: 12px; }
}

/* Case Study Gallery */
.case-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 24px;
}
.case-gallery .gallery-tile {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  background-color: var(--charcoal);
  transition: transform var(--t-quick);
}
.case-gallery .gallery-tile:hover { transform: scale(1.02); }
@media (max-width: 800px) {
  .case-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* Related projects grid (3-up) */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}
@media (max-width: 920px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ---------- Home-hero video (autoplay loop) --------------------- */
/* Sits between the JPG fallback (background-image on .home-hero) and
   the text. Same pattern as case-hero video. */
.home-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .home-hero__video { display: none; }
}

/* ---------- Case-hero video (autoplay loop) --------------------- */
/* Sits between the JPG fallback (background-image, z-index:0) and the
   gradient overlay (.case-hero::before, z-index:1). On slow networks or
   if video fails to load, the poster JPG carries the hero alone. */
.case-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .case-hero__video { display: none; }
}

/* ---------- Lightbox -------------------------------------------- */
/* Click any .gallery-link to enlarge. Built by assets/js/lightbox.js. */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(14, 42, 71, 0.96);     /* navy backdrop */
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 48px 80px;
}
.lightbox.is-open { display: flex; }
.lightbox__figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  display: block;
  box-shadow: 0 12px 60px rgba(0, 0, 0, 0.45);
}
.lightbox__caption {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 250, 247, 0.7);
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(250, 250, 247, 0.3);
  color: var(--paper);
  cursor: pointer;
  font-family: var(--body);
  transition: background var(--t-quick), border-color var(--t-quick);
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(250, 250, 247, 0.12);
  border-color: var(--bronze);
}
.lightbox__close {
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  font-size: 22px;
  line-height: 1;
}
.lightbox__prev,
.lightbox__next {
  top: 50%;
  width: 52px; height: 52px;
  font-size: 28px;
  line-height: 1;
  transform: translateY(-50%);
}
.lightbox__prev { left: 24px; }
.lightbox__next { right: 24px; }

@media (max-width: 800px) {
  .lightbox { padding: 16px; }
  .lightbox__prev, .lightbox__next { width: 40px; height: 40px; font-size: 22px; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .lightbox__close { top: 12px; right: 12px; width: 38px; height: 38px; }
}

/* Make gallery tiles look clickable */
a.gallery-link {
  display: block;
  cursor: zoom-in;
  text-decoration: none;
  color: inherit;
}

/* ---------- Scroll reveal --------------------------------------- */
/* Sections start dimmed and shifted; .is-visible (added by reveal.js
   via IntersectionObserver) fades them in. Subtle, no parallax. */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Who We Help — charcoal reverse, staggered child reveal ---
   Charcoal ground for dramatic pause between photo-hero above and the
   paper-white sections below. Children animate in on 30% intersection
   with 200ms staggered delay. Override default section reveal so parent
   is always visible — the children carry the entrance. */
.section--who-we-help {
  background: var(--charcoal);
  padding: 140px 0;
  /* Override default scroll-reveal so the parent doesn't fade — children handle it */
  opacity: 1;
  transform: none;
}
.section--who-we-help.reveal,
.section--who-we-help.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: none;
}
.section--who-we-help .who-we-help__grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 64px;
  align-items: start;
}
.section--who-we-help .who-we-help__col-eyebrow {
  position: relative;
  min-height: 340px;
}
.section--who-we-help .who-we-help__watermark {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 340px;
  width: auto;
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.section--who-we-help .who-we-help__eyebrow {
  /* base eyebrow + bronze color comes from .eyebrow--bronze */
  color: var(--bronze);
  display: inline-block;
  position: relative;
  z-index: 1;
}
.section--who-we-help .who-we-help__h2 {
  font-family: var(--display);
  font-size: 60px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--paper);
  font-weight: var(--w-regular);
  margin: 0;
}
.section--who-we-help .who-we-help__body {
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.55;
  color: rgba(250, 250, 247, 0.9);
  margin: 36px 0 0;
  max-width: 64ch;
}
.section--who-we-help .who-we-help__closer {
  font-family: var(--display);
  font-style: italic;
  font-size: 32px;
  line-height: 1.3;
  color: var(--bronze);
  font-weight: var(--w-regular);
  margin: 72px 0 0;
  max-width: 36ch;
}

/* Mobile */
@media (max-width: 768px) {
  .section--who-we-help { padding: 96px 0; }
  .section--who-we-help .who-we-help__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .section--who-we-help .who-we-help__h2 { font-size: 36px; }
  .section--who-we-help .who-we-help__body { font-size: 17px; margin-top: 24px; }
  .section--who-we-help .who-we-help__closer { font-size: 24px; margin-top: 56px; }
  /* Watermark hidden on mobile — single column collapses the spatial concept */
  .section--who-we-help .who-we-help__watermark { display: none; }
  .section--who-we-help .who-we-help__col-eyebrow { min-height: 0; }
}

/* Staggered child reveal (triggered by .wwh-in-view from scoped IntersectionObserver) */
.section--who-we-help [data-wwh-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 600ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.section--who-we-help.wwh-in-view [data-wwh-reveal] {
  opacity: 1;
  transform: translateY(0);
}
.section--who-we-help.wwh-in-view [data-wwh-reveal="1"] { transition-delay: 0ms; }
.section--who-we-help.wwh-in-view [data-wwh-reveal="2"] { transition-delay: 200ms; }
.section--who-we-help.wwh-in-view [data-wwh-reveal="3"] { transition-delay: 400ms; }
.section--who-we-help.wwh-in-view [data-wwh-reveal="4"] { transition-delay: 600ms; }

@media (prefers-reduced-motion: reduce) {
  .section--who-we-help [data-wwh-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Utility ---------------------------------------------- */

.divider { height: 1px; background: var(--hairline); margin: 0; border: none; }
.bronze-rule { height: 0.5px; background: var(--bronze); border: none; width: 80px; margin: 0 0 24px 0; }
.cyan-rule { height: 2px; background: var(--cyan); border: none; width: 64px; margin: 0 0 24px 0; }


/* ---------- Manufacturer logo grid -----------------------------
   Cells fit any aspect ratio uniformly — fixed height, max width.
   Logos render in their native color; placeholders render typographic. */
.mfr-category {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 64px;
  padding: 48px 0;
  border-bottom: 1px solid var(--hairline);
}
.mfr-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-items: center;
}
.mfr-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  padding: 14px 18px;
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  transition: transform var(--t-quick), border-color var(--t-quick);
}
.mfr-tile:hover {
  transform: translateY(-2px);
  border-color: var(--bronze);
}
.mfr-tile img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.mfr-tile--text {
  background: var(--paper);
  border: 1px dashed var(--hairline);
}
.mfr-tile--text span {
  font-family: var(--display);
  font-size: 14px;
  color: var(--cool-gray);
  font-style: italic;
  text-align: center;
  line-height: 1.2;
}
@media (max-width: 920px) {
  .mfr-category { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
  .mfr-logo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .mfr-logo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   PHONE SPACING TUNE (<=560px) — compress the hardcoded desktop-scale
   vertical padding on the big dark sections so mobile isn't a bloated,
   empty, 30-screen scroll. Padding only; columns/nav handled by the
   breakpoints above. Desktop (>560px) untouched.
   ================================================================ */
@media (max-width: 560px) {
  .home-hero            { padding: 48px 0 40px; }
  .cta-section          { padding: 60px 0; }
  .section--who-we-help { padding: 52px 0; }
  .site-footer          { padding: 56px 0 32px; }
  .compliance-strip     { padding: 32px 0; }
}

/* ================================================================
   INLINE-GRID MOBILE COLLAPSE (<=920px) — about/capabilities/
   compliance/contact/manufacturers lay out sections with inline
   style="grid-template-columns: ..." which no media query can beat
   without !important. Collapse them all to one column on mobile;
   4-across stat rows go 2x2. Desktop (>920px) untouched — these
   rules simply never apply there.
   ================================================================ */
@media (max-width: 920px) {
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  [style*="repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 32px !important;
  }
  /* about.html stat numerals: 96px inline doesn't fit a 2x2 phone grid */
  [style*="font-size: 96px"] { font-size: 56px !important; }
  /* grid items default to min-width:auto and refuse to shrink below their
     widest word, pushing 1fr tracks past the viewport — let them shrink */
  [style*="grid-template-columns"] > * { min-width: 0; }
}
@media (max-width: 640px) {
  /* "150,000 SF" can't fit half a phone even at 56px — stat rows go
     single-column on phones (2x2 stays for 641-920 tablets) */
  [style*="repeat(4"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
}
