/* ==========================================================================
   MAXIMUS ELECTRIC — Enterprise Design System
   Commercial & industrial electrical construction.
   Direction: graphite + structural blue. Type: Archivo (display) + Inter (text).
   Built to read like an engineering/construction firm, not a local electrician.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Graphite / ink scale */
  --ink-900: #0e1116;
  --ink-800: #141923;
  --ink-700: #1b2230;
  --ink-600: #2a3340;
  --ink-500: #3c4757;
  --steel-500: #5b6675;
  --steel-400: #7c8696;
  --steel-300: #a4adba;

  /* Concrete neutrals */
  --line: #e3e6ea;
  --line-strong: #d2d7de;
  --paper-100: #f5f6f8;
  --paper-50: #fafbfc;
  --white: #ffffff;

  /* Structural blue — used surgically */
  --blue-700: #1552a8;
  --blue-600: #1e6bd6;
  --blue-500: #2f7ee6;
  --blue-100: #e7f0fc;
  --blue-tint: rgba(30, 107, 214, 0.08);

  /* Safety amber — used ONLY for live/24-7 service signals, never branding */
  --amber: #e8911a;

  /* Semantic */
  --bg: var(--white);
  --text: var(--ink-800);
  --muted: var(--steel-500);
  --accent: var(--blue-600);

  --font-display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1240px;
  --container-wide: 1400px;
  --header-h: 76px;
  --util-h: 38px;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(14,17,22,0.05), 0 1px 3px rgba(14,17,22,0.06);
  --shadow: 0 14px 40px rgba(14,17,22,0.12);
  --shadow-lg: 0 30px 70px rgba(14,17,22,0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.62;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 2px; }

