/* ==========================================================================
   Professional Equipment Corp. (PEC) — Global Stylesheet
   Palette: Navy blue, gray, white  +  safety-orange CTA accent
   Style direction: Trust & Authority  |  Fonts: Lexend / Source Sans 3
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --navy:        #0A2342;
  --navy-800:    #102e57;
  --navy-700:    #163b6b;
  --navy-600:    #1d4e89;
  --navy-500:    #2a63a8;

  /* Neutrals */
  --white:       #ffffff;
  --gray-50:     #f6f8fa;
  --gray-100:    #eef1f5;
  --gray-200:    #e2e8f0;
  --gray-300:    #cbd5e1;
  --gray-500:    #64748b;
  --gray-600:    #475569;
  --gray-700:    #334155;
  --ink:         #1f2937;

  /* Accent = navy family (logo palette: navy + grey + white only) */
  --accent:      var(--navy);
  --accent-600:  var(--navy-700);
  --accent-700:  var(--navy-800);
  --accent-soft: #cbd5e1;   /* light grey for icon tints on navy backgrounds */

  /* Logo-sampled accents (added for variety): navy + royal blue + grey */
  --hero-blue:   #2f66d9;   /* hero headline/CTA royal blue (from reference, nudged for legibility on dark) */
  --hero-blue-600:#2351bb;  /* darker hover */
  --royal:       #2d5be3;   /* bright royal blue accent (from logo family) */
  --royal-600:   #2348c0;   /* darker royal for links/hover */
  --royal-200:   #9db8ff;   /* light royal for numbers/kickers on dark */
  --logo-blue:   #1f3f8f;   /* the logo's exact navy-blue */
  --logo-grey:   #7f7f7f;   /* the logo's exact wordmark grey */

  /* System — squared, industrial corners */
  --radius:      3px;
  --radius-lg:   4px;
  --shadow-sm:   0 1px 2px rgba(10,35,66,.06), 0 1px 3px rgba(10,35,66,.08);
  --shadow-md:   0 10px 28px rgba(10,35,66,.12);
  --shadow-lg:   0 20px 50px rgba(10,35,66,.18);
  --container:   1200px;
  --gutter:      clamp(1rem, 4vw, 2.5rem);
  --header-h:    164px;   /* fixed header height (desktop) */
  --header-h-sm: 88px;    /* fixed header height (mobile)  */

  /* Condensed industrial display font for headings; clean sans for body */
  --ff-head: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --ff-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* z-index scale */
  --z-nav: 50;
  --z-drop: 40;
  --z-overlay: 30;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--ff-body);
  font-size: 1.0625rem;          /* ~17px */
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
/* Full-width content (no side frame). overflow-x:clip guards the reveal-right animation. */
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--ff-head); color: var(--navy); line-height: 1.08; margin: 0 0 .5em; font-weight: 600; text-transform: uppercase; }
h1 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); font-weight: 700; letter-spacing: .005em; white-space: nowrap; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); font-weight: 600; letter-spacing: .01em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; letter-spacing: .02em; }
h4 { letter-spacing: .03em; }
p  { margin: 0 0 1rem; max-width: 70ch; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--readable { max-width: 880px; }
.tagline { font-family: var(--ff-head); text-transform: uppercase; letter-spacing: .2em; font-weight: 600; font-size: 1rem; color: var(--gray-500); margin: 0; }
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section--tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }
@media (max-width: 600px){
  .section { padding: 2.5rem 0; }
  .section--tight { padding: 1.75rem 0; }
}
.section--gray { background: var(--gray-50); }
.section--navy { background: var(--navy); color: #dbe4f1; }
.section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow {
  font-family: var(--ff-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: .14em; font-size: .8rem; color: var(--gray-500); margin: 0 0 .75rem;
}
.section--navy .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow { color: var(--accent-soft); }
.lead { font-size: 1.18rem; color: var(--gray-600); max-width: 65ch; }
.section--navy .lead { color: #c5d2e4; }
.center { text-align: center; }
.center p, .center .lead { margin-inline: auto; }
.measure { max-width: 70ch; }

/* Skip link (a11y) */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: .75rem 1rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color:#fff; }

/* Focus visibility */
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
/* On dark/navy backgrounds use a white focus ring for visibility */
.hero :focus-visible, .page-hero :focus-visible, .section--navy :focus-visible, .cta-band :focus-visible { outline-color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--ff-head); font-weight: 600; font-size: 1.02rem;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .8rem 1.6rem; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  text-align: center; line-height: 1.1;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-600); color:#fff; }
.btn--secondary { background: var(--navy); color: #fff; }
.btn--secondary:hover { background: var(--navy-700); color:#fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--gray-300); }
.btn--ghost:hover { border-color: var(--navy); background: var(--white); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--gray-100); color: var(--navy); }
.btn--royal { background: var(--hero-blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn--royal:hover { background: var(--hero-blue-600); color: #fff; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color:#fff; color:#fff; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.08rem; }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.topbar { background: var(--navy-800); color: #c5d2e4; font-size: .9rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 42px; }
.topbar a { color: #dbe4f1; }
.topbar a:hover { color: #fff; }
.topbar__meta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.topbar__meta .with-icon { display: inline-flex; align-items: center; gap: .4rem; }
.topbar__meta svg { width: 1em; height: 1em; color: var(--accent-soft); }
.topbar__badge { display:inline-flex; align-items:center; gap:.4rem; }
@media (max-width: 760px) { .topbar { display: none; } }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  background: rgba(255,255,255,.45);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid rgba(255,255,255,.18);
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.82);
  border-bottom-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}
/* Full-width header: the nav ignores the .container max-width/gutter so the tabs sit hard
   against the left edge and the logo sits hard against the right edge (just off the scrollbar). */
.site-nav { max-width: none; padding-inline: clamp(.7rem, 1vw, 1rem); }
.nav { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; min-height: var(--header-h); }
.nav__menu { grid-column: 1; justify-self: start; align-self: center; }   /* tabs hard left */
.nav__logo { grid-column: 2; justify-self: end; }                          /* logo hard right */
.nav__actions { grid-column: 2; justify-self: end; }
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 132px; width: auto; display: block; }
@media (max-width: 1100px){ :root { --header-h: var(--header-h-sm); } .nav { min-height: var(--header-h-sm); grid-template-columns: 1fr auto; } .nav__logo img { height: 64px; } .nav__menu { margin-top: 0; }
  /* mobile: drawer is fixed (out of flow) → logo left, hamburger right */
  .nav__logo { grid-column: 1; justify-self: start; } .nav__actions { grid-column: 2; justify-self: end; } }
.nav__logo .sr-name { position:absolute; width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0); }

.nav__menu { display: flex; align-items: center; flex-wrap: nowrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.nav__menu > li { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap;
  font-family: var(--ff-head); font-weight: 600; color: var(--navy);
  background: #fff; border: 1px solid var(--gray-200);
  padding: .8rem 1.2rem; border-radius: var(--radius);
  text-transform: uppercase; letter-spacing: .02em; font-size: 1.1rem;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.nav__link:hover, .nav__link:focus-visible, .nav__link[aria-current="page"] { background: #e6f1fb; color: var(--hero-blue); border-color: #bcd8f5; }
.nav__link svg { width: .8em; height:.8em; transition: transform .2s ease; }
.nav__item--has-drop:hover .nav__link svg { transform: rotate(180deg); }

/* Dropdown */
.nav__drop {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 290px;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: .5rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: var(--z-drop);
}
.nav__item--has-drop:hover .nav__drop,
.nav__item--has-drop:focus-within .nav__drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__drop a { display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; align-items: center; padding: .5rem .7rem; border-radius: 8px; color: var(--navy); }
.nav__drop a:hover { background: var(--gray-100); }
.nav__drop-sym { grid-row: 1 / span 2; align-self: center; width: 28px; height: 28px; object-fit: contain; flex: 0 0 auto; }
.nav__drop a span { grid-column: 2; font-family: var(--ff-head); font-weight: 600; }
.nav__drop a small { grid-column: 2; color: var(--gray-500); font-size: .85rem; line-height: 1.2; }

/* Desktop: the reserved (empty) socials slot is hidden so the logo can sit flush right.
   It re-appears as the hamburger holder on mobile (≤1100px, below). */
.nav__actions { display: none; align-items: center; gap: .6rem; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; color: var(--navy); }
.nav__toggle svg { width: 28px; height: 28px; }

/* Mobile nav — slide-in drawer from the right */
.nav__scrim { display: none; }
@media (max-width: 1100px) {
  .nav__toggle { display: inline-flex; }
  .nav__actions { display: flex; }
  .site-nav { position: relative; }

  .nav__scrim {
    display: block; position: fixed; top: 100%; left: 0; right: 0; bottom: 0;
    height: calc(100dvh - var(--header-h-sm));
    background: rgba(8,22,48,.45); opacity: 0; pointer-events: none;
    transition: opacity .3s ease; z-index: 1;
  }
  .site-nav[data-open="true"] .nav__scrim { opacity: 1; pointer-events: auto; }

  .nav__menu {
    position: fixed; top: 100%; right: 0;
    height: calc(100dvh - var(--header-h-sm));
    width: min(82vw, 340px);
    display: flex; flex-direction: column; align-items: stretch; gap: .3rem;
    background: #fff; box-shadow: -14px 0 34px rgba(10,35,66,.22);
    padding: 1.1rem 1.1rem 1.6rem; overflow-y: auto;
    transform: translateX(100%); visibility: hidden; z-index: 2;
    transition: transform .32s cubic-bezier(.4,0,.2,1), visibility 0s linear .32s;
  }
  .site-nav[data-open="true"] .nav__menu {
    transform: translateX(0); visibility: visible;
    transition: transform .32s cubic-bezier(.4,0,.2,1), visibility 0s;
  }
  .nav__menu > li { width: 100%; }
  .nav__link { width: 100%; justify-content: space-between; padding: .85rem .9rem; border-radius: 8px; }
  .nav__drop {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-left: 2px solid var(--gray-200); border-radius: 0; margin: .15rem 0 .5rem .5rem; padding: 0 0 0 .5rem;
    display: none;
  }
  .nav__item--has-drop[data-open="true"] .nav__drop { display: block; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; background: linear-gradient(115deg, var(--navy) 0%, var(--navy-700) 55%, var(--navy-600) 100%); color: #fff; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(circle at 75% 30%, #000, transparent 70%);
}
.hero__inner { position: relative; z-index: 1; margin-inline: 0; padding-top: calc(var(--header-h) + clamp(1rem, 2.5vw, 2rem)); padding-bottom: clamp(2.25rem, 4.5vw, 3.5rem); max-width: 1000px; text-align: left; }
.hero h1 { color: #fff; margin-bottom: 1.2em; }
.hero p { color: #cdd9ea; font-size: 1.2rem; max-width: 56ch; margin-bottom: 2.25rem; }

/* Hero headline — heavy Archivo, left-weighted, oversized (matches reference) */
.hero .hero__eyebrow {
  font-family: "Archivo", var(--ff-head); font-weight: 900; text-transform: uppercase;
  letter-spacing: -.01em; font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1;
  color: var(--hero-blue); margin: 0 0 .35rem;
}
.hero__title {
  font-family: "Archivo", var(--ff-head); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -.01em;
  color: #fff; margin: 0 0 .7rem; text-wrap: balance;
}
.hero__tagline {
  display: block; font-style: italic; color: var(--hero-blue); margin-top: 0;
}
.hero__lead { color: #d4deee; font-size: clamp(1.02rem, 1.5vw, 1.22rem); max-width: 56ch; margin: 0 0 1.75rem; }
@media (max-width: 700px){
  .hero__title { font-size: clamp(1.45rem, 6vw, 2.05rem); line-height: .98; letter-spacing: -.015em; text-wrap: pretty; margin-bottom: .45rem; }
  /* .hero .hero__lead specificity (0,2,0) needed to beat the base `.hero p` rule (0,1,1). */
  .hero .hero__lead { font-size: .9rem; line-height: 1.4; margin-bottom: 1rem; max-width: 38ch; }
  .hero__cta { flex-wrap: nowrap; gap: .6rem; }
  .hero__cta .btn { flex: 1 1 0; min-width: 0; padding: .72rem .5rem; font-size: .82rem; text-align: center; }
  /* Phones get the dedicated 4:5 crop, shown as a tall top band feathered into the navy.
     Higher specificity (.hero--video .hero__video--phone) to beat the base rule defined later. */
  .hero--video .hero__video--desk { display: none; }
  .hero--video .hero__video--phone { display: block;
    inset: 0 0 auto 0; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center;
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); }
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 0; }
.hero__pills { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.16); }
.hero__pill { display: inline-flex; align-items: center; gap: .5rem; font-size: .95rem; color: #cdd9ea; }
.hero__pill svg { width: 1.15em; height: 1.15em; color: var(--accent-soft); flex:none; }

/* page hero (interior) */
.page-hero { background: linear-gradient(115deg, var(--navy) 0%, var(--navy-700) 100%); color: #fff; }
.page-hero__inner { padding: calc(var(--header-h) + clamp(1.5rem, 4vw, 3rem)) 0 clamp(2.5rem, 6vw, 4.5rem); max-width: 800px; }
section[id] { scroll-margin-top: calc(var(--header-h) + 1.2rem); }
.page-hero h1 { color: #fff; }
.page-hero p { color: #cdd9ea; font-size: 1.15rem; }
/* Service pages: badge next to the title */
.page-hero__titlerow { display: flex; align-items: center; gap: .85rem; }
.page-hero__sym { width: 56px; height: 56px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 2px 5px rgba(8,22,48,.45)); }
@media (max-width: 700px){ .page-hero__sym { width: 42px; height: 42px; } .page-hero__titlerow { gap: .6rem; } }
.breadcrumbs { font-size: .9rem; color: #9fb3cf; margin-bottom: 1rem; }
.breadcrumbs a { color: #cdd9ea; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span[aria-current] { color: #fff; }

/* Tighter spacing from hero to content below */
.page-hero + .section { padding-top: clamp(1.5rem, 3vw, 2.5rem); }

/* ==========================================================================
   Trust bar / stats
   ========================================================================== */
/* Landing-page stats — icon badge + number + label (matches 'landing page story') */
.hero-stats { background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.hero-stats__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: clamp(1.1rem, 2.2vw, 1.7rem) 0; }
.hero-stats__row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.hstat { display: flex; align-items: center; gap: 1rem; padding: .3rem 1.25rem; justify-content: center; border-right: 1px solid var(--gray-200); }
.hstat:last-child { border-right: 0; }
.hstat__badge { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; background: #e8eefb; color: var(--hero-blue); display: grid; place-items: center; }
.hstat__badge svg { width: 28px; height: 28px; }
/* Custom PNG symbols (circle + bar-matching bg baked in) — sized so the visible circle ≈ the SVG badge */
.hstat__sym { flex: 0 0 auto; width: 68px; height: 68px; object-fit: contain; }
.hstat__text { display: flex; flex-direction: column; line-height: 1; }
.hstat__num { font-family: var(--ff-head); font-weight: 800; font-size: clamp(2.1rem, 3.6vw, 3rem); color: var(--navy); }
.hstat__label { margin-top: .5rem; font-size: .92rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gray-600); }
@media (max-width: 760px){
  .hero-stats__row { grid-template-columns: 1fr 1fr; gap: 0; padding: 1.5rem 0; }
  .hstat { justify-content: flex-start; gap: .8rem; padding: 1rem .9rem; border-right: 0; }
  .hstat:nth-child(odd){ border-right: 1px solid var(--gray-200); }
  .hstat:nth-child(-n+2){ border-bottom: 1px solid var(--gray-200); }
  .hstat__badge { width: 50px; height: 50px; }
  .hstat__badge svg { width: 24px; height: 24px; }
  .hstat__sym { width: 60px; height: 60px; }
  .hstat__num { font-size: 1.85rem; }
  .hstat__label { margin-top: .3rem; font-size: .78rem; }
  /* 3-stat row (Projects page): single clean column on phones */
  .hero-stats__row.cols-3 { grid-template-columns: 1fr; }
  .hero-stats__row.cols-3 .hstat { border-right: 0; border-bottom: 1px solid var(--gray-200); }
  .hero-stats__row.cols-3 .hstat:last-child { border-bottom: 0; }
}

.statbar { background: var(--white); border-bottom: 1px solid var(--gray-200); }
.statbar__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 2rem 0; }
.statbar__grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stat { text-align: center; padding: .5rem 1rem; border-right: 1px solid var(--gray-200); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--ff-head); font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--navy); line-height: 1; }
.stat__label { color: var(--gray-600); font-size: .95rem; margin-top: .35rem; }
@media (max-width: 720px) {
  .statbar__grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat { border-bottom: 1px solid var(--gray-200); padding: 1.25rem .5rem; }
  .stat:nth-child(even) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .statbar__grid.cols-3 { grid-template-columns: 1fr; }
  .statbar__grid.cols-3 .stat { border-right: 0; }
  .statbar__grid.cols-3 .stat:last-child { border-bottom: 0; }
}

/* logos / sectors strip */
.sectors { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.sector-tag {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--white);
  border: 1px solid var(--gray-200); border-radius: 999px; padding: .55rem 1.1rem;
  font-family: var(--ff-head); font-weight: 500; color: var(--navy); font-size: .98rem;
}
.sector-tag svg { width: 1.1em; height: 1.1em; color: var(--accent); }

/* Industries Served — sector photo cards */
.sectors-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; text-align: left; }
@media (max-width: 1000px) { .sectors-grid { grid-template-columns: repeat(3, 1fr); } }
/* Phones: two compact columns (matches the service grid), not one big stack. */
@media (max-width: 680px)  {
  .sectors-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .sector-card__label { padding: .55rem .6rem .7rem; font-size: .72rem; gap: .4rem; letter-spacing: .01em; }
  .sector-card__ic { width: 24px; height: 24px; border-radius: 5px; }
  .sector-card__ic svg { width: 14px; height: 14px; }
}
@media (max-width: 420px)  { .sectors-grid { grid-template-columns: repeat(2, 1fr); } }
.sector-card {
  position: relative; display: block; text-decoration: none; color: inherit; cursor: pointer;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.sector-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
/* Hover: navy panel fills bottom-to-top with a white "VIEW" label (mirrors .logo-tile). */
.sector-card::after {
  content: ""; position: absolute; inset: 0; background: var(--navy); z-index: 2;
  transform: translateY(100%); transition: transform .35s ease; pointer-events: none;
}
.sector-card::before {
  content: "VIEW"; position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center; color: #fff;
  font-family: var(--ff-head); font-weight: 700; letter-spacing: .12em; font-size: 1.15rem;
  opacity: 0; transform: translateY(30%); transition: opacity .3s ease .05s, transform .35s ease; pointer-events: none;
}
.sector-card:hover::after, .sector-card:focus-visible::after { transform: translateY(0); }
.sector-card:hover::before, .sector-card:focus-visible::before { opacity: 1; transform: translateY(0); }
.sector-card__media {
  aspect-ratio: 4 / 3; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 85% 100%, 0 100%);
}
.sector-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.sector-card:hover .sector-card__media img { transform: scale(1.05); }
.sector-card__label {
  display: flex; align-items: center; gap: .6rem;
  padding: .8rem 1rem 1rem; font-family: var(--ff-head); font-weight: 600;
  text-transform: uppercase; letter-spacing: .02em; font-size: .9rem; color: var(--navy);
}
.sector-card__sym { flex: 0 0 auto; width: 30px; height: 30px; object-fit: contain; display: block; }
@media (prefers-reduced-motion: reduce) {
  .sector-card, .sector-card__media img, .sector-card::after, .sector-card::before { transition: none; }
  .sector-card:hover { transform: none; }
  .sector-card:hover .sector-card__media img { transform: none; }
}

/* client / contractor logo strip (social proof) — equal tiles, full width */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; align-items: stretch; }
.logo-tile {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--gray-200); border-bottom: 3px solid var(--navy);
  border-radius: var(--radius-lg);
  min-height: 160px; padding: 1.5rem 1.75rem; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  text-decoration: none; color: inherit; cursor: pointer;
}
.logo-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.logo-tile img { position: relative; z-index: 1; max-height: 92px; max-width: 100%; width: auto; object-fit: contain; }
/* Hover: navy panel fills the card bottom-to-top with a white "VISIT" label */
.logo-tile::after {
  content: ""; position: absolute; inset: 0; background: var(--navy); z-index: 2;
  transform: translateY(100%); transition: transform .35s ease; pointer-events: none;
}
.logo-tile::before {
  content: "VIEW"; position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center; color: #fff;
  font-family: var(--ff-head); font-weight: 700; letter-spacing: .12em; font-size: 1.15rem;
  opacity: 0; transform: translateY(30%); transition: opacity .3s ease .05s, transform .35s ease; pointer-events: none;
}
.logo-tile:hover::after { transform: translateY(0); }
.logo-tile:hover::before { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){
  .logo-tile::after, .logo-tile::before { transition: none; }
}
@media (max-width: 860px) { .logos { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (max-width: 420px) { .logos { grid-template-columns: 1fr; } }

/* Contractors section — white bg with loader photo fading in from the right */
.contractors { position: relative; background: #fff; overflow: hidden; }
.contractors__photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 58%;
  background-size: cover; background-position: center right; background-repeat: no-repeat;
  opacity: .9; pointer-events: none; z-index: 0;
}
/* Feather the photo's left edge into the white page so it blends seamlessly */
.contractors__photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, #fff 0%, rgba(255,255,255,.75) 18%, rgba(255,255,255,0) 48%);
}
.contractors__inner { position: relative; z-index: 1; }
@media (max-width: 820px){ .contractors__photo { display: none; } }

.partner-note { display: flex; align-items: center; justify-content: center; gap: .85rem; margin-top: 2.75rem; }
.partner-note__ic { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.partner-note__ic svg { width: 24px; height: 24px; }
.partner-note__text { display: flex; flex-direction: column; line-height: 1.3; text-align: left; }
.partner-note__text strong { font-family: var(--ff-head); text-transform: uppercase; letter-spacing: .04em; color: var(--navy); font-size: .98rem; }
.partner-note__text { color: var(--gray-600); font-size: .92rem; }

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--gray-600); margin-bottom: 1rem; }

/* service card (clickable) */
a.service-card { display: flex; flex-direction: column; color: inherit; }
a.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--navy-500); }
.service-card__icon {
  width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy); color: #fff; margin-bottom: 1rem;
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card .more { margin-top: auto; font-family: var(--ff-head); font-weight: 600; color: var(--navy-600); display: inline-flex; align-items: center; gap: .4rem; }
a.service-card:hover .more { color: var(--accent-600); }
.service-card .more svg { width: 1em; height: 1em; transition: transform .2s ease; }
a.service-card:hover .more svg { transform: translateX(4px); }

/* feature (icon + text, no border) */
.feature__icon { width: 48px; height: 48px; border-radius: 10px; background: var(--gray-100); color: var(--navy); display: grid; place-items: center; margin-bottom: .9rem; }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--gray-600); margin-bottom: 0; }

/* checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.checklist.cols-2 { grid-template-columns: 1fr 1fr; gap: .75rem 1.5rem; }
@media (max-width: 600px){ .checklist.cols-2 { grid-template-columns: 1fr; } }
.checklist li { position: relative; padding-left: 2rem; color: var(--gray-700); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 1.35rem; height: 1.35rem;
  background: var(--navy); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/contain no-repeat;
}

/* split layout */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split--reverse { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

/* Service-detail feature photo (one per service; surveying/M.O.T shows two side-by-side). */
.svc-feature-wrap { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.svc-feature { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--gray-200); }
.svc-feature > img { display: block; width: 100%; height: clamp(220px, 40vw, 460px); object-fit: cover; }
.svc-feature--two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 1.5rem); border: 0; box-shadow: none; overflow: visible; border-radius: 0; }
.svc-feature--two figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--gray-200); position: relative; }
.svc-feature--two img { display: block; width: 100%; height: clamp(200px, 30vw, 340px); object-fit: cover; }
.svc-feature--two figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem 1rem .7rem; font-family: var(--ff-head); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; font-size: .92rem; color: #fff; background: linear-gradient(to top, rgba(10,35,66,.86), rgba(10,35,66,0)); }
@media (max-width: 640px){ .svc-feature--two { grid-template-columns: 1fr; } }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--gray-200); background: var(--gray-100); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* placeholder image block (when no photo yet) */
.ph {
  display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--radius-lg);
  background: repeating-linear-gradient(135deg, var(--gray-100), var(--gray-100) 18px, var(--gray-50) 18px, var(--gray-50) 36px);
  border: 1px dashed var(--gray-300); color: var(--gray-500); text-align: center; padding: 1.5rem;
}
.ph svg { width: 46px; height: 46px; opacity: .5; margin-bottom: .5rem; }
.ph span { font-family: var(--ff-head); font-weight: 600; }

