/* ==========================================================================
   PAGAC & CO CONSTRUCTION — SHARED STYLESHEET
   Palette: deep slate #1A1F36 · white #FFFFFF · concrete #F2F4FB · blue #3E5AA9
   Type:    Barlow Condensed (display) · Barlow (body)
   ==========================================================================
   00  Tokens & reset
   01  Utilities (wrap, section, eyebrow, ticks, grids, buttons, reveal)
   02  Header / navigation / mobile menu
   03  Hero + project log marquee
   04  Trust bar
   05  About / Why Us
   06  Services logistics matrix (tabs)
   07  Portfolio grid + lightbox
   08  Craftsmanship focus (macro frames)
   09  Before / After slider
   10  How We Work
   11  Reviews
   12  Operational footprint (coverage map)
   13  Compliance / property-manager trust
   14  FAQ accordion
   15  Blog preview cards
   16  CTA band
   17  Footer
   18  Inner pages (page header, prose, forms, contact)
   19  Motion preferences
   ========================================================================== */

/* 00 — TOKENS & RESET
   ------------------------------------------------------------------------ */
:root {
  --ink: #1A1F36;
  --ink-2: #232946;
  --ink-3: #2C3354;
  --paper: #FFFFFF;
  --mist: #F2F4FB;
  --blue: #3E5AA9;
  --blue-deep: #32488A;
  --blue-soft: rgba(62, 90, 169, 0.09);
  --line: rgba(26, 31, 54, 0.14);
  --line-soft: rgba(26, 31, 54, 0.08);
  --line-inverse: rgba(255, 255, 255, 0.16);
  --muted: #565D7A;
  --muted-inverse: rgba(230, 234, 248, 0.72);
  --grid-line: rgba(62, 90, 169, 0.08);
  --grid-line-inverse: rgba(255, 255, 255, 0.045);
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  --sp: clamp(40px, 5vw, 70px);
  --rad: 10px;
  --shadow-1: 0 2px 8px rgba(26, 31, 54, 0.06), 0 12px 32px rgba(26, 31, 54, 0.08);
  --shadow-2: 0 4px 14px rgba(26, 31, 54, 0.1), 0 24px 56px rgba(26, 31, 54, 0.16);
  --header-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 0.98;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }

::selection { background: var(--blue); color: #fff; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--ink); color: #fff; padding: 12px 20px; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* 01 — UTILITIES
   ------------------------------------------------------------------------ */
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }

.section { padding-block: clamp(40px, 5vw, 70px); position: relative; }

.bg-mist { background: var(--mist); }
.bg-ink { background: var(--ink); color: #fff; }
.bg-blue { background: var(--blue); color: #fff; }

/* Blueprint grid backdrops */
.bp-grid {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px;
}
.bg-ink.bp-grid, .bp-grid--inverse {
  background-image:
    linear-gradient(var(--grid-line-inverse) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-inverse) 1px, transparent 1px);
  background-size: 46px 46px;
}

/* Section eyebrow: "03 / PORTFOLIO" style index labels */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 18px;
}
.eyebrow::after { content: ""; height: 1px; width: 64px; background: currentColor; opacity: 0.5; }
.eyebrow .idx { font-weight: 800; opacity: 0.65; }
.bg-ink .eyebrow { color: #9FB2E4; }

.sec-head { max-width: 760px; margin-bottom: clamp(26px, 3.4vw, 44px); }
.sec-head h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  text-transform: uppercase;
}
.sec-head .lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 62ch; }
.bg-ink .sec-head .lede { color: var(--muted-inverse); }
.sec-head--split {
  max-width: none;
  display: flex; flex-wrap: wrap; gap: 18px 48px;
  align-items: flex-end; justify-content: space-between;
}
.sec-head--split > div { max-width: 640px; }

/* Registration-tick frame (drafting corner marks) */
.ticks { position: relative; }
.ticks::before {
  content: ""; position: absolute; inset: -12px; pointer-events: none;
  background:
    linear-gradient(var(--blue), var(--blue)) left 0 top 0 / 16px 2px,
    linear-gradient(var(--blue), var(--blue)) left 0 top 0 / 2px 16px,
    linear-gradient(var(--blue), var(--blue)) right 0 top 0 / 16px 2px,
    linear-gradient(var(--blue), var(--blue)) right 0 top 0 / 2px 16px,
    linear-gradient(var(--blue), var(--blue)) left 0 bottom 0 / 16px 2px,
    linear-gradient(var(--blue), var(--blue)) left 0 bottom 0 / 2px 16px,
    linear-gradient(var(--blue), var(--blue)) right 0 bottom 0 / 16px 2px,
    linear-gradient(var(--blue), var(--blue)) right 0 bottom 0 / 2px 16px;
  background-repeat: no-repeat;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 16px; line-height: 1.2;
  padding: 15px 28px; border: 0; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  text-align: center;
}
.btn svg { flex: none; }
.btn:active { transform: translateY(1px); }

/* Warm / aesthetic — residential CTA */
.btn--remodel {
  background: var(--blue); color: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(62, 90, 169, 0.35);
}
.btn--remodel:hover { background: var(--blue-deep); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(62, 90, 169, 0.42); }