/* ---------- Type ---------- */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.06; letter-spacing: -0.02em; color: var(--ink-900); }
h1 { font-size: clamp(2.5rem, 4.6vw + 1rem, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.95rem, 2.6vw + 0.8rem, 3.1rem); }
h3 { font-size: clamp(1.2rem, 1vw + 0.8rem, 1.5rem); }
h4 { font-size: 1.05rem; }
p { color: var(--ink-600); }
.lead { font-size: clamp(1.08rem, 0.5vw + 1rem, 1.32rem); color: var(--ink-500); line-height: 1.6; }
strong { font-weight: 600; color: var(--ink-800); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.2rem); }
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: 840px; }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 4vw, 3.5rem); }
.bg-paper { background: var(--paper-100); }
.bg-ink { background: var(--ink-900); color: var(--steel-300); }
.bg-ink h1,.bg-ink h2,.bg-ink h3,.bg-ink h4 { color:#fff; }
.bg-ink p { color: var(--steel-300); }
.bg-ink-800 { background: var(--ink-800); color: var(--steel-300); }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 980px){ .grid-3,.grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; } }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-600);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--blue-600); }
.bg-ink .eyebrow, .bg-ink-800 .eyebrow { color: var(--blue-500); }
.bg-ink .eyebrow::before, .bg-ink-800 .eyebrow::before { background: var(--blue-500); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1rem; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; line-height: 1;
  padding: 0.95rem 1.5rem; border-radius: var(--radius-sm);
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer; white-space: nowrap; border: 1.5px solid transparent;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--blue-600); color: #fff; }
.btn--primary:hover { background: var(--blue-700); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(21,82,168,0.3); }
.btn--ink { background: var(--ink-900); color: #fff; }
.btn--ink:hover { background: var(--ink-700); transform: translateY(-1px); }
.btn--outline { border-color: var(--line-strong); color: var(--ink-900); background: #fff; }
.btn--outline:hover { border-color: var(--ink-900); transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--ink-900); }
.btn--light:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--outline-light { border-color: rgba(255,255,255,0.32); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,0.08); border-color: #fff; }
.btn--lg { padding: 1.1rem 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* arrow link */
.arrow-link { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--blue-600); }
.arrow-link svg { width: 16px; height: 16px; transition: transform 0.2s; }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------- Utility bar (top) ---------- */
.util-bar { background: var(--ink-900); color: var(--steel-300); font-size: 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.util-bar .container { height: var(--util-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.util-creds { display: flex; gap: 1.4rem; align-items: center; }
.util-creds span { display: inline-flex; align-items: center; gap: 0.4rem; }
.util-creds svg { width: 14px; height: 14px; color: var(--blue-500); }
.util-right { display: flex; gap: 1.3rem; align-items: center; }
.util-right a { color: var(--steel-300); transition: color 0.2s; }
.util-right a:hover { color: #fff; }
.util-right .util-phone { color: #fff; font-weight: 600; font-family: var(--font-display); }
@media (max-width: 860px){ .util-creds span:nth-child(n+3){ display:none; } .util-right a:not(.util-phone){ display:none; } }
@media (max-width: 520px){ .util-creds span:nth-child(n+2){ display:none; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.92); backdrop-filter: saturate(150%) blur(12px); -webkit-backdrop-filter: saturate(150%) blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow 0.3s; }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

/* Brand — wordmark + monogram, NO lightning bolt */
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand .monogram { width: 40px; height: 40px; border-radius: 5px; background: var(--ink-900); display: grid; place-items: center; flex: none; }
.brand .monogram span { font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 1.15rem; letter-spacing: -0.04em; }
.brand .monogram span b { color: var(--blue-500); font-weight: 800; }
.brand .wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ink-900); line-height: 1; text-transform: uppercase; }
.brand .wordmark small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--steel-500); margin-top: 4px; }

.nav-menu { display: flex; align-items: center; gap: 0.1rem; }
.nav-menu > a, .nav-menu > .has-mega > a { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--ink-700); padding: 0.6rem 0.9rem; border-radius: var(--radius-sm); transition: color 0.2s, background 0.2s; display: inline-flex; align-items: center; gap: 0.3rem; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: var(--ink-900); background: var(--paper-100); }
.nav-menu .caret { width: 12px; height: 12px; opacity: 0.6; }

/* Mega dropdown */
.has-mega { position: relative; }
.mega { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px); width: min(640px, 90vw); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.1rem; opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s, visibility 0.2s; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem; }
.mega a { display: flex; gap: 0.7rem; padding: 0.7rem 0.8rem; border-radius: var(--radius); transition: background 0.18s; align-items: flex-start; }
.mega a:hover { background: var(--paper-100); }
.mega a .m-ic { width: 34px; height: 34px; border-radius: 6px; background: var(--blue-tint); color: var(--blue-600); display: grid; place-items: center; flex: none; }
.mega a .m-ic svg { width: 18px; height: 18px; }
.mega a strong { display: block; font-family: var(--font-display); font-size: 0.9rem; color: var(--ink-900); }
.mega a span { font-size: 0.78rem; color: var(--muted); }
.mega-foot { margin-top: 0.7rem; padding-top: 0.9rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding-inline: 0.4rem; }
.mega-foot span { font-size: 0.82rem; color: var(--muted); }

.nav-cta { display: flex; align-items: center; gap: 0.7rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--radius-sm); align-items: center; justify-content: center; color: var(--ink-900); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 1100px){
  .nav-menu, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Mobile nav */
.mobile-nav { display: none; }
@media (max-width: 1100px){
  .mobile-nav { display: flex; position: fixed; inset: 0 0 0 0; z-index: 110; background: var(--ink-900); color:#fff; transform: translateX(100%); transition: transform 0.35s var(--ease); flex-direction: column; padding: 1.2rem clamp(1.1rem,4vw,2rem) 2.5rem; overflow-y: auto; }
  body.menu-open .mobile-nav { transform: translateX(0); }
  body.menu-open { overflow: hidden; }
}
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; padding-block: 0.5rem 1.4rem; }
.mobile-nav-head .x { width: 44px; height: 44px; color:#fff; display:grid; place-items:center; }
.mobile-nav-head .x svg { width: 26px; height: 26px; }
.mobile-nav a { color:#fff; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav .m-label { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-500); margin-top: 1.3rem; border: none; padding-bottom: 0.2rem; }
.mobile-nav .m-sub { font-size: 0.95rem; color: var(--steel-300); padding-left: 0.2rem; }
.mobile-nav .btn { margin-top: 1.5rem; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink-900); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.hero-media::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg, var(--ink-900) 30%, rgba(14,17,22,0.72) 60%, rgba(14,17,22,0.45)); }
.hero-inner { position: relative; z-index: 2; padding-block: clamp(4rem, 9vw, 7.5rem); max-width: 820px; }
.hero h1 { color:#fff; }
.hero h1 .hl { color: var(--blue-500); }
.hero .lead { color: rgba(255,255,255,0.84); margin-top: 1.4rem; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.5rem 2.2rem; margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,0.14); }
.hero-meta .hm { }
.hero-meta .hm strong { font-family: var(--font-display); font-size: 1.05rem; color:#fff; display:block; }
.hero-meta .hm span { font-size: 0.8rem; color: var(--steel-400); letter-spacing: 0.02em; }

.tag-live { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.42rem 0.9rem; border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; font-family: var(--font-display); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; }
.tag-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-500); box-shadow: 0 0 0 4px rgba(47,126,230,0.25); }

