/* ── EHGeoM redesign · design system v2 ─────────────────────────────────────
   Updated palette for a cleaner, more trustworthy institutional feel.
   - bg     warm off-white (less yellow than before)
   - paper  pure clean
   - ink    deep slate, not pure black
   - primary deep teal-navy (water + depth, conveys reliability)
   - accent warm copper, used VERY sparingly
*/

:root {
  /* PALETTE — Republic of Moldova Government website style ─────────────────
     Modelled after gov.md / cnas.md / mfin.gov.md visual language:
     - clean white background, generous white space
     - one strong institutional blue used for nav bar, buttons, headings
     - dark slate ink, no warm tones
     - tricolor reserved for the very top strip
  */
  --bg: #ffffff;
  --paper: #f5f7fa;
  --ink: #1a2433;
  --muted: rgba(26, 36, 51, 0.62);
  --soft: rgba(26, 36, 51, 0.42);
  --rule: rgba(26, 36, 51, 0.1);
  --rule-strong: rgba(26, 36, 51, 0.2);
  --primary: #1f4d8c;          /* institutional gov blue */
  --primary-hover: #173a6a;
  --primary-ink: #ffffff;
  --primary-tint: #e8eef6;
  --primary-deep: #0e3160;     /* darker for hero overlay */
  --accent: #1f4d8c;
  --gold: #c69531;
  --signal: #9c2a35;

  /* national flag tones for the strip */
  --flag-blue: #0050a8;
  --flag-yellow: #ffd400;
  --flag-red: #cc092f;

  /* TYPE */
  --ff-display: 'Source Serif 4', 'Source Serif Pro', 'Times New Roman', serif;
  --ff-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --ff-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* DENSITY (overridden by JS) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  --container: 1320px;
  --gutter: 32px;
}

/* ── reset / base ───────────────────────────────────────────────────────── */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: 'ss01', 'ss02', 'kern';
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; }

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

img, svg { display: block; max-width: 100%; }

/* ── typography ─────────────────────────────────────────────────────────── */