/* Corporate / contract — RFP CTA */
.btn--rfp {
  background: transparent; color: var(--ink);
  border: 1.5px solid currentColor; border-radius: 3px;
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 15px;
}
.btn--rfp:hover { background: var(--ink); color: #fff; }
.btn--rfp.on-dark { color: #fff; }
.btn--rfp.on-dark:hover { background: #fff; color: var(--ink); }

.btn--white { background: #fff; color: var(--blue-deep); border-radius: 999px; box-shadow: 0 10px 24px rgba(20, 26, 52, 0.28); }
.btn--white:hover { transform: translateY(-2px); }

.btn--ghost-light {
  background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 3px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.14em; font-size: 15px;
}
.btn--ghost-light:hover { background: #fff; color: var(--ink); }

/* Scroll-reveal */
/* Scroll reveal. The hidden state is gated behind `.js` (set by an inline
   script in <head>) so that if JavaScript is blocked, fails to load, or
   errors, the content stays visible instead of being stranded at
   opacity: 0 with no way to reveal it. */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; transition-delay: var(--rvd, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* 02 — HEADER / NAV
   ------------------------------------------------------------------------ */
.util-strip {
  background: var(--ink); color: #C9D2EE;
  font-family: var(--font-display); font-size: 13.5px; letter-spacing: 0.14em; text-transform: uppercase;
}
.util-strip .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.util-strip span b { color: #fff; font-weight: 600; }
.util-strip a { color: #fff; font-weight: 600; }
.util-strip .util-dispatch { display: flex; align-items: center; gap: 8px; }
.util-strip .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #7EE2A8; flex: none;
  box-shadow: 0 0 0 0 rgba(126, 226, 168, 0.6); animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(126, 226, 168, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(126, 226, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(126, 226, 168, 0); }
}

.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(26, 31, 54, 0.1); }

.nav-bar { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.nav-logo { display: inline-flex; align-items: center; flex: none; }
.nav-logo img { height: 56px; width: auto; }
@media (max-width: 767px) { .nav-logo img { height: 48px; } }

.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin-left: auto; }
.nav-menu > li { position: relative; }
.nav-menu > li > a, .nav-menu > li > button.nav-drop-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 13px; color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 6px; transition: color 0.15s ease, background 0.15s ease;
}
.nav-menu > li > a:hover, .nav-menu > li > button.nav-drop-btn:hover { color: var(--blue); background: var(--blue-soft); }
.nav-drop-btn .caret { transition: transform 0.2s ease; }
.nav-item--drop.open .caret { transform: rotate(180deg); }

.drop-panel {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 264px;
  background: #fff; border: 1px solid var(--line-soft); border-top: 3px solid var(--blue);
  box-shadow: var(--shadow-2); border-radius: 0 0 8px 8px;
  padding: 10px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 60;
}
.nav-item--drop.open .drop-panel { opacity: 1; visibility: visible; transform: none; }
.drop-panel a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 10px 12px; border-radius: 6px; color: var(--ink); font-weight: 500; font-size: 15.5px;
}
.drop-panel a:hover { background: var(--mist); color: var(--blue-deep); }
.drop-panel a small { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.drop-panel .drop-head {
  font-family: var(--font-display); font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); padding: 10px 12px 4px;
}

.nav-cta { display: flex; align-items: center; gap: 18px; margin-left: 8px; }
.nav-phone { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.04em; color: var(--ink); white-space: nowrap; }
.nav-phone:hover { color: var(--blue); }
.btn--quote { background: var(--blue); color: #fff; border-radius: 6px; padding: 12px 22px; font-size: 15.5px; white-space: nowrap; }
.btn--quote:hover { background: var(--blue-deep); transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 11px; margin-left: auto;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  -webkit-tap-highlight-color: transparent;
}
.hamburger .bar { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.hamburger[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile panel */
.mobile-menu {
  display: none; position: fixed; z-index: 190;
  top: 0; right: 0; bottom: 0; width: min(400px, 92vw);
  background: #fff; box-shadow: -18px 0 48px rgba(26, 31, 54, 0.22);
  transform: translateX(105%); transition: transform 0.3s ease;
  overflow-y: auto; padding: calc(var(--header-h) + 54px) 26px 40px;
}
.mobile-menu.open { transform: none; }
.mobile-menu ul { list-style: none; }
.mobile-menu > ul > li { border-bottom: 1px solid var(--line-soft); }
.mobile-menu a, .mobile-menu .m-group-btn {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 15px 4px; color: var(--ink); text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: 0.06em; text-transform: uppercase;
}
.m-sub { overflow: hidden; max-height: 0; transition: max-height 0.3s ease; }
.m-group.open .m-sub { max-height: 460px; }
.m-sub a { font-family: var(--font-body); font-size: 15.5px; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); padding: 10px 4px 10px 18px; }
.m-group-btn .caret { transition: transform 0.2s ease; }
.m-group.open .m-group-btn .caret { transform: rotate(180deg); }
.mobile-menu .m-cta { margin-top: 22px; display: grid; gap: 12px; }
.mobile-menu .m-cta .btn { width: 100%; font-size: 16px; }
.mobile-menu .m-cta a.btn--remodel { color: #fff; }
.mobile-menu .m-cta a.btn--rfp { color: var(--ink); }
.m-lic { margin-top: 20px; font-size: 13px; color: var(--muted); text-align: center; }

.menu-scrim {
  position: fixed; inset: 0; z-index: 180; background: rgba(26, 31, 54, 0.5);
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s;
}
.menu-scrim.show { opacity: 1; visibility: visible; }

@media (max-width: 1080px) {
  .nav-menu, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  .util-strip .util-hide-m { display: none; }
}

/* 03 — HERO
   ------------------------------------------------------------------------ */
.hero {
  background: var(--ink); color: #fff;
  position: relative; overflow: hidden;
}
.hero.bp-grid {
  background-image:
    linear-gradient(var(--grid-line-inverse) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-inverse) 1px, transparent 1px);
  background-size: 46px 46px;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 6.4fr) minmax(0, 5.6fr);
  gap: clamp(30px, 4.5vw, 70px); align-items: center;
  padding-block: clamp(48px, 6vw, 92px) clamp(44px, 5vw, 80px);
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: 14.5px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: #9FB2E4;
  margin-bottom: 22px;
}
.hero-kicker::before { content: ""; width: 34px; height: 1px; background: #9FB2E4; }
.hero h1 {
  font-size: clamp(42px, 5.6vw, 78px);
  text-transform: uppercase; font-weight: 800;
  margin-bottom: 20px;
}
.hero h1 .h1-alt { color: #A9BCEF; display: block; }
.hero .hero-lede { color: var(--muted-inverse); font-size: clamp(17px, 1.6vw, 20px); max-width: 56ch; margin-bottom: 30px; }
.hero .hero-lede strong { color: #fff; font-weight: 600; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 34px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 34px; padding-top: 22px; border-top: 1px solid var(--line-inverse); }
.hero-stats .stat { font-family: var(--font-display); }
.hero-stats .stat b { display: block; font-size: 26px; font-weight: 800; letter-spacing: 0.02em; color: #fff; line-height: 1.1; }
.hero-stats .stat span { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: #8E9AC4; }

/* Right visual: clipped photo + offset frame + work-order card */
.hero-visual { position: relative; padding: 18px 18px 64px 0; }
.hero-photo {
  position: relative; z-index: 2;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 88% 100%, 0 100%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.hero-photo img { width: 100%; height: clamp(320px, 34vw, 470px); object-fit: cover; }
.hero-frame {
  position: absolute; z-index: 1; inset: 0 0 46px 40px;
  transform: translate(22px, 22px);
  border: 2px solid rgba(62, 90, 169, 0.55);
}
.hero-frame::after {
  content: "DWG 26-114 / REV C"; position: absolute; right: 10px; bottom: 8px;
  font-family: var(--font-display); font-size: 11.5px; letter-spacing: 0.22em; color: rgba(159, 178, 228, 0.65);
}
.work-order {
  position: absolute; z-index: 3; left: -14px; bottom: 8px;
  width: min(300px, 82%);
  background: #fff; color: var(--ink); border-radius: 8px;
  box-shadow: var(--shadow-2); padding: 16px 18px 18px;
  border-left: 4px solid var(--blue);
}
.work-order .wo-tag { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }
.work-order .wo-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: 0.03em; margin: 6px 0 10px; }
.work-order .wo-bar { height: 6px; border-radius: 4px; background: var(--mist); overflow: hidden; }
.work-order .wo-bar i { display: block; height: 100%; width: 62%; background: linear-gradient(90deg, var(--blue), var(--blue-deep)); border-radius: 4px; }
.work-order .wo-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.work-order .wo-meta b { color: var(--ink); }

/* Project log marquee */
.project-log { border-top: 1px solid var(--line-inverse); background: rgba(255, 255, 255, 0.03); overflow: hidden; position: relative; }
.project-log::before {
  content: "Project log"; position: absolute; left: 0; top: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; padding: 0 18px;
  background: var(--blue); color: #fff;
  font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
}
.log-track { display: flex; width: max-content; animation: log-scroll 46s linear infinite; }
.project-log:hover .log-track { animation-play-state: paused; }
.log-track ul { display: flex; list-style: none; }
.log-track li {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 30px; white-space: nowrap;
  font-family: var(--font-display); font-size: 14.5px; letter-spacing: 0.13em; text-transform: uppercase; color: #B9C4E6;
}
.log-track li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7EE2A8; flex: none; }
.log-track li.live::before { background: #F5C36B; }
.log-track li b { color: #fff; font-weight: 600; }
@keyframes log-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { padding: 0 0 58px; max-width: 560px; }
  .work-order { left: 0; }
}

/* 04 — TRUST BAR
   ------------------------------------------------------------------------ */
.trust-bar { background: var(--blue); color: #fff; }
.trust-bar .wrap {
  display: grid; grid-template-columns: repeat(5, 1fr);
  min-height: 76px; align-items: stretch;
}
.trust-item {
  display: flex; align-items: center; justify-content: center; gap: 11px;
  padding: 14px 10px; text-align: left;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-display); font-size: 15.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; line-height: 1.25;
}
.trust-item:first-child { border-left: 0; }
.trust-item svg { flex: none; opacity: 0.9; }
.trust-item .stars { color: #FFD37A; letter-spacing: 0.12em; font-size: 14px; display: block; }
.trust-item small { display: block; font-size: 11.5px; letter-spacing: 0.18em; color: rgba(255, 255, 255, 0.75); }
@media (max-width: 1020px) {
  .trust-bar .wrap { grid-template-columns: repeat(2, 1fr); padding-block: 6px; }
  .trust-item { border-left: 0; justify-content: flex-start; padding: 10px 6px; }
  .trust-item--wide { grid-column: 1 / -1; }
}
/* Mobile: two equal columns, icon stacked over centred text, nothing overflows.
   minmax(0, 1fr) is what stops a long uppercase string from forcing the grid
   wider than the viewport. */
@media (max-width: 767px) {
  .trust-bar { overflow-x: hidden; }
  .trust-bar .wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
    padding-block: 4px;
    row-gap: 2px;
  }
  .trust-item {
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 6px;
    padding: 12px 8px;
    font-size: 13.5px;
    letter-spacing: 0.06em;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  .trust-item:nth-child(-n + 2) { border-top: 0; }
  .trust-item > span { min-width: 0; }
  .trust-item svg { width: 22px; height: 22px; }
  .trust-item small {
    font-size: 11px;
    letter-spacing: 0.1em;
    margin-top: 2px;
  }
  .trust-item .stars { font-size: 13px; }
  /* The fifth item spans both columns so the row never leaves a ragged gap. */
  .trust-item--wide { grid-column: 1 / -1; }
}

/* 05 — ABOUT / WHY US
   ------------------------------------------------------------------------ */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(34px, 5vw, 84px); align-items: start;
}
.about-copy h2 { font-size: clamp(34px, 4.2vw, 54px); text-transform: uppercase; }
.about-copy .lede { font-size: 19px; color: var(--ink); font-weight: 500; }
.about-copy p { color: var(--muted); }
.about-sign { display: flex; align-items: center; gap: 16px; margin-top: 26px; }
.about-sign .sig-mark {
  width: 54px; height: 54px; flex: none; border-radius: 8px;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: 0.04em;
}
.about-sign b { display: block; font-family: var(--font-display); font-size: 19px; letter-spacing: 0.06em; text-transform: uppercase; }
.about-sign span { font-size: 14px; color: var(--muted); }

.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fact-tile {
  background: var(--mist); border: 1px solid var(--line-soft); border-radius: var(--rad);
  padding: 22px 20px 18px; position: relative; overflow: hidden;
}
.fact-tile::after { content: ""; position: absolute; left: 20px; right: auto; top: 0; width: 34px; height: 3px; background: var(--blue); }
.fact-tile b { display: block; font-family: var(--font-display); font-size: clamp(34px, 3vw, 44px); font-weight: 800; line-height: 1; color: var(--ink); }
.fact-tile span { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.fact-tile--quote { grid-column: 1 / -1; background: var(--ink); color: #fff; border: 0; }
.fact-tile--quote::after { background: #7EE2A8; }
.fact-tile--quote p { font-size: 17.5px; font-weight: 500; margin: 4px 0 6px; line-height: 1.5; }
.fact-tile--quote span { color: #9FB2E4; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* 06 — SERVICES LOGISTICS MATRIX
   ------------------------------------------------------------------------ */
.matrix { display: grid; grid-template-columns: minmax(250px, 4fr) minmax(0, 8fr); gap: clamp(18px, 2.4vw, 30px); align-items: start; }

.matrix-rail { display: grid; gap: 12px; }
.matrix-tab {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center;
  text-align: left; width: 100%;
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--rad);
  padding: 18px 20px; transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  position: relative;
}
.matrix-tab .tab-letter {
  grid-row: span 2;
  width: 52px; height: 52px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--mist); color: var(--blue);
  font-family: var(--font-display); font-weight: 800; font-size: 26px;
  transition: background 0.18s ease, color 0.18s ease;
}
.matrix-tab .tab-title { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.05; }
.matrix-tab .tab-sub { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.matrix-tab:hover { border-color: var(--blue); transform: translateX(2px); }
.matrix-tab[aria-selected="true"] {
  border-color: var(--blue); box-shadow: var(--shadow-1);
}
.matrix-tab[aria-selected="true"]::before {
  content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 4px; background: var(--blue); border-radius: 0 4px 4px 0;
}
.matrix-tab[aria-selected="true"] .tab-letter { background: var(--blue); color: #fff; }

.matrix-panel {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--rad);
  box-shadow: var(--shadow-1); padding: clamp(22px, 2.6vw, 36px);
}
.matrix-panel[hidden] { display: none; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 6px; }
.panel-head h3 { font-size: clamp(24px, 2.4vw, 32px); text-transform: uppercase; margin: 0; }
.panel-head .panel-note { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.svc-rows { list-style: none; }
.svc-rows li { border-bottom: 1px solid var(--line-soft); }
.svc-rows li:last-child { border-bottom: 0; }
.svc-row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 15px 4px; color: var(--ink);
  transition: background 0.15s ease;
}
.svc-row:hover { background: var(--mist); }
.svc-row .svc-idx { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; color: var(--blue); opacity: 0.85; }
.svc-row .svc-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.1; }
.svc-row .svc-desc { font-size: 14px; color: var(--muted); display: block; font-family: var(--font-body); font-weight: 400; text-transform: none; letter-spacing: 0; margin-top: 3px; }
.svc-row .svc-go { font-family: var(--font-display); font-size: 13.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); white-space: nowrap; }
span.svc-go { color: var(--muted); opacity: 0.75; }
.svc-row .svc-go .arr { display: inline-block; transition: transform 0.18s ease; }
.svc-row:hover .svc-go .arr { transform: translateX(4px); }
.svc-row--hot { background: var(--ink); border-radius: 8px; color: #fff; margin: 8px -4px 4px; padding-inline: 14px; }
.svc-row--hot:hover { background: var(--ink-2); }
.svc-row--hot .svc-idx { color: #7EE2A8; }
.svc-row--hot .svc-desc { color: var(--muted-inverse); }
.svc-row--hot .svc-go { color: #7EE2A8; }

/* Tab C — managed trades narrative */
.trades-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; padding-top: 10px; }
.trades-grid .big-claim { font-family: var(--font-display); font-size: clamp(26px, 2.8vw, 38px); font-weight: 800; text-transform: uppercase; line-height: 1.02; margin: 10px 0 14px; }
.trades-grid .big-claim em { font-style: normal; color: var(--blue); }
.trades-grid p { color: var(--muted); font-size: 15.5px; }
.trade-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.trade-chips span {
  font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; color: var(--ink-3);
}
.trades-flow { display: grid; gap: 0; }
.tf-step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; position: relative; padding-bottom: 22px; }
.tf-step:last-child { padding-bottom: 0; }
.tf-step::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: repeating-linear-gradient(var(--line) 0 5px, transparent 5px 10px); }
.tf-step:last-child::before { display: none; }
.tf-step .tf-dot {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--mist); border: 1.5px solid var(--blue); color: var(--blue);
  font-family: var(--font-display); font-weight: 800; font-size: 17px;
}
.tf-step b { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.05em; text-transform: uppercase; display: block; padding-top: 2px; }
.tf-step span { font-size: 14px; color: var(--muted); }

@media (max-width: 940px) {
  .matrix { grid-template-columns: 1fr; }
  .matrix-rail { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 6px; scroll-snap-type: x proximity; }
  .matrix-tab { min-width: 240px; scroll-snap-align: start; grid-template-columns: auto 1fr; padding: 14px 16px; }
  .matrix-tab .tab-sub { display: none; }
  .matrix-tab .tab-letter { width: 40px; height: 40px; font-size: 20px; grid-row: span 1; }
  .trades-grid { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 40px minmax(0, 1fr); }
  .svc-row .svc-go { grid-column: 2; justify-self: start; }
}

/* 07 — PORTFOLIO GRID + LIGHTBOX
   ------------------------------------------------------------------------ */
.pf-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 205px; gap: 14px;
}
.pf-item {
  position: relative; overflow: hidden; border-radius: 8px; cursor: zoom-in;
  background: var(--ink);
}
.pf-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1), opacity 0.4s ease; }
.pf-item:hover img { transform: scale(1.05); opacity: 0.82; }
.pf-item figcaption {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 34px 16px 13px;
  background: linear-gradient(transparent, rgba(20, 24, 44, 0.86));
  color: #fff; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px;
  transform: translateY(8px); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease;
}
.pf-item:hover figcaption, .pf-item:focus-visible figcaption { transform: none; opacity: 1; }
.pf-item figcaption b { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.1; }
.pf-item figcaption small { display: block; font-family: var(--font-body); font-size: 12.5px; color: rgba(255, 255, 255, 0.75); text-transform: none; letter-spacing: 0.02em; font-weight: 400; }
.pf-item .pf-plus {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  border: 1.5px solid rgba(255, 255, 255, 0.8); display: grid; place-items: center; font-size: 17px; line-height: 1;
}
.pf-item--w2 { grid-column: span 2; }
.pf-item--h2 { grid-row: span 2; }

.pf-more {
  grid-column: span 2; border-radius: 8px;
  background: var(--blue); color: #fff; padding: 22px 24px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
}
.pf-more b { font-family: var(--font-display); font-size: clamp(22px, 2vw, 28px); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.05; }
.pf-more a { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; display: inline-flex; gap: 8px; align-items: center; }
.pf-more a:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .pf-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .pf-item--w2, .pf-more { grid-column: span 2; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(15, 18, 34, 0.94);
  display: none; align-items: center; justify-content: center;
  padding: clamp(14px, 4vw, 48px);
}
.lightbox.open { display: flex; }
.lb-stage { position: relative; max-width: min(1080px, 94vw); width: 100%; }
.lb-stage img {
  width: 100%; max-height: 76vh; object-fit: contain;
  border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  background: #10131f;
}
.lb-caption {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px;
  color: #fff; padding: 14px 4px 0;
}
.lb-caption b { font-family: var(--font-display); font-size: 21px; letter-spacing: 0.05em; text-transform: uppercase; }
.lb-caption span { color: rgba(255, 255, 255, 0.66); font-size: 14px; }
.lb-caption a { color: #A9BCEF; font-weight: 600; font-size: 15px; }
.lb-caption a:hover { color: #fff; }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.35); color: #fff;
  display: grid; place-items: center; font-size: 22px;
  transition: background 0.15s ease;
}
.lb-btn:hover { background: var(--blue); border-color: var(--blue); }
.lb-prev { left: -8px; }
.lb-next { right: -8px; }
.lb-close {
  position: absolute; top: -46px; right: 0;
  font-family: var(--font-display); letter-spacing: 0.18em; text-transform: uppercase; font-size: 14px; font-weight: 600;
  color: rgba(255, 255, 255, 0.8); display: inline-flex; align-items: center; gap: 8px;
}
.lb-close:hover { color: #fff; }
.lb-count { position: absolute; top: -44px; left: 0; color: rgba(255, 255, 255, 0.55); font-family: var(--font-display); font-size: 14px; letter-spacing: 0.2em; }

/* 08 — CRAFTSMANSHIP FOCUS
   ------------------------------------------------------------------------ */
.craft { color: #fff; }
.craft-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 26px); align-items: start; }
.craft-card { position: relative; }
.craft-card:nth-child(1) { grid-column: 1 / span 4; }
.craft-card:nth-child(2) { grid-column: 5 / span 4; margin-top: 54px; }
.craft-card:nth-child(3) { grid-column: 9 / span 4; margin-top: 18px; }
.craft-card:nth-child(4) { grid-column: 3 / span 4; margin-top: -20px; }
.craft-card:nth-child(5) { grid-column: 7 / span 4; margin-top: 34px; }

.craft-frame { position: relative; overflow: hidden; background: var(--ink-2); }
.craft-frame::after {
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.craft-frame--notch { clip-path: polygon(0 0, 100% 0, 100% 100%, 12% 100%, 0 88%); }
.craft-frame--chamfer { clip-path: polygon(0 12%, 12% 0, 100% 0, 100% 100%, 0 100%); }
.craft-frame--corner { clip-path: polygon(0 0, 88% 0, 100% 10%, 100% 100%, 0 100%); }
.craft-frame--slant { clip-path: polygon(0 0, 100% 0, 100% 90%, 90% 100%, 0 100%); }
.craft-frame .craft-viewport { aspect-ratio: 4 / 5; overflow: hidden; }
.craft-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.craft-card:hover .craft-frame img { transform: scale(1.045); }
/* macro zoom crops */
.macro-zoom-1 img { transform: scale(1.9); transform-origin: 24% 42%; }
.craft-card:hover .macro-zoom-1 img { transform: scale(1.96); }
.macro-zoom-2 img { transform: scale(2.1); transform-origin: 78% 42%; }
.craft-card:hover .macro-zoom-2 img { transform: scale(2.16); }
.macro-zoom-3 img { transform: scale(1.5); transform-origin: 62% 18%; }
.craft-card:hover .macro-zoom-3 img { transform: scale(1.56); }

.craft-meta { padding: 14px 2px 0; }
.craft-meta .cm-tag { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: #7EE2A8; }
.craft-meta b { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin: 4px 0 3px; }
.craft-meta span { font-size: 13.5px; color: var(--muted-inverse); }

@media (max-width: 880px) {
  .craft-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .craft-card, .craft-card:nth-child(n) { grid-column: auto; margin-top: 0; }
  .craft-card:nth-child(2) { margin-top: 40px; }
  .craft-card:nth-child(4) { margin-top: -40px; }
  .craft-card:nth-child(5) { grid-column: 1 / -1; max-width: 420px; margin-inline: auto; }
}

/* 09 — BEFORE / AFTER SLIDER
   ------------------------------------------------------------------------ */
.ba-wrap { max-width: 1020px; margin-inline: auto; }
.ba-slider {
  --pos: 50%;
  position: relative; overflow: hidden; border-radius: var(--rad);
  aspect-ratio: 16 / 9; max-height: 600px;
  box-shadow: var(--shadow-2);
  touch-action: pan-y; user-select: none; cursor: col-resize;
  background: var(--ink);
}
.ba-after, .ba-before { position: absolute; inset: 0; }
.ba-after img { width: 100%; height: 100%; object-fit: cover; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); background: var(--ink); }
.ba-before svg { width: 100%; height: 100%; display: block; }
.ba-divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: #fff; z-index: 3; box-shadow: 0 0 14px rgba(0, 0, 0, 0.5);
}
.ba-handle {
  position: absolute; top: 50%; left: var(--pos); z-index: 4;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: #fff; color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
  border: 0; cursor: ew-resize; font-size: 0;
}
.ba-handle::before { content: "◄ ►"; font-size: 13px; letter-spacing: 2px; font-weight: 700; color: var(--blue-deep); }
.ba-handle:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ba-label {
  position: absolute; top: 16px; z-index: 3;
  font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 4px;
}
.ba-label--plan { left: 16px; background: rgba(26, 31, 54, 0.85); color: #A9BCEF; border: 1px solid rgba(169, 188, 239, 0.4); }
.ba-label--built { right: 16px; background: rgba(255, 255, 255, 0.92); color: var(--ink); }
.ba-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 16px 6px 0; color: var(--muted); font-size: 14.5px; }
.ba-foot b { color: var(--ink); font-family: var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; font-size: 16px; }

/* 10 — HOW WE WORK
   ------------------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px 20px; counter-reset: step; }
.step { position: relative; }
.step::before {
  content: ""; position: absolute; top: 26px; left: 58px; right: -14px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 7px, transparent 7px 14px);
}
.step:last-child::before { display: none; }
.step .st-num {
  width: 52px; height: 52px; border-radius: 10px; position: relative; z-index: 1;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 21px;
  margin-bottom: 16px;
}
.step:first-child .st-num, .step:last-child .st-num { background: var(--blue); }
.step b { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.05; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--muted); margin: 0; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 52px 1fr; gap: 0 20px; padding-bottom: 28px; }
  .step::before { top: 60px; left: 25px; right: auto; bottom: 6px; width: 2px; height: auto; background: repeating-linear-gradient(var(--line) 0 7px, transparent 7px 14px); }
  .step .st-num { margin-bottom: 0; }
  .step b, .step p { grid-column: 2; }
  .step b { margin-top: 3px; }
}

/* 11 — REVIEWS
   ------------------------------------------------------------------------ */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--rad);
  padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-1); position: relative;
}
.review-card::before {
  content: "“"; position: absolute; top: 6px; right: 20px;
  font-family: var(--font-display); font-size: 90px; line-height: 1; color: var(--blue-soft); font-weight: 800;
}
.review-stars { color: #E8A93C; font-size: 15px; letter-spacing: 3px; }
.review-stars small { color: var(--muted); font-family: var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; margin-left: 8px; }
.review-card blockquote { margin: 0; font-size: 15.5px; color: var(--ink-3); line-height: 1.65; flex: 1; }
.review-who { display: flex; gap: 13px; align-items: center; border-top: 1px solid var(--line-soft); padding-top: 15px; }
.review-who .rw-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--mist); color: var(--blue-deep); border: 1.5px solid var(--blue);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 16px;
}
.review-who b { display: block; font-family: var(--font-display); font-size: 17.5px; letter-spacing: 0.05em; text-transform: uppercase; }
.review-who span { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* 12 — OPERATIONAL FOOTPRINT
   ------------------------------------------------------------------------ */
.footprint-grid { display: grid; grid-template-columns: minmax(280px, 4.2fr) minmax(0, 7.8fr); gap: clamp(20px, 3vw, 44px); align-items: stretch; }

.fp-sidebar {
  background: var(--ink); color: #fff; border-radius: var(--rad);
  padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 4px;
}
.fp-group { margin-bottom: 18px; }
.fp-group-h {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #9FB2E4;
  margin-bottom: 8px;
}
.fp-group-h::after { content: ""; flex: 1; height: 1px; background: var(--line-inverse); }
.fp-list { list-style: none; }
.fp-list li { border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.fp-list li:last-child { border-bottom: 0; }
.fp-list a, .fp-list .fp-plain {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 8px; border-radius: 6px; color: #E7EBF8;
  font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease;
}
.fp-list a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.fp-list li.is-hot a, .fp-list li.is-hot .fp-plain { background: rgba(62, 90, 169, 0.28); color: #fff; }
.fp-list .fp-dot { width: 9px; height: 9px; border-radius: 50%; background: #7EE2A8; flex: none; }
.fp-list .fp-dot--hq { background: #F5C36B; box-shadow: 0 0 0 4px rgba(245, 195, 107, 0.18); }
.fp-list .fp-dot--x { background: #A9BCEF; }
.fp-list .fp-tag { margin-left: auto; font-size: 11px; letter-spacing: 0.18em; color: #8E9AC4; font-weight: 600; }
.fp-note { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-inverse); font-size: 13.5px; color: var(--muted-inverse); }
.fp-note b { color: #fff; }

#coverage-map {
  background: var(--mist); border: 1px solid var(--line-soft); border-radius: var(--rad);
  padding: clamp(14px, 1.8vw, 24px); position: relative;
  display: flex; flex-direction: column;
}
#coverage-map .map-canvas { flex: 1; min-height: 0; }
#coverage-map svg { width: 100%; height: auto; display: block; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 12px 8px 0; font-family: var(--font-display); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; }

/* SVG map internals */
.map-water { fill: rgba(62, 90, 169, 0.16); stroke: rgba(62, 90, 169, 0.35); stroke-width: 1.2; }
.map-zone { fill: rgba(62, 90, 169, 0.05); stroke: var(--blue); stroke-width: 1.4; stroke-dasharray: 6 6; }
.map-zone--x { fill: rgba(126, 226, 168, 0.05); stroke: #4E9E74; }
.map-label { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; fill: var(--muted); }
.map-label--water { fill: rgba(62, 90, 169, 0.65); font-size: 11.5px; }
.map-pin { cursor: pointer; }
.map-pin circle.core { fill: var(--blue); stroke: #fff; stroke-width: 2; transition: r 0.15s ease, fill 0.15s ease; }
.map-pin.pin--hq circle.core { fill: #E8A93C; }
.map-pin.pin--x circle.core { fill: #4E9E74; }
.map-pin text { font-family: var(--font-display); font-size: 14.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--ink); paint-order: stroke; stroke: rgba(242, 244, 251, 0.9); stroke-width: 3px; }
.map-pin.active circle.core, .map-pin:hover circle.core { fill: var(--blue-deep); }
.map-pin.pin--hq.active circle.core, .map-pin.pin--hq:hover circle.core { fill: #C9871B; }
.hq-ring { fill: none; stroke: #E8A93C; stroke-width: 1.5; opacity: 0.8; transform-box: fill-box; transform-origin: center; animation: ring 3s ease-out infinite; }
.hq-ring--2 { animation-delay: 1.5s; }
@keyframes ring {
  from { opacity: 0.7; transform: scale(0.4); }
  to { opacity: 0; transform: scale(2.1); }
}
@media (max-width: 920px) { .footprint-grid { grid-template-columns: 1fr; } }

/* 13 — COMPLIANCE / PM TRUST
   ------------------------------------------------------------------------ */
.comp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.comp-card {
  background: var(--ink-2); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: var(--rad);
  padding: 24px 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.comp-card .cc-icon {
  width: 50px; height: 50px; border-radius: 9px; flex: none;
  background: rgba(62, 90, 169, 0.25); color: #A9BCEF;
  display: grid; place-items: center;
}
.comp-card b { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.1; color: #fff; }
.comp-card p { font-size: 14px; color: var(--muted-inverse); margin: 0; flex: 1; }
.comp-card .cc-foot { font-family: var(--font-display); font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #7EE2A8; }
.comp-card .cc-foot a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.comp-strip {
  margin-top: 18px; border-radius: var(--rad);
  background: rgba(62, 90, 169, 0.16); border: 1px solid rgba(122, 148, 216, 0.35);
  padding: 20px 26px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px;
}
.comp-strip p { margin: 0; flex: 1 1 380px; color: #DCE3F7; font-size: 15.5px; }
.comp-strip p b { color: #fff; }
@media (max-width: 1000px) { .comp-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .comp-grid { grid-template-columns: 1fr; } }

/* 14 — FAQ ACCORDION
   ------------------------------------------------------------------------ */
.faq-list { max-width: 860px; margin-inline: auto; border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  text-align: left; padding: 20px 4px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 2vw, 23px); letter-spacing: 0.03em; text-transform: uppercase;
  transition: color 0.15s ease;
}
.faq-q:hover { color: var(--blue); }
.faq-q .faq-ico {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--line); display: grid; place-items: center;
  transition: transform 0.25s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.faq-item.open .faq-q { color: var(--blue-deep); }
.faq-item.open .faq-ico { transform: rotate(45deg); background: var(--blue); border-color: var(--blue); color: #fff; }
.faq-a { overflow: hidden; max-height: 0; transition: max-height 0.32s ease; }
.faq-a-inner { padding: 0 44px 22px 4px; color: var(--muted); font-size: 16px; }
.faq-a-inner a { font-weight: 600; }
.faq-cta { text-align: center; margin-top: 30px; color: var(--muted); }

/* 15 — BLOG PREVIEW
   ------------------------------------------------------------------------ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--rad); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.post-thumb {
  aspect-ratio: 16 / 8.5; position: relative; overflow: hidden;
  background: var(--ink);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  display: grid; place-items: center;
}
.post-thumb svg { width: 44%; height: auto; max-height: 78%; }
.post-thumb .pt-chip {
  position: absolute; left: 14px; top: 12px;
  background: var(--blue); color: #fff; border-radius: 4px; padding: 4px 11px;
  font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.post-body h3 { font-size: 24px; text-transform: uppercase; margin: 0; }
.post-body h3 a { color: var(--ink); }
.post-body h3 a:hover { color: var(--blue); }
.post-body p { font-size: 14.5px; color: var(--muted); margin: 0; flex: 1; }
.post-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--muted); font-family: var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; border-top: 1px solid var(--line-soft); padding-top: 13px; }
.post-meta .pm-read { color: var(--blue); font-weight: 700; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* 16 — CTA BAND
   ------------------------------------------------------------------------ */
.cta-band { position: relative; overflow: hidden; }
.cta-band .wrap { position: relative; z-index: 1; text-align: center; max-width: 900px; }
.cta-band h2 { font-size: clamp(38px, 5vw, 64px); text-transform: uppercase; }
.cta-band p { color: rgba(255, 255, 255, 0.85); font-size: 18px; max-width: 54ch; margin-inline: auto; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 28px; }
.cta-band .cta-lic { margin-top: 26px; font-family: var(--font-display); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.66); }
.cta-band.bp-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
}

/* 17 — FOOTER
   ------------------------------------------------------------------------ */
.site-footer { background: var(--ink); color: var(--muted-inverse); font-size: 15px; }
.footer-main {
  display: grid; grid-template-columns: 3.6fr 2fr 2fr 2fr 2.6fr;
  gap: clamp(26px, 3vw, 48px);
  padding-block: clamp(40px, 5vw, 64px) clamp(28px, 3vw, 40px);
}
.f-brand .f-logo-plate {
  display: inline-block; background: #fff; border-radius: 8px; padding: 12px 16px; margin-bottom: 18px;
}
.f-brand .f-logo-plate img { height: 64px; width: auto; }
.f-brand p { font-size: 14.5px; max-width: 34ch; }
.f-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.f-badges span {
  font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--line-inverse); border-radius: 4px; padding: 5px 10px; color: #C9D2EE;
}
.f-col h4 { color: #fff; font-size: 17px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; margin-bottom: 16px; }
.f-col ul { list-style: none; display: grid; gap: 9px; }
.f-col a { color: var(--muted-inverse); transition: color 0.15s ease; }
.f-col a:hover { color: #fff; }
.f-contact li { display: flex; gap: 10px; align-items: baseline; }
.f-contact .fc-k { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #8E9AC4; min-width: 58px; }
.f-contact a { color: #fff; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-block: 18px; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: #8E9AC4; }
@media (max-width: 1000px) { .footer-main { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; } }
@media (max-width: 540px) { .footer-main { grid-template-columns: 1fr; } }

/* 18 — INNER PAGES (headers, prose, forms)
   ------------------------------------------------------------------------ */
.page-head { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.page-head .wrap { padding-block: clamp(44px, 6vw, 80px) clamp(36px, 5vw, 64px); position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(38px, 5vw, 66px); text-transform: uppercase; max-width: 18ch; }
.page-head .lede { color: var(--muted-inverse); font-size: clamp(17px, 1.6vw, 19.5px); max-width: 62ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-display); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: #8E9AC4; margin-bottom: 18px; }
.crumbs a { color: #C9D2EE; }
.crumbs a:hover { color: #fff; }
.crumbs .sep { opacity: 0.5; }

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(28px, 3vw, 40px); text-transform: uppercase; margin-top: 1.4em; }
.prose h3 { font-size: clamp(22px, 2.2vw, 28px); text-transform: uppercase; margin-top: 1.3em; }
.prose p, .prose li { color: var(--ink-3); }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 1.2em; display: grid; gap: 8px; }
.prose blockquote { margin: 1.4em 0; padding: 18px 24px; border-left: 4px solid var(--blue); background: var(--mist); border-radius: 0 8px 8px 0; font-weight: 500; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 15px; }
.prose th { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 14.5px; text-align: left; background: var(--ink); color: #fff; padding: 11px 14px; }
.prose td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
.prose tr:nth-child(even) td { background: var(--mist); }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .ff-full { grid-column: 1 / -1; }
.ff label { display: block; font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 7px; }
.ff label .req { color: var(--blue); }
.ff input, .ff select, .ff textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 6px;
  padding: 13px 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ff textarea { min-height: 150px; resize: vertical; }
.ff input:focus, .ff select:focus, .ff textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.form-note { font-size: 13.5px; color: var(--muted); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* 18b — INNER PAGE COMPONENTS
   ------------------------------------------------------------------------ */
.page-head .page-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.page-head .ph-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-inverse); }
.page-head .ph-facts span { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: #9FB2E4; }
.page-head .ph-facts b { color: #fff; font-weight: 700; }

/* Two-column: prose + sticky aside */
.split { display: grid; grid-template-columns: minmax(0, 7.5fr) minmax(280px, 4fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.aside-card {
  position: sticky; top: calc(var(--header-h) + 20px);
  background: var(--mist); border: 1px solid var(--line-soft); border-radius: var(--rad);
  padding: 24px 24px 26px;
}
.aside-card h3 { font-size: 22px; text-transform: uppercase; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.aside-card ul { list-style: none; display: grid; gap: 10px; margin-bottom: 18px; }
.aside-card li { display: flex; justify-content: space-between; gap: 14px; font-size: 14.5px; color: var(--ink-3); border-bottom: 1px solid var(--line-soft); padding-bottom: 9px; }
.aside-card li:last-child { border-bottom: 0; }
.aside-card li b { font-family: var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; font-size: 15px; white-space: nowrap; }
.aside-card .btn { width: 100%; margin-top: 4px; }
.aside-card .ac-phone { text-align: center; margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.aside-card .ac-phone a { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); display: block; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .aside-card { position: static; } }

/* Included-scope grid on service pages */
.inc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 8px 0 10px; }
.inc-item { background: #fff; border: 1px solid var(--line-soft); border-left: 3px solid var(--blue); border-radius: 8px; padding: 16px 18px; }
.bg-mist .inc-item { background: #fff; }
.inc-item b { display: block; font-family: var(--font-display); font-size: 18px; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.1; margin-bottom: 4px; }
.inc-item span { font-size: 13.5px; color: var(--muted); }

/* Small photo strip */
.gal-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.gal-strip figure { border-radius: 8px; overflow: hidden; background: var(--ink); }
.gal-strip img { width: 100%; height: 280px; object-fit: cover; }
.gal-strip figcaption { font-size: 13px; color: var(--muted); padding: 10px 4px 0; font-family: var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.contact-card { background: var(--mist); border: 1px solid var(--line-soft); border-radius: var(--rad); padding: 20px; }
.contact-card .cc-k { font-family: var(--font-display); font-size: 12.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue); display: block; margin-bottom: 6px; }
.contact-card a, .contact-card .cc-v { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: 0.03em; }
.contact-card p { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .contact-grid { grid-template-columns: 1fr; } }
.form-shell { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--rad); box-shadow: var(--shadow-1); padding: clamp(22px, 3vw, 40px); }

/* Blog article */
.article-head .art-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; color: #9FB2E4; font-family: var(--font-display); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 18px; }
.prose .callout { background: var(--mist); border: 1px solid var(--line-soft); border-left: 4px solid var(--blue); border-radius: 0 8px 8px 0; padding: 18px 22px; margin: 1.4em 0; font-size: 15.5px; }
.prose .callout b { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; }
.author-box { display: flex; gap: 18px; align-items: center; background: var(--mist); border-radius: var(--rad); padding: 20px 24px; margin-top: 40px; max-width: 760px; }
.author-box .ab-mark { width: 56px; height: 56px; flex: none; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.author-box b { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.06em; text-transform: uppercase; display: block; }
.author-box p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }

/* Related links rows */
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.rel-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 8px; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--ink); transition: border-color 0.15s ease, transform 0.15s ease; }
.rel-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.rel-card b { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.1; }
.rel-card small { display: block; font-size: 12.5px; color: var(--muted); font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 400; margin-top: 3px; }
.rel-card .arr { color: var(--blue); font-weight: 700; }

/* 19 — MOTION PREFERENCES
   ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .rv, .js .rv { opacity: 1; transform: none; }
  .log-track { animation: none; }
  .project-log { overflow-x: auto; }
}

/* 20 — DESIGN-SYSTEM TOKEN ALIASES
   Canonical names for the palette. The rules above use the original
   internal names (--ink, --mist, --blue-deep …); these aliases expose the
   same values under the documented design-system names so new components
   can be written against either set.
   ------------------------------------------------------------------------ */
:root {
  --blue: #3E5AA9;
  --blue-d: #2D4490;
  --blue-l: #6B87D4;
  --blue-pale: #EEF1FA;
  --blue-mid: #C5CFED;
  --dark: #1A1F36;
  --footer-bg: #20243A;
  --slate: #4A5068;
  --mid: #757B98;
  --fog: #E4E7F4;
  --smoke: #F2F4FB;
}

/* 21 — PORTFOLIO PAGE (filters, project grid, gallery lightbox)
   ------------------------------------------------------------------------ */
.pj-filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: clamp(24px, 3vw, 38px);
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.pj-filter {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  letter-spacing: 0.16em; text-transform: uppercase;
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 9px 20px; color: var(--ink-3); background: #fff;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.pj-filter:hover { border-color: var(--blue); color: var(--blue); }
.pj-filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pj-filter .pjf-n { opacity: 0.55; margin-left: 7px; font-size: 12.5px; }

.pj-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px; gap: 14px;
}
.pj-card {
  position: relative; overflow: hidden; border-radius: var(--rad);
  background: var(--ink); cursor: pointer; grid-column: span 1; grid-row: span 1;
  border: 0; padding: 0; width: 100%; text-align: left; display: block;
}
.pj-card--w2 { grid-column: span 2; }
.pj-card--h2 { grid-row: span 2; }
.pj-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1), opacity 0.4s ease; }
.pj-card:hover img, .pj-card:focus-visible img { transform: scale(1.05); opacity: 0.8; }
.pj-badge {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  background: rgba(26, 31, 54, 0.82); color: #fff; border-radius: 4px; padding: 4px 11px;
  font-family: var(--font-display); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.pj-count {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  background: rgba(26, 31, 54, 0.82); color: #fff; border-radius: 4px; padding: 4px 9px;
  font-family: var(--font-display); font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em;
}
.pj-cap {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: 34px 16px 14px; color: #fff;
  background: linear-gradient(to top, rgba(26, 31, 54, 0.92), rgba(26, 31, 54, 0));
}
.pj-cap b { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.1; display: block; }
.pj-cap small { display: block; font-size: 12.5px; color: rgba(255, 255, 255, 0.75); margin-top: 2px; }
.pj-cap .pj-plus { font-family: var(--font-display); font-size: 24px; line-height: 1; opacity: 0.8; }
.pj-card[hidden] { display: none; }
.pj-empty { color: var(--muted); padding: 30px 0; }
@media (max-width: 1000px) { .pj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; } }
@media (max-width: 560px) {
  .pj-grid { grid-template-columns: 1fr; grid-auto-rows: 230px; }
  .pj-card--w2, .pj-card--h2 { grid-column: span 1; grid-row: span 1; }
}

/* Thumbnail rail inside the project lightbox */
.lb-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; justify-content: center; }
.lb-thumb { width: 64px; height: 44px; border-radius: 4px; overflow: hidden; border: 2px solid transparent; opacity: 0.5; padding: 0; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb[aria-current="true"] { border-color: var(--blue-l); opacity: 1; }
.lb-thumb:hover { opacity: 1; }
