/* ============================================================
   BENIR GLOBAL LTD — DESIGN SYSTEM
   Direction: technical/blueprint — drawn from the company's own
   world (engineering drawings, structural steel, survey marks)
   rather than a generic "construction company" template.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;700;800;900&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* Color tokens — named for what they are in the subject's own world */
  --charcoal:        #0E1013;  /* near-black ink */
  --charcoal-soft:    #20242A;
  --concrete:        #E8EFF7;  /* light blue tint — section banding */
  --concrete-deep:    #D2E0F0;
  --paper:           #FFFFFF;  /* pure white */
  --blueprint:       #1E50A0;  /* Benir brand blue — sampled from logo */
  --blueprint-bright: #4F76B4;
  --blueprint-deep:   #163E80;
  --oxide:           #D61E2A;  /* Benir brand red — sampled from logo */
  --oxide-soft:       #DD4650;
  --steel:           #57647A;  /* blue-grey, secondary text on light */
  --line:            rgba(14,16,19,0.13);
  --line-on-dark:     rgba(255,255,255,0.18);

  --font-display: 'Big Shoulders Display', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max-width: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: 0.01em; }
p { margin: 0; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 5s !important; transition-duration: 0.001ms !important; }
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Blueprint grid texture (subtle, used as section backdrop) ---------- */
.grid-tex {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ---------- Eyebrow / drawing-number label (signature device) ----------
   Mirrors how Benir's own engineering drawings are referenced —
   used as a recurring section marker throughout the site. */
.dwg-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blueprint);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.dwg-label::before { content: '+'; font-size: 14px; }

/* Crosshair corner marks — appear on photo/placeholder frames,
   echoing survey/registration marks on technical drawings. */
.crosshairs { position: relative; }
.crosshairs::before, .crosshairs::after,
.crosshairs .ch-tr, .crosshairs .ch-br { display: none; }
.crosshair-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
}
.crosshair-corner::before, .crosshair-corner::after {
  content: '';
  position: absolute;
  background: currentColor;
}
.crosshair-corner::before { width: 100%; height: 1.5px; top: 50%; left: 0; transform: translateY(-50%); }
.crosshair-corner::after  { width: 1.5px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }
.cc-tl { top: 10px; left: 10px; }
.cc-tr { top: 10px; right: 10px; }
.cc-bl { bottom: 10px; left: 10px; }
.cc-br { bottom: 10px; right: 10px; }

/* ============================================================
   NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand img {
  height: 46px;
  width: auto;
  display: block;
}
.nav-brand .wordmark-fallback {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.01em;
}
.nav-brand small {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--steel);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 16px;
  font-weight: 500;
  color: var(--charcoal-soft);
  position: relative;
  padding: 4px 0;
}
.nav-links a.active { color: var(--blueprint); }
.nav-links a:hover { color: var(--blueprint); }
.nav-cta {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--charcoal);
  color: var(--paper);
  padding: 11px 20px;
  border: 1px solid var(--charcoal);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-cta:hover { background: var(--oxide); border-color: var(--oxide); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 28px;
  height: 22px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--charcoal);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
 @media (max-width: 880px) {
  /* ... existing styles ... */

  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Change from flex-start to stretch */
    gap: 0;               /* Remove gap if you rely on padding & borders for spacing */
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 14px 0 40px;  /* Remove side padding here so links can reach screen edges */
  }

  .nav-links.open a {
    width: 100%;
    display: block;
    padding: 17px var(--gutter); /* Apply row padding directly to the link */
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }

  /* ... rest of media query ... */
}
  .nav-links.open .nav-cta-mobile { display: block; margin-top: 12px; padding: 5px 0; }
}
.nav-cta-mobile { display: none; }
/* Specificity fix: .nav-links a (0,1,1) would otherwise beat .nav-cta (0,1,0)
   and silently override its color/background on the mobile CTA. */