.display {
  font-family: var(--ff-display);
  font-weight: 380;
  font-size: clamp(56px, 7.6vw, 116px);
  line-height: 0.95;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

.headline {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(36px, 4.2vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  margin: 0;
  text-wrap: balance;
}

.title {
  font-family: var(--ff-display);
  font-weight: 420;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

.subhead {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.003em;
  margin: 0;
}

.body-lg {
  font-size: 19px;
  line-height: 1.55;
  letter-spacing: -0.002em;
  max-width: 60ch;
  text-wrap: pretty;
}

.body {
  font-size: 16px;
  line-height: 1.6;
  max-width: 64ch;
  text-wrap: pretty;
}

.body-sm {
  font-size: 14px;
  line-height: 1.55;
}

.meta {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta-strong {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.kicker {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.tabular { font-variant-numeric: tabular-nums; }

/* ── layout primitives ──────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.rule-strong { height: 1px; background: var(--rule-strong); border: 0; margin: 0; }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

.section {
  padding: var(--sp-9) 0;
}

.section-tight {
  padding: var(--sp-7) 0;
}

.section-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gutter);
  padding-bottom: var(--sp-7);
  align-items: end;
}

@media (max-width: 880px) {
  .section-header { grid-template-columns: 1fr; gap: var(--sp-4); }
  .section { padding: var(--sp-7) 0; }
}

/* ── buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border: 0;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: var(--primary);
  color: var(--primary-ink);
  border-radius: 0;
  transition: background .15s, transform .15s;
  white-space: nowrap;
}

.btn:hover { background: var(--primary-hover); }
.btn:active { transform: translateY(1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--ink);
}
.btn-ghost:hover { border-bottom-color: var(--accent); color: var(--accent); }

.btn-link {
  background: transparent;
  color: var(--ink);
  padding: 0;
  border: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 4px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.btn-link:hover { border-bottom-color: var(--ink); }

.btn-arrow::after {
  content: "→";
  font-family: var(--ff-body);
  font-size: 1em;
}

.arrow {
  display: inline-block;
  width: 1em;
  font-family: var(--ff-body);
  transition: transform .2s;
}

a:hover .arrow,
button:hover .arrow { transform: translateX(3px); }

/* ── form controls ───────────────────────────────────────────────────────── */

.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.input, .textarea, .select {
  font-family: var(--ff-body);
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  padding: 12px 0 12px;
  outline: none;
  transition: border-color .15s;
  appearance: none;
  width: 100%;
}

.input:focus, .textarea:focus, .select:focus {
  border-bottom-color: var(--primary);
}

.textarea { resize: vertical; min-height: 96px; line-height: 1.5; }

/* ── government header (refined — distinctive, not CNAS) ────────────────── */

.gov-strip {
  background: #fff;
  color: var(--ink);
  font-family: var(--ff-body);
  border-bottom: 1px solid var(--rule);
}

.gov-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
}

.gov-social { display: flex; gap: 14px; align-items: center; }
.gov-social a {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  color: var(--muted);
  transition: color .15s;
}
.gov-social a:hover { color: var(--primary); }

.gov-tagline {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* nav utility group — hours / phone / lang inline with nav */
.nav-util {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 1px solid var(--rule);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-util-hours { font-weight: 500; color: var(--ink); }
.nav-util-phone {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color .15s;
}
.nav-util-phone:hover { color: var(--primary); }
.nav-util-sep { color: var(--rule-strong); }
.nav-util-lang { display: inline-flex; gap: 0; align-items: center; }
.nav-util-lang button {
  background: transparent; border: 0;
  padding: 0 4px;
  font-family: inherit; font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); cursor: pointer;
}
.nav-util-lang button.on { color: var(--primary); font-weight: 700; }
.nav-util-lang .sep { color: var(--rule-strong); padding: 0 2px; font-size: 10px; }

@media (max-width: 1100px) {
  .nav-util-hours, .nav-util-sep:first-of-type { display: none; }
}
@media (max-width: 900px) {
  .nav-util { display: none; }
}

.gov-lang {
  display: inline-flex; gap: 0;
  align-items: center;
}
.gov-lang button {
  background: transparent;
  border: 0;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  cursor: pointer;
  text-transform: uppercase;
}
.gov-lang button.on { color: var(--primary); font-weight: 600; }
.gov-lang .sep { color: var(--rule-strong); padding: 0 2px; font-size: 10px; }

/* tight asymmetric masthead — seal flush left, IDNO right */
.masthead {
  background: #fff;
  padding: 32px var(--gutter) 32px;
  border-bottom: 1px solid var(--rule);
}

.masthead-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.masthead-seal {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}
.masthead-seal img { width: 100%; height: 100%; object-fit: contain; display: block; }

.masthead-seal {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}
.masthead-seal img { width: 100%; height: 100%; object-fit: contain; display: block; }

.masthead-text { line-height: 1.05; }
.masthead-title {
  font-family: var(--ff-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.12;
}
.masthead-sub {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 8px;
}

.masthead-meta {
  text-align: right;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.65;
}

/* main nav — clean white with subtle underline (no heavy blue bar) */
.nav {
  background: #fff;
  color: var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0 48px;
  max-width: 1600px;
  margin: 0 auto;
  gap: 0;
  min-height: 56px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  height: 56px;
  padding-right: 22px;
  border-right: 1px solid var(--rule);
  margin-right: 8px;
}
.nav-brand img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  display: block;
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}
.nav-brand-text strong {
  font-family: var(--ff-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.nav-brand-text span {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.nav-link {
  position: relative;
  padding: 0 18px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  border: 0;
  display: inline-flex;
  align-items: center;
  transition: color .15s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 22px; right: 22px;
  bottom: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}

.nav-link:hover { color: var(--primary); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--primary); }

.nav-right {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 0;
  transition: background .15s;
}
.nav-cta:hover { background: var(--primary-hover); }

.nav-search {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 16px;
}
.nav-search:hover { color: var(--primary); }

/* search input in nav */
.nav-search-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 14px;
  padding: 0 12px;
  border-left: 1px solid var(--rule);
  position: relative;
}
.nav-search-icon {
  color: var(--muted);
  flex-shrink: 0;
}
.nav-search-input {
  background: transparent;
  border: 0;
  padding: 0;
  font-family: var(--ff-body);
  font-size: 13px;
  color: var(--ink);
  width: 160px;
  outline: none;
  letter-spacing: 0.01em;
}
.nav-search-input::placeholder {
  color: var(--muted);
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-search-input:focus {
  width: 220px;
}
.nav-search-input { transition: width .25s cubic-bezier(.2,.7,.2,1); }
.nav-search-wrap:focus-within .nav-search-icon { color: var(--primary); }

@media (max-width: 900px) {
  .nav-search-wrap { display: none; }
}

@media (max-width: 880px) {
  .masthead-meta { display: none; }
  .masthead-inner { grid-template-columns: auto 1fr; }
}

/* ── tags / chips ────────────────────────────────────────────────────────── */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--rule-strong);
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
}

.tag-solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.filter-chip {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--rule-strong);
  background: transparent;
  font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink);
  transition: background .15s, color .15s, border-color .15s;
}
.filter-chip:hover { background: var(--paper); }
.filter-chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter-count { opacity: 0.55; }

/* ── DEPTH SCALE ribbon ─────────────────────────────────────────────────
   Distinctive visual identity for EHGeoM: a vertical "borehole depth"
   ribbon that runs down the left edge of the page on the homepage hero.
   References the company's core service — drilling and surveying
   subterranean depths. Not just decorative — uses real EHGeoM depth ranges.
*/

.depth-scale {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.18);
  z-index: 2;
  pointer-events: none;
}
.depth-tick {
  position: absolute;
  left: -8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.depth-tick::before {
  content: "";
  width: 16px;
  height: 1px;
  background: rgba(255,255,255,0.5);
}
.depth-tick-major::before {
  width: 22px;
  height: 1.5px;
  background: var(--gold, #c69531);
}
.depth-tick-major {
  color: var(--gold, #c69531);
  font-weight: 600;
}

/* ── SPLIT HERO ──────────────────────────────────────────────────────────
   Refined asymmetric two-column hero. Editorial weight on the left,
   immersive photo on the right, with a magazine-spine label running
   vertically on the far-left edge and corner registration brackets.
*/

.hero-split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  min-height: 680px;
  background: var(--primary-deep);
  color: #fff;
  overflow: hidden;
}

/* magazine-style vertical spine label */
.hero-spine {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-spine::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold, #c69531);
}

.hero-split-left {
  position: relative;
  padding: 96px 72px 96px 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--primary-deep);
  z-index: 1;
}

/* fine corner brackets on the left panel */
.hero-split-left::before,
.hero-split-left::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255,255,255,0.22);
}
.hero-split-left::before { top: 32px; left: 64px; border-right: 0; border-bottom: 0; }
.hero-split-left::after { bottom: 32px; right: 32px; border-left: 0; border-top: 0; }

.hero-split-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}
.hero-split-kicker-num {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold, #c69531);
  text-transform: uppercase;
}
.hero-split-kicker-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.18);
  max-width: 80px;
}
.hero-split-kicker-label {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}