/* process steps */
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; }
.step__num {
  counter-increment: step; width: 44px; height: 44px; border-radius: 50%; background: var(--navy);
  color: #fff; font-family: var(--ff-head); font-weight: 700; display: grid; place-items: center;
}
.step__num::before { content: counter(step); }
.step h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.step p { margin: 0; color: var(--gray-600); }

/* project card */
.project-card { overflow: hidden; padding: 0; }
.project-card .ph { aspect-ratio: 16/10; border-radius: 0; border: 0; border-bottom: 1px solid var(--gray-200); }
.project-card__body { padding: 1.4rem 1.5rem 1.6rem; }
.project-card .tag {
  display: inline-block; background: var(--gray-100); color: var(--navy-600);
  font-family: var(--ff-head); font-weight: 600; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .06em; padding: .25rem .6rem; border-radius: 6px; margin-bottom: .6rem; white-space: nowrap;
}
.project-card h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.project-card p { color: var(--gray-600); margin: 0; font-size: .98rem; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-700) 100%); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.25rem, 5vw, 3.5rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cdd9ea; margin-inline: auto; }
.cta-band .hero__cta { justify-content: center; }
/* Phones: stack the two CTA buttons so the full phone number fits on one line. */
@media (max-width: 700px){
  .cta-band .hero__cta { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: .6rem; }
  .cta-band .hero__cta .btn { flex: 0 0 auto; width: 100%; font-size: .95rem; padding: .85rem 1rem; white-space: nowrap; }
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px){ .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--ff-head); font-weight: 600; color: var(--navy); margin-bottom: .35rem; font-size: .95rem; }
.field .req { color: var(--accent-700); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); padding: .75rem .9rem;
  border: 1px solid var(--gray-300); border-radius: var(--radius); background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(29,78,137,.15);
}
.field .hint { font-size: .85rem; color: var(--gray-500); margin-top: .35rem; }
.form-note { font-size: .9rem; color: var(--gray-500); margin-top: .5rem; }
/* License trust line under the form submit buttons */
.form-trust { display: flex; align-items: center; gap: .5rem; font-family: var(--ff-head); font-weight: 600; font-size: .9rem; color: var(--navy); margin: 1rem 0 .25rem; }
.form-trust svg { width: 1.1em; height: 1.1em; flex: none; color: var(--royal); }

