/* MMB Infrastructure — original stylesheet */
:root {
  --ink: #131746;
  --ink-2: #2c3160;
  --steel: #5b6079;
  --line: #d9dde1;
  --paper: #f6f4ef;
  --white: #ffffff;
  --accent: #fcd800;
  --accent-hover: #ecc800;
  --accent-text: #8a6a00;
  --sage: #3f6b5c;
  --radius: 4px;
  --max: 1180px;
  --shadow: 0 10px 30px rgba(19, 23, 70, 0.10);
  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section--white { background: var(--white); }
.section--dark { background: var(--ink); color: #c3c7e4; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.lead { font-size: 1.15rem; color: var(--steel); max-width: 680px; }
.section--dark .lead, .page-hero .lead { color: #c3c7e4; }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--accent); }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin: 0 auto; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer; transition: 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: currentColor; color: var(--ink); }
.section--dark .btn--ghost, .hero .btn--ghost, .page-hero .btn--ghost { color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.topbar { background: var(--ink); color: #b6badb; font-size: 0.85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #ffffff; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo-mark { width: 40px; height: 48px; flex: none; }
.logo-text { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; line-height: 1.05; letter-spacing: 0.02em; }
.logo-text small { display: block; font-weight: 600; font-size: 0.68rem; letter-spacing: 0.2em; color: var(--steel); }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu a {
  display: block; padding: 10px 12px; color: var(--ink);
  font-family: var(--font-head); font-weight: 600; font-size: 0.93rem;
}
.menu a:hover, .menu a.active { color: var(--accent-text); text-decoration: none; }
.menu .btn { color: var(--ink); margin-left: 8px; padding: 11px 20px; }
.menu .btn:hover { color: var(--ink); }
.has-sub > a::after { content: " ▾"; font-size: 0.7em; }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none; margin: 0; padding: 8px;
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: 0.18s;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.2s; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #c3c7e4;
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--ink);
  padding: 96px 0 110px;
}
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero .lead { color: #c3c7e4; margin-bottom: 32px; }
.hero-art { color: #8a90c4; }
.hero-art .accent { color: var(--accent); }

.page-hero {
  background:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--ink);
  color: #c3c7e4; padding: 72px 0 64px;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.crumbs { font-size: 0.85rem; margin-bottom: 18px; color: #9da2cf; }
.crumbs a { color: #ffffff; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border: 1px solid var(--line); margin-top: -56px; position: relative; box-shadow: var(--shadow); }
.stat { padding: 28px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.2rem; color: var(--ink); line-height: 1; }
.stat span { font-size: 0.9rem; color: var(--steel); }

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: 0.2s ease; position: relative;
}
.card:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.card .num { font-family: var(--font-head); font-weight: 800; color: var(--accent-text); font-size: 0.85rem; letter-spacing: 0.1em; }
.card p:last-child { margin-bottom: 0; }
.card-link { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; }
.icon {
  width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--ink); color: var(--accent); border-radius: var(--radius);
}
.icon svg { width: 28px; height: 28px; }
.section--dark .card { background: var(--ink-2); border-color: #3d4378; color: #c3c7e4; }
.section--dark .card:hover { border-color: var(--accent); }
.section--dark .card .num { color: var(--accent); }
.section--dark .icon { background: rgba(255,255,255,0.06); }

.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 10px;
  border-left: 3px solid var(--accent-text); border-bottom: 3px solid var(--accent-text); transform: rotate(-45deg);
}

/* Illustration panel (placeholder for licensed photos) */
.visual {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; position: relative;
  background:
    linear-gradient(rgba(19,23,70,0.07) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(19,23,70,0.07) 1px, transparent 1px) 0 0 / 24px 24px,
    #e8e9f1;
  color: var(--ink-2); display: grid; place-items: center;
}
.visual svg { width: 78%; height: auto; }
.visual .tag {
  position: absolute; left: 16px; bottom: 16px; background: var(--ink); color: var(--white);
  font-size: 0.75rem; font-family: var(--font-head); font-weight: 700; padding: 6px 10px; letter-spacing: 0.06em;
}

/* Process steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.step { padding: 28px 22px 0 0; position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--accent-text); display: block; margin-bottom: 8px;
}
.step::after { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; background: var(--accent); outline: 2px solid var(--ink); }
.section--dark .step::before { color: var(--accent); }
.section--dark .steps { border-color: #5a5f99; }

/* Projects */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter {
  background: var(--white); border: 1px solid var(--line); padding: 9px 18px; border-radius: 40px;
  font-family: var(--font-head); font-weight: 600; cursor: pointer; color: var(--ink);
}
.filter.active, .filter:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.project { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.project .visual { aspect-ratio: 16 / 10; border-radius: 0; }
.project-body { padding: 22px 24px 26px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; color: var(--steel); margin-bottom: 8px; }
.pill { display: inline-block; background: var(--paper); color: var(--ink); font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 30px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.project.hide { display: none; }

/* Table */
.spec-table { width: 100%; border-collapse: collapse; background: var(--white); }
.spec-table th, .spec-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 34%; font-family: var(--font-head); color: var(--ink); }

/* Accordion */
.accordion details { background: var(--white); border: 1px solid var(--line); margin-bottom: 10px; border-radius: var(--radius); }
.accordion summary { padding: 18px 22px; cursor: pointer; font-family: var(--font-head); font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--accent-text); font-size: 1.4rem; line-height: 1; }
.accordion details[open] summary::after { content: "–"; }
.accordion .acc-body { padding: 0 22px 20px; }

/* CTA band */
.cta-band { background: var(--accent); color: var(--ink); padding: 56px 0; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--ink); margin: 0 0 6px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { margin: 0; }
.cta-band .btn { background: var(--ink); color: var(--white); }
.cta-band .btn:hover { background: #0a0d2e; }


.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-list strong { display: block; color: var(--ink); font-family: var(--font-head); }
.map-placeholder { aspect-ratio: 16 / 7; margin-top: 40px; }

/* Jobs */
.job { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.job h3 { margin-bottom: 4px; }

/* Footer */
.site-footer { background: #0c0f30; color: #a5a9cc; padding: 72px 0 0; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #e2e4f3; }
.site-footer .logo { color: var(--white); margin-bottom: 16px; }
.site-footer .logo-mark { background: var(--white); padding: 6px; width: 52px; height: 60px; border-radius: var(--radius); }
.footer-bottom { border-top: 1px solid #252a5a; margin-top: 56px; padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 32px; border-top: 0; }
  .step { border-top: 2px solid var(--ink); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .menu {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 10px 20px 20px; display: none;
  }
  .menu.open { display: flex; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; }
  .menu .btn { margin: 10px 0 0; justify-content: center; }
  .hero-grid, .split, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding: 64px 0; }
}
@media (max-width: 600px) {
  .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .topbar .hide-sm { display: none; }
  .job { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}
.map { width: 100%; aspect-ratio: 16 / 7; border: 0; margin-top: 40px; border-radius: var(--radius); background: #e8e9f1; }
@media (max-width: 600px) { .map { aspect-ratio: 4 / 3; } }

/* Photos */
.photo { position: relative; overflow: hidden; border-radius: var(--radius); background: #e8e9f1; aspect-ratio: 4 / 3; margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.photo.tall { aspect-ratio: 4 / 5; }
.photo figcaption {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 28px 16px 12px; color: #fff; font-size: 0.85rem;
  background: linear-gradient(transparent, rgba(12, 15, 48, 0.85));
}
.photo-frame { position: relative; }
.photo-frame::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--accent); border-radius: var(--radius); }
.photo-frame .photo { position: relative; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.project .photo { aspect-ratio: 4 / 3; border-radius: 0; }
.project:hover .photo img { transform: scale(1.04); }
.pill--ongoing { background: var(--accent); color: var(--ink); }
.pill--done { background: var(--ink); color: #fff; }
.project-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }
.project-list li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.project-list span { color: var(--steel); font-size: 0.9rem; white-space: nowrap; }
.person { text-align: center; }
.person .avatar { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: var(--ink); color: var(--accent); font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; }
.person a { font-weight: 600; }
.big-stat { font-family: var(--font-head); font-size: 3rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 8px; }
@media (max-width: 900px) { .project-list { grid-template-columns: 1fr; } .photo-frame::before { inset: 12px -10px -10px 12px; } }

/* Contact cards */
.contact-card { display: flex; flex-direction: column; gap: 4px; color: var(--ink-2); text-decoration: none; }
.contact-card:hover { text-decoration: none; border-color: var(--accent-text); }
.contact-card strong { font-family: var(--font-head); color: var(--ink); font-size: 1.05rem; }
.contact-card span { color: var(--steel); font-size: 0.92rem; overflow-wrap: anywhere; }
.contact-card .icon { margin-bottom: 10px; }

/* Team strength strip */
.team-strip { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--white); margin: 8px 0 22px; }
.team-strip div { padding: 16px 18px; border-right: 1px solid var(--line); }
.team-strip div:last-child { border-right: 0; }
.team-strip strong { display: block; font-family: var(--font-head); font-size: 1.8rem; color: var(--ink); line-height: 1.1; }
.team-strip span { font-size: 0.85rem; color: var(--steel); }
.workforce .card { text-align: center; }
.workforce .big-stat { color: var(--ink); }