.hero-split-title {
  font-family: var(--ff-display);
  font-size: clamp(40px, 4.8vw, 68px);
  font-weight: 320;
  line-height: 1.0;
  letter-spacing: -0.022em;
  color: #fff;
  margin: 0 0 28px;
  text-wrap: balance;
}
.hero-split-title em {
  font-style: italic;
  font-weight: 360;
  color: rgba(255,255,255,0.55);
}

.hero-split-sub {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.74);
  max-width: 46ch;
  margin: 0 0 44px;
  font-weight: 300;
}

.hero-split-actions {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--gold, #c69531);
  color: #1a1206;
  padding: 16px 28px;
  border: 0;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-gold:hover { background: #d6a649; }
.btn-gold .arrow { font-size: 14px; }

.btn-line-light {
  background: transparent;
  color: rgba(255,255,255,0.88);
  border: 0;
  padding: 12px 0 8px;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  transition: color .15s;
}
.btn-line-light::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: rgba(255,255,255,0.4);
  transition: background .15s, transform .25s;
  transform-origin: right;
}
.btn-line-light:hover { color: #fff; }
.btn-line-light:hover::after { background: var(--gold, #c69531); }

/* right side: photo with overlay frame */
.hero-split-right {
  position: relative;
  overflow: hidden;
}
.hero-split-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-split-right::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14,49,96,0.4) 0%, rgba(14,49,96,0) 30%),
    linear-gradient(180deg, rgba(14,49,96,0) 50%, rgba(14,49,96,0.5) 100%);
}

/* a floating "data card" pinned to the photo */
.hero-data-card {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 2;
  background: rgba(10, 20, 32, 0.78);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  color: #fff;
  padding: 26px 30px;
  border-left: 2px solid var(--gold, #c69531);
  max-width: 340px;
  box-shadow: 0 24px 48px -16px rgba(0,0,0,0.5);
}
.hero-data-card::before {
  content: "";
  position: absolute;
  top: 8px; right: 8px;
  width: 14px; height: 14px;
  border-top: 1px solid rgba(198, 149, 49, 0.6);
  border-right: 1px solid rgba(198, 149, 49, 0.6);
}
.hero-data-card-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold, #c69531);
  margin-bottom: 12px;
  display: inline-block;
  border-bottom: 1px solid rgba(198, 149, 49, 0.35);
  padding-bottom: 6px;
}
.hero-data-card-title {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 420;
  margin: 0 0 8px;
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.hero-data-card-body {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
  margin: 0;
  font-weight: 300;
}

/* hero stats below the split — refined with hover accent */
.hero-stats-row {
  background: #0a1a2e;
  color: #fff;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.hero-stats-row > div {
  padding: 36px 36px;
  border-right: 1px solid rgba(255,255,255,0.06);
  position: relative;
  transition: background .3s;
}
.hero-stats-row > div:last-child { border-right: 0; }
.hero-stats-row > div:hover { background: rgba(255,255,255,0.025); }
.hero-stats-row > div::before {
  content: "";
  position: absolute;
  top: 0; left: 36px;
  width: 28px;
  height: 2px;
  background: var(--gold, #c69531);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity .25s, transform .35s cubic-bezier(.2,.7,.2,1);
}
.hero-stats-row > div:hover::before { opacity: 1; transform: scaleX(1); }

.hero-stats-row .hsv {
  font-family: var(--ff-display);
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 320;
  line-height: 1;
  letter-spacing: -0.018em;
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}
.hero-stats-row .hsv .suf {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.005em;
}
.hero-stats-row .hsl {
  margin-top: 14px;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

@media (max-width: 980px) {
  .hero-split { grid-template-columns: 1fr; min-height: auto; }
  .hero-split-left { padding: 56px 24px; }
  .hero-split-right { min-height: 360px; }
  .hero-stats-row { grid-template-columns: repeat(2, 1fr); }
  .depth-scale { display: none; }
}

.photo {
  position: relative;
  overflow: hidden;
  background: var(--rule);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(13,31,44,0.65);
  padding: 6px 10px;
  backdrop-filter: blur(4px);
}

.photo-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,31,44,0.0) 30%, rgba(13,31,44,0.7) 100%);
  pointer-events: none;
}

/* hero background image */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.42;
  filter: saturate(0.85);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(242,244,246,0.55) 40%, var(--bg) 100%);
}