/* In-form section labels — mobile only (desktop form stays roomy & unchanged). */
.form-grouplabel { display: none; }

/* ==========================================================================
   Mobile polish for the ambient (Contact / Careers) pages — phone only.
   Goal: shorter, more scannable, less "white box on white". Desktop untouched.
   ========================================================================== */
/* Navy-filled primary info card once the sidebar stacks below the form (≤900px):
   a strong color block instead of another white card. */
/* .side-card.side-card--feature (0,2,0) to beat the base .side-card white bg. */
@media (max-width: 900px) {
  .side-card.side-card--feature { background: var(--navy); border-color: var(--navy); box-shadow: var(--shadow-md); }
  .side-card--feature .side-card__title { color: #fff; border-bottom-color: rgba(255,255,255,.2); }
  .side-card--feature .info-list strong { color: #fff; }
  .side-card--feature .info-list span,
  .side-card--feature .info-list a { color: #c9d6ea; }
  .side-card--feature .info-list a:hover { color: #fff; }
  .side-card--feature .info-list .ic { background: var(--royal); }
}
@media (max-width: 600px) {
  /* Shorter interior hero on these two pages */
  body.has-amb .page-hero__inner { padding-top: calc(var(--header-h-sm) + .8rem); padding-bottom: 1.75rem; }
  body.has-amb .page-hero p { font-size: 1rem; }

  /* Tighter, livelier form card: royal accent bar + reduced padding/rhythm */
  .form-card { padding: 1.35rem 1.15rem; border-top: 3px solid var(--royal); }
  .form-card .field { margin-bottom: .8rem; }
  /* Keep paired fields 2-up on phones (overrides the base ≤560 stack) — far more
     compact than stacking all fields, and reads as a tidy, professional form. */
  .form-card .form-row { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .form-card .field textarea { min-height: 104px; }
  .form-card h2 { font-size: 1.5rem; }

  /* Compact upload dropzone */
  .upload-drop { padding: 1.1rem 1rem; }
  .upload-drop__icon { width: 34px; height: 34px; margin-bottom: .4rem; }

  /* Section labels appear on mobile to break up the long form */
  .form-grouplabel {
    display: flex; align-items: center; gap: .6rem;
    font-family: var(--ff-head); font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; font-size: .78rem; color: var(--royal-600);
    margin: 1.5rem 0 .9rem; padding-bottom: .5rem; border-bottom: 1px solid var(--gray-200);
  }
  .form-grouplabel::after { content: ""; flex: 1; height: 1px; background: var(--gray-200); }
  .form-grouplabel:first-of-type { margin-top: .35rem; }

  /* Sidebar cards: tighter, less gap */
  .side-stack { gap: 1rem; }
  .side-card { padding: 1.2rem 1.15rem; }

  /* Careers perks: 2×2 compact grid instead of one tall column */
  .careers-perks.grid--4 { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .careers-perks .feature { padding: 1.15rem .9rem; }
  .careers-perks .feature__icon { width: 38px; height: 38px; margin-bottom: .55rem; border-radius: 8px; }
  .careers-perks .feature__icon svg { width: 20px; height: 20px; }
  .careers-perks .feature h3 { font-size: 1rem; margin-bottom: .3rem; }
  .careers-perks .feature p { font-size: .85rem; line-height: 1.4; }
}

/* ==========================================================================
   Contact info blocks
   ========================================================================== */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.info-list li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.info-list .ic { width: 46px; height: 46px; border-radius: 10px; background: var(--navy); color:#fff; display: grid; place-items: center; }
.info-list .ic svg { width: 22px; height: 22px; }
.info-list strong { font-family: var(--ff-head); color: var(--navy); display:block; }
.info-list a { color: var(--gray-700); }
.info-list a:hover { color: var(--navy); }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); }
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }

/* ==========================================================================
   Two-column contact / careers layout  (form left · info sidebar right)
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.55fr .9fr;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Sidebar stack of info cards */
.side-stack { display: grid; gap: 1.5rem; position: sticky; top: 1.5rem; }
@media (max-width: 900px) { .side-stack { position: static; } }
.side-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: clamp(1.25rem, 2.4vw, 1.6rem);
}
.side-card__title {
  font-family: var(--ff-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; font-size: 1rem; color: var(--navy);
  margin: 0 0 1.1rem; padding-bottom: .75rem; border-bottom: 2px solid var(--gray-100);
}
.side-card .info-list { gap: 1.1rem; }
.side-card .map-frame { box-shadow: none; }
.side-card .map-frame iframe { min-height: 230px; }
.side-card .checklist li { color: var(--gray-700); }

/* Business-hours rows */
.hours-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.hours-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: .95rem; color: var(--gray-700);
  padding-bottom: .7rem; border-bottom: 1px solid var(--gray-100);
}
.hours-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.hours-list li span:first-child { font-family: var(--ff-head); font-weight: 600; color: var(--navy); }
.hours-list li span:last-child { color: var(--gray-600); text-align: right; }

/* ==========================================================================
   File upload dropzone
   ========================================================================== */
.upload-drop {
  position: relative; display: block; text-align: center; cursor: pointer;
  border: 2px dashed var(--gray-300); border-radius: var(--radius-lg);
  background: var(--gray-50); padding: 1.85rem 1rem;
  transition: border-color .2s ease, background-color .2s ease;
}
.upload-drop:hover, .upload-drop.is-drag { border-color: var(--royal); background: #eef3ff; }
.upload-drop input[type=file] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.upload-drop__icon { display: block; width: 42px; height: 42px; margin: 0 auto .55rem; color: var(--royal); }
.upload-drop__icon svg { width: 100%; height: 100%; }
.upload-drop__main { display: block; font-family: var(--ff-head); font-weight: 600; color: var(--navy); }
.upload-drop__hint { display: block; font-size: .82rem; color: var(--gray-500); margin-top: .3rem; }
.upload-drop__files { display: block; font-size: .9rem; font-weight: 600; color: var(--royal-600); margin-top: .6rem; word-break: break-word; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy); color: #aebfd6; padding: clamp(3rem,6vw,4.5rem) 0 2rem; font-size: .97rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
@media (max-width: 900px){ .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 560px){ .footer__grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.site-footer a { color: #aebfd6; }
.site-footer a:hover { color: #fff; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer__contact { list-style:none; margin:0; padding:0; display:grid; gap:.7rem; }
.footer__contact li { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items:start; }
.footer__contact svg { width: 1.05em; height: 1.05em; color: var(--accent-soft); margin-top:.25rem; }
.footer__badge { margin-top:1rem; padding: .7rem .9rem; border:1px solid rgba(255,255,255,.18); border-radius: var(--radius); font-size:.88rem; color:#cdd9ea; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.5rem; padding-top: 1.5rem; display:flex; justify-content: space-between; gap:1rem; flex-wrap: wrap; font-size: .9rem; color:#8da4c4; }
.footer__bottom a { color:#8da4c4; }

/* ==========================================================================
   Utilities
   ========================================================================== */
.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; }
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.stack-sm > * + * { margin-top: .75rem; }
.divider { height:1px; background: var(--gray-200); border:0; margin: 0; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul { padding-left: 1.2rem; }
.prose ul li { margin-bottom: .4rem; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Narrow container (for readable FAQ / prose blocks)
   ========================================================================== */
.container--narrow { max-width: 820px; }

/* ==========================================================================
   Hero decorative jobsite scene (sits along the bottom of the navy hero)
   ========================================================================== */
.hero__scene {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto;
  z-index: 0; pointer-events: none; user-select: none;
}
@media (max-width: 700px){ .hero__scene { opacity: .5; } }

/* ---------- Hero background video ---------- */
.hero--video .hero__inner { z-index: 2; padding-top: calc(var(--header-h) + clamp(1rem, 2.5vw, 2rem)); padding-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
/* Tall, near-full-screen hero video on desktop/tablet; mobile keeps its compact phone-video band. */
@media (min-width: 701px){ .hero--video { min-height: 90vh; } }
.hero--video::after { z-index: 1; opacity: .10; }
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: linear-gradient(115deg, var(--navy) 0%, var(--navy-700) 55%, var(--navy-600) 100%); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
/* Default (desktop / ≥701px): show the 16:9 crop, hide the phone 4:5 crop. */
.hero__video--phone { display: none; }
/* Navy scrim — heavier on the left so the headline column stays high-contrast
   while the excavator action reads through on the right. */
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(105deg, rgba(8,26,51,.95) 0%, rgba(8,26,51,.80) 38%, rgba(8,26,51,.46) 70%, rgba(8,26,51,.32) 100%),
    linear-gradient(to top, rgba(8,26,51,.80) 0%, rgba(8,26,51,0) 42%);
}
@media (max-width: 700px){
  .hero__scrim {
    background: linear-gradient(180deg, rgba(8,26,51,.82) 0%, rgba(8,26,51,.60) 40%, rgba(8,26,51,.84) 100%);
  }
}
/* Respect reduced-motion: drop the footage, fall back to the navy gradient. */
@media (prefers-reduced-motion: reduce){
  .hero__video { display: none; }
}

/* ==========================================================================
   Illustration media frame (SVG stand-in for real photos)
   ========================================================================== */
.media-frame--illus { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--gray-200); }
.media-frame--illus img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-frame__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(10,35,66,.82));
  color: #fff; font-family: var(--ff-head); font-weight: 600; font-size: .92rem;
  padding: 1.75rem 1.1rem .9rem;
}

/* ==========================================================================
   Honeypot anti-spam field (visually & semantically hidden, off-screen)
   ========================================================================== */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   FAQ (native <details>/<summary> accordion)
   ========================================================================== */
.faq { display: grid; gap: .85rem; }
.faq__item { border: 1px solid var(--gray-200); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 1.05rem 1.25rem;
  font-family: var(--ff-head); font-weight: 600; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; font-size: 1.5rem; line-height: 1; color: var(--accent); font-weight: 400; transition: transform .2s ease;
}
.faq__item[open] summary::after { content: "\2212"; } /* minus */
.faq__item summary:hover { color: var(--navy-600); }
.faq__a { padding: 0 1.25rem 1.15rem; color: var(--gray-600); }
.faq__a a { color: var(--navy-600); }
.faq__a p { margin: 0; }

/* ==========================================================================
   Testimonials / quote cards
   ========================================================================== */
.quote-card { display: flex; flex-direction: column; padding: 1.75rem; position: relative; }
.quote-card__mark { font-family: var(--ff-head); font-size: 3.5rem; line-height: .6; color: var(--gray-200); margin-bottom: .5rem; }
.quote-card blockquote { margin: 0 0 1.25rem; font-size: 1.05rem; color: var(--gray-700); }
.quote-card figcaption { display: flex; align-items: center; gap: .7rem; margin-top: auto; color: var(--gray-500); font-size: .9rem; }
.quote-card figcaption svg { width: 34px; height: 34px; flex: none; padding: 7px; border-radius: 50%; background: var(--navy); color: #fff; }
.quote-card figcaption strong { display: block; font-family: var(--ff-head); color: var(--navy); }

/* ==========================================================================
   Mobile sticky CTA bar (phones only)
   ========================================================================== */
/* Call button — lives in the menu, only visible when the hamburger is open (mobile) */
.nav__call { display: none; }
@media (max-width: 1100px) {
  .nav__call { display: block; margin-top: .5rem; }
  .nav__call-btn { width: 100%; justify-content: center; gap: .5rem; padding: .9rem 1rem; font-size: 1rem; }
  .nav__call-btn svg { width: 1.15em; height: 1.15em; }
}

/* ==========================================================================
   Service cards — full-photo cover + dark-blue hover blur/spread
   ========================================================================== */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 980px){ .svc-grid { grid-template-columns: repeat(2, 1fr); } }
/* Phones: keep two columns but shrink the tiles so they read as a tidy 2-up grid. */
@media (max-width: 600px){
  .svc-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .svc-card { min-height: 168px; }
  .svc-card__content { padding: .8rem .85rem; }
  .svc-card__num { font-size: 1.05rem; margin-bottom: .2rem; }
  .svc-card__title { font-size: .92rem; margin-bottom: .35rem; }
  .svc-card__desc { display: none; }
  .svc-card__cta { font-size: .68rem; letter-spacing: .06em; }
  .svc-card__icon { width: 34px; height: 34px; top: .55rem; left: .55rem; }
  .svc-card__icon svg { width: 19px; height: 19px; }
}

.svc-card {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  min-height: 320px; border-radius: var(--radius-lg); color: #fff; text-decoration: none;
  background: var(--navy); box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease, transform .3s ease;
}
.svc-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.svc-card:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; }
.svc-card__media { position: absolute; inset: 0; z-index: 0; }
.svc-card__media img, .svc-card__ph { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .5s ease; }
.svc-card__ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center; padding: 1rem;
  background: repeating-linear-gradient(45deg, #16335e, #16335e 16px, #122a4e 16px, #122a4e 32px);
  color: rgba(255,255,255,.55); font-family: var(--ff-head); font-weight: 600; font-size: .9rem;
}
.svc-card__ph svg { width: 40px; height: 40px; opacity: .5; }
.svc-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,22,48,.94) 6%, rgba(8,22,48,.55) 40%, rgba(8,22,48,.05) 72%); }
.svc-card__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 50% 42%, rgba(45,91,227,.55), rgba(20,46,120,.94) 70%);
  opacity: 0; transform: scale(.25); transform-origin: 50% 42%;
  transition: opacity .45s ease, transform .55s cubic-bezier(.2,.7,.3,1);
}
.svc-card:hover .svc-card__veil, .svc-card:focus-visible .svc-card__veil { opacity: 1; transform: scale(1.5); }
.svc-card:hover .svc-card__ph, .svc-card:hover .svc-card__img,
.svc-card:focus-visible .svc-card__ph, .svc-card:focus-visible .svc-card__img { transform: scale(1.06); filter: blur(4px) brightness(.85); }
.svc-card__icon {
  position: absolute; top: 1rem; left: 1rem; z-index: 3;
  width: 46px; height: 46px; object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(8,22,48,.4));
}
.svc-card__content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 1.4rem 1.5rem; }
.svc-card__num { display: block; font-family: var(--ff-head); font-weight: 700; font-size: 1.5rem; line-height: 1; color: var(--royal-200); margin-bottom: .35rem; }
.svc-card__title { color: #fff; font-family: var(--ff-head); font-size: 1.3rem; line-height: 1.1; text-transform: uppercase; letter-spacing: .01em; margin: 0 0 .5rem; }
.svc-card__desc { color: rgba(255,255,255,.85); font-size: .95rem; line-height: 1.5; margin: 0 0 .9rem; max-width: 36ch; }
.svc-card__cta { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--ff-head); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; }
.svc-card__cta svg { width: 1.05em; height: 1.05em; transition: transform .25s ease; }
.svc-card:hover .svc-card__cta svg { transform: translateX(5px); }
.svc-card::after { content:""; position:absolute; right:0; bottom:0; z-index:3; border-style:solid; border-width:0 0 24px 24px; border-color: transparent transparent var(--royal) transparent; }