/* ---------- Proof bar (numbers system) ---------- */
.proof { background: var(--ink-900); border-top: 1px solid rgba(255,255,255,0.08); position: relative; z-index: 2; }
.proof .container { display: grid; grid-template-columns: repeat(4,1fr); }
.proof .pf { padding: 2rem 1.5rem; border-left: 1px solid rgba(255,255,255,0.08); }
.proof .pf:first-child { border-left: none; padding-left: 0; }
.proof .pf .n { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.8rem); color: #fff; line-height: 1; letter-spacing: -0.03em; }
.proof .pf .n .u { color: var(--blue-500); }
.proof .pf .l { font-size: 0.82rem; color: var(--steel-400); margin-top: 0.55rem; }
@media (max-width: 760px){ .proof .container { grid-template-columns: repeat(2,1fr); } .proof .pf { border-left: none; padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,0.08); } .proof .pf:nth-child(-n+2){ border-top: none; } }

/* small inline credential strip (light) */
.cred-strip { border-block: 1px solid var(--line); background: var(--paper-50); }
.cred-strip .container { display: flex; flex-wrap: wrap; gap: 1.2rem 2.6rem; align-items: center; justify-content: center; padding-block: 1.2rem; }
.cred { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--steel-500); }
.cred svg { width: 20px; height: 20px; color: var(--blue-600); }