/* ── footer ──────────────────────────────────────────────────────────────── */

.footer {
  background: var(--ink);
  color: var(--bg);
  padding: var(--sp-9) 0 var(--sp-5);
  margin-top: var(--sp-9);
}

.footer .footer-rule {
  height: 1px;
  background: rgba(255,255,255,0.16);
  border: 0;
  margin: var(--sp-7) 0 var(--sp-5);
}

.footer .container {
  max-width: 1600px;
  padding: 0 48px;
}

.footer .meta { color: rgba(255,255,255,0.55); }

/* refined footer grid — matches official site layout */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.footer-col { min-width: 0; }
.footer-h {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 20px;
  letter-spacing: -0.008em;
  position: relative;
  padding-bottom: 12px;
}
.footer-h::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 28px; height: 2px;
  background: var(--gold, #c69531);
}
.footer-body {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  margin: 0;
  font-weight: 300;
  max-width: 50ch;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.15);
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.footer-social a:hover {
  background: var(--gold, #c69531);
  color: var(--ink);
  border-color: var(--gold, #c69531);
  transform: translateY(-2px);
}
.partners {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.partner-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.partner-seal {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
}
.partner-seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1.05);
}
.partner-link {
  font-size: 13.5px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  transition: color .15s;
  text-decoration: none;
}
.partner-link:hover { color: var(--gold, #c69531); }

.footer-meta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.footer-meta-link {
  font-size: 13.5px;
  color: rgba(255,255,255,0.85);
  transition: color .15s;
}
.footer-meta-link:hover { color: var(--gold, #c69531); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* placeholders — still here for any leftover slots */
.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      transparent 0 12px,
      rgba(13,31,44,0.05) 12px 13px);
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  color: var(--soft);
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── motion ─────────────────────────────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slowZoom {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}
@keyframes drawLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeUp .55s cubic-bezier(.2,.7,.2,1) both; }

/* Scroll-reveal — applied via IntersectionObserver in components */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="left"] { transform: translateX(-24px); }
[data-reveal="left"].in { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(24px); }
[data-reveal="right"].in { transform: translateX(0); }
[data-reveal="zoom"] { transform: scale(0.96); }
[data-reveal="zoom"].in { transform: scale(1); }

/* Smooth scroll for in-page nav */
html { scroll-behavior: smooth; }

/* improved button transitions */
.btn, .nav-cta, .btn-gold, .btn-light, .btn-ghost-light, .btn-line-light {
  transition: background .2s cubic-bezier(.2,.7,.2,1),
              transform .15s cubic-bezier(.2,.7,.2,1),
              box-shadow .2s cubic-bezier(.2,.7,.2,1),
              color .15s;
}
.btn:hover, .nav-cta:hover, .btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -10px rgba(14,49,96,0.4);
}
.btn:active, .nav-cta:active, .btn-gold:active { transform: translateY(0); }

/* Hero photo subtle slow zoom on mount */
.hero-split-right img {
  animation: slowZoom 4s cubic-bezier(.2,.7,.2,1) both;
}

/* Image carousel inside hero data card */
.hero-photo-cycle {
  position: absolute;
  inset: 0;
}
.hero-photo-cycle img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(.2,.7,.2,1);
}
.hero-photo-cycle img.on { opacity: 1; }
.hero-photo-cycle img.on ~ img { opacity: 0; }