.nav-links a.nav-cta-mobile {
  color: var(--paper);
  background: var(--charcoal);
  border: 1px solid var(--charcoal);
  text-align: center;
  justify-content: center;
}
.nav-links a.nav-cta-mobile:hover { background: var(--oxide); border-color: var(--oxide); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--blueprint);
  color: var(--paper);
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) var(--gutter) clamp(36px, 5vw, 52px);
  position: relative;
  z-index: 2;
}
.hero .dwg-label { color: var(--oxide-soft); }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.0;
  text-transform: uppercase;
  max-width: 16ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--oxide-soft);
}
.hero-sub {
  margin-top: 18px;
  max-width: 540px;
  font-size: 16.5px;
  color: rgba(255,255,255,0.85);
}
.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 1px solid currentColor;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--oxide); border-color: var(--oxide); color: var(--paper); }
.btn-primary:hover { background: var(--oxide-soft); border-color: var(--oxide-soft); }
.btn-ghost { color: var(--paper); border-color: var(--line-on-dark); }
.btn-ghost:hover { border-color: var(--paper); }
.btn-dark { color: var(--charcoal); border-color: var(--charcoal); }
.btn-dark:hover { background: var(--charcoal); color: var(--paper); }

.hero-frame {
  margin-top: 56px;
  position: relative;
  border: 1px solid var(--line-on-dark);
  aspect-ratio: 16/6.2;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 10px),
    var(--charcoal-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
}
.hero-frame .ph-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}
.hero-frame .ph-label span { display: block; color: var(--oxide-soft); margin-top: 6px; font-size: 11px; }
.hero-frame .crosshair-corner { color: rgba(255,255,255,0.4); }

/* ============================================================
   STAT STRIP
   ============================================================ */
.stat-strip {
  background: var(--blueprint-deep);
  color: var(--paper);
}
.stat-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 0 18px;
  border-left: 1px solid rgba(255,255,255,0.22);
}
.stat-item:first-child { border-left: none; padding-left: 0; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1;
}
.stat-cap {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
}
@media (max-width: 760px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
    padding: 14px 12px;
  }
  .stat-item { padding: 0 6px; }
  .stat-num { font-size: 15px; }
  .stat-cap { font-size: 7.5px; margin-top: 3px; letter-spacing: 0.02em; line-height: 1.25; }
}
@media (max-width: 420px) {
  .stat-item { padding: 0 4px; }
  .stat-num { font-size: 13px; }
  .stat-cap { font-size: 6.8px; }
}

/* ============================================================
   SECTION SCAFFOLDING
   ============================================================ */
section { padding: clamp(56px, 9vw, 100px) 0; }
.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  text-transform: uppercase;
  line-height: 1.04;
}
.section-head p {
  margin-top: 16px;
  color: var(--steel);
  font-size: 16px;
  max-width: 56ch;
}
.section-foot {
  margin-top: 44px;
  display: flex;
  justify-content: center;
}

/* ============================================================
   DIVISIONS — schematic index grid
   ============================================================ */
.div-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.div-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 24px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.15s ease;
}
.div-card:hover { background: var(--concrete); }
.div-card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--oxide);
  letter-spacing: 0.06em;
}
.div-card h3 {
  font-size: 19px;
  text-transform: uppercase;
  margin-top: 30px;
  line-height: 1.12;
}
.div-card p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--steel);
  line-height: 1.5;
}
@media (max-width: 980px) { .div-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .div-grid { grid-template-columns: 1fr; } }

.div-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .div-grid-3 { grid-template-columns: 1fr; } }

/* ============================================================
   FEATURED PROJECTS / PROJECT CARDS (shared with projects.html)
   ============================================================ */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 980px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .proj-grid { grid-template-columns: 1fr; } }

.proj-card {
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.proj-photo {
  position: relative;
  aspect-ratio: 4/3;
  background:
    repeating-linear-gradient(45deg, var(--line) 0 1px, transparent 1px 9px),
    var(--concrete);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel);
  border-bottom: 1px solid var(--line);
}
.proj-photo .ph-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 16px;
}
.proj-photo .crosshair-corner { color: var(--steel); opacity: 0.55; }
.proj-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.proj-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid var(--line);
  color: var(--blueprint);
}
.tag.tag-year { color: var(--steel); }
.proj-body h3 {
  font-size: 18px;
  text-transform: none;
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.3;
}
.proj-client {
  font-size: 13.5px;
  color: var(--steel);
}
.proj-scope {
  font-size: 14px;
  color: var(--charcoal-soft);
  line-height: 1.5;
  margin-top: 4px;
}

