/* ============================================================
   EHGeoM Premium — design system
   ============================================================ */

:root {
  /* brand */
  --navy-900: #051a29;
  --navy-800: #082638;
  --navy-700: #0a3a5c;   /* primary */
  --navy-600: #0f4d77;
  --navy-500: #19638f;

  --accent:   #2a9fd6;   /* water cyan (tweakable) */
  --accent-2: #6fd0ef;
  --accent-deep: #1b7fb0;

  --paper:    #f4f7f9;
  --paper-2:  #eaeff3;
  --white:    #ffffff;

  --ink:      #0d1f2b;
  --body:     #3a4d59;
  --muted:    #6c7e8a;
  --line:     rgba(10, 58, 92, 0.12);
  --line-strong: rgba(10, 58, 92, 0.22);

  --sand:     #d8cbb2;   /* strata accent */

  /* type */
  --font-display: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-sans: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* rhythm */
  --pad-section: 120px;
  --container: 1240px;
  --radius: 4px;

  --shadow-sm: 0 1px 2px rgba(5, 26, 41, 0.06), 0 2px 8px rgba(5, 26, 41, 0.04);
  --shadow-md: 0 8px 24px rgba(5, 26, 41, 0.10), 0 2px 6px rgba(5, 26, 41, 0.06);
  --shadow-lg: 0 24px 60px rgba(5, 26, 41, 0.18);
}

/* density variants set --pad-section on root via inline style from tweaks */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---- eyebrow / technical label ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent-deep);
  opacity: 0.6;
}
.eyebrow.no-tick::before { display: none; }
.eyebrow.on-dark { color: var(--accent-2); }
.eyebrow.on-dark::before { background: var(--accent-2); }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s ease; }
.btn-primary {
  background: var(--accent);
  color: #03212f;
  box-shadow: 0 6px 18px rgba(42,159,214,0.32);
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-2px); }
.btn-ghost.on-dark { color: #eaf6fc; border-color: rgba(255,255,255,0.28); }
.btn-ghost.on-dark:hover { border-color: var(--accent-2); color: #fff; }

/* ============================================================
   UTILITY BAR
   ============================================================ */
.utility {
  background: var(--navy-900);
  color: #aebfc9;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.utility .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
}
.utility-left { display: flex; gap: 26px; align-items: center; }
.utility-item { display: flex; align-items: center; gap: 8px; }
.utility-item svg { width: 13px; height: 13px; opacity: 0.7; }
.lang-switch { display: flex; align-items: center; gap: 2px; }
.lang-btn {
  background: none; border: none; color: #7e93a0; cursor: pointer;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  padding: 4px 8px; border-radius: 3px; transition: color .15s, background .15s;
}
.lang-btn.active { color: #fff; background: rgba(255,255,255,0.1); }
.lang-btn:hover { color: #fff; }

@media (max-width: 820px){ .utility .utility-left .utility-item.hide-sm { display:none; } }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, background .25s ease;
}
.header.scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,0.94); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--ink); letter-spacing: -0.02em; }
.brand-sub { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 15px; font-weight: 500; color: var(--body);
  padding: 9px 16px; border-radius: var(--radius);
  position: relative; transition: color .15s;
}
.nav-link:hover { color: var(--navy-700); }
.nav-link::after {
  content:""; position:absolute; left:16px; right:16px; bottom:4px; height:2px;
  background: var(--accent); transform: scaleX(0); transform-origin:left; transition: transform .22s ease;
}
.nav-link:hover::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display:none; background:none; border:1px solid var(--line-strong); border-radius:var(--radius); width:44px; height:44px; cursor:pointer; align-items:center; justify-content:center; }
.menu-toggle svg { width:22px; height:22px; color: var(--ink); }

@media (max-width: 1080px){
  .nav { display: none; }
  .header-cta .btn-desktop { display: none; }
  .menu-toggle { display: flex; }
}

/* mobile drawer */
.drawer-overlay { position: fixed; inset:0; background: rgba(5,26,41,0.5); z-index: 80; opacity:0; pointer-events:none; transition: opacity .25s; }
.drawer-overlay.open { opacity:1; pointer-events:auto; }
.drawer {
  position: fixed; top:0; right:0; bottom:0; width: min(360px, 86vw); background: var(--white);
  z-index: 90; transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  display:flex; flex-direction:column; padding: 28px; box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }
.drawer-head { display:flex; justify-content:space-between; align-items:center; margin-bottom: 28px; }
.drawer-close { background:none; border:none; cursor:pointer; width:40px; height:40px; }
.drawer-close svg { width:24px; height:24px; color: var(--ink); }
.drawer-nav { display:flex; flex-direction:column; gap: 4px; }
.drawer-nav a { font-family: var(--font-display); font-size: 22px; font-weight:600; color: var(--ink); padding: 12px 0; border-bottom:1px solid var(--line); }
.drawer-nav a:hover { color: var(--accent-deep); }
.drawer .btn { margin-top: 24px; justify-content:center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 70%);
  color: #eaf3f8;
  overflow: hidden;
}
.hero-strata { position:absolute; inset:0; width:100%; height:100%; z-index:0; }
.hero .container { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 120px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }

.hero h1 {
  color: #fff;
  font-size: clamp(42px, 5.4vw, 74px);
  font-weight: 600;
  line-height: 1.1;
  margin: 22px 0 0;
}
.hero h1 .accent-word { font-style: italic; color: var(--accent-2); }
.hero-lead { font-size: 20px; line-height: 1.55; color: #b7cad6; margin-top: 34px; max-width: 540px; }
.hero-actions { display:flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }

.hero-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  overflow: hidden;
}
.hero-slot { width: 100%; height: 300px; }
.hero-card-meta { padding: 18px 22px; display:flex; align-items:center; justify-content:space-between; border-top:1px solid rgba(255,255,255,0.1); }
.hero-card-meta .label { font-family: var(--font-mono); font-size:11px; letter-spacing:0.12em; text-transform:uppercase; color:#8fb0c2; }
.hero-card-meta .coord { font-family: var(--font-mono); font-size:12px; color: var(--accent-2); }

.hero-badges { display:flex; gap:10px; margin-top: 40px; flex-wrap:wrap; }
.hero-badge { font-family: var(--font-mono); font-size:11.5px; letter-spacing:0.1em; text-transform:uppercase; color:#9fbccd; border:1px solid rgba(255,255,255,0.16); border-radius:100px; padding:7px 14px; }

@media (max-width: 940px){
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { order: 2; max-width: 520px; }
}

/* ============================================================
   STATS BAND
   ============================================================ */
.stats {
  background: var(--navy-700);
  color: #fff;
  position: relative;
  z-index: 3;
}
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: 44px 32px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat:last-child { border-right: none; }
.stat-num { font-family: var(--font-display); font-size: 46px; font-weight: 600; color: #fff; line-height: 1; display:flex; align-items:baseline; gap:4px; }
.stat-num .suffix { font-size: 24px; color: var(--accent-2); }
.stat-label { font-size: 14.5px; color: #a9c2d1; margin-top: 12px; line-height:1.4; }
@media (max-width: 860px){ .stats .container { grid-template-columns: repeat(2,1fr); } .stat:nth-child(2){border-right:none;} .stat{border-bottom:1px solid rgba(255,255,255,0.1);} }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { padding: var(--pad-section) 0; }
.section.tint { background: var(--white); }
.section.paper { background: var(--paper); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2 { font-size: clamp(32px, 4vw, 50px); margin-top: 18px; }
.section-head p { font-size: 19px; margin-top: 20px; color: var(--body); }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow:hidden; background: var(--white); }
.service-card {
  padding: 40px 36px 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  position: relative;
  transition: background .25s ease;
  background: var(--white);
}
.service-card:nth-child(3n) { border-right: none; }
.service-card:nth-last-child(-n+3) { border-bottom: none; }
.service-card::before {
  content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .28s ease;
}
.service-card:hover { background: var(--paper); }
.service-card:hover::before { transform: scaleY(1); }
.service-ico { width: 52px; height: 52px; color: var(--navy-700); margin-bottom: 22px; transition: color .2s; }
.service-card:hover .service-ico { color: var(--accent-deep); }
.service-num { position:absolute; top: 34px; right: 32px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing:0.1em; }
.service-card h3 { font-size: 23px; margin-bottom: 12px; }
.service-card p { font-size: 15.5px; color: var(--body); line-height:1.6; }
.service-more { margin-top: 20px; font-family: var(--font-mono); font-size: 12px; letter-spacing:0.1em; text-transform:uppercase; color: var(--accent-deep); display:inline-flex; align-items:center; gap:8px; }
.service-more svg { width:14px; height:14px; transition: transform .2s; }
.service-card:hover .service-more svg { transform: translateX(4px); }

@media (max-width: 960px){ .services-grid { grid-template-columns: repeat(2,1fr);} .service-card:nth-child(3n){border-right:1px solid var(--line);} .service-card:nth-child(2n){border-right:none;} .service-card:nth-last-child(-n+3){border-bottom:1px solid var(--line);} .service-card:nth-last-child(-n+2){border-bottom:none;} }
@media (max-width: 620px){ .services-grid { grid-template-columns: 1fr;} .service-card{border-right:none !important;} }

/* ============================================================
   ABOUT / cross-section
   ============================================================ */
.about-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items:center; }
.about-figure { position: relative; border-radius: 10px; overflow:hidden; box-shadow: var(--shadow-md); background: var(--navy-800); }
.about-figure svg { display:block; width:100%; height:auto; }
.about-list { margin-top: 34px; display:flex; flex-direction:column; gap: 20px; }
.about-item { display:flex; gap: 16px; }
.about-item .dot { flex:none; width: 36px; height:36px; border-radius:50%; background: rgba(42,159,214,0.12); display:flex; align-items:center; justify-content:center; color: var(--accent-deep); }
.about-item .dot svg { width:18px; height:18px; }
.about-item h4 { font-family: var(--font-sans); font-size: 16.5px; font-weight:700; color: var(--ink); margin-bottom: 4px; }
.about-item p { font-size: 15px; color: var(--body); }
@media (max-width: 900px){ .about-grid { grid-template-columns: 1fr; gap: 48px; } }

/* ============================================================
   PROCESS
   ============================================================ */
.process-track { display:grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; position: relative; }
.process-step { padding: 0 22px; position: relative; }
.process-step::before {
  content:""; position:absolute; top: 19px; left: 0; right: 0; height: 2px; background: var(--line-strong);
}
.process-step:first-child::before { left: 50%; }
.process-step:last-child::before { right: 50%; }
.process-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--white); border: 2px solid var(--accent);
  color: var(--accent-deep); font-family: var(--font-mono); font-weight:600; font-size: 15px;
  display:flex; align-items:center; justify-content:center; position: relative; z-index:2; margin: 0 auto;
}
.process-step h4 { font-family: var(--font-sans); font-size: 16px; font-weight: 700; color: var(--ink); margin: 22px 0 8px; text-align:center; }
.process-step p { font-size: 14px; color: var(--body); text-align:center; }
@media (max-width: 860px){
  .process-track { grid-template-columns: 1fr; gap: 0; }
  .process-step { padding: 0 0 32px 56px; text-align:left; }
  .process-step::before { top: 0; bottom: 0; left: 19px; right:auto; width:2px; height:auto; }
  .process-step:first-child::before { top: 20px; }
  .process-step:last-child::before { bottom: calc(100% - 20px); }
  .process-num { position:absolute; left:0; top:0; margin:0; }
  .process-step h4, .process-step p { text-align:left; }
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.project-card { background: var(--white); border-radius: 8px; overflow:hidden; border:1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.project-slot { width:100%; height: 230px; }
.project-body { padding: 24px 26px 28px; }
.project-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-deep); }
.project-body h3 { font-size: 21px; margin: 12px 0 8px; }
.project-body p { font-size: 14.5px; color: var(--body); }
@media (max-width: 900px){ .projects-grid { grid-template-columns: 1fr; } }

/* ============================================================
   COVERAGE / map
   ============================================================ */
.coverage { background: var(--navy-800); color:#eaf3f8; overflow:hidden; position:relative; }
.coverage-grid { display:grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items:center; }
.coverage h2 { color:#fff; }
.coverage p { color:#b7cad6; font-size:18px; margin-top: 20px; }
.coverage-map svg { width:100%; height:auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3)); }
.coverage-stats { display:flex; gap: 40px; margin-top: 36px; }
.coverage-stat .n { font-family: var(--font-display); font-size: 34px; color: var(--accent-2); }
.coverage-stat .l { font-size: 13.5px; color:#9fbccd; }
@media (max-width: 900px){ .coverage-grid { grid-template-columns:1fr; gap:44px; } }

/* ============================================================
   CTA BAND
   ============================================================ */
.ctaband { background: var(--accent); position: relative; overflow:hidden; }
.ctaband .container { display:flex; align-items:center; justify-content:space-between; gap: 40px; padding: 70px 40px; position:relative; z-index:2; flex-wrap:wrap; }
.ctaband h2 { color: #03212f; font-size: clamp(28px, 3.4vw, 44px); max-width: 680px; }
.ctaband .btn-primary { background: var(--navy-800); color:#fff; box-shadow: 0 8px 24px rgba(5,26,41,0.25); }
.ctaband .btn-primary:hover { background: var(--navy-900); }
.ctaband-deco { position:absolute; inset:0; opacity:0.5; z-index:1; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display:grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
.contact-info { display:flex; flex-direction:column; gap: 26px; }
.contact-row { display:flex; gap: 16px; align-items:flex-start; }
.contact-row .ico { flex:none; width: 44px; height:44px; border-radius: 8px; background: var(--paper-2); display:flex; align-items:center; justify-content:center; color: var(--navy-700); }
.contact-row .ico svg { width:20px; height:20px; }
.contact-row .label { font-family: var(--font-mono); font-size:11px; letter-spacing:0.12em; text-transform:uppercase; color: var(--muted); }
.contact-row .val { font-size: 16.5px; color: var(--ink); font-weight: 500; margin-top:2px; }
.form { background: var(--white); border:1px solid var(--line); border-radius: 10px; padding: 36px; box-shadow: var(--shadow-sm); }
.form-row { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field { display:flex; flex-direction:column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight:600; color: var(--ink); }
.field input, .field textarea, .field select {
  font-family: var(--font-sans); font-size: 15px; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 12px 14px; background: var(--paper);
  transition: border-color .15s, box-shadow .15s; width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus { outline:none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(42,159,214,0.16); background:#fff; }
.field.err input, .field.err textarea { border-color: #d8584f; }
.field .msg { font-size: 12px; color: #d8584f; }
.form .btn { width: 100%; justify-content:center; margin-top: 6px; }
.form-success { text-align:center; padding: 30px 10px; }
.form-success .check { width: 60px; height:60px; border-radius:50%; background: rgba(42,159,214,0.14); color: var(--accent-deep); display:flex; align-items:center; justify-content:center; margin: 0 auto 20px; }
.form-success .check svg { width: 30px; height:30px; }
.form-success h3 { font-size: 24px; margin-bottom: 10px; }
@media (max-width: 900px){ .contact-grid { grid-template-columns:1fr; gap:44px; } .form-row { grid-template-columns:1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-900); color: #93a9b6; padding: 80px 0 0; }
.footer-grid { display:grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; }
.footer .brand-name { color:#fff; }
.footer .brand-sub { color: #6c8392; }
.footer-about { font-size: 14.5px; line-height:1.7; margin-top: 22px; max-width: 320px; }
.footer h5 { font-family: var(--font-sans); font-size: 12px; letter-spacing:0.14em; text-transform:uppercase; color:#fff; margin: 0 0 20px; font-weight:700; }
.footer-links { display:flex; flex-direction:column; gap: 12px; }
.footer-links a { font-size: 14.5px; color:#93a9b6; transition: color .15s; }
.footer-links a:hover { color: var(--accent-2); }
.footer-contact { font-size: 14.5px; line-height:1.7; }
.footer-contact a:hover { color: var(--accent-2); }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.08); padding: 26px 0; display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; font-size: 13px; }
.footer-gov { display:flex; gap: 20px; align-items:center; font-family: var(--font-mono); font-size:11px; letter-spacing:0.08em; text-transform:uppercase; color:#6c8392; }
@media (max-width: 900px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 560px){ .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   SERVICE MODAL
   ============================================================ */
.modal-overlay { position: fixed; inset:0; background: rgba(5,26,41,0.62); backdrop-filter: blur(4px); z-index: 100; display:flex; align-items:center; justify-content:center; padding: 30px; opacity:0; pointer-events:none; transition: opacity .25s; }
.modal-overlay.open { opacity:1; pointer-events:auto; }
.modal { background: var(--white); border-radius: 12px; max-width: 720px; width:100%; max-height: 88vh; overflow:hidden; box-shadow: var(--shadow-lg); transform: translateY(20px) scale(.98); transition: transform .3s cubic-bezier(.2,.7,.3,1); display:flex; flex-direction:column; }
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-head { background: var(--navy-800); color:#fff; padding: 38px 40px; position:relative; overflow:hidden; }
.modal-head svg.deco { position:absolute; inset:0; width:100%; height:100%; opacity:.5; }
.modal-head .inner { position:relative; z-index:2; }
.modal-ico { width:48px; height:48px; color: var(--accent-2); margin-bottom: 18px; }
.modal-head h3 { color:#fff; font-size: 30px; }
.modal-head .eyebrow { margin-bottom: 6px; }
.modal-close { position:absolute; top:22px; right:22px; z-index:3; background: rgba(255,255,255,0.1); border:none; width:40px; height:40px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition: background .15s; }
.modal-close:hover { background: rgba(255,255,255,0.22); }
.modal-close svg { width:20px; height:20px; color:#fff; }
.modal-body { padding: 36px 40px 40px; overflow-y:auto; }
.modal-body p { font-size: 16px; color: var(--body); margin-bottom: 18px; }
.modal-body h4 { font-family: var(--font-sans); font-size: 14px; letter-spacing:0.1em; text-transform:uppercase; color: var(--navy-700); margin: 26px 0 14px; }
.modal-feats { display:flex; flex-direction:column; gap: 12px; }
.modal-feat { display:flex; gap:12px; align-items:flex-start; font-size: 15px; color: var(--body); }
.modal-feat svg { flex:none; width:20px; height:20px; color: var(--accent-deep); margin-top:1px; }
.modal-foot { padding: 0 40px 40px; }
.modal-foot .btn { width:100%; justify-content:center; }

/* reveal on scroll */
.reveal { opacity: 1; transform: none; }
html.anim .reveal { opacity:0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
html.anim .reveal.in { opacity:1; transform: none; }

/* ============================================================
   PREMIUM POLISH
   ============================================================ */
:root {
  --shadow-sm: 0 1px 2px rgba(5,26,41,0.06), 0 4px 14px rgba(5,26,41,0.05);
  --shadow-md: 0 14px 38px rgba(5,26,41,0.13), 0 3px 8px rgba(5,26,41,0.07);
  --shadow-lg: 0 36px 90px rgba(5,26,41,0.28);
}

/* fine grain texture for dark sections */
.hero::before, .stats::before, .coverage::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.stats, .coverage { position: relative; }

/* scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200;
  background: var(--accent);
  transition: width .12s linear;
}

/* sober institutional hero */
.hero {
  background:
    radial-gradient(120% 90% at 82% -10%, rgba(42,159,214,0.10), transparent 50%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 82%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(130% 130% at 50% 40%, transparent 62%, rgba(3,13,22,0.45));
}

/* official, solid primary button */
.btn-primary {
  background: var(--accent);
  box-shadow: 0 2px 6px rgba(5,26,41,0.14);
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }

/* refined hero card */
.hero-card {
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
}
.hero-card::before {
  content: ""; position: absolute; inset: 0; border-radius: 8px; pointer-events: none;
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(111,208,239,0.5), transparent 40%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.hero-card { position: relative; }

/* refined stats band */
.stats { background: linear-gradient(180deg, var(--navy-700) 0%, var(--navy-800) 100%); }
.stats .container { position: relative; z-index: 2; }
.stat-num { font-size: 54px; letter-spacing: -0.025em; }
.stat::after {
  content: ""; position: absolute; left: 32px; top: 38px; width: 26px; height: 2px;
  background: var(--accent-2); opacity: 0.7;
}
.stat { position: relative; padding-top: 56px; }

/* refined service cards */
.service-card { transition: background .3s ease, box-shadow .3s ease; }
.service-card:hover { box-shadow: inset 0 0 0 1px rgba(42,159,214,0.18); }
.service-ico { transition: color .25s ease, transform .35s cubic-bezier(.2,.7,.3,1); }
.service-card:hover .service-ico { transform: translateY(-3px) scale(1.06); }

/* refined eyebrow tick glow */
.eyebrow::before { transition: width .3s ease; }

/* project & news card lift refinement */
.project-card { transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s ease; }
.project-card:hover { box-shadow: var(--shadow-md); }

/* smooth focus ring on interactive */
a, button { outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { transition: none; }
}

/* ============================================================
   GOVERNMENT / OFFICIAL TREATMENT
   ============================================================ */
.gov-bar { background: #04121e; color: #8aa0b2; font-size: 12.5px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.gov-bar .container { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.gov-left { display: flex; align-items: center; gap: 11px; min-width: 0; }
.tricolor { flex: none; width: 22px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,0.14);
  background: linear-gradient(90deg, #0046AE 0 33.33%, #FFD200 33.33% 66.66%, #CC092F 66.66% 100%); }
.gov-name { color: #d2dde8; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
.gov-sep { opacity: 0.4; }
.gov-min { color: #8aa0b2; white-space: nowrap; }
.gov-right { display: flex; align-items: center; gap: 18px; flex: none; }
.gov-official { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: #6fae84; }
.gov-official svg { width: 13px; height: 13px; }
.gov-official:hover { color: #8fcea4; }
.utility-acc { font-size: 13px; color: #7e93a0; cursor: pointer; }
.utility-acc:hover { color: #fff; }
@media (max-width: 760px){ .gov-min, .gov-sep { display: none; } .gov-official span, .utility-acc { display: none; } }

/* official emblem ring on the brand mark */
.brand-mark { box-shadow: 0 0 0 1px var(--line); border-radius: 9px; }

@media (prefers-reduced-motion: reduce) {
  .service-card:hover .service-ico { transform: none; }
}

/* ============================================================
   WOW LAYER — official seal, cinematic entrance, duotone photos
   ============================================================ */
@keyframes ehgUp { from { transform: translateY(15px); } to { transform: none; } }
@keyframes ehgCard { from { transform: translateY(14px) scale(.99); } to { transform: none; } }
@keyframes ehgFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ehgSpin { to { transform: rotate(360deg); } }

/* Entrance is transform-only so opacity can never get pinned at 0 by a
   re-render restart; a separate one-shot fade runs under html.anim only. */
.hero .eyebrow.on-dark { animation: ehgUp .7s .10s both; }
.hero h1 { animation: ehgUp .85s .22s both; }
.hero-lead { animation: ehgUp .85s .36s both; }
.hero-actions { animation: ehgUp .85s .48s both; }
.hero-badges { animation: ehgUp .85s .58s both; }
.hero-card { animation: ehgCard 1.1s .42s both; }
.hero .eyebrow.on-dark, .hero h1, .hero-lead, .hero-actions, .hero-badges, .hero-card { opacity: 1; }

/* real interactive map frame (coverage) */
.coverage-map { width: 100%; }
.map-frame {
  position: relative;
  z-index: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow-lg);
  background: #0a2233;
  height: 520px;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.35) invert(0.92) hue-rotate(178deg) contrast(0.92) brightness(0.95);
}
/* the original .coverage-map svg rule (width:100%) must NOT touch Leaflet's vector SVG */
.coverage-map .leaflet-pane svg { width: auto; height: auto; filter: none; }
.map-canvas { width: 100%; height: 100%; background: #06141f; }
.map-canvas .leaflet-tile-pane { filter: saturate(1.12) brightness(1.04); }
.leaflet-container { background: #06141f !important; font-family: var(--font-sans); }
/* glowing Moldova outline */
.mda-glow { filter: drop-shadow(0 0 4px rgba(143,232,255,1)) drop-shadow(0 0 13px rgba(90,190,240,0.8)) drop-shadow(0 0 26px rgba(60,150,220,0.45)); }
/* glowing city dots */
.ehg-city { filter: drop-shadow(0 0 6px rgba(111,208,239,1)); }
.ehg-city-cap { filter: drop-shadow(0 0 8px rgba(174,240,255,1)) drop-shadow(0 0 18px rgba(111,208,239,0.85)); }
.leaflet-tooltip.ehg-map-tip {
  background: rgba(8,38,56,0.94); color: #eaf6fc; border: 1px solid rgba(111,208,239,0.45);
  border-radius: 4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  padding: 3px 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.ehg-map-tip::before { display: none; }
.leaflet-control-zoom a { background: rgba(255,255,255,0.95) !important; color: #0a3a5c !important; border-color: rgba(10,58,92,0.12) !important; }
.leaflet-control-zoom a:hover { background: #0a3a5c !important; color: #fff !important; }
.leaflet-control-attribution { background: rgba(6,20,32,0.66) !important; color: #6b8294 !important; font-size: 10px; }
.leaflet-control-attribution a { color: #6fd0ef !important; }
.leaflet-attribution-flag { display: none !important; }
.map-frame-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: #cfe2ee;
  background: linear-gradient(0deg, rgba(6,24,38,0.92), rgba(6,24,38,0));
  pointer-events: none;
}
.map-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(111,208,239,0.22); }
@media (max-width: 900px){ .map-frame { height: 380px; } }

/* official seal on hero card */
.hero-seal {
  position: absolute; top: 14px; right: 14px; width: 86px; height: 86px; z-index: 4;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.45));
  animation: ehgSpin 60s linear infinite;
}

/* duotone / brand cohesion on photos */
.hero-slot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(180deg, rgba(7,32,50,0.08) 0%, rgba(7,32,50,0) 38%, rgba(6,24,38,0.68) 100%);
}
.project-slot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,58,92,0.10) 0%, rgba(8,38,56,0.42) 100%);
  transition: opacity .3s ease;
}
.project-card:hover .project-slot::after { opacity: 0.55; }

/* ============================================================
   PREMIUM VISUAL LAYER v2 — ambient motion & micro-interactions
   ============================================================ */

/* hero ambient particles (rising water motes) */
.hero-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hp-particle {
  position: absolute; bottom: -12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #bdecff, var(--accent-2));
  box-shadow: 0 0 8px rgba(111,208,239,0.55);
  opacity: 0; will-change: transform, opacity;
  animation-name: hpRise; animation-timing-function: linear; animation-iteration-count: infinite;
}
@keyframes hpRise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  12%  { opacity: .75; }
  50%  { transform: translateY(-360px) translateX(14px); opacity: .55; }
  85%  { opacity: .35; }
  100% { transform: translateY(-700px) translateX(-10px); opacity: 0; }
}

/* slow-drifting aurora glow behind hero content */
.hero-glow {
  position: absolute; z-index: 1; pointer-events: none;
  top: -22%; right: -12%; width: 460px; height: 460px; max-width: 52vw;
  background: radial-gradient(circle, rgba(42,159,214,0.28), rgba(42,159,214,0.07) 44%, transparent 66%);
  filter: blur(8px); opacity: .8;
  animation: glowDrift 22s ease-in-out infinite alternate;
}
@keyframes glowDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(34px, 46px) scale(1.1); }
}

/* primary button — light sheen sweep on hover */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -120%; width: 60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-18deg); transition: left .6s cubic-bezier(.2,.7,.3,1); pointer-events: none;
}
.btn-primary:hover::after { left: 130%; }
.btn-primary > * { position: relative; z-index: 1; }

/* service cards — hover spotlight + deeper lift */
.service-card { transition: background .3s ease, box-shadow .35s ease, transform .35s cubic-bezier(.2,.7,.3,1); }
.service-card::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(420px 220px at var(--mx,70%) -10%, rgba(42,159,214,0.16), transparent 70%);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(42,159,214,0.16); }
.service-card:hover::after { opacity: 1; }
.service-card > * { position: relative; z-index: 1; }
.service-num { font-size: 30px !important; opacity: 0.18; transition: opacity .3s, color .3s; }
.service-card:hover .service-num { opacity: 0.5; color: var(--accent-deep); }

/* project photos — gentle cinematic zoom on hover */
.project-slot { transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.project-card { overflow: hidden; }
.project-card:hover .project-slot { transform: scale(1.06); }

/* faint topographic texture on light sections */
.section.paper { position: relative; }
.section.paper > .container { position: relative; z-index: 1; }
.section.paper::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(10,58,92,0.05) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
}

/* eyebrow tick glows on dark */
.eyebrow.on-dark::before { box-shadow: 0 0 10px rgba(111,208,239,0.6); }

/* stats: number gets a soft glow */
.stat-num { text-shadow: 0 0 28px rgba(111,208,239,0.18); }

/* refined card hover for projects */
.project-card { transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease; }
.project-card:hover { box-shadow: var(--shadow-lg); }

@media (prefers-reduced-motion: reduce) {
  .hp-particle, .hero-glow { animation: none; opacity: .25; }
  .btn-primary::after { display: none; }
  .project-card:hover .project-slot { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow.on-dark, .hero h1, .hero-lead, .hero-actions, .hero-badges, .hero-card { animation: none; }
  .hero-seal { animation: none; }
}