/* tiny progress dots for the cycle */
.cycle-dots {
  position: absolute;
  left: 96px;
  bottom: 36px;
  display: flex;
  gap: 8px;
  z-index: 3;
}
.cycle-dots button {
  width: 28px;
  height: 2px;
  background: rgba(255,255,255,0.3);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background .25s;
}
.cycle-dots button.on { background: var(--gold, #c69531); }

/* number ticker */
.number-ticker {
  display: inline-block;
}
.number-ticker.tick-in {
  animation: countUp .8s cubic-bezier(.2,.7,.2,1) both;
}

/* Service card improved hover */
.service-card {
  transition: background .25s cubic-bezier(.2,.7,.2,1);
}
.service-card-photo img {
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .3s !important;
}
.service-card:hover .service-card-photo img {
  transform: scale(1.07);
  filter: saturate(1) brightness(1.05);
}

/* Announce row hover slide */
.announce-row {
  transition: background .25s, padding .25s cubic-bezier(.2,.7,.2,1);
}
.announce-row:hover {
  padding-left: 16px;
}

/* Subtle parallax-ish hero bg drift */
@keyframes drift {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@media (max-width: 880px) {
  :root { --gutter: 20px; }
  .nav-links { display: none; }
  .grid-12 { grid-template-columns: repeat(6, 1fr); }
}

/* ── REFINEMENTS — service cards + masthead + micro details ──────────── */

.service-card { position: relative; }
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold, #c69531);
  transition: width .4s cubic-bezier(.2,.7,.2,1);
  z-index: 2;
}
.service-card:hover::before { width: 60%; }

.service-card-photo { position: relative; }
.service-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,20,32,0) 60%, rgba(10,20,32,0.4) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s;
  z-index: 1;
}
.service-card:hover .service-card-photo::after { opacity: 1; }