/* ============================================================
   SUSTAINABILITY BAND
   ============================================================ */
.sustain {
  background: var(--blueprint-deep);
  color: var(--paper);
}
.sustain .dwg-label { color: var(--oxide-soft); }
.sustain-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.sustain h2 { color: var(--paper); }
.sustain p { color: rgba(255,255,255,0.75); }
.sustain-stat {
  border: 1px solid var(--line-on-dark);
  padding: 28px;
}
.sustain-stat .stat-num { font-size: clamp(36px, 5vw, 56px); color: var(--oxide-soft); }
.sustain-stat .stat-cap { color: rgba(255,255,255,0.65); margin-top: 10px; }
@media (max-width: 860px) { .sustain-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CLIENTS / TRUST ROW
   ============================================================ */
.clients-row {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
}
.clients-row .dwg-label { display: flex; justify-content: center; }
.clients-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}
.client-chip {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  padding: 10px 16px;
  color: var(--charcoal-soft);
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--oxide);
  color: var(--paper);
}
.cta-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-grid h2 { color: var(--paper); font-size: clamp(26px, 3.6vw, 38px); max-width: 16ch; }
.cta-band .btn-ghost { color: var(--paper); border-color: rgba(255,255,255,0.5); }
.cta-band .btn-ghost:hover { border-color: var(--paper); background: rgba(255,255,255,0.1); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 40px;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--paper);
  text-transform: uppercase;
}
.footer-tag { margin-top: 14px; max-width: 30ch; color: rgba(255,255,255,0.55); font-size: 13.5px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col a, .footer-col li { display: block; margin-bottom: 10px; color: rgba(255,255,255,0.62); }
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  border-top: 1px solid var(--line-on-dark);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-mono);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 36px 0 20px;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
    margin-bottom: 6px;
  }
  .footer-tag { font-size: 12px; margin-top: 8px; }
  .footer-col h4 { font-size: 10px; margin-bottom: 10px; }
  .footer-col a, .footer-col p { font-size: 11.5px; margin-bottom: 8px; line-height: 1.4; }
  .footer-bottom { padding: 16px 0; font-size: 11px; }
}

/* ============================================================
   PAGE HEADER (used on projects.html and future inner pages)
   ============================================================ */
.page-header {
  background:#D61E2A ;
  border-bottom: 1px solid var(--line);
}
.page-header-inner { padding-top: 30px; padding-bottom: 30px; }
.page-header h1 {
  font-size: clamp(34px, 5vw, 45px);
  text-transform: uppercase;
  max-width: 18ch;
  color: #FFFFFF;
}
.page-header p { margin-top: 12px; max-width: 40ch; color: white; font-size: 16px; }

/* ---------- Filter bar ---------- */
.filter-bar {
  position: sticky;
  top: 73px;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.filter-inner { padding-top: 18px; padding-bottom: 18px; }
.filter-toggle { display: none; }
.filter-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-group label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
}
.filter-bar select, .filter-bar input[type="search"] {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--charcoal);
}
.filter-bar select { min-width: 150px; }
.filter-bar input[type="search"] { min-width: 220px; }
.filter-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--steel);
  letter-spacing: 0.03em;
}
.filter-reset {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blueprint);
  background: none;
  border: none;
  text-decoration: underline;
  padding: 0;
}
@media (max-width: 700px) {
  .filter-bar {
    position: sticky;
    top: 125px;
    z-index: 59;
    border-bottom: none;
    background: none;
  }
  .filter-inner { padding: 0; }
  .filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: sticky;
    top: 83px;
    z-index: 60;
    padding: 13px var(--gutter);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--paper);
    background: var(--blueprint);
    border: none;
  }
  .filter-toggle-icon { font-size: 16px; line-height: 1; }
  .filter-toggle.open .filter-toggle-icon { transform: rotate(45deg); display: inline-block; }
  .filter-controls {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px var(--gutter) 18px;
    background: var(--concrete);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 16px rgba(14,16,19,0.14);
  }
  .filter-controls.open {
    display: flex;
    max-height: calc(100vh - 125px);
    overflow-y: auto;
  }
  .filter-group { width: 100%; justify-content: space-between; }
  .filter-bar select, .filter-bar input[type="search"] { width: 100%; min-width: 0; }
  .filter-count { margin-left: 0; width: 100%; }
}