/* ==========================================================================
   Self-Performed Work — diagonal media panels
   ========================================================================== */
/* Photo removed → single, tighter content block (constrained width, like the rest of the page). */
.selfperf__grid { display: block; max-width: 880px; }
.selfperf__title { font-family: var(--ff-head); font-weight: 700; font-size: clamp(1.8rem,4.2vw,2.6rem); line-height: .98; text-transform: uppercase; color: var(--navy); margin: .4rem 0 1rem; }
.selfperf__title .t-grey { color: var(--logo-grey); }
.feat-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.5rem; }
@media (max-width: 560px){ .feat-list { grid-template-columns: 1fr; } }
.feat { display: flex; align-items: flex-start; gap: .85rem; font-weight: 600; color: var(--gray-700); font-size: .97rem; line-height: 1.35; }
.feat__ic { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; }
.feat__ic svg { width: 22px; height: 22px; }
.feat:nth-child(2n) .feat__ic { background: var(--royal); }

.diag { display: flex; gap: 6px; height: clamp(360px, 42vw, 480px); border-radius: var(--radius-lg); overflow: hidden; }
.diag__panel { position: relative; flex: 1; overflow: hidden; transform: skewX(-9deg); background: var(--navy-800); }
.diag__panel--text { flex: 1.3; background: linear-gradient(160deg, var(--navy), var(--navy-700)); }
.diag__inner { position: absolute; inset: 0; transform: skewX(9deg) scale(1.18); display: flex; align-items: center; justify-content: center; }
.diag__panel--text .diag__inner { transform: skewX(9deg); align-items: flex-end; justify-content: flex-start; padding: 1.4rem 2.1rem 1.6rem 1rem; }
.diag__kicker { display:block; font-family: var(--ff-head); font-weight:700; letter-spacing:.12em; text-transform:uppercase; color: var(--royal-200); font-size:.85rem; margin-bottom:.4rem; }
.diag__panel--text strong { color:#fff; font-family: var(--ff-head); font-weight:700; font-size: clamp(1rem,1.7vw,1.4rem); line-height:1.1; text-transform:uppercase; }
.diag__ph { flex-direction: column; gap:.5rem; color: rgba(255,255,255,.6); font-family: var(--ff-head); font-weight:600; font-size:.85rem; text-align:center;
  background: repeating-linear-gradient(45deg, #16335e, #16335e 16px, #122a4e 16px, #122a4e 32px); }
.diag__ph svg { width: 40px; height:40px; opacity:.5; }
.diag__img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px){
  .diag { flex-direction: column; height: auto; }
  .diag__panel { transform: none; min-height: 160px; }
  .diag__inner { position: static; transform: none; min-height: 160px; }
  .diag__panel--text .diag__inner { transform: none; }
}

/* ==========================================================================
   About — DMSI-style staggered layout + slide-in
   ========================================================================== */
.about-dmsi__grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: clamp(2rem,5vw,4.5rem); align-items: start; }
@media (max-width: 920px){ .about-dmsi__grid { grid-template-columns: 1fr; } }
.eyebrow--dot::before { content:""; display:inline-block; width:.5rem; height:.5rem; border-radius:50%; background: var(--royal); margin-right:.5rem; vertical-align: middle; }
.about-dmsi__title { font-family: var(--ff-head); font-weight: 700; font-size: clamp(2rem,4.5vw,3rem); line-height: 1.05; color: var(--navy); margin: .4rem 0 1.1rem; white-space: normal; }
.about-dmsi__lede { font-size: 1.08rem; color: var(--gray-600); max-width: 56ch; }
.about-stats { display: flex; gap: 2.5rem; margin: 1.8rem 0; flex-wrap: wrap; }
.about-stat__n { display:block; font-family: var(--ff-head); font-weight:700; font-size: 2.6rem; line-height:1; color: var(--navy); }
.about-stat__n::after { content:""; display:block; width: 42px; height:3px; background: var(--royal); margin-top:.6rem; }
.about-stat__l { display:block; font-weight:600; color: var(--gray-700); margin-top:.8rem; font-size:.95rem; }
.about-checklist { margin: 1.5rem 0; max-width: 46ch; }
.about-dmsi__body { color: var(--gray-600); margin-top: 1rem; max-width: 58ch; }
.founder { display:flex; align-items:center; gap:1.4rem; margin-top: 1.8rem; padding-top:1.5rem; border-top:1px solid var(--gray-200); }
.founder__photo { width: clamp(170px, 24vw, 220px); height:auto; flex:none; border-radius: var(--radius-lg); border:1px solid var(--gray-200); box-shadow: var(--shadow-md); display:block; }
.founder__avatar { width:56px; height:56px; flex:none; border-radius:50%; background: var(--gray-100); border:1px solid var(--gray-200); display:flex; align-items:center; justify-content:center; color: var(--gray-500); }
.founder__avatar svg { width:26px; height:26px; }
.founder__meta strong { display:block; font-family: var(--ff-head); font-size:1.2rem; color: var(--navy); }
.founder__meta span { color: var(--gray-500); font-size:.95rem; }

.about-dmsi__aside { display: flex; flex-direction: column; gap: 1.4rem; align-content: start; min-width: 0; }
.about-feature { border-left: 3px solid var(--royal); padding: .15rem 0 .15rem 1.1rem; }
.about-feature h3 { font-family: var(--ff-head); color: var(--navy); font-size: 1.15rem; margin: 0 0 .5rem; }
.about-feature p { color: var(--gray-600); font-size: .95rem; margin: 0 0 .8rem; }
.about-feature :last-child { margin-bottom: 0; }
.link-arrow { display:inline-flex; align-items:center; gap:.35rem; font-family: var(--ff-head); font-weight:700; font-size:.85rem; color: var(--royal-600); text-transform:uppercase; letter-spacing:.05em; }
.link-arrow svg { width:1em; height:1em; transition: transform .25s ease; }
.link-arrow:hover svg { transform: translateX(4px); }
.about-aside-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); max-width: 100%; }
.about-aside-photo img { display: block; width: 100%; height: auto; max-height: 320px; object-fit: cover; object-position: center; }