/* ---------- Cards: market / capability ---------- */
.tile-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-800); min-height: 340px; color: #fff; isolation: isolate; }
.tile-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.62; transition: transform 0.7s var(--ease), opacity 0.4s; z-index: -1; }
.tile-card::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(14,17,22,0.92) 8%, rgba(14,17,22,0.25) 70%); z-index: -1; }
.tile-card:hover img { transform: scale(1.06); opacity: 0.7; }
.tile-card .tc-body { position: relative; height: 100%; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.6rem; }
.tile-card .tc-kicker { font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-500); }
.tile-card h3 { color: #fff; margin-top: 0.4rem; font-size: 1.35rem; }
.tile-card p { color: rgba(255,255,255,0.78); font-size: 0.92rem; margin-top: 0.5rem; }
.tile-card .tc-link { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; color: #fff; }
.tile-card .tc-link svg { width: 16px; height: 16px; transition: transform 0.2s; }
.tile-card:hover .tc-link svg { transform: translateX(4px); }

/* Flat capability card */
.cap-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem,2vw,1.9rem); transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s; display: flex; flex-direction: column; height: 100%; }
.cap-card:hover { border-color: var(--blue-600); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.cap-card .ic { width: 50px; height: 50px; border-radius: 8px; background: var(--blue-tint); color: var(--blue-600); display: grid; place-items: center; margin-bottom: 1.1rem; }
.cap-card .ic svg { width: 26px; height: 26px; }
.cap-card h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.cap-card p { font-size: 0.94rem; color: var(--steel-500); }
.cap-card .arrow-link { margin-top: auto; padding-top: 1rem; }
a.cap-card { color: inherit; }

/* Feature (why-us) */
.feat { display: flex; gap: 1rem; align-items: flex-start; }
.feat .ic { width: 46px; height: 46px; border-radius: 8px; background: var(--blue-tint); color: var(--blue-600); display: grid; place-items: center; flex: none; }
.feat .ic svg { width: 24px; height: 24px; }
.feat h3 { font-size: 1.1rem; }
.feat p { font-size: 0.93rem; color: var(--steel-500); margin-top: 0.25rem; }
.bg-ink .feat p, .bg-ink-800 .feat p { color: var(--steel-300); }
.bg-ink .feat .ic, .bg-ink-800 .feat .ic { background: rgba(47,126,230,0.16); color: var(--blue-500); }

/* ---------- Split media ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.split.reverse .split-media { order: 2; }
@media (max-width: 920px){ .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } }
.split-media { position: relative; background: linear-gradient(135deg, var(--ink-700), var(--ink-500)); border-radius: var(--radius-lg); overflow: hidden; }
.split-media img { width: 100%; aspect-ratio: 4/3.3; object-fit: cover; }
.split-stat { position: absolute; left: 1rem; bottom: 1rem; background: rgba(14,17,22,0.86); backdrop-filter: blur(6px); color:#fff; border-radius: var(--radius); padding: 0.9rem 1.2rem; }
.split-stat strong { font-family: var(--font-display); font-size: 1.5rem; display:block; line-height: 1; }
.split-stat span { font-size: 0.76rem; color: var(--steel-400); }

/* ---------- Checklist ---------- */
.checklist { display: grid; gap: 0.8rem; margin-top: 1.5rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.97rem; color: var(--ink-600); }
.checklist svg { width: 20px; height: 20px; color: var(--blue-600); flex: none; margin-top: 2px; }
.bg-ink .checklist li, .bg-ink-800 .checklist li { color: var(--steel-300); }
.bg-ink .checklist svg, .bg-ink-800 .checklist svg { color: var(--blue-500); }

/* ---------- Project case studies ---------- */
.case { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.case.reverse .case-media { order: 2; }
@media (max-width: 920px){ .case { grid-template-columns: 1fr; } .case.reverse .case-media { order: 0; } }
.case-media { position: relative; background: var(--ink-700); min-height: 320px; }
.case-media img { position: absolute; inset:0; width: 100%; height: 100%; object-fit: cover; }
.case-media .sector-tag { position: absolute; top: 1rem; left: 1rem; background: var(--ink-900); color:#fff; font-family: var(--font-display); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.4rem 0.8rem; border-radius: var(--radius-sm); }
.case-body { padding: clamp(1.6rem, 3vw, 2.6rem); display: flex; flex-direction: column; }
.case-body h3 { font-size: clamp(1.3rem,1.6vw,1.7rem); }
.case-body .client { font-size: 0.85rem; color: var(--blue-600); font-family: var(--font-display); font-weight: 600; margin-top: 0.3rem; }
.case-specs { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin: 1.4rem 0; padding: 1.2rem 0; border-block: 1px solid var(--line); }
.case-specs .cs strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink-900); display: block; line-height: 1.1; }
.case-specs .cs span { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.case-body p { font-size: 0.95rem; color: var(--steel-500); }
.case-meta { margin-top: 1.2rem; display: grid; gap: 0.5rem; }
.case-meta .cm { display: flex; gap: 0.6rem; font-size: 0.9rem; }
.case-meta .cm b { font-family: var(--font-display); color: var(--ink-800); min-width: 86px; font-weight: 600; }

/* portfolio filter */
.filterbar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filterbar button { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; padding: 0.55rem 1rem; border-radius: 999px; border: 1.5px solid var(--line-strong); color: var(--steel-500); transition: all 0.2s; }
.filterbar button:hover { border-color: var(--ink-700); color: var(--ink-900); }
.filterbar button.active { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }

.proj-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
@media (max-width: 900px){ .proj-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px){ .proj-grid { grid-template-columns: 1fr; } }
.proj { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.proj:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.proj-img { position: relative; aspect-ratio: 16/11; background: var(--ink-700); overflow: hidden; }
.proj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.proj:hover .proj-img img { transform: scale(1.06); }
.proj-img .sector-tag { position: absolute; top: 0.8rem; left: 0.8rem; background: rgba(14,17,22,0.9); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.35rem 0.7rem; border-radius: var(--radius-sm); }
.proj-info { padding: 1.3rem; }
.proj-info h3 { font-size: 1.1rem; }
.proj-info .loc { font-size: 0.82rem; color: var(--muted); margin-top: 0.2rem; }
.proj-info .scope { font-size: 0.88rem; color: var(--steel-500); margin-top: 0.7rem; }

/* ---------- Process timeline ---------- */
.process { display: grid; gap: 0; counter-reset: step; }
.process .pstep { display: grid; grid-template-columns: 80px 1fr; gap: 1.4rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.process .pstep:first-child { border-top: none; }
.process .pstep .pnum { counter-increment: step; font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--blue-600); line-height: 1; letter-spacing: -0.04em; }
.process .pstep .pnum::before { content: counter(step, decimal-leading-zero); }
.process .pstep h3 { font-size: 1.2rem; }
.process .pstep p { font-size: 0.95rem; color: var(--steel-500); margin-top: 0.4rem; max-width: 620px; }
.bg-ink .process .pstep, .bg-ink-800 .process .pstep { border-color: rgba(255,255,255,0.1); }
.bg-ink .process .pstep p { color: var(--steel-300); }

/* ---------- Testimonials ---------- */
.quote-xl { max-width: 900px; margin-inline: auto; text-align: center; }
.quote-xl blockquote { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1.32; color: #fff; letter-spacing: -0.02em; }
.quote-xl .qa { margin-top: 1.8rem; display: inline-flex; align-items: center; gap: 0.8rem; }
.quote-xl .qa .av { width: 46px; height: 46px; border-radius: 50%; background: var(--blue-600); color:#fff; display:grid; place-items:center; font-family: var(--font-display); font-weight: 700; }
.quote-xl .qa strong { display:block; color:#fff; font-family: var(--font-display); font-size: 0.95rem; }
.quote-xl .qa span { font-size: 0.84rem; color: var(--steel-400); }

.quote-card { background:#fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem,2.2vw,2rem); display:flex; flex-direction:column; height:100%; }
.quote-card .mk { font-family: var(--font-display); font-size: 2.4rem; line-height: 0.6; color: var(--blue-600); height: 1rem; }
.quote-card blockquote { font-size: 1rem; color: var(--ink-600); line-height: 1.6; flex: 1; margin-top: 1rem; }
.quote-card .qa { display:flex; align-items:center; gap: 0.8rem; margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.quote-card .qa .av { width: 42px; height: 42px; border-radius: 8px; background: var(--ink-800); color:#fff; display:grid; place-items:center; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; }
.quote-card .qa strong { display:block; font-family: var(--font-display); font-size: 0.9rem; }
.quote-card .qa span { font-size: 0.8rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; background: var(--ink-900); color:#fff; border-radius: var(--radius-lg); padding: clamp(2.4rem,5vw,4rem); }
.cta::before { content:""; position:absolute; right:-10%; top:-40%; width: 480px; height: 480px; background: radial-gradient(circle, rgba(47,126,230,0.28), transparent 65%); }
.cta-inner { position: relative; z-index: 2; display:flex; align-items:center; justify-content:space-between; gap: 2rem; flex-wrap: wrap; }
.cta h2 { color:#fff; max-width: 620px; }
.cta p { color: rgba(255,255,255,0.78); margin-top: 0.7rem; max-width: 560px; }
.cta .actions { display:flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------- Page hero (interior) ---------- */
.page-hero { position: relative; background: var(--ink-900); color:#fff; overflow:hidden; }
.page-hero-media { position:absolute; inset:0; }
.page-hero-media img { width:100%; height:100%; object-fit: cover; opacity: 0.4; }
.page-hero-media::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg, var(--ink-900) 35%, rgba(14,17,22,0.6)); }
.page-hero-inner { position: relative; z-index: 2; padding-block: clamp(3rem,7vw,5rem); max-width: 800px; }
.page-hero h1 { color:#fff; }
.page-hero .lead { color: rgba(255,255,255,0.82); margin-top: 1.1rem; }
.breadcrumbs { display:flex; flex-wrap: wrap; gap: 0.4rem; align-items:center; font-size: 0.8rem; color: var(--steel-400); margin-bottom: 1.2rem; }
.breadcrumbs a:hover { color: var(--blue-500); }
.breadcrumbs span { opacity: 0.5; }

/* ---------- Prose ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.4rem; margin-bottom: 1rem; }
.prose h3 { margin-top: 1.8rem; margin-bottom: 0.6rem; }
.prose p { margin-bottom: 1.1rem; }
.prose ul { margin: 0 0 1.2rem; display: grid; gap: 0.55rem; }
.prose ul li { display:flex; gap: 0.6rem; align-items: flex-start; }
.prose ul li::before { content:""; width: 7px; height: 7px; background: var(--blue-600); margin-top: 0.55rem; flex: none; border-radius: 1px; }

/* ---------- Systems list (electrical scope) ---------- */
.systems { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.7rem; }
@media (max-width: 600px){ .systems { grid-template-columns: 1fr; } }
.systems li { display:flex; gap: 0.7rem; align-items:center; padding: 0.85rem 1rem; background: var(--paper-100); border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.92rem; font-weight: 500; color: var(--ink-700); }
.systems li svg { width: 18px; height: 18px; color: var(--blue-600); flex: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.7rem; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.3rem; background: #fff; }
.faq summary { font-family: var(--font-display); font-weight: 600; font-size: 1rem; padding: 1.1rem 2rem 1.1rem 0; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content: "+"; position:absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--blue-600); font-weight: 300; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 1.1rem; color: var(--steel-500); font-size: 0.95rem; }

/* ---------- Forms ---------- */
.form-card { background:#fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem,3vw,2.4rem); box-shadow: var(--shadow); }
.form-row { display:grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px){ .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.05rem; }
.field label { display:block; font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; margin-bottom: 0.4rem; color: var(--ink-900); }
.field input, .field select, .field textarea { width:100%; padding: 0.8rem 0.95rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; color: var(--ink-900); background: var(--paper-50); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); background:#fff; box-shadow: 0 0 0 3px rgba(30,107,214,0.14); }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 0.8rem; }
.form-success { display:none; background: rgba(30,107,214,0.08); border: 1px solid rgba(30,107,214,0.35); color: var(--blue-700); padding: 1rem 1.2rem; border-radius: var(--radius-sm); font-size: 0.95rem; margin-bottom: 1rem; }
.form-success.show { display:block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: var(--steel-400); padding-block: clamp(3rem,5vw,4.5rem) 1.8rem; }
.footer-top { display:grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 900px){ .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 520px){ .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand { margin-bottom: 1.1rem; }
.footer-brand .wordmark { color:#fff; }
.footer-brand p { font-size: 0.92rem; max-width: 330px; color: var(--steel-400); }
.footer-contact { margin-top: 1.2rem; display:grid; gap: 0.6rem; }
.footer-contact a, .footer-contact div { display:flex; gap: 0.55rem; align-items:flex-start; font-size: 0.9rem; color: var(--steel-300); }
.footer-contact svg { width: 17px; height: 17px; color: var(--blue-500); flex:none; margin-top: 2px; }
.footer-col h4 { color:#fff; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { display:grid; gap: 0.55rem; }
.footer-col a { font-size: 0.9rem; color: var(--steel-400); transition: color 0.2s; }
.footer-col a:hover { color: var(--blue-500); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); display:flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--steel-500); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity:1; transform:none; transition:none; } * { scroll-behavior: auto !important; } }

/* ---------- Image fallback ---------- */
.hero-media, .page-hero-media, .tile-card, .split-media, .case-media, .proj-img { background: linear-gradient(135deg, var(--ink-700), var(--ink-500)); }
img.img-failed { display: none; }

/* ---------- Utilities ---------- */
.text-center { text-align:center; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.muted{color:var(--muted)}
.divider{height:1px;background:var(--line);border:none;margin-block:clamp(2rem,4vw,3rem)}
.flex-actions{display:flex;flex-wrap:wrap;gap:.9rem}