.projects-section { padding-top: 44px; }
.proj-grid-wrap .proj-grid { margin-top: 0; }
.no-results {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.no-results.show { display: block; }

.proj-card { transition: opacity 0.15s ease; }
.proj-card.is-hidden { display: none; }

.locations-strip {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  text-align: center;
}
.locations-strip .dwg-label { justify-content: center; display: flex; }
.locations-strip .loc-list {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--charcoal-soft);
  letter-spacing: 0.02em;
}
.locations-strip .loc-list span { color: var(--oxide); margin: 0 8px; }

/* ============================================================
   HERO CAROUSEL
   ============================================================ */
.hero-carousel {
  position: relative;
  background: var(--blueprint);
  color: var(--paper);
  overflow: hidden;
  padding: 0;

}
.carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
.carousel-slide {
  min-width: 100%;
  position: relative;
}
/* The full-bleed image placeholder behind each slide */
.carousel-img {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 1.5px, transparent 1.5px 12px),
    var(--blueprint-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.carousel-img .crosshair-corner { color: rgba(255,255,255,0.25); }
.carousel-img::after {
  /* gradient overlay so text stays readable regardless of photo brightness */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(14,20,40,0.72) 0%,
    rgba(14,20,40,0.38) 55%,
    rgba(14,20,40,0.12) 100%
  );
}
.carousel-img .ph-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  line-height: 1.7;
  pointer-events: none;
  opacity: 0.65;
}
.carousel-img .ph-inner strong { display: block; color: rgba(255,255,255,0.5); font-size:12.5px; font-weight:600; }

.carousel-content {
  position: relative;
  z-index: 3;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(36px,5vw,60px) var(--gutter) clamp(48px,6vw,70px);
}
.carousel-content .dwg-label { color: var(--oxide-soft); }
.carousel-content h1 {
  font-size: clamp(28px,4vw,55px);
  line-height: 1.0;
  text-transform: uppercase;
  max-width: 16ch;
  margin: 10px 0 18px;
}
.carousel-content h1 em { font-style:normal; color: var(--oxide-soft); }
.carousel-content .hero-sub {
  max-width: 520px;
  font-size: 16.5px;
  color: rgba(255,255,255,0.85);
}
.carousel-content .hero-actions { margin-top: 28px; }

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active {
  background: var(--paper);
  transform: scale(1.25);
}

/* Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--paper);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
}
.carousel-arrow:hover { background: rgba(255,255,255,0.22); }
.carousel-arrow.prev { left: 20px; }
.carousel-arrow.next { right: 20px; }
@media (max-width:800px) {
  .carousel-arrow { display:none; }
  .carousel-content {
    padding: 28px var(--gutter) 26px;
  }
  .carousel-content .dwg-label { font-size: 10.5px; margin-bottom: 8px; }
  .carousel-content h1 {
    font-size: 30px;
    line-height: 1.2;
    margin: 6px 0 10px;
  }
  .carousel-content .hero-sub { font-size: 13.5px; line-height: 1.5; }
  .carousel-content .hero-actions { margin-top: 16px; gap: 10px; }
  .carousel-content .btn { padding: 10px 18px; font-size: 11.5px; }
  .carousel-img .ph-inner { font-size: 9px; }
  .carousel-img .ph-inner strong { font-size: 10px; }
  .carousel-dots { bottom: 10px; }
}

/* ============================================================
   IMAGE PLACEHOLDER — reusable across all page types
   ============================================================ */