/* ==========================================================================
   Upload-image placeholder boxes
   ========================================================================== */
.uplbox { width: 100%; border: 2px dashed var(--gray-300); border-radius: var(--radius-lg); background: var(--gray-50);
  display: flex; align-items: center; justify-content: center; text-align: center; transition: border-color .2s ease, background .2s ease; }
.uplbox:hover { border-color: var(--royal); background: #fff; }
.uplbox__inner { display:flex; flex-direction:column; align-items:center; gap:.4rem; padding: 1rem; color: var(--gray-500); }
.uplbox__inner svg { width: 40px; height: 40px; opacity:.6; color: var(--navy); }
.uplbox__inner span { font-family: var(--ff-head); font-weight:600; color: var(--gray-700); }
.uplbox__inner em { font-style: normal; font-size:.8rem; letter-spacing:.06em; text-transform:uppercase; color: var(--gray-500); }
.uplbox--lg .uplbox__inner svg { width: 52px; height:52px; }

/* ==========================================================================
   Directional slide-in reveals (extends .reveal / .is-visible)
   ========================================================================== */
.reveal-left, .reveal-right { opacity: 0; transition: opacity .7s ease, transform .7s ease; }
.reveal-left { transform: translateX(-46px); }
.reveal-right { transform: translateX(46px); }
.reveal-left.is-visible, .reveal-right.is-visible { opacity: 1; transform: none; }
.about-dmsi__aside .reveal-right:nth-child(1){ transition-delay: .05s; }
.about-dmsi__aside .reveal-right:nth-child(2){ transition-delay: .12s; }
.about-dmsi__aside .reveal-right:nth-child(3){ transition-delay: .19s; }
.about-dmsi__aside .reveal-right:nth-child(4){ transition-delay: .26s; }
.about-dmsi__aside .reveal-right:nth-child(5){ transition-delay: .33s; }
@media (prefers-reduced-motion: reduce){
  .reveal-left, .reveal-right { transition: none; opacity: 1; transform: none; }
}

/* === Self-performed list: custom PNG symbols in the chip === */
.feat__ic img { width: 27px; height: 27px; object-fit: contain; }

/* === About page real photos === */
/* About body is now the first element on the page → it must clear the fixed header
   (the old full-bleed team-photo band that used to provide this clearance was removed). */
.about-dmsi--top { padding-top: calc(var(--header-h) + clamp(1.5rem, 4vw, 3rem)); }

/* === Company Gallery === */
.gal-years { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 760px){ .gal-years { grid-template-columns: 1fr; } }
.gal-year { position: relative; display: block; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.gal-year img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gal-year:hover img { transform: scale(1.05); }
.gal-year__veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,35,66,.88), rgba(10,35,66,.2) 55%, rgba(10,35,66,.05)); }
.gal-year__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.1rem 1.25rem; color: #fff; display: flex; flex-direction: column; }
.gal-year__cap strong { font-family: var(--ff-head); font-size: 2rem; line-height: 1; }
.gal-year__cap small { font-family: var(--ff-head); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; opacity: .92; margin-top: .25rem; }
.gal-year--soon { display: flex; align-items: center; justify-content: center; text-align: center; background: linear-gradient(135deg, var(--navy), var(--navy-600)); border: 2px dashed rgba(255,255,255,.28); }
.gal-year--soon .gal-year__cap { position: static; align-items: center; padding: 0; }
.gal-year--soon small { opacity: .78; }