/* tricolor dots in masthead — subtle national reference */
.masthead-dots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  margin-top: 10px;
  justify-content: center;
}
.masthead-dots span {
  width: 5px; height: 5px; border-radius: 50%;
}
.masthead-dots span:nth-child(1) { background: var(--flag-blue); }
.masthead-dots span:nth-child(2) { background: var(--flag-yellow); }
.masthead-dots span:nth-child(3) { background: var(--flag-red); }

/* refined service-card title — body text micro adjustments */
.service-card-title {
  font-weight: 460;
  letter-spacing: -0.012em;
}

/* refined hero photo right — subtle gradient frame edge */
.hero-split-right::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14,49,96,0.85) 0%, rgba(14,49,96,0) 18%);
}

/* refined section header — gold dot before kicker */
.section-header .meta-strong,
.section-header [class*="meta-strong"]::before {
  position: relative;
}

/* refined fieldwork grid — better gap rhythm */
.fieldwork-grid { gap: 28px; }

/* announce row refinement */
.announce-row {
  border-top: 1px solid var(--rule);
  position: relative;
}
.announce-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width .4s cubic-bezier(.2,.7,.2,1);
}
.announce-row:hover::before { width: 60px; }

/* depth scale: hide noisy depth-meter ticks — keep only thin elegant line */
.depth-scale {
  left: 36px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(198,149,49,0.45) 12%,
    rgba(198,149,49,0.45) 88%,
    transparent 100%);
}
.depth-tick { display: none !important; }

/* polish: tiny pulse dot on the gold accents */
@keyframes pulseDot {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
.hero-data-card-label::before {
  content: "●";
  display: inline-block;
  margin-right: 8px;
  font-size: 8px;
  animation: pulseDot 2.4s ease-in-out infinite;
}

/* link hover smooths everywhere */
a, button { transition: opacity .15s, color .15s; }

/* ── Leaflet pin overrides ───────────────────────────────────────────── */
.leaflet-container { background: #eaecf0 !important; font-family: var(--ff-body) !important; }
.leaflet-control-zoom a { border-radius: 0 !important; border: 1px solid var(--rule-strong) !important; background: #fff !important; color: var(--ink) !important; }
.leaflet-control-attribution { background: transparent !important; font-size: 10px !important; color: var(--muted) !important; }

.md-pin-wrap { background: transparent !important; border: 0 !important; }
.md-pin {
  position: relative;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.md-pin-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: 1.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  flex-shrink: 0;
}
.md-pin-label {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  background: rgba(255,255,255,0.92);
  padding: 2px 6px;
  border: 1px solid var(--rule);
  text-shadow: none;
}

.md-pin-seat .md-pin-dot {
  width: 14px;
  height: 14px;
  background: var(--gold, #c69531);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.md-pin-seat .md-pin-pulse {
  position: absolute;
  left: -6px; top: -6px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--gold, #c69531);
  opacity: 0.25;
  animation: pulseSeat 2.4s ease-in-out infinite;
  pointer-events: none;
}
.md-pin-seat .md-pin-label {
  font-weight: 700;
  border-color: var(--gold, #c69531);
}
@keyframes pulseSeat {
  0%, 100% { transform: scale(1); opacity: 0.25; }
  50% { transform: scale(1.6); opacity: 0; }
}

/* ── Unified back-bar ─────────────────────────────────────────────────── */
.back-bar {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.back-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 14px var(--gutter);
  min-height: 50px;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  padding: 8px 14px 8px 10px;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color .15s, background .15s, transform .15s;
}
.back-btn:hover {
  border-color: var(--rule-strong);
  background: var(--bg);
}
.back-btn:hover .back-btn-arrow { transform: translateX(-3px); }
.back-btn-arrow {
  font-size: 16px;
  color: var(--primary);
  transition: transform .2s;
}
.back-crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.back-link {
  background: 0; border: 0; padding: 0;
  font: inherit; color: var(--muted); cursor: pointer;
  letter-spacing: inherit; text-transform: inherit;
  transition: color .15s;
}
.back-link:hover { color: var(--primary); }
.back-sep { opacity: 0.5; }
.back-current { color: var(--ink); font-weight: 600; }

@media (max-width: 700px) {
  .back-crumbs { display: none; }
}