/* Base placeholder — diagonal hatch + crosshairs */
.img-ph {
  position: relative;
  background:
    repeating-linear-gradient(45deg, var(--line) 0 1px, transparent 1px 9px),
    var(--concrete);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel);
  overflow: hidden;
}
/* Label inside every placeholder */
.img-ph-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 14px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.img-ph-label strong { display:block; font-size:12px; font-weight:700; color:var(--charcoal-soft); margin-bottom:3px; }

/* On dark backgrounds */
.img-ph.dark {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 9px),
    var(--blueprint-deep);
  color: rgba(255,255,255,0.45);
}
.img-ph.dark .img-ph-label strong { color:rgba(255,255,255,0.7); }

/* Size variants */
.img-ph-wide   { aspect-ratio: 16/6; }
.img-ph-land   { aspect-ratio: 4/3; }
.img-ph-sq     { aspect-ratio: 1/1; }
.img-ph-port   { aspect-ratio: 3/4; }
.img-ph-banner { aspect-ratio: 21/6; }
.img-ph-3-2    { aspect-ratio: 3/2; }

/* Full-width strip image between two sections */
.img-strip {
  width: 100%;
  position: relative;
}
.img-strip .img-ph { aspect-ratio: 16/5.5; }

/* Side-by-side image + text */
.img-text-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.img-text-split .img-ph { min-height: 360px; aspect-ratio: auto; }
.img-text-split .split-body {
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 820px) {
  .img-text-split { grid-template-columns: 1fr; }
  .img-text-split .img-ph { min-height: 260px; aspect-ratio: 16/7; }
}

/* Small thumbnail used in division rows */
.div-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  background:
    repeating-linear-gradient(45deg, var(--line) 0 1px, transparent 1px 9px),
    var(--concrete-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel);
  border-bottom: 1px solid var(--line);
}
.div-thumb .ph-tiny {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.6;
}
.div-thumb .crosshair-corner { color: var(--steel); opacity: 0.4; }

/* Gallery grid: 3-col or 2-col photo grids */
.img-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.img-gallery-2 { grid-template-columns: repeat(2, 1fr); }
.img-gallery .img-ph { aspect-ratio: 4/3; }
.img-gallery-2 .img-ph { aspect-ratio: 3/2; }
@media (max-width: 700px) {
  .img-gallery { grid-template-columns: 1fr; }
  .img-gallery-2 { grid-template-columns: 1fr; }
}

/* Partner logo placeholder */
.partner-logo-ph {
  width: 100%;
  aspect-ratio: 16/7;
  background: var(--concrete);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.partner-logo-ph span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ============================================================
   VISION / MISSION / VALUES — mobile: stacked, single column,
   no boxed-grid look, each item reads as one flowing block
   matching the Values item structure (label + sentence).
   ============================================================ */
@media (max-width: 700px) {
  .vmv-grid {
    display: flex;
    flex-direction: column;
    border: none !important;
  }
  .vmv-grid .div-card {
    width: 100%;
    grid-column: auto !important;
    border: none !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 18px 0 !important;
    min-height: 0 !important;
  }
  .vmv-grid .div-card:last-child { border-bottom: none !important; }
  .vmv-grid .div-card > div { gap: 16px !important; flex-direction: column !important; }
}

/* ============================================================
   DIVISIONS LIST — mobile: stack image above text, no
   horizontal overflow, natural vertical gaps
   ============================================================ */
@media (max-width: 700px) {
  .div-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 26px 0 !important;
  }
  .div-row .img-ph {
    order: -1;
    width: 100%;
  }
  .div-row .num { font-size: 18px !important; }
  .div-row h2 { font-size: 20px !important; }
}

/* ============================================================
   REAL IMAGE SUPPORT — every placeholder below can now hold an
   actual <img>. The img is absolutely positioned to fill its
   container (object-fit: cover). If the file referenced in src
   doesn't exist yet, an onerror handler on the tag hides it,
   automatically revealing the hatch-pattern placeholder + label
   underneath. Once a real file is dropped in at the matching
   path, it will display automatically — nothing else to change.
   ============================================================ */
.img-ph img,
.carousel-img img,
.proj-photo img,
.div-thumb img,
.hero-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