.gal-head { max-width: 760px; margin-bottom: 1.5rem; }
.gal-block { margin-top: 2.5rem; }
.gal-sub { font-family: var(--ff-head); color: var(--navy); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--gray-200); }
.gal-note { color: var(--gray-600); margin: -.4rem 0 1rem; }

.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gal-grid--raffle { grid-template-columns: repeat(4, 1fr); }
.gal-grid--two { grid-template-columns: repeat(2, 1fr); }
.gal-rule { border: 0; border-top: 2px solid var(--gray-200); margin: 0 0 1.25rem; }
@media (max-width: 900px){ .gal-grid { grid-template-columns: repeat(2, 1fr); } .gal-grid--raffle { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px){ .gal-grid, .gal-grid--raffle { grid-template-columns: repeat(2, 1fr); } }
.gal-item { padding: 0; border: 0; cursor: pointer; background: var(--gray-100); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/2; box-shadow: var(--shadow-sm); }
.gal-grid--raffle .gal-item { aspect-ratio: 3/4; }
.gal-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gal-item:hover img { transform: scale(1.05); }
.gal-item:focus-visible { outline: 3px solid var(--royal); outline-offset: 2px; }
.gal-feature { margin: 0; }
.gal-feature .gal-item { width: 100%; aspect-ratio: 16/9; }

.gal-soon-band { text-align: center; border: 2px dashed var(--gray-300); border-radius: var(--radius-lg); padding: clamp(2rem, 6vw, 4rem); background: var(--gray-50); }
.gal-soon-band h2 { margin-bottom: .4rem; }
.gal-soon-band .lead { margin: 0 auto; max-width: 520px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(6,18,36,.93); display: flex; align-items: center; justify-content: center; padding: 4vmin; }
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.55); }
.lightbox__close { position: absolute; top: .8rem; right: 1.3rem; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; padding: .2rem .6rem; }
.lightbox__close:hover { color: var(--royal); }
@media (hover: none){ .gal-year:hover img, .gal-item:hover img { transform: none; } }

/* === Projects page: two-column tiles -> inline expand === */
.proj-filter { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 1.5rem 0 .25rem; }
.proj-filter__tab { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--ff-head); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; color: var(--navy); background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: .45rem .9rem; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.proj-filter__sym { width: 20px; height: 20px; object-fit: contain; flex: 0 0 auto; }
.proj-filter__tab:hover { background: #e6f1fb; color: var(--hero-blue); border-color: #bcd8f5; }
.proj-filter__tab.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.proj-empty { text-align: center; color: var(--gray-500); margin: 2.5rem 0; font-family: var(--ff-head); }
.proj-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.25rem; }
@media (max-width: 700px){ .proj-list { grid-template-columns: 1fr; } }
.proj-tile { display: flex; flex-direction: column; text-align: left; padding: 0; border: 0.5px solid var(--gray-200); background: #fff; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; font: inherit; }
.proj-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.proj-tile:focus-visible { outline: 3px solid var(--royal); outline-offset: 2px; }
.proj-tile__media { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--navy), var(--navy-600)); display: flex; align-items: center; justify-content: center; }
.proj-tile__soon { color: rgba(255,255,255,.72); font-family: var(--ff-head); text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; }
.proj-tile__body { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; padding: 1.1rem 1.25rem 1.35rem; }
.proj-tile__name { font-family: var(--ff-head); color: var(--navy); font-size: 1.3rem; font-weight: 600; text-transform: uppercase; line-height: 1.1; }
.proj-tile__city { display: inline-flex; align-items: center; gap: .3rem; color: var(--gray-500); font-size: .85rem; }
.proj-tile__city svg { width: 14px; height: 14px; flex: none; }
.proj-tile__desc { color: var(--gray-600); font-size: .92rem; line-height: 1.5; }

.proj-detail[hidden] { display: none; }
.proj-back { display: inline-flex; align-items: center; gap: .5rem; background: none; border: 0; cursor: pointer; font-family: var(--ff-head); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--navy); font-size: .9rem; padding: .2rem 0; }
.proj-back span { font-size: 1.2em; line-height: 1; }
.proj-back:hover { color: var(--royal); }
.proj-cover { position: relative; width: 100%; height: clamp(220px, 32vw, 400px); background: linear-gradient(120deg, var(--navy) 0%, var(--navy-700) 60%, var(--navy-600) 100%); display: flex; align-items: flex-end; overflow: hidden; margin-top: 1.1rem; }
.proj-cover__inner { width: 100%; padding-top: 0; padding-bottom: clamp(1.2rem, 3vw, 2.2rem); color: #fff; }
.proj-cover__name { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3.1rem); margin: .4rem 0 0; }
.proj-cover__city { color: #cdddf2; margin: .35rem 0 0; font-size: 1rem; }
.proj-cover .tag { background: rgba(255,255,255,.16); color: #fff; }
.proj-photos-wrap { margin-top: 2.25rem; }
.proj-photos-head h3 { font-family: var(--ff-head); color: var(--navy); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 .35rem; }
.proj-photos-head p { color: var(--gray-600); margin: 0 0 1.5rem; max-width: 640px; }
.proj-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 600px){ .proj-photos { grid-template-columns: 1fr; } }
.pcell { aspect-ratio: 4/3; border: 2px dashed var(--gray-300); border-radius: var(--radius-lg); background: var(--gray-50); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .6s ease, transform .6s ease; }
.pcell span { color: var(--gray-400); font-family: var(--ff-head); text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; }
.pcell[data-dir="left"] { transform: translateX(-70px); }
.pcell[data-dir="right"] { transform: translateX(70px); }
.pcell[data-dir="up"] { transform: translateY(70px); }
.pcell.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .pcell { opacity: 1; transform: none; transition: none; } }

/* ==========================================================================
   Ambient canvas background (careers & contact) — sits behind content.
   The texture/motion is drawn in assets/js/background.js. This is just the
   fixed full-screen canvas + the page-surface transparency so it reads through.
   ========================================================================== */
.bg-canvas {
  position: fixed; inset: 0; z-index: -1;
  width: 100%; height: 100%; display: block; pointer-events: none;
  background: var(--navy);   /* base shown before JS paints / if JS is unavailable */
}

/* Page surfaces go transparent on these pages so the texture reads behind content */
body.has-amb main { background: transparent; }
body.has-amb .section--gray { background: transparent; }
body.has-amb .page-hero { background: linear-gradient(115deg, rgba(8,26,51,.82) 0%, rgba(13,43,82,.58) 100%); }
body.has-amb .section--gray .center h2 { color: #fff; }
body.has-amb .section--gray .center .eyebrow { color: #aebfd6; }
